/* -------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------- */
:root {
    /* Primary – Forest Green */
    --green-950: #052e16;
    --green-900: #0d2818;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-300: #86efac;
    --green-200: #bbf7d0;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;

    /* Accent – Gold / Amber */
    --gold-600: #d97706;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --gold-300: #fcd34d;
    --gold-200: #fde68a;
    --gold-100: #fef3c7;

    /* Rose – Women Empowerment accent */
    --rose-600: #e11d48;
    --rose-500: #f43f5e;
    --rose-400: #fb7185;
    --rose-100: #ffe4e6;
    --rose-50: #fff1f2;

    /* Neutral */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Header height */
    --header-h: 72px;

    /* Highlights cards: max height (card kab tak lamba ho sakta hai). none = koi limit nahi */
    --highlight-card-max-height: 458px;

    /* Highlights slider: neeche dots + horizontal scrollbar — yahi colors badlo */
    --highlight-slider-dot-idle: rgba(22, 101, 52, 0.32);
    --highlight-slider-dot-active: var(--gold-500);
    --highlight-slider-dot-active-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
    --highlight-slider-scrollbar-track: rgba(255, 255, 255, 0.75);
    --highlight-slider-scrollbar-thumb: var(--green-600);
    --highlight-slider-scrollbar-thumb-hover: var(--green-700);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--gold-500);
    color: var(--green-950);
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--green-900);
    font-weight: 700;
    line-height: 1.3;
}

/* -------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--white { background: var(--white); }
.section--light { background: var(--green-50); }
.section--warm { background: var(--gold-100); }
.section--rose { background: var(--rose-50); }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 12px;
}

.section-label--light {
    color: var(--gold-300);
}

.section-title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* -------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gold-500);
    color: var(--green-950);
    border-color: var(--gold-500);
}

.btn--primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(245 158 11 / 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* -------------------------------------------------------
   6. HEADER
   ------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px -8px rgba(17, 24, 39, 0.12);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.82;
}

.header-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-900);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* Nav pill container */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

/* Nav divider between links and donate */
.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--gray-300);
    margin: 0 4px;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    padding: 7px 13px;
    border-radius: var(--radius-full);
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.nav-link:hover {
    color: var(--green-800);
    background: var(--green-100);
}

.nav-link.is-active {
    color: var(--green-900);
    background: var(--green-100);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: var(--green-50);
    border-color: var(--green-300);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.2s ease, width 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------
   7. HERO
   ------------------------------------------------------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, var(--green-950) 0%, #163a28 40%, var(--green-800) 100%);
    overflow: hidden;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.hero-shape--1 {
    width: 600px;
    height: 600px;
    background: var(--green-400);
    top: -200px;
    right: -150px;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-shape--2 {
    width: 400px;
    height: 400px;
    background: var(--gold-400);
    bottom: -100px;
    left: -100px;
    animation: heroFloat 15s ease-in-out infinite reverse;
}

.hero-shape--3 {
    width: 250px;
    height: 250px;
    background: var(--green-300);
    top: 50%;
    left: 60%;
    animation: heroFloat 12s ease-in-out infinite 3s;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo img {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.3));
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-heading {
    font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-divider {
    width: 64px;
    height: 3px;
    background: var(--gold-500);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.hero-motto {
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
    font-weight: 600;
    color: var(--gold-400);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------------
   8. PILLARS (Mission Section)
   ------------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease-out);
}

.pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
}

.pillar:hover .pillar-icon {
    background: var(--green-700);
    color: var(--white);
    transform: scale(1.1);
}

.pillar-icon--alt {
    background: var(--gold-100);
    color: var(--gold-600);
}

.pillar:hover .pillar-icon--alt {
    background: var(--gold-600);
    color: var(--white);
}

.pillar-icon--gold {
    background: var(--green-100);
    color: var(--green-800);
}

.pillar:hover .pillar-icon--gold {
    background: var(--green-800);
    color: var(--white);
}

.pillar-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--green-900);
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* -------------------------------------------------------
   10. FOCUS SECTIONS
   ------------------------------------------------------- */
.focus-block {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.focus-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--green-600);
}

.focus-block--rose::before {
    background: var(--rose-500);
}

.focus-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.focus-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    background: var(--accent, var(--green-600));
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 700;
}

.focus-title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    margin-bottom: 6px;
    color: var(--green-900);
}

.focus-intro {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.focus-list {
    display: grid;
    gap: 14px;
    padding-left: 0;
}

.focus-list li {
    position: relative;
    padding-left: 32px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.focus-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: var(--radius-full);
}

.focus-list--rose li::before {
    background: var(--rose-400);
}

.focus-list li strong {
    color: var(--green-900);
    font-weight: 600;
}

/* -------------------------------------------------------
   11. DONATION SECTION
   ------------------------------------------------------- */
.section--donate {
    background: linear-gradient(160deg, var(--green-950) 0%, #163a28 50%, var(--green-800) 100%);
    color: var(--white);
    padding: 96px 0;
}

.donate-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
}

.donate-title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
}

.donate-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 560px;
}

.donate-appeal {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold-500);
}

.donate-appeal p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.donate-qr {
    flex-shrink: 0;
}

.donate-qr-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.donate-qr-card img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

.donate-qr-label {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-800);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* -------------------------------------------------------
   12. CMS: HIGHLIGHTS (Sanity)
   ------------------------------------------------------- */
#cms-updates,
#team-section {
    display: none;
}

#sanity-content {
    width: 100%;
    min-width: 0;
}

.sanity-slider {
    position: relative;
}

.sanity-slider-viewport {
    overflow: hidden;
}

.sanity-slider-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(13, 40, 24, 0.85);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Hide manual slider arrows as requested */
.sanity-slider-btn {
    display: none;
}

.sanity-slider-btn:hover {
    background: var(--green-800);
    transform: translateY(-50%) scale(1.04);
}

.sanity-slider-btn--prev { left: -10px; }
.sanity-slider-btn--next { right: -10px; }

.sanity-slider-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 14px;
}

.sanity-slider-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--highlight-slider-dot-idle);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: width 0.25s var(--ease-out), background 0.2s ease, box-shadow 0.2s ease;
}

.sanity-slider-dot.is-active {
    background: var(--highlight-slider-dot-active);
    width: 22px;
    box-shadow: var(--highlight-slider-dot-active-shadow);
}

.sanity-loading,
.sanity-error {
    color: var(--gray-500);
    font-size: 1rem;
    text-align: center;
    padding: 32px 0;
}

.sanity-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--highlight-slider-scrollbar-thumb) var(--highlight-slider-scrollbar-track);
}

.sanity-cards::-webkit-scrollbar {
    height: 7px;
}

.sanity-cards::-webkit-scrollbar-track {
    background: var(--highlight-slider-scrollbar-track);
    border-radius: var(--radius-full);
}

.sanity-cards::-webkit-scrollbar-thumb {
    background: var(--highlight-slider-scrollbar-thumb);
    border-radius: var(--radius-full);
}

.sanity-cards::-webkit-scrollbar-thumb:hover {
    background: var(--highlight-slider-scrollbar-thumb-hover);
}

.sanity-card {
    flex: 0 0 auto;
    width: 300px;
    min-width: 300px;
    max-height: var(--highlight-card-max-height);
    scroll-snap-align: start;
    background: linear-gradient(160deg, #f0fdf4 0%, #fefce8 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(22, 101, 52, 0.22);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Image ke neeche: title/desc scroll, footer hamesha card ke bottom pe */
.sanity-card-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.sanity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(22, 101, 52, 0.45);
}

.sanity-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: block;
    position: relative;
    flex-shrink: 0;
}

.sanity-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.sanity-card:hover .sanity-card-img {
    transform: scale(1.04);
}

.sanity-card-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
}

.sanity-card-body {
    padding: 0 2px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sanity-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--green-900);
    margin: 0;
    line-height: 1.4;
}

/* Default: 4 lines + ellipsis when label OR View Details is missing */
.sanity-card-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    min-height: 0;
}

/* Label + View Details  description 3 line */
.sanity-card:has(.sanity-card-name):has(.sanity-card-detail-link) .sanity-card-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.sanity-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
    width: 100%;
    flex-shrink: 0;
}

.sanity-card-name {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--black-800);
    background: rgba(222, 160, 83, 0.331);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 0.5px solid rgba(22, 101, 52, 0.2);
    box-shadow: 0 1px 2px rgba(5, 46, 22, 0.06);
}

.sanity-card-detail-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    padding: 6px 14px;
    margin: 0 -4px;
    border-radius: var(--radius-full);
    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.22s var(--ease-out),
        box-shadow 0.22s ease;
}

/* Cursor card  → View Details highlight */
.sanity-card:hover .sanity-card-detail-link {
    color: var(--green-900);
    background: rgba(22, 101, 52, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -8px rgba(22, 101, 52, 0.45);
}

.sanity-card-detail-link:hover,
.sanity-card:hover .sanity-card-detail-link:hover {
    color: var(--green-950);
    background: rgba(22, 101, 52, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px rgba(22, 101, 52, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -------------------------------------------------------
   Highlight Detail Page  (framed cover + centered overlap card)
   ------------------------------------------------------- */

.hl-body-root {
    --hl-navy: #1a2f4a;
    --hl-navy-soft: #2d4a6e;
    /* Profile card on cover: max width (centered) */
    --hl-headline-card-max-w: min(38rem, calc(100% - 2rem));
    /* Hero: solid fill until image (no striped shimmer) */
    --hl-hero-placeholder: var(--green-800);
    /* Side inset: scales phone → desktop + notches */
    --hl-page-gutter: clamp(8px, 2.8vw, 36px);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, #eef2f7 0%, #f4f7f4 50%, #f8faf6 100%);
}

.hl-page-main {
    display: block;
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: clamp(20px, 4vw, 32px);
}

/* ---- Highlight column: edge-to-edge minus responsive gutter ---- */
.hl-page-shell--crumb {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(8px, 1.5vw, 12px)
        max(var(--hl-page-gutter), env(safe-area-inset-right, 0px))
        clamp(6px, 1.2vw, 10px)
        max(var(--hl-page-gutter), env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.hl-feature {
    padding: 0;
}

.hl-hero-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    padding: 0 max(var(--hl-page-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--hl-page-gutter), env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.hl-hero-frame {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 20px 50px -12px rgba(22, 101, 52, 0.16);
    border: 1px solid rgba(22, 101, 52, 0.12);
}

/* Cover image + card overlapped at bottom (profile style) */
.hl-hero-frame--cover {
    position: relative;
}

.hl-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0 0 clamp(10px, 2vw, 16px);
}

.hl-crumb a {
    color: var(--green-700);
    text-decoration: none;
    transition: color 0.2s, text-underline-offset 0.2s;
}

.hl-crumb a:hover {
    color: var(--green-900);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hl-crumb-sep {
    color: var(--gray-300);
    user-select: none;
}

.hl-crumb-current {
    color: var(--gray-600);
    font-weight: 600;
}

.hl-hero {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    background: var(--green-950);
}

/* Image area — full photo visible (letterbox if needed) */
.hl-hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(160deg, #0d2818 0%, #14532d 100%);
}

.hl-hero-media.hl-hero-bg--noimg {
    min-height: min(42vh, 420px);
    background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 55%, var(--green-600) 100%);
}

.hl-hero-img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 820px);
    object-fit: contain;
    object-position: center center;
}

.hl-hero-shimmer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #143d22 0%, #1f5c2e 50%, #143d22 100%);
    background-size: 300% 100%;
    animation: hl-shimmer 2s ease-in-out infinite;
    transition: opacity 0.4s;
    pointer-events: none;
}

/* Highlight overlap: flat theme fill until photo loads (no motion) */
.hl-hero-frame--overlap .hl-hero-shimmer {
    animation: none;
    background: var(--hl-hero-placeholder);
    background-size: auto;
}

.hl-hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse 100% 80% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.14) 100%);
}

.hl-hero-vignette--soft {
    background: radial-gradient(ellipse 90% 70% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.06) 100%);
}

.hl-hero-frame--overlap .hl-hero-vignette--soft {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hl-hero-frame--overlap .hl-hero-media--loaded .hl-hero-vignette--soft {
    opacity: 1;
}

/* Dark strip behind card text on bright photos */
.hl-hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(48%, 280px);
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        to top,
        rgba(8, 18, 12, 0.75) 0%,
        rgba(8, 18, 12, 0.35) 50%,
        transparent 100%
    );
}

@keyframes hl-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Profile card: on top of cover, anchored bottom-center */
.hl-headline-card {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2.5vw, 22px);
    transform: translateX(-50%);
    z-index: 5;
    width: min(100%, var(--hl-headline-card-max-w));
    margin: 0;
    box-sizing: border-box;
    padding: clamp(18px, 3.5vw, 28px) clamp(16px, 4vw, 28px) clamp(20px, 4vw, 28px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 18px 40px -12px rgba(0, 0, 0, 0.22);
}

.hl-headline-card::before {
    content: '';
    position: absolute;
    left: clamp(14px, 3vw, 24px);
    top: 0;
    width: 48px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.hl-hero-tag {
    display: inline-block;
    background: var(--green-50);
    color: var(--green-800);
    border: 1px solid var(--green-200);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin: 0 0 14px;
}

.hl-hero-title {
    font-size: clamp(1.55rem, 2.5vw + 0.6rem, 2.5rem);
    font-weight: 700;
    color: var(--green-950);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    max-width: min(56rem, 100%);
}

.hl-hero-title-sk {
    display: block;
    height: 1.1em;
    width: 72%;
    max-width: 420px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
    background-size: 300% 100%;
    animation: hl-shimmer 2s ease-in-out infinite;
    margin-bottom: 10px;
}

.hl-hero-title-sk--sm {
    width: 48%;
    max-width: 260px;
}

/* Short preview text (Sanity card preview) — no section label */
.hl-card-desc-block {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 101, 52, 0.12);
    max-width: min(52rem, 100%);
}

.hl-card-desc-text {
    margin: 0;
    font-size: clamp(0.92rem, 1.1vw + 0.55rem, 1.02rem);
    line-height: 1.65;
    color: var(--gray-700);
    font-weight: 500;
}

/* Reference-style: white mat around photo + large rounded card centered, overlapping cover bottom */
.hl-hero-frame--overlap {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hl-hero-stack {
    position: relative;
    width: 100%;
}

.hl-hero-frame--overlap .hl-hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* Theme shows only while loading / no-img — avoid min-height gap vs photo */
    background: var(--hl-hero-placeholder);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 22px 48px -14px rgba(22, 101, 52, 0.14);
    min-height: 0;
}

/*
 * Kill base .hl-hero-media min-height + flex centering — those caused green bars
 * above/below the photo (flex vertically centered a shorter image).
 */
.hl-hero-frame--overlap .hl-hero-media.hl-hero-media--framed:not(.hl-hero-bg--noimg) {
    display: block;
    min-height: 0;
    line-height: 0;
    align-items: unset;
    justify-content: unset;
}

.hl-hero-frame--overlap .hl-hero-media--framed {
    padding: clamp(3px, 0.7vw, 6px);
    padding-bottom: clamp(3px, 0.65vw, 5px);
    background: var(--hl-hero-placeholder);
    box-sizing: border-box;
}

.hl-hero-frame--overlap .hl-hero-img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 2 / 1;
    max-height: min(52vh, 560px);
}

.hl-hero-frame--overlap .hl-hero-media.hl-hero-bg--noimg {
    min-height: min(32vh, 300px);
    aspect-ratio: 2 / 1;
    max-height: min(48vh, 520px);
    background: var(--hl-hero-placeholder);
}

.hl-overlap-slot {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 8;
    margin-top: clamp(-7rem, -14vw, -3.5rem);
    padding: 0 clamp(4px, 1.5vw, 12px);
    pointer-events: none;
}

.hl-overlap-slot .hl-overlap-card {
    pointer-events: auto;
}

.hl-hero-frame--overlap .hl-overlap-card.hl-headline-card {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: min(40rem, 100%);
    margin: 0 auto;
    padding: clamp(16px, 3.2vw, 28px) clamp(14px, 3vw, 26px) clamp(18px, 3.5vw, 32px);
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(22, 101, 52, 0.04);
    border-radius: clamp(22px, 4vw, 32px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 24px 48px -12px rgba(0, 0, 0, 0.12),
        0 12px 28px -16px rgba(22, 101, 52, 0.12);
}

.hl-hero-frame--overlap .hl-overlap-card.hl-headline-card::before {
    display: none;
}

/* ---- Full description — same gutter as hero ---- */
.hl-article {
    position: relative;
    z-index: 5;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(20px, 4vw, 44px) max(var(--hl-page-gutter), env(safe-area-inset-right, 0px)) clamp(28px, 5vw, 40px) max(var(--hl-page-gutter), env(safe-area-inset-left, 0px));
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
}

.hl-article-inner--prose {
    max-width: none;
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-height: 100px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.hl-article-inner--prose.hl-art--loaded {
    opacity: 1;
    transform: translateY(0);
}

.hl-art-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hl-ask {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
    background-size: 300% 100%;
    animation: hl-shimmer 2s ease-in-out infinite;
}

.hl-ask--md   { height: 12px; width: 36%; }
.hl-ask--full { height: 12px; width: 100%; }
.hl-ask--lg   { height: 12px; width: 72%; }

.hl-desc {
    color: var(--hl-navy);
    font-size: clamp(1rem, 1.35vw + 0.55rem, 1.15rem);
    line-height: 1.92;
    white-space: pre-line;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hl-no-desc {
    color: var(--hl-navy-soft);
    font-style: italic;
    font-size: clamp(0.95rem, 1vw + 0.5rem, 1.05rem);
    opacity: 0.85;
}

.hl-error-box {
    text-align: center;
    padding: 28px 16px;
    color: var(--gray-500);
}

.hl-back-to-highlights {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-700);
    text-decoration: none;
    border: 1.5px solid var(--green-200);
    border-radius: var(--radius-full);
    background: var(--green-50);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.hl-back-to-highlights:hover {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
    transform: translateX(-2px);
}

/* ---- Gallery — same gutter as hero ---- */
.hl-gallery-section {
    margin: 0 auto;
    padding: 12px max(var(--hl-page-gutter), env(safe-area-inset-right, 0px)) clamp(40px, 8vw, 64px) max(var(--hl-page-gutter), env(safe-area-inset-left, 0px));
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
}

.hl-gallery-inner {
    width: 100%;
    margin: 0;
    padding: clamp(22px, 3vw, 36px) 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    border-top: 1px solid rgba(26, 47, 74, 0.12);
}

.hl-gallery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.hl-gallery-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.25rem);
    font-weight: 700;
    color: var(--green-900);
    margin: 0;
}

.hl-gallery-title svg {
    color: var(--gold-600);
    flex-shrink: 0;
}

#hl-gallery-title-text {
    flex: 1;
    min-width: 0;
}

.hl-gallery-count-badge {
    background: linear-gradient(135deg, var(--gold-100) 0%, var(--green-50) 100%);
    color: var(--green-800);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gold-200);
}

.hl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 20px);
}

/* Wrapper: image + caption block below */
.hl-g-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(12px);
}

.hl-g-item--animate {
    animation: hl-thumb-in 0.45s var(--ease-out) forwards;
}

@keyframes hl-thumb-in {
    to { opacity: 1; transform: translateY(0); }
}

.hl-g-item:first-child {
    grid-column: span 2;
}

.hl-g-thumb {
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    width: 100%;
    background: var(--green-50);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(17, 24, 39, 0.08);
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
}

.hl-g-thumb:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.hl-g-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ease-out);
}

.hl-g-item:first-child .hl-g-thumb img {
    aspect-ratio: 16 / 9;
}

.hl-g-thumb:hover img {
    transform: scale(1.03);
}

/* Caption — always visible, distinct from body text */
.hl-g-caption {
    margin: 0;
    padding: 10px 12px 0;
    font-size: 0.8rem;
    line-height: 1.45;
    font-style: italic;
    color: var(--hl-navy-soft);
    border-left: 3px solid var(--gold-400);
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.45) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.hl-g-thumb::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23166534' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E")
        center/14px no-repeat;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.hl-g-thumb:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* ---- Lightbox ---- */
.hl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hl-lightbox[hidden] {
    display: none;
}

.hl-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 46, 22, 0.94);
    backdrop-filter: blur(8px);
}

.hl-lb-close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hl-lb-close:hover {
    background: rgba(245, 158, 11, 0.35);
    transform: rotate(90deg);
}

.hl-lb-stage {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: none;
    padding: 56px clamp(8px, 3vw, 24px) 0;
}

.hl-lb-img-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
}

.hl-lb-img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hl-lb-img--loaded {
    opacity: 1;
}

.hl-lb-arrow {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 6;
}

.hl-lb-arrow:hover {
    background: rgba(245, 158, 11, 0.25);
    transform: scale(1.08);
}

.hl-lb-footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 12px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hl-lb-caption {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.45;
    margin: 0;
    max-width: min(560px, 92vw);
    padding: 10px 16px;
    border-left: 3px solid var(--gold-400);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hl-lb-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hl-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hl-g-item:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .hl-body-root {
        --hl-page-gutter: clamp(6px, 2.4vw, 22px);
    }

    /* Phone: image flush to hero edges — no top/side mat gap */
    .hl-hero-frame--overlap .hl-hero-media--framed {
        padding: 0;
    }

    .hl-hero-frame--overlap .hl-hero-img {
        border-radius: 0;
        max-height: min(44vh, 400px);
    }

    .hl-hero-frame--overlap .hl-overlap-card.hl-headline-card {
        padding: 12px 12px 10px;
    }

    .hl-hero-frame--overlap .hl-overlap-card .hl-card-desc-block {
        margin-top: 4px;
        padding-top: 10px;
    }

    .hl-hero-frame--overlap .hl-overlap-card .hl-hero-tag {
        margin-bottom: 8px;
    }

    .hl-hero-frame--overlap .hl-overlap-card .hl-hero-title {
        margin-bottom: 8px;
    }

    .hl-hero-img {
        max-height: min(58vh, 540px);
    }
    .hl-overlap-slot {
        margin-top: clamp(-5.25rem, -12vw, -2.75rem);
    }
    .hl-article {
        padding-top: 24px;
        padding-bottom: 32px;
    }
    .hl-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hl-g-item:first-child {
        grid-column: span 2;
    }
    .hl-lb-arrow {
        width: 42px;
        height: 42px;
    }
    .hl-lb-stage {
        gap: 8px;
        padding: 48px 8px 0;
    }
}

@media (max-width: 420px) {
    .hl-body-root {
        --hl-page-gutter: 6px;
    }

    .hl-crumb {
        font-size: 0.78rem;
    }
    .hl-hero-img {
        max-height: min(52vh, 480px);
    }
    .hl-hero-frame--overlap .hl-hero-img {
        max-height: min(40vh, 360px);
    }
    .hl-overlap-slot {
        margin-top: clamp(-4.5rem, -10vw, -2.25rem);
    }
    .hl-headline-card {
        padding: 18px 14px 22px;
    }
    .hl-gallery-grid {
        grid-template-columns: 1fr;
    }
    .hl-g-item:first-child {
        grid-column: span 1;
    }
    .hl-g-item:first-child .hl-g-thumb img {
        aspect-ratio: 4 / 3;
    }
    .hl-lb-stage {
        flex-direction: column;
    }
    .hl-lb-arrow {
        display: none;
    }
}

/* -------------------------------------------------------
   13. CMS: TEAM (Sanity)
   ------------------------------------------------------- */
#sanity-team {
    width: 100%;
    min-width: 0;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    padding: 8px 0 16px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.35s var(--ease-out);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.team-card-image {
    width: 100%;
    padding: 32px 24px 20px;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
}

.team-card-img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}

.team-card-noimg {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    border: 3px solid var(--white);
}

.team-card-body {
    padding: 16px 16px 24px;
    text-align: center;
}

.team-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--green-900);
    margin: 0 0 4px;
}

.team-card-role {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* -------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------- */
.site-footer {
    background: var(--green-950);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.9;
}

.footer-logo strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gold-400);
    margin-bottom: 16px;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
    padding: 2px 0;
}

.footer-links nav a:hover {
    color: var(--gold-400);
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    line-height: 1.5;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--green-400);
}

a.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom-inner {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* -------------------------------------------------------
   15A. LEGAL PAGES + COOKIE BANNER
   ------------------------------------------------------- */
.legal-page {
    min-height: 100vh;
    background: var(--gray-50);
    padding: 48px 0 96px;
}

.legal-container {
    max-width: 860px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
}

.legal-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--green-700);
    font-weight: 600;
}

.legal-container h1 {
    margin-bottom: 12px;
}

.legal-container h2 {
    font-size: 1.15rem;
    margin: 24px 0 8px;
}

.legal-container p {
    color: var(--gray-700);
    margin-bottom: 10px;
}

.legal-container ul {
    list-style: disc;
    margin-left: 20px;
}

.legal-container li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10001;
    background: var(--green-950);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--gold-300);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: 'Poppins', system-ui, sans-serif;
    cursor: pointer;
}

.cookie-btn--ghost {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.32);
}

.cookie-btn--primary {
    color: var(--green-950);
    background: var(--gold-500);
}

/* -------------------------------------------------------
   15. REVEAL ANIMATIONS
   ------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.35s; }
.reveal--d4 { transition-delay: 0.5s; }

/* Hero reveals trigger on load */
.hero .reveal {
    opacity: 0;
    transform: translateY(32px);
}

.hero .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------
   17. REDUCED MOTION
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-logo img { animation: none; }
    .hero-shape { animation: none; }
}

/* -------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------- */

/* Tablet & below – hamburger nav */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 0;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 12px 32px -8px rgba(17, 24, 39, 0.14);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.38s var(--ease-out), opacity 0.28s ease, padding 0.3s ease;
    }

    .main-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        padding: 10px 16px 16px;
    }

    .nav-divider {
        display: block;
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }

    .nav-link {
        width: 100%;
        padding: 13px 16px;
        font-size: 0.95rem;
        border-radius: var(--radius-md);
        color: var(--gray-700);
        display: flex;
        align-items: center;
    }

    .nav-link:hover,
    .nav-link.is-active {
        background: var(--green-50);
        color: var(--green-800);
    }

}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-inner { padding: 0 20px; }
    .header-title { font-size: 1rem; }
    .section { padding: 72px 0; }
    .pillars { gap: 24px; }
    .focus-block { padding: 40px; }

    .donate-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .donate-qr { justify-self: center; }
    .donate-desc { margin-left: auto; margin-right: auto; }
    .donate-appeal { text-align: left; }

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    :root {
        --header-h: 64px;
    }

    .container { padding: 0 20px; }
    .section { padding: 56px 0; }

    .hero {
        padding: 100px 20px 80px;
        min-height: 100svh;
    }

    .hero-logo img {
        width: 100px;
        height: 100px;
    }

    .section-header { margin-bottom: 36px; }

    .pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillar { padding: 28px 24px; }

    .focus-block { padding: 28px 24px; }

    .focus-header {
        flex-direction: column;
        gap: 16px;
    }

    .focus-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .focus-list li { padding-left: 24px; font-size: 0.95rem; }
    .focus-list li::before { top: 9px; width: 6px; height: 6px; }

    .donate-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .donate-qr { justify-self: center; }
    .donate-desc { margin-left: auto; margin-right: auto; }

    .donate-qr-card img {
        width: 220px;
        height: 220px;
    }

    .sanity-card { width: 270px; min-width: 270px; padding: 10px; }
    .sanity-slider-btn { display: none; }

    .team-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding: 8px 4px 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .team-card {
        flex: 0 0 auto;
        width: 180px;
        min-width: 180px;
        scroll-snap-align: start;
    }

    .team-card-img,
    .team-card-noimg {
        width: 100px;
        height: 100px;
    }

    .team-card-image { padding: 24px 16px 16px; }
    .team-card-body { padding: 12px 12px 20px; }
    .team-card-name { font-size: 0.95rem; }
    .team-card-role { font-size: 0.8rem; }

    .footer-top { padding: 48px 0 32px; }

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

    .footer-brand { max-width: none; }
    .footer-logo { justify-content: center; }
    .footer-links nav { align-items: center; }
    .footer-contact { align-items: center; }
    .footer-contact-item { text-align: left; max-width: 100%; }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    .hero { padding: 88px 16px 60px; }
    .container { padding: 0 16px; }
    .focus-block { padding: 24px 20px; }
    .pillar { padding: 24px 20px; }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .donate-qr-card img {
        width: 200px;
        height: 200px;
    }

    .sanity-card { width: 250px; min-width: 250px; padding: 10px; }
    .sanity-card-desc { font-size: 0.875rem; }

    .team-card { width: 160px; min-width: 160px; }
    .team-card-img, .team-card-noimg { width: 88px; height: 88px; }

    .legal-container {
        padding: 22px 18px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* Very small mobile (max 360px) */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .focus-block { padding: 20px 16px; }
    .header-title { font-size: 1rem; }
    .team-card { width: 150px; min-width: 150px; }
    .sanity-card { width: 240px; min-width: 240px; padding: 8px; }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container { max-width: 1320px; }
}

/* Print */
@media print {
    .site-header,
    .hero-bg,
    .nav-toggle { display: none; }

    .hero { min-height: auto; padding: 40px 0; background: none; }
    .hero-heading, .hero-motto { color: #000; }
    .section { padding: 24px 0; break-inside: avoid; }
}
