:root {
  --blue: #1e3a5f;
  --gold: #c79a3b;
  --green: #4c7a5a;
  --ink: #182333;
  --muted: #5e6978;
  --paper: #fafaf8;
  --white: #ffffff;
  --line: #e5e1d8;
  --shadow: 0 18px 50px rgb(24 35 51 / 13%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgb(250 250 248 / 90%);
  border-bottom: 1px solid rgb(229 225 216 / 80%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  color: var(--blue);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.82rem;
}

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

.site-nav a,
.nav-toggle,
.button {
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: #eef3f1;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  padding: 9px 12px;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: clamp(80px, 14vw, 160px) clamp(18px, 5vw, 64px) clamp(42px, 8vw, 84px);
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgb(15 32 50 / 78%), rgb(15 32 50 / 35) 55%, rgb(15 32 50 / 12));
}

.home-hero { background-image: url("../images/building/church-aerial.png"); }
.visit-hero { background-image: url("../images/building/church-front.jpg"); }

.hero-copy {
  position: relative;
  width: min(760px, 100%);
}

.hero h1,
.page-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.page-intro p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 850;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--gold);
  color: #1b1408;
  box-shadow: 0 10px 30px rgb(199 154 59 / 24%);
}

.button.ghost {
  background: rgb(255 255 255 / 88%);
  color: var(--blue);
  border-color: rgb(255 255 255 / 38%);
}

button.button {
  cursor: pointer;
  font: inherit;
}

.compact-actions {
  margin-top: 18px;
}

.section,
.page-intro,
.visit-card-band,
.site-footer {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section h2,
.page-intro h1 {
  color: var(--blue);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.muted { background: #f1f4ef; }

.soft-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(24px, 4vw, 40px);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgb(24 35 51 / 6%);
}

.soft-cta h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

.soft-cta p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.visit-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visit-card img,
.rounded-media {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.visit-card img { aspect-ratio: 4 / 3; }
.rounded-media { aspect-ratio: 4 / 3; }

.quick-facts {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.quick-facts div {
  padding: 14px 16px;
  background: #f7f6f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd { margin: 2px 0 0; font-weight: 750; }

.feature-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.question-grid article,
.check-grid p,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 26px rgb(24 35 51 / 6%);
}

.feature-grid h3,
.feature-grid h2 { margin-top: 0; color: var(--blue); }

.question-grid article {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.question-grid h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1.2;
}

.question-grid p {
  margin: 0 0 12px;
  color: var(--muted);
}

.question-grid p:last-child,
.feature-grid p:last-child {
  margin-bottom: 0;
}

.scripture-line {
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 780;
}

.scripture-button {
  width: 100%;
  border: 1px solid rgb(30 58 95 / 18%);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f6f1;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.scripture-button:hover,
.scripture-button:focus-visible {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgb(199 154 59 / 20%);
}

.card-step {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.split,
.schedule-layout,
.find-us,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.page-intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.check-grid p::before {
  content: "✓";
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  padding-left: 20px;
  border-left: 4px solid var(--gold);
}

.timeline time {
  color: var(--green);
  font-weight: 850;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  border: 0;
}

.map-card.compact iframe { height: 360px; }
.map-card.large iframe { height: min(72vh, 680px); }

.life-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.life-group-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgb(24 35 51 / 6%);
}

.life-group-grid h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 1.25rem;
}

.life-group-grid p { margin: 0; color: var(--muted); }

.scripture-dialog {
  width: min(980px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.scripture-dialog::backdrop {
  background: rgb(24 35 51 / 58%);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  position: relative;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dialog-shell h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.dialog-shell p:not(.eyebrow) {
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.scripture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.scripture-ref-choice {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f6f1;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.scripture-ref-choice.active {
  border-color: var(--gold);
  background: rgb(199 154 59 / 16%);
}

.scripture-frame-wrap {
  height: min(58vh, 620px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f6f1;
  margin-bottom: 18px;
}

.scripture-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fdfcf8;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgb(199 154 59 / 20%);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.learning-path,
.info-rows {
  display: grid;
  gap: 18px;
}

.learning-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.learning-path article,
.info-rows article,
.resource-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgb(24 35 51 / 6%);
}

.learning-path article {
  min-height: 420px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 850;
}

.learning-path h3,
.info-rows h3,
.resource-panel h3 {
  margin: 0 0 12px;
  color: var(--blue);
}

.learning-path p,
.info-rows p,
.resource-panel li {
  color: var(--muted);
}

.seekers-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.seekers-layout h2 {
  margin-top: 0;
}

.resource-panel {
  padding: 26px;
}

.resource-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.resource-panel a,
.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  text-decoration-color: rgb(199 154 59 / 70%);
  text-underline-offset: 3px;
}

.resource-panel a:hover,
.resource-panel a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: #122844;
  text-decoration-thickness: 2px;
  outline: none;
}

.info-rows article {
  padding: 26px;
}

.small-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--blue);
  color: var(--white);
}

.site-footer p { color: rgb(255 255 255 / 78%); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .visit-card,
  .split,
  .schedule-layout,
  .find-us,
  .contact-layout,
  .seekers-layout {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .question-grid,
  .check-grid,
  .life-group-grid,
  .learning-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .soft-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .soft-cta .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand span:last-child { max-width: 190px; }
  .hero { min-height: 78vh; }
  .feature-grid,
  .question-grid,
  .check-grid,
  .learning-path {
    grid-template-columns: 1fr;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .life-group-grid { grid-template-columns: 1fr; }
}
