/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Outfit:wght@300;400;500;600&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Colors - Organic & Natural Theme */
    --clr-primary: #2C3E2D;      /* Deep Moss Green */
    --clr-secondary: #5C715E;    /* Soft Sage */
    --clr-accent: #E2856E;       /* Soft Clay / Terracotta */
    --clr-accent-hover: #D47259; /* Deeper Clay */
    --clr-accent-alt: #E9B872;   /* Mustard / Sun Accent */
    --clr-text-main: #3A403A;    /* Very dark green-grey */
    --clr-text-light: #6A736A;   /* Secondary Text */
    --clr-bg: #F2ECE4;           /* Oatmeal / Warm Beige */
    --clr-surface: #FCFAF8;      /* Soft White for cards */
    --clr-surface-light: #EBE5DB;/* Slightly darker oatmeal */

    /* Basic Borders (Organic Softness) */
    --border-thin: 1px solid rgba(44, 62, 45, 0.1);
    --border-thick: 2px solid rgba(44, 62, 45, 0.2);

    /* Typography */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
    --fs-base: 16px;

    /* Spacing & Layout */
    --container-width: 1300px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    --spacing-xxl: 12rem;

    /* Organic Edges (Pill shapes, extremely rounded cards) */
    --br-sm: 12px;
    --br-md: 24px;
    --br-lg: 40px;
    --br-pill: 200px; 
    --br-blob-1: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --br-blob-2: 30% 70% 70% 30% / 30% 30% 70% 70%;

    /* Shadows - Diffuse & Organic */
    --shadow-sm: 0 10px 30px rgba(44, 62, 45, 0.05);
    --shadow-md: 0 20px 40px rgba(44, 62, 45, 0.08);
    --shadow-lg: 0 30px 60px rgba(44, 62, 45, 0.12);
    --shadow-accent: 0 20px 40px rgba(226, 133, 110, 0.2);

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-norm: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --trans-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for sticky header */
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.7; /* Increased for premium readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em; /* Tighter tracking for premium feel */
}

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

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--clr-surface-light);
}

.text-center {
    text-align: center;
}

/* Typography Utilities */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--clr-accent);
    border-radius: var(--br-pill);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* Buttons - Organic Softness */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    border-radius: var(--br-pill);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent; /* Essential for aligning perfectly with outline buttons */
    transition: all var(--trans-norm);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.w-100 {
    width: 100%;
}

/* Header & Navigation */
.header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(253, 253, 253, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        border-bottom: 1px solid rgba(44, 62, 45, 0.08);
        transition: all var(--trans-norm);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.header.menu-open {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10002;
}

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

.logo-text {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.logo-accent {
    color: var(--clr-accent);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.mobile-actions {
    display: none;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-light);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-primary);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover {
    color: var(--clr-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10002;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    transition: var(--trans-norm);
}

/* ========================================================================= */
/* HERO SECTION - Premium Editorial Redesign */
/* ========================================================================= */
.hero-editorial {
    position: relative;
    padding: calc(90px + 6vw) 0 4vw;
    background-color: var(--clr-surface-light); /* Soft Sand */
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-editorial-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4vw;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    max-width: 650px;
}

.hero-badge {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--clr-accent-alt);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-star {
    transform: rotate(15deg);
    color: var(--clr-accent);
}

.hero-main-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--clr-primary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.hero-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--clr-accent); /* Warm Terracotta */
    padding-left: 2rem;
}

.hero-par {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
    font-weight: 300;
}

/* Elegant Actions */
.hero-action-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-editorial {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--br-pill);
    background-color: var(--clr-primary);
    color: var(--clr-surface);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-editorial:hover {
    background-color: var(--clr-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-text-link {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--clr-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    transition: var(--trans-norm);
}

.btn-text-link i {
    font-size: 1rem;
    transition: transform var(--trans-norm);
}

.btn-text-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--clr-accent);
    transition: width var(--trans-norm);
}

.btn-text-link:hover {
    color: var(--clr-accent);
}
.btn-text-link:hover i {
    transform: translateX(5px) rotate(-45deg);
}
.btn-text-link:hover::after {
    width: 100%;
}

/* Image Treatment - Archway */
.hero-image-wrapper {
    position: relative;
    padding: 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.archway-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 0 0; /* Huge arch top */
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateZ(0);
}

.archway-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.15) contrast(1.1);
    transition: transform 1.2s ease;
}

.hero-image-wrapper:hover .archway-img {
    transform: scale(1.05);
}

/* Visual Flourishes */
.hero-decor-circle {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 280px;
    height: 280px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.12;
    filter: blur(40px);
}

.hero-decor-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    padding: 1.75rem;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 3;
    transform: translate(-10%, -20%);
}

.hero-decor-badge strong {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-decor-badge span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-text-muted);
    font-weight: 600;
}

/* ----------------------------------------------- */
/* Responsive Tiers for Hero */
/* ----------------------------------------------- */
@media (max-width: 992px) {
    .hero-editorial {
        min-height: auto;
        padding-top: calc(80px + 3rem); /* Safe clearance from header */
        padding-bottom: 4rem;
        align-items: flex-start;
    }
    .hero-editorial-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-text-content {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-main-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    .hero-italic {
        padding-left: 0;
    }
    .hero-action-group {
        justify-content: center;
    }
    .hero-image-wrapper {
        justify-content: center;
        padding: 0;
    }
    .archway-frame {
        max-width: 500px;
    }
    .hero-decor-badge {
        left: auto;
        right: 0;
        transform: translate(15%, 15%);
    }
}

@media (max-width: 500px) {
    .hero-decor-badge {
        transform: translate(5%, 10%);
        padding: 1.2rem;
    }
    .hero-decor-badge strong {
        font-size: 1.8rem;
    }
    .hero-action-group {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }
    .btn-editorial {
        width: 100%;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.about-card {
    background: var(--clr-surface);
    padding: 3rem 2.5rem;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--trans-norm);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--clr-surface-light) 0%, transparent 100%);
    z-index: -1;
    transition: width var(--trans-norm);
}

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

.about-card:hover::before {
    width: 100%; 
}

.icon-box {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--clr-accent);
    background-color: var(--clr-bg);
    border-radius: 50%;
    transition: var(--trans-norm);
}

.about-card:hover .icon-box {
    color: var(--clr-surface);
    background-color: var(--clr-primary);
    transform: scale(1.05) rotate(5deg);
}

.about-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 500;
}

.about-card p {
    color: var(--clr-text-light);
    line-height: 1.8;
}

/* Expanding Service Accordion - Organic Interaction */
.service-accordion {
    display: flex;
    gap: 1.5rem;
    height: 550px;
    width: 100%;
    margin-top: 4rem;
}

.accordion-item {
    flex: 1; 
    background-size: cover;
    background-position: center;
    border-radius: var(--br-pill);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.8s ease;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
}

.accordion-item:hover,
.accordion-item:focus-within {
    flex: 5; 
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-md);
}

.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 62, 45, 0.95) 0%, rgba(44, 62, 45, 0.1) 100%);
    transition: background 0.8s ease;
}

.accordion-item:hover .accordion-overlay {
    background: linear-gradient(to top, rgba(44, 62, 45, 0.98) 0%, rgba(44, 62, 45, 0.6) 100%);
}

.accordion-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
    width: 100%;
    min-width: 400px; /* Prevents text wrap during transition */
    color: white;
}

.accordion-title-vertical {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: bottom center;
    color: white;
    font-size: 1.75rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 3;
    letter-spacing: 1px;
}

.accordion-item:hover .accordion-content,
.accordion-item:focus-within .accordion-content {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item:hover .accordion-title-vertical,
.accordion-item:focus-within .accordion-title-vertical {
    opacity: 0;
}

.accordion-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent-alt);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.accordion-content h3 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: white;
}

.accordion-content p {
    color: rgba(252, 250, 248, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 80%;
}

@media (max-width: 900px) {
    .service-accordion {
        flex-direction: column;
        height: 800px;
    }
    .accordion-title-vertical {
        transform: translateX(-50%); 
        bottom: 50%;
    }
    .accordion-content {
        min-width: 100%;
    }
}

/* Impact Counter Section - Organic Warmth */
.impact {
    background-color: var(--clr-primary);
    background-image: radial-gradient(circle at bottom right, rgba(226, 133, 110, 0.2), transparent 60%);
    color: var(--clr-surface);
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
    border-radius: var(--br-lg);
    margin: var(--spacing-md) 0; 
}

.impact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.impact-text h2 {
    color: var(--clr-surface);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
}

.impact-text p {
    color: rgba(252, 250, 248, 0.85);
    max-width: 400px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.impact-stats {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center; 
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--clr-accent-alt);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(252, 250, 248, 0.9);
}

/* Get Involved */
.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.action-card {
    background: var(--clr-surface);
    padding: 3.5rem;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--trans-norm);
}

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

.donate-card {
    border-top: 4px solid var(--clr-accent);
}

.volunteer-card {
    border-top: 4px solid var(--clr-success);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
}

.action-card h3 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.action-card p {
    color: var(--clr-text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.c-icon {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    background: var(--clr-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    transition: var(--trans-norm);
}

.contact-item strong {
    display: block;
    color: var(--clr-primary);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item span {
    color: var(--clr-text-light);
}

a.contact-item:hover .c-icon {
    background: var(--clr-accent);
    color: var(--clr-surface);
    transform: scale(1.05) rotate(5deg);
}

.contact-form-wrapper {
    background: var(--clr-surface);
    padding: 3.5rem;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--br-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--trans-fast);
    background-color: var(--clr-bg);
}

.form-group textarea {
    border-radius: var(--br-md); /* Textareas shouldn't be fully pill-shaped */
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(226, 133, 110, 0.2);
}

/* Gallery Section - Organic Rounded Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; 
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    background-color: var(--clr-bg);
    transform: translateZ(0); 
    transition: box-shadow var(--trans-norm), transform var(--trans-norm);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
    filter: sepia(0.05) contrast(1.05); /* Soft, natural warmth */
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05); 
    filter: sepia(0) contrast(1.1); 
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(44, 62, 45, 0.1) 0%, rgba(44, 62, 45, 0.6) 100%); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--trans-norm);
}

.gallery-icon {
    font-size: 1.5rem;
    color: var(--clr-primary);
    background-color: var(--clr-surface);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.9);
    transition: transform var(--trans-norm);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Footer */
.footer {
    background-color: var(--clr-primary);
    color: rgba(252, 250, 248, 0.8);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer .logo-text {
    color: white;
}

.footer .logo-accent {
    color: var(--clr-accent);
}

.footer-brand p {
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--clr-accent);
    color: white;
    transform: translateY(-3px);
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--br-sm);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: 2px solid var(--clr-accent);
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.d-none { display: none !important; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive Directives */
@media (max-width: 992px) {
    .hero {
        align-items: flex-start; /* Prevent tall content from overflowing off the top in mobile */
        padding-top: 140px; 
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        min-height: auto; /* Fix warped stretch */
        aspect-ratio: 4 / 3; /* Better mobile proportion */
    }

    .floating-card {
        left: -10px;
        bottom: -10px;
        padding: 0.75rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

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

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--clr-surface); /* Organic premium background */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .nav.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0;
        margin: 0;
    }

    .nav-link {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        color: var(--clr-primary);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        display: inline-block;
    }

    .nav.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered load effect */
    .nav.active .nav-list li:nth-child(1) .nav-link { transition-delay: 0.1s; }
    .nav.active .nav-list li:nth-child(2) .nav-link { transition-delay: 0.15s; }
    .nav.active .nav-list li:nth-child(3) .nav-link { transition-delay: 0.2s; }
    .nav.active .nav-list li:nth-child(4) .nav-link { transition-delay: 0.25s; }
    .nav.active .nav-list li:nth-child(5) .nav-link { transition-delay: 0.3s; }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

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

    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        margin: 0 auto;
        margin-top: 2.5rem;
        width: 100%;
        align-items: center; /* Forces the items to lock into the exact center */
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease 0.4s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
    }
    
    .nav.active .mobile-actions {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-actions .btn {
        width: auto;
        min-width: 200px; /* Instead of full stretch, clamp to consistent neat size */
        margin: 0 auto;
        justify-content: center;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p,
    .social-links {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .impact-container {
        flex-direction: column;
        text-align: center;
    }

    .impact-stats {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px; /* Don't stretch infinitely on mobile */
    }

    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
        max-width: 250px;
        align-items: center;
    }
    
    .mobile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Reduce massive button heights on mobile */
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(11, 43, 64, 0.98); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLightbox 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85vh;
    border-radius: var(--br-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    animation: zoomInLightbox 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: white;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--trans-norm);
    padding: 1rem;
    user-select: none;
    z-index: 10000;
}

.lightbox-nav:hover {
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes zoomInLightbox {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInLightbox {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(15px); }
}

/* Estimator Section */
.estimator-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.estimator-card {
    background: var(--clr-surface);
    padding: 3rem;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 600px;
}

.estimator-result {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--clr-surface-light);
    border-radius: var(--br-md);
    border-left: 4px solid var(--clr-accent);
}

.estimator-result h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--clr-primary);
}

#est-total {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--clr-accent);
    display: block;
    margin-top: 0.5rem;
}

/* -------------------- RESPONSIVE DESIGN (ESTIMATOR) -------------------- */
@media (max-width: 768px) {
    .estimator-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    #est-total {
        font-size: 1.8rem;
    }
    
    .estimator-result h3 {
        font-size: 1.25rem;
    }

    /* Phase 4 Service Accordion Mobile Fixes */
    .service-accordion {
        flex-direction: column;
        height: 700px; /* Allow vertical expansion space */
        gap: 0.5rem;
    }

    .accordion-item {
        flex: 1; /* Standard height */
        border-radius: var(--br-md); /* Less dramatic radius */
    }

    .accordion-item:hover,
    .accordion-item:focus-within {
        flex: 4; /* Expand vertically */
        border-radius: var(--br-lg);
    }

    /* Reset vertical rotation to horizontal centered text */
    .accordion-title-vertical {
        transform: translate(-50%, -50%);
        bottom: 50%;
        left: 50%;
        margin-bottom: -1rem;
        font-size: 1.25rem;
        white-space: normal;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    .accordion-content {
        padding: 1.5rem;
        min-width: 0; /* Reset desktop minimum width */
    }

    .accordion-content h3 {
        font-size: 1.5rem;
    }
    
    .accordion-content p {
        font-size: 0.95rem;
    }
    
    /* Ensure Hero Title fits */
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem); 
    }
}

@media (max-width: 480px) {
    .accordion-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
    }
}