﻿/* ============================================
   FFAME — Brand Identity v1.0
   Colors, typography, and components per
   Fundação Felizardo & Feliciana Menete guide.
   ============================================ */

:root {
    /* ---- Core brand colors (from logo) ---- */
    --brand-blue: #0057A6;
    --ink: #000000;
    --white: #FFFFFF;
    /* ---- Extended palette ---- */
    --deep-blue: #003D75;
    --sky-blue: #4C8FCC;
    --pale-blue: #E6F1FB;
    --charcoal: #4A4A4A;
    --warm: #D98E04;
    --warm-dark: #B37700;
    /* ---- Aliases for legacy class names ---- */
    --primary: var(--brand-blue);
    --primary-dark: var(--deep-blue);
    --primary-light: var(--sky-blue);
    --secondary: var(--sky-blue);
    --dark: var(--ink);
    --mid: var(--charcoal);
    --light: var(--pale-blue);
    --lighter: #F2F7FC;
    --bg: #FAFCFE;
    --text: var(--charcoal);
    --border: #D7E6F5;
    /* ---- Fonts ---- */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    /* ---- Shadows & radii ---- */
    --shadow-sm: 0 4px 12px rgba(0, 87, 166, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 87, 166, 0.10);
    --shadow-lg: 0 16px 40px rgba(0, 87, 166, 0.14);
    --radius: 20px;
    --radius-lg: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography scale (per brand guide §3.2) ---------- */
h1, .hero-title, .section-title {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1, .hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
}
/* 40–48px */
h2, .section-title {
    font-size: clamp(1.75rem, 3vw, 2rem);
}
/* 28–32px */
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.375rem);
}
/* 20–22px */

.section-sub,
p.lead {
    font-family: var(--font-sans);
    font-size: 1.125rem; /* 18px */
    color: var(--charcoal);
}

/* Inline serif for emphasis / pull quotes */
em, .story-quote, .testimonial p {
    font-family: var(--font-serif);
    font-style: italic;
}

/* UI-level text (nav, buttons, labels, badges) */
.btn, .nav-links a, .btn-lang, .partner-badge,
.stat-label, .breadcrumb, footer {
    font-family: var(--font-sans);
}

/* Language toggle visibility */
body.lang-pt .lang-en {
    display: none;
}

body.lang-en .lang-pt {
    display: none;
}
/*=======================
    Logo styling
=========================*/

.logo-mark img {
    height: 70px;
    margin: 30px 5px;
}
/* ============================================
   BUTTONS — per brand guide §5
   Primary = Blue filled · Secondary = outline
   CTA/Donate = Warm Accent filled
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-blue);
    color: white;
    padding: 13px 28px;
    border-radius: 60px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border: 2px solid var(--brand-blue);
    cursor: pointer;
    transition: 0.22s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 87, 166, 0.22);
}

    .btn:hover {
        background: var(--deep-blue);
        border-color: var(--deep-blue);
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 87, 166, 0.32);
    }

/* Secondary: outline blue */
.btn-outline-dark {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    box-shadow: none;
}

    .btn-outline-dark:hover {
        background: var(--brand-blue);
        color: white;
        box-shadow: 0 8px 22px rgba(0, 87, 166, 0.28);
    }

/* Outline white (used over dark hero backgrounds) */
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

    .btn-outline:hover {
        background: white;
        color: var(--brand-blue);
    }

/* CTA / DONATE — Warm Accent ONLY (per guide §5) */
.btn-cta {
    background: var(--warm);
    border-color: var(--warm);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 142, 4, 0.30);
}

    .btn-cta:hover {
        background: var(--warm-dark);
        border-color: var(--warm-dark);
        box-shadow: 0 8px 22px rgba(217, 142, 4, 0.42);
    }

/* ============================================
   LANGUAGE TOGGLE — compact height + small flags
   ============================================ */
.lang-toggle {
    position: relative;
    display: inline-flex !important;
    flex: 0 0 70px !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 26px !important;
    padding: 2px !important;
    border: 1px solid #D7E6F5 !important;
    border-radius: 60px !important;
    background: #FFFFFF !important;
    cursor: pointer !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    align-items: center !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

    .lang-toggle:hover {
        border-color: var(--brand-blue) !important;
        box-shadow: 0 2px 8px rgba(0, 87, 166, 0.10) !important;
    }

    /* Moving pill — pale blue */
    .lang-toggle .slider {
        position: absolute !important;
        top: 2px !important;
        left: 2px !important;
        width: calc(50% - 2px) !important;
        height: calc(100% - 4px) !important;
        background: #CFE3F5 !important;
        border: 1px solid #B8D4F0 !important;
        border-radius: 60px !important;
        box-shadow: 0 1px 3px rgba(0, 87, 166, 0.08) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1 !important;
    }

body.lang-en .lang-toggle .slider {
    transform: translateX(100%) !important;
}

/* Flag slots */
.lang-toggle .opt {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 1 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
    filter: grayscale(0.5) opacity(0.55) !important;
}

    .lang-toggle .opt.active {
        filter: none !important;
        transform: scale(1.05) !important;
    }

/* Small flag image */
.lang-toggle .flag-img {
    width: 17px !important;
    height: 12px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

span.lang-label {
    font-size: xx-small;
    margin-right: 5px;
}

.lang-wrap {
    display: flex;
    align-items: flex-end;
}

/* Even smaller on mobile */
@media (max-width: 720px) {
    .lang-toggle {
        flex: 0 0 62px !important;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 24px !important;
    }

        .lang-toggle .flag-img {
            width: 15px !important;
            height: 10px !important;
        }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex: 0 0 auto; /* never stretch */
}
/* ============================================
   NAVBAR — light, airy, brand-compliant
   Logo: "FUNDAÇÃO" small caps over "FFAME" display
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: 0 2px 20px rgba(0, 87, 166, 0.05);
    border-bottom: 1px solid rgba(0, 87, 166, 0.06);
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

/* Logo lockup — mirrors the brand mark structure */
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
    box-shadow: 0 4px 12px rgba(0, 87, 166, 0.28);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .logo-text .logo-top {
        font-family: var(--font-serif);
        font-weight: 400;
        font-size: 0.72rem;
        letter-spacing: 4px;
        color: var(--brand-blue);
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .logo-text .logo-main {
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 1.5rem;
        letter-spacing: 1px;
        color: var(--brand-blue);
        line-height: 1;
    }

    .logo-text .logo-sub {
        font-family: var(--font-sans);
        font-weight: 400;
        font-size: 0.68rem;
        color: var(--charcoal);
        letter-spacing: 0.3px;
        margin-top: 3px;
        white-space: nowrap;
    }

/* Nav links — large, light weight, elegant underline */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

    .nav-links a {
        color: var(--charcoal);
        text-decoration: none;
        font-weight: 400;
        font-size: 1.1875rem; /* 19px */
        padding: 6px 2px;
        position: relative;
        transition: color 0.2s ease;
        letter-spacing: 0.1px;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 0;
            background: var(--brand-blue);
            transition: width 0.25s ease;
            border-radius: 2px;
        }

        .nav-links a:hover {
            color: var(--brand-blue);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

        .nav-links a.active {
            color: var(--brand-blue);
            font-weight: 600;
        }

            .nav-links a.active::after {
                width: 100%;
            }

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lang-switcher {
    display: flex;
    gap: 6px;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--deep-blue) 100%);
    color: white;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400" opacity="0.08"><circle cx="150" cy="100" r="180" fill="white"/><circle cx="680" cy="320" r="220" fill="white"/></svg>');
        background-size: cover;
    }

    .page-header .container {
        position: relative;
        z-index: 2;
    }

    .page-header h1 {
        font-family: var(--font-display);
        font-weight: 900;
        font-size: clamp(2rem, 4vw, 2.75rem);
        color: white;
        letter-spacing: -0.5px;
        margin-bottom: 12px;
    }

    .page-header p {
        font-family: var(--font-sans);
        font-size: 1.1rem;
        opacity: 0.92;
        max-width: 700px;
        margin: 0 auto;
    }

.breadcrumb {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

    .breadcrumb a {
        color: white;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* ============================================
   HERO SLIDER (Home)
   ============================================ */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 340px;
    max-height: 480px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

    .slide .dark-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 61, 117, 0.30) 0%, rgba(0, 30, 60, 0.78) 100%);
        z-index: 1;
    }

    .slide .overlay {
        position: absolute;
        bottom: 14%;
        left: 6%;
        right: 6%;
        max-width: 640px;
        color: white;
        z-index: 2;
        animation: fadeUp 0.8s ease both;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    color: white;
}

    .overlay h1 span {
        color: #B8D4F0;
    }

.overlay p {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    margin-bottom: 18px;
    opacity: 0.95;
    max-width: 520px;
}

.overlay .btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.overlay .btn {
    padding: 11px 24px;
    font-size: 0.95rem;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

    .slider-dots button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid white;
        background: transparent;
        cursor: pointer;
        transition: 0.3s;
        padding: 0;
    }

        .slider-dots button.active {
            background: white;
            border-color: white;
            width: 28px;
            border-radius: 8px;
        }

/* ============================================
   IMPACT STRIP — refined
   ============================================ */
.impact {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--deep-blue) 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

    .impact::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400" opacity="0.06"><circle cx="200" cy="80" r="180" fill="white"/><circle cx="1000" cy="350" r="220" fill="white"/></svg>');
        background-size: cover;
        pointer-events: none;
    }

    .impact .container {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 60px 24px;
        gap: 0;
    }

.impact-item {
    padding: 10px 30px;
    text-align: center;
    position: relative;
}

    .impact-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: rgba(255, 255, 255, 0.18);
    }

    .impact-item .icon-badge {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        border: 1.5px solid rgba(255, 255, 255, 0.24);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
        color: white;
        font-size: 1.5rem;
        transition: 0.3s ease;
    }

    .impact-item:hover .icon-badge {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-3px);
    }

    .impact-item .stat-number {
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 2.6rem;
        letter-spacing: -1px;
        line-height: 1;
        margin-bottom: 10px;
        color: white;
    }

    .impact-item .stat-label {
        font-family: var(--font-sans);
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.85);
    }

@media (max-width: 780px) {
    .impact .container {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 10px;
    }

    .impact-item {
        padding: 24px 10px;
    }

        .impact-item:not(:last-child)::after {
            right: 20%;
            left: 20%;
            top: auto;
            bottom: 0;
            height: 1px;
            width: 60%;
        }

        .impact-item .stat-number {
            font-size: 2.2rem;
        }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 3vw, 2rem);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--ink);
}

    .section-title .accent {
        color: var(--brand-blue);
    }

.section-sub {
    font-family: var(--font-sans);
    color: var(--charcoal);
    max-width: 720px;
    margin-bottom: 44px;
    font-size: 1.0625rem;
}

.text-center {
    text-align: center;
}

    .text-center .section-sub {
        margin-left: auto;
        margin-right: auto;
    }

/* ============================================
   CARDS & GRIDS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #EAF2FA;
    transition: 0.25s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .card i.card-icon {
        font-size: 1.9rem;
        color: var(--brand-blue);
        margin-bottom: 18px;
        display: block;
    }

    .card h3 {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 1.25rem;
        margin-bottom: 10px;
        color: var(--ink);
    }

    .card p {
        color: var(--charcoal);
        font-size: 1rem;
    }

.img-placeholder {
    background: var(--pale-blue);
    border-radius: var(--radius);
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-family: var(--font-sans);
    font-weight: 600;
    border: 2px dashed rgba(0, 87, 166, 0.22);
    margin-bottom: 16px;
    padding: 20px;
    text-align: center;
}

    .img-placeholder i {
        font-size: 1.8rem;
        margin-right: 10px;
    }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    margin: 30px 0;
}

.team-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: 0.25s;
}

    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .team-card .img-placeholder {
        min-height: 110px;
        border-radius: 100px;
        margin-bottom: 12px;
    }

    .team-card strong {
        font-family: var(--font-sans);
        color: var(--ink);
        display: block;
        font-weight: 600;
    }

    .team-card small {
        font-family: var(--font-sans);
        color: var(--charcoal);
        font-size: 0.85rem;
    }

.partner-badge {
    background: var(--pale-blue);
    color: var(--brand-blue);
    padding: 8px 18px;
    border-radius: 60px;
    display: inline-block;
    margin: 4px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.program {
    background: white;
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border-top: 4px solid var(--brand-blue);
}

    .program:nth-child(2) {
        border-top-color: var(--sky-blue);
    }

    .program:nth-child(3) {
        border-top-color: var(--deep-blue);
    }

    .program:nth-child(4) {
        border-top-color: var(--brand-blue);
    }

    .program:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .program .icon-circle {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        background: var(--pale-blue);
        color: var(--brand-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .program h3 {
        font-family: var(--font-serif);
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--ink);
    }

    .program p {
        color: var(--charcoal);
        font-size: 0.97rem;
    }

/* ============================================
   DONATION TIERS
   ============================================ */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}

.tier-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 26px;
    border: 2px solid var(--border);
    transition: 0.25s;
    text-align: center;
}

    .tier-card:hover {
        border-color: var(--brand-blue);
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .tier-card .amount {
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 2.4rem;
        color: var(--brand-blue);
        letter-spacing: -1px;
    }

    .tier-card .desc {
        color: var(--charcoal);
        margin: 12px 0 22px;
        min-height: 48px;
        font-size: 0.98rem;
    }

    .tier-card.featured {
        border-color: var(--brand-blue);
        background: var(--pale-blue);
    }

/* ============================================
   VOLUNTEER + FAQ + NEWSLETTER
   ============================================ */
.volunteer-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    background: var(--pale-blue);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    margin: 30px 0;
}

    .volunteer-strip .item i {
        font-size: 1.8rem;
        color: var(--brand-blue);
        margin-bottom: 12px;
        display: block;
    }

    .volunteer-strip h4 {
        font-family: var(--font-serif);
        font-weight: 700;
        margin-bottom: 6px;
        color: var(--ink);
    }

    .volunteer-strip p {
        font-size: 0.95rem;
        color: var(--charcoal);
    }

    .volunteer-strip a {
        color: var(--brand-blue);
        font-weight: 600;
        text-decoration: none;
    }

        .volunteer-strip a:hover {
            text-decoration: underline;
        }

.faq-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

    .faq-box h4 {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 16px;
        color: var(--ink);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .faq-box p {
        padding: 12px 0;
        border-bottom: 1px solid #EAF2FA;
        color: var(--charcoal);
    }

        .faq-box p:last-child {
            border-bottom: none;
        }

.newsletter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    max-width: 480px;
}

    .newsletter input {
        flex: 1;
        min-width: 180px;
        padding: 12px 20px;
        border: 2px solid var(--border);
        border-radius: 60px;
        font-family: var(--font-sans);
        font-size: 0.95rem;
        outline: none;
        transition: 0.2s;
        background: white;
    }

        .newsletter input:focus {
            border-color: var(--brand-blue);
        }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--brand-blue) 100%);
    color: white;
    text-align: center;
}

    .testimonials .section-title {
        color: white;
    }

.carousel {
    max-width: 700px;
    margin: 0 auto;
    min-height: 120px;
    position: relative;
}

.testimonial {
    display: none;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.55;
    animation: fadeIn 0.6s ease;
}

    .testimonial.active {
        display: block;
    }

    .testimonial .author {
        margin-top: 18px;
        font-family: var(--font-sans);
        font-style: normal;
        font-size: 0.95rem;
        color: #B8D4F0;
        font-weight: 600;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   STORIES
   ============================================ */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.story-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #EAF2FA;
}

    .story-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .story-card .img-placeholder {
        min-height: 150px;
        font-size: 0.9rem;
    }

    .story-card h4 {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 1.15rem;
        color: var(--ink);
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .story-card p {
        color: var(--charcoal);
        font-size: 0.97rem;
        flex: 1;
    }

.story-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--brand-blue);
    font-weight: 400;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--pale-blue);
    border-radius: 12px;
    font-size: 0.95rem;
    border-left: 4px solid var(--brand-blue);
}

.story-card.featured-story {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
    padding: 30px;
    border: 2px solid var(--brand-blue);
    background: #F7FBFF;
}

    .story-card.featured-story .img-placeholder {
        min-height: 240px;
        margin-bottom: 0;
    }

@media (max-width: 700px) {
    .story-card.featured-story {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin: 12px 0;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    width: 22px;
    color: var(--brand-blue);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

    .social-links a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--pale-blue);
        color: var(--brand-blue);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: 0.25s;
        font-size: 1.1rem;
        text-decoration: none;
    }

        .social-links a:hover {
            background: var(--brand-blue);
            color: white;
            transform: translateY(-4px);
        }

.legal-note {
    background: var(--pale-blue);
    padding: 18px 24px;
    border-radius: 16px;
    color: var(--deep-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.transparency-note {
    background: #F2F7FC;
    padding: 16px 22px;
    border-radius: 16px;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-top: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--brand-blue);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 30px;
}

    footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    footer strong {
        color: white;
        font-family: var(--font-display);
        font-weight: 900;
    }

    footer a {
        color: white;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* ============================================
   STICKY DONATE — Warm Accent (per guide §5)
   ============================================ */
.sticky-donate {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--warm);
    color: white;
    padding: 16px 28px;
    border: none;
    border-radius: 60px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 142, 4, 0.42);
    transition: 0.25s;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

    .sticky-donate:hover {
        background: var(--warm-dark);
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 12px 30px rgba(217, 142, 4, 0.55);
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .grid-2, .grid-3, .tier-grid, .contact-flex {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 20px;
    }

        .nav-links a {
            font-size: 1.05rem;
        }

    .logo-text .logo-main {
        font-size: 1.3rem;
    }
}

@media (max-width: 720px) {
    section {
        padding: 55px 0;
    }

    .navbar .container {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 14px;
    }

    .nav-right {
        justify-content: center;
        width: 100%;
    }

    .hero-slider {
        height: 55vh;
        min-height: 380px;
    }

    .overlay {
        bottom: 10%;
        left: 5%;
        right: 5%;
    }

    .logo-text .logo-sub {
        display: none;
    }
}

@media (max-width: 480px) {
    .sticky-donate {
        padding: 12px 20px;
        font-size: 0.9rem;
        bottom: 16px;
        right: 16px;
    }

    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

/* Remove any old switcher rules that might interfere */
.lang-switcher {
    display: none !important;
}

.btn-lang {
    display: none !important;
}