/* Iglesia Bautista Central de Orlando — golden white, gold and dark brown.
   Compact on purpose (Phill, 2026-11-26: "compact everything a lot more ... vertically"). */
:root {
  --ivory: #fbf7ee;
  --cream: #f3eada;
  --paper: #fffdf8;
  --gold: #b8892e;
  --gold-soft: #d9b968;
  --gold-deep: #8a6421;
  --brown: #2b1d14;
  --brown-2: #3b291c;
  --ink: #2b1d14;
  --muted: #6e5a48;
  --line: rgba(43, 29, 20, 0.12);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --radius: 14px;
  --header-h: 70px;
  --pad: clamp(40px, 5.5vw, 68px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 4px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); margin-bottom: calc(var(--header-h) * -1);
  color: #fff; transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled, .site-header.open {
  background: rgba(251, 247, 238, 0.95); color: var(--ink); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; margin-top: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 5px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.nav a:hover { border-color: var(--gold-soft); }
.header-tools { display: flex; align-items: center; gap: 12px; }

/* language switch */
.lang { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; padding: 8px 0; }
.lang-label { opacity: 0.55; transition: opacity .2s ease; user-select: none; }
.lang-label.active { opacity: 1; }
.lang:hover .lang-label { opacity: 1; }
.switch {
  position: relative; display: inline-block; width: 38px; height: 21px; border-radius: 21px;
  border: 1.5px solid currentColor; flex-shrink: 0;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-soft); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.lang.is-en .switch-thumb { transform: translateX(17px); }
.scrolled .switch-thumb, .open .switch-thumb { background: var(--gold); }

.menu-btn { display: none; width: 40px; height: 40px; border: none; background: transparent; color: inherit; cursor: pointer; padding: 9px; flex-direction: column; justify-content: center; gap: 7px; }
.menu-btn span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.open .menu-btn span:first-child { transform: translateY(4.5px) rotate(45deg); }
.open .menu-btn span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s ease, background .2s ease;
}
.btn-primary { background: var(--gold); color: #fffaf0; box-shadow: 0 8px 22px rgba(138, 100, 33, 0.26); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding: 10px 4px; }
.btn-link span { transition: transform .2s ease; }
.btn-link:hover span { transform: translateX(3px); }
.btn-link.light { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(76svh, 660px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--brown); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 16, 9, 0.55) 0%, rgba(25, 16, 9, 0.12) 30%, rgba(25, 16, 9, 0.4) 62%, rgba(25, 16, 9, 0.9) 100%),
    linear-gradient(90deg, rgba(25, 16, 9, 0.55) 0%, rgba(25, 16, 9, 0) 65%);
}
.hero-content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 7vh, 72px); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 17ch; font-weight: 600; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 34rem; margin-top: 14px; color: rgba(255, 250, 240, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; }

/* ---------- sections ---------- */
.section { padding: var(--pad) 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--brown); color: #f6eedf; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.dark .kicker { color: var(--gold-soft); }
.section-head { max-width: 640px; margin-bottom: 26px; }

/* about */
.about { display: grid; grid-template-columns: 0.95fr 1fr; gap: clamp(28px, 4.5vw, 56px); align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 22px 46px rgba(43, 29, 20, 0.16); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text > p:not(.kicker) { margin-top: 12px; color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pillars li { display: flex; gap: 12px; align-items: center; }
.pillars strong { font-size: 0.97rem; margin-right: 6px; }
.pillars li span:not(.pillar-icon) { color: var(--muted); font-size: 0.93rem; }
.pillar-icon { width: 34px; height: 34px; border-radius: 10px; background: #f1e3c2; color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.pillar-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pastors { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pastors-photo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brown); color: var(--gold-soft); font-family: var(--display); font-size: 1.15rem; font-weight: 600; overflow: hidden; }
.pastors-photo img { width: 100%; height: 100%; object-fit: cover; }
.pastors-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.pastors strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { border: 1px solid rgba(217, 185, 104, 0.28); border-radius: var(--radius); padding: 18px 22px 8px; background: rgba(255, 255, 255, 0.03); }
.service h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 6px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(246, 238, 223, 0.12); font-weight: 600; font-size: 15px; }
.time { font-family: var(--display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums; }
.time.tbd { font-family: var(--body); font-size: 0.88rem; font-weight: 500; font-style: italic; color: rgba(246, 238, 223, 0.55); }
.services-note { margin-top: 18px; color: rgba(246, 238, 223, 0.72); font-size: 0.95rem; max-width: 640px; }

/* ministries: text only, one row of six on desktop */
.ministries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 16px; }
.ministry { border-top: 2px solid var(--gold-soft); padding-top: 10px; }
.ministry h3 { font-size: 1.3rem; margin-bottom: 2px; }
.ministry p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* events: Phill's real photos */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; }
.event-photo { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 4 / 3; background: #e6d9bf; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.event:hover .event-photo img { transform: scale(1.03); }
.badge {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 6px;
  background: rgba(43, 29, 20, 0.82); color: #f6e7c4; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
}
.event h3 { font-size: 1.3rem; margin-bottom: 2px; }
.event p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* verse */
.verse { background: linear-gradient(180deg, var(--ivory), #f6ecd6); padding: clamp(32px, 4.5vw, 52px) 0; text-align: center; }
.verse .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.verse img { width: 44px; height: 44px; }
.verse blockquote { margin: 0; max-width: 760px; }
.verse p { font-family: var(--display); font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.3; font-weight: 500; font-style: italic; color: var(--brown-2); }
.verse cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--gold-deep); }

/* visit + contact */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 56px); align-items: center; }
.visit-text > p:not(.kicker) { margin-top: 12px; color: var(--muted); }
.facts { margin: 20px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.facts dd a { text-decoration: none; border-bottom: 1px solid rgba(184, 137, 46, 0.4); }
.facts dd a:hover { border-color: var(--gold); }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 22px 46px rgba(43, 29, 20, 0.14); background: #e9dfcb; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* family: IBC → Ministério IDE (last section) */
.family-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-bottom: 26px; }
.family-top .section-head { margin-bottom: 0; }
.family-lead { margin-top: 10px; color: rgba(246, 238, 223, 0.8); }
.tree { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tree-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; flex: 1; max-width: 190px; }
.tree-node img { width: 64px; height: 64px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45)); margin-bottom: 6px; }
.tree-node strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: #fbf3e2; line-height: 1.15; }
.tree-node span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.tree-arrow { color: var(--gold-soft); font-size: 1.6rem; line-height: 1; margin-bottom: 30px; }
.ide-card { display: grid; grid-template-columns: 0.85fr 1.15fr; background: #f8f1e3; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35); }
.ide-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.ide-body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.ide-head { display: flex; gap: 12px; align-items: center; }
.ide-head img { width: 44px; height: 44px; flex-shrink: 0; }
.ide-head h3 { font-size: 1.4rem; }
.ide-head p { color: var(--muted); font-size: 0.9rem; }
.ide-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ide-times li { display: flex; flex-direction: column; padding: 10px 10px 10px 0; font-size: 0.84rem; line-height: 1.35; }
.ide-times li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.ide-times li span:first-child { color: var(--gold-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ide-times .time { font-size: 1.25rem; line-height: 1.25; }
.ide-times li span:last-child { color: var(--muted); font-weight: 600; }
.ide-name { color: var(--muted); font-size: 0.88rem; }
.ide-card .btn { align-self: flex-start; }

/* footer */
.site-footer { background: #22170f; color: rgba(246, 238, 223, 0.78); padding: 28px 0 18px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(246, 238, 223, 0.1); }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand a { white-space: nowrap; text-decoration: none; }
.footer-brand strong { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; color: #fbf3e2; font-weight: 600; }
.footer-nav { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.footer-nav a, .footer-bottom a { text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 13px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .event-photo img, .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0; flex-direction: column; gap: 0;
    background: var(--ivory); color: var(--ink); padding: 4px 24px 16px; box-shadow: 0 20px 30px rgba(43,29,20,0.12);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .header-tools { margin-left: auto; }
  .ministries { grid-template-columns: repeat(3, 1fr); }
  .events { grid-template-columns: repeat(2, 1fr); }
  .ide-times { grid-template-columns: repeat(2, 1fr); }
  .ide-times li:nth-child(3) { padding-left: 0; border-left: none; }
  .ide-times li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.12rem; }
  .about, .visit, .family-top { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16 / 8; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .map { aspect-ratio: 16 / 9; }
  .ide-card { grid-template-columns: 1fr; }
  .ide-photo { aspect-ratio: 16 / 6; min-height: 0; height: auto; }
  .tree { justify-content: flex-start; }
}
@media (max-width: 560px) {
  :root { --pad: 36px; }
  .wrap { padding: 0 16px; }
  .hero { min-height: min(70svh, 560px); }
  .hero-img { object-position: 64% 40%; }
  .hero-content { padding-bottom: 32px; }
  .hero-actions .btn { flex: 1; }
  .section-head { margin-bottom: 18px; }
  .ministries { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .ministry h3, .event h3 { font-size: 1.2rem; }
  .ministry p, .event p { font-size: 0.82rem; }
  .events { gap: 16px 12px; }
  .badge { left: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 7px; }
  .facts { gap: 12px 14px; }
  .service { padding: 14px 16px 4px; }
  .ide-body { padding: 16px 16px 18px; }
  .ide-card .btn { align-self: stretch; }
  .tree { gap: 8px; }
  .tree-node img { width: 52px; height: 52px; }
  .tree-node strong { font-size: 1.05rem; }
  .tree-arrow { margin-bottom: 26px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; }
  .lang { gap: 6px; }
  .header-inner { gap: 10px; }
  .footer-nav { display: none; }
}
@media (max-width: 400px) {
  .brand { gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; max-width: 8.6em; line-height: 1.05; }
  .menu-btn { width: 36px; padding: 8px 4px; }
  .switch { width: 36px; }
  .lang.is-en .switch-thumb { transform: translateX(15px); }
}
