/* ============================================================
   CASA DI GREGORIO — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bone: #f7f2ea;
  --paper: #faf6ef;
  --ink: #1a0e10;
  --ink-soft: #3a2a2c;
  --wine: #6b1f2b;
  --wine-deep: #4a1119;
  --wine-dark: #2e0a10;
  --gold: #b8985a;
  --mute: #8a7b74;
  --rule: rgba(26,14,16,.14);
  --rule-light: rgba(26,14,16,.08);
  --wine-rule: rgba(107,31,43,.25);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1440px;
  --pad: clamp(20px, 4.5vw, 64px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--wine); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* Typography */
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  font-weight: 500;
  color: var(--wine);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--wine); display: inline-block; }
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
h1 { font-size: clamp(52px, 9vw, 128px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
}

p { max-width: 62ch; }
p + p { margin-top: 1em; }

/* Layout primitives */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 880px; }
.rule { height: 1px; background: var(--rule); border: 0; }

/* =========================
   NAV
   ========================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: normal;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250,246,239,.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--rule-light);
  padding: 14px var(--pad);
}
.nav.on-dark:not(.scrolled) { color: var(--paper); }
.nav.on-dark:not(.scrolled) .nav__link:hover { color: #fff; }

.nav__brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 10px;
}
.nav__brand span.mono {
  width: 28px; height: 28px; border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0; font-weight: 500;
}
.nav__links {
  display: flex; gap: 32px; align-items: center;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 400;
}
.nav__link { position: relative; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta {
  font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--wine); color: #fff; border-color: var(--wine); }

.nav__burger {
  display: none; width: 32px; height: 32px; position: relative; z-index: 101;
}
.nav__burger span {
  position: absolute; left: 4px; right: 4px; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s var(--ease);
}
.nav__burger span:nth-child(1) { top: 12px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav.open .nav__burger span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--wine-dark); color: var(--paper);
  z-index: 99; display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  padding: 0 var(--pad);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(32px, 7vw, 56px); font-weight: 300;
  padding: 10px 0; display: block; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .35s; }
.mobile-menu__foot {
  position: absolute; bottom: 40px; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .6;
}

/* =========================
   HERO (homepage)
   ========================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  padding: 0 var(--pad) clamp(48px, 7vh, 96px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--wine-dark);
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55; filter: grayscale(8%) saturate(105%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.6), transparent 60%),
    linear-gradient(180deg, rgba(46,10,16,.45) 0%, rgba(26,14,16,.15) 35%, rgba(26,14,16,.75) 100%);
}
.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
.hero__title {
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: .92;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: #e9d2b2;
}
.hero__meta {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-align: right; line-height: 1.9;
  opacity: .85;
}
.hero__meta strong { font-weight: 500; letter-spacing: .2em; }

.hero__marque {
  position: absolute; left: var(--pad); top: clamp(96px, 14vh, 140px);
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; opacity: .7;
  display: flex; align-items: center; gap: 16px;
}
.hero__marque::after { content: ""; width: 48px; height: 1px; background: currentColor; }

.hero__scroll {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  opacity: .6;
}

/* =========================
   SECTION BLOCKS
   ========================= */
section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: minmax(140px, 20%) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 7vh, 80px);
  align-items: baseline;
}
.section-head__num {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--wine); letter-spacing: .02em;
}
.section-head__num::before {
  content: ""; display: inline-block; width: 32px; height: 1px;
  background: var(--wine); margin-right: 14px; vertical-align: middle;
}
.section-head__title { min-width: 0; max-width: 20em; }
.section-head__title h2 { line-height: 1.02; }

/* Intro block on home */
.intro {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro__quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35; color: var(--ink);
  border-left: 1px solid var(--wine); padding-left: 24px;
}
.intro__body { padding-top: 8px; }
.intro__body p { font-size: 16px; color: var(--ink-soft); }

/* Highlights strip */
.highlights {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border-block: 1px solid var(--rule);
}
.highlights__cell {
  background: var(--paper); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.highlights__cell h4 { font-style: italic; font-weight: 400; }
.highlights__cell p { font-size: 14px; color: var(--ink-soft); }
.highlights__cell .num {
  font-family: var(--serif); font-size: 12px; font-style: italic; color: var(--wine);
}

/* Image pairs */
.pair {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.pair--reverse { grid-template-columns: 5fr 7fr; }
.pair figure { position: relative; overflow: hidden; }
.pair figure img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4/5; transform: scale(1.02); transition: transform 1.4s var(--ease);
}
.pair.in-view figure img { transform: scale(1); }
.pair--wide figure img { aspect-ratio: 16/10; }
.pair figcaption {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--mute); margin-top: 14px;
}

/* Menu teaser cards */
.menu-list { display: grid; gap: 0; }
.menu-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px;
  align-items: baseline; padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
}
.menu-item__num {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--wine); width: 32px;
}
.menu-item__name {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-weight: 400;
  letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
}
.menu-item__name small {
  font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--mute); font-weight: 400;
}
.menu-item__desc {
  font-size: 14px; color: var(--ink-soft); margin-top: 4px; grid-column: 2;
}
.menu-item__price {
  font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--wine);
  white-space: nowrap;
}

.menu-section + .menu-section { margin-top: clamp(48px, 7vh, 80px); }
.menu-section__title {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--wine-rule);
}
.menu-section__title h3 { font-style: italic; font-weight: 400; }
.menu-section__title .it {
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--wine);
}

/* Prix fixe box */
.prix {
  background: var(--wine-dark); color: var(--paper);
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; position: relative; overflow: hidden;
}
.prix::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184,152,90,.15), transparent 60%);
  pointer-events: none;
}
.prix h3 { font-style: italic; color: #e9d2b2; }
.prix .price {
  font-family: var(--serif); font-size: clamp(72px, 10vw, 140px); line-height: .9;
  color: #e9d2b2; font-weight: 300; letter-spacing: -.04em;
}
.prix .price sup { font-size: .4em; vertical-align: super; opacity: .7; margin-left: 6px; }
.prix p { color: rgba(247,242,234,.8); font-size: 15px; }
.prix .eyebrow { color: #e9d2b2; }
.prix .eyebrow::before { background: #e9d2b2; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
.gallery figure { overflow: hidden; position: relative; }
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); filter: brightness(.96); }
.g-1 { grid-column: span 7; aspect-ratio: 4/3; }
.g-2 { grid-column: span 5; aspect-ratio: 3/4; }
.g-3 { grid-column: span 4; aspect-ratio: 1; }
.g-4 { grid-column: span 4; aspect-ratio: 1; }
.g-5 { grid-column: span 4; aspect-ratio: 1; }
.g-6 { grid-column: span 6; aspect-ratio: 16/10; }
.g-7 { grid-column: span 6; aspect-ratio: 16/10; }
.g-8 { grid-column: span 5; aspect-ratio: 3/4; }
.g-9 { grid-column: span 7; aspect-ratio: 4/3; }

/* CTA Reservation strip */
.cta-strip {
  background: var(--ink); color: var(--paper);
  padding: clamp(60px, 9vw, 120px) var(--pad);
  position: relative; overflow: hidden;
}
.cta-strip__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
.cta-strip h2 { color: var(--paper); max-width: 14ch; }
.cta-strip h2 em { color: #e9d2b2; font-variation-settings: "opsz" 144; }
.cta-strip p { color: rgba(247,242,234,.7); margin-top: 16px; max-width: 44ch; }
.cta-strip::before {
  content: "R."; position: absolute; right: -60px; bottom: -90px;
  font-family: var(--serif); font-size: 420px; font-style: italic;
  color: rgba(184,152,90,.07); pointer-events: none; line-height: .8;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .2em;
  padding: 18px 28px;
  border: 1px solid currentColor; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-1px); }
.btn.btn--wine { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn.btn--wine:hover { background: var(--wine-deep); color: #fff; border-color: var(--wine-deep); }
.btn.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { width: 16px; height: 1px; background: currentColor; position: relative; transition: width .3s var(--ease); }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .arrow { width: 24px; }

/* =========================
   FOOTER
   ========================= */
.footer {
  background: var(--wine-dark); color: var(--paper);
  padding: clamp(60px, 9vw, 110px) var(--pad) 40px;
  position: relative;
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer h5 {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .24em;
  font-weight: 500; color: #e9d2b2; margin-bottom: 18px;
}
.footer__brand h2 {
  font-size: clamp(40px, 5vw, 60px);
  color: var(--paper); font-weight: 300; letter-spacing: -.02em;
}
.footer__brand em { font-style: italic; color: #e9d2b2; }
.footer__brand p { color: rgba(247,242,234,.6); font-size: 14px; margin-top: 16px; max-width: 34ch; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: #e9d2b2; }
.footer__hours li, .footer__contact li { color: rgba(247,242,234,.8); }
.footer__contact a { color: rgba(247,242,234,.9); }
.footer__meta {
  max-width: var(--max); margin: 60px auto 0;
  padding-top: 30px; border-top: 1px solid rgba(247,242,234,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(247,242,234,.5);
}
.footer__meta a:hover { color: #e9d2b2; }

/* =========================
   PAGE HEADER (non-home)
   ========================= */
.page-hero {
  padding: clamp(160px, 22vh, 240px) var(--pad) clamp(60px, 9vh, 100px);
  background: var(--wine-dark); color: var(--paper);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184,152,90,.1), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(107,31,43,.5), transparent 60%);
  pointer-events: none;
}
.page-hero__inner { max-width: var(--max); margin: 0 auto; position: relative; }
.page-hero h1 { color: var(--paper); font-weight: 300; }
.page-hero h1 em { color: #e9d2b2; font-style: italic; }
.page-hero .eyebrow { color: #e9d2b2; }
.page-hero .eyebrow::before { background: #e9d2b2; }
.page-hero__meta {
  margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(247,242,234,.7);
}
.page-hero__meta strong { color: #e9d2b2; font-weight: 500; }

/* =========================
   ABOUT page specifics
   ========================= */
.about-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-grid figure img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-grid figcaption {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--mute); margin-top: 14px;
}
.about-text h3 { font-style: italic; font-weight: 400; margin-bottom: 24px; max-width: 16ch; }
.about-text p { font-size: 16px; color: var(--ink-soft); margin-bottom: 1.2em; }

.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border-block: 1px solid var(--rule);
}
.value { background: var(--paper); padding: 48px 32px; }
.value .n { font-family: var(--serif); font-style: italic; color: var(--wine); font-size: 14px; }
.value h4 { font-style: italic; font-weight: 400; margin: 12px 0 10px; }
.value p { font-size: 14px; color: var(--ink-soft); }

/* =========================
   RESERVATION page
   ========================= */
.reserve {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 96px);
}
.reserve__side h3 { font-style: italic; font-weight: 400; margin-bottom: 24px; }
.reserve__side p { color: var(--ink-soft); font-size: 15px; margin-bottom: 1em; }
.reserve__side ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.reserve__side li {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule-light);
  font-size: 14px;
}
.reserve__side li strong {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  font-weight: 500; color: var(--wine);
}

form.reserve-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; position: relative; }
.field label {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-soft); font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--ink);
  transition: border-color .3s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--wine);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }

.check {
  display: flex; gap: 12px; font-size: 13px; color: var(--ink-soft); align-items: flex-start;
}
.check input { margin-top: 3px; accent-color: var(--wine); }
.check a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  display: none; padding: 40px; background: var(--bone); border: 1px solid var(--wine-rule);
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--wine); text-align: center;
}
.form-success.show { display: block; animation: fade-up .5s var(--ease); }

.form-error {
  display: none; margin-top: 20px; padding: 22px 24px;
  background: rgba(107,31,43,.06); border-left: 2px solid var(--wine);
  font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.form-error.show { display: block; animation: fade-up .4s var(--ease); }

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================
   IMPRESSIONEN (full gallery) page
   ========================= */
.masonry {
  columns: 3; column-gap: clamp(12px, 1.5vw, 20px);
}
.masonry figure {
  break-inside: avoid; margin-bottom: clamp(12px, 1.5vw, 20px);
  overflow: hidden; position: relative;
}
.masonry figure img {
  width: 100%; height: auto; transition: transform 1s var(--ease);
}
.masonry figure:hover img { transform: scale(1.03); }

/* =========================
   LEGAL pages
   ========================= */
.legal { max-width: 780px; margin: 0 auto; padding: 0 var(--pad); }
.legal h2 { margin-top: 48px; margin-bottom: 16px; font-size: 28px; font-weight: 400; font-style: italic; }
.legal h3 { margin-top: 28px; margin-bottom: 12px; font-size: 20px; font-weight: 400; }
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); line-height: 1.7; max-width: none; }
.legal p + p { margin-top: 1em; }
.legal ul { margin: 12px 0 12px 20px; }
.legal a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

/* =========================
   LIGHTBOX (gallery page)
   ========================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(26,14,16,.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; animation: lb-fade .35s var(--ease); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  animation: lb-pop .4s var(--ease);
}
@keyframes lb-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; color: var(--paper);
  background: rgba(26,14,16,.5); border: 1px solid rgba(247,242,234,.25);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  font-family: var(--serif); font-size: 20px;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--wine); border-color: var(--wine); transform: scale(1.05);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(247,242,234,.7); font-family: var(--sans); font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase;
}

.gallery-full {
  columns: 4; column-gap: clamp(10px, 1.2vw, 16px);
}
.gallery-full figure {
  break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 16px);
  overflow: hidden; position: relative; cursor: zoom-in;
}
.gallery-full figure img {
  width: 100%; height: auto;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.gallery-full figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,14,16,.35) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.gallery-full figure:hover img { transform: scale(1.04); filter: brightness(.96); }
.gallery-full figure:hover::after { opacity: 1; }

@media (max-width: 1100px) { .gallery-full { columns: 3; } }
@media (max-width: 720px)  { .gallery-full { columns: 2; } }
@media (max-width: 440px)  { .gallery-full { columns: 1; } }

/* =========================
   COOKIE BANNER
   ========================= */
.cookie {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 200;
  max-width: 560px;
  background: var(--ink); color: var(--paper);
  padding: 28px; border-radius: 2px;
  display: grid; gap: 18px;
  transform: translateY(120%); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.cookie.show { transform: none; opacity: 1; }
.cookie h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; font-style: italic; color: #e9d2b2; }
.cookie p { font-size: 13px; color: rgba(247,242,234,.75); max-width: none; line-height: 1.6; }
.cookie p a { color: #e9d2b2; text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__btn {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(247,242,234,.25);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cookie__btn:hover { border-color: #e9d2b2; color: #e9d2b2; }
.cookie__btn--primary { background: #e9d2b2; color: var(--wine-dark); border-color: #e9d2b2; }
.cookie__btn--primary:hover { background: #f3e0c6; color: var(--wine-dark); border-color: #f3e0c6; }

/* =========================
   REVEAL ANIMATIONS
   ========================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-slow { transition-duration: 1.4s; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

.split-line { overflow: hidden; display: block; }
.split-line span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.19,1,.22,1);
}
.split-line.in span { transform: none; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__meta { text-align: left; }
  .hero__scroll { display: none; }
  .hero__marque { top: 90px; }

  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .highlights, .values { grid-template-columns: 1fr; }
  .pair, .pair--reverse { grid-template-columns: 1fr; gap: 20px; }

  .prix { grid-template-columns: 1fr; padding: 40px; gap: 24px; }
  .prix::before { opacity: .5; }

  .gallery { grid-template-columns: repeat(6, 1fr); }
  .g-1, .g-9 { grid-column: span 6; aspect-ratio: 4/3; }
  .g-2, .g-8 { grid-column: span 6; aspect-ratio: 4/5; }
  .g-3, .g-4, .g-5 { grid-column: span 2; }
  .g-6, .g-7 { grid-column: span 6; aspect-ratio: 16/10; }

  .cta-strip__inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-strip::before { font-size: 240px; right: -30px; bottom: -40px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .reserve { grid-template-columns: 1fr; gap: 40px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 22px; }

  .masonry { columns: 2; }

  .cookie { left: 16px; right: 16px; bottom: 16px; padding: 22px; }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .menu-item { grid-template-columns: 1fr auto; }
  .menu-item__num { display: none; }
  .menu-item__desc { grid-column: 1 / -1; }
  .hero__marque { font-size: 10px; letter-spacing: .25em; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line span { transform: none; }
}
