:root {
    --primary-color: #2e7d32; /* Vibrant herb green */
    --primary-light: #e8f5e9;
    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-muted: #888888;
    --border-color: #e5e5e5;
    --bg-color: #ffffff;
    --bg-offwhite: #fafafa;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-offwhite);
    color: var(--text-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--bg-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: multiply; /* Removes white background instantly */
}

.main-nav a {
    text-decoration: none;
    color: var(--text-body);
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 6rem 1rem 8rem 1rem;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('chimichurri-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Article */
.main-content {
    margin-top: -4rem; /* Pulls content up over the hero */
    position: relative;
    z-index: 10;
}

.recipe-article {
    background: var(--bg-color);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Calculator specific styles */
.recipe-calculator {
    background-color: var(--bg-offwhite);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.calculator-header {
    margin-bottom: 2rem;
}

.calculator-header h2 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.calculator-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.servings-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.servings-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.stepper {
    display: flex;
    align-items: center;
    background: var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
}

.stepper button {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper button:hover {
    background-color: #c8e6c9;
}

#servings-count {
    width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.reset-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.reset-btn:hover {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.ingredient-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.ingredient-row:last-child {
    border-bottom: none;
}

.ingredient-name {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.ingredient-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.quick-tip {
    margin-top: 2.5rem;
    background-color: #fff9e6;
    border-left: 4px solid #fbbc04;
    padding: 1.5rem;
    border-radius: 4px 12px 12px 4px;
}

.quick-tip strong {
    display: block;
    font-size: 0.85rem;
    color: #b38200;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Instructions */
h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-dark);
    margin: 3.5rem 0 1.5rem 0;
}

.instructions-list {
    padding-left: 1.5rem;
}

.instructions-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding-left: 0.5rem;
    line-height: 1.8;
}

.instructions-list li strong {
    color: var(--text-dark);
    font-family: var(--font-sans);
}

/* Video Section */
.video-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px dashed var(--border-color);
}

.video-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
}

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

.video-container:hover img {
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent white;
    margin-left: 6px;
}

.video-container:hover .play-button {
    background-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .recipe-article {
        padding: 2.5rem;
    }
    
    .recipe-calculator {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        height: auto;
        padding: 1.5rem 0;
    }
    
    .main-nav a {
        margin: 0 0.8rem;
    }
    
    .servings-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stepper {
        justify-content: center;
    }
    
    .reset-btn {
        width: 100%;
    }
    
    .ingredient-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ingredient-amount {
        align-self: flex-start;
    }
}
