/* ==========================================================================
   vchurch.us · inner pages (About, Visit, Connect), service times, FAQ, map,
   and the pop-up forms (prayer, meeting, small group, contact, give).
   Brand tokens come from site.css; nothing here redefines them.
   ========================================================================== */

/* ---------- Page hero ---------- */
.pg-hero { padding-block: clamp(72px, 10vw, 140px) clamp(56px, 7vw, 96px); text-align: center; }
.pg-hero .vtitle { margin-inline: auto; }
.pg-hero__lede { max-width: 58ch; margin: 22px auto 0; font-size: 18px; color: var(--silver); }
.pg-hero .btn-row { justify-content: center; }
.pg-hero__word { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-size: clamp(120px, 22vw, 340px); opacity: .14; pointer-events: none; }

/* ---------- Two-column editorial blocks ---------- */
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pg-split--top { align-items: start; }
.pg-split .media { aspect-ratio: 4 / 5; }
.pg-copy p + p { margin-top: 16px; }
.pg-copy .kicker { margin-bottom: 14px; }
.vsec--light .pg-copy p { color: var(--ink); }
.vsec--dark .pg-copy p { color: var(--silver); }
.pg-copy .btn-row { margin-top: 30px; }
@media (max-width: 860px) {
  .pg-split { grid-template-columns: 1fr; }
  .pg-split .media { max-width: 480px; }
}

.pg-statement { max-width: 30ch; margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.005em; }
.vsec--light .pg-statement { color: var(--navy); }
.vsec--dark .pg-statement, .vsec--band .pg-statement { color: var(--cream); }
.pg-statement--wide { max-width: 40ch; margin-inline: auto; text-align: center; }

/* ---------- Statement of faith ---------- */
.faith { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule-light); counter-reset: faith; }
.faith li { position: relative; padding: 26px 0 26px 64px; border-bottom: 1px solid var(--rule-light); font-size: 17px; color: var(--ink); counter-increment: faith; }
.faith li::before { content: counter(faith, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--gold-dk); }
@media (max-width: 760px) { .faith { grid-template-columns: 1fr; } }

/* ---------- Service times ---------- */
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.time { display: grid; align-content: start; gap: 8px; padding: 26px 22px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--rule-light); box-shadow: 0 30px 60px -48px rgba(7, 26, 57, .45); }
.time__day { font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dk); }
.time__hour { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: var(--navy); }
.time__name { font-weight: 600; font-size: 16px; color: var(--navy); }
.time__how { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.time__how .ico { width: 15px; height: 15px; color: var(--gold-dk); }
.time--in { background: var(--navy); border-color: var(--navy); }
.time--in .time__hour, .time--in .time__name { color: #fff; }
.time--in .time__day { color: var(--gold-lt); }
.time--in .time__how { color: var(--silver-dk); }
.time a { text-decoration: underline; text-underline-offset: 3px; }
.times__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 1000px) { .times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .times { grid-template-columns: 1fr; } }

/* Home page: slim strip of service times inside The Broadcast */
.broadcast__meta--times { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.broadcast__meta--times .meta-visit { display: flex; align-items: center; justify-content: flex-end; }
@media (max-width: 1000px) {
  .broadcast__meta--times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .broadcast__meta--times .meta-visit { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Contact + map ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contact__card { display: grid; align-content: start; gap: 18px; }
.contact__name { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; color: var(--navy); }
.contact__rows { display: grid; gap: 14px; margin-top: 4px; }
.contact__row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16.5px; color: var(--ink); }
.contact__row .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--gold-dk); }
.contact__row b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact__row a { border-bottom: 1px solid rgba(7, 26, 57, .25); }
.contact__row a:hover { color: var(--blue); border-color: var(--blue); }
.contact .btn-row { margin-top: 10px; }
.map { position: relative; min-height: 420px; border-radius: var(--r-media); overflow: hidden; background: var(--parchment-2); box-shadow: 0 50px 90px -60px rgba(7, 26, 57, .6); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* FAQ styles: assets/css/faq.css (shared with missions and español) */

/* ---------- Connect cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: grid; align-content: start; gap: 14px; padding: clamp(26px, 3.4vw, 44px); border-radius: 16px; background: #fff; border: 1px solid var(--rule-light); box-shadow: 0 30px 70px -56px rgba(7, 26, 57, .5); }
.card .kicker { color: var(--gold-dk); }
.card h2, .card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.02; letter-spacing: -.005em; color: var(--navy); }
.card p { font-size: 16.5px; color: var(--ink); }
.card p a { color: var(--navy); font-weight: 600; border-bottom: 1px solid rgba(7, 26, 57, .3); white-space: nowrap; }
.card .btn-row { margin-top: 8px; }
.card--dark { background: var(--navy); border-color: var(--navy); }
.card--dark h2 { color: #fff; }
.card--dark p { color: var(--silver); }
.card--dark .kicker { color: var(--gold-lt); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Dr. Gian (bio page) ---------- */
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards--3 { grid-template-columns: 1fr; } }
.creds { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--rule-light); }
.creds li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.creds span { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; color: var(--navy); }
.creds em { font-style: normal; font-size: 16px; color: var(--muted); }
@media (max-width: 640px) { .creds li { grid-template-columns: 1fr; gap: 4px; } }
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.follow a { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(231, 231, 238, .22); color: var(--silver); font-size: 14px; font-weight: 600; letter-spacing: .04em; transition: border-color .2s, color .2s; }
.follow a:hover { border-color: var(--gold); color: #fff; }
.pg-cta .follow + .btn-row { margin-top: 30px; }

/* ---------- Bands and call-to-action ---------- */
.pg-cta { text-align: center; }
.pg-cta .btn-row { justify-content: center; }
.give__mail { margin-top: 18px; font-size: 14.5px; color: var(--silver-dk); }
.give__mail b { color: var(--silver); font-weight: 600; }

/* ---------- Header: Give link in the menu ---------- */
.site-nav__list a.nav-give { color: var(--gold-lt); }
.site-header.is-ink-light .site-nav__list a.nav-give { color: var(--gold-dk); }
.site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
/* Seven menu items: tighten the spacing on narrower desktops so it stays on one line */
@media (min-width: 1201px) and (max-width: 1360px) {
  .site-nav__list { gap: 18px; }
  .site-nav__list a { letter-spacing: .14em; }
  .site-header__inner { gap: 20px; }
}
.site-nav__list a { white-space: nowrap; }

/* ---------- Footer contact line on inner pages ---------- */
.site-footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 44px; font-size: 14px; color: var(--silver-dk); }
.site-footer__contact a { color: var(--silver); border-bottom: 1px solid rgba(231, 231, 238, .22); }
.site-footer__contact a:hover { color: var(--gold-lt); border-color: var(--gold-lt); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.site-footer__links a { color: var(--silver-dk); padding-block: 6px; }
.site-footer__links a:hover { color: var(--gold-lt); }

/* ==========================================================================
   Pop-up forms
   ========================================================================== */
.vf-dialog {
  margin: auto; /* site.css resets every margin to 0, which would pin the dialog to the top-left */
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid rgba(223, 167, 64, .28); border-radius: 20px;
  background: radial-gradient(120% 80% at 90% 0%, var(--navy-2), var(--abyss) 72%); color: var(--silver);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8); overflow: hidden;
}
.vf-dialog::backdrop { background: rgba(2, 11, 27, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vf-dialog[open] { display: flex; flex-direction: column; animation: vf-in .35s var(--ease); }
@keyframes vf-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vf-dialog[open] { animation: none; } }
html.vf-lock { overflow: hidden; }

.vf-head { position: relative; padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px) 18px; border-bottom: 1px solid var(--rule-dark); }
.vf-head h2 { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.02; letter-spacing: -.005em; color: #fff; padding-right: 40px; }
.vf-head p { margin-top: 12px; font-size: 15px; color: var(--silver-dk); }
.vf-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(231, 231, 238, .2); color: var(--silver); transition: border-color .2s, color .2s; }
.vf-close:hover { border-color: var(--gold); color: #fff; }

.vf-body { padding: 22px clamp(22px, 4vw, 40px) clamp(24px, 4vw, 36px); overflow-y: auto; overscroll-behavior: contain; }
.vf-form { display: grid; gap: 16px; }
.vf-row { display: grid; gap: 14px; }
.vf-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vf-row--3 { grid-template-columns: 2fr 1.2fr 1fr; }
@media (max-width: 560px) { .vf-row--2, .vf-row--3 { grid-template-columns: 1fr; } }
.vf-field { display: grid; gap: 7px; min-width: 0; }
.vf-field > span, .vf-group legend { font-size: 13.5px; font-weight: 600; color: var(--silver); }
.vf-field small { font-size: 12.5px; color: var(--silver-dk); margin-top: -2px; }
.vf-field input, .vf-field textarea, .vf-field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fbfaf6; border: 1px solid rgba(255, 255, 255, .15); outline: none; transition: border-color .2s, box-shadow .2s;
}
.vf-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.vf-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.vf-field input:focus-visible, .vf-field textarea:focus-visible, .vf-field select:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(223, 167, 64, .35); }
.vf-field [aria-invalid="true"] { border-color: #e2768c; box-shadow: 0 0 0 3px rgba(226, 118, 140, .35); }
.req { color: var(--gold-lt); }

.vf-group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.vf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-opt { position: relative; }
.vf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vf-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(231, 231, 238, .22); font-size: 14px; font-weight: 600; color: var(--silver); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.vf-opt input:checked + span { background: rgba(223, 167, 64, .14); border-color: var(--gold); color: #fff; }
.vf-opt input:focus-visible + span { outline: 2px solid var(--gold-lt); outline-offset: 2px; }
.vf-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule-dark); background: rgba(255, 255, 255, .03); font-size: 14.5px; color: var(--silver); cursor: pointer; }
.vf-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.vf-check b { color: #fff; font-weight: 600; }
.vf-form.is-anon [data-anon-hide] { display: none; }

.vf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vf-submit { display: grid; justify-items: start; gap: 10px; margin-top: 4px; }
.vf-status { min-height: 1.4em; font-size: 14px; color: var(--silver); }
.vf-status.is-error { color: #f3a6b6; }
.vf-form.is-sending [type="submit"] { opacity: .6; pointer-events: none; }
.vf-note { font-size: 13px; color: var(--silver-dk); }
.vf-note a { color: var(--silver); border-bottom: 1px solid rgba(231, 231, 238, .3); }

.vf-done { display: grid; justify-items: start; gap: 14px; padding: 8px 0 6px; }
.vf-done__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-grad); color: var(--abyss); }
.vf-done__icon .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.vf-done h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 36px); color: #fff; }
.vf-done p { color: var(--silver); }

/* Give pop-up */
.vf-give { display: grid; gap: 18px; }
.vf-give p { color: var(--silver); }
.vf-give address { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--rule-dark); background: rgba(255, 255, 255, .03); color: var(--silver); line-height: 1.6; }
.vf-give address b { color: #fff; }

@media (max-width: 560px) {
  .vf-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
}
.uni__text--more { margin-top: -14px; }
.broadcast__meta--times li > span:last-child { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1001px) { .broadcast__meta--times li > span:last-child { font-size: 19px; } }
