/* ==========================================================================
   Pages module - home, plan a visit, about, give, prayer, serve, ...
   Builds on site.css tokens/components. Classes are prefixed .pg-
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap");

:root {
  --font-hand: "Caveat", "Segoe Print", cursive;
  --glow: radial-gradient(60% 80% at 85% 0%, rgba(227, 163, 59, .20), rgba(227, 163, 59, 0) 70%);
}

.pg-btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; min-height: 54px; }
.muted-light { color: #CDBBA8; font-weight: 600; }
.pg-on-dusk p { color: #E6EDF3; }
.pg-on-dusk p:last-child, .pg-letter p:last-child, .pg-band-text p:last-child { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.pg-hero { min-height: min(92vh, 860px); }
.pg-hero .hero-media img { object-position: 50% 35%; }
.pg-hero::after {
  background:
    linear-gradient(180deg, rgba(43,33,28,.30) 0%, rgba(43,33,28,.18) 30%, rgba(43,33,28,.62) 62%, rgba(43,33,28,.92) 100%),
    linear-gradient(90deg, rgba(43,33,28,.62) 0%, rgba(43,33,28,.1) 70%),
    linear-gradient(0deg, rgba(180,83,42,.18), rgba(180,83,42,.18));
}
.pg-hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 6.4vw, 5.4rem); letter-spacing: -.02em; }
.pg-hero .lead { max-width: 40ch; }
.pg-hero .hero-meta { gap: 10px; }
.pg-hero .hero-meta span { background: rgba(43,33,28,.45); border: 1px solid rgba(255,255,255,.18); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); font-size: .95rem; }
.pg-hero .hero-meta .icon { color: var(--honey); }
.pg-hero-video, .pg-hero-yt, .pg-hero-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-hero-yt { overflow: hidden; }
.pg-hero-yt iframe { width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; border: 0; }
.pg-hero-pause { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(43,33,28,.55); color: #fff; font: 700 .85rem var(--font-body); cursor: pointer; }
.pg-hero-pause .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.pg-hero-pause span { display: none; }
@media (min-width: 720px) { .pg-hero-pause span { display: inline; } }
@media (prefers-reduced-motion: reduce) { .pg-hero-video, .pg-hero-yt { display: none; } }

/* ---------- What to expect ---------- */
.pg-expect .feature { position: relative; height: 100%; border: 1px solid rgba(230, 214, 195, .6); transition: transform .2s, box-shadow .2s; }
.pg-expect .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pg-expect .grid > .feature:nth-child(2) .feature-icon { background: #DCE5EE; color: var(--dusk-deep); }
.pg-expect .grid > .feature:nth-child(3) .feature-icon { background: #F4D9C9; color: var(--ember); }
.pg-expect .grid > .feature:nth-child(4) .feature-icon { background: #DFE8DB; color: #33452F; }

/* ---------- Pastor welcome ---------- */
.pg-welcome { background: var(--sand) var(--glow); }
.pg-arch { margin: 0; position: relative; max-width: 520px; }
.pg-arch img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow-lift); position: relative; z-index: 1; }
.pg-arch::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 999px 999px var(--radius) var(--radius); border: 2px solid var(--terracotta); opacity: .35; }
.pg-letter { font-size: 1.15rem; }
.pg-letter p { color: var(--ink); }
.pg-signature { font-family: var(--font-hand); font-size: 2rem; color: var(--ember); margin: 12px 0 0; line-height: 1.1; }
.pg-slogans { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-slogans li { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; padding: 8px 16px; border-radius: 999px; background: var(--cream); color: var(--walnut); box-shadow: var(--shadow); }

/* ---------- Emotional photo band ---------- */
.pg-band { position: relative; overflow: hidden; background: var(--walnut); color: #F3E7DA; padding: clamp(96px, 14vw, 180px) 0; }
.pg-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,33,28,.94) 0%, rgba(43,33,28,.82) 45%, rgba(43,33,28,.35) 100%); }
.pg-band .wrap { position: relative; z-index: 1; }
.pg-band-inner { max-width: 620px; }
.pg-band .eyebrow { color: var(--honey); }
.pg-band-title { color: #FFF8EE; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; }
.pg-band-title span { font-style: italic; font-weight: 400; color: var(--honey); }
.pg-band-text p { color: #EADBCB; font-size: 1.15rem; }
.pg-scripture { font-family: var(--font-display); font-style: italic; color: #D9CABB; margin: 22px 0 26px; padding-left: 16px; border-left: 3px solid var(--honey); }
.pg-scripture cite { font-style: normal; font-family: var(--font-body); font-weight: 800; font-size: .85rem; letter-spacing: .08em; color: var(--honey); margin-left: 6px; }

/* ---------- Kids ---------- */
.pg-frame-tall { aspect-ratio: 4 / 4.4 !important; object-position: 50% 45%; }
.pg-checklist ul, ul.pg-checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.pg-checklist li { position: relative; padding-left: 36px; }
.pg-checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #DFE8DB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333452F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Latest message ---------- */
.pg-message { background: var(--walnut) radial-gradient(50% 70% at 10% 100%, rgba(180,83,42,.35), transparent 70%); }
.pg-yt-card { display: block; }
.pg-yt-card img { opacity: .85; }

/* ---------- Story ---------- */
.pg-story-card { display: grid; grid-template-columns: 1fr; background: var(--cream); border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow-lift); }
@media (min-width: 900px) { .pg-story-card { grid-template-columns: .8fr 1.2fr; } }
.pg-story-photo img { width: 100%; height: 100%; min-height: 280px; max-height: 560px; object-fit: cover; object-position: 50% 35%; }
.pg-story-body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.pg-story-body::before { content: "“"; position: absolute; top: clamp(4px, 2vw, 20px); right: 28px; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: var(--honey-soft); }
.pg-quote-block p { margin: 0; }
.quote-cite p { margin: 0; }

/* ---------- Pathway ---------- */
.pg-path { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 700px) { .pg-path { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .pg-path { grid-template-columns: repeat(4, 1fr); }
  .pg-path::before { content: ""; position: absolute; top: 44px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--terracotta) 0 10px, transparent 10px 18px); opacity: .45; }
}
.pg-path-step a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 22px 22px; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pg-path-step a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.pg-path-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta); color: #fff; margin-bottom: 6px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--sand); }
.pg-path-step:nth-child(2) .pg-path-icon { background: var(--dusk); }
.pg-path-step:nth-child(3) .pg-path-icon { background: var(--sage); }
.pg-path-step:nth-child(4) .pg-path-icon { background: var(--ember); }
.pg-path-step:nth-child(5) .pg-path-icon { background: #2E6B7A; }
.pg-path-num { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pg-path-step strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--walnut); line-height: 1.15; }
.pg-path-desc { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.pg-path-step .link-arrow { color: var(--terracotta); font-size: .95rem; margin-top: 6px; }

/* ---------- Prayer invite ---------- */
.pg-prayer-invite { background: var(--dusk) radial-gradient(55% 80% at 50% 0%, rgba(140, 176, 210, .28), transparent 70%); }
.pg-prayer-invite .divider-lamp .icon { width: 30px; height: 30px; }

/* ---------- Events ---------- */
.pg-head-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; max-width: none; }
.pg-head-row h2 { margin-bottom: 0; }

/* ---------- Ways to say hi ---------- */
.pg-ways-wrap { padding-top: 0; }
.pg-ways-title { font-size: 1.4rem; text-align: center; margin-bottom: 18px; }
.pg-ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.pg-ways a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); color: var(--walnut); text-decoration: none; transition: border-color .2s, transform .2s; }
.pg-ways a:hover { border-color: var(--terracotta); transform: translateY(-2px); color: var(--walnut); }
.pg-ways .icon { width: 26px; height: 26px; color: var(--terracotta); }
.pg-ways span { display: flex; flex-direction: column; font-size: .88rem; color: var(--ink-soft); line-height: 1.3; }
.pg-ways strong { font-size: 1rem; color: var(--walnut); }

/* ---------- Closing band ---------- */
.pg-closing-card { display: grid; gap: 0; grid-template-columns: 1fr; border-radius: calc(var(--radius) * 1.6); overflow: hidden; background: var(--terracotta) radial-gradient(70% 90% at 0% 0%, rgba(227,163,59,.45), transparent 60%); color: #fff; box-shadow: var(--shadow-lift); }
@media (min-width: 960px) { .pg-closing-card { grid-template-columns: 1.25fr 1fr; } }
.pg-closing-copy { padding: clamp(32px, 5vw, 64px); }
.pg-closing-copy .eyebrow { color: #FFE7BF; }
.pg-closing-copy h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.pg-closing-text p { color: #FBE9DD; font-size: 1.2rem; }
.pg-closing-copy .btn-row { margin: 22px 0 30px; }
.pg-closing-copy .btn-ghost-light { background: rgba(43,33,28,.18); }
.pg-news label { display: block; font-weight: 700; color: #FFF3E6; margin-bottom: 10px; }
.pg-news-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-news input[type="email"] { flex: 1 1 220px; min-height: 50px; border-radius: 999px; border: 0; padding: 0 20px; font: inherit; color: var(--ink); background: #FFF8EE; }
.pg-news .btn-primary { background: var(--walnut); box-shadow: none; }
.pg-news .btn-primary:hover { background: #000; }
.pg-closing-map { position: relative; min-height: 320px; background: var(--walnut); }
.pg-closing-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }
.pg-closing-map p { position: absolute; left: 16px; bottom: 16px; margin: 0; background: var(--cream); color: var(--walnut); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; }
.pg-closing-map p .icon { color: var(--terracotta); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.pg-page-hero { min-height: clamp(380px, 56vh, 560px); display: flex; align-items: flex-end; }
.pg-page-hero .wrap { width: 100%; }
.pg-page-hero img.bg { object-position: var(--pos, 50% 40%); }
.pg-page-hero::after { background: linear-gradient(180deg, rgba(43,33,28,.05) 0%, rgba(43,33,28,.25) 45%, rgba(43,33,28,.82) 100%), linear-gradient(90deg, rgba(43,33,28,.62) 0%, rgba(43,33,28,.15) 55%, rgba(43,33,28,0) 80%); }
.pg-page-hero h1, .pg-page-hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.pg-grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pg-page-hero h1 { max-width: 16ch; }
.pg-page-hero .btn-row { margin-top: 24px; }

/* Big service-time callout (plan a visit) */
.pg-callout { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; padding: 16px 24px; border-radius: var(--radius); background: rgba(43,33,28,.55); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.pg-callout-time { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #FFF8EE; line-height: 1.05; }
.pg-callout-time small { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); margin-bottom: 4px; }
.pg-callout-where { color: #EFE3D6; font-weight: 700; font-size: 1rem; }

/* Fact strip */
.pg-facts { position: relative; z-index: 2; margin-top: -40px; }
.pg-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.pg-facts li { background: var(--cream); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.pg-facts .icon { width: 28px; height: 28px; color: var(--terracotta); margin-top: 2px; }
.pg-facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--walnut); font-weight: 600; }
.pg-facts span { color: var(--ink-soft); font-size: .98rem; line-height: 1.4; }

/* Timeline */
.pg-timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 18px; }
.pg-timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--terracotta), var(--honey)); opacity: .5; }
.pg-timeline li { position: relative; padding-left: 76px; }
.pg-tl-dot { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--cream); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--terracotta); }
.pg-tl-dot .icon { width: 26px; height: 26px; }
.pg-tl-when { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.pg-timeline h3 { font-size: 1.3rem; margin: 2px 0 4px; }
.pg-timeline p { margin: 0; color: var(--ink-soft); }

/* Visit form area */
.pg-form-area { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .pg-form-area { grid-template-columns: .85fr 1.15fr; } .pg-form-area .pg-sticky { position: sticky; top: 100px; } }
.pg-reassure { margin: 22px 0; padding: 18px 20px; border-radius: var(--radius-sm); background: #DFE8DB; color: #2C3D29; font-weight: 700; display: flex; gap: 12px; align-items: flex-start; }
.pg-reassure .icon { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.pg-next-list ul { list-style: none; padding: 0; margin: 0; counter-reset: nx; display: grid; gap: 14px; }
.pg-next-list li { counter-increment: nx; position: relative; padding-left: 50px; color: var(--ink-soft); }
.pg-next-list li::before { content: counter(nx); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 800; display: grid; place-items: center; }
.pg-next-list strong { color: var(--walnut); }
.pg-note { font-family: var(--font-hand); font-size: 1.7rem; color: var(--ember); line-height: 1.15; transform: rotate(-2deg); display: inline-block; margin: 8px 0 0; }

/* Map block */
.pg-map-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .pg-map-grid { grid-template-columns: 1fr 1.1fr; } }
.pg-map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-lift); background: var(--sand); }

/* Form fallback */
.pg-form-fallback-title { display: flex; gap: 10px; align-items: center; font-family: var(--font-display); font-size: 1.4rem; color: var(--walnut); margin: 0 0 8px; }
.pg-form-fallback-title .icon { color: var(--terracotta); }

/* Values / cards with icon */
.pg-values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pg-value { padding: 26px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); border-top: 4px solid var(--terracotta); }
.pg-value:nth-child(3n+2) { border-top-color: var(--dusk); }
.pg-value:nth-child(3n) { border-top-color: var(--sage); }
.pg-value h3 { font-size: 1.35rem; margin-bottom: .3em; }
.pg-value p { margin: 0; color: var(--ink-soft); }

.pg-mv { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pg-mv > div { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); background: var(--walnut-2); }
.pg-mv h3 { color: var(--honey); font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.pg-mv p { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.3; color: #FFF8EE; margin: 0; }

.pg-slogan-list { display: grid; gap: 22px; }
.pg-slogan-list > div { padding-left: 22px; border-left: 4px solid var(--honey); }
.pg-slogan-list h3 { font-style: italic; margin-bottom: .25em; }
.pg-slogan-list p { margin: 0; color: var(--ink-soft); }

/* Link cards row */
.pg-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pg-links a { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); color: var(--walnut); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pg-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--walnut); }
.pg-links .icon-wrap { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--honey-soft); color: var(--ember); }
.pg-links .icon-wrap .icon { width: 26px; height: 26px; }
.pg-links strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.pg-links span span { color: var(--ink-soft); font-size: .95rem; }

/* Beliefs */
.pg-beliefs { display: grid; gap: 20px; }
.pg-belief { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); display: grid; gap: 8px 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pg-belief { grid-template-columns: 220px 1fr; } }
.pg-belief h2 { font-size: 1.6rem; margin: 0; }
.pg-belief p { margin: 0 0 .8em; }
.pg-belief details { margin-top: 4px; }
.pg-belief summary { cursor: pointer; font-weight: 700; color: var(--terracotta); min-height: 44px; display: inline-flex; align-items: center; }
.pg-belief .refs { font-size: .92rem; color: var(--ink-soft); margin: 6px 0 0; }

/* Ministry / team cards */
.pg-card-grid { display: grid; gap: clamp(20px, 3vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pg-card-grid .card h3 { font-size: 1.4rem; }
.pg-card-grid .card-foot .link-arrow { color: var(--terracotta); }
.pg-team-card { padding: 26px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.pg-team-card .feature-icon { margin-bottom: 6px; }
.pg-team-card h3 { font-size: 1.3rem; margin: 0; }
.pg-team-card p { margin: 0; color: var(--ink-soft); }

/* Next steps */
.pg-step-row { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.pg-step-row:last-child { border-bottom: 0; }
@media (min-width: 900px) { .pg-step-row { grid-template-columns: 1fr 1.1fr; } .pg-step-row:nth-child(even) > :first-child { order: 2; } }
.pg-step-row img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.pg-step-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; }
.pg-step-tag b { width: 32px; height: 32px; border-radius: 50%; background: var(--terracotta); color: #fff; display: grid; place-items: center; letter-spacing: 0; }

/* Give */
.pg-give-ways { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pg-give-way { padding: 28px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.pg-give-way.is-main { background: var(--walnut); color: #EFE3D6; }
.pg-give-way.is-main h3 { color: #FFF8EE; }
.pg-give-way.is-main p { color: #D9CABB; }
.pg-give-way h3 { font-size: 1.35rem; margin: 0; }
.pg-give-way p { margin: 0; color: var(--ink-soft); }
.pg-give-way .btn { margin-top: auto; align-self: flex-start; }
.pg-give-way .badge { align-self: flex-start; }
.pg-funds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pg-funds > div { padding: 22px 24px; border-radius: var(--radius-sm); border: 1.5px dashed #D9C6B1; }
.pg-funds h3 { font-size: 1.2rem; margin-bottom: .25em; }
.pg-funds p { margin: 0; color: var(--ink-soft); }
.pg-secure { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: #E1EAF2; color: var(--dusk-deep); }
.pg-secure .icon { width: 30px; height: 30px; flex: none; }
.pg-secure p { margin: 0; }
.pg-secure p + p { margin-top: .6em; }

/* Prayer */
.pg-privacy-box { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); border-left: 5px solid var(--sage); }
.pg-privacy-box h3 { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; }
.pg-privacy-box h3 .icon { color: var(--sage); }
.pg-privacy-box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-soft); }
.pg-privacy-box strong { color: var(--walnut); }
.pg-crisis { display: grid; gap: 18px; grid-template-columns: 1fr; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--walnut); color: #EFE3D6; }
@media (min-width: 800px) { .pg-crisis { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.pg-crisis h2 { color: #FFF8EE; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pg-crisis p { color: #D9CABB; margin: 0 0 .6em; }
.pg-crisis .btn-row { justify-content: flex-start; }
.pg-988 { padding: 20px; border-radius: var(--radius-sm); background: var(--walnut-2); }
.pg-988 strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--honey); }

/* Contact */
.pg-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pg-contact-list a, .pg-contact-list > li > div { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--cream); box-shadow: var(--shadow); color: var(--walnut); text-decoration: none; min-height: 64px; }
.pg-contact-list a:hover { box-shadow: var(--shadow-lift); color: var(--walnut); }
.pg-contact-list .icon { width: 26px; height: 26px; color: var(--terracotta); }
.pg-contact-list small { display: block; color: var(--ink-soft); font-size: .88rem; }
.pg-contact-list strong { font-size: 1.05rem; }

/* Legal / prose pages */
.pg-legal { max-width: 74ch; }
.pg-legal h2 { font-size: 1.6rem; margin-top: 2em; }
.pg-legal h2:first-child { margin-top: 0; }
.pg-legal ul { display: grid; gap: 6px; }
.pg-legal .pg-updated { font-weight: 700; color: var(--ink-soft); }
.pg-toc { list-style: none; padding: 20px 24px; margin: 0 0 2rem; border-radius: var(--radius-sm); background: var(--sand); display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Local SEO directions */
.pg-routes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pg-route { padding: 24px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.pg-route h3 { font-size: 1.25rem; display: flex; gap: 10px; align-items: center; }
.pg-route h3 .icon { color: var(--terracotta); }
.pg-route p { margin: 0; color: var(--ink-soft); }
.pg-towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pg-towns li { padding: 6px 14px; border-radius: 999px; background: #DFE8DB; color: #33452F; font-weight: 700; font-size: .92rem; }

/* Section with warm glow */
.pg-glow { background: var(--linen) var(--glow); }
.pg-end { padding-top: 0; }
.pg-rounded { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; object-fit: cover; }
.pg-team-cta { text-decoration: none; color: inherit; border: 2px dashed #D9C6B1; box-shadow: none; background: transparent; }
.pg-team-cta:hover { border-color: var(--terracotta); color: inherit; }

/* Keep decorative offsets (frames, arches) from causing sideways scroll on phones. */
main { overflow-x: clip; }
@media (max-width: 640px) {
  .pg-arch::before { inset: 12px -8px -12px 8px; }
  .pg-hero .hero-meta span { font-size: .88rem; padding: 6px 12px; }
  .pg-hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .pg-callout { padding: 14px 16px; }
  .pg-facts { margin-top: -24px; }
  .pg-story-photo img { max-height: 340px; }
  .pg-band { padding: 72px 0; }
  .pg-band::after { background: linear-gradient(180deg, rgba(43,33,28,.78), rgba(43,33,28,.92)); }
}
@media (max-width: 1079px) { .pg-hero .hero-content { padding-bottom: 96px; } }

/* Map placeholder shown until Google Maps paints (or if it is blocked). */
.pg-map, .pg-closing-map iframe { background: #EADCC9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4532A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / 56px no-repeat; }
