:root {
  /* Farger hentet fra Sobra scene sin logo: oliven-grønn (#5D7653) og sand/tan (#DCCFBA). */
  --cream: #F3EAD6;
  --paper: #FBF6EC;
  --stone: #DCCFBA;
  --ink: #2A2118;
  --ink-soft: #5A4C3B;
  --green: #5D7653;
  --green-dark: #4D6641;
  --green-text: #567049;
  --forest: #1F3326;
  --forest-deep: #12201A;
  --sand: #C9B183;
  --sand-light: #DCCFBA;
  --danger: #9A3B2E;
  --cream-on-dark: #F3EAD6;
  --muted-on-dark: #C9BCA0;
  --border-soft: rgba(42, 33, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--green-text); }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'Public Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-text);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--sand-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(243, 234, 214, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand img {
  height: 46px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-menu a:hover { color: var(--green-text); }
.nav-cta {
  background: var(--green);
  color: var(--paper) !important;
  padding: 0 1.1rem;
  border-radius: 3px;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-social-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
@media (max-width: 720px) {
  .nav-social-row { padding: 8px 1.5rem; }
}
.nav-menu a.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 4px;
  color: var(--ink);
}
.nav-social:hover { color: var(--green-text); background: rgba(93, 118, 83, 0.1); }
.nav-social svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 26, 0.35) 0%, rgba(18, 32, 26, 0.35) 40%, rgba(18, 32, 26, 0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  color: var(--cream-on-dark);
  text-align: left;
  width: 100%;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sand-light);
  margin-bottom: 0.8em;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--cream-on-dark);
  margin-bottom: 0.3em;
  line-height: 1.02;
}
.hero-lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--muted-on-dark);
  margin-bottom: 1.6em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--paper);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  border-color: rgba(243, 234, 214, 0.6);
  color: var(--cream-on-dark);
}
.btn-ghost:hover { background: rgba(243, 234, 214, 0.12); }
.btn-outline-light {
  border-color: var(--sand-light);
  color: var(--sand-light);
}
.btn-outline-light:hover { background: rgba(220, 207, 186, 0.14); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-alt, .section-dark { background: var(--forest); }
.section-white { background: #FFFFFF; }
.section-title-light { color: var(--cream-on-dark); }
.light-text { color: var(--muted-on-dark); }
.light-note { color: var(--muted-on-dark); font-size: 0.9rem; font-style: italic; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-reverse { grid-template-columns: 1fr 1.1fr; }
.split-reverse .split-media { order: 1; }
.split-reverse .split-text { order: 2; }
.split-media img {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.section-alt .split-media img,
.section-dark .split-media img { box-shadow: 0 20px 40px rgba(18, 32, 26, 0.35); }

.lead-text { font-size: 1.1rem; max-width: 62ch; color: var(--ink-soft); }

/* ---------- Room grid ---------- */
/* Alltid én kolonne, Lillesalen over Storkjøkkenet, uansett skjermbredde. */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 2.5rem 0 2rem;
}
.room-card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
.room-card {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.room-card img { width: 100%; height: 260px; object-fit: cover; }
.room-card-feature img { height: 280px; }
.room-card-body { padding: 1.75rem; }
.room-card-body h3 {
  font-size: 1.4rem;
  color: var(--ink);
  overflow-wrap: break-word;
}
.room-card-feature .room-card-body h3 { font-size: 1.8rem; }
.room-note { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; margin: 0; }
.access-note {
  text-align: center;
  color: var(--muted-on-dark);
  font-weight: 500;
  border-top: 1px solid rgba(243, 234, 214, 0.18);
  padding-top: 1.75rem;
}

/* ---------- Info grid (utleie) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1.5rem;
}
.info-card h3 {
  font-size: 1.05rem;
  color: var(--green-text);
  margin-bottom: 0.4em;
}
.info-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.cta-row { margin: 2.5rem 0 3rem; }

/* ---------- Kalender (utleie) ---------- */
.calendar-box { margin: 0 0 3rem; }
.calendar-box h3 { font-size: 1.05rem; margin-bottom: 0.8em; }
.calendar-embed,
.calendar-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  border-radius: 4px;
  border: none;
}
.calendar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px dashed var(--border-soft);
}
.calendar-placeholder p {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Gallery / lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 44px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 32, 26, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 234, 214, 0.15);
  color: var(--cream-on-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Program ---------- */
.program-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}
.program-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-text);
  margin-bottom: 0.9em;
}
.program-feature {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(42, 33, 24, 0.1);
}
.program-feature img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.program-feature-body { padding: 1.75rem; }
.program-date {
  font-weight: 600;
  color: var(--green-text);
  font-size: 0.92rem;
  margin-bottom: 0.5em;
}
.program-feature-body h3 { font-size: 1.5rem; margin-bottom: 0.4em; }
.program-feature-body p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-soft);
}
.program-list li {
  display: flex;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.program-list-date {
  flex: 0 0 5.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}
.program-list-title {
  color: var(--ink);
  font-size: 0.95rem;
}
.program-list-title em { color: var(--ink-soft); font-style: italic; }
.program-list-extra { margin-top: 1.5rem; }

/* ---------- Task list ---------- */
.task-list {
  columns: 2;
  gap: 2rem;
  padding-left: 1.2rem;
  margin: 1.5rem 0 2rem;
  color: var(--ink-soft);
}
.task-list li { margin-bottom: 0.6em; break-inside: avoid; }

/* ---------- Kontakt ---------- */
.kontakt-lede { font-size: 1.15rem; max-width: 50ch; }
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.kontakt-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-light);
  margin-bottom: 0.5em;
}
.kontakt-block p { color: var(--cream-on-dark); margin: 0; }
.kontakt-block a { color: var(--cream-on-dark); text-decoration: underline; }
.kontakt-role { color: var(--muted-on-dark); font-size: 0.82rem; font-style: italic; }

/* ---------- Støttespillere ---------- */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.sponsor-item {
  flex: 0 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.sponsor-item img { max-height: 90px; width: auto; object-fit: contain; }
.sponsor-caption { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
a.sponsor-item { text-decoration: none; transition: opacity 0.2s ease; }
a.sponsor-item:hover { opacity: 0.72; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--muted-on-dark);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .split, .split-reverse {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-media, .split-reverse .split-text { order: initial; }
  .split-media img { aspect-ratio: 16 / 10; }
  .program-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--border-soft);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-menu.open { max-height: 480px; }
  .nav-menu li { border-top: 1px solid var(--border-soft); }
  .nav-menu a {
    padding: 0 1.5rem;
    height: 56px;
  }
  .nav-cta { border-radius: 0; text-align: center; justify-content: center; }

  .section { padding: 3.5rem 1.25rem; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .task-list { columns: 1; }
  .program-list li { gap: 0.9rem; }
  .program-list-date { flex-basis: 4.6rem; }
  .hero-content { padding: 2.5rem 1.25rem 3rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
