/* =====================================================================
   Sea Mentor – Design system
   Palette: dyb marineblå · gulddetaljer · varm off-white
   Skandinavisk, roligt, professionelt. WCAG 2.2 AA.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0E2439;
  --navy-800: #123049;
  --navy-700: #16324F;   /* primær */
  --navy-600: #1D4266;
  --blue-500: #3E6E8E;
  --blue-400: #5B8CA8;
  --blue-200: #A9C4D6;
  --gold-700: #A2793F;
  --gold-600: #B8894B;
  --gold-500: #C9A96A;   /* accent */
  --gold-200: #E7D6B4;
  --sand-200: #E9DFCC;
  --sand-100: #F1E9D8;
  --bg:       #F7F3EC;   /* off-white baggrund */
  --surface:  #FFFFFF;
  --surface-2:#FBF8F2;
  --ink-900:  #152230;
  --ink-700:  #33414E;
  --ink-500:  #576270;
  --line:     #E2D9C8;
  --line-2:   #D3C7AF;
  --focus:    #1D4266;
  --danger:   #A3341F;
  --ok:       #2F6B4F;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 760px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14,36,57,.06), 0 2px 8px rgba(14,36,57,.05);
  --shadow-md: 0 6px 22px rgba(14,36,57,.10);
  --shadow-lg: 0 18px 48px rgba(14,36,57,.16);
  --ring: 0 0 0 3px rgba(29,66,102,.28);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-800); line-height: 1.14; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.35rem); color: var(--ink-700); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700);
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
strong { font-weight: 600; color: var(--navy-800); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--sand { background: linear-gradient(180deg, var(--sand-100), var(--bg)); }
.section--navy { background: var(--navy-800); color: #EAF1F6; }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }
.section--navy p { color: #C9D7E2; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.btn {
  --btn-bg: var(--navy-700); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm); line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--navy-700); }
.btn--primary:hover { background: var(--navy-900); }
.btn--gold { --btn-bg: var(--gold-600); --btn-fg: #26190A; }
.btn--gold:hover { background: var(--gold-500); color: #26190A; }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: var(--navy-700); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--sand-100); color: var(--navy-900); }
.btn--onnavy-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--onnavy-ghost:hover { background: rgba(255,255,255,.10); color: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.icon-16 { width: 18px; height: 18px; flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,.86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { height: 42px; width: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.28rem; letter-spacing: .04em; color: var(--navy-800); text-transform: uppercase; }
.brand__tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-700); font-weight: 500; font-size: .96rem; padding: .55rem .7rem; border-radius: 8px; transition: color .15s, background .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--navy-900); background: rgba(22,50,79,.06); }
.nav-links a[aria-current="page"] { color: var(--navy-900); background: rgba(22,50,79,.09); font-weight: 600; }
.nav-cta { margin-left: .4rem; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: .5rem;
  background: var(--navy-700); color: #fff; border: 0; border-radius: 10px;
  padding: .6rem .85rem; font-weight: 600; cursor: pointer; font-family: var(--font-sans); font-size: .95rem;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .28s ease; z-index: 99;
  }
  .nav-menu[data-open="true"] { max-height: calc(100vh - 74px); overflow-y: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .1rem; padding: 1rem clamp(1.1rem,4vw,2.4rem) 1.4rem; }
  .nav-links a { padding: .85rem .7rem; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #F7F3EC 0%, #EFE7D6 55%, #E7DCC6 100%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 1.9rem; max-width: 34ch; }
.hero__points { list-style: none; padding: 0; margin: 1.9rem 0 0; display: grid; gap: .55rem; }
.hero__points li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-700); font-size: .98rem; }
.hero__points svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: 2px; }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__art svg { width: 100%; max-width: 460px; filter: drop-shadow(0 24px 46px rgba(14,36,57,.18)); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__art { order: -1; max-width: 320px; margin-inline: auto; }
  .hero .lead { max-width: none; }
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.2vw, 1.7rem); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; height: 100%;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-700); margin-bottom: 0; font-size: .99rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-600)); color: var(--gold-200);
  margin-bottom: 1.05rem; box-shadow: var(--shadow-sm);
}
.card__icon svg { width: 26px; height: 26px; }
.card__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--navy-700); font-size: .95rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s; }
.card--link:hover .card__link svg { transform: translateX(3px); }
a.card { text-decoration: none; color: inherit; display: block; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-700); }
.checklist svg { width: 22px; height: 22px; color: var(--gold-600); flex: none; margin-top: 2px; }
.checklist strong { display: block; color: var(--navy-800); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm); }
.step__num { counter-increment: step; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100); color: var(--navy-700); border: 1px solid var(--line-2); margin-bottom: .9rem; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .96rem; color: var(--ink-700); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.split--narrow-media { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 820px) { .split, .split--narrow-media { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--surface); }

.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .trust-band { grid-template-columns: repeat(2, 1fr); } }
.trust-item { text-align: center; padding: 1.2rem .6rem; }
.trust-item svg { width: 30px; height: 30px; color: var(--gold-500); margin: 0 auto .6rem; }
.trust-item strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; color: #fff; margin-bottom: .2rem; }
.trust-item span { font-size: .9rem; color: #B7C6D3; }

.cta-band { background: linear-gradient(150deg, var(--navy-800), var(--navy-700) 60%, var(--navy-600)); color: #fff; border-radius: clamp(16px, 3vw, 26px); padding: clamp(2.2rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #C9D7E2; max-width: 52ch; }
.cta-band__glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,169,106,.28), transparent 70%); top: -120px; right: -80px; pointer-events: none; }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.accordion + .accordion { margin-top: .9rem; }
.accordion summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-weight: 600; color: var(--navy-800); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--surface-2); }
.accordion summary .chev { width: 22px; height: 22px; flex: none; transition: transform .2s; color: var(--gold-600); }
.accordion[open] summary .chev { transform: rotate(180deg); }
.accordion__body { padding: 0 1.3rem 1.3rem; color: var(--ink-700); }
.accordion__body p:last-child { margin-bottom: 0; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; font-size: .96rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .84rem; color: var(--ink-500); margin-top: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink-900);
  padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: var(--ring); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .error-msg { color: var(--danger); font-size: .86rem; margin-top: .35rem; display: none; align-items: center; gap: .35rem; }
.field .error-msg[data-show="true"] { display: flex; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .6rem; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy-700); }
.consent label { font-weight: 400; color: var(--ink-700); font-size: .92rem; }
.form-note { background: var(--sand-100); border: 1px solid var(--line-2); border-left: 4px solid var(--gold-600); border-radius: 10px; padding: .95rem 1.05rem; font-size: .92rem; color: var(--ink-700); margin-bottom: 1.4rem; display: flex; gap: .65rem; }
.form-note svg { width: 22px; height: 22px; color: var(--gold-700); flex: none; }
.form-success { display: none; background: #EAF3EE; border: 1px solid #BED8C9; border-radius: var(--radius); padding: 1.4rem 1.5rem; color: #235c42; }
.form-success[data-show="true"] { display: block; }
.form-success h3 { color: #235c42; margin-bottom: .4rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sand-100); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy-700); flex: none; }
.contact-list .ci-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy-800); }
.contact-list a { color: var(--navy-700); }

.crumbs { font-size: .86rem; color: var(--ink-500); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--navy-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy-800); font-weight: 600; }

.page-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201,169,106,.22), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(2.6rem, 6vw, 4.4rem); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #CBD9E4; max-width: 60ch; }
.page-hero .eyebrow { color: var(--gold-500); }
.page-hero .eyebrow::before { background: var(--gold-500); }
.page-hero .crumbs { color: #A9BECD; }
.page-hero .crumbs a { color: #A9BECD; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs [aria-current] { color: #fff; }

.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--sand-100); border: 1px solid var(--line-2); color: var(--navy-700); font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
.pill-row { display: flex; flex-wrap: wrap; gap: .55rem; }

.callout { border-left: 4px solid var(--gold-600); background: var(--surface-2); border-radius: 10px; padding: 1.2rem 1.4rem; }
.callout--flag { border-left-color: var(--danger); background: #FBF1EE; }
.callout__label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold-700); margin-bottom: .4rem; display: block; }
.callout--flag .callout__label { color: var(--danger); }

.site-footer { background: var(--navy-900); color: #C4D2DE; padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem; }
.site-footer a { color: #C4D2DE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand svg { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: #92A6B6; font-size: .93rem; max-width: 34ch; }
.footer-col h2 { color: #fff; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #8095A5; }
.footer-bottom a { color: #8095A5; }
.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 1rem; }

.cookie-banner {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 300; max-width: 520px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.3rem 1.4rem; transform: translateY(160%); transition: transform .35s ease;
}
.cookie-banner[data-show="true"] { transform: translateY(0); }
.cookie-banner h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; color: var(--ink-700); margin-bottom: 1rem; }
.cookie-banner .btn-row { justify-content: flex-start; }
.cookie-banner a { font-size: .9rem; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 2.5rem; }
.badge-gold { color: var(--gold-700); font-weight: 600; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-700); }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--navy-700); }
.anchor-offset { scroll-margin-top: 96px; }
