@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --bg-main: #fffaf5;
    --primary: #e63946;
    --secondary: #f4a261;
    --accent-fresh: #2a9d8f;
    --card-bg: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #1d1d1d;
    --text-muted: #555555;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Typography & Utilities */
.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: var(--primary);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }

/* Buttons */
.btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}
.btn-secondary {
    background: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    background: #e78e46;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Navbar with Cheesy Dripping Effect */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffca28; /* Melted cheese color */
    z-index: 1000;
    box-shadow: none;
    filter: drop-shadow(0 2px 15px rgba(0, 0, 0, 0.05));
    padding: 1rem 0;
    transition: filter 0.3s ease;
    border-bottom: none;
}
.navbar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 24px;
    /* Round fluid SVG acting like cheese coming out */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C40,90 60,90 100,0 C140,60 160,60 200,0 C240,100 260,100 300,0 C340,40 360,40 400,0 C440,90 460,90 500,0 C540,70 560,70 600,0 C640,100 660,100 700,0 C740,50 760,50 800,0 C840,90 860,90 900,0 C940,30 960,30 1000,0 L1000,0 L0,0 Z' fill='%23ffca28'/%3E%3C/svg%3E");
    background-size: 800px 100%;
    background-repeat: repeat-x;
    pointer-events: none;
}
.navbar .container {
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}
.nav-links a:hover {
    color: var(--primary);
}
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('images/photo-1498579150354-977475b7e9b3.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}
.hero-content {
    max-width: 800px;
    color: #fff;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Card Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Dish Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.card-img-wrapper {
    overflow: hidden;
    height: 240px;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-tag {
    font-size: 0.8rem;
    color: var(--accent-fresh);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.card-footer {
    margin-top: auto;
}

/* Page Headers */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%), var(--bg-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Recipe Detail Layout */
.recipe-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.3) 100%), var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.recipe-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}
.recipe-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 0;
}
.recipe-sidebar {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.ingredients-list {
    margin-top: 1rem;
}
.ingredients-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.ingredients-list li::before {
    content: '✓';
    color: var(--accent-fresh);
    font-weight: bold;
    margin-right: 10px;
}
.steps-list {
    counter-reset: recipe-step;
}
.steps-list li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}
.steps-list li::before {
    counter-increment: recipe-step;
    content: counter(recipe-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}
.recipe-tip {
    background: rgba(244, 162, 97, 0.1);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
}

/* Feature/Culture Section */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.feature-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #aaa;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.9rem;
}
.legal-links a {
    margin-left: 15px;
    color: #aaa;
}
.legal-links a:hover { color: #fff; }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.8rem; }
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-sidebar { position: static; }
    .feature-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar .container { padding: 0 20px; }
    .grid { grid-template-columns: 1fr; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 24px); /* Pushed down to clear the cheese drip */
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}