/* ============================================================
   HANDS OF LOVE FOUNDATION — Complete Stylesheet
   Design system: burgundy + gold, editorial layout
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* ---- Color — Burgundy primary, Gold accent ---- */
    --burgundy:         #6B1E2E;
    --burgundy-dark:    #4A1320;
    --burgundy-deep:    #351018;
    --burgundy-light:   #8B2E42;
    --burgundy-pale:    #F5EEF0;

    --gold:             #C9A24B;
    --gold-light:       #E0C77A;
    --gold-pale:        #F5E9C8;

    --bg-cream:         #FBF7F5;
    --bg-white:         #FFFFFF;
    --bg-page:          #FAF6F4;
    --bg-tint:          #F5EEF0;

    --text-dark:        #1A0E12;
    --text-medium:      #4A3540;
    --text-light:       #8A6F78;

    --footer-burgundy:  #3A0F1A;
    --footer-input-bg:  #F0E6E9;
    --footer-input-border: #C9A24B;

    --pale-burgundy:    #F5EEF0;

    /* ---- Spacing ---- */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  40px;
    --space-xl:  64px;
    --space-2xl: 96px;

    --content-width:  1200px;
    --content-narrow: 780px;
    --header-height:  112px;

    /* ---- Radii ---- */
    --radius-btn:    8px;
    --radius-card:   18px;
    --radius-image:  16px;
    --radius-pill:   50px;
    --radius-circle: 50%;

    /* ---- Shadows ---- */
    --shadow-sm: 0 2px 8px  rgba(107, 30, 46, 0.06);
    --shadow-md: 0 6px 20px rgba(107, 30, 46, 0.10);
    --shadow-lg: 0 14px 40px rgba(107, 30, 46, 0.14);

    /* ---- Typography ---- */
    --font-script: 'Eagle Horizon', 'Dancing Script', 'Brush Script MT', cursive;
    --font-body:   'Aptos', 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-ui:     'Montserrat', 'Helvetica Neue', sans-serif;
    --font-serif:  'Playfair Display', Georgia, serif;

    /* ---- Motion ---- */
    --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);

    /* ---- Carousel ---- */
    --card-width:      250px;
    --card-gap:        24px;
    --card-height:     440px;
    --card-img-height: 200px;
    --card-preview-h:  110px;
    --card-step:       calc(var(--card-width) + var(--card-gap));

    --carousel-max-width:    1180px;
    --carousel-side-padding: 40px;
    --carousel-arrow-gap:    16px;
    --carousel-arrow-size:   46px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 84px;
    }
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Subtle film grain over the whole page — premium texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.3;
    color: var(--burgundy);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem;    }
h3 { font-size: 1.4rem;  }
h4 { font-size: 1.1rem;  }

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}


/* ============================================================
   3. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
    z-index: 10000;
    pointer-events: none;
    transition: width 0.1s linear;
}


/* ============================================================
   4. SECTION EYEBROWS
   ============================================================ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--burgundy);
    margin: 0 0 16px 0;
    opacity: 0.85;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.section-eyebrow-light {
    color: var(--gold);
    opacity: 0.95;
}


/* ============================================================
   5. HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 30, 46, 0.06);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 24px rgba(107, 30, 46, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 12px 32px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 88px;
    width: auto;
    object-fit: contain;
}

/* Desktop nav */
.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-menu > ul > li {
    position: relative;
}

.desktop-menu > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    border-radius: var(--radius-btn);
    transition: var(--transition);
}

.desktop-menu > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                left 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.desktop-menu > ul > li > a:hover {
    color: var(--burgundy);
    background: rgba(107, 30, 46, 0.04);
}

.desktop-menu > ul > li > a:hover::after {
    width: 50%;
    left: 25%;
}

.desktop-menu > ul > li > a i {
    font-size: 0.68rem;
    transition: var(--transition);
}

.desktop-menu > ul > li:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 250px;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(107, 30, 46, 0.06);
    z-index: 100;
}

.desktop-menu > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 22px;
    font-size: 0.86rem;
    color: var(--text-medium);
}

.dropdown li a:hover {
    background: rgba(107, 30, 46, 0.05);
    color: var(--burgundy);
    padding-left: 28px;
}

/* Give Now */
.give-now-dropdown {
    position: relative;
    margin-left: 12px;
}

.give-now-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: var(--burgundy);
    color: #ffffff;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
}

.give-now-btn:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.give-now-btn i {
    font-size: 0.68rem;
    transition: var(--transition);
}

.give-now-dropdown:hover .give-now-btn i {
    transform: rotate(180deg);
}

.give-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid rgba(107, 30, 46, 0.06);
    z-index: 100;
}

.give-now-dropdown:hover .give-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.give-dropdown li a {
    display: block;
    padding: 10px 22px;
    font-size: 0.86rem;
    color: var(--text-medium);
}

.give-dropdown li a:hover {
    background: rgba(107, 30, 46, 0.05);
    color: var(--burgundy);
}

/* Mobile button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: var(--burgundy);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}


/* ============================================================
   6. MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--burgundy);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-menu-btn:hover {
    transform: rotate(90deg);
}

.mobile-menu-logo {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(107, 30, 46, 0.08);
}

.mobile-menu-logo img {
    height: 56px;
    width: auto;
}

.mobile-menu > ul > li {
    border-bottom: 1px solid rgba(107, 30, 46, 0.05);
}

.mobile-menu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.mobile-menu > ul > li > a:hover {
    color: var(--burgundy);
}

.mobile-menu .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 10px 16px;
    min-width: auto;
    display: none;
    background: transparent;
}

.mobile-menu .has-dropdown.open .dropdown {
    display: block;
}

.mobile-menu .dropdown li a {
    padding: 8px 0;
    font-size: 0.86rem;
}

.mobile-give-item {
    margin-top: 24px;
}

.mobile-give-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--burgundy);
    color: #ffffff;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-give-btn:hover {
    background: var(--burgundy-dark);
}

.mobile-give-dropdown {
    display: none;
    margin-top: 8px;
    background: rgba(107, 30, 46, 0.04);
    border-radius: var(--radius-btn);
    padding: 8px 0;
}

.mobile-give-dropdown.active {
    display: block;
}

.mobile-give-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.86rem;
    color: var(--text-medium);
}

.mobile-give-dropdown li a:hover {
    color: var(--burgundy);
}

.mobile-menu a,
.mobile-menu button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.mobile-menu .has-dropdown > a i,
.mobile-give-btn i {
    transition: transform 0.3s ease;
}


/* ============================================================
   7. HERO
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    min-height: 540px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1A0E12;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/hero.jpg') center center / cover no-repeat;
    transform-origin: center center;
    will-change: transform;
    animation: hero-kenburns 24s ease-out forwards;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(26, 14, 18, 0.25) 0%,
            rgba(26, 14, 18, 0.40) 55%,
            rgba(26, 14, 18, 0.78) 100%
        ),
        linear-gradient(
            to right,
            rgba(74, 19, 32, 0.65) 0%,
            rgba(74, 19, 32, 0.30) 45%,
            rgba(74, 19, 32, 0.00) 80%
        );
    z-index: 1;
}

@keyframes hero-kenburns {
    from { transform: scale(1);    }
    to   { transform: scale(1.08); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 60px 100px;
}

.hero-content {
    max-width: 560px;
    text-align: left;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.hero-message {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: 0.1px;
    margin: 0 0 36px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn {
    display: inline-block;
    padding: 16px 46px;
    background: var(--burgundy);
    color: #ffffff;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--burgundy);
    border-radius: var(--radius-btn);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}


/* ============================================================
   8. STORIES OF LIFE CHANGE
   ============================================================ */
.stories-section {
    background: var(--bg-page);
    padding: 120px 0 90px;
    position: relative;
}

.stories-header {
    max-width: 900px;
    margin: 0 auto 56px;
    padding: 0 24px;
    text-align: center;
}

.stories-heading {
    font-family: var(--font-script);
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.stories-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--burgundy);
    margin: 0;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.stories-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--carousel-arrow-gap);
    max-width: var(--carousel-max-width);
    margin: 0 auto;
    padding: 0 var(--carousel-side-padding);
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-card);

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 40px,
        black calc(100% - 40px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 40px,
        black calc(100% - 40px),
        transparent 100%
    );
}

.carousel-auto {
    display: flex;
    width: max-content;
    animation: marquee-right 110s linear infinite;
}

.carousel-track {
    display: flex;
    gap: var(--card-gap);
    width: max-content;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

@keyframes marquee-right {
    from { transform: translateX(calc(var(--card-step) * -6)); }
    to   { transform: translateX(calc(var(--card-step) * -2)); }
}

@media (hover: hover) and (pointer: fine) {
    .carousel-viewport:hover .carousel-auto {
        animation-play-state: paused;
    }
}

/* ---------- Card ---------- */
.story-card {
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    height: var(--card-height);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(107, 30, 46, 0.10);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.story-card-image {
    position: relative;
    width: 100%;
    height: var(--card-img-height);
    overflow: hidden;
    flex-shrink: 0;
    background: #F5EEF0;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.story-card:hover .story-card-image img {
    transform: scale(1.08);
}

.story-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(107, 30, 46, 0.14) 0%,
        rgba(201, 162, 75, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.story-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 18px 18px;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(53, 16, 24, 0.92) 0%,
        rgba(53, 16, 24, 0.68) 55%,
        rgba(53, 16, 24, 0.00) 100%
    );
    color: #ffffff;
}

.story-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gold);
    color: var(--burgundy-deep);
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 8px;
}

.story-card-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.28;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px 18px;
}

.story-card-preview {
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
    height: var(--card-preview-h);
    overflow: hidden;
}

.story-card-btn {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 10px 24px;
    background: var(--burgundy);
    color: #ffffff;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--burgundy);
    border-radius: var(--radius-btn);
    transition: var(--transition);
}

.story-card-btn::after {
    content: '→';
    display: inline-block;
    margin-left: 6px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.story-card:hover .story-card-btn::after {
    transform: translateX(4px);
}

.story-card-btn:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
}

.carousel-arrow {
    flex-shrink: 0;
    width:  var(--carousel-arrow-size);
    height: var(--carousel-arrow-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--burgundy);
    font-size: 1rem;
    border: 1px solid rgba(107, 30, 46, 0.12);
    border-radius: var(--radius-circle);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--burgundy);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: var(--shadow-md);
}

.carousel-arrow:active {
    transform: scale(0.96);
}


/* ============================================================
   9. IMPACT PANEL
   ============================================================ */
.impact-panel {
    background:
        radial-gradient(
            ellipse 80% 60% at 20% 0%,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 70%
        ),
        var(--burgundy);
    color: #ffffff;
    padding: 100px 0 120px;
    width: 100%;
    position: relative;
}

.impact-panel-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 60px;
}

.impact-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-row-top {
    padding-bottom: 72px;
}

.impact-statements {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.impact-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.impact-icon i {
    display: inline-block;
    font-size: 2.6rem;
    transform-origin: center center;
    opacity: 0;
    transform: translateY(14px) scale(0.85);
    transition:
        opacity   0.7s ease,
        transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.impact-item.in-view .impact-icon i {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: icon-float 4s ease-in-out 0.9s infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0)    scale(1);    }
    50%      { transform: translateY(-6px) scale(1.03); }
}

.impact-item:nth-child(1).in-view .impact-icon i { animation-delay: 0.9s; }
.impact-item:nth-child(2).in-view .impact-icon i { animation-delay: 1.3s; }

.impact-figure {
    flex-shrink: 0;
    width: 130px;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--gold);
    padding-top: 4px;
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    position: relative;
}

.impact-figure::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 14px;
    opacity: 0.5;
    border-radius: 1px;
}

.impact-text {
    flex: 1;
    max-width: 560px;
    font-family: var(--font-ui);
    font-size: 0.94rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.65;
    color: #ffffff;
    margin: 0;
    padding-top: 8px;
}

.impact-tagline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 20px;
}

.impact-script {
    font-family: var(--font-script);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    text-align: right;
    max-width: 320px;
    margin: 0;
    letter-spacing: 0.5px;
}

.impact-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.impact-btn {
    display: inline-block;
    padding: 17px 46px;
    background: var(--gold);
    color: var(--burgundy-deep);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-btn);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.impact-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.impact-panel + section {
    margin-top: 0;
}


/* ============================================================
   10. OUR STORY
   ============================================================ */
.our-story-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 10px 40px 90px;

    background:
        linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
        url('images/community.jpg') center center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.our-story-inner {
    max-width: var(--content-narrow);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.our-story-heading {
    font-family: var(--font-script);
    font-size: 4rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    letter-spacing: 0.5px;
    margin: 0 0 26px 0;
}

.our-story-lead,
.our-story-preview {
    font-family: var(--font-body);
    color: var(--burgundy);
    font-weight: 400;
    line-height: 1.75;
    margin-left: auto;
    margin-right: auto;
}

.our-story-lead {
    font-size: 1.08rem;
    margin: 0 0 24px 0;
}

.our-story-preview {
    font-size: 1.02rem;
    margin: 0 0 44px 0;
}

.our-story-preview strong {
    font-weight: 700;
}

.our-story-btn {
    display: inline-block;
    padding: 16px 52px;
    background: var(--gold);
    color: var(--burgundy-deep);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-btn);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transition: var(--transition);
}

.our-story-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.our-story-section + footer {
    margin-top: 0;
}


/* ============================================================
   11. FOOTER
   ============================================================ */
footer#contact {
    background: var(--footer-burgundy);
    color: #ffffff;
    padding: 40px 0 0;
    width: 100%;
    margin-top: 0;
}

.footer-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    top: 30px;
}

.footer-logo img {
    width: 260px;
    height: auto;
    display: block;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 28px;
}

.footer-nav-group h4 {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-group ul li {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    list-style: none;
}

.footer-nav-group ul li a {
    display: block;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-decoration: none;
    line-height: 1.35;
    padding: 2px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav-group ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    align-self: end;
    padding-top: 0;
    padding-bottom: 24px;
}

.newsletter-text {
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 420px;
}

.newsletter-row {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 0 12px;
    background: var(--footer-input-bg);
    border: 1px solid var(--footer-input-border);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 12px;
    color: #2A2A2A;
    outline: none;
    height: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input::placeholder {
    color: #8A8A8A;
    font-weight: 400;
}

.newsletter-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.25);
}

.newsletter-btn {
    flex: 0 0 140px;
    height: 32px;
    padding: 0 18px;
    background: var(--gold);
    color: var(--burgundy-deep);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 75, 0.35);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
    width: 100%;
    max-width: 420px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-social .social-square {
    display: block;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 2px;
    font-size: 0;
}

.footer-badges {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 420px;
}

.footer-badges img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-copyright {
    margin-top: 32px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

.footer-copyright p {
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 9px;
    letter-spacing: 0.3px;
    margin: 0;
    opacity: 0.85;
}


/* ============================================================
   12. FLOATING SUPPORT BUTTON
   ============================================================ */
.floating-donate {
    position: fixed;
    top: 68%;
    left: 0;
    z-index: 900;

    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;

    width: 42px;
    min-height: 90px;
    padding: 14px 10px;

    border-radius: 14px;

    color: var(--burgundy-deep);
    background-color: var(--gold);
    overflow: hidden;

    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;

    box-shadow: 0 4px 18px rgba(201, 162, 75, 0.30);

    transition:
        transform        0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow       0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
        background-color 0.7s ease,
        opacity          0.9s ease;
}

.floating-donate i {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    color: var(--burgundy-deep);
    transform: rotate(90deg);
    animation: heart-beat 2.6s ease-in-out 2.4s infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: rotate(90deg) scale(1);    }
    50%      { transform: rotate(90deg) scale(1.14); }
}

.floating-donate i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 246, 214, 0.98)  0%,
        rgba(201, 162, 75, 0.70)  35%,
        rgba(201, 162, 75, 0.30)  60%,
        rgba(201, 162, 75, 0.00)  82%
    );

    z-index: -1;
    pointer-events: none;
    transform: scale(0);
    opacity: 0;
    animation: heart-ripple 2.6s ease-out 2.4s infinite;
}

@keyframes heart-ripple {
    0%   { transform: scale(0);  opacity: 0;    }
    15%  {                       opacity: 1;    }
    50%  { transform: scale(8);  opacity: 0.6;  }
    100% { transform: scale(14); opacity: 0;    }
}

.floating-donate:hover {
    background-color: var(--gold-light);
    transform: translateY(-50%) rotate(180deg) translateX(6px);
    box-shadow: 0 8px 26px rgba(201, 162, 75, 0.45);
    animation-play-state: paused;
}

.floating-donate:hover i,
.floating-donate:hover i::after {
    animation-play-state: paused;
}

.floating-donate.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) rotate(180deg) translateX(-140%);
}


/* ============================================================
   13. SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   1.1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-item.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --card-width:      220px;
        --card-height:     400px;
        --card-img-height: 190px;
        --card-preview-h:  100px;
        --carousel-side-padding: 28px;
        --carousel-arrow-size:   42px;
    }

    .hero-message { font-size: 2rem; }

    .stories-section { padding: 90px 0 70px; }

    .stories-heading { font-size: 3.4rem; }

    .impact-panel { padding: 80px 0 100px; }

    .impact-panel-inner { padding: 0 40px; }

    .impact-row {
        grid-template-columns: 1.3fr 1fr;
        gap: 40px;
    }

    .impact-script { font-size: 2.9rem; max-width: 260px; }

    .impact-icon { width: 56px; height: 56px; }
    .impact-icon i { font-size: 2.2rem; }

    .impact-figure { font-size: 2.6rem; width: 110px; }

    .our-story-section { padding: 100px 32px 80px; min-height: 540px; }
    .our-story-heading { font-size: 3.4rem; }
    .our-story-lead    { font-size: 1.02rem; }
    .our-story-preview { font-size: 0.98rem; }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px;
    }

    .footer-left,
    .footer-right {
        top: 0;
        align-self: start;
    }

    .footer-right { align-items: flex-start; }
    .newsletter-text { text-align: left; }

    .footer-social,
    .footer-badges {
        justify-content: flex-start;
        max-width: none;
    }

    .footer-logo img { width: 220px; }
}

@media (max-width: 768px) {
    :root {
        --card-width:      210px;
        --card-height:     380px;
        --card-img-height: 180px;
        --card-preview-h:  95px;
        --card-gap:        18px;
        --carousel-side-padding: 14px;
        --carousel-arrow-gap:    8px;
        --carousel-arrow-size:   36px;
    }

    html { font-size: 15px; }

    body::after { display: none; }

    .desktop-menu,
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn { display: block; }

    .logo img { height: 56px; }

    .hero {
        min-height: 440px;
        max-height: 480px;
    }

    .hero::after {
        background: linear-gradient(
            to bottom,
            rgba(26, 14, 18, 0.30) 0%,
            rgba(26, 14, 18, 0.50) 50%,
            rgba(26, 14, 18, 0.80) 100%
        );
    }

    .hero::before {
        animation-duration: 30s;
    }

    .hero-inner { padding: 0 24px 56px; }
    .hero-content { max-width: 100%; }
    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 2.4px; }

    .hero-message {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 24px;
    }

    .hero-btn {
        padding: 14px 34px;
        font-size: 0.78rem;
        letter-spacing: 1.2px;
    }

    .stories-section { padding: 70px 0 50px; }

    .stories-header { margin-bottom: 40px; padding: 0 24px; }

    .stories-heading {
        font-size: 2.6rem;
        margin-bottom: 12px;
    }

    .stories-subtitle { font-size: 0.92rem; }

    .stories-carousel { padding: 0 12px; gap: 8px; }

    .impact-panel { padding: 60px 0 80px; }
    .impact-panel-inner { padding: 0 24px; }

    .impact-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .impact-row-top { padding-bottom: 40px; }
    .impact-statements { gap: 28px; }
    .impact-item { gap: 14px; }

    .impact-icon { width: 48px; height: 48px; }
    .impact-icon i { font-size: 1.9rem; }

    .impact-figure {
        font-size: 2.4rem;
        width: 96px;
        padding-top: 3px;
    }

    .impact-figure::after { margin-top: 10px; width: 32px; }

    .impact-text { font-size: 0.9rem; line-height: 1.55; }

    .impact-tagline {
        justify-content: flex-start;
        padding-left: 0;
    }

    .impact-script {
        font-size: 2.5rem;
        text-align: left;
        max-width: 100%;
    }

    .impact-action { justify-content: flex-start; }
    .impact-item .impact-text { max-width: 100%; }

    .impact-btn { padding: 15px 36px; font-size: 0.82rem; }

    .our-story-section {
        padding: 80px 24px 64px;
        min-height: auto;
    }

    .our-story-heading {
        font-size: 2.6rem;
        margin-bottom: 24px;
    }

    .our-story-lead    { font-size: 0.96rem; margin-bottom: 20px; }
    .our-story-preview { font-size: 0.92rem; margin-bottom: 32px; }

    .our-story-btn { padding: 14px 40px; font-size: 0.82rem; }

    footer#contact { padding-top: 48px; }

    .footer-container { padding: 0 24px; gap: 32px; }
    .footer-left { gap: 32px; }
    .footer-logo img { width: 190px; }

    .footer-nav-grid {
        grid-template-columns: 1fr;
        row-gap: 28px;
        column-gap: 0;
    }

    .newsletter-row {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .footer-social { gap: 20px; }
    .footer-badges img { height: 44px; }

    .footer-copyright {
        margin-top: 40px;
        padding: 16px;
    }

    .floating-donate {
        width: 40px;
        min-height: 84px;
        padding: 12px 8px;
        font-size: 0.64rem;
    }
    .floating-donate i { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    :root {
        --carousel-side-padding: 10px;
        --carousel-arrow-size:   32px;
        --card-width: 195px;
        --card-height: 360px;
        --card-img-height: 175px;
    }

    .hero-message { font-size: 1.2rem; }

    .hero-btn { padding: 12px 26px; font-size: 0.74rem; }

    .stories-heading { font-size: 2.1rem; }

    .impact-item {
        display: grid;
        grid-template-columns: auto auto 1fr;
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
    }

    .impact-item .impact-text {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .impact-figure { font-size: 2rem; width: 82px; padding-top: 2px; }
    .impact-icon i { font-size: 1.6rem; }
    .impact-text { font-size: 0.86rem; }

    .our-story-heading { font-size: 2.2rem; }
    .our-story-lead,
    .our-story-preview { font-size: 0.9rem; }

    .our-story-btn { padding: 12px 32px; font-size: 0.78rem; }

    .footer-logo img { width: 160px; }
    .footer-badges img { height: 40px; }

    .floating-donate {
        width: 38px;
        min-height: 76px;
        font-size: 0.6rem;
    }
    .floating-donate i { font-size: 0.85rem; }
}


/* ============================================================
   15. ACCESSIBILITY & UTILITIES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .carousel-auto,
    .floating-donate,
    .floating-donate i,
    .floating-donate i::after,
    .impact-icon i,
    .reveal,
    .reveal-item {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .reveal-item {
        opacity: 1;
        transform: none;
    }

    .story-card-image img,
    .story-card-btn::after {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb {
    background: var(--burgundy-light);
    border-radius: 5px;
    border: 2px solid var(--bg-cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--burgundy); }

::selection {
    background: var(--gold);
    color: var(--burgundy-deep);
}

[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}