/* ========================================
   St. Louis Coffee World — Editorial Style
   Forest Green + Off-White Palette
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --forest-green: #1a3c2f;
    --forest-green-light: #2d5a43;
    --forest-green-dark: #0f2419;
    --off-white: #f8f5f0;
    --cream: #efe8dd;
    --warm-gray: #6b6560;
    --dark-text: #1a1a18;
    --accent-gold: #c8a96e;
    --accent-gold-light: #d4b87a;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--off-white);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.section-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--forest-green);
    margin-bottom: var(--space-md);
}

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

.btn-primary {
    background-color: var(--forest-green);
    color: var(--off-white);
    border-color: var(--forest-green);
}

.btn-primary:hover {
    background-color: var(--forest-green-light);
    border-color: var(--forest-green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 60, 47, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--forest-green);
    border-color: var(--forest-green);
}

.btn-secondary:hover {
    background-color: var(--forest-green);
    color: var(--off-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 245, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 60, 47, 0.1);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(26, 60, 47, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--forest-green);
}

.logo-icon {
    color: var(--forest-green);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-text);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--forest-green);
}

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

.nav-cta {
    background-color: var(--forest-green);
    color: var(--off-white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--forest-green-light);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest-green);
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, rgba(26, 60, 47, 0.03) 0%, rgba(200, 169, 110, 0.05) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: var(--space-md);
}

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

.hero-headline {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--forest-green);
    margin-bottom: var(--space-md);
    line-height: 1.0;
}

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

.hero-subhead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(26, 60, 47, 0.2);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    color: var(--accent-gold);
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

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

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--cream);
    pointer-events: none;
}

/* --- About Section --- */
.about {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

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

.about-content {
    padding-right: var(--space-md);
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(26, 60, 47, 0.15);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--forest-green);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.about-image {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.image-grid img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(26, 60, 47, 0.12);
}

.image-grid img:first-child {
    margin-bottom: var(--space-sm);
}

/* --- Products Section --- */
.products {
    padding: var(--space-2xl) 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(26, 60, 47, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(26, 60, 47, 0.12);
    border-color: transparent;
}

.product-icon {
    color: var(--forest-green);
    margin-bottom: var(--space-md);
}

.product-card h3 {
    font-size: 1.375rem;
    color: var(--forest-green);
    margin-bottom: var(--space-sm);
}

.product-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* --- Experience Section --- */
.experience {
    padding: var(--space-2xl) 0;
    background: var(--forest-green);
    color: var(--off-white);
}

.experience-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.experience .section-headline {
    color: var(--off-white);
}

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

.experience-item {
    padding: var(--space-md);
    border: 1px solid rgba(248, 245, 240, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.experience-item:hover {
    background: rgba(248, 245, 240, 0.05);
    border-color: rgba(248, 245, 240, 0.3);
    transform: translateY(-4px);
}

.experience-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.experience-item h3 {
    font-size: 1.25rem;
    color: var(--off-white);
    margin-bottom: var(--space-sm);
}

.experience-item p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(248, 245, 240, 0.7);
}

/* --- Visit Section --- */
.visit {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

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

.visit-info {
    padding-right: var(--space-md);
}

.contact-details {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-item svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--forest-green);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--forest-green);
    text-decoration: underline;
}

/* --- Contact Form --- */
.visit-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 16px 48px rgba(26, 60, 47, 0.08);
}

.visit-form-wrapper h3 {
    font-size: 1.75rem;
    color: var(--forest-green);
    margin-bottom: var(--space-md);
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 2px solid rgba(26, 60, 47, 0.12);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    color: var(--dark-text);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 60, 47, 0.08);
}

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

.form-success {
    display: none;
    margin-top: var(--space-sm);
    padding: 1rem;
    background: rgba(26, 60, 47, 0.08);
    border-radius: var(--radius-sm);
    color: var(--forest-green);
    font-weight: 500;
    text-align: center;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
    background: var(--forest-green-dark);
    color: var(--off-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    color: var(--off-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(248, 245, 240, 0.6);
    max-width: 320px;
}

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(248, 245, 240, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--off-white);
}

.footer-hours p {
    font-size: 0.9375rem;
    color: rgba(248, 245, 240, 0.7);
    line-height: 1.8;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(248, 245, 240, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(248, 245, 240, 0.5);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid,
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-headline {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--off-white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        padding: var(--space-lg);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right var(--transition);
        z-index: 999;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-height: 50vh;
    }
    
    .hero-subhead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-container,
    .visit-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .products-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-pattern {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .section-headline {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
