:root {
    --bg-color: #0c0d0b;
    /* Dark coffee bean base */
    --surface-color: #1a1c18;
    --primary: #516843;
    /* Sage Green from Logo/Chairs */
    --accent: #EAB026;
    /* Amber/Honey */
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border: #2a2d26;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Texture Overlay — CSS grain, no external dependency (UI-PLAN-1.1) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 1000;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(12, 13, 11, 0.92);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
    opacity: 0.85;
}

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

.nav-links a:hover {
    opacity: 1;
    color: var(--text-main);
}

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

/* Nav CTA button */
.nav-cta {
    padding: 0.55rem 1.4rem !important;
    border: 1px solid var(--primary) !important;
    border-radius: 3px;
    color: var(--primary) !important;
    font-family: var(--font-sans) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    opacity: 1 !important;
    transition: var(--transition);
}

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

.nav-cta:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent);
    color: #000;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-image: linear-gradient(to bottom, rgba(12, 13, 11, 0.7), rgba(12, 13, 11, 0.9)), url('../img/exterior.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary);
    font-style: italic;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Menu Section */
.menu {
    padding: 8rem 0;
    background: var(--surface-color);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
}

.menu-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-grid.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

.product-card {
    background: var(--bg-color);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.2rem;
}

/* ProductCard featured variant (UI-PLAN-1.3) */
.product-card.featured {
    border-left: 3px solid var(--primary);
}

.product-card.featured img {
    aspect-ratio: 16/9;
}

/* Scroll-reveal animation (UI-ITEM-1.2) */
.gallery-item,
.product-card,
.contact-info,
.contact-photo {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.revealed,
.product-card.revealed,
.contact-info.revealed,
.contact-photo.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact-photo.revealed {
    transition-delay: 0.1s;
}

.contact-info.revealed {
    transition-delay: 0.2s;
}

/* Contact Section — split layout (photo | info) */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.contact-photo {
    overflow: hidden;
    position: relative;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.contact-photo:hover img {
    transform: scale(1.03);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem 3rem 5rem;
    background: var(--surface-color);
    border-left: 1px solid var(--border);
}

.contact-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.contact-title span {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-details svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-ig {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    width: fit-content;
    transition: var(--transition);
}

.contact-ig svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.contact-ig:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vs-credit {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.vs-logo {
    width: 140px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.vs-credit:hover .vs-logo {
    opacity: 1;
    filter: brightness(1.2);
}

.footer-left p {
    margin: 0;
}

/* Location Badge — UX-NEW-1.1 */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(81, 104, 67, 0.15);
    border: 1px solid rgba(81, 104, 67, 0.4);
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.location-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery */
.gallery {
    padding: 8rem 0;
    background: var(--bg-color);
}

.gallery-grid {
    columns: 4 300px;
    column-gap: 1.5rem;
}

.gallery-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

/* Instagram Float */
.instagram-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.instagram-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: #000;
}

.instagram-float svg {
    width: 30px;
    height: 30px;
}

/* Centered Contact Info */
.contact-wrapper.centered {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.instagram-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.instagram-link:hover {
    border-color: var(--primary);
}

/* Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mb-2 {
    margin-bottom: 2rem;
}

.w-full {
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

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

    .gallery-grid {
        columns: 2 200px;
    }

    /* Contact Section Mobile Fixes */
    .contact-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-photo {
        height: 40vh;
        border-bottom: 1px solid var(--border);
    }

    .contact-info {
        justify-content: flex-start;
        padding: 4rem 1.5rem 4rem 1.5rem;
        border-left: none;
    }

    .contact-title {
        font-size: 2.1rem;
        margin-bottom: 2rem;
    }

    .instagram-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .instagram-float svg {
        width: 25px;
        height: 25px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 2rem;
    }

    .footer-right {
        flex-direction: column;
        gap: 0.5rem;
    }
}