/* Iagoli Cuisine, Alsatian recipe journal */

:root {
  --timber: #2c1b12;
  --timber-deep: #211309;
  --parchment: #f7f0e3;
  --paper: #fffdf7;
  --wine: #7e2231;
  --wine-deep: #5f1723;
  --gold: #c08a2d;
  --gold-soft: #e3c98f;
  --moss: #55663f;
  --ink: #33241a;
  --ink-soft: #6b5847;
  --line: #e2d5bd;
  --sidebar-w: 250px;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
}

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--timber); }

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

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(175deg, var(--timber) 0%, var(--timber-deep) 100%);
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  padding: 2.4rem 1.8rem;
  z-index: 40;
  border-right: 3px solid var(--wine);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--parchment);
}

.brand-mark { font-size: 1.9rem; line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-tag {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(227, 201, 143, 0.25);
  padding-bottom: 1.4rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  margin-top: 2.2rem;
  gap: 0.35rem;
}

.side-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.side-nav a:hover {
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-soft);
}

.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(227, 201, 143, 0.25);
}

.side-foot a {
  color: rgba(247, 240, 227, 0.66);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.side-foot a:hover { color: var(--gold-soft); }

/* Mobile toggle */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--timber);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 12px rgba(33, 19, 9, 0.35);
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--parchment);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33, 19, 9, 0.55);
  z-index: 30;
}

.scrim.show { display: block; }

/* ---------- Layout ---------- */

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

section { padding: 5.5rem clamp(1.4rem, 5vw, 5rem); }

.section-head { max-width: 46rem; margin-bottom: 3rem; }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-sub { margin-top: 0.9rem; color: var(--ink-soft); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 19, 9, 0.55) 0%, rgba(33, 19, 9, 0.42) 45%, rgba(95, 23, 35, 0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
  padding: 6rem 1.5rem;
}

.hero-inner .kicker { color: var(--gold-soft); }

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.08;
  color: #fffdf7;
  text-shadow: 0 2px 24px rgba(33, 19, 9, 0.45);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero-sub {
  margin: 1.4rem auto 2.4rem;
  max-width: 36rem;
  color: rgba(255, 253, 247, 0.92);
  font-size: 1.08rem;
}

.btn {
  display: inline-block;
  background: var(--wine);
  color: #fffdf7;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.3rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 253, 247, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover { background: var(--wine-deep); transform: translateY(-2px); }

/* ---------- Principles timeline ---------- */

.principles { background: var(--paper); }

.timeline {
  list-style: none;
  position: relative;
  max-width: 44rem;
  padding-left: 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--wine) 100%);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding: 0 0 3rem 0;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: relative;
  z-index: 2;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 5px var(--paper);
}

.tl-word {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.tl-body h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.45rem; }

.tl-body p:last-child { color: var(--ink-soft); }

/* ---------- Recipes accordion ---------- */

.recipes {
  background:
    radial-gradient(ellipse at top right, rgba(192, 138, 45, 0.08), transparent 55%),
    var(--parchment);
}

.accordion {
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acc-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.acc-item.open {
  border-color: var(--gold);
  box-shadow: 0 12px 34px rgba(44, 27, 18, 0.12);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 1.35rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.acc-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold);
  min-width: 2.4rem;
}

.acc-titles { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }

.acc-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--timber);
  transition: color 0.25s ease;
}

.acc-head:hover .acc-title { color: var(--wine); }

.acc-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.acc-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--wine);
  border-bottom: 2px solid var(--wine);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}

.acc-item.open .acc-chevron { transform: rotate(225deg); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.acc-panel-inner {
  padding: 0 1.6rem 2rem;
  border-top: 1px solid var(--line);
}

.acc-panel-inner > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  margin: 1.6rem 0 1.4rem;
}

.acc-desc { color: var(--ink-soft); max-width: 44rem; }

.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 1.6rem;
}

.meta li {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wine);
  background: rgba(126, 34, 49, 0.08);
  border: 1px solid rgba(126, 34, 49, 0.22);
  border-radius: 100px;
  padding: 0.32rem 0.95rem;
}

.rec-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.4rem;
}

.rec-cols h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.ing { list-style: none; }

.ing li {
  padding: 0.42rem 0 0.42rem 1.2rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}

.ing li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 2.6rem;
  font-size: 0.98rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--timber);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Kitchen / About ---------- */

.kitchen { background: var(--paper); }

.kitchen-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: start;
  max-width: 62rem;
}

.kitchen-text p { margin-bottom: 1.2rem; }

.kitchen-text p:last-child { margin-bottom: 0; }

.kitchen-quote {
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--parchment);
  border-radius: 8px;
  padding: 2.4rem 2.2rem;
  position: relative;
}

.kitchen-quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--gold-soft);
  position: absolute;
  top: 0.9rem;
  left: 1.4rem;
  opacity: 0.85;
}

.kitchen-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 1.6rem;
}

.kitchen-quote cite {
  display: block;
  margin-top: 1.3rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

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

.site-foot {
  background: linear-gradient(175deg, var(--timber) 0%, var(--timber-deep) 100%);
  color: var(--parchment);
  text-align: center;
  padding: 3.6rem clamp(1.4rem, 5vw, 5rem) 2.6rem;
  border-top: 3px solid var(--wine);
}

.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin: 1.6rem 0;
}

.foot-nav a {
  color: rgba(247, 240, 227, 0.78);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.foot-nav a:hover { color: var(--gold-soft); }

.foot-legal {
  font-size: 0.8rem;
  color: rgba(247, 240, 227, 0.6);
  line-height: 1.7;
}

.foot-copy {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(247, 240, 227, 0.45);
}

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

.legal-top {
  background: linear-gradient(175deg, var(--timber) 0%, var(--timber-deep) 100%);
  border-bottom: 3px solid var(--wine);
  padding: 1.4rem clamp(1.4rem, 5vw, 5rem);
}

.legal-top a {
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.legal-top a:hover { color: var(--gold-soft); }

.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.6rem 1.4rem 4.6rem;
}

.legal-wrap h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--gold);
}

.legal-wrap h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.2rem 0 0.7rem;
}

.legal-wrap p { margin-bottom: 1rem; }

.legal-wrap ul { margin: 0 0 1rem 1.4rem; }

.legal-wrap li { margin-bottom: 0.45rem; }

.legal-wrap a { color: var(--wine); }

.company-contact-box {
  margin-top: 3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wine);
  border-radius: 6px;
  padding: 1.6rem 1.8rem;
}

.company-contact-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.company-contact-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- Reveal ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .rv-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .acc-panel { transition: none; }
}

/* ---------- Breakpoints: 1100 / 760 / 440 ---------- */

@media (max-width: 1100px) {
  :root { --sidebar-w: 210px; }
  .sidebar { padding: 2rem 1.3rem; }
  .rec-cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .kitchen-grid { gap: 2.2rem; }
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(33, 19, 9, 0.4);
  }
  .sidebar-toggle { display: flex; }
  .content { margin-left: 0; }
  section { padding: 3.6rem 1.3rem; }
  .hero-inner { padding: 5rem 1.2rem; }
  .kitchen-grid { grid-template-columns: 1fr; }
  .acc-head { padding: 1.1rem 1.1rem; gap: 0.9rem; }
  .acc-panel-inner { padding: 0 1.1rem 1.6rem; }
  .acc-panel-inner > img { height: 220px; }
  .timeline::before { left: 21px; }
  .tl-dot { flex-basis: 40px; height: 40px; font-size: 0.95rem; }
  .tl-item { gap: 1.1rem; padding-bottom: 2.4rem; }
}

@media (max-width: 440px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-sub { font-size: 1rem; }
  .acc-num { font-size: 1.3rem; min-width: 1.8rem; }
  .acc-title { font-size: 1.15rem; }
  .acc-cat { font-size: 0.68rem; }
  .meta { gap: 0.4rem; }
  .meta li { font-size: 0.72rem; padding: 0.26rem 0.7rem; }
  .kitchen-quote { padding: 2rem 1.5rem; }
  .kitchen-quote p { font-size: 1.15rem; }
  .foot-nav { gap: 0.4rem 1rem; }
}
