/* =======================================
   CSS Variables & Base Styles
   ======================================= */
:root {
    /* Color Palette */
    --primary-green: #3D5A46; /* Deep organic green */
    --accent-yellow: #E8B923; /* Warm mustard yellow */
    --bg-light: #F9F7F1;      /* Cream background */
    --bg-white: #FFFFFF;      /* Pure white for cards */
    --text-main: #333333;
    --text-muted: #666666;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Shadows & Transitions */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--primary-green);
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* =======================================
   Layout Utilities
   ======================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 6rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
}

.section-title:not(.text-center)::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(61, 90, 70, 0.3);
}

.primary-btn:hover {
    background-color: #2c4233;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 90, 70, 0.4);
}

.secondary-btn {
    background-color: var(--accent-yellow);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(232, 185, 35, 0.3);
}

.secondary-btn:hover {
    background-color: #d1a51a;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* =======================================
   Navigation Header
   ======================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(249, 247, 241, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img, .logo {
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition-fast);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-green);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* =======================================
   Hero Section
   ======================================= */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.15) 0%, rgba(249,247,241,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    padding: 0 5%;
    max-width: 600px;
    margin-left: max(5%, calc((100% - var(--max-width))/2));
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-image-container {
    flex: 1;
    height: 100vh;
    width: 50%;
    position: absolute;
    right: 0;
    top: 0;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 150px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

/* =======================================
   About Section
   ======================================= */
.about {
    background-color: var(--bg-white);
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

.features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item .dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
}

/* =======================================
   Menu Section
   ======================================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.menu-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.menu-img-wrapper {
    height: 250px;
    overflow: hidden;
}

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

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

.menu-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-desc {
    color: var(--text-muted);
    flex-grow: 1;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 1rem;
    display: block;
}

.cta-wrapper {
    margin-top: 3rem;
}

/* =======================================
   Gallery Section
   ======================================= */
.gallery {
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

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

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

/* =======================================
   Contact Section
   ======================================= */
.contact-info .info-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-info .info-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info .info-list li strong {
    color: var(--primary-green);
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.contact-form h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* =======================================
   Footer
   ======================================= */
footer {
    background-color: var(--primary-green);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

.footer-social a {
    margin-left: 1rem;
}

.footer-social a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* =======================================
   Animations
   ======================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }

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

.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================
   Responsive Media Queries
   ======================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    .hero-content {
        margin: 0;
        padding: 2rem 5%;
    }
    .hero-image-container {
        position: relative;
        width: 100%;
        height: 50vh;
        border-bottom-left-radius: 0;
    }
    .hero-image-container img {
        border-bottom-left-radius: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    nav {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-fast);
    }
    nav.active {
        left: 0;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    nav a {
        font-size: 1.5rem;
    }
    /* Hamburger animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
