:root {
  --bg: #f5f1e8;
  --surface: #fffdf9;
  --surface-soft: #f2ece2;
  --text: #1f2a1f;
  --muted: #5d665f;
  --accent: #5a6f56;
  --accent-dark: #3f513b;
  --border: rgba(31, 42, 31, 0.1);
  --shadow: 0 18px 40px rgba(24, 28, 24, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body[data-page="home"] {
  background: linear-gradient(180deg, #f5f1e8 0%, #f7f3eb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 241, 232, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
  background: rgba(90, 111, 86, 0.12);
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.94);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 23, 18, 0.72) 0%, rgba(18, 23, 18, 0.48) 44%, rgba(18, 23, 18, 0.3) 100%),
    linear-gradient(180deg, rgba(20, 25, 20, 0.16) 0%, rgba(20, 25, 20, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #f7f4ef;
  padding: 5rem 0;
}

.eyebrow,
.section-label,
.eyebrow-dark {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow {
  color: rgba(247, 244, 239, 0.86);
}

.eyebrow-dark,
.section-label {
  color: var(--accent);
}

.hero h1,
.page-hero h1 {
  margin: 0.35rem 0 1rem;
  line-height: 1.05;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.hero-text,
.page-hero-text,
.section-intro {
  max-width: 48rem;
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-disabled {
  background: rgba(90, 111, 86, 0.18);
  color: var(--accent-dark);
  pointer-events: none;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.42);
}

.intro-grid,
.cta-card,
.footer-wrap,
.nav-wrap,
.membership-grid,
.contact-grid {
  gap: 1.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: start;
}

.soft-card,
.calendar-item,
.content-card,
.membership-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card,
.cta-card,
.membership-card,
.contact-card {
  padding: 1.5rem;
}

.info-card h3,
.cta-card h2,
.content-card h3,
.membership-card h3,
.contact-card h3 {
  margin-top: 0;
}

.info-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.content-card {
  padding: 1.35rem;
}

.meta-pill,
.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(90, 111, 86, 0.12);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.content-card p:last-child,
.membership-card p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.detail-list {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.detail-row {
  color: var(--muted);
}

.detail-row strong {
  color: var(--text);
}

.membership-grid,
.contact-grid,
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.membership-amount {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.membership-label {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.membership-due,
.muted-note,
.calendar-meta {
  color: var(--muted);
}

.text-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-hero {
  padding: 5.2rem 0 2rem;
}

.page-hero-calendar {
  background: linear-gradient(180deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0) 100%);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.calendar-list {
  display: grid;
  gap: 1rem;
}

.calendar-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  padding: 1.2rem;
}

.calendar-date {
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 1rem;
  text-align: center;
}

.calendar-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.calendar-date .day {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.35rem 0;
}

.calendar-date .weekday {
  color: var(--muted);
  font-size: 0.95rem;
}

.calendar-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.calendar-meta {
  font-size: 0.97rem;
  margin-bottom: 0.7rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-note {
  text-align: right;
}

@media (max-width: 860px) {
  .intro-grid,
  .card-grid,
  .calendar-item,
  .membership-grid,
  .contact-grid,
  .cta-split {
    grid-template-columns: 1fr;
  }

  .calendar-date {
    text-align: left;
  }

  .footer-wrap,
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 62vh;
  }

  .hero-content {
    padding: 4rem 0;
  }

  nav {
    gap: 0.45rem;
  }

  nav a {
    padding: 0.55rem 0.7rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
