/*
 * Theme update for inner pages that use parts/header.php: campaigns, contact_us, distributioncenter,
 * add_distributioncenter, page (campaign/{slug}), resources, rowd_readyness and live_index.
 *
 * Loaded after index_theme.css (shared fonts, colours, buttons, campaign sections) only when a
 * page sets $row_theme = true; before including parts/header.php. Other pages are unaffected.
 * These pages have their own inline <style> after the header, so page rules start with
 * "body" to win over it. page.php keeps its per-campaign colours from content.json.
 */

/* ---------- Page hero (campaigns: image hero) ---------- */
.hero-area:not(.page_2)::before {
    background: linear-gradient(180deg, rgba(15, 23, 41, .55) 0%, rgba(20, 22, 59, .82) 100%) !important;
}
.hero-area:not(.page_2) .hero-content h1.fns-72 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.035em;
}
.hero-area:not(.page_2) .hero-content p {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .86) !important;
}

/* ---------- Contact page ---------- */
/* Header band: navy instead of dark green */
body .distribution-hero {
    background: linear-gradient(120deg, #14163b 0%, #2a2f8f 100%);
}
body .distribution-hero::before { background: rgba(15, 23, 41, .25); }

body .locate-section { background: #fbfbfe; }
body .section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #14163b;
}

/* Contact list card */
body .locate-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(20, 22, 59, .08);
}
body .locate-card .card-title {
    display: flex; align-items: center; gap: .6rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #3035b0;
}
body .locate-card .card-title::before { content: ""; width: 1.25rem; height: 2px; background: #e8c547; }

body .contact-item {
    gap: .25rem;
    border-radius: .85rem;
    border-bottom-color: #eef0f4 !important;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}
body .contact-item:hover { background-color: #eef0fb !important; }
body .contact-item:focus-visible { outline: 2px solid #e8c547; outline-offset: 2px; }
body .contact-item h6 {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #14163b !important;
}
body .contact-item .text_highlite {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    color: rgb(222, 17, 53) !important;
}
body .flag_dim { box-shadow: 0 0 0 1px #e2e8f0; }

/* Phones: responsive.css forces h2 to 60px !important */
@media (max-width: 767px) {
    .hero-area:not(.page_2) .hero-content h1.fns-72 { font-size: 2.6rem !important; }
    body .section-title h2 { font-size: 1.75rem !important; }
    body .contact-item h5 { font-size: 1rem !important; }
    body .locate-card .card-body { padding: 1.25rem .75rem !important; }
    body .contact-item { padding-left: .5rem !important; padding-right: .5rem !important; }
}
body .contact-item > div:first-child { flex: none; }

/* ---------- Shared: dark image heroes (resources, live, rowd readiness) ---------- */
body .resources-hero { background-color: #14163b; }
body .resources-hero::before,
body .live-hero::before {
    background: linear-gradient(180deg, rgba(15, 23, 41, .62) 0%, rgba(20, 22, 59, .84) 100%) !important;
}
body .readiness-section::before {
    background: linear-gradient(180deg, rgba(15, 23, 41, .72) 0%, rgba(20, 22, 59, .9) 100%);
}
body .resources-hero h1, body .live-hero h1, body .readiness-section h1 {
    letter-spacing: -0.035em;
    line-height: 1.05;
}
body .readiness-section h1 { text-transform: none; font-size: clamp(2.5rem, 5vw, 4rem); }
/* Eyebrow on a dark hero: gold instead of red */
body .resources-hero span.red-color,
body .live-hero span.red-color {
    display: inline-flex !important; align-items: center; gap: .6rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #e8c547 !important;
}
body .resources-hero span.red-color::before,
body .live-hero span.red-color::before { content: ""; width: 1.25rem; height: 2px; background: #e8c547; }

/* ---------- Distribution centres (find + create) ---------- */
body .locate-card .card-header { background: transparent; border: 0; }
body .locate-card .card-header > div,
body .locate-card .card-header .card { border-radius: 1rem; }
body .form-control-label {
    font-size: .8rem; font-weight: 600; color: #14163b; margin-bottom: .35rem;
}
body .locate-card .form-control,
body .locate-card .search_fields {
    min-height: 2.875rem;
    border: 1px solid #e2e8f0 !important;
    border-radius: .75rem;
    background: #fff;
    padding: .6rem .9rem;
    color: #1e293b;
    box-shadow: none;
}
body .locate-card .form-control:focus {
    border-color: #2a2f8f !important;
    box-shadow: 0 0 0 .2rem rgba(42, 47, 143, .14);
}
body .dropdown-list { border-radius: .85rem; border: 1px solid #e2e8f0; box-shadow: 0 18px 40px rgba(20, 22, 59, .12); width: 100%; }
body .dropdown-list li { color: #1e293b; }
body .dropdown-list li:hover { background-color: #eef0fb; color: #14163b; }
body .locate-card .loader { border-color: #eef0fb; border-bottom-color: #2a2f8f; }
body .locate-card h3, body .locate-card h4 { color: #14163b; letter-spacing: -0.02em; }

/* ---------- Resources ---------- */
body .filter-tab {
    background: #eef0fb;
    color: #14163b;
    font-weight: 600;
}
body .filter-tab:hover { background: #e0e3f7; color: #14163b; }
body .filter-tab.active, body .filter-tab.active:hover { background: #2a2f8f; color: #fff; }
body .sub-filter-tabs { border: 1px solid #e2e8f0; border-radius: 1.25rem; box-shadow: 0 18px 40px rgba(20, 22, 59, .06); }
body .sub-filter-tab { color: #1e293b; font-weight: 500; }
body .sub-filter-tab:hover { background: #eef0fb; color: #14163b; border-color: transparent; }
body .sub-filter-tab.active, body .sub-filter-tab.active:hover { background: #14163b; color: #fff; border-color: #14163b; }
body .resource-item { border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 12px 30px rgba(20, 22, 59, .07); }
body .resource-title { color: #14163b; font-weight: 600; letter-spacing: -0.01em; }
body .resource-meta { color: #64748b; }
body .btn-view { background: #2a2f8f; }
body .btn-view:hover { background: #22267a; }
body .btn-download { background: rgb(222, 17, 53); }
body .btn-download:hover { background: #c20e2e; }
body .upload-card { border: 1px solid #e2e8f0; border-radius: 1.25rem; }
body .upload-area { border-color: #2a2f8f; background: #fbfbfe; }
body .upload-area:hover { border-color: #22267a; background: #eef0fb; }

/* ---------- ROWD readiness ---------- */
body .mission-overview, body .step-card { border: 1px solid #e2e8f0; border-radius: 1.25rem; box-shadow: 0 18px 40px rgba(20, 22, 59, .06); }
body .mission-title { color: #14163b; letter-spacing: -0.02em; }
body .stat-number { color: #2a2f8f; }
body .stat-label, body .section-description, body .mission-subtitle { color: #64748b; }
body .strategic-steps .section-title { color: #14163b; letter-spacing: -0.025em; }
body .step-card:hover { border-color: #c7cbf0; }
body .step-number { background: linear-gradient(135deg, #14163b, #2a2f8f); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e8c547; }
body .step-title { color: #14163b; letter-spacing: -0.02em; font-weight: 600; }
body .step-content { color: #1e293b; }
body .planning-section { background: #fbfbfe; border: 1px solid #e2e8f0; border-radius: 1rem; }
body .planning-title { color: #14163b; font-weight: 600; }
body .planning-list li { border-bottom-color: #e2e8f0; color: #1e293b; }
body .planning-list li::before { color: #2a2f8f; }
body .resource-links { background: #fdf8e4; border-color: #f3e3a1; border-radius: .85rem; }
body .resource-links a { color: rgb(222, 17, 53); font-weight: 600; }
body .action-button {
    background: rgb(222, 17, 53);
    box-shadow: none;
    border-radius: 999px;
    font-weight: 600;
}
body .action-button:hover { background: #c20e2e; color: #fff; transform: none; }
body .final-cta {
    background: linear-gradient(120deg, #14163b 0%, #2a2f8f 100%);
    border-radius: 1.25rem;
    box-shadow: 0 24px 50px rgba(20, 22, 59, .18);
}
body .final-cta .cta-title { color: #fff; letter-spacing: -0.02em; }
body .final-cta .cta-description { color: rgba(255, 255, 255, .86); }
body .cta-button { color: #14163b; border-color: #fff; font-weight: 600; }
body .cta-button:hover { background: transparent; color: #fff; }

/* ---------- Campaign detail (page.php): keep campaign colours, theme the type and cards ---------- */
body .targeted-sponsor:not(.black-bg) {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(20, 22, 59, .08);
}
body .galary-img img { border-radius: .85rem; }

/* Phones */
@media (max-width: 767px) {
    body .resources-hero h1, body .live-hero h1 { font-size: 2.4rem !important; }
    body .readiness-section h1 { font-size: 2.4rem !important; }
    body .final-cta .cta-title, body .mission-title { font-size: 1.6rem !important; }
    body .step-title { font-size: 1.15rem !important; }
}

/* White sponsor card on campaign pages: light chips (the dark-card version is in index_theme.css) */
body .targeted-sponsor:not(.black-bg) .targeter-amount span { color: #64748b; font-weight: 500; }
body .targeted-sponsor:not(.black-bg) .donation-option {
    background: #fbfbfe;
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    transition: background .2s ease, border-color .2s ease;
}
body .targeted-sponsor:not(.black-bg) .donation-option:hover { background: #eef0fb; }
body .targeted-sponsor:not(.black-bg) .donation-option.active { background: #eef0fb; border-color: #2a2f8f; }
body .targeted-sponsor:not(.black-bg) .donation-option span { color: #14163b; }
