/* ========================================
   D' Coffee Shop - Editorial Style
   Forest Green + Off-White Palette
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-forest: #14532d;
    --color-forest-light: #166534;
    --color-forest-dark: #052e16;
    --color-cream: #fafaf5;
    --color-cream-dark: #f0f0e8;
    --color-text: #1c1917;
    --color-text-light: #57534e;
    --color-white: #ffffff;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-forest);
    color: var(--color-white);
    border: 2px solid var(--color-forest);
}

.btn-primary:hover {
    background-color: var(--color-forest-dark);
    border-color: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 83, 45, 0.3);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

.btn-outline:hover {
    background-color: var(--color-forest);
    color: var(--color-white);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 83, 45, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-forest);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-forest);
}

.btn-nav {
    background-color: var(--color-forest);
    color: var(--color-white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
}

.btn-nav:hover {
    background-color: var(--color-forest-dark) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-forest);
    transition: all 0.3s ease;
    transform-origin: center;
}

.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);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2.5rem;
    color: var(--color-forest);
    line-height: 1;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-forest-dark) 0%,
        var(--color-forest) 40%,
        var(--color-forest-light) 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/4173317/pexels-photo-4173317.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-xl) var(--space-md);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.hero h1 .accent {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
}

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

.hero-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-white);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-forest);
    border-color: var(--color-white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--space-xl) 0;
    background-color: var(--color-cream);
}

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

.feature-card {
    padding: var(--space-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(20, 83, 45, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(20, 83, 45, 0.12);
    border-color: rgba(20, 83, 45, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-forest);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   Menu Section
   ======================================== */
.menu-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-cream-dark);
}

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

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-text);
}

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

.menu-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(20, 83, 45, 0.06);
}

.menu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(20, 83, 45, 0.15);
}

.menu-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover img {
    transform: scale(1.05);
}

.menu-item-content {
    padding: var(--space-md);
}

.menu-item-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.menu-item-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background-color: var(--color-forest);
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.menu-note p {
    font-size: 1rem;
    font-weight: 500;
}

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(20, 83, 45, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content .eyebrow {
    margin-bottom: var(--space-sm);
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(20, 83, 45, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

/* ========================================
   Location Section
   ======================================== */
.location-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-forest);
}

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

.location-info .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.location-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

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

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

.contact-item svg {
    color: var(--color-forest-light);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

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

.cta-box {
    padding: var(--space-md);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

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

.cta-box .btn-primary:hover {
    background-color: var(--color-cream);
    border-color: var(--color-cream);
}

/* Map Placeholder */
.location-map {
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    padding: var(--space-lg);
}

.map-content svg {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.map-content h3 {
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.map-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-lg) 0 var(--space-md);
    background-color: var(--color-forest-dark);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-brand h3 {
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid,
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: var(--space-md);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .features-grid,
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-stats {
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-content {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .menu-item img {
        height: 220px;
    }
}

/* 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;
    }
}
