/*
Theme Name: Autism Beyond 18
Theme URI: https://autismbeyond18.org/
Author: Autism Beyond 18
Description: Custom warm nonprofit theme for Autism Beyond 18 — deep navy, warm orange, cream. Built with Gemini.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: ab18
*/

/* ============ Design tokens ============ */
:root {
    --navy: #163B52;
    --navy-dark: #0E2A3E;
    --navy-soft: #EAF1F6;
    --orange: #F59E0B;
    --orange-dark: #D97706;
    --orange-soft: #FEF3E2;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --slate: #5A6578;
    --ink: #243444;
    --radius: 22px;
    --shadow: 0 10px 30px -8px rgba(22, 59, 82, 0.14);
    --shadow-lg: 0 22px 55px -12px rgba(22, 59, 82, 0.22);
    --font-head: 'Nunito', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--slate);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 900; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.center { text-align: center; }

/* Eyebrow labels */
.eyebrow {
    display: inline-block;
    color: var(--orange);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.section-sub { font-size: 1.12rem; max-width: 640px; }
.center .section-sub { margin-inline: auto; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 34px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
    border: 2px solid transparent; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.55); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn .fa-arrow-right { font-size: 0.85em; }

/* ============ Badges ============ */
.pill-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: #fff;
    font-size: 0.82rem; font-weight: 700;
    padding: 9px 20px; border-radius: 999px;
}
.pill-badge .fa-heart { color: var(--orange); font-size: 0.85em; }
.pill-badge.orange { background: var(--orange); color: var(--navy); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.icon-badge {
    width: 58px; height: 58px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem; flex: none;
}
.icon-badge.orange { background: var(--orange); color: var(--navy); }
.icon-badge.soft { background: var(--orange-soft); color: var(--orange-dark); }

/* ============ Navbar ============ */
.navbar {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #F1E8D8;
    backdrop-filter: blur(8px);
}
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-img { height: 46px; width: auto; display: block; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.brand-logo .fa-heart { color: var(--orange); }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.28rem; color: var(--navy); line-height: 1; }
.brand-name .hl { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-weight: 700; color: var(--navy); font-size: 0.98rem; padding: 6px 2px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--orange-dark); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 28px; font-size: 0.95rem; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; padding: 8px; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid #F1E8D8; padding: 10px 4% 22px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 6px; font-weight: 700; color: var(--navy); border-bottom: 1px solid #F6EFE2; }
.mobile-menu .btn { margin-top: 14px; width: 100%; justify-content: center; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-dark); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,42,62,0.88) 20%, rgba(14,42,62,0.55) 55%, rgba(14,42,62,0.25) 100%); }
.hero-content { position: relative; z-index: 2; padding: 110px 0; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 7.5vw, 5.4rem); letter-spacing: -0.01em; margin: 22px 0 10px; }
.hero h1 .hl { color: var(--orange); }
.hero-sub { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.hero-text { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Gap section ============ */
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.gap-copy p { margin-bottom: 18px; font-size: 1.08rem; }
.rounded-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.rounded-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-card h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.stat-card p { font-size: 0.95rem; }

/* ============ Quote band ============ */
.quote-band { background: var(--navy); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.quote-mark { color: var(--orange); font-size: 4.6rem; font-family: Georgia, serif; line-height: 0.6; display: block; margin-bottom: 26px; }
.quote-band blockquote { color: #fff; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 880px; margin: 0 auto 22px; line-height: 1.3; }
.quote-label { color: var(--orange); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.24em; }

/* ============ Cards grids ============ */
.card-grid { display: grid; gap: 26px; margin-top: 54px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.focus-card { background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.focus-card:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: var(--shadow-lg); }
.focus-card:hover .icon-badge.soft { background: var(--orange); color: var(--navy); }
.focus-card h3 { font-size: 1.22rem; margin: 18px 0 10px; }
.focus-card p { font-size: 0.96rem; }

/* Advocacy numbered cards */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; }
.adv-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adv-photo { position: relative; height: 210px; overflow: hidden; }
.adv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.adv-card:hover .adv-photo img { transform: scale(1.05); }
.adv-num { position: absolute; left: 18px; bottom: -4px; font-family: var(--font-head); font-weight: 900; font-size: 4.2rem; color: var(--orange-soft); line-height: 1; text-shadow: 0 2px 0 rgba(255,255,255,.7); }
.adv-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.adv-body h3 { font-size: 1.35rem; }
.adv-body p { font-size: 0.97rem; flex: 1; }

/* Icon headers (replacing photos) */
.adv-icon { height: 240px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--orange-soft) 0%, #FBE3B8 100%); }
.adv-icon .fa-solid { font-size: 5.6rem; color: var(--orange-dark); }
.tile-icon { border-radius: var(--radius); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); min-height: 420px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.tile-icon .fa-solid { font-size: 7.5rem; color: var(--orange); }
.pillar-icon { border-radius: var(--radius); background: linear-gradient(135deg, var(--orange-soft) 0%, #FBE3B8 100%); min-height: 380px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.pillar-icon .fa-solid { font-size: 6.2rem; color: var(--orange-dark); }

/* Alternating rows (advocacy page) */
.pillar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 46px 0; }
.pillar-row + .pillar-row { border-top: 1px solid #F3EAD6; }
.pillar-row.flip .pillar-photo { order: 2; }
.pillar-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--orange); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; padding: 8px 18px; border-radius: 999px; margin-bottom: 14px; }
.pillar-row h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.pillar-row p { font-size: 1.05rem; margin-bottom: 14px; }
.pillar-row ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.pillar-row ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.99rem; color: var(--ink); }
.pillar-row ul .fa-circle-check { color: var(--orange); margin-top: 4px; }

/* ============ CTA band ============ */
.cta-band { position: relative; background: var(--orange); overflow: hidden; padding: 96px 0; text-align: center; }
.cta-bg { position: absolute; inset: 0; opacity: 0.16; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; }
.cta-band h2 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-kicker { color: var(--navy); font-weight: 800; letter-spacing: 0.24em; font-size: 0.8rem; margin-bottom: 30px; opacity: 0.75; }

/* ============ Page hero ============ */
.page-hero { background: var(--navy); padding: 84px 0 72px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: 0.14; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.page-hero h1 .hl { color: var(--orange); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 680px; margin-inline: auto; font-size: 1.1rem; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-dark); border-top: 5px solid var(--orange); color: rgba(255,255,255,0.78); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { color: var(--orange); font-weight: 700; margin: 14px 0 10px; font-size: 0.98rem; }
.footer-about { font-size: 0.92rem; max-width: 300px; }
.footer-h { color: var(--orange); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.2em; margin-bottom: 20px; }
.footer-links { list-style: none; display: grid; gap: 12px; }
.footer-links a { font-size: 0.96rem; transition: color .15s; }
.footer-links a:hover { color: var(--orange); }
.contact-list { list-style: none; display: grid; gap: 14px; font-size: 0.95rem; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .fa-solid { color: var(--orange); margin-top: 4px; }
.contact-list a:hover { color: var(--orange); }
.footer-cta p { font-size: 0.93rem; margin-bottom: 18px; }
.qr-block { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.qr-block a { display: block; transition: transform .18s ease; }
.qr-block a:hover { transform: scale(1.06); }
.qr-block img { width: 96px; height: 96px; border-radius: 14px; background: #fff; display: block; }
.qr-block span { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ============ Modal ============ */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(14,42,62,0.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-box { background: #fff; border-radius: 26px; max-width: 560px; width: 100%; padding: 40px 36px; position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: none; background: #F3EDE0; color: var(--navy); font-size: 1rem; cursor: pointer; }
.modal-box h3 { font-size: 1.6rem; margin: 16px 0 6px; }
.modal-box .modal-sub { font-size: 0.94rem; margin-bottom: 18px; }

/* ============ Toast ============ */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 120; background: var(--navy); color: #fff; padding: 16px 24px; border-radius: 16px; border: 1px solid var(--orange); box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.toast.show { display: flex; animation: toastIn .3s ease; }
.toast .fa-circle-check { color: var(--orange); font-size: 1.2rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ Forms (WPForms) ============ */
.ab18-form .wpforms-container-full, .ab18-form .wpforms-container { margin: 0; }
.ab18-form .wpforms-field { padding-bottom: 16px; }
.ab18-form label.wpforms-field-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 6px; }
.ab18-form input[type=text], .ab18-form input[type=email], .ab18-form input[type=tel], .ab18-form select, .ab18-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid #E5DCC8;
    font-family: var(--font-body); font-size: 16px; color: var(--ink); background: #fff; /* 16px: iOS Safari auto-zoom rokta hai */
}
.ab18-form input:focus, .ab18-form select:focus, .ab18-form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
.ab18-form button.wpforms-submit {
    width: 100%; padding: 16px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--orange); color: var(--navy); font-family: var(--font-head); font-weight: 900; font-size: 1.05rem;
    box-shadow: 0 10px 24px -8px rgba(245,158,11,.55); transition: transform .15s, background .15s;
}
.ab18-form button.wpforms-submit:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.ab18-form .wpforms-confirmation-container-full { background: var(--navy-soft); border: 1.5px solid var(--navy); border-radius: 16px; padding: 20px; color: var(--navy); font-weight: 600; }

/* Get involved layout */
.involve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 8px; }
.involve-copy p { margin-bottom: 16px; font-size: 1.06rem; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 600; color: var(--ink); font-size: 0.97rem; }
.check-list .fa-circle-check { color: var(--orange); margin-top: 3px; }
.form-card { background: #fff; border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--orange); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: 18px; padding: 20px; transition: transform .18s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card .icon-badge { width: 48px; height: 48px; font-size: 1.1rem; }
.contact-card small { display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; opacity: 0.7; }
.contact-card strong { font-size: 1.02rem; word-break: break-all; }

/* About page extras */
.story-lead { font-size: 1.3rem; color: var(--navy); font-weight: 700; font-family: var(--font-head); }
.prose p { margin-bottom: 18px; font-size: 1.07rem; }
.prose { max-width: 800px; }
.vision-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 52px 48px; margin-top: 40px; }
.vision-box h2 { color: #fff; margin-bottom: 16px; }
.vision-box p { color: rgba(255,255,255,0.85); font-size: 1.08rem; margin-bottom: 14px; }
.vision-box p:last-child { margin-bottom: 0; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
    .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .involve-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-cta .btn { display: none; }
    .hamburger { display: block; }
    .gap-grid, .pillar-row { grid-template-columns: 1fr; gap: 36px; }
    .pillar-row.flip .pillar-photo { order: 0; }
}
@media (max-width: 620px) {
    .section { padding: 64px 0; }
    .card-grid.cols-4, .adv-grid, .stat-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .contact-cards { grid-template-columns: 1fr; }
    .hero-content { padding: 84px 0; }
    .modal-box { padding: 32px 24px; }
}

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--navy); font-weight: 800; padding: 12px 22px; z-index: 200; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
