/* =========================================================
   CASH ASSIST FUND
   Main Website Stylesheet
   ========================================================= */

:root {
    --primary: #123b6d;
    --primary-dark: #0b294c;
    --accent: #0b7a4b;
    --accent-dark: #075c38;
    --light: #f5f8fb;
    --white: #ffffff;
    --text: #17212b;
    --muted: #5c6875;
    --border: #dce4ec;
    --warning-bg: #fff4f4;
    --warning-text: #b42318;
    --shadow: 0 10px 30px rgba(15, 40, 70, 0.10);
    --radius: 16px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo img {
    width: 42px;
    height: 42px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navigation a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
}

.navigation a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.7rem;
    color: var(--primary);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #f4f8fc 0%,
            #ffffff 55%,
            #edf7f2 100%
        );
    padding: 55px 0 65px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 650px;
}

.update-date {
    display: inline-block;
    margin-bottom: 18px;
    padding: 9px 15px;
    border-radius: 8px;
    background: #fff0f0;
    color: #c1121f;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    border: 2px solid #f0b7b7;
    box-shadow: 0 4px 12px rgba(193, 18, 31, 0.10);
}

.hero h1 {
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -1.8px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 26px;
    max-width: 610px;
}

.hero-image {
    background: var(--white);
    padding: 12px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    border-radius: 9px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 7px 18px rgba(11, 122, 75, 0.22);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

/* =========================================================
   TRUST / NOTICE BAR
   ========================================================= */

.notice {
    padding: 15px 0;
    background: var(--primary);
    color: var(--white);
}

.notice-inner {
    text-align: center;
    font-size: 0.95rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 75px 0;
}

.section-light {
    background: var(--light);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 13px;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* =========================================================
   CARDS
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 5px 18px rgba(15, 40, 70, 0.05);
}

.card-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 13px;
    background: #eaf5ef;
    color: var(--accent);
}

.card-icon img {
    width: 34px;
    height: 34px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card p {
    color: var(--muted);
}

/* =========================================================
   FEATURE SECTION
   ========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 55px;
    align-items: center;
}

.feature-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-content h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 17px;
}

.feature-content p {
    color: var(--muted);
    margin-bottom: 17px;
}

.check-list {
    list-style: none;
    margin: 22px 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-weight: 600;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
}

/* =========================================================
   STEPS
   ========================================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.step-number {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
}

.step h3 {
    margin-bottom: 9px;
    color: var(--primary-dark);
}

.step p {
    color: var(--muted);
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    padding: 70px 0;
    background: var(--primary-dark);
    color: var(--white);
}

.cta-box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 15px;
}

.cta-box p {
    color: #dce8f4;
    margin-bottom: 25px;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-box .btn-primary:hover {
    background: #edf2f7;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 13px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    width: 100%;
    padding: 19px 22px;
    background: var(--white);
    border: 0;
    text-align: left;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-question::after {
    content: "+";
    font-size: 1.35rem;
}

.faq-question.active::after {
    content: "−";
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    color: var(--muted);
}

.faq-answer.open {
    display: block;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    background: var(--light);
    padding: 55px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-dark);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    margin-bottom: 12px;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
    max-width: 850px;
    margin: 0 auto;
}

.content h2 {
    color: var(--primary-dark);
    margin: 35px 0 12px;
}

.content h3 {
    color: var(--primary-dark);
    margin: 25px 0 10px;
}

.content p {
    margin-bottom: 17px;
    color: var(--muted);
}

.content ul,
.content ol {
    margin: 0 0 20px 25px;
    color: var(--muted);
}

.content li {
    margin-bottom: 8px;
}

/* =========================================================
   RESOURCE CARDS
   ========================================================= */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.resource-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
}

.resource-card h3 {
    color: var(--primary-dark);
    margin-bottom: 9px;
}

.resource-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #091d33;
    color: var(--white);
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
}

.footer-brand p {
    color: #bdcad7;
    margin-top: 12px;
    max-width: 420px;
}

.footer-column h3 {
    margin-bottom: 13px;
}

.footer-column a {
    display: block;
    color: #bdcad7;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: #aebdcb;
    font-size: 0.9rem;
}

/* =========================================================
   COOKIE NOTICE
   ========================================================= */

.cookie-notice {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2000;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    padding: 20px;
    max-width: 700px;
}

.cookie-notice.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    color: var(--muted);
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--primary);
    font-weight: 700;
}

.cookie-actions {
    flex-shrink: 0;
}

/* =========================================================
   DISCLAIMER BOX
   ========================================================= */

.disclaimer-box {
    padding: 20px;
    border-left: 5px solid var(--primary);
    background: var(--light);
    border-radius: 8px;
    color: var(--muted);
    margin: 25px 0;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 18px 5%;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation a {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    .navigation a:last-child {
        border-bottom: 0;
    }

    .hero {
        padding: 32px 0 45px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /*
       Mobile priority:
       Text and CTA appear before the image.
    */

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .hero-text {
        font-size: 1.02rem;
    }

    .button-row {
        flex-direction: column;
    }

    .button-row .btn {
        width: 100%;
    }

    .card-grid,
    .steps-grid,
    .resource-grid,
    .footer-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 55px 0;
    }

    .feature-image {
        order: 2;
    }

    .feature-content {
        order: 1;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: 91%;
    }

    .hero h1 {
        font-size: 2.35rem;
        letter-spacing: -1px;
    }

    .update-date {
        font-size: 0.82rem;
    }

    .card,
    .step,
    .resource-card {
        padding: 22px;
    }

    .cta-section {
        padding: 55px 0;
    }

    .cookie-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }
}

/* =========================================
   FAQ ACCORDION
   ========================================= */

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 20px 50px 20px 0;
    font-weight: 700;
    line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "⌄";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: block;
    padding: 0 50px 20px 0;
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: 14px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}