/* ============================================================
   Jezaca Cucina, Neapolitan recipes, without vegetable oil
   Structural variant: Cocina (fixed left sidebar, full-bleed hero,
   vertical timeline principles, accordion recipes, two-column about)
   Breakpoints: 1100 / 760 / 440
   ============================================================ */

:root {
  --cream: #fbf3e6;
  --paper: #fffbf4;
  --ink: #271a12;
  --ink-soft: #5c4a3c;
  --ink-faint: #8a7768;
  --terracotta: #b34e28;
  --terracotta-dark: #7d3419;
  --terracotta-deep: #4a2013;
  --blue: #1f4d59;
  --blue-dark: #123039;
  --olive: #6d7a3c;
  --gold: #c8973f;
  --line: rgba(39, 26, 18, 0.13);
  --line-soft: rgba(39, 26, 18, 0.07);
  --shadow: 0 18px 44px rgba(39, 26, 18, 0.14);
  --shadow-soft: 0 8px 24px rgba(39, 26, 18, 0.09);
  --sidebar-w: 268px;
  --radius: 6px;
  --radius-lg: 14px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff6ea;
  box-shadow: 0 10px 28px rgba(179, 78, 40, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(179, 78, 40, 0.44); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 251, 244, 0.55);
}
.btn-ghost:hover { background: rgba(255, 251, 244, 0.14); border-color: #fff; }

/* ---------------- Sidebar ---------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 66px;
  background: linear-gradient(120deg, var(--terracotta-deep), var(--blue-dark));
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 60;
  box-shadow: 0 4px 18px rgba(39, 26, 18, 0.25);
}
.topbar .brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.topbar .brand-mini .mark { font-size: 1.3rem; }

.burger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(251, 243, 230, 0.35);
  background: rgba(251, 243, 230, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--cream);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(190deg, var(--terracotta-deep) 0%, var(--blue-dark) 100%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 40px 30px 30px;
  z-index: 70;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
}
.sidebar-brand .mark {
  font-size: 1.9rem;
  line-height: 1;
}
.sidebar-brand .brand-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.sidebar-brand .brand-text em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}
.sidebar-nav a {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(251, 243, 230, 0.78);
  padding: 12px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  color: var(--cream);
  background: rgba(251, 243, 230, 0.09);
  padding-left: 20px;
}

.sidebar-foot {
  border-top: 1px solid rgba(251, 243, 230, 0.16);
  padding-top: 22px;
  margin-top: 30px;
}
.sidebar-foot .tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(251, 243, 230, 0.55);
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.5;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.5);
  z-index: 65;
}

/* ---------------- Main / Hero ---------------- */

.main {
  margin-left: var(--sidebar-w);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff6ea;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(190deg, rgba(23, 15, 10, 0.42) 0%, rgba(23, 15, 10, 0.58) 46%, rgba(23, 15, 10, 0.86) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-inner .kicker { color: var(--gold); }
.hero-inner .kicker::before { background: var(--gold); }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  color: #fff9f0;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: rgba(255, 249, 240, 0.88);
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 249, 240, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255, 249, 240, 0.9), transparent);
}

/* ---------------- Reveal-on-scroll ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Section shell ---------------- */

section { padding: 108px 0; }
.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}
.section-alt { background: var(--paper); }

/* ---------------- Principles (vertical timeline) ---------------- */

.principles-list {
  position: relative;
  max-width: 760px;
  margin-top: 12px;
  padding-left: 6px;
}
.principle-item {
  position: relative;
  display: flex;
  gap: 30px;
  padding: 0 0 52px 0;
}
.principle-item:last-child { padding-bottom: 0; }

.principle-rail {
  position: relative;
  width: 46px;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.principle-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--terracotta);
  font-size: 1.15rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.principle-item .connector {
  position: absolute;
  top: 46px;
  bottom: -6px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(var(--line), var(--line));
}
.principle-item:last-child .connector { display: none; }

.principle-body { padding-top: 4px; }
.principle-body .local-word {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.principle-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.principle-body p { color: var(--ink-soft); max-width: 520px; }

/* ---------------- Recipes (accordion) ---------------- */

.recipes-list { display: flex; flex-direction: column; gap: 14px; }

.recipe {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.recipe.is-open { box-shadow: var(--shadow); border-color: transparent; }

.recipe-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.recipe-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
  width: 30px;
}
.recipe-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--cream);
}
.recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recipe-head-text { flex: 1 1 auto; min-width: 0; }
.recipe-head-text h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.recipe-head-text .recipe-tag {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.recipe-chevron {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}
.recipe.is-open .recipe-chevron {
  transform: rotate(135deg);
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.recipe.is-open .recipe-chevron svg { stroke: #fff; }
.recipe-chevron svg { width: 14px; height: 14px; stroke: var(--ink); }

.recipe-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.recipe.is-open .recipe-details { max-height: 1600px; }

.recipe-details-inner {
  padding: 6px 26px 34px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
}
.recipe-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }

.recipe-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.recipe-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recipe-meta span.label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.recipe-meta span.val {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--terracotta);
  font-weight: 600;
}

.recipe-desc { color: var(--ink-soft); margin-bottom: 22px; }

.recipe-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 34px;
}
.recipe-cols h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.recipe-cols ul, .recipe-cols ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.recipe-cols li { margin-bottom: 9px; }
.recipe-cols ul { list-style: none; padding-left: 0; }
.recipe-cols ul li {
  padding-left: 22px;
  position: relative;
}
.recipe-cols ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.recipe-cols ol li::marker {
  font-family: var(--serif);
  color: var(--terracotta);
  font-weight: 700;
}

/* ---------------- About (two column + quote) ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); }
.about-copy p + p { margin-top: 16px; }

.quote-box {
  background: linear-gradient(165deg, var(--blue), var(--blue-dark));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: relative;
  box-shadow: var(--shadow);
}
.quote-box::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 5rem;
  color: rgba(251, 243, 230, 0.28);
  position: absolute;
  top: 6px;
  left: 26px;
  line-height: 1;
}
.quote-box blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.quote-box cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--ink);
  color: rgba(251, 243, 230, 0.82);
  padding: 76px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(251, 243, 230, 0.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 14px;
}
.footer-about p {
  color: rgba(251, 243, 230, 0.62);
  max-width: 420px;
}
.footer-links h4, .company-contact-box h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.company-contact-box {
  background: rgba(251, 243, 230, 0.05);
  border: 1px solid rgba(251, 243, 230, 0.13);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.company-contact-box p {
  color: rgba(251, 243, 230, 0.72);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(251, 243, 230, 0.72); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(251, 243, 230, 0.48);
}

/* ---------------- Legal pages ---------------- */

.legal-page .main { padding-bottom: 20px; }
.legal-hero {
  padding: 150px 0 60px;
  background: linear-gradient(180deg, var(--paper), var(--cream));
  border-bottom: 1px solid var(--line-soft);
}
.legal-hero .kicker { margin-bottom: 16px; }
.legal-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.legal-hero .updated { color: var(--ink-faint); margin-top: 14px; font-size: 0.92rem; }

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 44px 100px;
}
.legal-body h2 {
  font-size: 1.5rem;
  margin: 44px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

.company-contact-box.legal {
  background: var(--paper);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.company-contact-box.legal h4 { color: var(--terracotta); }
.company-contact-box.legal p { color: var(--ink-soft); }

/* ---------------- Responsive: <=1100px ---------------- */

@media (max-width: 1100px) {
  :root { --sidebar-w: 240px; }
  .container { padding: 0 32px; }
  section { padding: 88px 0; }
  .recipe-details-inner { grid-template-columns: 220px 1fr; gap: 26px; }
  .about-grid { gap: 48px; }
}

/* ---------------- Responsive: <=760px (sidebar becomes drawer) ---------------- */

@media (max-width: 760px) {
  body { font-size: 17px; }
  .topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    box-shadow: 24px 0 60px rgba(0,0,0,0.3);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop.is-open { display: block; }
  .main { margin-left: 0; padding-top: 66px; }
  .hero { min-height: 82vh; }
  .container { padding: 0 24px; }
  section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }

  .principle-item { gap: 20px; padding-bottom: 40px; }
  .principle-rail { width: 38px; }
  .principle-dot { width: 38px; height: 38px; font-size: 1rem; }
  .principle-item .connector { top: 38px; }

  .recipe-details-inner { grid-template-columns: 1fr; }
  .recipe-photo { aspect-ratio: 16/10; }
  .recipe-cols { grid-template-columns: 1fr; gap: 22px; }
  .recipe-head { padding: 16px 18px; gap: 14px; }
  .recipe-thumb { width: 54px; height: 54px; }
  .recipe-head-text h3 { font-size: 1.18rem; }

  .about-grid { grid-template-columns: 1fr; }
  .quote-box { padding: 34px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------- Responsive: <=440px ---------------- */

@media (max-width: 440px) {
  .container { padding: 0 18px; }
  .hero-inner { padding: 0 20px; gap: 16px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .recipe-head { flex-wrap: wrap; }
  .recipe-thumb { display: none; }
  .recipe-meta { gap: 14px; }

  .legal-body { padding: 50px 20px 70px; }
  .legal-hero { padding: 130px 0 44px; }
}
