/* ==========================================================================
   Let Heaven Smile — components
   ========================================================================== */

/* --------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { height: 54px; width: auto; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.02rem; line-height: 1.05; letter-spacing: -.015em;
  color: var(--brand-ink); text-transform: uppercase;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a:not(.btn) {
  padding: .6rem .9rem; border-radius: 8px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: var(--fs-sm);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav a:not(.btn):hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav a[aria-current="page"]:not(.btn) { color: var(--brand-deep); background: var(--brand-tint); }
.nav .btn { margin-left: .5rem; padding: .8rem 1.5rem; }
.nav .btn:hover { background: var(--sun-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; padding: 1rem var(--gutter) 1.75rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    max-height: calc(100dvh - 78px); overflow-y: auto;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85rem .9rem; font-size: 1.05rem; }
  .nav .btn { margin: .6rem 0 0; }
}

/* --------------------------------------------------------- hero */
.hero { position: relative; background: var(--brand-ink); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,42,58,.55) 0%, rgba(6,42,58,.72) 55%, rgba(6,42,58,.92) 100%),
    linear-gradient(90deg, rgba(6,42,58,.80) 0%, rgba(6,42,58,.25) 70%);
}
.hero__inner {
  padding-block: clamp(4rem, 2.5rem + 8vw, 8rem);
  max-width: 52rem;
}
.hero h1 {
  font-size: var(--fs-hero); color: #fff;
  margin-bottom: 1.15rem;
}
.hero .lead { color: rgba(255,255,255,.9); max-width: 34rem; }
.hero .btn-row { margin-top: 2rem; }

.hero__verse {
  display: inline-flex; flex-direction: column; gap: .15rem;
  margin-bottom: 1.5rem; padding-left: 1rem;
  border-left: 3px solid var(--sun);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-lead); color: #fff; font-style: italic;
}
.hero__verse cite {
  font-family: var(--font-body); font-style: normal;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sun);
}

/* page hero (interior pages) */
.page-hero {
  background: var(--brand-ink); color: #fff;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  position: relative; isolation: isolate; overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,42,58,.94) 20%, rgba(6,42,58,.7) 100%);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 52ch; margin-top: 1rem; }
.page-hero .eyebrow { color: var(--brand); margin-bottom: .9rem; }
.page-hero .eyebrow::before { background: var(--sun); }

/* --------------------------------------------------------- cards */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body h3 { color: var(--brand-ink); }
.card__body p { color: var(--ink-2); font-size: var(--fs-sm); }
.card__link {
  margin-top: auto; padding-top: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--brand-deep); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.card__link::after { content: "→"; transition: transform .18s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* --------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: rgba(255,255,255,.16); }
.stat { background: var(--brand-ink); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 1.25rem; text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1; color: var(--sun); letter-spacing: -.03em;
}
.stat__label { margin-top: .6rem; font-size: var(--fs-sm); color: rgba(255,255,255,.78); }

/* --------------------------------------------------------- split feature */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
.split__media--stack::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 62%; border-radius: var(--radius-lg);
  background: var(--brand); z-index: -1;
}
.split__body > * + * { margin-top: 1.1rem; }

/* --------------------------------------------------------- quote */
.quote {
  border-left: 4px solid var(--brand);
  padding: .35rem 0 .35rem 1.5rem;
}
.quote p {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem);
  line-height: 1.35; color: var(--brand-ink); letter-spacing: -.01em;
}
.quote cite {
  display: block; margin-top: .9rem; font-style: normal;
  font-size: var(--fs-sm); font-weight: 700; color: var(--brand-deep);
}
.section--ink .quote { border-color: var(--sun); }
.section--ink .quote p { color: #fff; }
.section--ink .quote cite { color: var(--sun); }

/* --------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
/* Fixed 3-up so a nine-image set lands as a clean 3x3 instead of 4+4+1. */
@media (min-width: 720px) { .gallery--3up { grid-template-columns: repeat(3, 1fr); } }
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); transition: transform .3s var(--ease), filter .3s var(--ease);
}
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery a:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* --------------------------------------------------------- people */
/* Narrower track than .grid-4 so a five-person board sits on one row
   instead of leaving a single orphan card on a second row. */
.grid-people {
  display: grid;
  gap: clamp(1.25rem, .6rem + 1.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
}
.person { text-align: left; }
.person__photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--paper-2);
  margin-bottom: 1rem;
}
.person h3 { font-size: 1.12rem; color: var(--brand-ink); }
.person__role { font-size: var(--fs-sm); color: var(--brand-deep); font-weight: 600; margin-top: .15rem; }
.person__bio { font-size: var(--fs-sm); color: var(--ink-2); margin-top: .6rem; }

/* --------------------------------------------------------- CTA band */
.cta-band {
  background: var(--brand);
  color: #fff; text-align: center;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 52ch; margin: 1rem auto 0; font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* --------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--brand-ink); }
.field .req { color: #C0392B; }
.field input, .field textarea {
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-size: var(--fs-body); width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,174,239,.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: var(--fs-sm); color: var(--ink-3); }

/* --------------------------------------------------------- contact tiles */
.contact-tile {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: #fff;
}
.contact-tile__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand-deep);
  display: grid; place-items: center;
}
.contact-tile__icon svg { width: 21px; height: 21px; }
.contact-tile h3 { font-size: 1rem; color: var(--brand-ink); }
.contact-tile a, .contact-tile p { font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; display: block; margin-top: .2rem; }
.contact-tile a:hover { color: var(--brand-deep); text-decoration: underline; }

/* --------------------------------------------------------- footer */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.site-footer h4 {
  font-family: var(--font-display); color: #fff; font-size: var(--fs-xs);
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer-grid > :first-child { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: var(--fs-sm); line-height: 1.6; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: var(--fs-xs); color: rgba(255,255,255,.55);
}

/* --------------------------------------------------------- editorial note (build-time placeholder marker) */
.needs-content {
  border: 1px dashed #D9822B; background: #FFF7ED;
  border-radius: 12px; padding: 1rem 1.15rem;
  font-size: var(--fs-sm); color: #7A4A12;
}
.needs-content strong { color: #9A5A12; }

/* --------------------------------------------------------- reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- payment handle
   The Cash App tag / Zelle address. Meant to be read off a phone screen and
   copied, so: big, high contrast, wraps rather than overflows, and one click
   selects the whole thing for people whose browser blocks the Copy button. */
.card__body .pay-handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.9rem, .72rem + .95vw, 1.15rem);   /* must not wrap mid-word on a 375px phone */
  color: var(--brand-ink);
  background: var(--brand-tint);
  border-radius: 8px;
  padding: .75rem .9rem;
  margin-top: .2rem;
  overflow-wrap: anywhere;
  user-select: all;
}

/* --------------------------------------------------------- contact form status */
.form-status:empty { display: none; }
.form-status {
  font-size: var(--fs-sm);
  padding: .75rem .9rem;
  border-radius: 8px;
  border-left: 3px solid currentColor;
}
.form-status[data-state="ok"]    { background: #E9F7EF; color: #10562C; }
.form-status[data-state="error"] { background: #FFF4E5; color: #8A4B00; }
