/* The pages for each kind of harbour (/batforening/, /bobilplass/ …): the
   front page's type, colours, header and footer, and a few blocks of their
   own. The front page keeps its styles in index.html. */

@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/figtree-vf-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/figtree-vf-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/outfit-vf-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/outfit-vf-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---- Havnio tokens (fra tokens.css) ---- */
:root {
  --havnio-dypvann: #0F3D56;
  --havnio-sjogronn: #2BB0A0;
  --havnio-fjord: #7FB6C9;
  --havnio-fjord-lys: #A9D0DD;
  --havnio-brygge: #E8DCC8;
  --havnio-brygge-lys: #EFE6D3;
  --havnio-natt: #0A2434;
  --havnio-skum: #F5F7F8;

  --bg: #FAFAF8;
  --ink: var(--havnio-natt);
  --ink-2: #3A4A5A;
  --ink-3: #4A5A6A;
  --line: #E3E8EC;

  --sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: Outfit, var(--sans);

  --gutter: clamp(20px, 8.3vw, 120px);
  --max: 1680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400;
  font-size: 18px; line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--havnio-dypvann); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Knapper ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 18px/1 var(--sans); padding: 20px 30px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--havnio-dypvann); border-color: var(--havnio-dypvann); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: rgba(10,36,52,.06); }
.btn-sm { font-size: 16px; padding: 14px 24px; }
.btn-sand { background: var(--havnio-brygge); color: var(--ink); border-color: var(--havnio-brygge); }
.btn-sand:hover { background: #dfd0b6; border-color: #dfd0b6; }

/* ---- Gjestestripe og toppbar ---- */
.guest-bar { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 8px var(--gutter); background: var(--ink); color: #DBE1EE; font-size: 15px; text-decoration: none; text-align: center; }
.guest-bar:focus-visible { outline: 3px solid var(--havnio-fjord); outline-offset: -3px; }
.guest-bar-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--havnio-fjord-lys); font-weight: 600; white-space: nowrap; }
.gb-short { display: none; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250,250,248,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 40px; height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 32px; flex-grow: 1; font-size: 16px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--havnio-dypvann); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.topbar-actions .login { font-size: 16px; font-weight: 600; text-decoration: none; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.menu-btn svg { width: 18px; height: 18px; }
.menu { display: none; }
@media (max-width: 1100px) { .nav { gap: 22px; font-size: 15px; } .topbar .wrap { gap: 28px; } }
@media (max-width: 980px) {
  .topbar .wrap { height: 64px; gap: 8px; }
  .brand { font-size: 23px; }
  .brand svg { width: 32px; height: 32px; }
  .nav, .topbar-actions .login { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .btn-sm { font-size: 15px; padding: 0 18px; height: 44px; }
  .menu-btn { display: flex; }
  .menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
  .menu.open { display: block; }
  .menu a { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .menu a:last-child { border-bottom: 0; }
  .guest-bar { justify-content: space-between; text-align: left; }
  .gb-long { display: none; }
  .gb-short { display: inline; }
}

/* ---- Toppen av siden ---- */
.crumbs { padding-top: 28px; font-size: 15px; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9AA7B2; }
.crumbs a { color: var(--ink-3); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--havnio-dypvann); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(42px, 4.8vw, 70px); letter-spacing: -0.035em; max-width: 16ch; }
.page-hero h1 span { font-weight: 400; }
.page-hero .lede { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; max-width: 44ch; margin-top: 24px; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-media { justify-self: center; }
.hero-media img { border-radius: 28px; }
/* The phone screenshots are tall: the top of the screen is enough. */
.hero-media .phone { width: min(300px, 70vw); height: auto; aspect-ratio: 520 / 760; object-fit: cover; object-position: top; border-radius: 36px; box-shadow: 0 30px 60px -24px rgba(10,36,52,.35); }
.hero-media .photo { width: 100%; height: clamp(320px, 36vw, 520px); object-fit: cover; }
@media (max-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; }
}
@media (max-width: 560px) { .hero-cta .btn { width: 100%; } }

/* ---- Seksjoner ---- */
section.block { padding: clamp(56px, 7vw, 104px) 0; }
section.alt { background: var(--havnio-skum); }
section.sand { background: var(--havnio-brygge-lys); }
.head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.head h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; }
.head p { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-3); margin-top: 16px; }

/* Text with a picture beside it. */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .media { justify-self: center; }
.split .media img { border-radius: 24px; }
.split .media .phone { width: min(280px, 70vw); height: auto; aspect-ratio: 520 / 820; object-fit: cover; object-position: top; border-radius: 34px; box-shadow: 0 30px 60px -24px rgba(10,36,52,.3); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } .split .media { justify-self: start; } }

.prose h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.06; }
.prose h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 28px; }
.prose p { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }
.prose p.note { font-size: 16px; color: var(--ink-3); }
.prose a { color: var(--havnio-dypvann); text-underline-offset: 3px; }

/* A list with a tick on each line. */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; max-width: 62ch; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--havnio-sjogronn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2434' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks strong { color: var(--ink); }

/* Cards in a grid: what Havnio does, or the kinds of harbour. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 23px; letter-spacing: -0.02em; line-height: 1.15; }
.card p { color: var(--ink-2); font-size: 17px; }
.card .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--havnio-skum); display: grid; place-items: center; color: var(--havnio-dypvann); margin-bottom: 6px; }
.card .ic svg { width: 24px; height: 24px; }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
a.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--havnio-dypvann); display: inline-flex; align-items: center; gap: 6px; }
section.alt .card { border-color: transparent; }

/* Numbered steps for the guide. */
.guide { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; max-width: 900px; }
.guide > li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 28px 92px; }
.guide > li::before {
  content: counter(step); position: absolute; left: 28px; top: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 20px/44px var(--display); text-align: center;
}
.guide h3 { font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; }
.guide p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }
.guide ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-2); max-width: 64ch; }
.guide ul li { margin-top: 4px; }
@media (max-width: 560px) { .guide > li { padding: 76px 20px 22px; } .guide > li::before { left: 20px; top: 20px; } }

/* Price, the same everywhere. */
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.price .big { font-family: var(--display); font-weight: 700; font-size: clamp(80px, 9vw, 132px); line-height: .9; letter-spacing: -0.05em; }
.price .big-sub { margin-top: 14px; font-size: 19px; color: var(--ink-2); max-width: 30ch; }
.sum { background: #fff; border-radius: 24px; padding: 24px 28px; }
.sum h3 { font-size: 20px; letter-spacing: -0.01em; }
.sum table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 17px; }
.sum td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum td:last-child { text-align: right; white-space: nowrap; }
.sum tr:last-child td { border-bottom: 0; font-weight: 700; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } }

/* ---- Spørsmål ---- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 88px); }
.faq h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; }
.faq-side p { margin-top: 16px; color: var(--ink-3); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
details { background: #fff; border-radius: 20px; padding: 0 28px; }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 19px; font-weight: 700; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); position: relative; flex: none; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s; }
summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] summary .pm { background: var(--havnio-brygge); border-color: var(--havnio-brygge); }
details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
details p { color: var(--ink-2); padding: 0 0 18px; max-width: 60ch; font-size: 17px; }
@media (max-width: 900px) {
  .faq .wrap { grid-template-columns: 1fr; }
  details { padding: 0 20px; }
  summary { font-size: 17px; padding: 16px 0; }
  details p { font-size: 16px; }
}

/* ---- Bunn ---- */
footer { background: var(--ink); color: #DBE1EE; padding: clamp(56px, 6.6vw, 96px) 0 48px; font-size: 16px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(40px, 4.4vw, 64px); border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-cta h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.02; color: #fff; max-width: 18ch; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 8px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: #DBE1EE; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .base { display: flex; justify-content: space-between; margin-top: 40px; font-size: 14px; color: #AAB2C4; flex-wrap: wrap; gap: 12px; }
@media (max-width: 980px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-cta .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } a.card:hover { transform: none; } }
[hidden] { display: none !important; }
