/* lambatolia.com — Recipe / Magazine layout (distinct from finance) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Poppins:wght@400;500;600&display=swap');

:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    --wrap: min(1100px, 92vw);
    --pad: clamp(16px, 4vw, 28px);
    --cream: #faf6f0;
    --cream-dark: #f0ebe3;
    --ink: #2c2824;
    --ink-muted: #5c5650;
    --olive: #5c6b38;
    --olive-light: #7d8c4a;
    --terracotta: #b85c38;
    --terracotta-light: #c97a5a;
    --border: #e5dfd6;
    --radius-recipe: 16px;
    --radius-pill: 999px;
    --shadow-recipe: 0 8px 24px rgba(44,40,36,.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

/* —— Wrap & container alias —— */
.wrap, .container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* —— Header: minimal, recipe-blog style —— */
.recipe-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 240, .97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.recipe-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.recipe-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.35rem;
}
.recipe-logo img { width: 42px; height: 42px; display: block; }
.recipe-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.recipe-nav a {
    padding: 0.5rem 1rem;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: color .2s, background .2s;
}
.recipe-nav a:hover { color: var(--olive); background: var(--cream-dark); }
.recipe-nav .has-sub { position: relative; }
.recipe-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 200px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: var(--shadow-recipe);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    list-style: none;
}
.recipe-nav .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.recipe-nav .sub-menu a { display: block; padding: 10px 18px; border-radius: 0; }
.recipe-nav .sub-menu a:hover { background: var(--cream-dark); }
.recipe-nav > ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.recipe-nav .sub-menu { display: block; }
.recipe-nav .sub-menu li { display: block; }
.recipe-nav > ul > li { position: relative; }
.recipe-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.recipe-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s; }
.recipe-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.recipe-toggle.is-open span:nth-child(2) { opacity: 0; }
.recipe-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .recipe-toggle { display: flex; }
    .recipe-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 85vw);
        background: var(--cream);
        border-left: 1px solid var(--border);
        padding: 4rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(100%);
        transition: transform .3s var(--ease);
        box-shadow: -8px 0 24px rgba(0,0,0,.06);
    }
    .recipe-nav.is-open { transform: translateX(0); }
    .recipe-nav ul { flex-direction: column; align-items: stretch; }
    .recipe-nav .sub-menu { position: static; margin-top: 6px; margin-left: 12px; box-shadow: none; border-radius: 8px; display: none; }
    .recipe-nav .has-sub:hover .sub-menu { display: block; }
    .recipe-nav .has-sub.is-open .sub-menu { display: block; }
}

/* —— Hero: editorial / recipe magazine —— */
.recipe-hero {
    padding: clamp(3rem, 10vw, 5rem) 0;
    text-align: center;
    border-bottom: 2px solid var(--border);
}
.recipe-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 0.6em;
    letter-spacing: -0.02em;
}
.recipe-hero__sub {
    font-size: 1.1rem;
    color: var(--ink-muted);
    max-width: 520px;
    margin: 0 auto 1.8rem;
}
.recipe-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.recipe-hero__actions a {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background .25s, color .25s;
}
.recipe-hero__actions .prim {
    background: var(--olive);
    color: #fff;
}
.recipe-hero__actions .prim:hover { background: var(--olive-light); }
.recipe-hero__actions .sec {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
}
.recipe-hero__actions .sec:hover { border-color: var(--olive); color: var(--olive); }

/* —— Intro block: single column, serif lead —— */
.recipe-intro {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    max-width: 720px;
    margin: 0 auto;
}
.recipe-intro p {
    font-size: 1.05rem;
    margin-bottom: 1em;
    color: var(--ink);
}
.recipe-intro p:last-child { margin-bottom: 0; }

/* —— Section heading: serif, underline accent —— */
.recipe-sec {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.recipe-sec--alt { background: var(--cream-dark); }
.recipe-sec__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4em;
    padding-bottom: 0.35em;
    border-bottom: 3px solid var(--terracotta);
    display: inline-block;
}
.recipe-sec__lead {
    font-size: 1rem;
    color: var(--ink-muted);
    margin-bottom: 1.8rem;
    max-width: 560px;
}

/* —— Recipe cards: image on top, meta, title, excerpt (no icons, no arrows) —— */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.recipe-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--radius-recipe);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.recipe-card:hover {
    box-shadow: var(--shadow-recipe);
    transform: translateY(-4px);
}
.recipe-card__img {
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, var(--cream-dark) 0%, #e8e0d5 100%);
    position: relative;
    overflow: hidden;
}
.recipe-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}
.recipe-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 8c-2 0-4 1.5-4 4v4h2v-4c0-1.1.9-2 2-2s2 .9 2 2v4h2v-4c0-2.5-2-4-4-4z' fill='%23d4cdc4'/%3E%3Cellipse cx='20' cy='26' rx='8' ry='6' fill='%23d4cdc4'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.recipe-card__img:has(img)::after { display: none; }
.recipe-card__body { padding: 1.25rem 1.35rem; }
.recipe-card__meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.recipe-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.recipe-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
    line-height: 1.3;
}
.recipe-card__title:hover { color: var(--terracotta); }
.recipe-card__p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* —— Two-col content blocks (recipe site specific) —— */
.recipe-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}
@media (max-width: 700px) { .recipe-cols { grid-template-columns: 1fr; } }
.recipe-cols__text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.recipe-cols__text p { margin-bottom: 0.8em; color: var(--ink); font-size: 0.98rem; }
.recipe-cols__text p:last-child { margin-bottom: 0; }
.recipe-cols__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--olive);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}
.recipe-cols__link:hover { color: var(--terracotta); }
.recipe-cols__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-recipe);
    padding: 1.5rem;
}
.recipe-cols__card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.recipe-cols__card p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 12px; }
.recipe-cols__card a {
    font-size: 0.9rem;
    color: var(--olive);
    font-weight: 500;
    text-decoration: none;
}
.recipe-cols__card a:hover { color: var(--terracotta); text-decoration: underline; }

/* —— Audience: simple tag list —— */
.recipe-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.recipe-tags li {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.recipe-tags li:hover { border-color: var(--olive); color: var(--olive); }

/* —— Notice: recipe-style callout (no gradient block) —— */
.recipe-notice {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.recipe-notice__box {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 2.25rem;
    background: var(--cream-dark);
    border-radius: var(--radius-recipe);
    border-left: 4px solid var(--terracotta);
}
.recipe-notice__box h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.recipe-notice__box p { font-size: 0.98rem; color: var(--ink); margin-bottom: 0.5em; }
.recipe-notice__box p:last-child { margin-bottom: 0; }

/* —— CTA: simple centered links —— */
.recipe-cta {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    text-align: center;
}
.recipe-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.recipe-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.recipe-cta__buttons a {
    display: inline-block;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background .25s, color .25s, border-color .25s;
}
.recipe-cta__buttons .prim { background: var(--olive); color: #fff; }
.recipe-cta__buttons .prim:hover { background: var(--olive-light); }
.recipe-cta__buttons .sec { background: transparent; color: var(--ink); border: 2px solid var(--border); }
.recipe-cta__buttons .sec:hover { border-color: var(--olive); color: var(--olive); }

/* —— Page hero (inner pages) —— */
.recipe-page-hero, .page-hero {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border);
}
.recipe-page-hero h1, .page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.recipe-page-hero .lead, .recipe-page-hero .page-hero-subtitle, .page-hero .lead, .page-hero .page-hero-subtitle { font-size: 1rem; color: var(--ink-muted); }

/* Legacy content area (inner pages still using content-page/content-body) */
.content-page .content-body { padding: clamp(2rem, 5vw, 3rem) 0; }
.content-page .prose p { margin-bottom: 1em; }
.content-page .prose h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-top: 2em; margin-bottom: 0.4em; }
.content-page .prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.4em; margin-bottom: 0.35em; color: var(--ink); }
.content-page .prose ul, .content-page .prose ol { margin: 1em 0 1em 1.4em; }
.content-page .prose li { margin-bottom: 0.3em; }
.content-page .prose a { color: var(--olive); }
.content-page .prose a:hover { color: var(--terracotta); }
.animate-on-scroll { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* —— Content page (prose) —— */
.recipe-content {
    padding: clamp(2rem, 5vw, 3rem) 0;
}
.recipe-content .wrap { max-width: 720px; }
.recipe-content .prose p { margin-bottom: 1em; }
.recipe-content .prose h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 2em;
    margin-bottom: 0.4em;
}
.recipe-content .prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.4em; margin-bottom: 0.35em; color: var(--ink); }
.recipe-content .prose ul, .recipe-content .prose ol { margin: 1em 0 1em 1.4em; }
.recipe-content .prose li { margin-bottom: 0.3em; }

/* —— Recipe single: meta, ingredients, steps —— */
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
}
.recipe-meta span { display: inline-flex; align-items: center; gap: 6px; }
.recipe-ingredients {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-recipe);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
.recipe-ingredients h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.75rem; }
.recipe-ingredients ul { list-style: none; margin: 0; padding: 0; }
.recipe-ingredients li { padding: 0.35rem 0; padding-left: 1.25rem; position: relative; }
.recipe-ingredients li::before { content: '·'; position: absolute; left: 0; font-weight: bold; color: var(--olive); }
.recipe-steps ol { margin: 1em 0 1em 1.5em; }
.recipe-steps li { margin-bottom: 0.6rem; line-height: 1.65; }
.recipe-tip {
    background: #fff;
    border-left: 4px solid var(--olive);
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--ink);
}

/* —— Footer: minimal, one line + links —— */
.recipe-footer {
    background: var(--ink);
    color: rgba(255,255,255,.88);
    padding: clamp(2rem, 5vw, 2.5rem) 0 1.25rem;
    margin-top: 3rem;
}
.recipe-footer .wrap { max-width: var(--wrap); }
.recipe-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.recipe-footer h3, .recipe-footer h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.recipe-footer ul { list-style: none; }
.recipe-footer a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color .2s;
}
.recipe-footer a:hover { color: #fff; }
.recipe-footer__bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 0.85rem;
    opacity: .85;
}

/* —— Scroll reveal (light) —— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal .recipe-card { transition: opacity .4s, transform .4s, box-shadow .3s; }
.reveal.is-visible .recipe-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .recipe-card:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible .recipe-card:nth-child(3) { transition-delay: 0.15s; }
.reveal.is-visible .recipe-card:nth-child(4) { transition-delay: 0.2s; }
.reveal.is-visible .recipe-card:nth-child(5) { transition-delay: 0.25s; }

/* —— Contact form —— */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; color: var(--ink); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(92,107,56,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group button[type="submit"],
.contact-form button[type="submit"],
.btn.btn-primary {
    display: inline-block;
    padding: 12px 26px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: var(--olive);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background .25s, color .25s;
}
.form-group button[type="submit"]:hover,
.contact-form button[type="submit"]:hover,
.btn.btn-primary:hover {
    background: var(--olive-light);
}
.form-group button[type="submit"]:focus,
.contact-form button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92,107,56,.25);
}
.form-success {
    padding: 1rem 1.25rem;
    background: #e8f0e5;
    color: #2d4a28;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 700px) { .contact-layout { grid-template-columns: 1fr; } }
