/* ══════════════════════════════════════════
   CAFE CHRISTIAN IX — menu.css
   Full menu page stylesheet
   ══════════════════════════════════════════ */

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

/* ─── iOS/Android touch optimizations ─── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:root {
  --gold:       #b8844a;
  --gold-light: #cfa670;
  --gold-dark:  #8a6030;
  --dark:       #1a1209;
  --bg:         #f5f0e8;
  --bg-warm:    #ede8de;
  --warm-white: #f5f0e8;
  --text:       #2a1a0a;
  --text-muted: rgba(42, 26, 10, 0.5);

  --font-script: 'Kristi', cursive;
  --font-serif:  'Cormorant Garamond', serif;
  --font-sans:   'Lato', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* ─── Top Nav ─── */
.menu-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 132, 74, 0.2);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.back-link:hover { opacity: 1; }

.topnav-logo img {
  height: 38px;
  width: auto;
  filter: contrast(1.15) sepia(0.1) saturate(0.95);
}

.topnav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.55rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}
.topnav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.topnav-cta:hover {
  color: var(--dark);
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(207, 166, 112, 0.25);
}
.topnav-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── Hero ─── */
.menu-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 3.5rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(184, 132, 74, 0.18);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

.hero-logo {
  width: clamp(120px, 18vw, 220px);
  filter: contrast(1.1) sepia(0.1) saturate(0.95) brightness(0.96);
  margin: 0.5rem 0;
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  margin-top: 0;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-top: 0.5rem;
}

/* ─── Category Nav ─── */
.category-nav {
  position: sticky;
  top: 58px;
  z-index: 90;
  background: rgba(245, 240, 232, 0.99);
  border-bottom: 1px solid rgba(184, 132, 74, 0.2);
  backdrop-filter: blur(10px);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1.5rem;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  flex-shrink: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 26, 10, 0.45);
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.cat-link:hover  { color: var(--gold); }
.cat-link.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── Main ─── */
.menu-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ─── Section ─── */
.menu-section {
  padding: 5rem 0 1rem;
  border-bottom: 1px solid rgba(184, 132, 74, 0.12);
}
.menu-section:last-of-type { border-bottom: none; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.script-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.time-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 132, 74, 0.55);
  padding: 0.25rem 0.9rem;
  border-radius: 2px;
  font-weight: 400;
}

.gold-rule { display: none; }

.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ─── Dish list ─── */
.dish-list {
  display: flex;
  flex-direction: column;
}

.dish {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(184, 132, 74, 0.1);
}
.dish:last-child { border-bottom: none; }

.dish-info { flex: 1; }

.dish-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.dish-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.dish-note {
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.7;
  margin-top: 0.3rem;
  font-style: italic;
}

.dish-price {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding-top: 0.1rem;
}

/* ─── Tilbehør bar ─── */
.tilbehoer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.4rem;
  background: rgba(184, 132, 74, 0.07);
  border-left: 4px solid var(--gold);
}

.tilbehoer-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.45rem;
}

.tilbehoer-items {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}

.tilbehoer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  width: 100%;
}

/* ─── Section foot note ─── */
.section-foot-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.65;
  font-style: italic;
  text-align: right;
}

/* ─── Featured 3-retters ─── */
.featured-section {
  background: radial-gradient(ellipse at center, rgba(184,132,74,0.06) 0%, transparent 70%);
  border-radius: 2px;
}

.three-course {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.course-title {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.course-divider {
  color: var(--gold);
  opacity: 0.35;
  font-size: 0.6rem;
}

.three-course-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1rem;
  padding: 1.5rem 0;
  width: 100%;
  border: 1px solid rgba(184, 132, 74, 0.3);
}

.three-course-price span:first-child {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.big-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}

/* ─── Ekstra gram ─── */
.ekstra-gram {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(184, 132, 74, 0.07);
  border-left: 4px solid var(--gold);
}

.ekstra-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.ekstra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid rgba(184, 132, 74, 0.1);
}
.ekstra-row:last-child { border-bottom: none; }
.ekstra-row .dish-price { font-size: 0.95rem; }

/* ─── Reserve CTA ─── */
.reserve-cta {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.reserve-cta p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 2.5rem;
  transition: background 0.3s, transform 0.3s;
}
.btn-reserve:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
.menu-footer {
  text-align: center;
  padding: 3.5rem 2rem;
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(184, 132, 74, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  width: 120px;
  margin: 0 auto 0.5rem;
  filter: contrast(1.15) sepia(0.1) saturate(0.9);
  opacity: 0.8;
}

.menu-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.menu-footer a[href^="tel"] { color: var(--gold); }
.menu-footer a[href^="tel"]:hover { color: var(--gold-dark); }

.footer-back {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.footer-back:hover { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .menu-topnav { padding: 0.8rem 1.25rem; }
  .topnav-cta  { display: none; }
  .menu-hero   { min-height: 44vh; padding: 7rem 1.5rem 4rem; }
  .menu-main   { padding: 0 1.25rem 5rem; }
  .menu-section { padding: 3.5rem 0 1rem; }
  .dish { gap: 1rem; }
  .dish-name { font-size: 0.9rem; }
  .dish-price { font-size: 1rem; }
  .tilbehoer-bar { padding: 0.85rem 1rem; }
  .three-course-price { padding: 1.2rem 2rem; }
}
