﻿/*
 * Urgent Help (parking & campus-access campaign) page — ported unchanged
 * from site.legacy.css's .campaign-grid/.campaign-card system plus this
 * page's navy CTA-section override and its variant of the shared
 * .campaign-hero::before overlay (base .campaign-hero rules live in
 * global/sections.css since the Donate page reuses the same component).
 * Loaded only on this page via inc/enqueue/styles.php's page-slug
 * matching (page-urgent-help.php -> urgent-help.css).
 *
 * Selectors originally scoped under body.page-urgent are flattened
 * directly onto the base selector here, same as waqf.css does — since
 * this stylesheet only ever loads on this one page anyway, a literal
 * "page-urgent" body class from WordPress's body_class() isn't needed.
 */

/* --- Hero redesign: two-column layout with the DonateFlow donation
   panel on the right — replaces the earlier photo-background variant of
   this shared .campaign-hero component. Page-scoped since Home/Donate
   keep the standard variant. Navy background + blue accent, matching
   RAF's existing palette (no new color scheme introduced). */
.urgent-campaign-hero {
    padding-block: clamp(34px, 4vw, 56px);
    background: var(--navy);
}

/* Reduce section spacing throughout this page — scoped here since
   urgent-help.css only loads on this one page, so it doesn't touch the
   shared .section/.section-head rules used site-wide. */
.section {
    padding: clamp(24px, 3vw, 40px) 0;
}
.section-head {
    margin-bottom: 32px;
}

.urgent-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }

.urgent-eyebrow { color: var(--blue); }

.campaign-range { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); font-weight: 800; }
.campaign-range strong { color: #a9d6c4; }

.urgent-hero-panel .dflow-panel { margin: 0; }

/* --- "About RAF" (photo + checklist), reuses the shared .purpose-grid /
   .media-card / .purpose-copy components (global/sections.css) — only
   the checklist itself is page-specific markup. --- */
.about-raf-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 30px; }
.about-raf-item { display: flex; gap: 12px; }
.about-raf-item .icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: var(--forest); }
.about-raf-item strong { display: block; color: var(--navy); }
.about-raf-item span { color: var(--slate); font-size: .88rem; }

/* --- Donor trust badges, right after the hero's donation panel --- */
.trust-badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.trust-badge { padding: 26px; border: 1px solid var(--stone); border-radius: 20px; background: var(--white); }
.trust-badge .icon-wrap { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--forest); }
.trust-badge .icon { width: 22px; height: 22px; color: white; }
.trust-badge h3 { margin: 18px 0 8px; font-size: 1.1rem; }
.trust-badge p { color: var(--slate); font-size: .9rem; }

/* --- "Follow the journey" social carousel (placeholder content — see
   the code comment on $raf_social_posts in page-urgent-help.php). --- */
.social-feed-viewport { position: relative; }
.social-feed-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--stone); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; box-shadow: var(--shadow-sm); transform: translateY(-50%); transition: .2s var(--ease); }
.social-feed-arrow:hover { border-color: var(--green); background: var(--sage); }
.social-feed-arrow .icon { width: 16px; height: 16px; }
.social-feed-arrow .icon.flip { transform: scaleX(-1); }
.social-feed-arrow-prev { left: -22px; }
.social-feed-arrow-next { right: -22px; }

.social-feed-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: none; }
.social-feed-track::-webkit-scrollbar { display: none; }

.social-card { flex: 0 0 auto; width: 280px; overflow: hidden; border: 1px solid var(--stone); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); scroll-snap-align: start; }
.social-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.social-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--sage); color: var(--forest); }
.social-card-head strong { display: block; color: var(--navy); font-size: .84rem; }
.social-card-head span { color: var(--slate); font-size: .74rem; }

.social-card-media { position: relative; display: grid; aspect-ratio: .82; place-items: center; background: var(--navy) center / cover; }
.social-play { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); }
.social-play .icon { width: 18px; height: 18px; }

.social-card-foot { padding: 14px 16px; }
.social-card-link { display: block; color: var(--blue); font-size: .84rem; font-weight: 800; text-decoration: none; }
.social-card-link.is-disabled { color: var(--slate); cursor: default; }
.social-card-actions { display: flex; gap: 12px; margin-top: 12px; color: var(--slate); }
.social-card-actions .icon { width: 17px; height: 17px; }

/* --- "Watch more" featured video (placeholder — see the code comment
   on $raf_video_embed_url in page-urgent-help.php). --- */
.section-head-center { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
.section-head-center .lead { justify-self: center; max-width: 640px; margin-top: 0; }
.featured-video-frame {
    position: relative;
    display: grid;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 24px auto 0;
    place-items: center;
    border-radius: 24px;
    overflow: hidden;
    background: var(--navy) center / cover;
    box-shadow: var(--shadow-lg);
}
.featured-video-frame::before { content: ""; position: absolute; inset: 0; background: rgba(8,29,51,.32); }
.featured-video-play { position: relative; z-index: 1; display: grid; width: 76px; height: 76px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--navy); transition: transform .25s var(--ease), background .25s; }
.featured-video-play:hover { transform: scale(1.06); background: white; }
.featured-video-play.is-disabled { cursor: default; }
.featured-video-play.is-disabled:hover { transform: none; }
.featured-video-play .icon { width: 26px; height: 26px; }
.featured-video-note { position: absolute; z-index: 1; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(8,29,51,.65); color: white; font-size: .74rem; font-weight: 800; letter-spacing: .04em; }

.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.campaign-card { padding: 32px; border-radius: 24px; background: white; box-shadow: var(--shadow-sm); transition: .35s var(--ease); }
.campaign-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.campaign-card .icon-wrap { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--forest); }
.campaign-card .icon { width: 22px; height: 22px; color: white; }
.campaign-card h3 { margin: 34px 0 13px; font-size: 1.3rem; }
.campaign-card p { color: var(--slate); }

.section-sage.monogram-field::before { display: none; }
/* Boxed, not full-bleed — same width formula as .container so it lines
   up with the rest of the page's content edges. */
.section-sage { width: min(1180px, calc(100% - 40px)); margin: 40px auto; padding-inline: 30px; border-radius: 60px; overflow: hidden; background-color: var(--navy); color: rgba(255,255,255,.76); }
.section-sage h2 { color: var(--white); }
.section-sage .lead { color: rgba(255,255,255,.75); }
.section-sage .eyebrow { color: #a9d6c4; }
.section-sage .button:not(.button-forest) { background: var(--white); color: var(--navy); }
.section-sage .cta-inner h2 { color: var(--white); }
.section-sage .cta-inner p { color: rgba(255,255,255,.78); }

/* --- Scale-down pass, same as the other converted pages ---
   This page's hero uses .campaign-hero (not .page-hero), and its final
   CTA is .section-sage .cta-inner (not the standalone .cta-band used
   elsewhere) — both still resolve to the same shared h2/h1 selectors
   the rest of the scale-down pass targets, just noted here since the
   wrapper classes differ from most other pages. */
.campaign-hero h1 {
    font-size: clamp(2.25rem, 3.4vw, 3.4rem);
    line-height: 1.15;
}

.section-head h2,
.service-photo-copy h2,
.cta-inner h2,
.faq-intro h2,
.purpose-copy h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}

.section-head .lead {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .urgent-hero-grid { grid-template-columns: 1fr; }
    .urgent-hero-panel { max-width: 480px; }
}

@media (max-width: 820px) {
    .campaign-grid { grid-template-columns: 1fr 1fr; }
    .trust-badge-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .campaign-grid { grid-template-columns: 1fr; }
    .campaign-card { padding: 26px; }
    .campaign-card h3 { margin-top: 24px; }
    .social-card { width: 220px; }
    .social-feed-arrow { display: none; }
    .trust-badge-grid { grid-template-columns: 1fr; }
    .about-raf-list { grid-template-columns: 1fr; }
}