:root {
  --bg: #f6efe5;
  --surface: rgba(255, 248, 240, 0.78);
  --surface-strong: #fffaf3;
  --text: #1f2a2d;
  --muted: #5e6a68;
  --line: rgba(31, 42, 45, 0.08);
  --gold: #c48a3a;
  --pine: #23433b;
  --clay: #a85b46;
  --sky: #dfeef0;
  --sand: #efd8b6;
  --olive: #7f8a50;
  --shadow: 0 24px 70px rgba(57, 46, 28, 0.14);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 138, 58, 0.18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(35, 67, 59, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf4ea 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 80%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.hero,
.stats-strip,
.section,
.site-footer {
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  box-shadow: 0 10px 24px rgba(57, 46, 28, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong,
.brand-text span {
  font-size: 0.95rem;
}

.brand-text strong {
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
.text-link {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--clay);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #183028;
}

.button-small {
  padding: 12px 16px;
  font-size: 0.95rem;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(31, 42, 45, 0.12);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.45);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(145deg, rgba(255, 250, 243, 0.9), rgba(255, 245, 233, 0.78));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy h1,
.section h2,
.hero-card h2,
.featured-sermon h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 9vw, 6.8rem);
}

.hero-text,
.section-copy p,
.visit-copy p,
.featured-sermon p,
.ministry-card p,
.feature-grid p,
.event-card span,
.leader-card p,
.visit-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-slogan {
  margin: 18px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}

.eyebrow,
.card-label,
.visit-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card {
  align-self: end;
  padding: 24px;
  background: rgba(35, 67, 59, 0.95);
  color: #f8f2eb;
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card .card-label {
  color: rgba(255, 255, 255, 0.7);
}

.hero-card h2 {
  font-size: 2.35rem;
  margin-bottom: 20px;
}

.service-times {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.service-times li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-times li span:first-child {
  font-weight: 800;
}

.hero-note {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 18px;
  background: rgba(255, 252, 247, 0.72);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.stats-strip article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.stats-strip strong {
  font-size: 1.25rem;
}

.stats-strip span {
  color: var(--muted);
}

.section {
  margin-top: 24px;
  padding: 34px;
  background: rgba(255, 251, 246, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.feature-grid,
.ministry-grid,
.event-grid,
.statement-grid,
.leadership-grid,
.history-timeline,
.footer-grid,
.direction-steps {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid article,
.ministry-card,
.event-card,
.statement-card,
.leader-card,
.history-card,
.history-timeline article,
.map-card,
.direction-steps article,
.sermon-list article,
.featured-sermon,
.visit-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.feature-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.feature-grid h3,
.ministry-card h3,
.event-card h3,
.featured-sermon h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.ministry-grid {
  grid-template-columns: repeat(4, 1fr);
}

.ministry-card {
  min-height: 220px;
  padding: 24px;
}

.accent-sand {
  background: linear-gradient(180deg, rgba(239, 216, 182, 0.84), rgba(255, 250, 243, 0.92));
}

.accent-clay {
  background: linear-gradient(180deg, rgba(168, 91, 70, 0.18), rgba(255, 250, 243, 0.96));
}

.accent-sky {
  background: linear-gradient(180deg, rgba(223, 238, 240, 0.98), rgba(255, 250, 243, 0.96));
}

.accent-olive {
  background: linear-gradient(180deg, rgba(127, 138, 80, 0.18), rgba(255, 250, 243, 0.96));
}

.sermons-section {
  background:
    radial-gradient(circle at top right, rgba(196, 138, 58, 0.12), transparent 30%),
    rgba(255, 251, 246, 0.8);
}

.sermon-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.featured-sermon {
  padding: 26px;
  background: linear-gradient(160deg, rgba(35, 67, 59, 0.96), rgba(24, 48, 40, 0.92));
  color: #f8f2eb;
}

.featured-sermon .text-link,
.featured-sermon .card-label {
  color: #f3c57f;
}

.featured-sermon h3 {
  font-size: 2.5rem;
}

.sermon-list {
  display: grid;
  gap: 14px;
}

.sermon-list article {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.sermon-list span,
.event-card p {
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.event-grid {
  grid-template-columns: repeat(3, 1fr);
}

.event-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.directions-section {
  background:
    radial-gradient(circle at right center, rgba(35, 67, 59, 0.08), transparent 30%),
    rgba(255, 251, 246, 0.82);
}

.directions-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.map-card,
.direction-steps article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.map-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.map-card p,
.direction-steps p {
  color: var(--muted);
  line-height: 1.75;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.direction-steps article span {
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.direction-steps article strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.statements-section {
  background:
    radial-gradient(circle at bottom left, rgba(35, 67, 59, 0.1), transparent 30%),
    rgba(255, 251, 246, 0.8);
}

.statement-grid {
  grid-template-columns: repeat(2, 1fr);
}

.statement-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 216, 182, 0.36));
}

.statement-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.statement-card p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.leadership-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.leader-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.leader-card-primary {
  background: linear-gradient(180deg, rgba(35, 67, 59, 0.92), rgba(24, 48, 40, 0.92));
  color: #f8f2eb;
}

.leader-card-primary .card-label {
  color: #f3c57f;
}

.leader-card-primary p {
  color: rgba(248, 242, 235, 0.8);
}

.leader-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.history-section {
  background:
    radial-gradient(circle at top left, rgba(168, 91, 70, 0.08), transparent 28%),
    rgba(255, 251, 246, 0.82);
}

.history-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.history-card,
.history-timeline article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.history-card-featured {
  background: linear-gradient(180deg, rgba(239, 216, 182, 0.66), rgba(255, 255, 255, 0.82));
}

.history-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.history-card p,
.history-timeline p {
  color: var(--muted);
  line-height: 1.75;
}

.history-timeline article span {
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.history-timeline article strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.visit-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.visit-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(239, 216, 182, 0.52));
}

.visit-panel strong {
  display: block;
  line-height: 1.5;
}

.visit-note {
  margin: 10px 0 0;
}

.site-footer {
  margin-top: 24px;
  padding: 28px;
  background: rgba(28, 42, 39, 0.96);
  border-radius: var(--radius-lg);
  color: rgba(248, 242, 235, 0.82);
  box-shadow: var(--shadow);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  margin: 0 0 4px;
  color: #fff8ee;
  font-weight: 800;
}

.footer-brand span {
  color: #f3c57f;
  font-weight: 700;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
}

.footer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.footer-grid article {
  padding: 8px 0;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff8ee;
  font-size: 1rem;
}

.footer-grid p {
  margin: 0 0 10px;
}

.site-footer .text-link {
  color: #f3c57f;
}

.site-footer .text-link:hover {
  color: #ffe4b4;
}

.hero,
.stats-strip,
.section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero.is-visible,
.stats-strip.is-visible,
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 4px 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .button-small {
    display: none;
  }

  .hero,
  .section-split,
  .sermon-layout,
  .visit-section,
  .history-layout,
  .directions-layout,
  .ministry-grid,
  .event-grid,
  .statement-grid,
  .leadership-grid,
  .footer-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .site-header,
  .hero,
  .section,
  .stats-strip {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .section h2,
  .featured-sermon h3,
  .hero-card h2 {
    font-size: 2.2rem;
  }

  .site-footer {
    padding: 22px;
  }

  .footer-brand {
    align-items: flex-start;
  }
}
