/* ==========================================
   1. RESET
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

button, input, textarea {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ==========================================
   2. VARIABLES
   ========================================== */
:root {
    /* Color Palette */
    --bg-cream: #FAF6EE;
    --text-dark: #2B1D16;
    --text-muted: #5C4A42;
    --primary-brown: #8B5E3C;
    --primary-hover: #754F32;
    --accent-gold: #C5A880;
    --accent-gold-dark: #A68B63;
    --soft-beige: #F5EDE0;
    --border-color: #E6DCD0;
    --white: #FFFFFF;
    --white-transparent: rgba(255, 255, 255, 0.85);
    --header-bg: rgba(250, 246, 238, 0.95);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(43, 29, 22, 0.05);
    --shadow-md: 0 10px 20px rgba(43, 29, 22, 0.08);
    --shadow-lg: 0 20px 40px rgba(43, 29, 22, 0.12);
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================
   3. GLOBAL STYLES
   ========================================== */
section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.accent {
    color: var(--primary-brown);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold-dark);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 94, 60, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-brown);
    border: 1px solid var(--primary-brown);
}

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

.btn-block {
    display: width;
    width: 100%;
}

.no-scroll {
    overflow: hidden;
}

/* ==========================================
   4. CONTAINER
   ========================================== */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* ==========================================
   5. HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: var(--header-bg);
    height: 70px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-brown);
}

/* ==========================================
   6. NAVIGATION
   ========================================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-brown);
    transition: var(--transition-smooth);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-cta {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: var(--primary-brown);
    transform: translateY(-1px);
}

/* Hamburger toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-smooth);
    transform-origin: left;
}

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 29, 22, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

/* ==========================================
   7. HERO
   ========================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 3rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-brown);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

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

.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    background-color: var(--soft-beige);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background-color: var(--white);
    padding: 1.2rem 1.6rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 5px solid var(--primary-brown);
    animation: float 4s ease-in-out infinite;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-brown);
    line-height: 1.2;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==========================================
   8. ABOUT
   ========================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.about-experience-card {
    position: absolute;
    top: -25px;
    right: -25px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-experience-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.about-experience-card p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-content {
    padding-left: 1rem;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text:last-of-type {
    margin-bottom: 2.2rem;
}

/* ==========================================
   9. MENU
   ========================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.menu-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.menu-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.menu-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.menu-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--white-transparent);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
}

.menu-card-body {
    padding: 1.5rem;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.menu-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.menu-card-price {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-brown);
}

.menu-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   10. GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

/* Grid cell spanning to make layout dynamic and visually impressive */
.gallery-grid .gallery-item:nth-child(1) { grid-column: span 3; }
.gallery-grid .gallery-item:nth-child(2) { grid-column: span 3; }
.gallery-grid .gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: span 2; }

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(43, 29, 22, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ==========================================
   11. CONTACT
   ========================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    padding-right: 2rem;
}

.contact-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--soft-beige);
    color: var(--primary-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-detail-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.contact-form-wrapper {
    background-color: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A08C83;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-brown);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   12. FOOTER
   ========================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    color: var(--white);
}

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

.footer-description {
    color: #C0B4AE;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C0B4AE;
}

.footer-socials a:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
}

.footer-links h3,
.footer-newsletter h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: #C0B4AE;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-newsletter p {
    color: #C0B4AE;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.3rem;
    overflow: hidden;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.6rem 1.2rem;
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #8C7C75;
}

.newsletter-form button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background-color: var(--white);
}

.newsletter-form button svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #8C7C75;
    font-size: 0.85rem;
}

/* ==========================================
   13. RESPONSIVE DESIGN
   ========================================== */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    section {
        padding: 5rem 0;
    }

    .hero-container {
        gap: 2.5rem;
    }

    .about-container {
        gap: 3rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery-grid .gallery-item:nth-child(1) { grid-column: span 2; }
    .gallery-grid .gallery-item:nth-child(2) { grid-column: span 2; }
    .gallery-grid .gallery-item:nth-child(3) { grid-column: span 2; }
    .gallery-grid .gallery-item:nth-child(4) { grid-column: span 2; }
    .gallery-grid .gallery-item:nth-child(5) { grid-column: span 4; }

    .contact-container {
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .footer-newsletter {
        grid-column: span 2;
    }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Navigation Hamburger */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 2.5rem 3rem 2.5rem;
        gap: 2rem;
        z-index: 999;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
    }

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

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(2px, 2px);
    }

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

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(2px, -2px);
    }

    .nav-cta {
        display: none; /* Hide top CTA on mobile */
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        max-width: 450px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    /* About Section */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .about-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    .about-image {
        height: 350px;
    }

    .about-content {
        padding-left: 0;
        text-align: center;
    }

    /* Menu Section */
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .gallery-grid .gallery-item {
        grid-column: span 1 !important;
        height: 240px;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-newsletter {
        grid-column: span 1;
    }
}
