:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ece3;
  --color-text: #2b2420;
  --color-text-muted: #6b5f54;
  --color-primary: #c8202f;
  --color-primary-dark: #971722;
  --color-accent: #6b5a37;
  --color-border: #e6dccb;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

section:last-of-type {
  padding-bottom: 150px;
}

/* Floating call bar */
.call-bar-slot {
  min-height: 74px;
  margin-bottom: 28px;
}

.call-bar {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  max-width: 92vw;
  white-space: nowrap;
}

.call-bar--docked {
  position: static;
  display: table;
  margin: 0 auto;
  left: auto;
  transform: none;
  box-shadow: none;
}

.call-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-bar small {
  display: block;
  font-weight: 400;
  color: #f5d9dc;
  font-size: 0.68rem;
  margin-top: 2px;
  white-space: normal;
}

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

a {
  color: var(--color-primary);
}

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

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-badge {
  height: 68px;
  width: auto;
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-primary-dark);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Hero */
.hero {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 90px 0 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 16px;
  color: var(--color-text);
}

.hero-stripe {
  background: var(--color-primary);
  padding: 22px 16px;
  margin-bottom: 32px;
}

.hero-stripe h1 {
  margin: 0;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--color-text);
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Sections */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* Info cards (hours, address, etc) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  overflow: hidden;
}

.info-card-img {
  width: calc(100% + 56px);
  margin: -28px -28px 20px;
  height: 170px;
  object-fit: cover;
}

.card-caption {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-top: 0;
}

/* Menu teaser / full menu */
.menu-category {
  margin-bottom: 48px;
}

.menu-category h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 600;
}

.menu-item-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: block;
  margin-top: 2px;
}

.menu-item-prices {
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.menu-item-prices small {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-price-legend {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: -24px auto 40px;
  max-width: 480px;
}

.menu-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 32px;
}

/* About / image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  border-radius: 8px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 780px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.placeholder-img {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-details dt {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 20px;
}

.contact-details dd {
  margin: 4px 0 0;
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 300px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* Samtykke før kartet frå Google blir lasta */
.map-consent {
  background: var(--color-bg-alt);
  padding: 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.9rem;
}

.map-consent h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.map-consent p {
  margin: 0 0 10px;
  color: var(--color-text-muted);
}

.map-consent ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.map-consent li {
  margin-bottom: 2px;
}

.map-consent .btn {
  align-self: flex-start;
  margin: 6px 0 12px;
  padding: 11px 22px;
  font-size: 0.95rem;
}

.map-consent-alt {
  font-size: 0.82rem;
  margin: 0;
}

/* Tekstsider (personvern o.l.) */
/* Ingressen skal stå midt i lufta mellom hero-stripa og innhaldet under */
.hero .hero-note {
  margin-top: 72px;
  margin-bottom: 0;
}

.legal-doc {
  max-width: 720px;
}

.allergen-list {
  text-align: right;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 58%;
}

.allergen-note {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .menu-item .allergen-list {
    max-width: 50%;
  }
}

.legal-doc h2 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  margin: 36px 0 10px;
}

.legal-doc p,
.legal-doc li {
  color: var(--color-text);
}

.legal-doc ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-doc li {
  margin-bottom: 4px;
}

.legal-lead {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 8px;
}

.legal-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--color-primary-dark);
  color: #f0e4d8;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  color: #fff;
  margin-top: 0;
}

.footer-contact-col {
  text-align: right;
}

.footer-center-col {
  text-align: center;
}

.site-footer a {
  color: #f0e4d8;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 16px;
}

.footer-contact-col .social-links {
  justify-content: flex-end;
}

.footer-center-col .social-links {
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #cbb9a8;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-col,
  .footer-center-col {
    text-align: left;
  }

  .footer-contact-col .social-links,
  .footer-center-col .social-links {
    justify-content: flex-start;
  }
}

/* Responsive */
@media (max-width: 780px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    gap: 14px;
  }

  .brand-badge {
    height: 54px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    width: 100%;
  }
}

/* Språkvelger */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px;
  background: var(--color-bg-alt);
}

.lang-switch a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.lang-switch a:hover {
  color: var(--color-primary);
}

.lang-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: #fff;
}

.site-header .container {
  justify-content: flex-start;
  gap: 24px;
}

.brand {
  margin-right: auto;
}

.main-nav { order: 2; }
.lang-switch { order: 3; }
.nav-toggle { order: 4; }

@media (max-width: 780px) {
  /* menyen legg seg under, språkvelgaren blir verande ved sida av hamburgeren */
  .main-nav { order: 5; }
  .site-header .container { gap: 12px; }
}

/* Logoen får storleik frå CSS, medan width/height på taggen held av plassen */
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
