/* ============================================
   The Caffeine Buddha — Stylesheet
   Classic & Elegant · Teal + Slate Grey
   ============================================ */

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

:root {
    /* Palette */
    --teal-900: #0a3d4a;
    --teal-800: #0f4c5c;
    --teal-700: #146173;
    --teal-600: #1a7a91;
    --teal-500: #2196b4;
    --teal-100: #d0ecef5;
    --teal-50:  #eaf6f8;
    
    --slate-950: #0b1115;
    --slate-900: #131d24;
    --slate-800: #1e2d38;
    --slate-700: #2c3e50;
    --slate-600: #4a6274;
    --slate-500: #6b8a9e;
    --slate-400: #94b3c5;
    --slate-300: #b8d0dc;
    --slate-200: #d4e4eb;
    --slate-100: #eaf2f6;
    --slate-50:  #f4f8fa;
    
    --cream:    #faf8f5;
    --warm-white: #fdfcfa;
    --gold:     #c9a96e;
    --gold-light: #e8d5a8;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: var(--slate-800);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-500);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--teal-800);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-md);
    color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--teal-800);
    color: #fff;
    border-color: var(--teal-800);
}

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 76, 92, 0.3);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background: #fff;
    color: var(--teal-800);
    border-color: #fff;
}

.btn--nav {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
}

.btn--full {
    width: 100%;
}

.btn--map {
    margin-top: var(--space-lg);
    font-size: 0.8125rem;
    padding: 0.75rem 1.75rem;
}

/* ---------- Section Shared ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 2px 20px rgba(11, 17, 21, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--slate-900);
}

.logo-icon {
    color: var(--teal-700);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.logo--light .logo-text {
    color: #fff;
}

.logo--light .logo-icon {
    color: var(--gold-light);
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-800);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--slate-800);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-700);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal-600);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--teal-700);
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 61, 74, 0.88) 0%,
        rgba(19, 29, 36, 0.82) 50%,
        rgba(11, 17, 21, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 860px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-xl);
}

.hero-title .accent {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: var(--slate-300);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--slate-400);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background: var(--warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(11, 17, 21, 0.12);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content .section-title {
    margin-bottom: var(--space-xl);
}

.about-content p {
    color: var(--slate-600);
    margin-bottom: var(--space-lg);
    font-size: 1.0rem;
    line-height: 1.85;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--slate-200);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-800);
}

.value-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border-radius: 50%;
    color: var(--teal-700);
    flex-shrink: 0;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 17, 21, 0.06);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(11, 17, 21, 0.12);
}

.product-image {
    overflow: hidden;
    height: 240px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-body {
    padding: var(--space-xl);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: var(--space-sm);
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.75;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--warm-white);
}

.gallery .section-header {
    margin-bottom: var(--space-3xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 5 / 4;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: var(--space-4xl) 0;
    background: var(--teal-900);
    color: #fff;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit .section-eyebrow {
    color: var(--gold);
}

.visit .section-title {
    color: #fff;
    margin-bottom: var(--space-lg);
}

.visit-intro {
    color: var(--slate-300);
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: var(--space-2xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.detail-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gold-light);
}

.detail-label svg {
    flex-shrink: 0;
}

.detail-item dd {
    color: var(--slate-300);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    padding-left: calc(16px + var(--space-md));
}

.detail-item dd a {
    color: var(--slate-300);
}

.detail-item dd a:hover {
    color: #fff;
}

/* Map Placeholder */
.map-placeholder {
    background: var(--slate-800);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    border: 1px solid var(--slate-700);
}

.map-placeholder svg {
    color: var(--teal-500);
    margin: 0 auto var(--space-lg);
}

.map-placeholder p {
    color: var(--slate-300);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-text .section-title {
    margin-bottom: var(--space-lg);
}

.contact-text p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    line-height: 1.85;
}

/* Form */
.contact-form {
    background: #fff;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(11, 17, 21, 0.08);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-700);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-600);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 180, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--slate-500);
    margin-top: var(--space-md);
}

/* Success State */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl);
    background: var(--teal-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--teal-100);
    gap: var(--space-md);
}

.form-success svg {
    color: var(--teal-600);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--slate-900);
}

.form-success p {
    color: var(--slate-600);
    font-size: 0.9375rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--slate-800);
}

.footer-tagline {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--slate-500);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--slate-500);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-contact address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.footer-contact p {
    margin: 0;
}

.footer-contact a {
    color: var(--slate-400);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.8125rem;
    color: var(--slate-600);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image {
        max-height: 480px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    /* Mobile Nav */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--warm-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: -10px 0 40px rgba(11, 17, 21, 0.15);
        transition: right var(--transition);
        z-index: 100;
    }
    
    .nav-menu.is-open {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
    
    .btn--nav {
        display: none;
    }
    
    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-scroll {
        animation: none;
    }
    
    .product-card:hover,
    .about-image:hover img,
    .gallery-item:hover img {
        transform: none;
    }
}

/* ---------- Focus Visible ---------- */
:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 2px;
}
