/* Global Variables & Theme */
:root {
    --color-primary: #1a1a1a;
    /* Rich Black */
    --color-secondary: #f4f1ea;
    /* Cream/Off-White */
    --color-accent: #c29e75;
    /* Roasted Bean Gold */
    --color-text: #333333;
    --color-light-gray: #f9f9f9;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-container: 1200px;
    --spacing-padding: 2rem;

    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-secondary);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-padding);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Navigation - To be loaded dynamically, but styled here */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: 0.3s;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    opacity: 0.7;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness & ADA Compliance --- */

/* ADA: Darken accent color for better contrast against light backgrounds (aiming for 4.5:1) */
:root {
    --color-accent: #8c6b4a;
    /* Darkened from #c29e75 */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --spacing-padding: 1.25rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero-title {
        font-size: 3.5rem !important;
    }

    /* Navigation Stack */
    .menu-toggle {
        display: flex;
        /* Show hamburger on mobile */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--color-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    /* Footer Stack */
    .footer-content {
        gap: 2rem;
        text-align: center;
    }

    /* Hero Logo sizing on mobile */
    .hero-logo {
        width: 60vh !important;
        opacity: 0.05 !important;
        /* Slightly more subtle on small screens */
    }

    /* Stack split contents on mobile */
    .split-flex {
        flex-direction: column-reverse !important;
        /* Text on top usually preferred for SEO/UX if implied order */
        gap: 2rem !important;
    }

    .split-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- Wow Factors --- */

/* Lenis Smooth Scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(194, 158, 117, 0.2);
    border-color: transparent;
}

@media (max-width: 768px) {
    .cursor {
        display: none;
    }

    /* No custom cursor on mobile */
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.preloader-logo {
    width: 100px;
    opacity: 0;
}

.preloader-line {
    width: 0%;
    background-color: var(--color-primary);
    margin-top: 20px;
}

/* --- Page Transition (Coffee Cup) --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: 10001;
    transform: translateY(100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS Coffee Cup (Restored & Enhanced) */
.cup-container {
    position: relative;
    width: 140px;
    height: 160px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

.cup-body {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0 0 70px 70px;
    position: relative;
    overflow: hidden;
    box-shadow: inset -15px 0 25px rgba(0, 0, 0, 0.05);
    /* Ceramic shading */
}

.cup-handle {
    position: absolute;
    top: 25px;
    right: -40px;
    width: 40px;
    height: 75px;
    border: 10px solid #fff;
    border-left: none;
    border-radius: 0 25px 25px 0;
    z-index: -1;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.05);
}

.cup-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to right, #2a1a12, #4a3b32, #2a1a12);
    /* Richer dark roast gradient */
    transition: none;
}

.cup-fill::after {
    /* Liquid surface reflection */
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.smoke {
    position: absolute;
    top: -60px;
    left: 50%;
    width: 18px;
    /* Slightly wider */
    height: 50px;
    /* Taller */
    background: linear-gradient(to top, rgba(220, 220, 220, 0.8), transparent);
    /* Higher opacity start */
    border-radius: 20px;
    filter: blur(10px);
    opacity: 0;
    transform: translateX(-50%);
}