/* ============================================================
   PASHAGRILL — spec-redesign
   Nästan-svart, varm cream, glödorange. Cormorant Garamond + Manrope.
   All rörelse drivs i JS/rAF (main.js) — CSS-animationer undviks medvetet
   (reduced-motion är PÅ på byggmaskinen och får inte döda demon).
   ============================================================ */

:root {
  color-scheme: dark;
  --ink:   #0A0705;
  --ink2:  #120C07;
  --cream: #F0E7D8;
  --cream-dim: rgba(240, 231, 216, 0.6);
  --cream-faint: rgba(240, 231, 216, 0.34);
  --ember: #E8722C;
  --amber: #E3A05C;
  --hairline: rgba(240, 231, 216, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.2rem, 4vw, 4rem);
}

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

html { scroll-behavior: auto; }
html, body { overflow-x: clip; } /* Ken Burns/parallax får aldrig skapa sidledsscroll */

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ember); color: var(--ink); }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Filmkorn ---------- */
.grain {
  position: fixed; inset: -60px; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85em 1.9em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-ember { background: var(--ember); color: #140B04; }
.btn-ember:hover { background: var(--amber); }
.btn-wide { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2.4rem;
  padding: 1.1rem var(--pad);
  transition: background-color 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 7, 5, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.header-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.34em;
}
.header-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.header-nav a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s ease;
}
.header-nav a:hover { color: var(--cream); }
.header-right { display: flex; align-items: center; gap: 1.6rem; }
.header-phone { font-size: 0.86rem; color: var(--cream-dim); letter-spacing: 0.04em; }
.header-phone:hover { color: var(--cream); }

/* ---------- Scrub-sektioner ---------- */
.scrub { position: relative; }
#hero { height: 460vh; }
#rummet, #hantverket { height: 430vh; }

.scrub-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.scrub-sticky canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.scrub-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 44% at 50% 50%, rgba(8, 5, 3, 0.52) 0%, rgba(8, 5, 3, 0.28) 55%, transparent 78%),
    radial-gradient(120% 90% at 50% 110%, rgba(10, 7, 5, 0.55) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(10, 7, 5, 0.55) 0%, rgba(10, 7, 5, 0.05) 26%, rgba(10, 7, 5, 0.05) 62%, rgba(10, 7, 5, 0.72) 100%);
  pointer-events: none;
}
.hero-shade {
  background:
    radial-gradient(95% 72% at 50% 46%, rgba(8, 5, 3, 0.52) 0%, rgba(8, 5, 3, 0.24) 58%, transparent 78%),
    linear-gradient(to bottom, rgba(10, 7, 5, 0.62) 0%, rgba(10, 7, 5, 0.14) 30%, rgba(10, 7, 5, 0.2) 66%, rgba(10, 7, 5, 0.82) 100%);
}

.scrub-copy {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.scrub-copy > * { grid-area: 1 / 1; }

.scrub-line {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  opacity: 0;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 4px 34px rgba(0, 0, 0, 0.75),
    0 0 70px rgba(0, 0, 0, 0.6);
  will-change: opacity, transform;
}
.scrub-line-lg { font-size: clamp(1.9rem, 4.4vw, 3.6rem); }
.scrub-line em { color: var(--amber); }

/* ---------- Hero ---------- */
.hero-copy { align-content: center; }

.hero-kicker {
  position: absolute;
  grid-area: auto; /* annars blir titelraden containing block för abs-positionering */
  top: 19vh;
  left: var(--pad); right: var(--pad);
  text-align: center;
  font-size: clamp(0.66rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 9px rgba(0, 0, 0, 0.85),
    0 3px 26px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9.2vw, 8.6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.9),
    0 3px 16px rgba(0, 0, 0, 0.8),
    0 6px 60px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  max-width: 100%;
}
.hero-title .hl {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  will-change: opacity, transform;
}

.hero-sub {
  position: absolute;
  grid-area: auto;
  bottom: 24vh;
  left: var(--pad); right: var(--pad);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  opacity: 0;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 3px 30px rgba(0, 0, 0, 0.7);
}

.reveal-line { opacity: 0; will-change: opacity, transform; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-faint);
  transition: opacity 0.4s ease;
}
.scroll-hint span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--ember));
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(6rem, 14vh, 11rem) var(--pad);
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.statement-kicker, .menu-kicker {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.6rem;
}
.statement-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}
.statement-title em, .menu-title em, .booking-title em { color: var(--amber); }
.statement-body {
  max-width: 34rem; margin: 0 auto;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
}

/* ---------- Socialt bevis ---------- */
.proof {
  border-top: 1px solid var(--hairline);
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad);
  text-align: center;
}
.proof-score {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 1;
  color: var(--cream);
}
.proof-of {
  font-size: 0.38em;
  color: var(--cream-dim);
  font-style: italic;
  margin-left: 0.2em;
}
.proof-stars {
  font-size: 1.25rem;
  letter-spacing: 0.42em;
  color: var(--amber);
  margin: 0.9rem 0 0.5rem;
  padding-left: 0.42em; /* optisk kompensation för tracking */
}
.star-half {
  background: linear-gradient(90deg, var(--amber) 50%, rgba(240, 231, 216, 0.22) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-src {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ---------- Meny ---------- */
.menu {
  background: var(--ink2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
}
.menu-head { text-align: center; max-width: 800px; margin: 0 auto clamp(3rem, 7vh, 5.5rem); }
.menu-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.menu-note {
  color: var(--cream-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

.menu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1180px;
  margin: 0 auto;
}

.menu-group {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: 0.04em;
  color: var(--amber);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.9rem;
  margin-bottom: 1.8rem;
}

.menu-list { list-style: none; }
.menu-list li { padding: 0.62rem 0; }

.mi { display: flex; align-items: baseline; gap: 0.6rem; }
.mi-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}
.mi-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(240, 231, 216, 0.28);
  transform: translateY(-0.24em);
  min-width: 1.5rem;
}
.mi-price {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  white-space: nowrap;
}
.mi-desc {
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 46ch;
  margin-top: 0.15rem;
}

.menu-desserts { max-width: 1180px; margin: clamp(3rem, 7vh, 5rem) auto 0; }
.menu-list-desserts {
  columns: 2;
  column-gap: clamp(2.5rem, 6vw, 6rem);
}
.menu-list-desserts li { break-inside: avoid; }
.menu-foot {
  margin-top: 2.4rem;
  text-align: center;
  color: var(--cream-faint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
}

/* ---------- Boka ---------- */
.booking { padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.booking-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
.booking-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 2.4rem;
}

.info-list, .hours-list { border-top: 1px solid var(--hairline); margin-bottom: 2.2rem; }
.info-list > div, .hours-list > div {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.info-list dt, .hours-list dt {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-faint);
  padding-top: 0.2em;
}
.info-list dd, .hours-list dd { font-size: 0.98rem; text-align: right; }
.info-list a:hover, .form-note a:hover, .form-done a:hover { color: var(--amber); }
.hours-closed { color: var(--ember); font-weight: 600; letter-spacing: 0.06em; }

.map-wrap {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink2);
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) invert(0.9) sepia(0.35) saturate(1.3) hue-rotate(-12deg) brightness(0.86) contrast(0.92);
}

/* Formulär */
.booking-form-wrap {
  background: var(--ink2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  position: sticky; top: 90px;
}
.booking-form-wrap h3, .form-done h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}
#bookingForm label {
  display: block;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 1.15rem;
}
#bookingForm input, #bookingForm select {
  display: block; width: 100%;
  margin-top: 0.45rem;
  background: rgba(240, 231, 216, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.8em 0.95em;
  transition: border-color 0.25s ease;
}
#bookingForm input:focus, #bookingForm select:focus {
  outline: none;
  border-color: var(--ember);
}
#bookingForm input::placeholder { color: var(--cream-faint); }
#bookingForm input[type="date"] { color-scheme: dark; }
#bookingForm select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23E3A05C' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9em center; }
#bookingForm select:invalid { color: var(--cream-faint); }
#bookingForm select option {
  background-color: #171009; /* popup-listan ärver annars vit Windows-bakgrund → vitt på vitt */
  color: var(--cream);
}
#bookingForm select option:disabled { color: rgba(240, 231, 216, 0.4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#bookingForm .btn { margin-top: 0.4rem; }
.form-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--cream-faint);
  line-height: 1.7;
}
.form-note a, .form-done a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 3px; }
.form-done p { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.8; }
.field-error { border-color: var(--ember) !important; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--ink2);
  text-align: center;
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad) 2.6rem;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  letter-spacing: 0.34em;
  margin-bottom: 1.1rem;
  padding-left: 0.34em; /* optisk kompensation för tracking */
}
.footer-line { color: var(--cream-dim); font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-line a:hover { color: var(--amber); }
.footer-links { margin-top: 1.4rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-faint);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-links a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.footer-copy { color: var(--cream-faint); font-size: 0.78rem; margin-top: 2.2rem; letter-spacing: 0.04em; }

/* ---------- Reveals (styrs av IO i main.js, threshold 0) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .header-nav, .header-phone { display: none; }
  .header-right { margin-left: auto; }

  .menu-columns { grid-template-columns: 1fr; }
  .menu-list-desserts { columns: 1; }
  .booking-grid { grid-template-columns: 1fr; }
  .booking-form-wrap { position: static; }

  .hero-kicker { top: 16vh; }
  .hero-sub { bottom: 21vh; }
  .hero-title { letter-spacing: 0.04em; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .mi-name { font-size: 1.06rem; }
}
