@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,700&family=Poppins:wght@300;400;600&display=swap');

/* =========================================
   VARIABLES & BASE
   ========================================= */
:root {
  
    --primary: #5B3703;          /* Rich wood brown */
    --primary-light: #AA701B;    /* Warm amber gold */
    --secondary: #A75F24;        /* Terracotta / Roasted clay */
    
    /* NEW: High-Conversion Spice Colors extracted from the food */
    --spice-red: #B53A26;        /* Deep crimson tomato/chili bowl (Excellent for CTA) */
    --spice-red-hover: #912B1B;  /* Darker shade for crisp hover effects */
    --gold-text: #DCAE6C;        /* Exact gold from the book title */

    /* Backgrounds & Text */
    --bg-cream: #FEF4E0;         /* Warm, appetizing base */
    --bg-soft: #FDF0D5;          /* Slightly richer cream for depth */
    --dark: #2C1810;             /* Espresso dark for headers */
    --light: #FFFFFF;
    
    /* Utilities */
    --gray: #7F8C8D;
    --shadow: 0 10px 40px rgba(91, 55, 3, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', serif; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 120%;
    display: block;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 140px 0;
}

.flex {
    display: flex;
    align-items: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.preloader-content {
    text-align: center;
}

.preloader-name {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--primary);
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* =========================================
   NAVBAR & HEADER
   ========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    padding: 20px 5%;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(15px);
    border-radius: 0;
    z-index: -1;
}

header.scrolled {
    top: 0;
    width: 100%;
    padding: 12px 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        left: auto;
        transform: none;
    }
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--primary-light);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
}

.overlay {
    display: none !important;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    width: 220px;
    padding: 15px 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 3000;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 25px;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: none;
    font-weight: 500;
}

.dropdown a:hover {
    background: var(--bg-cream);
    color: var(--primary-light);
    padding-left: 30px;
}

.subpage-hero {
    min-height: 50vh !important;
    padding-top: 150px !important;
    padding-bottom: 100px !important;
}

.subpage-hero .hero-container {
    display: block !important;
    text-align: center;
}

.subpage-hero .hero-title {
    font-size: 4rem !important;
}
.hero-curved {
    position: relative;
    padding-top: 180px;
    padding-bottom: 180px;
  background-color:#f3d59a7a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-curved::before {
    content: '';
    position: absolute;
    inset: 0;
   
    z-index: 2;
}



.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 5;
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 4.2rem;
    font-weight:bold;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--secondary);
    line-height: 1.6;
    margin: 20px 0 40px;
    max-width: 600px;
}
/* --- Typography Hierarchy --- */
.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Fraunces', 'Cormorant Garamond', serif; /* Warm editorial food heading */
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* --- Button Group Layout --- */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 24px; /* Fixes the gap between the primary button and email link */
    margin-top: 32px; /* Spacing above the button cluster */
}

/* --- Individual Button Tuning --- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Fixes the precise gap between the mail envelope icon and text */
    transition: opacity 0.2s ease;
}

.btn-link:hover {
    opacity: 0.8;
}
.floating-food {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 20px 50px rgba(91, 55, 3, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Product Cards */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--bg-cream);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(91, 55, 3, 0.15);
}

.product-card .product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--secondary);
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(91, 55, 3, 0.2);
}

.recipe-round-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    margin-top: 40px;
}

.recipe-round-card {
    text-align: center;
    flex: 0 0 180px;
    position: relative;
    transition: var(--transition);
}

.recipe-round-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(91, 55, 3, 0.15);
    transition: var(--transition);
}

.recipe-round-card h4 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.recipe-round-card:hover {
    transform: translateY(-10px);
}

.recipe-round-card:hover .recipe-round-image {
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(170, 112, 27, 0.25);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.1rem;
}

.btn-amazon {
    background: #FF9900;
    color: #000;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.3);
    transition: var(--transition);
}

.btn-amazon:hover {
    background: #FFB300;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 153, 0, 0.5);
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 5px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-light);
    border-color: var(--primary);
}

.section-cream {
    background:#f8e3b9;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--secondary);
    margin: 30px 0;
}

.book-mockup {
    border-radius: 50%;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 15px solid white;
}

.about-reverse {
    direction: rtl;
}

.about-reverse > * {
    direction: ltr;
}
/* =========================================
   ABOUT AUTHOR COMPONENT
   ========================================= */
.about-author-section {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

/* Tagline Above Heading */
.about-tagline {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Main Heading Fixed to Match Editorial Theme */
.about-heading {
    font-family: 'Fraunces', serif;
    font-size: 3.3rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 30px;
}

/* Paragraph Layout Adjustments */
.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Styled Final Summary Paragraph */
.about-text p.highlight-quote {
    color: var(--secondary);
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    border-left: 3px solid var(--spice-red); /* Uses high-contrast spice color as a highlight anchor */
    padding-left: 20px;
    margin: 30px 0 40px;
}

/* Creative Graphic Offset Frame around the Profile Image */
.image-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--primary-light);
    border-radius: 50%;
    z-index: 1;
    animation: spin 60s linear infinite; /* Subtle premium slow motion rotation background detail */
}

.about-image img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 12px solid var(--bg-cream); /* Cream border matches base colors */
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

/* Slow rotate helper animation for graphic background frame */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Responsive Polish for Smaller Devices */
@media (max-width: 768px) {
    .about-heading {
        font-size: 2.4rem;
    }
    
    .image-frame {
        max-width: 300px;
    }
    
    .about-text p.highlight-quote {
        padding-left: 15px;
        font-size: 1.1rem;
    }
}
.contact-form-container {
    background: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--bg-cream);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border-radius: 15px;
    border: 2px solid var(--bg-cream);
    background: #FAFAFA;
    transition: var(--transition);
}

/* Cards & Grids */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 50%;
    box-shadow: var(--shadow);
    
}

.footer-professional {
    background: var(--dark);
    padding: 100px 0 40px;
    color: var(--light);
}

.footer-professional .logo {
    color: var(--light);
}

.footer-professional p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-professional h4 {
    color: var(--primary-light);
    margin-bottom: 25px;
}

.footer-professional ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-professional ul li a:hover {
    color: var(--light);
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    margin-top: 50px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.chapter-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    border: 2px solid var(--bg-cream);
    transition: var(--transition);
}

/* =========================================
   CREATIVE REVIEWS SLIDER STYLING
   ========================================= */
.reviews-section {
    background: var(--light);
    overflow: hidden;
    padding: 100px 0;
}

.reviews-tagline {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.reviews-main-title {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 60px;
}

/* Slider Track Architecture Mask */
.review-slider-mask {
    width: 100%;
    overflow: hidden;
    padding: 30px 10px;
    position: relative;
}

/* The horizontal structural row flex container */
.review-slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

/* Creative Minimal Card Graphic */
.review-card-mini {
    flex: 0 0 380px; /* Locked explicit layout width per slide card */
    background: #f6936d54;
    padding: 40px 35px;
    border-radius: 24px;
    border: 2px solid var(--bg-cream);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Creative Hover: Scales card layout upward and highlights with spice tone */
.review-card-mini:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(167, 95, 36, 0.12);
}

/* Square/Asymmetric Editorial Avatar Wrapper Frame */
.reviewer-avatar-frame {
    position: relative;
    width: 85px;
    height: 85px;
    margin-bottom: 25px;
}

.reviewer-avatar-frame::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary-light);
    border-radius: 16px; /* Smooth rounded squircle profile tracking */
    transform: rotate(-4deg);
    transition: var(--transition);
    z-index: 1;
}

.review-card-mini:hover .reviewer-avatar-frame::before {
    transform: rotate(0deg);
    border-color: var(--spice-red);
}

.review-user-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 4px solid white;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Star Matrix */
.review-stars {
    color: var(--primary-light);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

/* Text Formatting */
.review-quote {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--dark);
    flex-grow: 1;
}

.reviewer-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-top: 20px;
}

/* Responsive Adaptive Sizing */
@media (max-width: 768px) {
    .reviews-main-title {
        font-size: 2.5rem;
    }
    .review-card-mini {
        flex: 0 0 310px;
        padding: 30px 25px;
    }
}
/* =========================================
   MEDIA QUERIES (MOBILE FIXES)
   ========================================= */

@media (max-width: 992px) {
    /* Header & Mobile Menu */
    header {
        width: 100%;
        left: 0;
        padding: 15px 5%;
    }

    header.menu-open {
        backdrop-filter: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    header.menu-open::before {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px !important;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 45px rgba(91, 55, 3, 0.2);
        z-index: 5000;
        border-radius: 0;
        left: auto !important;
        transform: none !important;
        backdrop-filter: none !important; /* Ensure no blur */
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
        z-index: 6000;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        display: none;
        background: transparent;
        border: none;
    }

    .nav-links li.active .dropdown {
        display: block;
    }

    /* Hero Section Stacking */
    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-description {
        margin: 20px auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .floating-food {
        max-width: 320px;
        margin: 0 auto;
    }

    /* About Sections Stacking */
    .about-split {
        display: flex;
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
        direction: ltr !important;
    }
    
    .about-reverse {
        direction: ltr !important;
    }

    .about-content {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .about-image img {
        margin: 0 auto;
        max-width: 90%;
    }

    .footer-grid-new {
        grid-template-columns: 1fr 1fr;
    }

    .review-card-mini {
        flex: 0 0 calc(50% - 15px);
    }
    .recipe-round-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .recipe-round-card {
        flex: 0 0 140px;
    }
    .recipe-round-image {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-curved {
        padding-top: 120px;
        padding-bottom: 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .subpage-hero .hero-title {
        font-size: 2.5rem !important;
    }

    .review-card-mini {
        flex: 0 0 100%;
    }

    .recipe-deep-dive {
        display: flex;
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .recipe-deep-dive > div {
        order: 1; /* Text on top */
    }

    .recipe-deep-dive img {
        order: 2; /* Image on bottom */
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
    }

    .footer-grid-new {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
