/* =========================================================================
   Haugesund Coaching – global stil (retning 1a)
   Variablene øverst, komponentstilene under. Kan limes rett inn i
   src/styles/global.css. Ingen rammeverk, ingen byggsteg.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,400;0,500;1,6..72,400&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  /* --- Farger --------------------------------------------------------- */
  --c-bg: #faf8f4;          /* bakgrunn */
  --c-surface: #ffffff;     /* kort */
  --c-surface-alt: #f1f0e8; /* alternerende seksjon */
  --c-sage-soft: #e6ece7;   /* svak salvie */

  --c-text: #23291f;        /* brødtekst */
  --c-text-body: #46503f;   /* løpende avsnitt (7,0:1 mot --c-bg) */
  --c-text-muted: #5a6156;  /* dempet småtekst (5,6:1) */

  --c-primary: #4a6155;     /* salvie: lenker, meny */
  --c-primary-dark: #3a4d43; /* hover, footer, mørke flater */
  --c-accent: #a8502f;      /* terrakotta: knapper og utheving */
  --c-accent-dark: #88401f; /* hover + terrakotta på lys flate */

  --c-border: #ddd9cf;
  --c-on-dark: #eef1ea;     /* tekst på --c-primary-dark */
  --c-on-dark-muted: #c6cfc3;
  --c-on-dark-label: #a8bba9;

  /* --- Typografi ------------------------------------------------------ */
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.5rem, 1.6rem + 3.2vw, 4.6rem);
  --fs-h1-page: clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.2vw, 2.625rem);
  --fs-h3: clamp(1.1875rem, 1.13rem + 0.3vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-pull: clamp(1.3125rem, 1.15rem + 0.7vw, 1.6875rem);

  /* --- Layout --------------------------------------------------------- */
  --maxw: 71rem;         /* 1140 px innholdsbredde */
  --maxw-prose: 46rem;   /* løpende tekst */
  --space-section: clamp(3rem, 6vw, 5.5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 22px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(35, 41, 31, 0.05);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* --- Overskrifter ------------------------------------------------------- */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1-page); }
h2 { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -0.015em; }
h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.4em;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* --- Lenker og fokus ---------------------------------------------------- */
a { color: var(--c-primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-dark); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: var(--c-primary); color: #fff;
  padding: 0.85rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Byggeklosser ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--maxw-prose); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--c-surface-alt); }
.section--sage { background: var(--c-sage-soft); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack > * { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.84375rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 0.5rem;
}
.lead { font-size: var(--fs-lead); color: var(--c-text-body); max-width: 34rem; }
.body-text { color: var(--c-text-body); }
.text-muted { color: var(--c-text-muted); }

/* Den ene uthevingen i brødteksten: terrakotta serif, ikke fet */
.pull {
  font-family: var(--font-serif);
  font-size: var(--fs-pull);
  line-height: 1.4;
  color: var(--c-accent);
  padding-block: 0.25rem;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  padding: 0.875rem var(--gutter);
  background: rgba(250, 248, 244, 0.92);
  border-bottom: 1px solid var(--c-border);
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  margin-right: auto; padding-block: 0.375rem;
  text-decoration: none; color: var(--c-text);
  font-family: var(--font-serif); font-size: 1.4375rem; letter-spacing: -0.01em;
}
.brand img { width: 46px; height: 46px; border-radius: 12px; }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: inline-flex; align-items: center;
  min-height: 48px; padding-inline: 0.875rem;
  border-radius: 999px; text-decoration: none;
  color: var(--c-primary); font-size: 1rem;
}
.menu a:hover { background: var(--c-sage-soft); color: var(--c-primary-dark); }
.menu a[aria-current='page'] {
  background: var(--c-sage-soft); color: var(--c-primary-dark); font-weight: 600;
}
.menu a[aria-current='page']:hover { background: var(--c-border); }

/* --- Hero med bilde ----------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(31.25rem, 44vw, 42.5rem);
  padding: clamp(3.5rem, 6vw, 6.5rem) var(--gutter);
  text-align: center;
}
.hero > img {                      /* bildet er lavoppløst: mykes opp bevisst */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(0.9) brightness(1.05) blur(1.5px);
  transform: scale(1.06);
}
.hero::after {                     /* kremslør */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(250, 248, 244, 0.68) 0%,
    rgba(250, 248, 244, 0.80) 55%,
    rgba(250, 248, 244, 0.94) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 44rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.375rem;
}
.hero h1 { font-size: var(--fs-hero); margin: 0; }

/* --- Knapper ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding-inline: 1.75rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; }

.btn--outline { background: rgba(255, 255, 255, 0.55); border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 0.5rem; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; font-weight: 600;
  text-decoration: underline;
}

/* --- Kort og rutenett --------------------------------------------------- */
.cards { display: flex; flex-wrap: wrap; gap: clamp(1rem, 1.8vw, 1.625rem); }
.card {
  flex: 1 1 clamp(15rem, 28vw, 20rem);
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.2vw, 2.125rem);
  box-shadow: var(--shadow-sm);
}
.card p { color: var(--c-text-muted); font-size: 1.03125rem; margin: 0; }

.card-num {                        /* nummerert salvie-skive i kortet */
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--c-sage-soft);
  font-family: var(--font-serif); font-size: 1.1875rem; color: var(--c-primary-dark);
}

/* --- To spalter (bilde + tekst) ----------------------------------------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.75rem, 4vw, 4rem); }
.split > * { min-width: 0; }   /* uten denne tvinger bildets egenbredde radbrekk */
.split > .split-media { flex: 1 1 clamp(16rem, 30vw, 28.75rem); }
.split > .split-text { flex: 1 1 clamp(16rem, 34vw, 32.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; }
.split-media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }

/* Bilder dempes ned i den varme flaten (samme som designsystemets .washed) */
.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* --- Punktlister -------------------------------------------------------- */
.list-dot { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.list-dot li { position: relative; padding-left: 1.875rem; color: var(--c-text-body); }
.list-dot li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.625rem; height: 0.625rem; border-radius: 999px; background: var(--c-accent);
}

/* --- Prisliste ---------------------------------------------------------- */
.prisliste {
  margin: 0; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.2vw, 2rem);
}
.prisliste > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; padding-block: 0.875rem;
  border-bottom: 1px dashed var(--c-border);
}
.prisliste > div:last-child { border-bottom: 0; }
.prisliste dt { font-weight: 600; }
.prisliste dt span { font-weight: 400; color: var(--c-text-muted); }
.prisliste dd { margin: 0; font-weight: 700; white-space: nowrap; }

/* --- Nummererte rader (brukt i 1b-varianten) ---------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; flex-wrap: wrap; gap: clamp(0.75rem, 2.4vw, 2.75rem);
  padding-block: clamp(1.375rem, 2.4vw, 2.25rem);
  border-top: 1px solid var(--c-border);
}
.steps li:last-child { border-bottom: 1px solid var(--c-border); }
.steps .num { flex: 0 0 auto; width: clamp(3rem, 5vw, 4.75rem); font-family: var(--font-serif); font-size: 1.5rem; color: var(--c-accent); }

/* --- Skjema ------------------------------------------------------------- */
.form {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.125rem;
}
.field { display: flex; flex-direction: column; gap: 0.4375rem; }
.field label { font-size: 0.96875rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--c-text-muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 1.125rem; }
.field-row > .field { flex: 1 1 13rem; }

.input {
  min-height: 52px; padding-inline: 1.125rem;
  font: inherit; color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: 999px;
}
textarea.input { min-height: 8.75rem; padding: 0.875rem 1.125rem; border-radius: var(--radius); resize: vertical; }
.input:hover { border-color: var(--c-primary); }
.input:focus-visible { border-color: var(--c-primary); }

.checkbox {
  display: flex; align-items: flex-start; gap: 0.75rem;
  min-height: 48px; padding-block: 0.5rem;
  font-size: 1rem; color: var(--c-text-body); cursor: pointer;
}
.checkbox input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--c-primary); }

.info-box {
  background: var(--c-sage-soft); border-radius: var(--radius-lg);
  padding: clamp(1.375rem, 2.4vw, 2.125rem);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.info-box dt { font-size: 0.84375rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-primary-dark); }
.info-box dd { margin: 0; }

/* --- Telefonnummer som stor lenke --------------------------------------- */
.tel-big {
  display: inline-flex; align-items: center; min-height: 56px;
  font-family: var(--font-serif); font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  color: var(--c-primary-dark);
  text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px;
}
.tel-big:hover { color: var(--c-text); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--c-primary-dark); color: var(--c-on-dark);
  padding: clamp(2.5rem, 4.4vw, 4.5rem) var(--gutter);
  margin-top: auto;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: clamp(1.75rem, 3vw, 3.5rem); padding-inline: 0; }
.site-footer .col { flex: 1 1 13rem; display: flex; flex-direction: column; gap: 0.375rem; }
.site-footer .col--brand { flex: 1 1 21rem; gap: 0.5rem; }
.site-footer .name { font-family: var(--font-serif); font-size: 1.375rem; }
.site-footer .muted { color: var(--c-on-dark-muted); font-size: 1rem; }
.site-footer h2 {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-on-dark-label); margin-bottom: 0.375rem;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.site-footer a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--c-on-dark); text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .col--contact a { text-decoration: underline; }

/* --- Hjelpeklasser ------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* --- Ekstra klasser brukt i den statiske versjonen --------------------- */
.brand img { width: 52px; height: 32px; }
.site-footer .mark { width: 46px; height: 28px; margin-bottom: 0.25rem; }

.pris-grid { display: flex; flex-wrap: wrap; gap: clamp(1rem, 1.8vw, 1.5rem); }
.pris-card {
  flex: 1 1 clamp(15rem, 30vw, 21rem);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.2vw, 2rem);
}
.pris-card h3 { margin-bottom: 0.2em; }
.pris-card > p { color: var(--c-text-muted); font-size: 1rem; margin-bottom: 0.875rem; }
.pris-card dl { margin: 0; }
.pris-card dl > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; padding-block: 0.75rem; border-bottom: 1px dashed var(--c-border);
}
.pris-card dl > div:last-child { border-bottom: 0; }
.pris-card dd { margin: 0; font-weight: 700; white-space: nowrap; }

.two-col { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 3vw, 3.5rem); }
.two-col > * { flex: 1 1 clamp(16rem, 26vw, 24rem); }
.two-col > .wide { flex: 1 1 clamp(18rem, 40vw, 38.75rem); }

.list-card { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.list-card li {
  display: flex; gap: 0.875rem; align-items: baseline;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; padding: 1rem 1.25rem;
}
.list-card li::before {
  content: ""; flex: none; width: 0.5625rem; height: 0.5625rem;
  border-radius: 999px; background: var(--c-accent);
}

.steps h3 { flex: 1 1 clamp(10rem, 18vw, 16rem); margin: 0; }
.steps .desc { flex: 1 1 clamp(15rem, 36vw, 32.5rem); color: var(--c-text-muted); margin: 0; }

.method { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 3.5rem); }
.method + .method { margin-top: clamp(2rem, 3.4vw, 3.75rem); padding-top: clamp(2rem, 3.4vw, 3.75rem); border-top: 1px solid var(--c-border); }
.method .method-head { flex: 1 1 clamp(14rem, 22vw, 20rem); }
.method .method-head .num { display: block; font-family: var(--font-serif); font-size: 1.375rem; color: var(--c-accent); margin-bottom: 0.35rem; }
.method .method-head p { color: var(--c-text-muted); font-size: 1rem; margin: 0; }
.method .method-body { flex: 1 1 clamp(17.5rem, 40vw, 38.75rem); display: flex; flex-direction: column; gap: 1rem; }

.form-grid { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: flex-start; }
.form-grid .form { flex: 1 1 clamp(17.5rem, 40vw, 38.75rem); }
.form-grid .side { flex: 1 1 clamp(16rem, 26vw, 25rem); display: flex; flex-direction: column; gap: 1.125rem; }
.note-box { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: clamp(1.375rem, 2.4vw, 2.125rem); }
.note-box h2, .info-box h2 {
  font-family: var(--font-serif); font-size: clamp(1.375rem, 2vw, 1.75rem);
  text-transform: none; letter-spacing: -0.01em; color: var(--c-text); margin-bottom: 0.4em;
}
.info-box dl { margin: 0; display: grid; gap: 0.75rem; }
.info-box a { color: var(--c-primary-dark); }

.lokale { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem);
  background: var(--c-surface-alt); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.4vw, 2.25rem); }
.lokale img { flex: 1 1 clamp(15rem, 28vw, 26.25rem); min-width: 0; width: 100%; border-radius: 20px; object-fit: cover; }
.lokale .lokale-text { flex: 1 1 clamp(16rem, 34vw, 32.5rem); display: flex; flex-direction: column; gap: 0.75rem; }
