/* HOFMI – House of Fire Ministries International
   Colours come from the church logo: fire red, flame orange and gold, with warm dark brown.
   Type is deliberately modest: one sans family (Figtree), Lora italic only for scripture. */
:root {
  --white: #FFFFFF;
  --paper: #F8F5F2;
  --fire: #C4231A;        /* logo red */
  --fire-dark: #A21C14;
  --flame: #E8641B;       /* logo orange */
  --gold: #F2B01E;        /* logo gold */
  --gold-dark: #D99A0B;
  --ink: #2B211C;
  --stone: #6E625B;
  --line: #E8DFD8;
  --night: #1E140F;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --verse: "Lora", Georgia, "Times New Roman", serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --gutter: clamp(16px, 4vw, 36px);
  --maxw: 1140px;
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--fire); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--body); font-weight: 700; line-height: 1.2; margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--stone); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: calc(var(--bar-h) - 1px); }
svg { flex: none; }

/* ---------- buttons: logo red (main) and flame gold (second) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-fire { background: var(--fire); color: var(--white); }
.btn-fire:hover { background: var(--fire-dark); }
.btn-gold { background: var(--gold); color: #2B1B08; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: var(--white); border-color: #D9CCC2; color: var(--ink); }
.btn-outline:hover { border-color: var(--fire); color: var(--fire); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--fire); color: var(--fire); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar-h); padding: 0 var(--gutter); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-solid { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 54px; height: 54px; mix-blend-mode: multiply; }
.brand-name { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--fire); }
.nav a.active:not(.nav-cta) { color: var(--fire); }
.nav a.active:not(.nav-cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--fire); }
.nav .nav-cta { margin-left: 8px; background: var(--fire); color: var(--white); font-weight: 600; padding: 9px 16px; }
.nav .nav-cta:hover { background: var(--fire-dark); color: var(--white); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; flex: none; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: .9rem; }
  .menu-btn { display: block; }
  .nav { position: fixed; top: var(--bar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -20px rgba(43,33,28,.4); transform: translateY(-6px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 1.02rem; padding: 13px 2px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a.active:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border: 0; border-radius: var(--r-sm); padding: 12px; }
}

/* ---------- hero: church photos shuffling ---------- */
.hero { position: relative; min-height: min(78vh, 700px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity 1.4s ease; }
.hero-frame.on { opacity: 1; animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(30,20,15,.82) 0%, rgba(30,20,15,.55) 40%, rgba(30,20,15,.1) 75%),
  linear-gradient(0deg, rgba(30,20,15,.7) 0%, rgba(30,20,15,0) 45%); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter) clamp(96px, 10vw, 120px); }
.hero-content > * { max-width: 560px; }
.hero-kicker { font-weight: 600; color: #FFD27A; margin: 0 0 8px; font-size: .95rem; }
.hero-title { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.12; margin-bottom: 12px; text-wrap: balance; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.12rem); color: rgba(255,255,255,.88); margin-bottom: 22px; }
.hero-theme { display: inline-block; margin: -8px 0 20px; padding: 4px 12px; border-radius: var(--r-sm); background: rgba(242,176,30,.18); border: 1px solid rgba(242,176,30,.5); color: #FFE2A0; font-weight: 600; font-size: .88rem; }
.hero-content { animation: rise .8s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero { min-height: 80svh; }
  .hero::before { background: linear-gradient(0deg, rgba(30,20,15,.92) 0%, rgba(30,20,15,.6) 50%, rgba(30,20,15,.12) 85%); }
  .hero-content { padding-bottom: 88px; }
  .hero .btn { flex: 1 1 100%; }
}

/* ---------- info bar ---------- */
.infobar-wrap { position: relative; z-index: 5; max-width: var(--maxw); margin: -56px auto 0; padding: 0 var(--gutter); }
.infobar { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); background: var(--white); border-radius: var(--r-lg); box-shadow: 0 18px 40px -26px rgba(43,33,28,.5), 0 0 0 1px var(--line); overflow: hidden; }
.infobar[data-cols="2"] { --cols: 2; }
.infobar[data-cols="1"] { --cols: 1; }
.info { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; }
.info + .info { border-left: 1px solid var(--line); }
.info-ic { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: #FCEDE8; color: var(--fire); flex: none; }
.info-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info h2 { font-size: .8rem; font-weight: 600; color: var(--stone); margin: 0 0 2px; letter-spacing: 0; }
.info p { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.55; }
.info a { color: var(--ink); text-decoration: none; }
.info a:hover { color: var(--fire); }
@media (max-width: 760px) { .infobar { grid-template-columns: 1fr; } .info + .info { border-left: 0; border-top: 1px solid var(--line); } .info { padding: 14px 18px; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(22px, 3vw, 32px); max-width: 680px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head-row p { margin: 0; }
.sec-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sec-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--fire), var(--gold)); }
.eyebrow { font-weight: 600; color: var(--fire); margin: 0 0 6px; font-size: .9rem; }
.eyebrow-light { color: #FFC56A; }

/* ---------- church philosophy ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 780px) { .vm { grid-template-columns: 1fr; } }
.vm-card { position: relative; padding: 24px 26px; border-radius: var(--r-lg); background: var(--paper); border-left: 4px solid var(--fire); }
.vm-mission { border-left-color: var(--flame); }
.vm-label { font-size: .8rem; font-weight: 700; color: var(--fire); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.vm-mission .vm-label { color: #B9520F; }
.vm-q { color: var(--stone); font-size: .95rem; margin: 0 0 10px; }
.vm-a { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; line-height: 1.3; margin: 0 0 16px; }
.verse { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.verse p { margin: 0 0 6px; font-family: var(--verse); font-style: italic; font-size: 1rem; color: #4A3D35; line-height: 1.6; }
.verse cite { font-style: normal; font-weight: 600; color: var(--fire); font-size: .88rem; }

.values { margin-top: clamp(40px, 6vw, 64px); }
.values-title { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 2px; }
.values .vm-q { margin-bottom: 16px; }
.value-grid { list-style: none; counter-reset: v; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; gap: 8px; } }
.value { counter-increment: v; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .96rem; line-height: 1.35; cursor: default; transition: border-color .2s, background .2s; }
.value::before { content: counter(v); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: var(--white); background: linear-gradient(135deg, var(--gold), var(--fire)); }
.value.lit { border-color: var(--gold); background: #FFF8EA; }
@media (hover: hover) { .value:hover { border-color: var(--gold); background: #FFF8EA; } }

/* ---------- 3rd section: Moments slideshow ---------- */
.moments { position: relative; background: var(--night); color: var(--white); padding: clamp(40px, 6vw, 64px) 0 clamp(36px, 5vw, 56px); overflow: hidden; }
.moments-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.moments .sec-title { color: var(--white); }
.moments-count { margin: 0; font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel { position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 16 / 9; height: min(calc((100vw - 2 * var(--gutter)) * 9 / 16), calc(100svh - var(--bar-h) - 140px)); max-height: 675px; width: auto; border-radius: var(--r-lg); overflow: hidden; background: #0E0907; outline: none; }
@media (max-width: 700px) { .reel { aspect-ratio: 4 / 3; height: auto; max-height: none; margin: 0; border-radius: 0; } }
.reel-stage { position: absolute; inset: 0; cursor: zoom-in; }
.reel-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: rgba(255,255,255,.6); }
.rslide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; overflow: hidden; }
.rslide.on { opacity: 1; z-index: 1; }
.rslide-bg { position: absolute; inset: -50px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); }
.rslide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.rslide.kb img { animation: kb0 9s ease-out both; }
.rslide.kb[data-kb="1"] img { animation-name: kb1; }
.rslide.kb[data-kb="2"] img { animation-name: kb2; }
.rslide.kb[data-kb="3"] img { animation-name: kb3; }
@keyframes kb0 { from { transform: scale(1.08) translate(-1%, .6%); } to { transform: scale(1.01); } }
@keyframes kb1 { from { transform: scale(1.01); } to { transform: scale(1.08) translate(1%, -.6%); } }
@keyframes kb2 { from { transform: scale(1.08) translate(1%, .6%); } to { transform: scale(1.01); } }
@keyframes kb3 { from { transform: scale(1.01); } to { transform: scale(1.07) translate(-1%, -.6%); } }
.reel.paused .rslide.kb img { animation-play-state: paused; }
.reel-bars { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 4; display: flex; gap: 4px; }
.bar { flex: 1; height: 14px; padding: 5px 0; border: 0; background: none; cursor: pointer; }
.bar::before { content: ""; display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.bar i { display: block; height: 3px; margin-top: -3px; width: 0; border-radius: 2px; background: var(--gold); }
.bar.done i { width: 100%; }
.bar.now i { width: 0; }
.reel.paused .bar.now i, .reel:not(.paused) .bar.now i[style*="none"] { width: 100%; }
@keyframes barfill { from { width: 0; } to { width: 100%; } }
.reel-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 56px 18px 16px; background: linear-gradient(transparent, rgba(14,9,7,.82)); pointer-events: none; }
.reel-foot > * { pointer-events: auto; }
.reel-caption { margin: 0; font-weight: 600; font-size: 1rem; max-width: 60ch; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.reel-controls { display: flex; align-items: center; gap: 6px; flex: none; }
.rc { width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--white); background: rgba(255,255,255,.14); backdrop-filter: blur(6px); transition: background .15s; }
.rc:hover { background: rgba(255,255,255,.28); }
.rc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-play { background: var(--fire); }
.rc-play:hover { background: var(--fire-dark); }
.rc .i-play { display: none; fill: currentColor; stroke: none; margin-left: 2px; }
.reel.paused .rc .i-play { display: block; } .reel.paused .rc .i-pause { display: none; }
.rc-sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 4px; }
@media (max-width: 700px) { .reel-foot { flex-direction: column; align-items: stretch; } .reel-controls { justify-content: center; } .rc-sep { display: none; } }
.reel.is-empty .reel-bars, .reel.is-empty .reel-foot { display: none; }
.reel-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 1200px; margin: 14px auto 0; padding: 4px var(--gutter) 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.rthumb { flex: none; width: 88px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; }
.rthumb:hover { opacity: .85; }
.rthumb.on { opacity: 1; border-color: var(--gold); }
@media (max-width: 700px) { .rthumb { width: 68px; } }

/* ---------- full-screen viewer ---------- */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,8,6,.97); color: var(--white); }
.viewer::backdrop { background: rgba(12,8,6,.92); }
.viewer[open] { display: grid; place-items: center; }
.viewer-fig { margin: 0; display: grid; place-items: center; gap: 10px; width: 100%; height: 100%; padding: 64px 64px 44px; }
.viewer-fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.viewer-fig figcaption { font-weight: 600; text-align: center; }
.viewer-count { position: absolute; top: 20px; left: 20px; margin: 0; font-weight: 600; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.viewer-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-nav.prev { left: 12px; } .viewer-nav.next { right: 12px; }
@media (max-width: 700px) { .viewer-fig { padding: 60px 8px 36px; } .viewer-nav { top: auto; bottom: 14px; transform: none; } }

/* ---------- watch ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: transparent; font-weight: 600; font-size: .92rem; color: var(--stone); cursor: pointer; }
.tab svg { width: 18px; height: 18px; }
.tab .fill { fill: currentColor; }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(43,33,28,.12); }
.tab[aria-selected="true"]#tab-yt .fill { fill: #E62117; }
.tab[aria-selected="true"]#tab-fb .fill { fill: #1877F2; }
.yt-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; }
@media (max-width: 860px) { .yt-feature { grid-template-columns: 1fr; } }
.yt-player { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--night); }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--fire); display: grid; place-items: center; transition: transform .2s; }
.yt-poster:hover .yt-play { transform: scale(1.06); }
.yt-play svg { width: 26px; height: 26px; fill: var(--white); margin-left: 3px; }
.yt-label { color: var(--fire); font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
.yt-info h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 6px; }
.yt-channel { margin: 14px 0 0; font-weight: 600; }
.yt-loading, .yt-empty { grid-column: 1 / -1; padding: 32px; border-radius: var(--r-lg); background: var(--paper); text-align: center; color: var(--stone); }
.yt-empty .btn-row { justify-content: center; margin-top: 8px; }
.yt-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.yt-list:empty { display: none; }
.yt-list li { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.yt-list a { flex: 1; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.yt-list img { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.yt-list b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.35; }
.yt-list small { color: var(--stone); }
.fb-wrap { display: grid; grid-template-columns: minmax(280px, 500px) 1fr; gap: clamp(18px, 4vw, 40px); align-items: start; }
@media (max-width: 860px) { .fb-wrap { grid-template-columns: 1fr; } .fb-side { order: -1; } }
.fb-frame { min-height: 200px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); display: flex; justify-content: center; }
.fb-frame iframe { max-width: 100%; }
.fb-side h3 { font-size: 1.25rem; }
.fb-side p { color: var(--stone); margin-top: 8px; }

/* ---------- news ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.post-lead { grid-column: 1 / -1; }
@media (min-width: 821px) { .post-lead.has-img { display: grid; grid-template-columns: 1.1fr 1fr; } }
.post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.post-lead .post-img { aspect-ratio: auto; min-height: 240px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover .post-img img { transform: scale(1.03); }
.post-main { padding: 18px 22px 20px; }
.post-meta { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; color: var(--stone); font-size: .85rem; }
.pin { background: var(--gold); color: #2B1B08; font-weight: 700; padding: 1px 8px; border-radius: 4px; font-size: .75rem; }
.post h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-lead h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--fire); }
.post-body { color: #4A3D35; font-size: .97rem; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- gallery (masonry) ---------- */
.masonry { columns: 4 220px; column-gap: 12px; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--paper); break-inside: avoid; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tile-over { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 12px; background: linear-gradient(transparent 55%, rgba(30,20,15,.7)); color: var(--white); opacity: 0; transition: opacity .25s; text-align: left; }
.tile-cap { font-weight: 600; font-size: .9rem; }
.tile-zoom { margin-left: auto; width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,.2); }
.tile-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover .tile-over, .tile:focus-visible .tile-over { opacity: 1; }
@media (hover: none) { .tile-over { display: none; } }
.more-row { display: flex; justify-content: center; margin-top: 14px; }
.empty-note { text-align: center; color: var(--stone); padding: 32px; background: var(--paper); border-radius: var(--r-lg); }

/* ---------- visit + prayer ---------- */
.visit { background: var(--night); color: var(--white); }
.visit .sec-title { color: var(--white); margin-bottom: 18px; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-list { margin: 0; display: grid; }
.visit-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 480px) { .visit-list div { grid-template-columns: 1fr; gap: 4px; } }
.visit-list dt { color: #FFC56A; font-weight: 600; font-size: .92rem; }
.visit-list dd { margin: 0; font-size: .98rem; }
.visit-list a { color: var(--white); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); text-decoration: none; font-weight: 600; font-size: .92rem; }
.visit-list .chip { color: var(--white); }
.chip:hover { background: var(--fire); border-color: var(--fire); }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-wa:hover { background: #1FA855; border-color: #1FA855; }
.link-arrow { font-weight: 600; }
.map { margin-top: 20px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #2A1D16; }
.map iframe { width: 100%; height: 100%; border: 0; }
.prayer { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 22px 22px 20px; max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 880px) { .prayer { justify-self: stretch; max-width: none; } }
.prayer h3 { font-size: 1.2rem; margin-bottom: 4px; }
.prayer-note { color: var(--stone); font-size: .88rem; margin-bottom: 4px; }
.pr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .pr-row { grid-template-columns: 1fr; gap: 0; } }
.prayer label { display: block; font-weight: 600; font-size: .88rem; margin: 12px 0 5px; }
.prayer label span { font-weight: 400; color: var(--stone); }
.prayer input, .prayer textarea { width: 100%; padding: 9px 11px; border: 1px solid #D9CCC2; border-radius: var(--r-sm); background: var(--white); font: inherit; font-size: .95rem; color: inherit; }
.prayer textarea { resize: vertical; min-height: 96px; }
.prayer input:focus, .prayer textarea:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(242,176,30,.28); }
.prayer .btn { margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.2em; margin: 10px 0 6px; font-weight: 600; font-size: .9rem; }
.form-msg.ok { color: #1E7A3E; }
.form-msg.err { color: var(--fire); }

/* ---------- footer ---------- */
.footer { background: #160E0A; color: rgba(255,255,255,.75); padding: 44px 0 22px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: inline-block; background: var(--white); border-radius: var(--r); padding: 4px; }
.footer-logo img { width: 84px; height: 84px; }
.footer-brand p { margin: 10px 0 0; color: rgba(255,255,255,.85); }
.footer h2 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 8px; margin-bottom: 14px; }
.social { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:hover { background: var(--fire); color: var(--white) !important; }
.copyright { text-align: center; margin: 32px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: rgba(255,255,255,.5); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 40; }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ---------- share sheet ---------- */
.sharesheet { width: min(420px, calc(100vw - 24px)); border: 0; border-radius: var(--r-lg); padding: 20px; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sharesheet::backdrop { background: rgba(30,20,15,.55); }
@media (max-width: 600px) {
  .sharesheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .sharesheet[open] { animation: sheet .22s ease-out; }
}
@keyframes sheet { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.ss-head { display: flex; justify-content: space-between; align-items: center; }
.ss-head h2 { font-size: 1.15rem; }
.ss-close { width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.ss-what { color: var(--stone); margin: 2px 0 16px; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.ss-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink); }
.ss-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.ss-ic svg { width: 24px; height: 24px; fill: var(--white); }
.ss-whatsapp .ss-ic { background: #25D366; }
.ss-facebook .ss-ic { background: #1877F2; }
.ss-x .ss-ic { background: #000; }
.ss-telegram .ss-ic { background: #229ED9; }
.ss-email .ss-ic { background: var(--fire); }
.ss-link .ss-ic, .ss-more .ss-ic { background: var(--paper); }
.ss-link svg, .ss-more svg { fill: var(--ink); }
.ss-toast { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 600; color: #1E7A3E; }

/* ---------- single post page ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.article-date { color: var(--stone); margin-bottom: 6px; font-size: .9rem; }
.article h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 20px; }
.article-img { width: 100%; border-radius: var(--r-lg); margin-bottom: 24px; }
.article-body { font-size: 1.04rem; line-height: 1.75; margin-bottom: 28px; }
