/* =================================================================
   TROPEANO Di-Vino — Restaurant & Weinbar, Hannover-Kirchrode
   Design system: "Cucina d'autore" — dark-elegant editorial
   ================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --ink:        #14110F;   /* espresso near-black */
  --ink-2:      #1C1815;
  --ink-3:      #272220;
  --cream:      #F5EFE5;   /* warm paper */
  --cream-2:    #EAE0D0;
  --wine:       #9E2B25;   /* deep wine red (brand) */
  --wine-bright:#C13A2F;
  --gold:       #B0894C;   /* warm gold accent */
  --gold-light: #CCA86A;
  --on-dark:    #F1EADD;
  --on-dark-mut:#A89E8C;
  --on-light:   #221E1A;
  --on-light-mut:#6A6056;
  --line-dark:  rgba(204,168,106,0.26);
  --line-light: rgba(34,30,26,0.14);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--wine); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: 0.005em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 5vw, 46px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: clamp(28px, 5vw, 46px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
}
.h-section {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 500;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
  color: var(--on-dark-mut);
}
.prose p { margin-bottom: 1.1em; max-width: 62ch; color: var(--on-dark-mut); }
.prose p:last-child { margin-bottom: 0; }
em, .italic { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--cream); color: var(--on-light); }
.section--light .lead,
.section--light .prose p { color: var(--on-light-mut); }
.section--light .eyebrow { color: var(--wine); }
.section--ink2 { background: var(--ink-2); }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-prose { max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--wine); color: var(--cream); }
.btn-primary:hover { background: var(--wine-bright); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.section--light .btn-ghost { border-color: var(--line-light); color: var(--on-light); }
.section--light .btn-ghost:hover { border-color: var(--wine); color: var(--wine); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light);
}
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.section--light .link-arrow { color: var(--wine); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: clamp(0.9rem, 2vw, 1.4rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(20,17,15,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-block: 0.75rem;
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--gold-light); }
.brand__name { font-family: var(--sans); font-weight: 600; letter-spacing: 0.32em; font-size: 0.92rem; text-transform: uppercase; }
.brand__name span { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 1.02rem; color: var(--gold-light); margin-top: -2px; }

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.3rem); }
.nav__links a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-dark); position: relative; padding-block: 0.4rem; transition: color 0.3s var(--ease); white-space: nowrap; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold-light); transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--gold-light); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--gold-light); }

.nav__cta { display: none; }
@media (min-width: 1080px) { .nav__cta { display: inline-flex; } }

/* Mobile nav */
.nav__toggle { display: flex; flex-direction: column; gap: 5px; width: 30px; height: 22px; justify-content: center; z-index: 110; }
.nav__toggle span { display: block; height: 1.5px; width: 100%; background: var(--on-dark); transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
}
@media (max-width: 899px) {
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 1.6rem; background: var(--ink); padding: 2rem;
    transform: translateY(-100%); transition: transform 0.6s var(--ease);
    visibility: hidden;
  }
  .nav-open .nav__links { transform: translateY(0); visibility: visible; }
  .nav__links a { font-size: 1.5rem; font-family: var(--serif); letter-spacing: 0.02em; text-transform: none; }
  .nav__links .btn { font-family: var(--sans); font-size: 0.8rem; margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,0.55) 0%, rgba(20,17,15,0.25) 35%, rgba(20,17,15,0.82) 100%);
}
.hero__inner { padding-block: clamp(3rem, 10vh, 7rem); width: 100%; }
.hero .display { max-width: 16ch; }
.hero__sub { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-mut); font-family: var(--serif); font-style: italic; font-weight: 300; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-dark-mut);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--gold-light), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Subtle ken-burns on hero image */
.kenburns { animation: kenburns 18s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14); } }

/* ---------- Marquee / badge strip ---------- */
.badges { border-block: 1px solid var(--line-dark); }
.badges__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: 1.6rem; text-align: center; }
.badge { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-mut); }
.badge b { display: block; font-family: var(--serif); font-style: italic; font-size: 1.4rem; letter-spacing: 0; text-transform: none; color: var(--gold-light); font-weight: 500; margin-bottom: 0.15rem; }

/* ---------- Media + figure ---------- */
.figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure--tall { aspect-ratio: 3/4; }
.figure--wide { aspect-ratio: 4/3; }
.figure--hero { aspect-ratio: 16/10; }
.hover-zoom:hover .figure img,
.figure.hover-zoom:hover img { transform: scale(1.06); }
.figure__caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem;
  background: linear-gradient(transparent, rgba(20,17,15,0.85));
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
}
.gold-frame { position: relative; }
.gold-frame::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-dark); pointer-events: none;
}

/* ---------- Feature cards (home) ---------- */
.features { display: grid; gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative; min-height: 460px; display: flex; align-items: flex-end;
  padding: 2rem; overflow: hidden; background: var(--ink-2); isolation: isolate;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 25%, rgba(20,17,15,0.92)); }
.feature:hover img { transform: scale(1.07); }
.feature h3 { font-size: 1.9rem; }
.feature p { color: var(--on-dark-mut); margin-top: 0.5rem; font-size: 0.95rem; }
.feature .link-arrow { margin-top: 1.2rem; }

/* ---------- Split content ---------- */
.split__media { aspect-ratio: 4/5; }
@media (min-width: 900px) { .split--reverse .split__media { order: 2; } }

/* ---------- Menu (Speisekarte) ---------- */
.menu-cat { margin-bottom: clamp(3rem, 6vw, 5rem); }
.menu-cat__head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 2.2rem; }
.menu-cat__head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--wine); }
.menu-cat__head .it { font-family: var(--serif); font-style: italic; color: var(--on-light-mut); font-size: 1.1rem; }
.menu-cat__line { flex: 1; height: 1px; background: var(--line-light); }
.menu-list { display: grid; gap: 1.9rem; }
@media (min-width: 820px) { .menu-list.two-col { grid-template-columns: 1fr 1fr; gap: 1.9rem 4rem; } }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.2rem; align-items: baseline; }
.dish__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--on-light); }
.dish__price { font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 1.2rem; color: var(--wine); font-weight: 600; white-space: nowrap; }
.dish__price::before { content: ""; }
.dish__de { grid-column: 1 / -1; font-size: 0.95rem; color: var(--on-light-mut); font-style: italic; max-width: 52ch; }
.dish__dots { display: none; }

.menu-note { font-size: 0.85rem; color: var(--on-light-mut); font-style: italic; border-top: 1px solid var(--line-light); padding-top: 1.4rem; margin-top: 1rem; }

/* ---------- Gallery (Art) ---------- */
.masonry { columns: 2; column-gap: clamp(0.6rem, 2vw, 1.4rem); }
@media (min-width: 760px) { .masonry { columns: 3; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.masonry .art { break-inside: avoid; margin-bottom: clamp(0.6rem, 2vw, 1.4rem); position: relative; overflow: hidden; border-radius: var(--radius); }
.masonry .art img { width: 100%; transition: transform 1s var(--ease), filter 1s var(--ease); }
.masonry .art:hover img { transform: scale(1.05); }
.masonry .art figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.1rem;
  background: linear-gradient(transparent, rgba(20,17,15,0.9));
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.masonry .art:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 28ch; margin-inline: auto; }
.quote q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.25; quotes: "\201C" "\201D"; }
.quote .cite { display: block; margin-top: 1.8rem; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-light); font-family: var(--sans); }

/* ---------- Info / contact ---------- */
.info-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 760px) { .info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.info-card { border: 1px solid var(--line-dark); padding: 2rem; border-radius: var(--radius); }
.info-card h3 { font-size: 1.5rem; color: var(--gold-light); margin-bottom: 1rem; }
.info-card p, .info-card a { color: var(--on-dark-mut); font-size: 0.98rem; }
.info-card a:hover { color: var(--gold-light); }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; border-bottom: 1px dashed var(--line-dark); }
.hours-row:last-child { border-bottom: none; }
.hours-row.closed span:last-child { color: var(--wine-bright); }

.tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--line-dark); padding: 0.35rem 0.8rem; border-radius: 100px; margin-bottom: 1.2rem; }

/* ---------- Reservation placeholder form ---------- */
.form { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 0.55rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--on-dark);
  padding: 0.95rem 1rem; border-radius: var(--radius); font-family: var(--sans); font-size: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease); min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-light); outline: none; background: var(--ink-3); }
.form-note { font-size: 0.82rem; color: var(--on-dark-mut); font-style: italic; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; padding-top: clamp(8rem, 18vh, 12rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,17,15,0.7), rgba(20,17,15,0.88)); }
.page-hero .display { max-width: 18ch; }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; font-weight: 600; }
.site-footer p, .site-footer a { color: var(--on-dark-mut); font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer li { margin-bottom: 0.6rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--on-dark-mut); }
.footer-brand .display { font-size: 2rem; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal="fade"] { transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kenburns { animation: none !important; }
  .hero__scroll i { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05s !important; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.divider-mark { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold-light); margin-bottom: 1.4rem; }
.divider-mark span { height: 1px; width: 60px; background: var(--line-dark); }
