@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Caveat:wght@400;500&display=swap');

:root {
    /* Earthy, fresh, appetizing palette */
    --color-cream: #fcf9f2;
    --color-cream-dark: #f3efe6;
    --color-sage: #6b7a64;
    --color-sage-light: #e4e9e1;
    --color-forest: #2c3d28;
    --color-terracotta: #c46d53;
    --color-terracotta-light: #fbece8;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-border: #e0dcd1;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Caveat', cursive;

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --shadow-soft: 0 10px 40px rgba(44, 61, 40, 0.05);
    --shadow-hover: 0 15px 50px rgba(44, 61, 40, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-cream);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-forest);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

.accent-text {
    font-family: var(--font-accent);
    color: var(--color-terracotta);
    font-size: 1.5em;
    transform: rotate(-2deg);
    display: inline-block;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-forest);
    color: var(--color-cream) !important;
}

.btn-primary:hover {
    background-color: var(--color-sage);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 122, 100, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-forest);
    color: var(--color-forest) !important;
}

.btn-outline:hover {
    background-color: var(--color-forest);
    color: var(--color-cream) !important;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(252, 249, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
    padding: 1rem 0;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-forest);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-terracotta);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-forest);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--color-forest);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background-color: var(--color-cream-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background-color: var(--color-sage-light);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 4/5;
    width: 100%;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--color-cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
}

.hero-badge-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-terracotta-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    font-size: 1.5rem;
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-subtitle {
    font-family: var(--font-accent);
    color: var(--color-terracotta);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Featured Recipes Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.recipe-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.recipe-img-container {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.recipe-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-img-container img {
    transform: scale(1.05);
}

.recipe-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-forest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recipe-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.recipe-title a {
    color: var(--color-forest);
}

.recipe-title a:hover {
    color: var(--color-terracotta);
}

.recipe-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Niche Specific - Values Section */
.values-section {
    background-color: var(--color-forest);
    color: var(--color-cream);
    padding: 8rem 0;
}

.values-section h2, .values-section h3 {
    color: var(--color-cream);
}

.values-section .section-subtitle {
    color: var(--color-sage-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: rgba(252, 249, 242, 0.8);
}

/* Newsletter / Meal Plan CTA */
.newsletter-section {
    background-color: var(--color-terracotta-light);
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    margin: 6rem 24px;
    text-align: center;
    max-width: calc(var(--max-width) - 48px);
    margin-inline: auto;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(196, 109, 83, 0.2);
}

/* Footer */
.site-footer {
    background-color: var(--color-cream-dark);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

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

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-forest);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Page Headers */
.page-header {
    background-color: var(--color-sage-light);
    padding: 160px 0 80px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Articles Layout */
.article-single {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    border-radius: var(--radius-md);
    margin: 3rem 0;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-content h2, .article-content h3 {
    margin: 2.5rem 0 1rem;
}

.article-content p, .article-content ul, .article-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-forest);
    line-height: 1.4;
    border-left: 4px solid var(--color-terracotta);
    padding-left: 1.5rem;
    margin: 3rem 0;
    font-style: italic;
}

/* About Page Specifics */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-image-collage {
    position: relative;
    height: 500px;
}

.about-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 8px solid var(--color-cream);
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-badge {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-collage {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        gap: 2rem;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .newsletter-section {
        margin: 4rem 16px;
        padding: 3rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
