/* ============================================================================
   HOMEPAGE CSS - Clean, Human-Centered Design
   Inspired by ShareTheMeal.org with TooGoodToGo scroll effects
   ============================================================================ */

/* ============================================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   SECTION INNER - Full Width Layout Like Hero
   ============================================================================ */

.section-inner {
    width: 100%;
    padding: 0 6%;
}

/* ============================================================================
   HERO SECTION - ShareTheMeal Full-Bleed Style with Diagonal Divider
   ============================================================================ */

.hero {
    position: relative;
    min-height: clamp(560px, 82vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
}

/* Hero Content - Left Side */
.hero-content {
    position: relative;
    z-index: 10;
    width: 50%;
    padding: 4rem 4rem 4rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(560px, 82vh, 760px);
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.5rem 1rem;
    background: var(--primary-green-pale);
    color: var(--primary-green-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary-green);
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Slideshow - Right Side Full Bleed */
.hero-slideshow {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
}

.slideshow-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Curved Divider - Tilted to the right */
.hero-divider {
    position: absolute;
    top: 0;
    left: 40%;
    width: 20%;
    height: 100%;
    background: var(--white);
    z-index: 5;
    border-radius: 0 0 50% 0 / 0 0 100% 0;
    transform: scaleX(1.5);
    transform-origin: left center;
}

/* Alternative: SVG-like curve using pseudo-element */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 38%;
    width: 20%;
    height: 100%;
    background: var(--white);
    z-index: 5;
    clip-path: ellipse(100% 50% at 0% 50%);
}

.hero-divider {
    display: none; /* Hide the old divider, use ::before instead */
}

/* ============================================================================
   HERO BANNER - Green Strip Below Hero
   ============================================================================ */

.hero-banner {
    background: var(--primary-green);
    height: 0.5rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green-pale);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ============================================================================
   SECTION LABEL
   ============================================================================ */

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* ============================================================================
   IMPACT STATS SECTION
   ============================================================================ */

.impact-stats {
    padding: 5rem 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================================
   MISSION SECTION
   ============================================================================ */

.mission {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text .section-label {
    margin-bottom: 1rem;
}

.mission-text h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mission-text em {
    color: var(--primary-green);
    font-style: italic;
}

.mission-text .btn {
    margin-top: 1rem;
}

.mission-video {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.mission-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
   LOCATIONS SECTION
   ============================================================================ */

.locations {
    padding: 6rem 0;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle leaf pattern overlay */
.locations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.locations .section-inner {
    position: relative;
    z-index: 1;
}

.locations .section-header h2 {
    color: var(--gray-900);
}

.locations .section-header p {
    color: var(--gray-700);
}

/* ShareTheMeal-inspired Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.location-card {
    background: var(--white);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(34, 197, 94, 0.2);
}

/* Card Header - Day badge at top */
.location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, #16a34a 100%);
}

.location-day {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.location-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-green);
    background: var(--white);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Card Image - Center focal point with diagonal rounded corners */
.location-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0.75rem;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 4rem 0 4rem 0; /* Top-left and bottom-right rounded - more visible */
}

.location-card:hover .location-card-image img {
    transform: scale(1.05);
}

/* Card Content - Info at bottom */
.location-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.location-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.location-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.location-address,
.location-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--white);
    background: var(--primary-green);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    margin-top: auto;
}

.location-link:hover {
    background: var(--primary-green-dark);
    gap: 0.75rem;
}

.locations-note {
    text-align: center;
    font-size: var(--font-size-base);
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.locations-note a {
    color: var(--primary-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.locations-note a:hover {
    text-decoration: underline;
}

/* Mobile Compact List - Hidden on desktop */
.locations-mobile {
    display: none;
}

.locations-mobile-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.locations-mobile-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.locations-mobile-title {
    font-weight: 700;
    font-size: var(--font-size-base);
}

.locations-mobile-time {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.locations-mobile-list {
    padding: 0;
}

.locations-mobile .location-item {
    display: grid;
    grid-template-columns: 44px 40px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.locations-mobile .location-item:last-child {
    border-bottom: none;
}

.locations-mobile .location-item:hover {
    background: var(--gray-50);
}

.locations-mobile .location-item-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.locations-mobile .location-item-logo-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-green-pale);
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locations-mobile .location-item .location-item-logo {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    border-radius: 0 !important;
    object-fit: cover;
    border: 0 !important;
    overflow: hidden;
    clip-path: circle(50% at 50% 50%);
}

.locations-mobile .location-item-info {
    flex: 1;
    min-width: 0;
}

.locations-mobile .location-item-info strong {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.locations-mobile .location-item-info span {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.locations-mobile .location-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.locations-mobile .location-item-address,
.locations-mobile .location-item-time {
    display: block;
}

.locations-mobile .location-item-time {
    color: var(--primary-green-dark);
    font-weight: 600;
    white-space: nowrap;
}

.locations-mobile .location-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--primary-green-pale);
    color: var(--primary-green-dark);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
    min-width: 76px;
}

.locations-mobile .location-item-link:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ============================================================================
   HOW IT WORKS SECTION
   ============================================================================ */

.how-it-works {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Subtle dotted pattern */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.how-it-works .section-inner {
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green-pale), var(--primary-green), var(--primary-green-pale));
    border-radius: 2px;
    z-index: 0;
}

.step {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-100);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
    border-color: var(--primary-green-pale);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-green-pale) 0%, #bbf7d0 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    color: var(--primary-green-dark);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-green);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.step h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

/* ============================================================================
   PARTNERS SECTION - Infinite Slideshow
   ============================================================================ */

.partners {
    padding: 6rem 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.partners-slideshow {
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
    /* Fade edges for smooth appearance */
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 80px;
}

.partner-logo img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-cta {
    text-align: center;
}

.partner-cta p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Faded background image overlay */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../uploads/2025/10/Spar-Nord-Fonden-2024_NZ2_5071-scaled-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   VOLUNTEER CTA SECTION
   ============================================================================ */

.volunteer-cta {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.volunteer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.volunteer-cta .section-inner {
    position: relative;
    z-index: 1;
}

.volunteer-cta-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: center;
}

.volunteer-cta-image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 450px;
}

/* Decorative accent */
.volunteer-cta-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green-pale) 0%, var(--primary-green) 100%);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.5;
}

.volunteer-cta-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.volunteer-cta-text .section-label {
    margin-bottom: 1rem;
}

.volunteer-cta-text h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.volunteer-cta-text p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.volunteer-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.volunteer-benefits li {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.volunteer-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.volunteer-cta-text .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.volunteer-cta-text .btn svg {
    transition: transform 0.3s ease;
}

.volunteer-cta-text .btn:hover svg {
    transform: translateX(4px);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .hero {
        min-height: clamp(500px, 70vh, 640px);
        flex-direction: row;
    }

    .hero-content {
        width: 52%;
        min-height: inherit;
        padding: 3rem 2rem 3rem 5%;
        text-align: left;
        order: initial;
    }

    .hero-description {
        max-width: 540px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-slideshow {
        position: absolute;
        width: 52%;
        height: 100%;
        order: initial;
    }

    .hero-divider {
        display: none;
    }

    .hero::before {
        left: 42%;
        width: 18%;
    }

    .section-inner {
        padding: 0 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-logos {
        grid-template-columns: repeat(4, 1fr);
    }

    .volunteer-cta-content {
        gap: 3rem;
    }

    .volunteer-cta-text h2 {
        font-size: var(--font-size-2xl);
    }
}

/* Narrow tablet / large mobile - stack hero */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        min-height: auto;
        padding: 3rem 2rem;
        text-align: center;
        order: 2;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-slideshow {
        position: relative;
        width: 100%;
        height: 42vh;
        order: 1;
    }

    .hero::before {
        left: 35%;
        width: 25%;
    }
}

/* Landscape phones / low-height viewports */
@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
    .hero {
        min-height: calc(100vh - 70px);
        flex-direction: row;
        align-items: stretch;
    }

    .hero-content {
        width: 50%;
        min-height: auto;
        padding: 1.5rem 1.5rem 1.5rem 4%;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(1.6rem, 3.2vw, 2.3rem);
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero-slideshow {
        position: absolute;
        width: 50%;
        height: 100%;
    }

    .hero::before {
        display: none;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-slideshow {
        height: 40vh;
    }

    .hero::before {
        display: none;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    /* Hide desktop grid, show mobile compact list */
    .locations-grid {
        display: none;
    }

    .locations-mobile {
        display: block;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .steps-grid::before {
        display: none;
    }

    .step {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .step-icon {
        width: 56px;
        height: 56px;
    }

    .step-icon svg {
        width: 24px;
        height: 24px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-sm);
    }

    .step h3 {
        font-size: var(--font-size-base);
    }

    .step p {
        font-size: var(--font-size-xs);
        line-height: 1.5;
    }

    .partners-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: var(--font-size-2xl);
    }

    .volunteer-cta-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .volunteer-cta-image {
        order: 1;
    }

    .volunteer-cta-text {
        order: 2;
        text-align: center;
    }

    .volunteer-benefits li {
        text-align: left;
    }

    .volunteer-cta-text .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-slideshow {
        height: 35vh;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .locations-mobile .location-item {
        grid-template-columns: 40px 34px minmax(0, 1fr) auto;
        column-gap: 0.65rem;
        padding: 0.9rem 1rem;
    }

    .locations-mobile .location-item-day {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .locations-mobile .location-item .location-item-logo {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .locations-mobile .location-item-logo-wrap {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        max-width: 34px;
        max-height: 34px;
        flex-basis: 34px;
    }

    .locations-mobile .location-item-link {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }

    .locations-mobile .location-item-info strong {
        white-space: normal;
        line-height: 1.25;
    }

    .locations-mobile .location-item-meta {
        gap: 0.15rem;
    }

    .section-inner {
        padding: 0 1rem;
    }

    /* Keep 2 columns for stats on small mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1rem 0.75rem;
        gap: 0.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-plus {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }

    /* Keep 2 columns for steps on small mobile */
    .steps-grid {
        gap: 0.75rem;
    }

    .step {
        padding: 1.25rem 0.75rem;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }

    .step-icon svg {
        width: 20px;
        height: 20px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: var(--font-size-xs);
        margin-bottom: 0.5rem;
    }

    .step h3 {
        font-size: var(--font-size-sm);
        margin-bottom: 0.5rem;
    }

    /* Mobile compact list adjustments */
    .locations-mobile .location-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .locations-mobile .location-item-day {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-xs);
    }

    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .volunteer-cta-text h2 {
        font-size: var(--font-size-xl);
    }

    .volunteer-cta-text p {
        font-size: var(--font-size-sm);
    }

    .volunteer-benefits li {
        font-size: var(--font-size-sm);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .location-card,
    .step {
        transition: none;
        animation: none;
    }
}
