/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
/*    --bg: #fefae0;*/
    --bg: #3a506b;
    --text: #fefae0;
    --text-muted: #b8c9d6;
    --text-hover: #2b2b2b;
    --accent: #d4a84b;
    --border-subtle: rgba(254, 250, 224, 0.15);
    --font: 'Josefin Sans', sans-serif;
    --font-body: 'Lora', serif;
    --max-w: 1280px;
    --radius: 4px;
}

.theme-light {
  --bg:            #fefae0;
  --text:          #3a506b;
  --text-muted:    #6b8399;
  --text-hover:    #1a2a3a;
  --border-subtle: rgba(58, 80, 107, 0.2);
}

.theme-light .info-band {
  display: none;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Blazor layout reset */
.content, .content.px-4, article {
  padding: 0 !important;
  margin-top: 0 !important;
  max-width: 100% !important;
}

/* ══════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════ */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

main {
  flex: 1;
  position: relative;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
  background: var(--bg);
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  padding: 1.5rem 2rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  position: relative;
  background: var(--bg);
  z-index: 300;
}

/* Mobil: transparent, flytande ovanpå videon — bara på startsidan */
.navbar.navbar-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  display: none;
  gap: 3rem;
}

.nav-links a {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-hover);
}

/* ══════════════════════════════════════
   HAMBURGER
══════════════════════════════════════ */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 301;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════
   MOBILE OVERLAY
══════════════════════════════════════ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.mobile-nav a {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.15s;
}

.mobile-nav a:hover {
  color: var(--text-hover);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
/* Mobil: full viewport, video + logo + knappar ovanpå */
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero-logo {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 360px;
  height: auto;
  flex-shrink: 0;
}

.hero-info--desktop {
  display: none;
}

.home-info-section {
  display: block;
  padding: 2rem 1rem 2rem;
  background: var(--bg);
}

.hero-info--mobile {
  display: block;
  width: 90%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.hero-oppetider-mobile {
  display: block;
  position: relative;
  z-index: 3;
  width: 320px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-btns {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 90%;
}

/* ══════════════════════════════════════
   SCROLL INDICATOR
══════════════════════════════════════ */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
  display: none;
}

.scroll-indicator svg {
  width: 36px;
  height: 36px;
  color: var(--text);
}

@media (max-width: 640px) {
  .scroll-indicator { display: block; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════ */
.anim-fade {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade.anim-init {
  opacity: 0;
  transform: translateY(28px);
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.15s; }
.anim-delay-2 { transition-delay: 0.3s; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: .8rem 4rem;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  background: transparent;
  border: 2px dashed var(--text);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
}

/* ══════════════════════════════════════
   TWO COLUMNS
══════════════════════════════════════ */
.two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.col-box {
  padding: 2.5rem 1.5rem;
}

.col-box h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--text);
}


.col-box p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 2;
  color: var(--text);
  opacity: 0.85;
}

/* ══════════════════════════════════════
   INFO BAND
══════════════════════════════════════ */
.info-band {
  position: relative;
  z-index: 1;
  background: var(--text);
  padding: 0;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ══════════════════════════════════════
   PHOTO CARDS
══════════════════════════════════════ */
.photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.photo-card {
  overflow: hidden;
  position: relative;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}


.photo-card img:hover {
  transform: scale(1.04);
}

.photo-card-label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text);
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 640px) {
  .meny-tab {
    padding: .4rem 1.5rem;
    font-size: 0.85rem;
  }

  .photo-cards {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin-left: 0;
  }

  .photo-card:nth-child(2) img {
    aspect-ratio: 3 / 4;
  }
}

.info-map {
  width: 100%;
  line-height: 0;
}

.info-section-img--desktop {
  width: 90%;
  height: auto;
  display: block;
  padding: 4rem 0;
  margin: 0 auto;
}

.info-section-img--mobile {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 1.5rem auto 1rem;
}

@media (min-width: 641px) {
  .info-section-img--mobile { display: none; }
}

@media (max-width: 640px) {
  .info-section-img--desktop { display: none; }
}

.info-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  filter: brightness(0.9) saturate(0.85);
}

.info-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
  background: var(--text);
  border-radius: var(--radius) var(--radius) 0 0;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.info-block h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  padding-left: 0.75rem;
  border-left: 3px solid var(--bg);
}

.info-block-icon-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
}

.info-block-icon-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  color: var(--bg);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.hours-list > div {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
  gap: 1.5rem;
}

.hours-list > div span:first-child {
  flex: 1;
}

.hours-list > div span:last-child {
  font-weight: 300;
  white-space: nowrap;
  text-align: right;
  min-width: 60px;
}

.hours-list .closed {
  font-style: italic;
  font-weight: 300;
}

.info-block a {
  color: var(--bg);
  transition: color 0.2s;
}

.info-block a:hover {
  color: var(--accent);
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.social-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--bg);
  color: var(--bg);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--text);
  padding: 2rem 2rem;
}

.footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner .footer-email { flex: 0 0 auto; }
.footer-inner .footer-social-icons { flex: 0 0 auto; }
.footer-inner .footer-copy { flex: 0 0 auto; }

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-inner .footer-social-icons { order: -1; }

  .footer-email,
  .footer-copy { text-align: center; }
}


.footer-social-icons {
  display: flex;
  gap: .6rem;
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.footer-social-icons a:hover {
  border-color: var(--text-hover);
  color: var(--text-hover);
  background: var(--text);
}

.footer-social-icons svg {
  width: 24px;
  height: 24px;
}

.footer-copy {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
  opacity: .7;
/*  text-transform: lowercase;*/
}

.footer-email {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: .02em;
  opacity: .7;
}

/* ══════════════════════════════════════
   MENY PAGE
══════════════════════════════════════ */
.meny-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem auto 1.5rem;
}

.meny-tab {
  width: 160px;
  padding: .8rem 0;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  background: transparent;
  border: 2px dashed var(--text);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.meny-tab:hover {
  background: var(--text);
  color: var(--bg);
}

.meny-tab--active {
  opacity: 1;
}


.meny-page {
  min-height: 0;
  padding: 0.5rem 1rem 1.5rem;
}

.meny-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.meny-card {
  border: 8px double var(--text);
  padding: 1.5rem 1rem;
}

.meny-card-wide {
  grid-column: 1 / -1;
}

.meny-card h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.meny-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meny-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--text);
}

.meny-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meny-item .namn {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.meny-item .pris {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  font-style: oblique;
  letter-spacing: 0.03em;
}

.meny-img--mobile { display: none; }
.meny-img--desktop { display: block; }

@media (max-width: 640px) {
  .meny-img--mobile { display: block; }
  .meny-img--desktop { display: none; }
}

.meny-bilder {
  width: 100%;
/*  padding: 1rem 0;*/
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.meny-bilder img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.meny-allergi {
  max-width: 420px;
  margin: 2.5rem auto 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.meny-allergi p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* ══════════════════════════════════════
   BLAZOR ERROR UI
══════════════════════════════════════ */
#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

/* ══════════════════════════════════════
   TABLET  ≥ 641px
══════════════════════════════════════ */
@media (min-width: 641px) {
  .hero-image {
    min-height: 50vh;
    flex-direction: column;
    gap:1rem;
  }

  .hero-video,
  .hero-overlay {
    display: none;
  }

  .hero-logo {
    position: static;
    width: 66%;
    max-width: 800px;
    height: auto;
    margin-top: 4rem;
  }

  .hero-info--desktop {
    display: block;
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1300px;
    height: auto;
    flex-shrink: 0;
    margin-top: 0rem;
    margin-bottom: 3rem;
  }

  .hero-info--mobile {
    display: none;
  }

  .home-info-section {
    display: none;
  }

  .hero-btns {
    position: static;
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .navbar {
    padding: 2rem abs();
  }

  /* Cancel transparent/absolute navbar on desktop — always solid in normal flow */
  .navbar.navbar-transparent {
    position: relative;
    background: var(--bg);
  }

  .nav-links {
    display: flex;
  }

  .hero-oppetider-mobile {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .content-wrapper {
    padding: 3rem 2rem 8rem;
  }

  .btn-row {
    flex-direction: column;
    justify-content: center;
  }

  .btn-primary {
    width: auto;
    max-width: none;
    font-size: 1.4rem;
    opacity: 1;
  }

  .two-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .info-band {
    padding: 0;
  }

  .info-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 4rem 5rem;
    max-width: 600px;
  }

  .info-map iframe {
    height: 400px;
  }

  .meny-page {
    padding: 1rem 2rem 1rem;
  }

  .meny-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .meny-card {
    padding: 2.2rem 2rem;
  }

  .meny-card h2 {
    font-size: 2rem;
  }

  .meny-bilder img {
    width: 100%;
    height: auto;
  }
}

/* ══════════════════════════════════════
   DESKTOP  ≥ 1024px
══════════════════════════════════════ */
@media (min-width: 1024px) {
  .info-band {
    padding: 0;
  }

  .info-inner {
    padding: 4rem 2rem 8rem;
  }

  .nav-links a {
    font-size: 2.5rem;
  }
}
