:root {
    --primary: #2d5a3f;
    /* Forest Green from logo */
    --accent: #d48a2e;
    /* Ochre/Orange from logo */
    --bg-cream: #fdfaf5;
    /* Cream background from logo */
    --swiggy: #fc8019;
    --zomato: #cb202d;
    --dark: #1a3324;
    --light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-cream);
    /* Matching logo background */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--bg-cream);
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 2500;
}

/* Hero Navigation - Integrated & Desktop Ready */
.hero-nav {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 2000;
}

.logo-container {
    background: rgba(254, 247, 239, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 140px;
    /* Fixed sizing for perfect circle */
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-logo {
    width: 85%;
    /* Responsive to container */
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger Button Styling */
.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2500;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .hero-nav {
        flex-direction: row;
        /* Keep row for logo/hamburger */
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
        top: 60px;
        /* Increased vertical clearance as requested */
    }



    .logo-container {
        width: 110px;
        height: 110px;
        padding: 0;
        margin-bottom: 0;
    }

    .hamburger {
        display: flex;
        /* Show on mobile */
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 2400;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: white;
    }
}

/* Hero - Mobile First */
.hero {
    min-height: 100vh;
    padding: 260px 20px 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)),
        url('images/hero.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    word-break: keep-all;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.hero p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 30px;
    opacity: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    font-weight: 400;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .hero {
        padding: 340px 20px 60px;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .hero {
        padding: 340px 20px 60px;
    }
}

/* Order Buttons */
.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn {
    width: 100%;
    max-width: 280px;
    height: 60px;
    padding: 0 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.brand-logo {
    max-height: 28px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.btn.swiggy {
    background: #ffffff;
    border: 2px solid #fc8019;
}

.btn.zomato .brand-logo {
    max-height: 56px;
    max-width: 200px;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .order-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: 220px;
    }
}

/* Sections */
.section {
    padding: 60px 20px;
}

@media (min-width: 992px) {
    .section {
        padding: 100px 10%;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.6rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.category-title {
    grid-column: 1 / -1;
    margin: 40px 0 20px;
    font-size: 1.4rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill grid cell */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Push buttons to bottom */
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.price {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.dark {
    background: #f7efe4;
    /* Slightly darker cream for contrast */
}

/* Slider Section */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
    padding: 20px 0 40px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 0;
}

.review-card {
    min-width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.review-content-inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.review-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stars {
    font-size: 1.3rem;
}

.review-text {
    font-style: italic;
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark);
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
}

.slider-btn.prev {
    left: 5px;
}

.slider-btn.next {
    right: 5px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }

    .review-content-inner {
        padding: 30px 20px;
    }
}

/* Footer Section */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 120px;
    width: auto;
    display: block;
}

.footer-logo-container {
    background: rgba(254, 247, 239, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 300px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    color: var(--accent);
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 20px;
    }

    .footer-container {
        gap: 30px;
        text-align: center;
    }

    .footer-brand p,
    .footer h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

/* --- Final UI Polish --- */

/* Menu Card Order Buttons */
.card-order-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom of card */
    padding-top: 18px;
}

.card-btn {
    flex: 1;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid #eee;
    text-decoration: none;
}

/* Higher specificity to control logo sizes on card buttons */
.card-btn .brand-logo {
    height: 34px !important;
    /* Maximize logo visibility */
    width: auto !important;
    max-width: 95% !important;
    max-height: 95% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

.card-btn.swiggy {
    border-color: #fc8019;
}

.card-btn.zomato .brand-logo {
    height: 45px !important;
}

.card-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-width: 2px;
}

/* Menu Card Polish */

/* --- Recipe Detail Page --- */
.recipe-detail-page {
    background: #faf9f6;
    color: var(--primary);
}

.recipe-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.back-btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.back-btn:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.recipe-header {
    position: relative;
    padding: 100px 8% 60px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    gap: 60px;
    overflow: hidden;
}

.recipe-hero-image {
    width: 450px;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    flex-shrink: 0;
}

.recipe-header-content {
    z-index: 2;
}

.recipe-author {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.recipe-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 15px 0 25px;
    line-height: 1.2;
}

.recipe-meta {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.recipe-meta i {
    margin-right: 8px;
    color: var(--accent);
}

.recipe-body {
    padding: 80px 8%;
}

.recipe-main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.glass-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.glass-card h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.glass-card h2 i {
    color: var(--accent);
    font-size: 1.4rem;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ingredient-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent);
}

.method-list {
    padding: 0;
    list-style: none;
    counter-reset: my-counter;
}

.method-list li {
    counter-increment: my-counter;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 60px;
}

.method-list li::before {
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: 22px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.read-more {
    margin-top: 15px;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.recipe-card {
    text-decoration: none;
    transition: 0.3s;
}

.recipe-card:hover .read-more {
    gap: 15px;
}

.error-msg {
    padding: 100px;
    text-align: center;
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .recipe-header {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding-top: 60px;
    }

    .recipe-hero-image {
        width: 100%;
        max-width: 400px;
        height: 350px;
    }

    .recipe-meta {
        justify-content: center;
    }

    .recipe-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .recipe-header h1 {
        font-size: 2.5rem;
    }
}