/* =========================================================
   DESIGN TOKENS
   Alt av farge og type styres herfra — endre disse for å
   gi hele siden et nytt uttrykk.
   ========================================================= */
:root {
  --red: #8B1A1A;
  --red-deep: #5C0F0F;
  --gold: #C9A24B;
  --gold-soft: #E4C687;
  --ink: #1A1512;
  --paper: #F6EEDD;
  --jade: #2F5233;

  --font-display: "Ma Shan Zheng", cursive;
  --font-body: "Noto Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1120px;
  --radius: 6px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);  
  line-height: 1.6;
}
h1, h2, h3 { margin: 0 0 0.4em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.section { padding: 5rem 1.5rem; }
.section-alt { background: #EFE4CC; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

.eyebrow, .hero-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--red-deep);
  font-weight: 400;
}

.lede { max-width: 60ch; font-size: 1.05rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--paper);
}
.logo-mark { width: 34px; height: 34px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-soft);
}
.main-nav {
  display: flex;
  gap: 1.6rem;
}
.main-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  height: 2px;
  background: var(--gold-soft);
  display: block;
}

/* =========================================================
   HERO
   Fjell + drage tegnet i SVG. Alt er vektorgrafikk, så det
   skaleres skarpt på alle skjermer uten bildefiler.
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--red-deep) 0%, var(--red) 55%, #3a0d0d 100%);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mountain { fill: var(--ink); opacity: 0.35; }
.mountain-front { opacity: 0.55; }
.dragon {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.85;
}
.dragon-eye { fill: var(--gold-soft); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 4.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--paper);
  width: 100%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  color: var(--gold-soft);
  margin: 0.2em 0;
}
.hero-tagline { font-size: 1.15rem; max-width: 45ch; opacity: 0.95; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(228, 198, 135, 0.12); }
.btn-full { width: 100%; text-align: center; border: none; }

/* =========================================================
   MENY
   ========================================================= */

.allergen-tags {
  display: inline-block;
  margin-top: 0.3rem;
}
.allergen-tag {
  font-size: 0.9rem;
  margin-right: 0.3rem;
  cursor: help;
}

.menu-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.menu-tab {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red-deep);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.menu-tab.active,
.menu-tab:hover {
  background: var(--red);
  color: var(--paper);
}

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dotted rgba(26, 21, 18, 0.25);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 600; }
.menu-item-desc {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: #55483a;
  margin-top: 0.15rem;
}
.menu-item-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.menu-tab[data-cat="anbefalt"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.menu-tab[data-cat="anbefalt"]:hover {
  background: var(--gold-soft);
}
.menu-tab[data-cat="anbefalt"].active {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.menu-panel[data-cat="anbefalt"] {
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.08), rgba(139, 26, 26, 0.04));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
}
.menu-panel[data-cat="anbefalt"] .menu-item {
  border-bottom-color: rgba(201, 162, 75, 0.3);
}


/* =========================================================
   FORMS (bordbestilling + bestill mat)
   ========================================================= */
.card-form {
  background: #fff;
  border: 1px solid rgba(139, 26, 26, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(26, 21, 18, 0.06);
}
.or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: #999;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(26, 21, 18, 0.15);
}

.call-alternative {
  text-align: center;
  background: #fff;
  border: 1px solid rgba(139, 26, 26, 0.15);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 0.5rem;
}
.call-alternative p {
  font-size: 0.95rem;
  color: var(--red-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-call {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 600;
}
.btn-call:hover {
  background: var(--gold-soft);
}

.form-row { margin-bottom: 1.1rem; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--red-deep);
  font-weight: 600;
}
input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d8cdb4;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-status {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.ok { color: var(--jade); }
.form-status.err { color: var(--red); }


/* =========================================================
   BESTILL MAT — order picker + summary
   ========================================================= */
/* .order-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
*/
.order-pick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dotted rgba(26, 21, 18, 0.2);
}

.order-pick-item button {
  background: var(--red);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  line-height: 1;
}

.order-group {
  border-bottom: 1px solid rgba(26, 21, 18, 0.12);
}
.order-group:first-child {
  border-top: 1px solid rgba(26, 21, 18, 0.12);
}

.order-group-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 1rem 0.2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red-deep);
  cursor: pointer;
  text-align: left;
}
.order-group-header:hover {
  color: var(--red);
}

.order-group-arrow {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
  color: var(--gold);
}
.order-group.open .order-group-arrow {
  transform: rotate(180deg);
}

.order-group-body {
  display: none;
  padding: 0 0.2rem 0.8rem;
}
.order-group.open .order-group-body {
  display: block;
}

.order-pick-price {
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 600;
}
/*
.order-summary {
  background: #fff;
  border: 1px solid rgba(139, 26, 26, 0.15);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: sticky;
  top: 90px;
}
.order-lines { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.92rem; }
.order-lines li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
}
.order-empty { color: #999; font-style: italic; }
.order-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 700;
  border-top: 2px solid var(--ink);
  padding: 0.6rem 0;
  margin-bottom: 1rem;
} */

/* =========================================================
   INFO / KART / KONTAKT
   ========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 1.5rem;
}
.info-card {
  background: #fff;
  border: 1px solid rgba(139, 26, 26, 0.15);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 0.4rem 0; }
.hours-table td:last-child { text-align: right; font-family: var(--font-mono); }
.info-map { padding: 0; overflow: hidden; }
.info-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; }

.contact-social-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.contact-social-link:hover {
  text-decoration: underline;
}
/* =========================================================
   GALLERI
   Plassholdere: bytt ut .ph-N bakgrunnene med
   background-image: url("img/ditt-bilde.jpg"); background-size: cover;
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  background-size: cover;
  background-position: center;
}
.gallery-item span {
  background: rgba(26, 21, 18, 0.55);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

/*.ph-3 { background: linear-gradient(135deg, #2F5233, #1A1512); }*/
.ph-1 { background-image: url("img/inside.jpg"); }
.ph-2 { background-image: url("img/outside.jpg"); }
.ph-3 { background-image: url("img/Trysilstua.jpg"); }
.ph-4 { background-image: url("img/Birthday.jpg"); }
.ph-5 { background-image: url("img/familien.jpg"); }
.ph-6 { background-image: url("img/utenfra.jpg"); }
.ph-7 { background-image: url("img/Klæbo.jpg"); }
.ph-8 { background-image: url("img/Aukeland.jpg"); }
.ph-9 { background-image: url("img/Birk.jpg"); }
.ph-10 { background-image: url("img/gjest.jpg"); }

.gallery-note { margin-top: 1.2rem; font-size: 0.85rem; color: #6b5e4d; }

.food-1 { background-image: url("img/53.jpg"); }
.food-2 { background-image: url("img/hongkong.jpg"); }
.food-3 { background-image: url("img/6.jpg"); }
.food-4 { background-image: url("img/13.jpg"); }
.food-5 { background-image: url("img/and.jpg"); }
.food-6 { background-image: url("img/biffstrimler.jpg"); }
.food-7 { background-image: url("img/pepperbiff.jpg"); }
.food-8 { background-image: url("img/dessert.jpg"); }
/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.social-link:hover {
  color: var(--gold);
}
.social-icon {
  width: 20px;
  height: 20px;
}

.discount-note {
  font-size: 0.85rem;
  color: #6b5e4d;
  margin: -0.5rem 0 1rem;
}
.discount-note-active {
  color: var(--jade);
  font-weight: 600;
}

.promo-banner {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--ink);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1rem 1.5rem;
    display: none;
    border-bottom: 2px solid var(--gold);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row-split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}