/* ===================================================================
   Mirmae Cucina - Tuscan Italian Kitchen
   Editorial / warm Tuscan palette. Distinctive from the structural model.
   =================================================================== */

:root {
  /* Tuscan palette: terracotta, olive, wine, warm cream, ink */
  --terracotta:   #b3502f;
  --terracotta-d: #8c3a20;
  --wine:         #6b2233;
  --olive:        #5e6a3a;
  --olive-d:      #444d28;
  --gold:         #c98a2b;
  --ink:          #2c241d;
  --ink-soft:     #564a3e;
  --cream:        #f7f0e4;
  --cream-2:      #efe5d3;
  --paper:        #fdfaf3;
  --line:         #e3d7c2;

  --display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 2px 14px rgba(44,36,29,0.07);
  --shadow-md: 0 14px 44px rgba(44,36,29,0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 18px;              /* older audience: large body */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-d); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* subtle paper grain on big sections */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,243,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(44,36,29,0.04);
}
.nav-container {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--display);
  font-size: 25px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em;
}
.nav-logo .logo-mark { font-size: 22px; }
.nav-logo b { color: var(--terracotta); font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 26px; color: var(--ink); cursor: pointer; padding: 6px;
}
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.nav-links .nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 9px 18px; border-radius: 50px; border: none;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--terracotta); color: #fff; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(44,36,29,0.62) 0%, rgba(107,34,51,0.55) 55%, rgba(140,58,32,0.72) 100%),
    url("https://images.unsplash.com/photo-1572453800999-e8d2d1589b7c?w=1600&q=80") center/cover no-repeat;
  color: #fff;
  padding: 116px 28px 124px;
  overflow: hidden;
}
.hero::after { /* warm vignette / edge */
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -120px 120px -60px rgba(44,36,29,0.55);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: #f0d6a8; }
.hero-rule {
  width: 64px; height: 2px; background: var(--gold);
  margin: 22px auto 26px;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 82px);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #f3d8a6;
}
.hero p {
  font-size: 21px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  max-width: 660px;
  margin: 28px auto 38px;
  font-weight: 400;
}
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600; font-size: 17px;
  letter-spacing: 0.01em;
  border-radius: 50px;
  padding: 16px 38px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  border: none;
}
.btn-primary {
  background: var(--gold); color: #2a1d07;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.btn-primary:hover { background: #e0a13f; color: #2a1d07; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.32); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  margin-left: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* small credibility strip under hero */
.cred-strip {
  background: var(--ink);
  color: rgba(247,240,228,0.86);
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cred-strip .container {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  align-items: center; justify-content: center;
  font-size: 14.5px; letter-spacing: 0.02em;
}
.cred-strip span { display: inline-flex; align-items: center; gap: 9px; }
.cred-strip .dot { color: var(--gold); }

/* ===================== SECTION HEADERS ===================== */
.section { padding: 96px 28px; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  margin: 14px 0 16px;
}
.section-head p { font-size: 19px; color: var(--ink-soft); line-height: 1.7; }

/* ===================== RECIPES ===================== */
.recipes { background: var(--cream); }
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.recipe-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.recipe-figure { position: relative; overflow: hidden; }
.recipe-figure img {
  width: 100%; height: 232px; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.recipe-card:hover .recipe-figure img { transform: scale(1.05); }
.recipe-no {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--display); font-style: italic;
  font-size: 16px; color: #fff;
  background: rgba(44,36,29,0.55);
  backdrop-filter: blur(3px);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.recipe-region {
  position: absolute; bottom: 14px; right: 14px;
  background: var(--paper); color: var(--terracotta-d);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.recipe-body { padding: 26px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.recipe-body h3 { font-size: 25px; margin-bottom: 10px; }
.recipe-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px; color: var(--ink-soft);
  margin-bottom: 14px; font-weight: 500;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.recipe-meta span { display: inline-flex; align-items: center; gap: 6px; }
.recipe-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.btn-expand {
  background: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 50px;
  cursor: pointer; width: 100%;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-expand:hover { background: var(--ink); color: var(--paper); }
.recipe-details {
  display: none;
  margin-top: 20px; padding-top: 20px;
  border-top: 2px dotted var(--line);
}
.recipe-details.active { display: block; animation: reveal .35s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.recipe-details h4 {
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta-d);
  margin: 20px 0 10px;
  font-family: var(--body); font-weight: 700;
}
.recipe-details h4:first-child { margin-top: 0; }
.recipe-details ul, .recipe-details ol { padding-left: 22px; }
.recipe-details li { font-size: 16px; line-height: 1.7; margin-bottom: 7px; color: var(--ink); }
.recipe-details ol li::marker { color: var(--terracotta); font-weight: 700; }

/* ===================== SHAPEON (offer) ===================== */
.shapeon {
  position: relative;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(201,138,43,0.22), transparent 60%),
    linear-gradient(165deg, var(--wine) 0%, #4f1827 60%, var(--ink) 100%);
  color: #fff;
  padding: 100px 28px;
}
.shapeon--bottom {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(201,138,43,0.20), transparent 60%),
    linear-gradient(165deg, var(--olive-d) 0%, #3a3f24 55%, var(--ink) 100%);
}
.shapeon .section-head h2 { color: #fff; }
.shapeon .section-head p { color: rgba(255,255,255,0.82); }
.shapeon-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #f3d8a6;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 50px;
}
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; max-width: 1040px; margin: 0 auto 40px;
  align-items: stretch;
}
.product-card {
  position: relative;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 34px 26px 30px;
  text-align: center;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.4); box-shadow: 0 16px 46px rgba(0,0,0,0.35); }
.product-card.featured {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.product-tag {
  display: inline-block; align-self: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 18px;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.22);
}
.product-card.featured .product-tag { background: var(--gold); color: #2a1d07; border-color: var(--gold); }
.product-card.best .product-tag { background: #f3d8a6; color: #4f1827; border-color: #f3d8a6; }
.product-img { width: 152px; height: 196px; object-fit: contain; margin: 6px auto 18px; }
.product-bottles { font-family: var(--display); font-size: 28px; font-weight: 600; margin-bottom: 12px; color: #fff; }
.product-old { color: rgba(255,255,255,0.5); text-decoration: line-through; font-size: 15px; margin-bottom: 4px; }
.product-price { font-family: var(--display); font-size: 42px; font-weight: 600; color: #f3d8a6; line-height: 1; }
.product-price span { font-family: var(--body); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); }
.product-total { font-size: 15px; color: rgba(255,255,255,0.85); margin-top: 8px; font-weight: 600; }
.product-save { color: #9bd17a; font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.product-ship { font-size: 13.5px; color: rgba(255,255,255,0.75); margin: 12px 0 22px; }
.btn-order {
  margin-top: auto;
  display: block; width: 100%;
  background: var(--gold); color: #2a1d07;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px; border-radius: 50px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-order:hover { background: #e6a945; color: #2a1d07; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }

.trust-badges {
  display: flex; justify-content: center; align-items: center;
  gap: 36px; flex-wrap: wrap; max-width: 760px; margin: 8px auto 30px;
}
.trust-badges img { height: 46px; width: auto; opacity: 0.9; filter: brightness(0) invert(1); }
.guarantee {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 24px 32px;
  max-width: 720px; margin: 0 auto;
}
.guarantee img { width: 78px; height: 78px; flex-shrink: 0; }
.guarantee p { color: rgba(255,255,255,0.88); font-size: 15.5px; margin: 0; text-align: left; }
.guarantee strong { color: #f3d8a6; }

/* ===================== ABOUT ===================== */
.about { background: var(--paper); }
.about-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.about-figure { position: relative; }
.about-figure img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-figure .figure-frame {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius); z-index: -1;
}
.about-copy .eyebrow { display: block; margin-bottom: 14px; }
.about-copy h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 22px; }
.about-copy p { font-size: 18px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.75; }
.about-copy p strong { color: var(--ink); }
.kitchen-values {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px;
  margin-top: 26px;
}
.kitchen-values li {
  font-size: 16px; color: var(--ink); display: flex; gap: 11px; align-items: flex-start;
}
.kitchen-values .vk { color: var(--terracotta); font-weight: 700; font-family: var(--display); }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: rgba(247,240,228,0.82); padding: 72px 28px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.6fr; gap: 52px; margin-bottom: 44px; }
.footer-logo { font-family: var(--display); font-size: 26px; color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-logo b { color: var(--gold); font-weight: 600; }
.footer-brand p { color: rgba(247,240,228,0.68); font-size: 16px; line-height: 1.7; max-width: 340px; }
.footer h4 { color: var(--gold); font-family: var(--body); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(247,240,228,0.7); font-size: 16px; }
.footer-links a:hover { color: var(--gold); }
.footer-company p { color: rgba(247,240,228,0.7); font-size: 15px; line-height: 1.75; }
.footer-company strong { color: #fff; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; margin-bottom: 20px; }
.footer-disclaimer p { color: rgba(247,240,228,0.5); font-size: 13.5px; line-height: 1.7; max-width: 1080px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; text-align: center; }
.footer-bottom p { color: rgba(247,240,228,0.5); font-size: 13.5px; margin: 0; }

/* ===================== LEGAL PAGES ===================== */
.legal-main { max-width: 880px; margin: 80px auto; padding: 0 28px; line-height: 1.78; }
.legal-main h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 10px; }
.legal-main h2 { font-size: clamp(22px, 3vw, 29px); margin: 38px 0 14px; }
.legal-main h3 { font-size: 20px; margin: 20px 0 10px; }
.legal-main p { margin-bottom: 15px; font-size: 17px; color: var(--ink); }
.legal-main ul, .legal-main ol { margin: 14px 0 14px 28px; }
.legal-main li { margin-bottom: 9px; font-size: 17px; }
.legal-main a { color: var(--terracotta); text-decoration: underline; }
.legal-meta { opacity: 0.65; font-style: italic; margin-bottom: 34px; }
.company-contact-box {
  background: var(--cream);
  border-left: 5px solid var(--terracotta);
  padding: 26px; border-radius: var(--radius); margin-top: 26px;
}
.company-contact-box h3 { margin-top: 0; }
.company-contact-box p { margin-bottom: 6px; }
.fda-box {
  background: #fff8e1;
  border-left: 5px solid #f4a261;
  padding: 26px; border-radius: var(--radius); margin-bottom: 34px;
}
.fda-box h2 { margin-top: 0; color: #9a6a14; }
.fda-box p { margin-bottom: 0; }

/* ===================== MOTION / A11Y ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .recipe-card:hover .recipe-figure img { transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-figure img { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    padding: 22px 28px; gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-cta { width: 100%; text-align: center; }
  .recipes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 70px 22px; }
  .hero { padding: 84px 22px 92px; }
  .btn-ghost { margin-left: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .kitchen-values { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; text-align: center; }
  .guarantee p { text-align: center; }
}
@media (max-width: 460px) {
  .hero p { font-size: 18px; }
  .section-head p { font-size: 17px; }
}
