/*
 * Home page (views/index.php) theme update.
 *
 * Brings the look of the Reachout World 2026 signup page (views/ambassador_signup.php,
 * assets/css/ambassador_signup.css) to the home page: Instrument Sans everywhere, navy ink,
 * indigo primary, gold accent and the signup page's red call-to-action.
 *
 * Loaded AFTER style.css / default.css / responsive.css so it only overrides them.
 * Those files are untouched: remove the <link> to this file in index.php to go back.
 */

:root {
    --row-font: "Instrument Sans", "Open Sans", Roboto, system-ui, sans-serif;
    --row-ink: #14163b;          /* headings */
    --row-text: #1e293b;         /* body copy */
    --row-muted: #64748b;
    --row-primary: #2a2f8f;      /* indigo (signup "Watch the promo" banner) */
    --row-primary-hover: #22267a;
    --row-accent: #3035b0;       /* eyebrow text */
    --row-gold: #e8c547;         /* eyebrow bar, focus rings */
    --row-red: rgb(222, 17, 53); /* signup play / sponsor button */
    --row-red-hover: #c20e2e;
    --row-soft: #eef0fb;
    --row-line: #e2e8f0;
    --row-surface: #fbfbfe;
    --row-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Typography ---------- */
body,
h1, h2, h3, h4, h5, h6,
p, a, button, input, select, textarea, label, li,
span:not([class*="fa"]),
.ff-Geist, .ff-Manrope, .ff-Crimson,
.accordion-button, .currency-selector,
.swal2-popup, .swal2-popup :not([class*="fa-"]) {
    font-family: var(--row-font) !important;
}
body { color: var(--row-text); -webkit-font-smoothing: antialiased; }
p { color: var(--row-text); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--row-ink);
}
h1.text-white, h2.text-white, h3.text-white,
.text-white h1, .text-white h2, .text-white h3,
.truth-content h2, .slider-area h1 { color: #fff; }

/* Hero title: Instrument Sans is wider than Crimson Text, so size it down a little */
.hero-content h1.fns-72 {
    font-size: clamp(2.25rem, 4.4vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.hero-content p { color: rgba(255, 255, 255, .86); font-weight: 500; }

/* Section titles */
.section-title h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.12;
}
.section-title p { color: var(--row-text); font-weight: 500; }
h3.fns-32 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.say-content p, .product-content p { color: #334155; }

/* Eyebrow above section titles ("From December 1st 2026", "Our Impact", "FAQ"),
   styled like the signup page's "HOW READY ARE YOU?" line with the gold bar */
.section-title span.red-color {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .025em;
    text-transform: uppercase;
    color: var(--row-accent) !important;
    margin-bottom: .6rem;
}
.section-title span.red-color::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 2px;
    margin-right: .6rem;
    vertical-align: middle;
    background: var(--row-gold);
}

/* ---------- Navigation ---------- */
.header-area.page-header.is-sticky,
.header-area.page-header.page-header-3.is-sticky {
    background: rgba(15, 23, 41, .86) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.main-menu ul li a { font-weight: 600; }

/* "Sign in / Register" and "Register / Login": white pill with navy text,
   like the signup page's primary video control */
.neno-button {
    background: #fff !important;
    color: var(--row-ink) !important;
    box-shadow: 0 10px 24px rgba(20, 22, 59, .28);
    transition: background .2s ease, transform .2s var(--row-ease);
}
.neno-button:hover, .neno-button:focus-visible {
    background: var(--row-soft) !important;
    color: var(--row-ink) !important;
    transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.g-button, .border-button, .tranparent-btn {
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 999px;
}
/* The gold ::before and red/green ::after layers in style.css were painted over the
   label, so the red and green buttons showed no text. Flat colours instead, as on /signup. */
.red-bg::before, .red-bg::after,
.green-bg::before, .green-bg::after {
    display: none !important;
}
.g-button.red-bg, .red_only_btn {
    background: var(--row-red) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(222, 17, 53, .22);
    transition: background .2s ease, transform .2s var(--row-ease), box-shadow .2s ease;
}
.g-button.red-bg:hover, .g-button.red-bg:focus-visible,
.red_only_btn:hover, .red_only_btn:focus-visible {
    background: var(--row-red-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(222, 17, 53, .3);
}
.g-button.green-bg, .g-button.green_only {
    background: var(--row-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(20, 22, 59, .28);
    transition: background .2s ease, transform .2s var(--row-ease);
}
.g-button.green-bg:hover, .g-button.green-bg:focus-visible,
.g-button.green_only:hover, .g-button.green_only:focus-visible {
    background: var(--row-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
/* On the dark campaign panels the indigo button needs a lighter edge */
.truth-button .g-button.green-bg { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(0, 0, 0, .3); }

/* "Learn more →" links */
.tranparent-sm, .tranparent-md { color: var(--row-primary); font-weight: 600; }
.tranparent-sm:hover, .tranparent-md:hover { color: var(--row-ink); }
.tranparent { font-weight: 600; }
.tranparent:hover { color: var(--row-gold) !important; }

.border-button:hover { background: var(--row-soft); color: var(--row-ink) !important; }

/* Keyboard focus: gold ring, as on /signup */
a:focus-visible, button:focus-visible, .donation-option:focus-within {
    outline: 2px solid var(--row-gold);
    outline-offset: 3px;
}

/* ---------- Hero ---------- */
.rhapsody-sec::before {
    background: linear-gradient(180deg, rgba(15, 23, 41, .55) 0%, rgba(20, 22, 59, .78) 100%);
}
.hero-actions .hero-ambassador-btn { font-weight: 600; }

/* Sponsor card: frosted navy panel */
.targeted-sponsor.black-bg {
    background: rgba(15, 23, 41, .72) !important;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.targeted-sponsor h3, .targeted-align h3 { font-weight: 500; letter-spacing: -0.02em; font-size: 1.6rem; line-height: 1.25; }
.targeted-sponsor h3 .fnw-600 { font-weight: 700; }
.black-bg .targeter-amount span { color: rgba(255, 255, 255, .72) !important; font-weight: 500; }

/* Amount options: chips; the chosen one turns white, like the signup page's segmented control */
.targeted-sponsor.black-bg .donation-option {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .85rem;
    transition: background .2s ease, border-color .2s ease;
}
.targeted-sponsor.black-bg .donation-option:hover { background: rgba(255, 255, 255, .13); }
.targeted-sponsor.black-bg .donation-option.active { background: #fff !important; border-color: #fff; }
.targeted-sponsor.black-bg .donation-option.active span.text-white { color: var(--row-ink) !important; }
.targeted-sponsor.black-bg .donation-option .circle { border-color: rgba(255, 255, 255, .45); }
.targeted-sponsor.black-bg .donation-option.active .circle { border: 5px solid var(--row-red); }

/* ---------- Campaign sections ---------- */
.say-img img, .product-img img {
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(20, 22, 59, .14);
}

/* Dark campaign panels (Penetrating With Truth, Youths Aglow): navy instead of green */
.back-img { border-radius: 1.25rem !important; overflow: hidden; }
.back-img::before {
    background: linear-gradient(120deg, rgba(20, 22, 59, .94) 0%, rgba(42, 47, 143, .82) 100%) !important;
    border-radius: 1.25rem !important;
}
.truth-content p { color: rgba(255, 255, 255, .86) !important; }

/* ---------- Impact counters ---------- */
.counter-item h1.count, .counter-item h1.count span {
    color: var(--row-ink) !important;
    letter-spacing: -0.03em;
}
.counter-item p.text-green {
    color: var(--row-muted) !important;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.counter-item { position: relative; }
.counter-item::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    margin: .75rem auto 0;
    background: var(--row-gold);
}

/* ---------- Products ---------- */
.products_area {
    background: linear-gradient(180deg, var(--row-surface) 0%, #f1f2fa 100%);
}
.text-gray { color: var(--row-muted) !important; }

/* ---------- Testimonies ---------- */
.testimonies-content {
    border: 1px solid var(--row-line);
    border-radius: 1rem;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--row-ease);
}
.testimonies-content:hover {
    border-color: var(--row-primary);
    box-shadow: 0 10px 24px rgba(20, 22, 59, .1);
    transform: translateY(-1px);
}

/* ---------- FAQ ---------- */
.accordion-item {
    border: 1px solid var(--row-line) !important;
    border-radius: 1rem !important;
}
.accordion-button { color: var(--row-ink); font-weight: 600 !important; }
.accordion-button:not(.collapsed) {
    background: var(--row-soft);
    color: var(--row-ink);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(232, 197, 71, .55); border-color: transparent; }
.accordion-body p { color: #475569; letter-spacing: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--row-surface); }
.footer h1, .footer h2, .footer h3 { color: var(--row-ink); }

/* ---------- Phones ---------- */
/* responsive.css forces every h1 to 48px !important under 768px; Instrument Sans needs less */
@media (max-width: 767px) {
    .hero-content h1.fns-72 { font-size: 2.4rem !important; line-height: 1.08; }
    .section-title h1, .section-title-2 h1, .slider-area h1 { font-size: 2rem !important; line-height: 1.12; }
    .counter-item h1.count { font-size: 2.5rem !important; }
    .footer h1 { font-size: 2rem !important; }
    h3.fns-32 { font-size: 1.45rem; }
    .targeted-sponsor h3, .targeted-align h3 { font-size: 1.35rem; }
}
