/* ============================================================
   ERA — Ristorante & Pizzeria · Leipzig
   Design system: deep olive · warm cream · terracotta · gold
   Type: Cormorant Garamond (display) + DM Sans (body/UI)
   ============================================================ */

:root{
  --olive:#3d4a3a;
  --olive-deep:#20281f;
  --olive-mid:#33402f;
  --cream:#f5efe6;
  --cream-2:#ece2d2;
  --paper:#faf6ef;
  --terracotta:#b65c3e;
  --terracotta-deep:#9d4a30;
  --gold:#c7a95e;
  --gold-soft:#d9bf83;
  --charcoal:#252525;
  --ink:#2a2722;
  --muted:#6f665a;
  --muted-light:#cdbfa9;
  --line:rgba(42,39,34,.14);
  --line-dark:rgba(245,239,230,.16);

  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:"DM Sans", system-ui, -apple-system, sans-serif;

  --maxw:1240px;
  --pad:clamp(1.25rem, 5vw, 5rem);
  --shadow:0 24px 60px -28px rgba(32,40,31,.5);
  --shadow-soft:0 18px 44px -24px rgba(32,40,31,.42);
  --r:14px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:var(--sans);
  background:var(--cream);
  color:var(--ink);
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
.hidden{display:none !important;}

/* ---------- Typographic helpers ---------- */
.eyebrow{
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--terracotta);
  display:inline-flex;align-items:center;gap:.7rem;
}
.eyebrow::before{content:"";width:26px;height:1px;background:var(--gold);display:inline-block;}
.eyebrow.center{justify-content:center;}
.on-dark .eyebrow{color:var(--gold-soft);}

h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.02;margin:0;letter-spacing:.005em;}
.display{font-size:clamp(2.9rem,7.2vw,6rem);}
.section-title{font-size:clamp(2.3rem,4.6vw,3.7rem);line-height:1.04;}
.lead{font-size:clamp(1.05rem,1.6vw,1.22rem);color:var(--muted);max-width:46ch;}
.on-dark .lead{color:var(--muted-light);}
em.it{font-style:italic;color:var(--terracotta);}
.on-dark em.it{color:var(--gold-soft);}

/* ---------- Layout ---------- */
.section{padding:clamp(4.5rem,9vw,8rem) var(--pad);}
.wrap{max-width:var(--maxw);margin:0 auto;}
.section.dark{background:var(--olive-deep);color:var(--cream);}
.section.olive{background:var(--olive);color:var(--cream);}
.section.dark, .section.olive{color:var(--cream);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--sans);font-weight:600;font-size:.92rem;letter-spacing:.02em;
  padding:.95rem 1.7rem;border-radius:999px;
  transition:transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, box-shadow .25s;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--terracotta);color:#fff;box-shadow:0 12px 30px -12px rgba(157,74,48,.7);}
.btn-primary:hover{background:var(--terracotta-deep);}
.btn-gold{background:var(--gold);color:var(--olive-deep);}
.btn-gold:hover{background:var(--gold-soft);}
.btn-ghost{border:1.5px solid currentColor;color:inherit;}
.btn-ghost:hover{background:rgba(255,255,255,.08);}
.section:not(.dark):not(.olive) .btn-ghost{color:var(--ink);border-color:var(--line);}
.section:not(.dark):not(.olive) .btn-ghost:hover{background:rgba(42,39,34,.05);}
.arrow{transition:transform .25s;}
.btn:hover .arrow{transform:translateX(4px);}

/* ---------- Header ---------- */
.header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;
  padding:.85rem var(--pad);
  background:rgba(32,40,31,0);
  transition:background .35s ease, padding .35s ease, box-shadow .35s;
}
.header.scrolled{background:rgba(28,34,26,.95);backdrop-filter:blur(10px);padding:.6rem var(--pad);box-shadow:0 1px 0 var(--line-dark);}
.brand{display:flex;flex-direction:column;line-height:1;color:var(--cream);}
.brand .name{font-family:var(--serif);font-weight:600;font-size:1.9rem;letter-spacing:.02em;}
.brand .name b{color:var(--gold);font-weight:600;}
.brand .sub{font-family:var(--sans);font-size:.56rem;font-weight:600;letter-spacing:.36em;text-transform:uppercase;color:var(--muted-light);margin-top:.2rem;white-space:nowrap;}
.nav{display:flex;align-items:center;gap:2rem;}
.nav-links{display:flex;gap:1.9rem;list-style:none;margin:0;padding:0;}
.nav-links a{
  color:var(--cream);font-size:.82rem;font-weight:500;letter-spacing:.06em;
  position:relative;padding:.2rem 0;opacity:.9;white-space:nowrap;
}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-3px;height:1.5px;width:0;background:var(--gold);transition:width .3s;}
.nav-links a:hover{opacity:1;}
.nav-links a:hover::after{width:100%;}
.header-actions{display:flex;align-items:center;gap:1rem;}
.lang-toggle{display:flex;align-items:center;gap:.1rem;border:1px solid var(--line-dark);border-radius:999px;padding:2px;}
.lang-toggle button{color:var(--muted-light);font-size:.72rem;font-weight:600;letter-spacing:.08em;padding:.32rem .62rem;border-radius:999px;transition:.2s;}
.lang-toggle button.active{background:var(--gold);color:var(--olive-deep);}
.hamburger{display:none;width:42px;height:42px;border-radius:50%;border:1px solid var(--line-dark);position:relative;}
.hamburger span{position:absolute;left:11px;right:11px;height:1.6px;background:var(--cream);transition:.3s;}
.hamburger span:nth-child(1){top:15px;}
.hamburger span:nth-child(2){top:20px;}
.hamburger span:nth-child(3){top:25px;}
.hamburger.open span:nth-child(1){top:20px;transform:rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){top:20px;transform:rotate(-45deg);}

/* ---------- Mobile menu ---------- */
.mobile-menu{
  position:fixed;inset:0;z-index:55;background:var(--olive-deep);
  display:flex;flex-direction:column;justify-content:center;gap:.4rem;padding:0 var(--pad);
  transform:translateY(-100%);transition:transform .45s cubic-bezier(.7,0,.2,1);
}
.mobile-menu.open{transform:translateY(0);}
.mobile-menu a{color:var(--cream);font-family:var(--serif);font-size:2.4rem;font-weight:500;padding:.35rem 0;border-bottom:1px solid var(--line-dark);}
.mobile-menu a:last-of-type{border:none;}
.mobile-menu .mm-cta{margin-top:1.6rem;font-family:var(--sans);}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;color:var(--cream);overflow:hidden;}
.hero-bg{position:absolute;inset:0;z-index:0;}
.hero-bg img,.hero-bg video{width:100%;height:100%;object-fit:cover;}
.hero-bg::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(102deg,rgba(14,18,11,.82) 0%,rgba(14,18,11,.45) 38%,rgba(14,18,11,.05) 64%,transparent 80%),
    linear-gradient(180deg,rgba(18,22,16,.6) 0%,rgba(18,22,16,0) 30%,rgba(18,22,16,.35) 62%,rgba(12,15,10,.94) 100%);}
.hero-inner{position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;width:100%;padding:0 var(--pad) clamp(3rem,7vw,6rem);}
.hero h1{margin:1.2rem 0 0;max-width:20ch;font-size:clamp(2.4rem,5.2vw,4.7rem);line-height:1.04;text-shadow:0 3px 36px rgba(0,0,0,.55);}
.hero h1 .gold{color:var(--gold-soft);font-style:italic;}
.hero-sub{margin:1.8rem 0 0;font-size:clamp(1.05rem,1.7vw,1.3rem);max-width:40ch;color:#f3ecdf;font-weight:400;text-shadow:0 2px 18px rgba(0,0,0,.7);}
.hero-cta{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2rem;}
.rating-pill{
  position:absolute;top:calc(var(--pad)/1 + 70px);right:var(--pad);z-index:2;
  display:inline-flex;align-items:center;gap:.55rem;
  background:rgba(245,239,230,.12);border:1px solid rgba(245,239,230,.28);
  backdrop-filter:blur(8px);border-radius:999px;padding:.5rem .95rem;font-size:.8rem;font-weight:500;letter-spacing:.02em;
}
.rating-pill .stars{color:var(--gold-soft);letter-spacing:.05em;}
.scroll-hint{position:absolute;left:50%;bottom:1.4rem;transform:translateX(-50%);z-index:2;
  font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--muted-light);
  display:flex;flex-direction:column;align-items:center;gap:.5rem;opacity:.85;}
.scroll-hint .line{width:1px;height:34px;background:linear-gradient(var(--gold),transparent);animation:scrolldrop 2s infinite;}
@keyframes scrolldrop{0%{transform:scaleY(.3);transform-origin:top;opacity:.4}50%{transform:scaleY(1);opacity:1}100%{transform:scaleY(.3);transform-origin:bottom;opacity:.4}}

/* ---------- La Cucina (3 pillars) ---------- */
.cucina-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:clamp(2.5rem,5vw,4rem);}
.cucina-head .section-title{max-width:14ch;}
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,2.6rem);}
.pillar{padding-top:1.6rem;border-top:1px solid var(--line);}
.pillar .num{font-family:var(--serif);font-style:italic;font-size:1.5rem;color:var(--terracotta);}
.pillar h3{font-size:1.8rem;margin:.6rem 0 .7rem;}
.pillar p{color:var(--muted);font-size:1rem;margin:0;}

/* ---------- Highlights ---------- */
.section.dark .pillar{border-color:var(--line-dark);}
.section.dark .pillar p{color:var(--muted-light);}
.hl-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(1.1rem,2.2vw,1.6rem);margin-top:clamp(2.5rem,5vw,3.8rem);}
.dish{position:relative;border-radius:var(--r);overflow:hidden;background:#222;box-shadow:var(--shadow-soft);aspect-ratio:4/3.25;}
.dish.feature{grid-column:1 / -1;aspect-ratio:21/8.4;}
.dish img,.dish video{width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.3,1);}
.dish:hover img,.dish:hover video{transform:scale(1.06);}
.dish::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 36%,rgba(15,19,13,.88) 100%);}
.dish-text{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:clamp(1.3rem,2.6vw,2rem);color:var(--cream);}
.dish-text .tag{font-size:.62rem;letter-spacing:.26em;text-transform:uppercase;color:var(--gold-soft);}
.dish-text h3{font-size:clamp(1.55rem,2.3vw,2.1rem);margin:.4rem 0 .4rem;line-height:1.02;}
.dish-text p{font-size:.92rem;color:#e7ddca;margin:0;max-width:38ch;}
/* Tiramisu — signature card, no photo (terracotta editorial) */
.dish.signature{background:linear-gradient(155deg,var(--terracotta) 0%,var(--terracotta-deep) 100%);display:flex;flex-direction:column;justify-content:space-between;padding:clamp(1.5rem,2.8vw,2.2rem);}
.dish.signature::after{display:none;}
.dish.signature .sig-top{font-size:.62rem;letter-spacing:.26em;text-transform:uppercase;color:rgba(255,255,255,.78);display:flex;justify-content:space-between;}
.dish.signature .sig-stars{color:var(--gold-soft);letter-spacing:.1em;}
.dish.signature h3{font-family:var(--serif);font-size:clamp(2.4rem,4vw,3.4rem);color:#fff;line-height:.98;margin:0;}
.dish.signature p{color:rgba(255,255,255,.92);font-size:.96rem;margin:.7rem 0 0;max-width:32ch;}
.hl-foot{margin-top:clamp(2.2rem,4vw,3rem);display:flex;justify-content:center;}

/* ---------- About ---------- */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center;}
.about-copy p{color:var(--muted-light);font-size:1.1rem;margin:1.2rem 0 0;max-width:48ch;}
.about-copy p.first::first-letter{font-family:var(--serif);font-size:3.4rem;float:left;line-height:.78;padding:.36rem .55rem 0 0;color:var(--gold);font-weight:600;}
.about-media{position:relative;}
.about-media img{border-radius:var(--r);box-shadow:var(--shadow);width:100%;aspect-ratio:4/5;object-fit:cover;}
.about-quote{position:absolute;bottom:-26px;left:-26px;max-width:18rem;background:var(--terracotta);color:#fff;padding:1.3rem 1.5rem;border-radius:12px;box-shadow:var(--shadow);}
.about-quote .q{font-family:var(--serif);font-style:italic;font-size:1.45rem;line-height:1.15;}
.about-quote .by{font-family:var(--sans);font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;margin-top:.7rem;opacity:.85;}

/* ---------- Reviews ---------- */
.reviews-head{text-align:center;margin-bottom:clamp(2.5rem,5vw,3.8rem);display:flex;flex-direction:column;align-items:center;gap:1rem;}
.reviews-grid{columns:3;column-gap:clamp(1.2rem,2.4vw,2rem);}
.review{break-inside:avoid;margin:0 0 clamp(1.2rem,2.4vw,2rem);background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:1.7rem 1.6rem;box-shadow:0 10px 26px -22px rgba(32,40,31,.5);}
.review .stars{color:var(--gold);letter-spacing:.12em;font-size:.95rem;}
.review p{font-family:var(--serif);font-size:1.35rem;line-height:1.32;color:var(--ink);margin:.8rem 0 0;font-weight:500;}
.review .who{display:flex;align-items:center;gap:.7rem;margin-top:1.2rem;}
.review .who .dot{width:34px;height:34px;border-radius:50%;background:var(--olive);color:var(--cream);display:grid;place-items:center;font-family:var(--serif);font-size:1rem;}
.review .who .meta{font-size:.78rem;color:var(--muted);line-height:1.3;}
.review .who .meta b{display:block;color:var(--ink);font-weight:600;letter-spacing:.01em;}

/* ---------- Gallery ---------- */
.gallery-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:clamp(2rem,4vw,3rem);}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:200px;gap:clamp(.7rem,1.5vw,1.1rem);}
.gphoto{overflow:hidden;border-radius:10px;cursor:zoom-in;position:relative;background:#222;}
.gphoto img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.3,1);}
.gphoto:hover img{transform:scale(1.07);}
.gphoto.g-w2{grid-column:span 2;}
.gphoto.g-h2{grid-row:span 2;}

/* ---------- Visit ---------- */
.visit-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(2rem,4vw,3.5rem);align-items:stretch;}
.visit-info .row{padding:1.3rem 0;border-bottom:1px solid var(--line-dark);}
.visit-info .row:first-of-type{padding-top:0;}
.visit-info .label{font-size:.66rem;letter-spacing:.26em;text-transform:uppercase;color:var(--gold-soft);}
.visit-info .val{font-size:1.15rem;margin-top:.45rem;color:var(--cream);}
.visit-info .val a{border-bottom:1px solid transparent;transition:.2s;}
.visit-info .val a:hover{border-color:var(--gold);}
.hours-line{display:flex;justify-content:space-between;gap:1rem;font-size:1rem;color:#e7ddca;padding:.18rem 0;max-width:22rem;}
.hours-line span:last-child{color:var(--gold-soft);}
.visit-note{font-size:.86rem;color:var(--muted-light);margin-top:1.4rem;line-height:1.6;}
.visit-cta{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem;}
.map-card{border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);min-height:420px;border:1px solid var(--line-dark);}
.map-card iframe{width:100%;height:100%;min-height:420px;border:0;display:block;filter:saturate(.9);}

/* ---------- Reservation form ---------- */
.reserve{background:var(--cream-2);}
.reserve-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center;}
.reserve-copy .section-title{max-width:13ch;}
.reserve-quick{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem;}
form.res{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:clamp(1.6rem,3vw,2.4rem);box-shadow:var(--shadow-soft);}
.field{margin-bottom:1.05rem;}
.field label{display:block;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:.4rem;}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--sans);font-size:1rem;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:.8rem .9rem;transition:.2s;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--terracotta);box-shadow:0 0 0 3px rgba(182,92,62,.13);}
.field.invalid input,.field.invalid select{border-color:#c0492f;background:#fdf3f0;}
.field .err{color:#c0492f;font-size:.74rem;margin-top:.35rem;display:none;}
.field.invalid .err{display:block;}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
form.res .btn{width:100%;justify-content:center;margin-top:.5rem;}
.res-success{text-align:center;padding:1rem 0;}
.res-success .check{width:62px;height:62px;border-radius:50%;background:var(--olive);color:var(--gold-soft);display:grid;place-items:center;margin:0 auto 1.1rem;font-size:1.8rem;font-family:var(--serif);}
.res-success h3{font-size:2rem;margin-bottom:.5rem;}
.res-success p{color:var(--muted);}
.form-note{font-size:.74rem;color:var(--muted);margin-top:1rem;text-align:center;line-height:1.5;}

/* ---------- Footer ---------- */
.footer{background:var(--olive-deep);color:var(--cream);padding:clamp(3.5rem,7vw,6rem) var(--pad) 2rem;}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem;padding-bottom:3rem;border-bottom:1px solid var(--line-dark);}
.footer .brand .name{font-size:2.6rem;}
.footer-col h4{font-family:var(--sans);font-size:.7rem;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-soft);margin:0 0 1.1rem;font-weight:600;}
.footer-col a, .footer-col p{display:block;color:var(--muted-light);font-size:.95rem;margin:0 0 .6rem;transition:.2s;}
.footer-col a:hover{color:var(--cream);}
.foot-cta{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.6rem;}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding-top:1.8rem;font-size:.78rem;color:var(--muted-light);}
.footer-bottom a{margin-left:1.2rem;}

/* ---------- Floating phone + mobile action bar ---------- */
.fab{position:fixed;right:1.3rem;bottom:1.5rem;z-index:50;width:58px;height:58px;border-radius:50%;
  background:var(--terracotta);color:#fff;display:grid;place-items:center;box-shadow:0 14px 34px -10px rgba(157,74,48,.8);
  transition:transform .25s, background .25s;}
.fab:hover{transform:scale(1.08);background:var(--terracotta-deep);}
.fab svg{width:24px;height:24px;}
.mobile-bar{display:none;}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);}
.reveal.in{opacity:1;transform:none;}
.reveal.d1{transition-delay:.08s;}
.reveal.d2{transition-delay:.16s;}
.reveal.d3{transition-delay:.24s;}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .scroll-hint .line{animation:none;}
  html{scroll-behavior:auto;}
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1000px){
  .reviews-grid{columns:2;}
}
@media (max-width:860px){
  .nav-links{display:none;}
  .hamburger{display:block;}
  .header-actions .lang-toggle{display:none;}
  .pillars{grid-template-columns:1fr;gap:0;}
  .pillar{padding:1.4rem 0;}
  .about-grid,.visit-grid,.reserve-grid{grid-template-columns:1fr;}
  .about-media{order:-1;}
  .about-quote{position:static;margin-top:1.2rem;max-width:none;left:0;bottom:0;}
  .footer-top{grid-template-columns:1fr;gap:2rem;}
  .gallery{grid-template-columns:repeat(2,1fr);grid-auto-rows:46vw;}
  .gphoto.g-w2{grid-column:span 2;}
  .gphoto.g-h2{grid-row:span 1;}
}
@media (max-width:680px){
  body{font-size:16px;}
  .reviews-grid{columns:1;}
  .hl-grid{grid-template-columns:1fr;}
  .hl-grid .dish{grid-column:1 !important;aspect-ratio:16/12 !important;}
  .hl-grid .dish.feature{aspect-ratio:16/11 !important;}
  .hl-grid .dish.signature{aspect-ratio:auto !important;min-height:240px;}
  .f-row{grid-template-columns:1fr;}
  .hours-line{max-width:none;}
  /* mobile action bar */
  .mobile-bar{
    display:grid;grid-template-columns:1fr 1fr 1fr;
    position:fixed;left:0;right:0;bottom:0;z-index:52;
    background:rgba(28,34,26,.97);backdrop-filter:blur(10px);border-top:1px solid var(--line-dark);
  }
  .mobile-bar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    padding:.6rem 0;min-height:58px;color:var(--cream);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;}
  .mobile-bar a svg{width:19px;height:19px;}
  .mobile-bar a.accent{background:var(--terracotta);color:#fff;}
  .mobile-bar a + a{border-left:1px solid var(--line-dark);}
  .fab{display:none;}
  body{padding-bottom:58px;}
  .scroll-hint{display:none;}
  .rating-pill{top:auto;right:var(--pad);}
}
