/* ====================================================================
   Vores pool – stylesheet
   Palette: dybt havblåt, turkis og varm sand
   ==================================================================== */

:root {
  --navy:   #0a2735;
  --navy-2: #103647;
  --teal:   #0e8aa8;
  --teal-d: #0a6b84;
  --aqua:   #35c6e3;
  --sand:   #e7d8b8;
  --sand-d: #cdb587;
  --cream:  #f8f6f0;
  --paper:  #ffffff;
  --ink:    #16323d;
  --muted:  #5c7079;
  --line:   #e3e0d6;
  --shadow: 0 18px 50px -24px rgba(10, 39, 53, .45);
  --shadow-sm: 0 8px 24px -14px rgba(10, 39, 53, .35);
  --radius: 18px;
  --maxw:   1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-d); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--teal-d);
  margin: 0 0 .9rem;
}

.lead { font-size: 1.18rem; color: #33505b; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 240, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--navy); }
.brand .drop {
  width: 26px; height: 26px; flex: none;
  color: var(--teal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: .97rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(14, 138, 168, .1); color: var(--teal-d); }
.nav-links a.active { background: var(--navy); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: .55rem; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.lang-switch a {
  padding: .34rem .66rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--muted);
  line-height: 1;
}
.lang-switch a:hover { background: rgba(14,138,168,.1); color: var(--teal-d); }
.lang-switch a.active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .6rem;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(14, 138, 168, .7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 36px -12px rgba(14, 138, 168, .85); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color:#fff; }
.btn-dark { background: var(--navy); color:#fff; }
.btn-dark:hover { background: var(--navy-2); color:#fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,39,53,.30) 0%, rgba(10,39,53,.55) 55%, rgba(10,39,53,.82) 100%);
}
.hero-inner {
  padding-block: clamp(5rem, 16vh, 11rem);
  max-width: 720px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero .lead { color: rgba(255,255,255,.92); font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 34em; }
.hero .eyebrow { color: var(--aqua); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* page hero (shorter, for subpages) */
.page-hero { position: relative; color:#fff; overflow:hidden; }
.page-hero .hero-media { position:absolute; inset:0; z-index:-2; }
.page-hero .hero-media img { width:100%; height:100%; object-fit:cover; }
.page-hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(10,39,53,.45), rgba(10,39,53,.75));
}
.page-hero-inner { padding-block: clamp(3.5rem, 11vh, 6.5rem); max-width: 760px; }
.page-hero h1 { color:#fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lead { color: rgba(255,255,255,.92); }
.page-hero .eyebrow { color: var(--aqua); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #d9e6ea; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-sand { background: linear-gradient(180deg, #f3ecdc, #efe6d0); }

h2.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--teal-d);
  font-weight: 600;
  line-height: 1;
}
.stat .label { color: var(--muted); font-size: .92rem; margin-top: .4rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.card .thumb { aspect-ratio: 16 / 11; overflow: hidden; }
.card .thumb img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .8rem; }
.card .more { font-weight: 600; color: var(--teal-d); font-size: .95rem; }

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Article (history) ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article p { font-size: 1.1rem; }
.article h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 2.4rem; }
.article h3 { font-size: 1.3rem; margin-top: 1.8rem; color: var(--teal-d); }
.article figure { margin: 2.2rem 0; }
.article figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.article figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; text-align: center; }

.pullquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.25;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding: .2rem 0 .2rem 1.4rem;
  margin: 2.2rem 0;
  font-style: italic;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content:""; position:absolute; left: 11px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--teal), var(--sand-d));
}
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before {
  content:""; position:absolute; left: 4px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline h4 { margin: 0 0 .15rem; font-family: var(--font-body); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Price table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}
.price-table thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  padding: .95rem 1.2rem;
  font-size: .95rem;
}
.price-table th.num, .price-table td.num { text-align: right; white-space: nowrap; }
.price-table tbody td { padding: .9rem 1.2rem; border-top: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr:nth-child(even) { background: #fbfaf6; }
.price-table tbody td .sub { color: var(--muted); font-size: .86rem; }
.price-table tfoot td {
  padding: 1.05rem 1.2rem;
  border-top: 2px solid var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  background: #f3ecdc;
}
.price-amount { font-family: var(--font-head); font-weight: 600; }

.bignum {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: var(--teal-d);
  line-height: 1;
  font-weight: 600;
}

.note {
  border-left: 4px solid var(--sand-d);
  background: #faf6ec;
  padding: 1.1rem 1.3rem;
  border-radius: 10px;
  color: #4a5c64;
  font-size: .97rem;
}

.summary-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.2rem; }
.summary-card {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.summary-card .num { font-family: var(--font-head); font-size: 2rem; color: var(--navy); font-weight: 600; }
.summary-card .label { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--paper);
  position: relative;
}
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left:0; right:0; bottom:0;
  padding: 1.4rem .9rem .8rem;
  color:#fff; font-size: .92rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10,39,53,.85));
  opacity: 0; transition: opacity .25s ease;
}
.gallery figure:hover figcaption { opacity: 1; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: auto; height: 100%; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 24, 33, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; }
.lightbox .lb-cap { position: absolute; bottom: 1.4rem; left:0; right:0; text-align:center; color:#cfe1e7; font-size:.95rem; padding-inline:1rem; }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color:#fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
}
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-nav.prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,.25); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-weight:600; font-size:.92rem; margin-bottom:.35rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display:flex; gap: .9rem; align-items:flex-start; margin-bottom: 1.3rem; }
.contact-list .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(14,138,168,.12); color: var(--teal-d);
  display:flex; align-items:center; justify-content:center;
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display:block; color: var(--navy); }
.contact-list span { color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color:#fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 40em; margin-inline:auto; }

/* ---------- Footer ---------- */
.site-footer { background: #081d28; color: #9fb6bf; padding-block: 3rem 2rem; }
.footer-top { display:flex; flex-wrap:wrap; justify-content: space-between; gap: 2rem; }
.site-footer .brand { color:#fff; }
.footer-nav { list-style:none; display:flex; flex-wrap:wrap; gap: 1.2rem; margin: 0; padding: 0; }
.footer-nav a { color: #b8cdd5; font-size: .96rem; }
.footer-nav a:hover { color:#fff; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color:#6f8893; display:flex; flex-wrap:wrap; justify-content: space-between; gap:.6rem; }

/* ---------- Wave divider ---------- */
.wave { display:block; width:100%; height: 60px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .8rem clamp(20px,5vw,40px) 1.2rem;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .9rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery figure.tall { grid-row: auto; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}
