:root {
    --color-primary: #1A3B2F; /* Deep Forest Green */
    --color-secondary: #E3B448; /* Warm Ochre (for accents/CTAs) */
    --color-text-dark: #333;
    --color-text-light: #F8F4E3; /* Off-white for light text */
    --color-background-light: #F8F4E3; /* Sandy Brown light */
    --color-background-dark: #2F3E46; /* Slate Gray dark */
    --color-highlight: #A3BFB8; /* Muted Green-Gray */
    --color-ocean-blue: #2A6F97;
    --color-sunset-orange: #FF7B00;

    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-alt: 'Playfair Display', serif; /* For section descriptions, etc. */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    --border-radius-sm: 8px;
    --border-radius-md: 15px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-family: var(--font-alt);
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: -var(--spacing-md) auto var(--spacing-xl);
    color: var(--color-background-dark);
}

.cta-button, .card-button, .panel-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, #d49a2a 100%);
    color: var(--color-text-light);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover, .card-button:hover, .panel-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #d49a2a 0%, var(--color-secondary) 100%);
}

/* Header */
.site-header {
    background-color: rgba(26, 59, 47, 0.95); /* Semi-transparent deep forest green */
    color: var(--color-text-light);
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo a {
    color: var(--color-text-light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.main-nav a:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Hero Section: Echoes of the Wild */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--color-text-light);
    text-align: center;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    animation: fadeIn 2s ease-out forwards;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 59, 47, 0.5) 0%, rgba(26, 59, 47, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: var(--spacing-lg);
    transform: translateY(20px);
    opacity: 1;
    animation: slideInUp 1s ease-out 1s forwards;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content .subtitle {
    font-family: var(--font-alt);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
    color: var(--color-highlight);
}

.hero-content h2 {
    font-size: 4.5rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h2::after {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-text-light) 100%);
}

@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* General Content Section Styling */
.content-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background-light);
    position: relative;
    overflow: hidden;
}

.content-section:nth-of-type(odd) {
    background-color: var(--color-background-light);
}

.content-section:nth-of-type(even) {
    background-color: #F0EDE4; /* Slightly different light tone */
}

/* The Living Tapestry */
.tapestry-section {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

.interactive-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Maintain aspect ratio for map */
    max-height: 700px;
    background-color: var(--color-highlight);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2) brightness(0.9);
    transition: transform 0.8s ease-out; /* For conceptual parallax/zoom */
}

.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(227, 180, 72, 0.7);
    animation: pulse 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid var(--color-text-light);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 5;
}

.hotspot:hover {
    transform: scale(1.1);
    background-color: var(--color-primary);
}

.hotspot-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(var(--color-primary-rgb), 0.8);
    color: var(--color-text-light);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 1;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 6;
}

.hotspot:hover .hotspot-label {
    opacity: 1;
    visibility: visible;
}

.forest-hotspot { top: 30%; left: 20%; }
.desert-hotspot { top: 60%; left: 70%; }
.ocean-hotspot { top: 45%; left: 45%; }


.hotspot-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
    visibility: hidden;
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    padding: var(--spacing-md);
    width: 450px;
    max-width: 90vw;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Springy effect */
    border: 2px solid var(--color-primary);
    text-align: left;
}

.hotspot-card.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.hotspot-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    filter: saturate(1.1);
}

.hotspot-card h3 {
    font-family: var(--font-alt);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.hotspot-card p {
    font-size: 0.95rem;
    color: var(--color-background-dark);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 180, 72, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(227, 180, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 180, 72, 0); }
}


/* Guardians' Guild */
.guardians-section {
    background-color: var(--color-background-dark); /* Dark background for contrast */
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.guardians-section h2, .guardians-section .section-description {
    color: var(--color-text-light);
}

.guardians-section h2::after {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-highlight) 100%);
}

.background-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23384a53' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 15v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM18 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 15v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM0 34v-4H-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0H-2v4h-4v2h4v4h2V6h4V4h-4zm0 15v-4H-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;.1;
    z-index: 0;
}


.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    z-index: 1;
    position: relative;
}

.mission-card {
    background-color: rgba(var(--color-background-light-rgb), 0.95);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-highlight);
}

.mission-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.mission-card .card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(0.1) brightness(0.95);
    transition: filter 0.4s ease;
}

.mission-card:hover .card-image {
    filter: grayscale(0) brightness(1);
}

.mission-card .card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

.mission-card h3 {
    font-family: var(--font-alt);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.mission-card p {
    font-size: 0.95rem;
    color: var(--color-background-dark);
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
}

.progress-bar-container {
    width: 100%;
    background-color: var(--color-highlight);
    border-radius: var(--border-radius-sm);
    height: 10px;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-ocean-blue) 100%);
    border-radius: var(--border-radius-sm);
    transition: width 0.8s ease-out;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    text-align: right;
    margin-top: 5px;
}

.mission-card .card-button {
    width: fit-content;
    margin-top: auto; /* Push button to bottom */
    align-self: flex-end; /* Align button to bottom right */
}


/* Untamed Chronicles */
.chronicles-section {
    background-color: var(--color-background-light);
}

.chronicles-filters {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.filter-button {
    background-color: var(--color-highlight);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 20px;
    margin: 0 8px var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-button:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-button.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chronicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: minmax(250px, auto); /* Flexible row height */
    gap: var(--spacing-lg);
    grid-auto-flow: dense; /* Fill empty spaces */
}

.chronicle-tile {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-highlight);
    cursor: pointer;
    position: relative;
}

.chronicle-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.chronicle-tile:hover::before {
    opacity: 1;
}

.chronicle-tile:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.chronicle-tile .tile-image {
    width: 100%;
    height: 200px; /* Default height */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.chronicle-tile:hover .tile-image {
    transform: scale(1.05);
}

.chronicle-tile.large .tile-image { height: 350px; }
.chronicle-tile.medium .tile-image { height: 280px; }
.chronicle-tile.small .tile-image { height: 180px; }


.chronicle-tile .tile-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    position: relative;
    z-index: 2;
    background-color: var(--color-background-light);
}

.chronicle-tile h3 {
    font-family: var(--font-alt);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.chronicle-tile p {
    font-size: 0.9rem;
    color: var(--color-background-dark);
}


/* Harmonic Haven */
.haven-section {
    background-color: var(--color-primary); /* Darker background for 'action' section */
    color: var(--color-text-light);
    position: relative;
}

.haven-section h2, .haven-section .section-description {
    color: var(--color-text-light);
}

.haven-section h2::after {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-text-light) 100%);
}

.background-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232F3E46' fill-opacity='0.2'%3E%3Cpath d='M10 0h10L20 10h-10zM0 10h10L10 20H0zM40 0h10L50 10h-10zM30 10h10L40 20h-10zM10 20h10L20 30h-10zM0 30h10L10 40H0zM40 20h10L50 30h-10zM30 30h10L40 40h-10zM10 40h10L20 50h-10zM0 50h10L10 60H0zM40 40h10L50 50h-10zM30 50h10L40 60h-10zM10 60h10L20 70h-10zM0 70h10L10 80H0zM40 60h10L50 70h-10zM30 70h10L40 80h-10zM50 0h10L60 10h-10zM70 10h10L80 20H70zM50 20h10L60 30h-10zM70 30h10L80 40H70zM50 40h10L60 50h-10zM70 50h10L80 60H70zM50 60h10L60 70h-10zM70 70h10L80 80H70zM60 0h10L70 10h-10zM60 20h10L70 30h-10zM60 40h10L70 50h-10zM60 60h10L70 70h-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 1;.1;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: var(--spacing-lg) auto var(--spacing-xl);
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-secondary);
    background-color: var(--color-background-dark);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-panel {
    min-width: calc(100% / 1); /* Show one panel at a time, adjusted for gap */
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(145deg, var(--color-background-dark) 0%, #384a53 100%);
    border-radius: var(--border-radius-md);
}

.carousel-panel .panel-image {
    width: 50%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: saturate(1.1) brightness(0.9);
}

.carousel-panel .panel-content {
    width: 50%;
    text-align: left;
}

.carousel-panel h3 {
    font-family: var(--font-alt);
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.carousel-panel p {
    font-size: 1.1rem;
    color: var(--color-highlight);
    margin-bottom: var(--spacing-md);
}

.panel-button {
    background: linear-gradient(135deg, var(--color-ocean-blue) 0%, #2A5F80 100%);
}

.panel-button:hover {
    background: linear-gradient(135deg, #2A5F80 0%, var(--color-ocean-blue) 100%);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
}

.carousel-button {
    background-color: rgba(var(--color-secondary-rgb), 0.7);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    transform: scale(1.1);
}

.connect-collective {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    text-align: center;
    padding: var(--spacing-lg);
    background-color: rgba(var(--color-background-light-rgb), 0.05);
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--color-highlight);
    color: var(--color-highlight);
}

.connect-collective h3 {
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.connect-collective p {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pledge Wall */
.pledge-wall {
    max-width: 1000px;
    margin: var(--spacing-xl) auto 0;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: rgba(var(--color-background-dark-rgb), 0.15);
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-highlight);
}

.pledge-wall h3 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.pledge-wall p {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    color: var(--color-highlight);
    margin-bottom: var(--spacing-lg);
}

.pledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.pledge-item {
    background-color: rgba(var(--color-background-dark-rgb), 0.2);
    border: 1px solid var(--color-highlight);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    font-family: var(--font-alt);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-text-light);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.pledge-item:hover {
    background-color: rgba(var(--color-secondary-rgb), 0.1);
    transform: translateY(-3px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-md) 0;
    font-size: 0.9rem;
    border-top: 5px solid var(--color-secondary);
}

/* Helper for RGB colors in rgba() */
:root {
    --color-primary-rgb: 26, 59, 47;
    --color-secondary-rgb: 227, 180, 72;
    --color-background-light-rgb: 248, 244, 227;
    --color-background-dark-rgb: 47, 62, 70;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 3.5rem;
    }
    .main-nav ul {
        gap: var(--spacing-sm);
    }
    .carousel-panel {
        flex-direction: column;
        text-align: center;
    }
    .carousel-panel .panel-image,
    .carousel-panel .panel-content {
        width: 100%;
        max-width: 500px;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav li {
        margin: 0 5px;
    }
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    .hero-content h2 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-description {
        font-size: 1rem;
    }

    /* Cards */
    .mission-grid, .pledge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    .chronicles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-auto-rows: minmax(200px, auto);
    }
    .chronicle-tile.large .tile-image { height: 280px; }
    .chronicle-tile.medium .tile-image { height: 220px; }
    .chronicle-tile.small .tile-image { height: 160px; }

    .hotspot-card {
        width: 90vw;
        max-width: 400px;
        padding: var(--spacing-sm);
    }
    .hotspot-card h3 {
        font-size: 1.3rem;
    }
    .hotspot-card p {
        font-size: 0.85rem;
    }
    .carousel-panel .panel-image {
        height: 250px;
    }
    .connect-collective h3, .pledge-wall h3 {
        font-size: 1.8rem;
    }
    .connect-collective p, .pledge-wall p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content .subtitle {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .section-description {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Cards stack to 1 column */
    .mission-grid, .pledge-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .chronicles-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .chronicle-tile.large .tile-image,
    .chronicle-tile.medium .tile-image,
    .chronicle-tile.small .tile-image {
        height: 200px;
    }

    .filter-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin: 0 5px 10px;
    }

    .carousel-panel {
        padding: var(--spacing-md);
    }
    .carousel-panel .panel-image {
        height: 200px;
    }
    .carousel-panel h3 {
        font-size: 1.5rem;
    }
    .carousel-panel p {
        font-size: 0.9rem;
    }
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .connect-collective, .pledge-wall {
        padding: var(--spacing-md);
    }
    .connect-collective h3, .pledge-wall h3 {
        font-size: 1.5rem;
    }
    .connect-collective p, .pledge-wall p {
        font-size: 0.85rem;
    }
}
/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
