:root {
    --primary-blue: #2F5D8C; /* 1. Primary Blue */
    --secondary-blue: #5E8FBF; /* 2. Secondary Blue */
    --light-blue: #DCEAF7; /* 3. Light Blue */
    --pale-bg: #F4F8FD; /* 4. Pale Background */
    --accent-blue: #89B6E6; /* 5. Accent Blue */
    --white: #FFFFFF; /* 6. White */
    --dark-text: #1A2A3A; /* 7. Dark Text */
    --muted-text: #374151; /* 8. Muted Text */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* No color */
    --shadow-sm: 0 4px 12px rgba(26, 42, 58, 0.05);
    --shadow-lg: 0 20px 40px rgba(26, 42, 58, 0.12);
    --coffee-bean-color: #8B6914;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Fix for SVG attribute errors and layout */
svg {
    max-height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--pale-bg);
    color: var(--dark-text); /* 7. Dark Text */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

p {
    color: var(--muted-text); /* 8. Muted Text */
}

/* REVEAL SYSTEM */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue); /* 1. Primary Blue */
    color: var(--white); /* 6. White */
    box-shadow: 0 4px 14px rgba(47, 93, 140, 0.25); /* 1. Primary Blue (opacity) */
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 93, 140, 0.35); /* 1. Primary Blue (opacity) */
}

.btn-outline {
    border: 2px solid var(--primary-blue); /* 1. Primary Blue */
    color: var(--primary-blue); /* 1. Primary Blue */
}

.btn-outline:hover {
    background: var(--primary-blue); /* 1. Primary Blue */
    color: var(--white); /* 6. White */
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 5%; /* 6. White (opacity) */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* 7. Dark Text (opacity) */
}

.logo {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none; /* 1. Primary Blue */
    letter-spacing: 0.1em;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: clamp(15px, 3vw, 40px);
}

.nav-links a {
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* 7. Dark Text */
    color: var(--dark-text);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
} /* 1. Primary Blue */

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
}

#progress-bar {
    height: 100%;
    background: var(--primary-blue); /* 1. Primary Blue */
    width: 0%;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 10% 60px;
    position: relative;
    background-image: url('../images/hero.png'); /* No direct color */
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute; /* 4. Pale Background (opacity) */
    inset: 0;
    background: var(--pale-bg);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8); /* 6. White (opacity) */
    backdrop-filter: blur(12px);
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 680px;
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-blue); /* 1. Primary Blue */
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 100px);
    color: var(--primary-blue); /* 1. Primary Blue */
    line-height: 0.9;
    margin-bottom: 20px;
}

.tagline {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    margin-bottom: 20px;
}

.hero-p {
    font-size: 18px;
    max-width: 480px;
    margin-bottom: 40px; /* 7. Dark Text */
    color: var(--dark-text);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Hero SVG Illustration */
.hero-svg-container svg {
    position: relative;
    z-index: 1;
    display: block;
    animation: float 4s ease-in-out infinite;
}

.hero-logo-img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
}

.steam {
    animation: steam-rise 2.5s infinite;
    opacity: 0;
}
.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 0.8s; }
.steam-3 { animation-delay: 1.6s; }

@keyframes steam-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-40px) scale(1.5); opacity: 0; }
}

/* JOURNEY SECTION */
.journey-section {
    height: 500vh;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 80px; /* Offset for the fixed navbar */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scene-stage {
    height: 400px;
    width: 100%;
    position: relative;
    margin: 40px 0;
}

.scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.scene.active {
    opacity: 1;
    pointer-events: all;
}

.dot-indicators {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.dot {
    width: 10px; /* 3. Light Blue */
    height: 10px; /* 3. Light Blue */
    border-radius: 50%; /* 3. Light Blue */
    background: var(--light-blue); /* 3. Light Blue */
    transition: var(--transition);
} 

.dot.active {
    background: var(--primary-blue); /* 1. Primary Blue */
    transform: scale(1.3);
}

.track-area {
    width: 80%;
    max-width: 800px;
    height: 60px;
    position: relative;
    margin-top: 50px;
}

.track-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px; /* 3. Light Blue */
    background: var(--light-blue); /* 3. Light Blue */
    transform: translateY(-50%);
}

#track-fill {
    height: 100%;
    background: var(--primary-blue); /* 1. Primary Blue */
    width: 0%;
}

#moving-cart {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    transition: left 0.4s ease-in-out, top 0.4s ease-in-out;
}

.cart-bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -70%); }
}

/* ABOUT SECTION IMAGE SCALING */
.about-image-container {
    max-width: 440px;
    width: 100%;
    justify-self: end;
}

.about-logo-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

/* CARDS & GRIDS */
.section-padding {
    padding: 100px 10%;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 5%;
    }
}

.card-grid {
    display: grid; /* No color */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(47, 93, 140, 0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* BOOK NOOK - DARK */
.book-nook {
    background: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.book-nook::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--white) 1.5px, transparent 1.5px); /* 6. White (opacity) */
    background-size: 30px 30px;
    opacity: 0.05;
}

/* TESTIMONIALS - GLASS */
.testimonials {
    background: linear-gradient(rgba(47, 93, 140, 0.9), rgba(47, 93, 140, 0.9)), 
                url('https://images.unsplash.com/photo-1554118811-1e0d58224f24'); /* 1. Primary Blue (opacity) */
    background-size: cover;
}

.glass-card {
    background: rgba(255, 255, 255, 0.2); /* 6. White (opacity) */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 6. White (opacity) */
    color: var(--white); /* 6. White */
    padding: 40px; /* 6. White */
    border-radius: 30px; /* 6. White */
}
.glass-card p, .testimonials p, .book-nook p, footer p {
    color: var(--white) !important; /* Text color is white */
}

/* FORM */
.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white); /* 6. White */
    padding: 48px; /* 6. White */
    border-radius: 30px; /* 6. White */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 7. Dark Text (opacity) */
    border: 1.5px solid #DDE6F0; /* 9. Form Border */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width { grid-column: span 2; }

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600; /* 7. Dark Text (default) */
    font-size: 14px; /* 7. Dark Text (default) */
}

input, select, textarea {
    background: #F8FBFE; /* 10. Form Input Background */
    border: 1.5px solid #DDE6F0; /* 9. Form Border */
    padding: 12px 16px; /* 10. Form Input Background */
    border-radius: 8px; /* 10. Form Input Background */
    font-family: var(--font-sans);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue); /* 1. Primary Blue */
    box-shadow: 0 0 0 3px rgba(47, 93, 140, 0.1); /* 1. Primary Blue (opacity) */
}
.error-msg {
    color: #e74c3c; /* 11. Error Red */
    font-size: 12px;
    display: none;
}

.invalid input { border-color: #e74c3c; }
.invalid .error-msg { display: block; } /* 11. Error Red */

/* FOOTER */
footer {
    background: var(--primary-blue); /* 1. Primary Blue */
    color: var(--white); /* 6. White */
    padding: 64px 10% 20px; /* 1. Primary Blue */
}
.footer-grid {
    display: grid; /* No color */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.social-btn {
    width: 44px; /* 6. White (opacity) */
    height: 44px; /* 6. White (opacity) */
    background: rgba(255,255,255,0.1); /* 6. White (opacity) */
    border-radius: 50%; /* 6. White (opacity) */
    display: inline-flex;
    align-items: center; /* 6. White */
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
}

.social-btn:hover { background: rgba(255,255,255,0.2); } /* 6. White (opacity) */

/* MOBILE */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px; /* 1. Primary Blue */
    background: var(--primary-blue); /* 1. Primary Blue */
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    nav, nav.scrolled {
        padding: 15px 20px;
    }

    .logo {
        font-size: 22px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-cta {
        display: inline-block;
        padding: 8px 16px;
        font-size: 11px;
        margin-left: auto;
        margin-right: 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; /* 6. White */
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .nav-links.active { display: flex; }

    .hamburger { display: block; }
    
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 120px 20px 60px;
    }
    .hero-content { 
        display: flex; flex-direction: column; align-items: center; 
        padding: 30px 20px;
        width: calc(100vw - 40px);
        max-width: 100%;
    }
    .hero-svg-container { display: none; }

    /* Mobile Vertical Journey */
    .journey-section { height: 500vh; }
    .sticky-container { position: sticky; top: 80px; height: calc(100vh - 80px); }
    
    .track-area {
        display: block;
        width: 4px;
        height: 70vh;
        position: absolute;
        left: 40px; 
        top: 50%;
        transform: translateY(-50%);
    }
    .track-line { width: 100%; height: 100%; top: 0; left: 0; transform: none; }
    #track-fill { width: 100%; height: 0%; }
    #moving-cart { left: 50% !important; top: 0%; }

    .scene {
        padding: 0 5% 0 80px;
        text-align: left;
        align-items: flex-start;
        justify-content: center;
    }

    .about-image-container {
        max-width: 100%;
        justify-self: center;
    }

    .about-logo-badge {
        width: 80px;
        top: -10px;
        left: -10px;
        padding: 8px;
    }

    .dot-indicators { display: none; }

    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }

    .footer-logo {
        max-width: 150px;
        margin: 0 auto 16px;
    }

    /* Booking form responsive fixes */
    .booking-form-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 32px 20px;
    }

    input, select, textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Contact sidebar responsive fixes */
    .reveal.stagger-2 {
        width: 100%;
        overflow-x: hidden;
    }

    .reveal.stagger-2 .card {
        padding: 24px;
    }

    .reveal.stagger-2 a {
        flex-wrap: wrap;
    }
}

/* SUCCESS STATE */
#form-success {
    display: none;
    text-align: center;
    padding: 40px;
}
#form-success svg { width: 64px; height: 64px; margin-bottom: 20px; }

/* --- COLOR CHART & MARKER SYSTEM --- */

.color-chart-details {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.color-chart-summary {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-chart-summary svg {
    transition: transform 0.3s ease;
}

details[open] .color-chart-summary svg {
    transform: rotate(180deg);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.color-item {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* This fix ensures text is readable on dark backgrounds in the chart */
.color-item p {
    color: inherit; 
    margin: 0;
}

.color-item .color-name { font-weight: 600; margin-bottom: 5px; font-size: 16px; }
.color-item .color-hex { font-size: 14px; opacity: 0.8; }


/* Coming Soon Specifics */
.coming-soon-screen {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--pale-bg);
}

.auth-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-form-mini {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}