:root {
  --sand: #f5efe5;
  --paper: #fffaf2;
  --ink: #10212b;
  --muted: #5c6b73;
  --sea: #0e6f7b;
  --deep: #082f3a;
  --sun: #f2b84b;
  --line: rgba(16, 33, 43, .12);
  --shadow: 0 22px 70px rgba(8, 47, 58, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(245, 239, 229, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--deep);
  color: white;
  letter-spacing: .04em;
  font-size: .82rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.64); }
.language-switch a { text-decoration: none; padding: 7px 10px; border-radius: 999px; font-weight: 900; font-size: .82rem; color: var(--muted); }
.language-switch a.active { background: var(--deep); color: #fff; }
.site-nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}
.site-nav a:hover, .site-nav .nav-cta { background: #fff; color: var(--ink); }
.nav-toggle { display: none; }

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: clamp(20px, 3vw, 42px);
  align-items: stretch;
  padding: clamp(18px, 4vw, 54px);
}
.hero-media {
  min-height: 520px;
  border-radius: calc(var(--radius) + 18px);
  background:
    linear-gradient(180deg, rgba(8,47,58,.05), rgba(8,47,58,.25)),
    url("https://image.novasol.com/pic/600/b07/b07002_main_01.jpg") center / cover no-repeat,
    url("img/house-exterior.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-card {
  align-self: center;
  border-radius: calc(var(--radius) + 18px);
  background: var(--paper);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 900;
  color: var(--sea);
}
h1, h2, h3 { line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 6.4rem); letter-spacing: -.07em; }
h2 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--muted); margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
}
.button.primary { background: var(--deep); color: white; }
.button.ghost { border-color: var(--line); background: white; color: var(--deep); }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 54px) clamp(32px, 6vw, 72px);
}
.quick-facts article {
  padding: 22px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.quick-facts strong { display: block; font-size: 1.7rem; line-height: 1; }
.quick-facts span { color: var(--muted); font-weight: 700; }

.section { padding: clamp(56px, 8vw, 120px) clamp(18px, 4vw, 54px); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); }
.section p { color: var(--muted); font-size: 1.05rem; }
.feature-list {
  display: grid;
  gap: 14px;
}
.feature-list div, .info-grid article, .cards article {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-list span { color: var(--sun); font-weight: 1000; }
.feature-list p { margin: 8px 0 0; color: var(--ink); font-weight: 900; font-size: 1.2rem; }

.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading.narrow { max-width: 850px; margin-inline: auto; text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}
.gallery-grid .wide { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: .9rem;
}

.dark {
  background: var(--deep);
  color: white;
  border-radius: calc(var(--radius) + 26px);
  margin: 0 clamp(12px, 2vw, 28px);
}
.dark p { color: rgba(255,255,255,.76); }
.dark .eyebrow { color: #72d3dc; }
.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.dark .cards article { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.info-grid article h3, .cards article h3 { margin-bottom: 10px; }
.info-grid article p, .cards article p { margin: 0; }

.image-stack {
  display: grid;
  gap: 14px;
}
.image-stack img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-stack img:nth-child(2) { width: 82%; margin-left: auto; margin-top: -90px; border: 8px solid var(--sand); }

.cta-panel {
  margin: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 54px);
  padding: clamp(34px, 7vw, 90px);
  border-radius: calc(var(--radius) + 22px);
  text-align: center;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cta-panel h2 { max-width: 760px; margin-inline: auto; margin-bottom: 26px; }
.site-footer {
  padding: 28px clamp(18px, 4vw, 54px) 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .hero, .split, .split.reverse { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; }
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid, .info-grid, .cards.three { grid-template-columns: 1fr 1fr; }
  .gallery-grid .wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .language-switch { order: 3; }
  .nav-toggle {
    display: inline-flex;
    border: 0;
    background: white;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
  }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .quick-facts, .gallery-grid, .info-grid, .cards.three { grid-template-columns: 1fr; }
  .gallery-grid .wide { grid-column: auto; }
  .gallery-grid figure { min-height: 240px; }
  .site-footer { flex-direction: column; }
}

/* Digital velkomstmappe pages */
.subhero {
  min-height: 48vh;
  display: grid;
  align-items: end;
  padding: clamp(80px, 12vw, 150px) clamp(18px, 4vw, 54px) clamp(42px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(8,47,58,.80), rgba(8,47,58,.25)),
    url("img/beach-dunes.jpg") center / cover no-repeat;
  color: white;
}
.subhero h1 { max-width: 980px; }
.subhero .lead { max-width: 780px; color: rgba(255,255,255,.82); }
.guest-hero { background-image: linear-gradient(90deg, rgba(8,47,58,.82), rgba(8,47,58,.18)), url("img/house-exterior.jpg"); }
.local-hero { background-image: linear-gradient(90deg, rgba(8,47,58,.82), rgba(8,47,58,.18)), url("img/north-sea.jpg"); }
.practical-hero { background-image: linear-gradient(90deg, rgba(8,47,58,.86), rgba(8,47,58,.20)), url("img/boat-beach.jpg"); }
.section.compact { padding-top: clamp(38px, 6vw, 76px); padding-bottom: clamp(38px, 6vw, 76px); }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-card, .feature-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.portal-card:hover, .feature-list a:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); }
.portal-card p { min-height: 82px; }
.portal-card span { font-weight: 1000; color: var(--sea); }
.two-col { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 18px; align-items: start; }
.content-card, .emergency-card {
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.checklist li, .content-card li, .cards li, .info-grid li { margin-bottom: 9px; }
.note { padding: 18px; background: #fff; border-radius: 20px; border: 1px solid var(--line); margin: 18px 0; }
.card-image { border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.tool-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.guide-search {
  flex: 1 1 340px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 20px;
  font: inherit;
  background: white;
  color: var(--ink);
}
.guide-list { display: grid; gap: 12px; }
.guide-item {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.guide-item[open] { background: #fff; box-shadow: 0 10px 40px rgba(8,47,58,.08); }
.guide-item summary { cursor: pointer; padding: 20px 24px; font-weight: 1000; list-style-position: outside; }
.guide-item p { padding: 0 24px 22px 24px; margin: 0; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.link-cloud a { padding: 10px 14px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 800; border: 1px solid var(--line); }
.emergency-grid { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(260px,1.2fr); gap: 18px; }
.emergency-card.urgent { background: var(--deep); color: white; }
.emergency-card.urgent p { color: rgba(255,255,255,.86); }
.big-number { font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95; margin: 12px 0; font-weight: 1000; letter-spacing: -.07em; color: inherit; }
.small-number { font-size: clamp(1.8rem, 4vw, 3.4rem); color: var(--sea); }
.cta-panel.small { padding: clamp(28px, 5vw, 56px); }
@media (max-width: 980px) {
  .portal-grid, .two-col, .emergency-grid { grid-template-columns: 1fr; }
  .portal-card p { min-height: auto; }
}

@media (max-width: 720px) { .language-switch { margin-left: auto; } .site-header { flex-wrap: wrap; } .site-nav.open { width: 100%; } }
.cards.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .cards.two { grid-template-columns: 1fr; } }
