/* Malemoro – felles stil for hele nettsiden (NO + EN).
   Farger og former fra designet: varm oransje, rosa, Fredoka-titler, pilleknapper, bølgeskiller.
   Sidespesifikk stil ligger i egne filer (home.css, booking.css …). */
@import url('/fonts.css');

:root {
  --bg: #FFF9F3;
  --paper: #FFFFFF;
  --ink: #3A2E2A;
  --muted: #6B5A52;
  --faint: #9A8878;
  --orange: #F4772E;
  --orange-dark: #D95F1B;
  --orange-deeper: #B34A10;
  --pink: #F8D8E4;
  --pink-ink: #C2426E;
  --rose: #E85D8A;
  --yellow: #FFD166;
  --sky: #8ECAE6;
  --leaf: #7FB069;
  --line: #EAD9C8;
  --line-soft: #F3E3D3;
  --sand: #EFE4DC;
  --taupe: #C9B8AE;
  --ok-bg: #DCEFD5; --ok: #3E7A2E;
  --warn-bg: #FDEBD2; --warn: #B3660A;
  --bad-bg: #F5D9D9; --bad: #A83232;
  --vipps: #FF5B24;
  --title: 'Fredoka', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', 'Trebuchet MS', sans-serif;
  --radius: 20px;
  --gutter: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); }
body { font-family: var(--body); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange-deeper); }
img, svg { max-width: 100%; }
h1, h2, h3, .title { font-family: var(--title); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: clamp(34px, 5.2vw, 58px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.page { width: 1280px; max-width: 100%; margin: 0 auto; background: var(--bg); }
.section { padding: 64px var(--gutter); }
.section-tight { padding: 40px var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.band-pink { background: var(--pink); }
.band-orange { background: var(--orange); color: #fff; }
.band-orange h2, .band-orange h3 { color: #fff; }

/* ---------- Navigasjon ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 48px; background: var(--bg); position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--orange); font-family: var(--title); font-size: 27px; font-weight: 600; }
.brand:hover { color: var(--orange); }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.nav-links a { color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--orange); }
.nav-links a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 2px solid var(--orange); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 800; }
.lang a, .lang span { padding: 6px 13px; color: var(--orange); }
.lang [aria-current="true"] { background: var(--orange); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); padding: 0; }
.nav-toggle svg { width: 22px; height: 22px; display: block; margin: auto; }

/* ---------- Knapper og merker ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; border: 2px solid var(--orange); border-radius: 999px; padding: 13px 26px; font: 800 15px/1.2 var(--body); cursor: pointer; text-align: center; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-outline { background: transparent; color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-pink { background: transparent; color: var(--pink-ink); border-color: var(--pink-ink); }
.btn-pink:hover { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-white { background: #fff; border-color: #fff; color: var(--orange); }
.btn-white:hover { background: var(--bg); border-color: var(--bg); color: var(--orange-dark); }
.btn-quiet { background: transparent; border-color: var(--taupe); color: var(--faint); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pill { display: inline-block; align-self: flex-start; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 800; background: var(--pink); color: var(--pink-ink); }
.badge { display: inline-block; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-vipps { background: var(--vipps); color: #fff; }

/* ---------- Kort ---------- */
.card { background: var(--paper); border: 2px solid var(--line-soft); border-radius: var(--radius); padding: 28px; }
.card-plain { background: var(--paper); border-radius: var(--radius); padding: 28px; }

/* ---------- Bølger ---------- */
.wave { display: block; line-height: 0; }
.wave svg { display: block; width: 100%; height: 72px; }

/* ---------- Skjema ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 800; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--faint); }
.input, .field input, .field select, .field textarea {
  width: 100%; font: 600 16px/1.4 var(--body); color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--orange); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice button { min-height: 44px; background: #fff; border: 2px solid var(--line); color: var(--muted); border-radius: 999px; padding: 10px 18px; font: 800 14px/1.2 var(--body); cursor: pointer; }
.choice button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.status { font-size: 15px; font-weight: 700; min-height: 1.4em; }
.form .status:empty { display: none; }
.status.error { color: var(--bad); }
.status.ok { color: var(--ok); }
.done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.done .title { font-size: 26px; color: var(--ok); }
/* Nedtrekkslister (site.js bytter ut <select> med disse) */
.tg-select { position: relative; }
.tg-native { position: absolute !important; left: 16px; bottom: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; pointer-events: none; padding: 0 !important; border: 0 !important; }
.tg-sel-btn { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; background: #fff; border: 2px solid var(--line); border-radius: 14px; font: 600 16px/1.35 var(--body); color: var(--ink); text-align: left; cursor: pointer; }
.tg-sel-btn:hover:not(:disabled) { border-color: var(--taupe); }
.tg-sel-btn:focus-visible, .tg-select.open .tg-sel-btn { outline: none; border-color: var(--orange); }
.tg-sel-btn:disabled { background: var(--bg); color: var(--faint); cursor: not-allowed; }
.tg-sel-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.tg-sel-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-sel-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.tg-select.open .tg-sel-btn svg { transform: rotate(180deg); }
.tg-sel-tag { flex: none; margin-left: auto; background: var(--pink); color: var(--pink-ink); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.tg-sel-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; min-width: 100%; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 6px; box-shadow: 0 2px 6px rgba(58, 46, 42, .06), 0 22px 44px -18px rgba(58, 46, 42, .32); animation: tg-sel-in .12s ease-out; scroll-margin: 16px; }
@keyframes tg-sel-in { from { opacity: 0; transform: translateY(-4px); } }
.tg-sel-opt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.tg-sel-opt.active { background: var(--bg); }
.tg-sel-opt[aria-selected="true"] { color: var(--orange-dark); font-weight: 800; }
.tg-sel-opt[aria-selected="true"]::after { content: ''; flex: none; width: 7px; height: 12px; margin: -3px 4px 0 auto; border: solid var(--orange); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tg-sel-opt[aria-selected="true"]:has(.tg-sel-tag)::after { margin-left: 6px; }
.tg-sel-opt[aria-disabled="true"] { color: var(--faint); cursor: default; }

/* Honningkrukke for spamroboter: skjult for mennesker og skjermlesere. */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bunntekst ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 48px var(--gutter) 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .head { font-weight: 800; color: #fff; font-size: 15px; }
.footer-col a { color: var(--sand); }
.footer-col a:hover { color: #fff; }
.footer-brand { font-family: var(--title); font-size: 24px; font-weight: 600; color: var(--orange); }
.footer-about { font-size: 14px; line-height: 1.6; color: var(--taupe); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(239, 228, 220, .18); font-size: 13px; color: var(--taupe); line-height: 1.7; }
.footer-legal a { color: var(--taupe); text-decoration: underline; }

/* ---------- Tekstsider (vilkår, personvern) ---------- */
.prose { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: 26px; margin-top: 22px; }
.prose ul { margin: 0; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .note { background: var(--pink); color: var(--pink-ink); border-radius: 14px; padding: 14px 18px; font-weight: 700; }

/* ---------- Mobil og nettbrett ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 2px solid var(--line-soft); padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(58, 46, 42, .08); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .nav.open .nav-links { display: flex; }
  .nav-right .btn { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px var(--gutter); }
  .wave svg { height: 44px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 22px; gap: 8px; min-height: 44px; }
  .lang a, .lang span { min-height: 40px; display: inline-flex; align-items: center; }
  .brand svg { width: 30px; height: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .card, .card-plain { padding: 22px 18px; }
  .btn-lg { padding: 14px 26px; font-size: 16px; }
}
