/* ============================================================
   Île de France — Shared Stylesheet
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --c:   #F4EFE6;
  --c2:  #EDE7DA;
  --ink: #1C1912;
  --fir: #8B1A14;
  --fir2:#A82018;
  --tan: #C03020;
  --mute:#7D776E;
  --hr:  #D8D2C7;

  --font-serif: 'Spectral', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  --nav-h: 64px;
  --wrap:  1160px;
  --gap:   clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--c);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--fir); color: var(--c); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--fir); border-radius: 0; }

/* ---------- Grain overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.nav.solid {
  background: rgba(139, 26, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.nav.solid .nav__logo,
.nav.solid .nav__link {
  color: rgba(244, 239, 230, 0.82);
  opacity: 1;
}
.nav.solid .nav__link:hover,
.nav.solid .nav__link[aria-current="page"] {
  color: var(--c);
  opacity: 1;
}
.nav.solid .nav__burger span {
  background: rgba(244, 239, 230, 0.82);
}
.nav__left {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: flex-start;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: flex-end;
}
.nav__center {
  text-align: center;
}
.nav__logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}
.nav__link[aria-current="page"] {
  color: var(--fir);
}

/* Hero variant — light text over dark images */
.nav--hero:not(.solid) .nav__logo,
.nav--hero:not(.solid) .nav__link {
  color: rgba(244, 239, 230, 0.82);
  opacity: 1;
}
.nav--hero:not(.solid) .nav__link:hover {
  color: var(--c);
}
.nav--hero:not(.solid) .nav__burger span {
  background: rgba(244, 239, 230, 0.82);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px 0;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(244, 239, 230, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hr);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 0.85rem; opacity: 1; }

/* ---------- Shared Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 0.75rem;
}
.display {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 400;
}
h1.display { font-size: clamp(2rem, 3vw, 3.4rem); }
.body-copy {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--mute);
}
.rule {
  width: 40px;
  height: 1px;
  background: var(--tan);
  border: none;
  margin: 1.25rem 0;
  display: block;
}
.arrow-a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fir);
  transition: color 0.2s, gap 0.2s;
}
.arrow-a:hover {
  color: var(--fir2);
  gap: 0.75rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c);
  padding: calc(var(--nav-h) + 4rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  text-align: center;
}
.page-hero__inner {
  max-width: 600px;
}
.page-hero .display { margin-bottom: 0; }
.page-hero .rule { margin: 1.25rem auto; }

/* ---------- Section Wrapper ---------- */
.wrap {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}
.section-gap {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.section-gap--sm {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--fir);
  color: rgba(244, 239, 230, 0.75);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.footer__logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--c);
  display: block;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}
.footer__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  display: block;
  margin-bottom: 1rem;
}
.footer__col p,
.footer__col address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.75);
}
.footer__col a {
  color: rgba(244, 239, 230, 0.75);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--c); }
.footer__bar {
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bar p,
.footer__bar a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
}
.footer__bar a:hover { color: rgba(244, 239, 230, 0.85); }
.footer__bar-links { display: flex; gap: 1.5rem; }
.footer__credit {
  color: rgba(244, 239, 230, 0.3) !important;
  letter-spacing: 0.1em;
}
.footer__credit a {
  color: rgba(244, 239, 230, 0.4) !important;
  transition: color 0.2s;
}
.footer__credit a:hover { color: rgba(244, 239, 230, 0.75) !important; }

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--fir);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--fir);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Fade-in animation ---------- */
.f {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.f.in {
  opacity: 1;
  transform: none;
}
.f[data-delay="1"] { transition-delay: 0.1s; }
.f[data-delay="2"] { transition-delay: 0.2s; }
.f[data-delay="3"] { transition-delay: 0.3s; }
.f[data-delay="4"] { transition-delay: 0.4s; }
.f[data-delay="5"] { transition-delay: 0.5s; }

/* ---------- Pulse dot ---------- */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a9c4f;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(58, 156, 79, 0.35);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0; }
}

/* ---------- Tagesteller (shared) ---------- */
.tages-section { background: var(--c2); }
.tages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.day-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hr);
}
.day-row:last-child { border-bottom: 1px solid var(--hr); }
.day-row__day {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 7rem;
}
.day-row__dish {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
}
.day-row__price {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mute);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 780px) {
  .tages-grid { grid-template-columns: 1fr; }
}
/* Day-rows wrap nicely on small phones — day label on its own line */
@media (max-width: 480px) {
  .day-row {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .day-row__day {
    min-width: 0;
    flex-basis: 100%;
  }
  .day-row__dish { flex-basis: auto; min-width: 0; }
  .day-row__price { margin-left: auto; }
}

/* ---------- Hairline ---------- */
.hl {
  border: none;
  border-top: 1px solid var(--hr);
  margin: 0;
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .f { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile breakpoints ---------- */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav__left,
  .nav__right { display: none; }
  .nav__burger {
    display: flex;
    /* touch target: 44×44 minimum */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -10px; /* align edge */
  }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__center { text-align: left; }
  .nav__mobile .nav__link {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
