/* ===========================================================
   Songbird Kitchen - master stylesheet
   Brand colors: primary #2d5f3f, accent #e8a87c
   All sections built for unique layouts, mobile-first.
   =========================================================== */

:root {
    --primary: #2d5f3f;
    --primary-dark: #1f4530;
    --primary-light: #4a8060;
    --accent: #e8a87c;
    --accent-dark: #d18860;
    --cream: #faf7f1;
    --paper: #fffdf8;
    --ink: #1a1410;
    --soft-ink: #524740;
    --line: #e4ddd0;
    --tomato: #c23b22;
    --gold: #c08a37;
    --shadow: 0 18px 40px -20px rgba(20,15,8,0.30);
    --shadow-lift: 0 32px 60px -30px rgba(20,15,8,0.45);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { color: var(--soft-ink); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 110px 0; }

.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-primary { background: var(--primary); color: #fff; }

/* -----------------------------------------------------------
   NAVIGATION
   ----------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    max-width: 1440px; margin: 0 auto;
    gap: 24px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
    color: var(--ink); white-space: nowrap;
}
.nav-logo:hover { color: var(--primary); }
.logo-mark {
    width: 44px; height: 44px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 10px;
    display: grid; place-items: center;
    font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
    box-shadow: 0 6px 16px -8px rgba(45,95,63,0.6);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo-text small { font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--soft-ink); font-weight: 500; }

.nav-links {
    display: flex; align-items: center; gap: 28px;
    list-style: none;
    font-size: 0.95rem;
}
.nav-links a {
    color: var(--ink);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-icon-btn {
    position: relative;
    background: none; border: none;
    color: var(--ink);
    cursor: pointer; padding: 8px;
    display: grid; place-items: center;
}
.nav-icon-btn svg { width: 22px; height: 22px; }
.cart-count {
    position: absolute; top: 0; right: 0;
    background: var(--tomato); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    border-radius: 999px;
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border: 2px solid var(--paper);
}
.btn-join {
    background: var(--primary); color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600; font-size: 0.9rem;
    transition: all .2s ease;
}
.btn-join:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--ink);
}
.hamburger svg { width: 26px; height: 26px; }

.mobile-drawer {
    position: fixed; top: 0; right: -100%;
    width: min(360px, 86vw); height: 100vh;
    background: var(--paper);
    z-index: 200;
    padding: 28px 24px;
    box-shadow: var(--shadow-lift);
    transition: right .3s ease;
    overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer .close-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.6rem; color: var(--ink);
    margin-bottom: 30px;
}
.mobile-drawer ul { list-style: none; }
.mobile-drawer li { border-bottom: 1px solid var(--line); }
.mobile-drawer a {
    display: block; padding: 14px 0;
    font-family: var(--serif);
    font-size: 1.2rem; color: var(--ink);
}
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(20,15,8,0.45);
    z-index: 199;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* -----------------------------------------------------------
   BUTTONS & TAGS
   ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
    transition: all .2s ease;
    cursor: pointer; border: none;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.28); color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.tag {
    display: inline-block;
    padding: 5px 12px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
    background: var(--cream); color: var(--soft-ink);
    border: 1px solid var(--line);
}
.tag-primary { background: var(--primary); color: #fff; border-color: transparent; }
.tag-accent { background: var(--accent); color: var(--ink); border-color: transparent; }
.tag-tomato { background: var(--tomato); color: #fff; border-color: transparent; }
.tag-olive { background: rgba(45,95,63,0.12); color: var(--primary); border-color: transparent; }

/* -----------------------------------------------------------
   HERO BLOCKS (unique per page)
   ----------------------------------------------------------- */

/* Home hero - magazine split with floating tiles */
.hero-home {
    position: relative;
    padding: 80px 0 120px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
    overflow: hidden;
}
.hero-home-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-home-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.hero-home-copy h1 em { color: var(--primary); font-style: italic; }
.hero-home-copy p.lede { font-size: 1.2rem; margin: 22px 0 32px; color: var(--soft-ink); }
.hero-home-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-home-stats {
    display: flex; gap: 36px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px dashed var(--line);
}
.hero-home-stats .stat strong {
    font-family: var(--serif);
    font-size: 1.8rem; color: var(--primary);
    display: block;
}
.hero-home-stats .stat span { font-size: 0.85rem; color: var(--soft-ink); }

.hero-home-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px 200px;
    gap: 14px;
}
.hero-home-mosaic .tile {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.hero-home-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-home-mosaic .t1 { grid-row: 1 / 3; }
.hero-home-mosaic .t4 { grid-row: 2 / 4; }
.hero-home-mosaic .tile::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(20,15,8,0.18));
}

/* Recipes hero - centered editorial banner */
.hero-band {
    position: relative;
    height: clamp(360px, 50vh, 520px);
    overflow: hidden;
    color: #fff;
}
.hero-band::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,15,8,0.25), rgba(20,15,8,0.75));
    z-index: 1;
}
.hero-band img.bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.hero-band-inner {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    padding: 0 24px;
}
.hero-band-inner h1 { color: #fff; max-width: 760px; }
.hero-band-inner p { color: rgba(255,255,255,0.86); max-width: 600px; margin-top: 18px; font-size: 1.1rem; }
.hero-band-inner .eyebrow { color: var(--accent); }

/* Side hero (about/subscribe) */
.hero-side {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    min-height: 540px;
}
.hero-side .copy {
    padding: 90px 60px;
    display: flex; flex-direction: column; justify-content: center;
    background: var(--cream);
}
.hero-side .photo { background-size: cover; background-position: center; min-height: 360px; }
.hero-side h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
.hero-side p.lede { margin: 20px 0 30px; font-size: 1.15rem; }

/* Auth hero */
.auth-hero {
    min-height: 80vh;
    display: grid; grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.auth-photo {
    position: relative;
    background-size: cover; background-position: center;
}
.auth-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(45,95,63,0.4), rgba(20,15,8,0.65));
}
.auth-photo .quote {
    position: absolute; left: 40px; right: 40px; bottom: 50px;
    color: #fff; z-index: 1;
    font-family: var(--serif); font-size: 1.3rem;
}
.auth-photo .quote small {
    display: block; margin-top: 16px;
    font-family: var(--body); text-transform: uppercase; letter-spacing: 0.2em;
    font-size: 0.75rem; color: var(--accent);
}
.auth-form-wrap {
    display: grid; place-items: center;
    padding: 60px 40px;
    background: var(--paper);
}
.auth-form {
    width: 100%; max-width: 420px;
}

/* -----------------------------------------------------------
   PHOTO COMPONENTS
   ----------------------------------------------------------- */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 14px;
}
.photo-mosaic .tile {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.photo-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-mosaic .tile:hover img { transform: scale(1.05); }
.photo-mosaic .tile:nth-child(1) { grid-row: 1 / 3; }
.photo-mosaic .tile:nth-child(6) { grid-row: 1 / 3; }

.photo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.photo-strip .tile {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}
.photo-strip .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-strip .tile:hover img { transform: scale(1.08); }

.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.recipe-gallery figure {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
}
.recipe-gallery img { width: 100%; height: 100%; object-fit: cover; }
.recipe-gallery figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, transparent, rgba(20,15,8,0.6));
    color: #fff; font-size: 0.8rem;
    letter-spacing: 0.1em; text-transform: uppercase;
}

/* -----------------------------------------------------------
   RECIPE CARDS
   ----------------------------------------------------------- */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.recipe-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.recipe-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.recipe-card .img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.recipe-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover img { transform: scale(1.06); }
.recipe-card .meta-top {
    position: absolute; top: 12px; left: 12px; right: 12px;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.padlock-badge {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--tomato);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 14px -6px rgba(20,15,8,0.4);
}
.padlock-badge svg { width: 18px; height: 18px; }
.recipe-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.recipe-card h3 { font-size: 1.2rem; margin-bottom: 8px; line-height: 1.3; }
.recipe-card h3 a { color: var(--ink); }
.recipe-card h3 a:hover { color: var(--primary); }
.recipe-card .desc { font-size: 0.9rem; margin-bottom: 14px; flex: 1; }
.recipe-card .stats {
    display: flex; gap: 14px;
    font-size: 0.78rem;
    color: var(--soft-ink);
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.recipe-card .stats span { display: flex; align-items: center; gap: 4px; }
.recipe-card .stats svg { width: 14px; height: 14px; color: var(--accent-dark); }

/* -----------------------------------------------------------
   CATEGORY GRID
   ----------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.category-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: block;
}
.category-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(20,15,8,0.78));
}
.category-card .label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 20px;
    color: #fff; z-index: 2;
}
.category-card .label small {
    text-transform: uppercase; letter-spacing: 0.16em;
    font-size: 0.7rem; color: var(--accent);
}
.category-card .label h3 { color: #fff; font-size: 1.15rem; margin-top: 6px; line-height: 1.2; }

/* -----------------------------------------------------------
   PRODUCT CARDS
   ----------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cream);
}
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dark); }
.product-card h3 { font-size: 1.1rem; margin: 6px 0 8px; line-height: 1.3; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--primary); }
.product-card .short { font-size: 0.85rem; flex: 1; margin-bottom: 14px; }
.product-card .price-row {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.product-card .price {
    font-family: var(--serif); font-size: 1.3rem; color: var(--primary); font-weight: 700;
}
.add-cart-btn {
    background: var(--ink); color: #fff;
    border: none; padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: background .2s ease;
}
.add-cart-btn:hover { background: var(--primary); }

/* -----------------------------------------------------------
   FORMS
   ----------------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 6px; color: var(--ink);
}
.input, textarea, select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-family: var(--body); font-size: 0.95rem;
    color: var(--ink);
    transition: border-color .2s ease;
}
.input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,95,63,0.12);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.92rem;
}
.alert-error { background: rgba(194,59,34,0.08); border-left: 4px solid var(--tomato); color: var(--tomato); }
.alert-success { background: rgba(45,95,63,0.08); border-left: 4px solid var(--primary); color: var(--primary); }
.alert-info { background: rgba(232,168,124,0.16); border-left: 4px solid var(--accent); color: var(--accent-dark); }

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-brand h4 { color: #fff; font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.65); margin-bottom: 18px; line-height: 1.7; }
.footer-col h5 {
    color: var(--accent);
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }

.member-support {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 22px;
}
.member-support h5 { color: #fff; margin-bottom: 6px; letter-spacing: 0; text-transform: none; font-family: var(--serif); font-size: 1.1rem; }
.member-support p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.member-support a {
    display: inline-block; margin-top: 12px;
    color: var(--accent); font-weight: 600;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px;
    font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* -----------------------------------------------------------
   COOKIE NOTICE & TOAST
   ----------------------------------------------------------- */
.cookie-notice {
    position: fixed; left: 20px; right: 20px; bottom: 20px;
    z-index: 250;
    background: var(--ink); color: #fff;
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    display: none;
    align-items: center; gap: 18px; justify-content: space-between;
    max-width: 720px; margin: 0 auto;
}
.cookie-notice.show { display: flex; }
.cookie-notice p { color: rgba(255,255,255,0.85); font-size: 0.88rem; margin: 0; }
.cookie-notice a { color: var(--accent); }
.cookie-notice button {
    background: var(--accent); color: var(--ink);
    border: none; padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600; cursor: pointer;
    white-space: nowrap;
}

.toast {
    position: fixed;
    top: 88px; right: 20px;
    z-index: 300;
    background: var(--primary); color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    transform: translateX(120%);
    transition: transform .3s ease;
    font-size: 0.92rem; font-weight: 500;
}
.toast.show { transform: translateX(0); }

/* -----------------------------------------------------------
   RECIPE DETAIL
   ----------------------------------------------------------- */
.recipe-hero {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}
.recipe-hero .photo { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.recipe-hero .copy { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.recipe-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin: 12px 0 16px; }
.recipe-hero p.desc { font-size: 1.1rem; margin-bottom: 26px; }
.recipe-meta {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0; margin-top: 18px;
    gap: 10px;
}
.recipe-meta .tile {
    text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.recipe-meta strong { font-family: var(--serif); font-size: 1.2rem; color: var(--primary); }
.recipe-meta small { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--soft-ink); }

.members-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
}
.members-pill.locked { background: rgba(194,59,34,0.12); color: var(--tomato); }
.members-pill.free { background: rgba(45,95,63,0.12); color: var(--primary); }
.members-pill svg { width: 14px; height: 14px; }

.recipe-body {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}
.ingredients-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    position: sticky; top: 100px;
    align-self: start;
}
.ingredients-card h3 { font-family: var(--serif); margin-bottom: 18px; }
.ingredients-card ul { list-style: none; }
.ingredients-card li {
    padding: 10px 0; border-bottom: 1px dashed var(--line);
    display: flex; gap: 10px; align-items: flex-start;
}
.ingredients-card li::before {
    content: '*'; color: var(--accent-dark);
    flex-shrink: 0; font-weight: 700;
}

.method-card h3 { font-family: var(--serif); margin-bottom: 22px; font-size: 1.6rem; }
.method-step {
    display: flex; gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.method-step .num {
    width: 44px; height: 44px;
    background: var(--primary); color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 1.3rem;
    flex-shrink: 0;
}
.method-step p { font-size: 1.02rem; color: var(--ink); padding-top: 8px; }

.paywall-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    margin: 30px 0;
    box-shadow: var(--shadow-lift);
}
.paywall-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 24px;
}
.paywall-icon svg { width: 36px; height: 36px; color: #fff; }
.paywall-card h3 { color: #fff; font-size: 1.8rem; margin-bottom: 14px; }
.paywall-card p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 560px; margin: 0 auto 30px; }
.paywall-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.paywall-features {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px; margin: 0 auto;
    text-align: left;
}
.paywall-features li {
    list-style: none;
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.92);
}
.paywall-features li::before {
    content: '*'; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

.free-banner {
    background: rgba(232,168,124,0.18);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 28px;
    margin-bottom: 40px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px;
}
.free-banner p { color: var(--ink); margin: 0; font-size: 0.95rem; }
.free-banner strong { color: var(--primary); }

/* -----------------------------------------------------------
   STORE / PRODUCT DETAIL
   ----------------------------------------------------------- */
.product-detail {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-detail .gallery {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/4;
}
.product-detail .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .info h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0; }
.product-detail .price-large {
    font-family: var(--serif); font-size: 2.4rem; color: var(--primary);
    margin: 18px 0;
}
.product-detail .features-list { list-style: none; margin: 24px 0; }
.product-detail .features-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    display: flex; gap: 10px;
}
.product-detail .features-list li::before {
    content: '+'; color: var(--accent-dark); font-weight: 700;
}
.product-detail .qty-row { display: flex; gap: 14px; align-items: center; margin: 24px 0; }
.qty-stepper {
    display: flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: 999px;
    overflow: hidden;
}
.qty-stepper button {
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px;
    font-size: 1.2rem;
}
.qty-stepper input { width: 50px; text-align: center; border: none; padding: 0; background: none; }

/* -----------------------------------------------------------
   CART & CHECKOUT
   ----------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.cart-rows { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.cart-row {
    display: grid; grid-template-columns: 90px 1fr auto auto;
    gap: 18px; align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-row .name { font-family: var(--serif); font-size: 1.1rem; }
.cart-row .price { font-weight: 600; color: var(--primary); }
.cart-row .remove {
    background: none; border: none; cursor: pointer;
    color: var(--tomato); font-size: 1.4rem;
}
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty svg { width: 80px; height: 80px; color: var(--line); margin-bottom: 20px; }

.summary-card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky; top: 100px;
}
.summary-card h3 { font-family: var(--serif); margin-bottom: 22px; }
.summary-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    color: var(--soft-ink);
}
.summary-row.total {
    border-top: 2px solid var(--ink);
    margin-top: 14px; padding-top: 18px;
    font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
    font-weight: 700;
}

/* -----------------------------------------------------------
   SUBSCRIBE PAGE
   ----------------------------------------------------------- */
.plans {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 920px; margin: 0 auto;
}
.plan-card {
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: transform .25s ease, border-color .25s ease;
}
.plan-card.featured { border-color: var(--primary); transform: scale(1.02); }
.plan-card:hover { transform: translateY(-4px); }
.plan-card .ribbon {
    position: absolute; top: -16px; right: 30px;
    background: var(--accent); color: var(--ink);
    padding: 6px 16px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
}
.plan-card h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 8px; }
.plan-price { font-family: var(--serif); font-size: 3rem; color: var(--primary); font-weight: 700; line-height: 1; margin: 16px 0; }
.plan-price small { font-family: var(--body); font-size: 0.9rem; color: var(--soft-ink); font-weight: 400; }
.plan-card ul { list-style: none; margin: 24px 0; }
.plan-card li {
    padding: 8px 0;
    display: flex; gap: 10px;
    color: var(--soft-ink); font-size: 0.92rem;
}
.plan-card li::before {
    content: '+'; color: var(--accent-dark); font-weight: 700;
}

/* -----------------------------------------------------------
   BLOG
   ----------------------------------------------------------- */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card {
    background: var(--paper); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s ease;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card .img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover img { transform: scale(1.06); }
.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: 0.78rem; color: var(--soft-ink); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 10px; flex: 1; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .excerpt { font-size: 0.92rem; }

.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-article h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0; line-height: 1.2; }
.blog-article .hero-img {
    aspect-ratio: 16/9;
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.blog-article .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-article p { font-size: 1.1rem; line-height: 1.85; margin-bottom: 24px; color: var(--ink); }
.blog-article .meta-row { color: var(--soft-ink); font-size: 0.9rem; margin-bottom: 20px; }

/* -----------------------------------------------------------
   LEGAL PAGES
   ----------------------------------------------------------- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.legal-wrap h1 { margin-bottom: 12px; }
.legal-wrap h2 { font-size: 1.5rem; margin: 40px 0 14px; color: var(--primary); }
.legal-wrap h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal-wrap p { margin-bottom: 16px; line-height: 1.8; }
.legal-wrap ul { margin: 0 0 22px 22px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 0.92rem;
}
.legal-wrap th, .legal-wrap td {
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
}
.legal-wrap th { background: var(--cream); font-weight: 600; }
.legal-wrap .updated { font-size: 0.9rem; color: var(--soft-ink); margin-bottom: 30px; }

/* -----------------------------------------------------------
   FAQ
   ----------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px -10px rgba(20,15,8,0.18);
}
.faq-item summary {
    cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.6rem; color: var(--accent-dark);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--soft-ink); }

/* -----------------------------------------------------------
   TEAM / ABOUT
   ----------------------------------------------------------- */
.team-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.team-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}
.team-card .photo {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: grid; place-items: center;
    color: var(--accent); font-family: var(--serif); font-size: 3rem;
}
.team-card .body { padding: 22px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.82rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px; }
.team-card .bio { font-size: 0.9rem; line-height: 1.6; }

/* -----------------------------------------------------------
   CONTACT
   ----------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
}
.contact-info-card {
    background: var(--primary); color: #fff;
    border-radius: var(--radius);
    padding: 40px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 18px; font-family: var(--serif); }
.contact-info-card p { color: rgba(255,255,255,0.85); margin-bottom: 22px; line-height: 1.7; }
.contact-info-card .ci-item { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.contact-info-card .ci-item:first-of-type { border-top: none; }
.contact-info-card .ci-item small { color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; }
.contact-info-card .ci-item div { color: #fff; font-size: 1.02rem; margin-top: 6px; }

/* -----------------------------------------------------------
   FEATURE STRIPS (home page sections)
   ----------------------------------------------------------- */
.value-strip {
    background: var(--ink);
    color: #fff;
    padding: 70px 0;
}
.value-strip .grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.value-strip .item h3 { color: #fff; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.value-strip .item p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.value-strip .item .icon {
    width: 52px; height: 52px;
    background: rgba(232,168,124,0.18);
    color: var(--accent);
    border-radius: 50%;
    display: grid; place-items: center;
    margin-bottom: 18px;
}
.value-strip .item .icon svg { width: 24px; height: 24px; }

.featured-recipe-spotlight {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}
.featured-recipe-spotlight .photo { min-height: 480px; background-size: cover; background-position: center; }
.featured-recipe-spotlight .copy { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.featured-recipe-spotlight h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 20px; }
.featured-recipe-spotlight .quote {
    font-family: var(--serif);
    font-size: 1.15rem; font-style: italic;
    color: var(--soft-ink);
    padding-left: 20px;
    border-left: 3px solid var(--accent);
    margin: 22px 0;
}

.testimonial-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}
.testimonial-strip h2 { color: #fff; }
.testimonials {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin-top: 50px;
}
.testimonial {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 32px;
    text-align: left;
}
.testimonial p { color: #fff; font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }
.testimonial .author {
    margin-top: 18px;
    font-family: var(--body);
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Newsletter ribbon */
.newsletter-ribbon {
    background: var(--accent);
    padding: 60px 0;
}
.newsletter-ribbon .inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}
.newsletter-ribbon h2 { font-family: var(--serif); color: var(--ink); margin: 0; }
.newsletter-ribbon p { color: var(--ink); margin-top: 10px; }
.newsletter-ribbon form {
    display: flex; gap: 12px;
}
.newsletter-ribbon input {
    flex: 1; padding: 14px 18px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: var(--paper);
    font-family: var(--body);
}
.newsletter-ribbon button {
    background: var(--ink); color: #fff;
    border: none; padding: 14px 28px;
    border-radius: 999px; font-weight: 600;
    cursor: pointer;
}

/* Page header (lighter than hero band) */
.page-head {
    padding: 70px 0 40px;
    text-align: center;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-head p { max-width: 620px; margin: 14px auto 0; color: var(--soft-ink); font-size: 1.05rem; }

/* Section heading */
.section-heading {
    text-align: center;
    max-width: 660px; margin: 0 auto 50px;
}
.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-heading p { color: var(--soft-ink); font-size: 1.05rem; }

/* Two col content */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.two-col img { border-radius: var(--radius); }

/* Filter bar */
.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.filter-bar a {
    padding: 10px 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 0.88rem; font-weight: 500;
    color: var(--ink); background: var(--paper);
    transition: all .2s ease;
}
.filter-bar a:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero-home-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-home-mosaic { grid-template-rows: 160px 110px 160px; }
    .hero-side { grid-template-columns: 1fr; }
    .hero-side .copy { padding: 60px 30px; }
    .hero-side .photo { min-height: 280px; }
    .auth-hero { grid-template-columns: 1fr; min-height: auto; }
    .auth-photo { min-height: 200px; }
    .auth-form-wrap { padding: 40px 24px; }
    .recipe-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .recipe-body { grid-template-columns: 1fr; }
    .ingredients-card { position: static; }
    .recipe-hero { grid-template-columns: 1fr; }
    .recipe-hero .copy { padding: 40px 30px; }
    .featured-recipe-spotlight { grid-template-columns: 1fr; }
    .featured-recipe-spotlight .copy { padding: 40px 30px; }
    .featured-recipe-spotlight .photo { min-height: 320px; }
    .product-detail { grid-template-columns: 1fr; gap: 40px; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .value-strip .grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; gap: 18px; }
    .photo-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: 180px 180px; }
    .photo-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .recipe-grid, .recipe-grid-4 { grid-template-columns: 1fr 1fr; gap: 18px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .plans { grid-template-columns: 1fr; }
    .plan-card.featured { transform: none; }
    .recipe-meta { grid-template-columns: repeat(2, 1fr); }
    .newsletter-ribbon .inner { grid-template-columns: 1fr; }
    .newsletter-ribbon form { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: 160px 160px 160px; }
    .photo-mosaic .tile:nth-child(1), .photo-mosaic .tile:nth-child(6) { grid-row: auto; }
    .photo-strip { grid-template-columns: repeat(3, 1fr); }
    .recipe-gallery { grid-template-columns: repeat(2, 1fr); }
    .value-strip .grid { grid-template-columns: 1fr; }
    .paywall-card { padding: 36px 24px; }
    .paywall-features { grid-template-columns: 1fr; }
    .hero-home-mosaic { grid-template-rows: 140px 100px 140px; }
}
@media (max-width: 480px) {
    .container, .container-wide, .container-narrow { padding: 0 18px; }
    .recipe-grid, .recipe-grid-4 { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .team-grid { grid-template-columns: 1fr; }
    .hero-home-cta { flex-direction: column; }
    .hero-home-cta .btn { width: 100%; justify-content: center; }
    .photo-strip { grid-template-columns: repeat(2, 1fr); }
    .recipe-gallery { grid-template-columns: 1fr; }
    .photo-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(6, 200px); }
    .cookie-notice { flex-direction: column; }
    .nav-logo { font-size: 1.15rem; }
    .logo-text small { display: none; }
    .nav-actions .btn-join { display: none; }
    .hero-home-stats { gap: 22px; flex-wrap: wrap; }
    .filter-bar { gap: 6px; }
    .filter-bar a { font-size: 0.78rem; padding: 8px 12px; }
}
