/* ==========================================================================
   Sacred Bloom Health Foundation – Mobile-First Optimized CSS (2026)
   ========================================================================== */

:root {
    --primary:       #ed3176;
    --primary-dark:  #d42a67;
    --secondary:     #7fc142;
    --dark:          #2c3e50;
    --light:         #f8f9fa;
    --gray:          #6c757d;

    --font-size-base: clamp(1rem,   0.5rem + 2vw, 1.125rem);
    --font-size-h1:   clamp(2.1rem, 6vw + 1rem,   3.6rem);
    --font-size-h2:   clamp(1.7rem, 5vw + 0.8rem, 2.6rem);
    --font-size-h3:   clamp(1.35rem,4vw + 0.6rem, 1.9rem);

    --spacing-xs: 0.75rem;
    --spacing-sm: 1.25rem;
    --spacing-md: 2rem;
    --spacing-lg: clamp(3rem, 6vw, 5rem);

    --shadow-sm: 0 3px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}


/* ==========================================================================
   TYPOGRAPHY & REUSABLES (mobile base)
   ========================================================================== */

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: var(--font-size-h1); margin-block-end: 1rem; }
h2 { font-size: var(--font-size-h2); margin-block: 0 1.25rem; position: relative; }
h3 { font-size: var(--font-size-h3); }

h2:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.text-center h2:after { left: 50%; transform: translateX(-50%); }

p {
    margin-block-end: 1.25rem;
    font-size: 1.05rem;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus-visible { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary { background: var(--secondary); color: white; }
.btn-outline    { border: 2px solid var(--primary); color: var(--primary); background: transparent; }

.btn-outline:hover,
.btn-outline:focus-visible { background: var(--primary); color: white; }

/* Focus & motion */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; transform: none !important; }
}

/* ==========================================================================
   HEADER & NAVIGATION (mobile hamburger first)
   ========================================================================== */

/* ==========================================================================
   HEADER & NAVIGATION (enhanced mobile-first + nonprofit best practices)
   ========================================================================== */

.site-header {  
    position: sticky;               
    inset-block-start: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    box-shadow: var(--shadow-sm);
    padding-block: 0.2rem;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding-block: 0.65rem;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

/* Container layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Safety for very small screens */
}

/* Logo – make whole thing clickable if using <a> wrapper */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    /* max-height: 80px;           */
    width: 110px;
    height: auto;
}

.logo h1 {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    margin-inline-start: 0.75rem; /* If keeping text beside logo */
    white-space: nowrap;
}

.logo span { color: var(--primary); }
.logo .bloom { color: var(--secondary); }

/* Mobile toggle – larger touch target, accessible */
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.9rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.75rem;          /* ≥44px touch target */
    margin-inline-start: auto; /* Push to right if needed */
    display: flex;
    align-items: center;
}

.mobile-toggle:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Navigation – hidden on mobile */
nav {
    display: none;
}

nav.active {
    display: block;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    background: white;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) var(--spacing-sm);
    max-height: calc(100vh - var(--header-height, 70px)); /* Prevent overflow */
    overflow-y: auto;
}

/* Optional: Backdrop overlay when menu open */
nav.active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

/* Menu list */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 0.8rem 1rem;
    display: block;
    transition: color 0.2s;
}

nav a:hover,
nav a:focus-visible {
    color: var(--primary);
}

/* Donate button – always visible on desktop, in menu or separate on mobile */
.nav-cta .btn-primary {
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(237, 49, 118, 0.25);
}

/* Desktop layout – full nav + CTA */
@media (min-width: 768px) {
    .mobile-toggle { display: none; }

    nav {
        display: flex;
        position: static;
        flex-grow: 1;
        justify-content: flex-end;
    }

    nav ul {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    nav a {
        padding: 0.5rem 0;
        font-size: 1.05rem;
    }

    .header-container {
        flex-wrap: nowrap;
    }

    /* Push Donate further right */
    .nav-cta {
        margin-inline-start: 1.5rem;
    }
}

/* ==========================================================================
   Mobile: Donate button BETWEEN logo and hamburger
   ========================================================================== */

@media (max-width: 767px) {

    .header-container {
        position: relative;
        justify-content: space-between;
        align-items: center;
        padding-inline: 1rem;
    }

    /* Logo stays on the left */
    .logo {
        flex-shrink: 0;
        z-index: 12;
    }

    /* Donate button centered (visually between logo and hamburger) */
    .nav-cta {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    /* Hamburger stays on the far right */
    .mobile-toggle {
        margin-left: auto;
        flex-shrink: 0;
        z-index: 11;                    /* slightly above donate if overlap risk */
        padding: 0.8rem;                /* good touch target */
    }

    /* Make Donate button more compact on mobile */
    .donate-btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.95rem;
        min-width: 110px;
        box-shadow: 0 3px 10px rgba(237, 49, 118, 0.3);
        white-space: nowrap;
    }

    /* Optional: even smaller screens → icon-only button */
    @media (max-width: 360px) {
        .donate-btn {
            padding: 0.6rem 0.9rem;
            font-size: 0.9rem;
            min-width: 90px;
        }

        .donate-btn i {
            margin-right: 0.4rem;
        }
    }
}

/* Desktop layout remains unchanged (your existing rules) */
@media (min-width: 768px) {
    .nav-cta {
        position: static;
        transform: none;
        margin-left: 1.5rem;
    }

    .mobile-toggle {
        display: none;
    }

    .donate-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1.05rem;
    }
}

/* Extra small screens – ensure nothing overflows */
@media (max-width: 480px) {
    .header-container {
        padding-inline: 0.75rem;
    }

    .logo img {
        max-height: 42px;
    }
}

.pulse {
    animation: pulse 2s infinite;
}


/* ==========================================================================
   ABOUT HERO – large emotional opener
   ========================================================================== */

.about-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(44, 62, 80, 0.78), rgba(44, 62, 80, 0.58));
    background-image: linear-gradient(rgba(44, 62, 80, 0.78), rgba(44, 62, 80, 0.58)),
                      url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?auto=format&fit=crop&w=1600&q=90');
    background-size: cover;
    background-position: center 30%; /* slightly higher crop to focus on faces */
    background-attachment: fixed;     /* subtle parallax – disable on mobile below */
    padding-block: clamp(8rem, 18vh, 12rem) 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18); /* extra readability layer */
    z-index: 1;
}

.about-hero .container,
.about-hero .row {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: clamp(2rem, 9vw + 0.5rem, 5.2rem);
    color: var(--primary);
    font-weight: 800;
    line-height: 1.05;
    margin-block-end: 1.4rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.about-hero .lead {
    font-size: clamp(1.35rem, 3.8vw, 1.65rem);
    color: var(--light);
    max-width: 720px;
    line-height: 1.5;
}

.hero-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.about-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-hero:hover img {
    transform: scale(1.04);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .about-hero {
        min-height: 70vh;
        background-attachment: scroll; /* disable parallax on mobile */
        padding-block: clamp(7rem, 14vh, 11rem) 3rem;
    }

    .about-hero h1 {
        font-size: clamp(2.4rem, 8vw, 4rem);
    }

    .hero-image-wrapper {
        margin-block-start: 3.5rem;
    }
}

/* ==========================================================================
   VISION + MISSION – gradient full-width break
   ========================================================================== */

.vision-mission {
    background: linear-gradient(135deg, var(--primary), #c2185b);
    color: white;
    padding-block: var(--spacing-lg);
}

.vision-mission h2 {
    font-size: var(--font-size-h2);
    margin-block-end: 1.25rem;
    text-align: center;
}

.vision-mission p {
    font-size: clamp(1.2rem, 2.8vw, 1.4rem);
    line-height: 1.6;
    opacity: 0.92;
}

/* ==========================================================================
   GUIDING PILLARS SECTION – Modern, icon-centered cards
   ========================================================================== */

.guiding-pillars {
    background: var(--light);
    padding-block: clamp(4rem, 10vw, 7rem);
}

.guiding-pillars .section-header h2 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin-bottom: 1rem;
    text-align: center;
}

.guiding-pillars .section-header p {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.15rem;
    color: var(--gray);
    text-align: center;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: var(--light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pillar-icon i {
    font-size: 2.6rem;
    color: var(--primary);
}

.pillar-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pillar-card p {
    font-size: 1.03rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0;
}

/* Responsive layout */
@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .pillar-card {
        padding: 3rem 2.2rem;
    }

    .pillar-icon {
        width: 90px;
        height: 90px;
    }

    .pillar-icon i {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .pillars-grid {
        gap: 3rem;
    }
}

/* ==========================================================================
   CORE VALUES – tight modern grid cards
   ========================================================================== */

.values {
    background: var(--light);
    padding-block: clamp(4rem, 9vw, 7rem);
}

.values h2 {
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    margin-block-end: 3rem;
    text-align: center;
    align-content: center;
    justify-content: center;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

@media (min-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr); /* 3–4 columns, narrower cards */
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on wide screens */
    }
}

.value-card {
    background: white;
    padding: 2rem 1.6rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px; /* consistent height */
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-block-end: 1.2rem;
}

.value-card h3 {
    font-size: 1.32rem;
    margin-block-end: 0.8rem;
    font-weight: 700;
}

.value-card p {
    font-size: 0.97rem;
    color: var(--gray);
    line-height: 1.6;
    margin-top: auto;
}

/* ==========================================================================
   WHAT WE DO – tight modern grid cards
   ========================================================================== */

.what-we-do {
    background: var(--light-pink);
    padding-block: clamp(4rem, 9vw, 7rem);
    align-content: center;
    justify-content: center;
}

.what-we-do h2 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin-block-end: 1rem;
    text-align: center;
}

.what-we-do .lead {
    max-width: 760px;
    margin-inline: auto;
    margin-block-end: 3rem;
    font-size: 1.12rem;
    color: var(--gray);
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

@media (min-width: 576px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

@media (min-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr); /* 3–4 columns, narrower cards */
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on wide screens */
        gap: 2.2rem;
    }
}

.program-card {
    background: white;
    padding: 2.2rem 1.6rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
}

.program-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-block-end: 1.2rem;
}

.program-card h3 {
    font-size: 1.32rem;
    margin-block-end: 0.8rem;
    font-weight: 700;
}

.program-card p {
    font-size: 0.97rem;
    color: var(--gray);
    line-height: 1.6;
    margin-top: auto;
}

/* ==========================================================================
   WE ADDRESS SECTION – 7 Pillars Grid
   ========================================================================== */

.we-address {
    background: var(--light);
    padding-block: clamp(5rem, 10vw, 8rem);
}

.we-address .section-header h2 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin-bottom: 1rem;
    text-align: center;
}

.we-address .lead {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 4rem;
    font-size: 1.18rem;
    color: var(--gray);
    text-align: center;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.address-card {
    background: white;
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.address-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.address-icon {
    width: 80px;
    height: 80px;
    background: var(--light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.address-icon i {
    font-size: 2.6rem;
    color: var(--primary);
}

.address-card h3 {
    font-size: 1.38rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.address-card p {
    font-size: 1.02rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0;
}

.address-cta {
    margin-top: 4rem;
}

.address-cta .btn-lg {
    padding: 1.1rem 2.6rem;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(237,49,118,0.3);
}

/* Responsive – 3–4 column grid on larger screens */
@media (min-width: 576px) {
    .address-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .address-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}

@media (min-width: 1200px) {
    .address-grid {
        grid-template-columns: repeat(4, 1fr); /* Full 7-column layout on very wide screens */
        gap: 2rem;
    }
}

/* ==========================================================================
   COMMUNITY HEALTH MODEL – Timeline / Step Flow
   ========================================================================== */

.community-model {
    background: var(--light);
    padding-block: clamp(5rem, 10vw, 8rem);
}

.community-model .section-header h2 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin-bottom: 1rem;
    text-align: center;
}

.community-model .lead {
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 4rem;
    font-size: 1.18rem;
    color: var(--gray);
    text-align: center;
}

.model-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    position: relative;
    padding: 2rem 0;
}

.model-step {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.35s ease;
    z-index: 2;
}

.model-step:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
}

.step-icon i {
    font-size: 2.6rem;
    color: var(--primary);
}

.model-step h3 {
    font-size: 1.38rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.model-step p {
    font-size: 1.02rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0;
}

/* Connecting lines/arrows between steps */
.model-connector {
    flex: 0 0 auto;
    width: 60px;
    height: 4px;
    background: var(--primary);
    align-self: center;
    position: relative;
    margin: 0 -1rem;
}

.model-connector::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid var(--primary);
}

/* Mobile: stack vertically with vertical connectors */
@media (max-width: 991px) {
    .model-timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .model-connector {
        width: 4px;
        height: 60px;
        margin: -1.5rem 0;
    }

    .model-connector::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid var(--primary);
    }
}

/* CTA */
.model-summary .btn-lg {
    padding: 1.1rem 2.6rem;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(237,49,118,0.3);
}

/* ==========================================================================
   FINAL CTA – bold full-width
   ========================================================================== */

.cta-final {
    background: linear-gradient(135deg, var(--primary), #c2185b);
    color: white;
    text-align: center;
    padding-block: var(--spacing-lg);
}

.cta-final h2 {
    font-size: clamp(2.6rem, 7vw, 4rem);
    text-align: center;
}

.cta-final .lead {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.cta-final .btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 1rem 3rem;
}

.cta-final .btn-light:hover,
.cta-final .btn-light:focus-visible {
    background: var(--primary);
    color: white;
}

.cta-final .btn-outline-light {
    border-color: white;
    color: white;
}

.cta-final .btn-outline-light:hover,
.cta-final .btn-outline-light:focus-visible {
    background: white;
    color: var(--primary);
}   

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (min-width: 992px) {
    .value-card, .card {
        padding: 3rem 2rem;
    }
}

/* ==========================================================================
   FOOTER
   Modern, informative, mobile-friendly, nonprofit style
   ========================================================================== */
.site-footer {
    background: #0f172a; /* deep navy - modern dark base */
    color: #cbd5e1;
    padding-block: 5rem 3rem;
    font-size: 0.95rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-block-end: 4rem;
    padding-block-end: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    max-width: 340px;
}

.footer-brand .logo img {
    max-height: 130px;
    width: auto;
    margin-block-end: 1.2rem;
}

.footer-tagline {
    line-height: 1.6;
    opacity: 0.85;
}

.footer-newsletter h4 {
    color: white;
    margin-block-end: 1rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 380px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px 0 0 50px;
    background: rgba(255,255,255,0.05);
    color: white;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0 1.6rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem 2rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.15rem;
    margin-block-end: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-block-end: 0.7rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-block-start: 3.5rem;
    padding-block-start: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.copyright {
    opacity: 0.75;
    margin-block-end: 0.6rem;
}

.footer-legal a {
    color: #94a3b8;
    margin: 0 0.8rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter {
        width: 100%;
        max-width: 420px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: 50px;
    }
}