/* =========================================================
   ELSPORA BRAND DESIGN SYSTEM & GLOBAL STYLES
   Location: assets/css/styles.css
   ========================================================= */

:root {
    /* Color Palette Tokens */
    --elspora-mythic-purple: #4C2A57;
    --elspora-heather: #7B4C6E;
    --elspora-ember: #C7443E;
    --elspora-sunset: #F07A3C;
    --elspora-moss: #516B4C;
    --elspora-seafoam: #6FB6B2;
    --elspora-sky: #8EC4E6;
    --elspora-fog: #C7CAD1;
    --elspora-dusk: #2E2A44;
    --elspora-cream: #F7F2EA;
    --elspora-white: #ffffff;
    --elspora-plum: #2c241d;

    /* Theme Mappings */
    --bg-color: var(--elspora-cream);
    --surface-color: #ede5d8;
    --surface-light: #e5dccb;
    --text-main: var(--elspora-dusk);
    --text-muted: #5c4f43;
    --accent-gold: #b38b2a;
    --accent-gold-hover: #947120;
    --border-color: rgba(179, 139, 42, 0.3);
    
    /* Typography */
    --font-heading: 'Cinzel Decorative', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--elspora-cream);
    color: var(--elspora-dusk);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Overrides */
.text-white {
    color: var(--elspora-white) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

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

h1, h2, h3, h4, h5, h6, 
.elspora-footer-wordmark, 
.elspora-eyebrow,
.elspora-button {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Shell Layouts */
.elspora-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.elspora-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Navigation */
.elspora-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(247, 243, 236, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.elspora-nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.elspora-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.elspora-logo-image {
    width: 1000px;
    height: 300px;
    max-width: 180px;
    max-height: 54px;
    object-fit: contain;
    display: block;
}

.elspora-hero-logo-image {
    width: 1000px;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

.elspora-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.elspora-primary-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.elspora-primary-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.elspora-primary-nav a:hover {
    color: var(--accent-gold);
}

.elspora-nav-cta {
    background: var(--accent-gold);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.elspora-nav-cta:hover {
    background: var(--accent-gold-hover);
}


/* =========================================================
   COOKIE CONSENT BANNER STYLES
   ========================================================= */
.elspora-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 2px solid var(--accent-gold);
    box-shadow: 0 -10px 30px rgba(46, 42, 68, 0.15);
    z-index: 9999;
    padding: 1.5rem 2rem;
}

.elspora-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.elspora-cookie-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.elspora-cookie-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5px;
}

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

.elspora-cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .elspora-cookie-banner {
        padding: 1rem;
    }
    .elspora-cookie-buttons {
        flex-direction: column;
    }
    .elspora-cookie-buttons button {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   07. GROWING WORLD (3-COLUMN DESTINATION CARDS)
   ========================================================= */

/* 3-Column Grid Container */
.elspora-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Card Container with Rounded Corners & Shadow */
.elspora-growing-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Height for Destination Banner Images */
.elspora-growing-card-image {
    position: relative;
    width: 100%;
    height: 280px; /* Adjust height up/down to scale vertical size */
}

.elspora-growing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills container cleanly without distortion */
    display: block;
    transition: transform 0.5s ease;
}

/* Dark Gradient Overlay for Legibility */
.elspora-growing-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(20, 20, 30, 0.82) 0%, 
        rgba(0, 0, 0, 0.25) 50%, 
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    text-align: left;
}

/* Country Title Floating Text */
.elspora-growing-card-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.elspora-growing-card-overlay p {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0.25rem 0 0 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Hover Effects */
.elspora-growing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.elspora-growing-card:hover img {
    transform: scale(1.05);
}

/* Mobile Responsive Fallback */
@media (max-width: 900px) {
    .elspora-three-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .elspora-growing-card-image {
        height: 220px;
    }
}

/* =========================================================
   HERO SECTION (Mobile-Optimized)
   ========================================================= */

.elspora-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 7rem 1.5rem 4rem 1.5rem; /* Ensures space below fixed header */
    background: transparent;
    min-height: 80vh;
}

.elspora-hero-art {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
}

.elspora-hero-art img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.elspora-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.elspora-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

/* Mobile Specific Overrides */
@media (max-width: 768px) {
    .elspora-hero {
        padding-top: 8rem; /* Pushes content safely below mobile header */
        min-height: auto;
        padding-bottom: 3rem;
    }

    .elspora-hero h1 {
        font-size: 2.25rem; /* Scales heading down cleanly for phones */
    }

    .elspora-hero-intro, 
    .elspora-large-copy {
        font-size: 1.1rem; /* Prevents body text from looking too bulky */
    }
}

/* =========================================================
   SECTION: WHAT IS ELSPORA?
   ========================================================= */

#what-is-elspora {
    padding: 3rem 0;
}

#what-is-elspora .elspora-eyebrow {
    margin-bottom: 0.5rem;
}

#what-is-elspora h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

#what-is-elspora .elspora-large-copy {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* =========================================================
   SECTION: EXPLORE SCOTLAND
   ========================================================= */

.section-scotland {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
    background-color: var(--elspora-moss);
    color: var(--elspora-cream);
}

.elspora-scotland-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.elspora-scotland-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    display: block;
}

.elspora-scotland-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.elspora-scotland-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.section-scotland h2, 
.section-scotland .elspora-large-copy {
    color: var(--elspora-cream);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.section-scotland h2 {
    font-size: 2.75rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.section-scotland p {
    color: #e3ebd2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}



/* =========================================================
   INTERACTIVE GLOBE & DESTINATION HOTSPOTS
   ========================================================= */

/* Stage Container & Stacking Context */
.elspora-globe-stage {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: visible; /* Prevents tooltips near edges from clipping */
    z-index: 1;
}

/* Base Globe Image */
.globe-base-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0.9) contrast(1.05);
    position: relative;
    z-index: 1; /* Sits on layer 1 */
}

/* Common Marker Base */
.elspora-marker {
    position: absolute;
    z-index: 10; /* Forces all pins and cards above the globe image */
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- HOTSPOT POSITIONS --- */

/* 1. Scotland Marker Positioning */
.cloud-scotland { 
    top: 25%; 
    left: 46%; 
}

/* Positions the Scotland card to the LEFT of the pulsing pin */
.cloud-scotland .marker-card {
    position: absolute;
    right: 24px; /* Attaches card's right edge next to the pin */
    top: -12px;
    min-width: 170px;
    text-align: right; /* Right-aligns text toward the pin */
}

/* Attaches the pulsing beacon dot on the right side of the Scotland card */
.cloud-scotland .marker-pulse {
    position: absolute;
    top: 8px;
    right: 0;
    left: auto;
}

/* 2. Locked Greece & Japan Positions */
.cloud-greece { 
    top: 35%; 
    left: 52%; 
}

.cloud-japan { 
    top: 50%; 
    right: 10%; 
}

/* Card Tooltip Base Styling */
.marker-card {
    background: rgba(247, 243, 236, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    text-align: left;
}

.marker-card strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
}

/* Status Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.25rem;
}

.badge-unlocked {
    background: var(--elspora-mythic-purple);
    color: var(--elspora-cream);
}

.badge-locked {
    background: var(--surface-light);
    color: var(--text-muted);
}

/* --- ACTIVE STATE (Scotland) --- */
.marker-active:hover {
    transform: translateY(-6px) scale(1.05);
}

.marker-active .marker-card {
    border-color: var(--accent-gold);
}

/* Glowing Pulsing Beacon */
.marker-pulse {
    position: absolute;
    top: -3px;
    left: -8px;
    width: 16px;
    height: 16px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    z-index: -1;
}

.marker-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    animation: mapPulse 2s infinite ease-out;
}

@keyframes mapPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* --- LOCKED STATE (Greece / Japan) --- */
.marker-locked {
    opacity: 0.65;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

.marker-locked:hover {
    opacity: 0.85;
    filter: grayscale(0.2);
}








/* =========================================================
   BUTTONS & COMMON SECTIONS
   ========================================================= */

.elspora-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.elspora-button-primary, .btn-primary {
    background: var(--elspora-mythic-purple);
    color: var(--elspora-cream);
    font-weight: 700;
}

.elspora-button-primary:hover, .btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.elspora-button-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.elspora-button-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.elspora-button-light {
    background-color: var(--text-main);
    color: var(--bg-color);
    font-weight: 700;
}

.elspora-button-light:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.elspora-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(179, 139, 42, 0.1);
}

.elspora-section-paper {
    background-color: var(--surface-color);
}

.section-dark {
    background: var(--elspora-dusk);
    color: var(--elspora-cream);
}

.elspora-eyebrow {
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.elspora-section h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.25;
}

.elspora-large-copy {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.elspora-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Layout Grids */
.elspora-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.elspora-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.elspora-four-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.elspora-grid-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.elspora-grid-card img {
    width: 300px;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.elspora-grid-card:hover img {
    transform: translateY(-4px);
}

.elspora-grid-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Globe Stage */
.elspora-globe-stage {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.elspora-globe-stage img {
    width: 1000px;
    height: 1000px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0.9);
    position: relative;
    z-index: 1;
}

.elspora-destination-cloud {
    position: absolute;
    background: rgba(247, 243, 236, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    max-width: 250px;
    z-index: 10;
}

.elspora-cloud-greece {
    top: 30%;
    right: 20%;
}

.elspora-cloud-japan {
    top: 45%;
    right: 10%;
}

/* Accordion */
.elspora-accordion {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.elspora-accordion-item {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.elspora-accordion-button {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elspora-accordion-button:hover {
    color: var(--accent-gold);
}

.elspora-accordion-panel {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
}

/* Join Section */
.elspora-join-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.elspora-join-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.elspora-join-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    display: block;
}

.elspora-join-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.elspora-join-content {
    position: relative;
    z-index: 2;
}

.elspora-signup-form {
    max-width: 600px;
    margin: 2.5rem auto 1.5rem auto;
    text-align: left;
}

.elspora-signup-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.elspora-signup-row {
    display: flex;
    gap: 1rem;
}

.elspora-signup-row input {
    flex: 1;
    background-color: var(--surface-color) !important;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.9rem 1.2rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
}

.elspora-signup-row input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.elspora-signup-row input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: var(--surface-light) !important;
}

.elspora-small-print {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.elspora-small-print a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Footer */
.elspora-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.elspora-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.elspora-footer-wordmark {
    font-size: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.elspora-footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .elspora-two-column {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .elspora-four-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .elspora-three-grid {
        grid-template-columns: 1fr;
    }
    .elspora-hero h1 {
        font-size: 2.75rem;
    }
    .elspora-section h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .elspora-primary-nav {
        display: none;
    }
    .elspora-menu-toggle {
        display: block;
    }
    .elspora-four-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem 1.5rem;
    }
    .elspora-signup-row {
        flex-direction: column;
    }
    .elspora-footer-grid {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


/* =========================================================
   HEADER & MOBILE NAVIGATION FIXES
   ========================================================= */

@media (max-width: 768px) {
    /* Hide the primary nav by default on mobile devices */
    .elspora-primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--elspora-cream);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    /* When JavaScript adds the 'is-open' class, show the menu */
    .elspora-primary-nav.is-open {
        display: flex;
    }

    /* Ensure the toggle button is visible on mobile */
    .elspora-menu-toggle {
        display: block;
    }

    /* Make nav links stack neatly and fill width on mobile */
    .elspora-primary-nav a {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.50rem 0;
    }

    .elspora-nav-cta {
        text-align: center;
        width: 100%;
    }
}

/* Ensure proper visibility on larger screens (Desktop) */
@media (min-width: 769px) {
    .elspora-menu-toggle {
        display: none; /* Hide the menu button on desktop */
    }
    
    .elspora-primary-nav {
        display: flex !important; /* Force nav to display on desktop */
    }
}