/* CIMI – prelansering
   Farger og fonter i henhold til CIMIs designhåndbok og «Fargepalett oppdatert». */

@font-face { font-family: "Yaldevi"; font-weight: 300; font-display: swap; src: url("../fonts/yaldevi-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Yaldevi"; font-weight: 400; font-display: swap; src: url("../fonts/yaldevi-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Yaldevi"; font-weight: 500; font-display: swap; src: url("../fonts/yaldevi-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Yaldevi"; font-weight: 600; font-display: swap; src: url("../fonts/yaldevi-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* Primærfarger */
  --vinrod: #76303E;
  --hvit: #FFFFFD;
  /* Sekundærfarger (pynt) */
  --sand: #EAD6C7;
  --beige: #BC9B7F;
  --oransje-lys: #FFB24E;
  --oransje: #F17E3E;
  --gronn-lys: #E2E2BD;
  --gronn-mork: #1C2810;
  --sort: #000000;

  --tekst: #1d1617;
  --font-heading: "Yaldevi", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--hvit);
  color: var(--tekst);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vinrod); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vinrod); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--vinrod); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--vinrod); color: var(--hvit); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 16px; }

/* Knapper – gjennomsiktig med vinrød ramme og pil (inspirert av tinholt.no) */
.btn {
  display: inline-flex; align-items: stretch;
  min-height: 52px; padding: 0;
  background: transparent; color: var(--tekst);
  border: 1px solid var(--vinrod); border-radius: 0;
  font: 400 1.05rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s;
}
.btn-label { display: flex; align-items: center; padding: 12px 22px; }
.btn-arrow { display: flex; align-items: center; justify-content: center; padding: 0 16px; border-left: 1px solid var(--vinrod); color: var(--vinrod); }
.btn-arrow svg { transition: transform .2s; }
.btn:hover { background: rgba(118, 48, 62, .07); text-decoration: none; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 32px; padding-bottom: 8px; }
.brand img { width: 103px; }
.brand-sub { margin: 8px 0 0; color: var(--vinrod); font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; }
.header-link { font-weight: 600; font-size: .95rem; padding-top: 8px; white-space: nowrap; }

/* Seksjoner */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section .btn { margin-top: 12px; }

.tone-sand { background: var(--sand); }
.tone-sand .section + .section { padding-top: 0; }
.wave-divider { display: block; width: 100%; height: clamp(28px, 4vw, 56px); fill: var(--sand); margin-bottom: -1px; }
.wave-divider.flip { transform: scaleY(-1); margin: -1px 0 0; }
.tone-sand .signup-done { background: var(--hvit); }
.tone-sand .field-row input::placeholder { color: #5e5254; }
.tone-sand .consent { color: #3d3335; }

/* Topp */
.hero { position: relative; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text p { max-width: 34em; }
.lead { font-family: var(--font-heading); color: var(--vinrod); font-size: 1.45rem; font-weight: 500; margin-top: .4em; }
.hero-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 58% 50%; border-radius: var(--radius); }

/* Sitat */
.quote { margin: 40px 0 0; }
.quote-mark { display: block; font-family: var(--font-heading); color: var(--vinrod); font-size: 5rem; line-height: .6; height: .45em; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-heading); color: var(--vinrod); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); line-height: 1.4; }
.quote figcaption { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; }
.quote figcaption::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* Vi som står bak */
.team { overflow: hidden; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; }
.person { margin-top: 24px; }
.person h3 { font-size: 1.15rem; margin-bottom: .25em; }
.person p { margin: 0; }
.team-photo { margin: 0; }
.team-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); }
.team-photo figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.5; }

.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob-left { width: clamp(0px, calc((100vw - 1072px) / 2), 90px); height: 400px; left: 0; top: 14%; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 400' preserveAspectRatio='none'><path fill='%2376303E' d='M0 0 L0.0 0.0 L4.5 5.0 L8.0 10.0 L11.4 15.0 L14.6 20.0 L17.7 25.0 L20.7 30.0 L23.6 35.0 L26.4 40.0 L29.1 45.0 L31.5 50.0 L33.8 55.0 L35.9 60.0 L37.8 65.0 L39.4 70.0 L40.8 75.0 L41.9 80.0 L42.8 85.0 L43.4 90.0 L43.8 95.0 L44.0 100.0 L43.9 105.0 L43.7 110.0 L43.3 115.0 L42.7 120.0 L42.1 125.0 L41.3 130.0 L40.5 135.0 L39.7 140.0 L38.9 145.0 L38.1 150.0 L37.4 155.0 L36.8 160.0 L36.3 165.0 L35.9 170.0 L35.7 175.0 L35.7 180.0 L35.8 185.0 L36.1 190.0 L36.6 195.0 L37.3 200.0 L38.1 205.0 L39.0 210.0 L40.1 215.0 L41.3 220.0 L42.5 225.0 L43.8 230.0 L45.2 235.0 L46.5 240.0 L47.7 245.0 L48.9 250.0 L50.0 255.0 L50.9 260.0 L51.7 265.0 L52.3 270.0 L52.6 275.0 L52.7 280.0 L52.6 285.0 L52.2 290.0 L51.6 295.0 L50.6 300.0 L49.5 305.0 L48.0 310.0 L46.3 315.0 L44.4 320.0 L42.3 325.0 L40.0 330.0 L37.5 335.0 L34.9 340.0 L32.1 345.0 L29.3 350.0 L26.5 355.0 L23.6 360.0 L20.6 365.0 L17.7 370.0 L14.9 375.0 L12.0 380.0 L9.2 385.0 L6.4 390.0 L3.6 395.0 L0.0 400.0 L0 400 Z'/></svg>") no-repeat left center / 100% 100%; }
.blob-right { width: clamp(0px, calc((100vw - 1072px) / 2), 90px); height: 400px; right: 0; top: 30%; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 400' preserveAspectRatio='none'><path fill='%2376303E' d='M90 0 L90.0 0.0 L85.5 5.0 L82.0 10.0 L78.6 15.0 L75.4 20.0 L72.3 25.0 L69.3 30.0 L66.4 35.0 L63.6 40.0 L60.9 45.0 L58.5 50.0 L56.2 55.0 L54.1 60.0 L52.2 65.0 L50.6 70.0 L49.2 75.0 L48.1 80.0 L47.2 85.0 L46.6 90.0 L46.2 95.0 L46.0 100.0 L46.1 105.0 L46.3 110.0 L46.7 115.0 L47.3 120.0 L47.9 125.0 L48.7 130.0 L49.5 135.0 L50.3 140.0 L51.1 145.0 L51.9 150.0 L52.6 155.0 L53.2 160.0 L53.7 165.0 L54.1 170.0 L54.3 175.0 L54.3 180.0 L54.2 185.0 L53.9 190.0 L53.4 195.0 L52.7 200.0 L51.9 205.0 L51.0 210.0 L49.9 215.0 L48.7 220.0 L47.5 225.0 L46.2 230.0 L44.8 235.0 L43.5 240.0 L42.3 245.0 L41.1 250.0 L40.0 255.0 L39.1 260.0 L38.3 265.0 L37.7 270.0 L37.4 275.0 L37.3 280.0 L37.4 285.0 L37.8 290.0 L38.4 295.0 L39.4 300.0 L40.5 305.0 L42.0 310.0 L43.7 315.0 L45.6 320.0 L47.7 325.0 L50.0 330.0 L52.5 335.0 L55.1 340.0 L57.9 345.0 L60.7 350.0 L63.5 355.0 L66.4 360.0 L69.4 365.0 L72.3 370.0 L75.1 375.0 L78.0 380.0 L80.8 385.0 L83.6 390.0 L86.4 395.0 L90.0 400.0 L90 400 Z'/></svg>") no-repeat right center / 100% 100%; }
.section > .wrap { position: relative; z-index: 1; }

/* Fagteamet */
.fagteam { overflow: hidden; }
.intro { max-width: 36em; margin: 0 auto; }
.experts { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: clamp(32px, 6vw, 80px); margin-top: 48px; }
.expert img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin: 0 auto 20px; }
.expert h3 { margin-bottom: .5em; }
.expert h3 span { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst); margin-top: 6px; }
.expert p { font-size: .98rem; }

/* Partnere */
.partners { list-style: none; padding: 0; margin: 48px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.logo-box { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 14px; padding: 20px 28px; background: #fff; border: 1px solid var(--sand); border-radius: 4px; }
.logo-box img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Påmelding */
.signup { scroll-margin-top: 0; }
.signup:focus { outline: none; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--vinrod); margin-bottom: .6em; }
.signup-form { margin: 36px auto 0; max-width: 520px; text-align: left; }
.choices { border: 0; padding: 0; margin: 0 0 28px; display: grid; gap: 4px; }
.choices label { display: flex; align-items: center; gap: 14px; padding: 8px 4px; cursor: pointer; font-size: 1.05rem; }
.choices input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 24px; height: 24px; margin: 0; border: 2px solid var(--vinrod); border-radius: 7px; background: var(--hvit); display: grid; place-content: center; cursor: pointer; }
.choices input::after { content: ""; width: 12px; height: 7px; border: solid var(--hvit); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.choices input:checked { background: var(--vinrod); }
.choices input:checked::after { opacity: 1; }

.field-row { display: flex; border: 1.5px solid var(--vinrod); border-radius: 999px; background: #fff; overflow: hidden; }
.field-row input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 14px 22px; font: 400 1rem var(--font-body); color: var(--tekst); }
.field-row input::placeholder { color: #6d6264; }
.field-row input:focus { outline: none; }
.field-row:focus-within { box-shadow: 0 0 0 3px rgba(118,48,62,.25); }
.btn-submit { flex: 0 0 auto; margin: 0; padding: 12px 28px; min-height: 48px; background: var(--vinrod); color: var(--hvit); border: 0; border-radius: 0 999px 999px 0; font: 600 1rem/1.2 var(--font-body); cursor: pointer; transition: background-color .2s; }
.btn-submit:hover { background: #5f2632; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .85rem; margin-top: 16px; text-align: center; color: #4a4042; }
.form-error { margin-top: 12px; text-align: center; color: var(--vinrod); font-weight: 600; }
.signup-done { margin: 36px auto 0; max-width: 520px; padding: 28px 24px; border-radius: var(--radius); background: var(--hvit); color: var(--vinrod); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; }
.signup-done:focus { outline: none; }

/* Kontakt */
.contact { padding-top: clamp(56px, 7vw, 88px); }
.podcast-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; }
.podcast-icon { flex: 0 0 auto; }
.contact p + p { margin-top: 32px; font-size: 1.1rem; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--sand); }
.site-footer img { width: 92px; margin: 0 auto 16px; }
.site-footer p { font-family: var(--font-heading); color: var(--vinrod); font-weight: 500; font-size: 1.15rem; line-height: 1.4; margin: 0; }
.site-footer .footer-links { margin-top: 20px; font-family: var(--font-body); font-size: .85rem; font-weight: 400; }

/* Personvernside */
.legal { padding: clamp(40px, 6vw, 72px) 0 96px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: #4a4042; font-size: .95rem; }

/* Mobil */
@media (max-width: 860px) {
  .hero-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 3 / 2; object-position: 50% 40%; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .blob { display: none; }
}
@media (max-width: 560px) {
  .site-header { padding-top: 20px; }
  .brand img { width: 84px; }
  .brand-sub { font-size: 1rem; }
  .header-link { font-size: .85rem; }
  .experts { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; gap: 28px 14px; font-size: .85rem; }
  .logo-box { height: 92px; padding: 14px 16px; }
  .logo-box img { max-height: 48px; }
  .field-row { flex-direction: column; border-radius: 26px; }
  .btn-submit { border-radius: 0; width: 100%; }
}

/* Mindre luft mellom to lyse seksjoner etter hverandre */
.team + .fagteam, .fagteam + .section { padding-top: 0; }

/* Lenker på partnerlogoer */
.partners a { display: block; color: inherit; text-decoration: none; }
.partners a:hover .logo-box { border-color: var(--vinrod); }
.partners a:hover { text-decoration: underline; text-underline-offset: 3px; }
