/* Ristorante Café Leo — design tokens fra branche-blueprint (se design-blueprint-*.md) */

:root {
  --bg: #FFFDF4;
  --ink: #321108;
  --muted: #7A6A5C;
  --dark: #2B1508;
  --cream: #FCFFE2;
  --accent: #9E1D21;
  --accent-dark: #7E1216;
  --hairline: rgba(50, 17, 8, 0.15);
  --hairline-light: rgba(252, 255, 226, 0.25);

  --fs-eyebrow: 0.8125rem; /* 13px */
  --fs-body: 1rem;         /* 16px */
  --fs-lead: 1.25rem;      /* 20px */
  --fs-h2: 2rem;           /* 32px */
  --fs-display: clamp(2.75rem, 6vw, 4.5rem);

  --font-display: "Crimson Pro", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 2px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrow labels (som i menukortet: … A N T I P A S T I …) ---------- */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  padding: 12px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 150ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover { background: rgba(252, 255, 226, 0.12); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: rgba(50, 17, 8, 0.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 250ms ease-out, box-shadow 250ms ease-out;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.site-header .brand img { height: 28px; width: auto; }
.site-header .brand .logo-dark { display: none; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  color: var(--cream);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav .btn { padding: 12px 24px; font-size: var(--fs-eyebrow); letter-spacing: 0.08em; text-transform: uppercase; }

.site-header.scrolled,
.site-header.solid {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header.scrolled .site-nav a:not(.btn),
.site-header.solid .site-nav a:not(.btn) { color: var(--ink); }
.site-header.scrolled .brand .logo-cream,
.site-header.solid .brand .logo-cream { display: none; }
.site-header.scrolled .brand .logo-dark,
.site-header.solid .brand .logo-dark { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  animation: heroZoom 22s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 8, 2, 0.35), rgba(20, 8, 2, 0.55));
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 128px 24px 96px;
  max-width: 820px;
}
.hero-inner .hero-logo {
  width: min(480px, 80vw);
  margin: 0 auto 24px;
}
.hero-inner .hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  margin: 0 0 48px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Info-strip ---------- */
.info-strip {
  border-bottom: 1px solid var(--hairline);
}
.info-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 64px;
  padding: 24px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sektioner ---------- */
.section { padding: 96px 0; }
.section-header { text-align: center; max-width: 65ch; margin: 0 auto 64px; }
.section-header h2 { font-size: var(--fs-h2); }
.section-header p { color: var(--muted); margin: 16px auto 0; }

.section-dark {
  background: var(--dark);
  color: var(--cream);
}
.section-dark .eyebrow { color: rgba(252, 255, 226, 0.6); }
.section-dark .section-header p { color: rgba(252, 255, 226, 0.7); }

/* ---------- Velkomst ---------- */
.welcome .container {
  max-width: 720px;
  text-align: center;
}
.welcome blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Menu-højdepunkter ---------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dish-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}
.dish-card h3 {
  font-size: var(--fs-lead);
  font-weight: 600;
}
.dish-card .price {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  margin: 4px 0 12px;
}
.dish-card p { color: var(--muted); margin: 0; font-size: var(--fs-body); }
.section-cta { text-align: center; margin-top: 64px; }

/* ---------- Historie / story split ---------- */
.story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-photo img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-text h2 { font-size: var(--fs-h2); margin-bottom: 24px; }
.story-text p { color: var(--muted); max-width: 55ch; }

/* ---------- Praktisk (mørk bånd) ---------- */
.practical .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.practical h2 { font-size: var(--fs-h2); margin-bottom: 24px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-light);
}
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.practical address {
  font-style: normal;
  color: rgba(252, 255, 226, 0.85);
  line-height: 1.7;
}
.practical .btn { margin-top: 32px; }
.practical a:not(.btn) { color: var(--cream); text-decoration: underline; }

/* ---------- Menu-side ---------- */
.menu-hero {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 128px 24px 64px;
}
.menu-hero h1 { font-size: var(--fs-display); }
.menu-hero p { color: rgba(252, 255, 226, 0.7); max-width: 55ch; margin: 16px auto 0; }

.menu-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
}
.menu-nav .container {
  display: flex;
  gap: 32px;
  padding: 16px 24px;
  white-space: nowrap;
}
.menu-nav a {
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.menu-nav a:hover { color: var(--ink); text-decoration: none; }

.menu-section { padding: 64px 0; }
.menu-section + .menu-section { border-top: 1px solid var(--hairline); }
.menu-section .container { max-width: 760px; }
.menu-section h2 {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 8px;
}
.menu-note {
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
  margin: 0 0 48px;
}
.menu-item { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.menu-item:last-child { border-bottom: none; }
.menu-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.menu-item-head h3 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
}
.menu-item-head .price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.menu-item p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-body); max-width: 55ch; }

.menu-fixed {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.menu-fixed h3 { font-size: var(--fs-lead); font-weight: 600; margin-bottom: 16px; }
.menu-fixed ul { list-style: none; margin: 0 0 16px; padding: 0; }
.menu-fixed li { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.menu-fixed li:last-child { border-bottom: none; }
.menu-fixed li strong { display: block; font-weight: 600; }
.menu-fixed li span { color: var(--muted); }
.menu-fixed .price { color: var(--ink); font-variant-numeric: tabular-nums; }

.wine-item { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.wine-item:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(252, 255, 226, 0.7);
  padding: 96px 0 48px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}
.site-footer img { height: 32px; width: auto; margin-bottom: 24px; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: rgba(252, 255, 226, 0.7); }
.site-footer a:hover { color: var(--cream); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-light);
  text-align: center;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
}

/* ---------- Scroll-reveal (kun når JS er aktiv — ellers er alt synligt) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 900px) {
  .dish-grid { grid-template-columns: 1fr; }
  .story .container,
  .practical .container,
  .site-footer .container { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 64px 0; }
  .site-nav a:not(.btn) { display: none; }
}
