@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Nature Palette - Premium, Light */
    --green-deep: #1a4d2e;
    --green-main: #2d6a4f;
    --green-accent: #40916c;
    --green-light: #74c69d;
    --green-pale: #d8f3dc;
    --green-bg: #f0f7f4;
    --gold: #b68d40;
    --gold-light: #d4a853;
    --gold-pale: #f5e6c8;
    --earth: #6b4e3d;
    --earth-light: #d7ccc8;
    --cream: #faf9f6;
    --white: #ffffff;
    --text-dark: #1a2e1a;
    --text-body: #3a5a3a;
    --text-light: #6b8f6b;
    --text-muted: #94b294;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-xs: 0 2px 8px rgba(26, 77, 46, 0.04);
    --shadow-sm: 0 4px 20px rgba(26, 77, 46, 0.06);
    --shadow-md: 0 8px 40px rgba(26, 77, 46, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 77, 46, 0.10);
    --shadow-xl: 0 30px 80px rgba(26, 77, 46, 0.14);
    --shadow-glow: 0 0 40px rgba(45, 106, 79, 0.15);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* GLOBAL HERO COMPONENT */
.site-hero {
    position: relative;
    height: 48vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.site-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: opacity 1s ease-out;
}
.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 77, 46, 0.2) 0%, rgba(20, 60, 36, 0.75) 100%);
    z-index: 1;
}
.site-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 850px;
    padding: 0 5%;
}
.site-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
    line-height: 1.1;
}
.site-hero-content p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .site-hero {
        height: 40vh;
        min-height: 320px;
        background-attachment: fixed;
    }
    .site-hero-content h1 {
        font-size: 2.8rem;
    }
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    overflow-x: hidden;
    background: var(--cream); /* Match body for scrollbar gutter */
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--cream); /* Default body color */
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Sticky Footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@supports (overflow: clip) {
    html,
    body,
    #main-content {
        overflow-x: clip;
    }
}

#main-content {
    flex: 1 0 auto;
    background: var(--cream); /* Ensure content has its own solid background */
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
a,
.hero-btn,
.lang-current,
.hamburger {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.hero-btn:focus-visible,
.lang-current:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid rgba(182, 141, 64, 0.55);
    outline-offset: 3px;
}

@media (hover: none) and (pointer: coarse) {

    a:active,
    button:active {
        opacity: 0.85;
    }

    .hero-btn:active,
    .lang-current:active,
    .hamburger:active {
        transform: translateY(1px);
    }
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: calc(14px + env(safe-area-inset-top)) 0 14px;
    background: transparent;
    transition: padding 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}


.top-nav.scrolled {
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 1.5px 0 0 rgba(45, 106, 79, 0.12) !important;
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
}

/* Keep solid background during page transition */
.top-nav.nav-leaving {
    background: rgba(250, 249, 246, 0.98) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
}

/* Pages with hero: start truly transparent */
.has-hero .top-nav:not(.scrolled):not(.nav-leaving) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Force solid header and add body padding on pages with fixed nav */
.page-animals,
.page-entorn,
.page-services,
.page-contacte {
    padding-top: calc(72px + env(safe-area-inset-top));
}

@media (max-width: 768px) {
    .page-animals,
    .page-entorn,
    .page-services,
    .page-contacte {
        padding-top: calc(64px + env(safe-area-inset-top));
    }
}

.page-animals .top-nav,
.page-entorn .top-nav,
.page-services .top-nav,
.page-contacte .top-nav {
    background: rgba(250, 249, 246, 0.98) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    box-shadow: 0 1.5px 0 0 rgba(45, 106, 79, 0.12) !important;
    border: none !important;
}

.page-entorn .entorn-features {
    margin-bottom: 60px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .top-nav {
        background: rgba(250, 249, 246, 0.98);
    }

    .top-nav.scrolled {
        background: rgba(250, 249, 246, 0.98);
    }

    .has-hero .top-nav:not(.scrolled):not(.nav-leaving) {
        background: rgba(250, 249, 246, 0.92);
    }
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-deep);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.site-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: height 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scrolled .site-logo {
    height: 40px;
}

@media (max-width: 1100px) {
    .site-logo {
        height: 38px;
    }
}

@media (max-width: 768px) {
    .site-logo {
        height: 36px;
    }
    .scrolled .site-logo {
        height: 32px;
    }

    .nav-logo {
        font-size: 1.3rem;
        gap: 8px;
    }
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--green-main);
    transition: width 0.4s var(--ease-out);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--green-main);
}

html {
    scrollbar-gutter: stable;
}
html::-webkit-scrollbar {
    width: 12px;
    background: #f0eeea;
}
html::-webkit-scrollbar-track {
    background: #f0eeea;
}
html::-webkit-scrollbar-thumb {
    background: #d5d2cc;
    border-radius: 6px;
    border: 2px solid #f0eeea;
}
html::-webkit-scrollbar-thumb:hover {
    background: #bfbbb4;
}
html.menu-open {
    overflow: hidden;
    background: #ffffff !important;
}
body.menu-open {
    touch-action: none;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--green-main);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.lang-current:hover {
    background: var(--green-deep);
}

.lang-current svg {
    transition: transform 0.3s;
    width: 8px;
    height: 5px;
}

.lang-dropdown.open .lang-current svg {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
    min-width: 60px;
    z-index: 100;
}

.lang-dropdown.open .lang-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-options a {
    display: block;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
    text-align: center;
    letter-spacing: 0.05em;
}

.lang-options a:hover {
    background: var(--green-bg);
    color: var(--green-main);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--green-deep);
    transition: all 0.4s var(--ease-out);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === SCROLL ANIMATIONS === */
.anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: 0.05s;
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1025px) {
    .anim {
        transform: translateY(15px); /* Subtler on desktop */
    }
    .anim-left {
        transform: translateX(-20px);
    }
    .anim-right {
        transform: translateX(20px);
    }
}

.anim-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

.anim-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

.anim-left.visible,
.anim-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.anim-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}

.anim-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.anim-rotate {
    opacity: 0;
    transform: perspective(1000px) rotateY(20deg);
    transition: opacity 0.8s var(--ease-out), transform 1.4s var(--ease-out);
}

.anim-rotate.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--green-bg) 0%, var(--cream) 35%, #fffdf5 70%, var(--gold-pale) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(45, 106, 79, 0.04) 0%, transparent 60%);
    animation: float-blob 25s ease-in-out infinite;
}

@keyframes float-blob {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -40px) rotate(3deg);
    }

    66% {
        transform: translate(-15px, 20px) rotate(-2deg);
    }
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px clamp(24px, 4vw, 50px) 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.hero-text h1 span {
    color: var(--green-main);
    font-style: italic;
    position: relative;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gold-light);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.4;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-main);
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.25);
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(45, 106, 79, 0.35);
    background: var(--green-deep);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-img-main {
    width: 100%;
    max-width: 520px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-xl);
    animation: morph 10s ease-in-out infinite;
    object-fit: cover;
    object-position: center;
    height: 520px;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Floating leaves (CSS-only) */
.float-leaf {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--green-light);
    border-radius: 50% 0 50% 0;
    opacity: 0.25;
    z-index: 1;
    animation: leaf-float 8s ease-in-out infinite;
}

.float-leaf:nth-child(1) {
    top: 15%;
    right: 8%;
    animation-delay: 0s;
    width: 12px;
    height: 12px;
}

.float-leaf:nth-child(2) {
    bottom: 25%;
    right: 20%;
    animation-delay: 2.5s;
    width: 10px;
    height: 10px;
}

.float-leaf:nth-child(3) {
    top: 35%;
    left: 55%;
    animation-delay: 5s;
    width: 14px;
    height: 14px;
}

@keyframes leaf-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(15deg);
    }
}

/* === SECTION STYLES === */
.section {
    padding: 70px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.6s var(--ease-out);
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--green-accent), var(--gold));
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.feature-card:hover img {
    transform: scale(1.06);
}

.feature-card-body {
    padding: 32px;
}

.feature-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 300;
}

/* === SVG ICON SYSTEM === */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--green-bg), var(--green-pale));
    color: var(--green-main);
    transition: all 0.5s var(--ease-out);
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

.icon-box:not(.activity-icon-box):hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--green-pale), var(--green-light));
}

/* Large icon box variant */
.icon-box-lg {
    width: 80px;
    height: 80px;
    border-radius: 24px;
}

.icon-box-lg svg {
    width: 36px;
    height: 36px;
}

/* === ANIMALS GRID === */
.animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.animal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.6s var(--ease-out);
    cursor: pointer;
}

.animal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.animal-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.animal-card:hover img {
    transform: scale(1.06);
}

.animal-card-info {
    padding: 28px;
}

.animal-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-deep);
    margin-bottom: 8px;
    font-weight: 600;
}

.animal-card-info p {
    font-size: 0.92rem;
    color: var(--text-light);
    font-weight: 300;
}

/* === PARALLAX BAND === */
.parallax-band {
    height: 40vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.parallax-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(26, 77, 46, 0.6), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.parallax-band h2,
.parallax-band p {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.parallax-band h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* === SPLIT SECTION === */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 36px;
    width: min(1300px, 90%);
    margin: 50px auto;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 4px 30px rgba(26, 77, 46, 0.08);
    border: 1px solid rgba(26, 77, 46, 0.06);
    position: relative;
    z-index: 1;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse>* {
    direction: ltr;
}

.split-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 400px;
}

/* Image reveal animation */
.split-img.reveal-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.split-img.revealed {
    opacity: 1;
    transform: translateY(0);
}

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.split-img:hover img {
    transform: scale(1.04);
}

.split-text {
    padding: 10px 20px;
}

.split-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.15;
}

.split-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 25px;
    font-weight: 300;
}

/* === STATS ROW === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    padding: 50px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--green-main);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* === CONTACT STYLES === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--green-bg);
    font-size: 0.95rem;
    color: var(--text-body);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--green-accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--green-main);
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--green-deep);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid var(--green-pale);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s;
    outline: none;
    background: var(--cream);
}

.form-input:focus {
    border-color: var(--green-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--green-bg);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.92rem;
}

.social-link:hover {
    background: var(--green-pale);
    transform: translateX(5px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--green-accent);
}

/* === MAP PLACEHOLDER === */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--green-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 2px dashed var(--green-pale);
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.map-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.map-placeholder p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === SCROLL PROGRESS INDICATOR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2.2px;
    background: linear-gradient(90deg, var(--green-accent), var(--gold));
    z-index: 9999;
    transition: width 0.1s linear, opacity 0.2s;
    pointer-events: none;
    opacity: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 22px;
    }

    .nav-menu a {
        font-size: 0.84rem;
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding: 120px 30px 80px;
    }

    .hero-text h1 {
        font-size: 3.8rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-img-main {
        max-width: 380px;
        height: 380px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 0; /* No gap because we use padding for text */
        padding: 0;
        margin: 40px auto;
        width: min(900px, 92%);
        border-radius: 28px;
        overflow: hidden; /* Flush image */
    }

    .split-img {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
        box-shadow: none;
    }

    .split-text {
        padding: 30px 24px;
    }

    .activity-card-body {
        flex-direction: column;
        gap: 16px;
    }

    .icon-box {
        width: 75px;
        height: 75px;
        font-size: 2.8rem;
    }

    .split-section.reverse {
        direction: ltr;
        margin-top: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.6rem;
    }

    .section {
        padding: 80px 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 17px;
    }

    .top-nav {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
        padding: calc(14px + env(safe-area-inset-top)) 0 14px;
    }


    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right 0.5s var(--ease-out);
        box-shadow: -10px 0 60px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.15rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero {
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero-inner {
        padding: clamp(90px, 12svh, 130px) 22px clamp(40px, 8svh, 80px);
        gap: 24px;
    }

    .hero-visual {
        min-height: 260px;
    }

    .hero-img-main {
        width: 85vw;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 340px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 24px;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: center;
    }

    .footer-brand-band {
        padding: 40px 24px 32px;
    }

    .footer-bottom {
        padding: 22px 16px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        padding: 60px 30px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .parallax-band h2 {
        font-size: 2.8rem;
    }

    .split-text h2 {
        font-size: 2.4rem;
    }

    .nav-inner {
        padding: 0 20px;
    }


    .split-section {
        padding: 0;
        margin: 32px auto;
        width: 92%;
        border-radius: 24px;
        overflow: hidden;
    }

    .split-text {
        padding: 20px 20px;
    }

    .split-img {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-inner {
        padding: clamp(80px, 16svh, 110px) 16px clamp(32px, 10svh, 60px);
        gap: 20px;
    }

    .hero-img-main {
        width: 82vw;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 290px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .parallax-band {
        height: 45vh;
    }

    .parallax-band h2 {
        font-size: 2.2rem;
    }

    .section {
        padding: 50px 16px;
    }

    .split-section {
        padding: 0;
        margin: 28px auto;
        width: 92%;
        border-radius: 22px;
        overflow: hidden;
    }

    .split-text {
        padding: 20px 16px;
    }

    .split-img {
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 0;
        box-shadow: none;
    }

    .contact-card {
        padding: 28px;
    }

    .feature-card-body {
        padding: 24px;
    }

    .animals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .hero-inner {
        padding-top: 72px;
        padding-bottom: 28px;
        gap: 22px;
    }

    .hero-img-main {
        width: 68vw;
        height: 68vw;
        max-width: 240px;
        max-height: 240px;
    }

    .hero-visual {
        min-height: 220px;
    }
}

@media (max-height: 520px) and (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 64px;
        padding-bottom: 24px;
    }

    .hero-img-main {
        width: 64vw;
        height: 64vw;
        max-width: 220px;
        max-height: 220px;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--green-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    margin-top: 0;
    flex-shrink: 0;
    border-top: 1px solid var(--gold);
}

/* === Footer main grid === */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px 48px;
}

/* Column headings */
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    color: var(--gold-pale);
    margin: 0 0 24px 0;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* === Brand column === */
.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 280px;
}

/* Social icons */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}
.footer-social a svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-deep);
    transform: translateY(-2px);
}

/* === Nav links column === */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-list a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-links-list a:hover {
    color: var(--gold);
}

/* === Contact column === */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    overflow-wrap: break-word;
}
.footer-contact-item:last-child {
    margin-bottom: 0;
}
.footer-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.4;
}
.footer-contact-item a,
.footer-contact-item span {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-contact-item a:hover {
    color: var(--gold);
}

/* === Bottom bar === */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 48px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom-sep {
    opacity: 0.4;
}
.footer-admin-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-admin-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

/* Page-specific adjustments (already handled by global rules now) */
body.page-home {
    overflow-x: hidden;
}

body.page-home #main-content {
    flex: 1 0 auto !important;
}

body.page-home .site-footer {
    margin-top: 0;
}

@media (max-width: 768px) {
    body.page-home #main-content {
        flex: 1 0 auto !important;
    }

    body.page-home .site-footer {
        flex: 0 0 auto !important;
        margin-top: 0;
        padding-top: 60px;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9f9f7;
    border: 1px solid #efeFEa;
    padding: 5px 12px;
    border-radius: 6px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--green-main);
    opacity: 0.8;
}

/* === LOGIN PAGE === */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-bg), var(--green-pale));
    color: var(--green-main);
    margin-bottom: 24px;
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.login-card>p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

.login-card label {
    display: block;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--green-pale);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 22px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: var(--bg);
}

.login-card input:focus {
    outline: none;
    border-color: var(--green-accent);
    box-shadow: 0 0 0 3px rgba(76, 127, 84, 0.08);
}

.login-card button {
    width: 100%;
    padding: 16px;
    background: var(--green-main);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-card button:hover {
    background: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.login-error svg {
    flex-shrink: 0;
}

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--green-pale);
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.6;
}

/* ===========================
   PUBLIC BLOG STYLES
   =========================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 36px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 280px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.blog-category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--green-pale);
    color: var(--green-main);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-date {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.blog-author {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-main);
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more {
    gap: 10px;
}

/* Single post */
.blog-single {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-main);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 28px;
    transition: gap 0.2s ease;
}

.blog-back-link:hover {
    gap: 10px;
}

.blog-single-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.blog-single-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.blog-single-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 32px;
    line-height: 1.2;
}

.blog-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.blog-single-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text-dark);
}

.blog-single-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-dark);
}

.blog-single-content p {
    margin-bottom: 20px;
}

.blog-single-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.blog-single-content blockquote {
    border-left: 4px solid var(--green-main);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--green-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-dark);
}

.blog-single-content ul,
.blog-single-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-single-content li {
    margin-bottom: 8px;
}

.blog-single-content hr {
    border: none;
    height: 2px;
    background: var(--green-pale);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-single-title {
        font-size: 2rem;
    }

    .blog-single-hero img {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* === ACTIVITY CARD SPECIFIC === */
.activity-card-body {
    display: flex;
    flex-direction: column;
}

.activity-content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.activity-icon-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--green-pale);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    font-size: 3rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.activity-icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-bg), var(--green-pale));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.activity-icon-box:hover::before {
    opacity: 1;
}

.activity-icon-box svg {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
    top: 3px;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.activity-icon-box span {
    position: relative;
    z-index: 1;
}

.activity-icon-box:hover {
    border-color: var(--green-light);
    box-shadow: 0 8px 28px rgba(26, 77, 46, 0.12);
}

.activity-icon-box:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(26, 77, 46, 0.25));
}

.activity-title-meta {
    flex: 1;
    min-width: 0;
}

.activity-title-meta h2 {
    margin: 0 0 8px 0;
    line-height: 1.15;
    font-size: 2.4rem;
    color: var(--text-dark);
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
}

.activity-description {
    padding: 0;
}

.activity-description p {
    margin: 0 0 20px 0;
    line-height: 1.75;
    color: var(--text-light);
}

/* --- Activity card: Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .activity-icon-box {
        width: 70px;
        height: 70px;
        font-size: 2.6rem;
        border-radius: 18px;
    }

    .activity-title-meta h2 {
        font-size: 2.2rem;
    }
}

/* --- Activity card: Mobile (≤768px) --- */
@media (max-width: 768px) {
    .activity-content-header {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "meta meta";
        gap: 12px 14px;
        align-items: center;
        margin-bottom: 16px;
    }

    .activity-icon-box {
        grid-area: icon;
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
        border-radius: 16px;
        margin: 0;
    }

    .activity-title-meta {
        display: contents;
    }

    .activity-title-meta h2 {
        grid-area: title;
        font-size: 2rem;
        margin: 0;
        text-align: left;
        line-height: 1.15;
    }

    .activity-meta {
        grid-area: meta;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        width: 100%;
    }

    .meta-item {
        padding: 6px 10px;
        font-size: 0.92rem;
        box-sizing: border-box;
    }

    .activity-description p {
        margin: 0 0 16px 0;
        padding: 0 4px;
    }
}

/* --- Activity card: Small mobile (≤480px) --- */
@media (max-width: 480px) {
    .activity-content-header {
        gap: 10px 12px;
        margin-bottom: 12px;
    }

    .activity-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        border-radius: 14px;
    }

    .activity-title-meta h2 {
        font-size: 1.7rem;
    }

    .activity-description p {
        font-size: 0.95rem;
        margin: 0 0 14px 0;
        padding: 0;
    }
}

/* ==========================================================================
   ABOUT INTRO — Homepage
   ========================================================================== */
.about-intro {
    padding: 90px 5%;
    background: white;
    overflow-x: hidden;
}

.about-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-img {
    position: relative;
}

.about-intro-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-intro-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--green-main), var(--green-deep));
    color: white;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 4px;
}

.about-intro-text .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-main);
    background: var(--green-bg);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.about-intro-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.15;
}

.about-intro-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.about-feature svg {
    color: var(--green-main);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .about-intro-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro-img img {
        height: 350px;
    }

    .about-intro-badge {
        bottom: 16px;
        right: 16px;
        padding: 16px 22px;
        border-radius: 18px;
    }

    .about-intro-badge .badge-number {
        font-size: 2.1rem;
    }

    .about-intro-text h2 {
        font-size: 2.4rem;
    }

    .about-intro-text {
        text-align: center;
    }

    .about-features {
        align-items: center;
        margin-bottom: 16px;
    }

    .about-feature {
        justify-content: center;
    }

    .about-intro-text .hero-btn {
        margin: 12px auto 0;
    }
}

@media (max-width: 600px) {
    .about-intro-img {
        overflow: hidden;
        border-radius: var(--radius-xl);
    }

    .about-intro-badge {
        bottom: 10px;
        right: 10px;
        padding: 14px 18px;
        border-radius: 16px;
    }

    .badge-number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   TEAM BAND — Homepage
   ========================================================================== */
.team-band {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-main) 50%, #357a5c 100%);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.team-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
}

.team-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.team-band-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    line-height: 1.15;
}

.team-band-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 28px;
    font-weight: 300;
}

.team-band-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .team-band {
        padding: 60px 7%;
    }

    .team-band-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .team-band-text h2 {
        font-size: 2.4rem;
    }

    .team-band-text p {
        font-size: 1.05rem;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-band-img img {
        height: 280px;
    }
}

/* ==========================================================================
   CTA SECTION — Homepage
   ========================================================================== */
.cta-section {
    padding: 80px 5%;
    background: var(--cream);
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cta-image {
    height: 100%;
    min-height: 400px;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    padding: 50px 50px 50px 10px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.15;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
}

@media (max-width: 900px) {
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cta-image {
        min-height: 250px;
    }

    .cta-content {
        padding: 40px 30px;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   PHOTO STRIP — Homepage
   ========================================================================== */
.photo-strip-section {
    padding: 40px 0;
    overflow: hidden;
    background: var(--green-bg);
}

.photo-strip {
    display: flex;
    gap: 16px;
    animation: scroll-strip 40s linear infinite;
    width: max-content;
}

.photo-strip:hover {
    animation-play-state: paused;
}

.strip-item {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.strip-item:hover img {
    transform: scale(1.06);
}

@keyframes scroll-strip {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .strip-item {
        width: 220px;
        height: 150px;
    }
}

/* ==========================================================================
   PAGE HERO BANNER — Entorn, Sobre, etc.
   ========================================================================== */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(26, 77, 46, 0.5));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
    font-size: 1.15rem;
    opacity: 0.85;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero {
        height: 35vh;
        min-height: 250px;
    }

    .page-hero-content h1 {
        font-size: 2.8rem;
    }
}

/* ==========================================================================
   FEATURE HIGHLIGHT CARDS — Entorn
   ========================================================================== */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.highlight-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out);
    border: 1px solid rgba(45, 106, 79, 0.06);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.highlight-card .icon-box {
    margin: 0 auto 20px;
}

.highlight-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 768px) {
    .feature-highlights {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MASONRY GALLERY — Entorn
   ========================================================================== */
.masonry-gallery {
    columns: 3;
    column-gap: 16px;
    margin-top: 30px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.masonry-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .masonry-gallery {
        columns: 2;
    }
}

@media (max-width: 500px) {
    .masonry-gallery {
        columns: 1;
    }
}

/* ==========================================================================
   TIMELINE — Sobre Nosaltres
   ========================================================================== */
.values-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.value-card-new {
    background: white;
    border-radius: var(--radius-lg);
    padding: 44px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.value-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green-accent), var(--gold));
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out);
}

.value-card-new:hover::before {
    transform: scaleX(1);
}

.value-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.value-card-new .icon-box {
    margin: 0 auto 20px;
}

.value-card-new h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.value-card-new p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 768px) {
    .values-grid-new {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CTA BAND — Sobre / Entorn
   ========================================================================== */
.cta-band {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-main) 50%, #357a5c 100%);
    padding: 70px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 60%;
    height: 220%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
}

.cta-band h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.cta-band .hero-btn {
    background: white;
    color: var(--green-deep);
    position: relative;
    z-index: 1;
}

.cta-band .hero-btn:hover {
    background: var(--gold-pale);
    color: var(--green-deep);
}

/* ==========================================================================
   LIGHTBOX — Gallery
   ========================================================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Footer mobile: old compact style */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    .footer-col-brand {
        align-items: center;
        text-align: center;
        padding: 28px 24px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-tagline {
        max-width: none;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-col-nav {
        display: none;
    }
    .footer-col-contact {
        text-align: center;
        padding: 24px 24px 28px;
    }
    .footer-col-contact h4 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    .footer-contact-item {
        justify-content: center;
        align-items: center;
        font-size: 0.92rem;
        gap: 8px;
        margin-bottom: 8px;
        padding: 0 24px;
        box-sizing: border-box;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-contact-item span,
    .footer-contact-item a {
        min-width: 0;
        text-align: center;
        line-height: 1.5;
    }
    .footer-bottom {
        padding: 20px 24px;
        flex-direction: column;
        gap: 4px;
    }
    .footer-bottom-sep {
        display: none;
    }
}
