/* =========================================================
   Peniel Haitian Baptist Church of Lake Worth
   ========================================================= */
/* Fonts are loaded with <link> + preconnect in each page <head> (faster than @import). */

:root {
  --navy: #13284a;
  --navy-deep: #0b1a33;
  --gold: #c8a04a;
  --gold-soft: #e9d6a8;
  --red: #b5332e;
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #e6dfd0;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 40, 74, .10);
  --max: 1160px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--white { background: var(--paper); }
.section--navy { background: var(--navy); color: #dfe6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--gold); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #d8b25d; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(19,40,74,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 600; color: var(--navy); line-height: 1.1; font-size: 1.05rem; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--ink); font-size: .97rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--navy); border-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: 10px 20px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 12px; font: 700 .78rem var(--font-body); letter-spacing: .06em;
  color: var(--muted); cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.menu-btn {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px;
}
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .brand-text { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px 20px 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding: 16px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { border-color: var(--line); color: var(--gold); }
  .nav-actions { margin-top: 24px; justify-content: space-between; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,26,51,.92) 0%, rgba(11,26,51,.65) 55%, rgba(11,26,51,.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 560px; color: #dfe6f2; margin-bottom: 32px; }
.hero .eyebrow { color: var(--gold-soft); }

.page-hero {
  background: var(--navy); color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(200,160,74,.12);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { font-size: .9rem; color: #b8c4d8; }
.breadcrumb a { color: var(--gold-soft); text-decoration: none; }

/* ---------- Service times strip ---------- */
.times {
  position: relative; z-index: 2;
  margin-top: -56px;
}
.times-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.time { padding: 28px 30px; border-right: 1px solid var(--line); }
.time:last-child { border-right: 0; }
.time .day { font: 700 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.time strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); margin: 4px 0 2px; }
.time span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .times-card { grid-template-columns: 1fr; }
  .time { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--navy); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.verse {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45;
  color: #fff; margin: 0 0 12px; max-width: 760px;
}
.verse-ref { color: var(--gold-soft); font-weight: 700; letter-spacing: .08em; font-size: .9rem; text-transform: uppercase; }

/* ---------- Pastors ---------- */
.pastors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.pastor { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pastor-photo { aspect-ratio: 1 / 1; background: var(--line); overflow: hidden; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pastor-body { padding: 24px 26px 28px; }
.pastor-role { font: 700 .76rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pastor-body p { color: var(--muted); font-size: .96rem; margin: 10px 0 0; }
@media (max-width: 960px) { .pastors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pastors { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 44px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--cream); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }

.pay-badge { font: 700 1.6rem var(--font-body); color: #fff !important; }
.pay-badge--cashapp { background: #00c244 !important; }
.pay-badge--zelle { background: #6d1ed4 !important; }
.pay-handle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 10px 10px 14px; margin-bottom: 12px; min-width: 0;
}
.pay-handle strong { color: var(--navy); font-size: .98rem; overflow-wrap: break-word; min-width: 0; }
.copy-btn {
  flex-shrink: 0; border: 1px solid var(--navy); background: var(--paper); color: var(--navy);
  border-radius: 999px; padding: 6px 14px; font: 700 .8rem var(--font-body); cursor: pointer;
}
.copy-btn:hover, .copy-btn.is-copied { background: var(--navy); color: #fff; }
.card .pay-handle + .btn, .card p + .btn { margin-top: 8px; }

/* ---------- Beliefs ---------- */
.beliefs { display: grid; gap: 22px; margin-top: 40px; }
.belief { display: grid; grid-template-columns: 64px 1fr; gap: 20px; background: var(--paper); border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--gold); }
.belief-num { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.belief p { margin: 0; font-size: 1.08rem; }

/* ---------- Video ---------- */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.info-list .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--navy); }
.info-list span { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream);
  font: 400 1rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,160,74,.25); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #1e7a46; }
.form-status.err { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb9cc; padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer a { color: #dfe6f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 16px; background: #fff; border-radius: 10px; padding: 6px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* =========================================================
   Conversion components
   ========================================================= */

/* Header: secondary CTA */
.nav .btn--outline { padding: 8px 18px; }
@media (min-width: 961px) and (max-width: 1120px) { .nav .btn--visit { display: none; } }

/* Hero trust + next service */
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -12px 0 26px; color: #dfe6f2; font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.next-service {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 8px 16px 8px 12px; margin-bottom: 22px; font-size: .92rem; color: #fff;
}
.next-service:empty { display: none; }
.next-service .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200,160,74,.7); animation: pulse 2s infinite; }
.next-service.is-live .dot { background: #e5484d; }
.next-service b { color: var(--gold-soft); font-weight: 700; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,160,74,.6); } 70% { box-shadow: 0 0 0 10px rgba(200,160,74,0); } 100% { box-shadow: 0 0 0 0 rgba(200,160,74,0); } }
@media (prefers-reduced-motion: reduce) { .next-service .dot { animation: none; } }

/* First-visit steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: step; }
.step { background: var(--paper); border-radius: var(--radius); padding: 30px 28px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Give section */
.give-section .cards { margin-top: 36px; }
.give-section .card { border: 0; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.give-section .card h3 { color: var(--navy); }
.give-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .give-head { grid-template-columns: 1fr; gap: 10px; } }
.give-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: #b8c4d8; }
.give-note span { display: inline-flex; align-items: center; gap: 8px; }
.give-note svg { width: 16px; height: 16px; color: var(--gold-soft); flex-shrink: 0; }
.card--featured { position: relative; }
.card--featured::after {
  content: attr(data-badge); position: absolute; top: 18px; right: 18px;
  background: var(--gold-soft); color: var(--navy-deep); font: 700 .7rem var(--font-body);
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.memo-tip { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }

/* Plan a visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink); }
.check-list li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a33' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.form-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.form .btn { width: 100%; justify-content: center; }
.form-success { text-align: center; padding: 20px 0; }
.form-success h3 { font-size: 1.6rem; }
.optional { font-weight: 400; color: var(--muted); }

/* Sticky mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--navy-deep); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px;
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px;
    border-radius: 10px; color: #fff; text-decoration: none; font: 700 .76rem var(--font-body); letter-spacing: .03em;
  }
  .mobile-bar a svg { width: 20px; height: 20px; }
  .mobile-bar a.is-primary { background: var(--gold); color: var(--navy-deep); }
  body { padding-bottom: 72px; }
  body.nav-open .mobile-bar { transform: translateY(110%); }
}

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* =========================================================
   Facility rental
   ========================================================= */
.spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
@media (max-width: 860px) { .spaces { grid-template-columns: 1fr; } }
.space { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.space-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); display: grid; place-items: center; color: var(--gold-soft); position: relative; overflow: hidden; }
.space-media img { width: 100%; height: 100%; object-fit: cover; }
.space-media svg { width: 64px; height: 64px; opacity: .7; }
.space-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.space-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; }
.tags li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; color: var(--navy); font-weight: 500; }
.space .btn { margin-top: auto; align-self: flex-start; }

/* Availability calendar */
.avail { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.avail-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.avail-top h3 { margin: 0; font-size: 1.4rem; }
.avail-nav { display: flex; align-items: center; gap: 8px; }
.avail-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.avail-nav button:hover:not(:disabled) { border-color: var(--navy); }
.avail-nav button:disabled { opacity: .35; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--cream); }
.seg button { border: 0; background: transparent; padding: 8px 14px; font: 700 .82rem var(--font-body); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font: 700 .72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1 / 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 600 .95rem var(--font-body); color: var(--ink); cursor: pointer; position: relative; padding: 0;
}
.cal-day:hover:not(:disabled) { border-color: var(--gold); }
.cal-day:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.cal-day:disabled { background: transparent; border-color: transparent; color: #b9bfca; cursor: default; }
.cal-day .pip { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; }
.cal-day[data-status="partial"] .pip { background: var(--gold); }
.cal-day[data-status="booked"] { background: #f3eee4; color: var(--muted); }
.cal-day[data-status="booked"] .pip { background: var(--red); }
.cal-day[data-status="unknown"] .pip { background: transparent; }
.cal-day.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-day.is-today::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.cal-day.is-selected.is-today::after { background: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cal-detail { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--cream); font-size: .95rem; min-height: 1.5em; }
.cal-detail:empty { display: none; }
.cal-detail ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.cal-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 420px) { .cal-grid { gap: 4px; } .cal-day { border-radius: 8px; font-size: .85rem; } }

.rental-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); align-items: start; margin-top: 44px; }
@media (max-width: 960px) { .rental-grid { grid-template-columns: 1fr; } }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-cards label { position: relative; display: block; margin: 0; cursor: pointer; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards span {
  display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
  font-weight: 700; font-size: .88rem; color: var(--navy);
}
.radio-cards input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-cards input:focus-visible + span { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
@media (max-width: 480px) { .radio-cards { grid-template-columns: 1fr; } }
.field.is-hidden { display: none; }
.conflict { color: var(--red); font-size: .88rem; margin-top: 6px; font-weight: 500; }
.conflict:empty { display: none; }

.process { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: p; }
.process li { position: relative; padding-top: 52px; }
.process li::before {
  counter-increment: p; content: counter(p); position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy-deep);
  display: grid; place-items: center; font: 700 1rem var(--font-body);
}
.process li::after { content: ""; position: absolute; top: 19px; left: 46px; right: -10px; height: 2px; background: rgba(255,255,255,.18); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process p { margin: 0; color: #c9d3e3; font-size: .95rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process li { padding: 0 0 0 54px; }
  .process li::after { display: none; }
}

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Header fit with 5 nav items */
.nav a, .nav .btn, .brand-text { white-space: nowrap; }
@media (min-width: 961px) {
  .nav { gap: 22px; }
  .nav ul { gap: 20px; }
}
@media (min-width: 961px) and (max-width: 1279px) { .brand-text { display: none; } }
@media (min-width: 961px) and (max-width: 1100px) { .nav .btn--visit { display: none; } .nav ul { gap: 16px; } }

/* Checkbox rows inside fields use normal weight */
.field label.check { font-weight: 400; font-size: .92rem; color: var(--ink); margin-bottom: 0; }

/* Header: wider than page content so the full church name fits beside the nav; never squeeze the brand under the links */
.site-header .header-inner { max-width: 1360px; }
.brand, .nav { flex-shrink: 0; }

/* Rental page: interim "call the coordinator" notice */
.rental-notice { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 0 auto 32px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 12px; }
.rental-notice .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.rental-notice .icon svg { width: 22px; height: 22px; }
.rental-notice p { margin: 0; color: var(--ink); }
.rental-notice a { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Language toggle at the top of the hero, on the navy background */
.lang-toggle--hero { display: flex; width: fit-content; margin-bottom: 20px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.lang-toggle--hero button { color: #dfe6f2; padding: 8px 16px; }
.lang-toggle--hero button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }

/* Phones: the header's backdrop-filter traps the fixed menu panel inside the 78px header bar, so drop it there */
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
}

/* Service times: 4 days fit one row on desktop; 2x2 on tablets (phones stack via the 760px rule above) */
@media (min-width: 761px) and (max-width: 1100px) {
  .times-card { grid-template-columns: 1fr 1fr; }
  .time:nth-child(2n) { border-right: 0; }
  .time:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
