/* Clausen Fysioterapi — one design system, tokens first.
   Structure: tokens → base typography → layout → header → buttons →
   page hero / home hero → cards, link cards, callouts, prose, table,
   therapists, media, form, footer, responsive. */

:root {
  --color-bg: #ffffff;
  --color-text: #2a2a2a;
  --color-heading: #000000;
  --color-muted: #565b57;
  --color-link: #000000;
  --color-link-hover: var(--color-brand);
  --color-focus: #1f2e29;
  --color-focus-on-dark: #ffffff;
  --color-brand: #49685e;
  --color-brand-dark: #2d413b;
  --color-brand-soft: rgba(82, 116, 105, 0.15);
  --color-band: #49685e;
  --color-on-band: #ffffff;
  --color-card: #f8f9fb;
  --color-card-border: #e6ecea;
  --color-media-card: rgba(82, 116, 105, 0.15);
  --color-border: #e2e7ed;
  --color-footer: #f6f6f6;
  --color-table-head: #2d473a;
  --color-table-row: #e9ede9;
  --color-table-line: #d6dcd7;
  --color-table-text: #565b57;
  --font: "Google Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1290px;
  --narrow: 750px;
  --measure: 90vw;
  --radius: 20px;
  --radius-card: 25px;
  --radius-table: 16px;
  --header-h: 80px;
  --space-section: 60px;
  --space-hero: 100px;
  --space-card: 25px;
  --space-gutter: 20px;
  --shadow-menu: 0 12px 32px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Synlig fokus (WCAG 2.4.7). Mørk ring på lys bakgrunn, hvit ring på mørk. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.page-hero :focus-visible,
.nav-drawer :focus-visible,
.site-nav .sub-menu :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--color-focus-on-dark);
}
.btn:focus-visible,
a.btn:focus-visible { outline-offset: 3px; }

body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
iframe { border: 0; width: 100%; }
figure { margin: 0; }

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.5;
  margin: 0;
}
h1 { font-size: 40px; line-height: 52px; }
h2 { font-size: 35px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

#main {
  font-size: 18px;
  line-height: 29.7px;
  color: var(--color-text);
  min-height: 40vh;
}
#main p { margin: 0 0 27px; font-size: 18px; line-height: 29.7px; }
#main p:last-child { margin-bottom: 0; }
#main ul,
#main ol {
  margin: 0 0 27px;
  padding-left: 45px;
  font-size: 18px;
  line-height: 29.7px;
}
#main li {
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 29.7px;
  font-weight: 400;
  color: var(--color-text);
}
#main h2 {
  font-size: 35px;
  line-height: 52.5px;
  font-weight: 500;
  color: #000;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 20px;
}
#main h3 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 500;
  color: #000;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 20px;
}
#main h4, #main h5 {
  margin: 0;
  padding-top: 60px;
  padding-bottom: 20px;
}
#main .hero-copy h2,
#main .section-title,
#main .page-title,
#main .page-hero h1,
#main .card :is(h2, h3, h4),
#main .link-card :is(h2, h3, h4, h5),
#main .therapist-card :is(h2, h3),
#main .service-card :is(h2, h3),
#main .contact-form-heading,
#main .callout :is(h2, h3, h4),
#main .therapist-layout :is(h1, h2),
#main .bio-panel :is(h2, h3),
#main .legal h1 {
  padding-top: 0;
  padding-bottom: 0;
}
#main p:has(+ h2),
#main p:has(+ h3),
#main p:has(+ h4),
#main p:has(+ .callout),
#main p:has(+ aside) { margin-bottom: 0; }
#main .page-hero h1,
#main .hero h2,
#main .card :is(h2, h3, h4),
#main .link-card :is(h2, h3, h4, h5),
#main .therapist-card :is(h2, h3),
#main .callout :is(h2, h3, h4):first-child { margin: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brand-dark);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 10000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Layout */
.container {
  width: min(var(--container), var(--measure));
  margin-inline: auto;
}
.container--narrow {
  width: min(var(--narrow), var(--measure));
  margin-inline: auto;
}
.section { padding: var(--space-section) 0; }
.section--tight { padding: var(--space-section) 0 var(--space-section); }
.hero + .section { padding-top: 0; }
.page-hero + .section { padding-top: 0; }
.page-hero + .section:has(.split--even) { padding-top: 30px; }

.section-title,
#main .section-title { text-align: center; margin: 0 0 32px; }
/* Blokker som havner inne i en annen container (f.eks. kart etter tekst) skal ikke bli bredere enn den. */
.container .container { width: 100%; }
.container--narrow > .section { padding: 40px 0 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: #fff;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: var(--header-h);
  width: min(var(--container), var(--measure));
  margin-inline: auto;
}
.header-cluster {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  margin-inline: auto;
  padding-inline: 24px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img {
  height: 55px;
  width: auto;
  max-width: 260px;
  border-radius: 0;
}

.site-nav { flex: 0 0 auto; }
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 29px;
  padding: 0 19.3px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 20.8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li:focus-within > a,
.site-nav > ul > li.is-open > a,
.site-nav > ul > li.is-current > a,
.site-nav > ul > li > a[aria-current="page"] { color: var(--color-brand); }

.site-nav .has-sub > a { display: inline-flex; align-items: center; }
.site-nav .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 12px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}
.site-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--color-brand-dark);
  border: 0;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 10px 20px rgba(41, 51, 61, 0.1);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  z-index: 50;
  min-width: 220px;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { display: grid; }
.site-nav li.is-dismissed > .sub-menu { display: none; }
.site-nav .mega > .sub-menu {
  grid-template-columns: 1fr 1fr;
  width: 400px;
  min-width: 400px;
}
.site-nav .has-sub:not(.mega) > .sub-menu {
  grid-template-columns: 1fr;
  min-width: 240px;
}
.site-nav .sub-menu a {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  white-space: normal;
}
.site-nav .mega > .sub-menu > li:nth-child(odd) > a {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.site-nav .sub-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.header-socials {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 0 8px;
}
.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text);
  text-decoration: none;
}
.header-socials a:hover { color: var(--color-brand); }
.header-socials svg { width: 15px; height: 15px; fill: currentColor; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  padding: 15px;
  margin-right: -15px;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-heading);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Mobilmeny: fullskjerm, mørk grønn, høyrestilte menypunkter midt på skjermen
   (som på dagens nettside). Tekstfargen er løftet litt for kontrast. */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--color-brand-dark);
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-drawer.open { display: flex; flex-direction: column; }
.drawer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-block: auto;
  padding: 72px 35px 48px;
  width: 100%;
}
.nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-close svg { width: 14px; height: 14px; fill: currentColor; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer .drawer-menu { width: 100%; }
.nav-drawer .drawer-menu li { margin: 0; text-align: right; }
.nav-drawer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.nav-drawer .drawer-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding: 5px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}
.nav-drawer a:hover,
.nav-drawer .has-sub.is-open > .drawer-item > a { color: #fff; }
.nav-drawer a[aria-current="page"],
.nav-drawer .is-current > a,
.nav-drawer .is-current > .drawer-item > a { color: #a9c7bc; }
.nav-drawer a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.drawer-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: -14px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}
.sub-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.nav-drawer .has-sub.is-open > .drawer-item .sub-toggle { color: #fff; }
.nav-drawer .has-sub.is-open > .drawer-item .sub-toggle svg { transform: rotate(180deg); }
.nav-drawer .sub-menu { display: none; padding: 0 0 6px; }
.nav-drawer .has-sub.is-open > .sub-menu { display: block; }
.nav-drawer .sub-menu li {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.nav-drawer .sub-menu li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.nav-drawer .btn {
  margin-top: 28px;
  min-height: 50px;
  padding: 5px 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  align-self: flex-end;
}
.nav-drawer .btn:hover { background: #fff; color: var(--color-brand-dark); }

@media (max-width: 1099.98px) {
  .site-nav,
  .header-socials,
  .header-cta,
  a.btn.header-cta { display: none; }
  .header-cluster { margin-left: 0; }
  .menu-toggle { display: block; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .site-nav > ul > li > a { padding-inline: 12px; }
  .header-cluster { padding-inline: 12px; }
}

/* Buttons */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 40px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-card);
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font);
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: auto;
  align-self: flex-start;
}
.btn:hover,
a.btn:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #fff;
}

.header-cta,
a.header-cta {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 50px;
  height: 50px;
  padding: 5px 30px;
  border: 0;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  align-self: center;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--color-band);
  color: var(--color-on-band);
  padding: 100px 0;
  margin-bottom: 60px;
}
.page-hero h1 {
  color: var(--color-on-band);
  font-size: 40px;
  font-weight: 500;
  line-height: 52px;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 615px;
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--space-section);
  background-color: #f3f3f3;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Hvit flate bak teksten slik at kontrasten holder uansett bilde. */
  background-image: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.55) 62%, rgba(73, 104, 94, 0.12) 85%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; width: min(var(--container), var(--measure)); }
.hero-copy {
  width: 58%;
  max-width: 720px;
  padding: 0;
  margin-bottom: 78px;
}
.hero-copy h2,
#main .hero-copy h1,
#main .hero-copy h2,
.hero-copy h1 {
  font-size: 40px;
  line-height: 1.2;
  color: var(--color-heading);
  margin: 0;
}
.hero-lead,
#main .hero-lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--color-heading);
  margin: 0;
  padding-top: 20px;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}
.btn--secondary,
a.btn--secondary {
  background: #fff;
  color: var(--color-brand-dark);
  border-color: var(--color-brand);
}
.btn--secondary:hover,
a.btn--secondary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #fff;
}

/* Card grids */
.card-grid,
.link-grid,
.therapist-grid,
.media-row {
  display: grid;
  gap: 20px 30px;
}
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.therapist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.media-row { grid-template-columns: repeat(2, 1fr); gap: 20px 30px; }
.media-row img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: var(--space-card);
  background: var(--color-media-card);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-card);
}
.card .btn { margin-top: auto; }
.card img,
.card-media {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
.card :is(h2, h3, h4),
#main .card :is(h2, h3, h4) {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
  color: #020101;
  margin: 0;
}

.link-card {
  display: block;
  background: var(--color-media-card);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius);
  padding: var(--space-card);
  text-decoration: none;
  color: inherit;
}
.link-card:hover { color: inherit; border-color: var(--color-brand-dark); box-shadow: inset 0 0 0 1px var(--color-brand-dark); }
.link-card:hover :is(h2, h3, h4, h5) { text-decoration: underline; text-underline-offset: 3px; }
.link-card :is(h2, h3, h4, h5),
#main .link-card :is(h2, h3, h4, h5) {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--color-heading);
}
.link-card p,
#main .link-card p {
  margin: 0 0 22.5px;
  font-size: 15px;
  line-height: 24.75px;
  color: #54595f;
}
#main .link-card p:last-child { margin-bottom: 0; }

.callout {
  background: var(--color-media-card);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  margin: 24px 0;
}
#main .callout :is(h2, h3, h4):first-child,
.callout :is(h2, h3, h4):first-child {
  margin: 0;
  padding-bottom: 20px;
  font-size: 30px;
  line-height: 30px;
}

.icon-list,
#main .icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#main .icon-list--contact { margin-bottom: 28px; }
#main .icon-list li,
.icon-list li {
  position: relative;
  padding-left: 30px;
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 26.4px;
}
#main .icon-list li:first-child,
.icon-list li:first-child { margin-top: 0; }
.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-sizing: border-box;
  background: radial-gradient(circle at center, var(--color-brand) 0 3.5px, transparent 3.7px 4.6px, var(--color-brand) 4.8px 100%);
}
.icon-list--contact li::before { display: none; }
#main .icon-list--contact li,
.icon-list--contact li {
  padding-left: 32px;
  font-size: 16px;
  line-height: 26.4px;
  margin-top: 7.5px;
  margin-bottom: 0;
}
#main .icon-list--contact li:first-child,
.icon-list--contact li:first-child { margin-top: 0; }
.icon-list--contact li a {
  color: var(--color-heading);
  text-decoration: none;
  font-size: 18px;
}
.icon-list--contact li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  background-color: var(--color-brand);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-list--contact .icon-phone a {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/></svg>");
}
.icon-list--contact .icon-mail a {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/></svg>");
}
.icon-list--contact .icon-pin a {
  --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5c-1.4 0-2.5-1.1-2.5-2.5S10.6 6.5 12 6.5 14.5 7.6 14.5 9 13.4 11.5 12 11.5z'/></svg>");
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-table);
  overflow: hidden;
  font-family: inherit;
  margin: 0 auto;
}
.price-table thead th {
  background: var(--color-table-head);
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  padding: clamp(16px, 1.5vw, 24px) clamp(20px, 2vw, 32px);
  border: none;
  text-align: left;
  vertical-align: middle;
}
.price-table thead th:last-child { text-align: right; }
.price-table tbody td {
  background: var(--color-table-row);
  color: var(--color-table-text);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  padding: clamp(14px, 1.4vw, 22px) clamp(20px, 2vw, 32px);
  border: none;
  border-bottom: 1px solid var(--color-table-line);
  text-align: left;
  vertical-align: top;
}
.price-table tbody td:last-child { text-align: right; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody .price-note td {
  text-align: left;
  white-space: normal;
  font-size: 15px;
  font-style: italic;
  background: #f4f6f4;
}

/* Therapists */
.therapist-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.therapist-card img {
  width: 100%;
  aspect-ratio: 570 / 523;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top center;
}
.therapist-card :is(h2, h3) { font-size: 30px; line-height: 1; margin: 0; }
.therapist-card .role {
  font-weight: 500;
  margin: 0;
}
.therapist-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.therapist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
  width: min(var(--container), var(--measure));
  margin-inline: auto;
  padding: 80px 0 var(--space-section);
}
.therapist-layout .therapist-photo,
.therapist-layout img {
  width: 200px;
  height: auto;
  border-radius: 0;
  margin-bottom: 20px;
}
.therapist-layout h2,
#main .therapist-layout h2 {
  font-size: 35px;
  line-height: 1.2;
  margin: 0;
}
.therapist-layout .role,
#main .therapist-layout .role {
  color: var(--color-brand);
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  padding-top: 20px;
}
#main .therapist-layout p:not(.role) {
  font-size: 16px;
  line-height: 26.4px;
  margin: 0 0 24px;
}
#main .therapist-layout p:not(.role):last-child { margin-bottom: 0; }
#main .therapist-layout li,
#main .bio-panel li {
  font-size: 16px;
  line-height: 26.4px;
}
#main .bio-panel :is(h2, h3),
.therapist-layout .bio-panel :is(h2, h3) {
  font-size: 30px;
  line-height: 45px;
  margin: 0 0 19px;
}
.therapist-layout .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}
.therapist-layout .bio-panel {
  background: transparent;
  padding: 0;
}
.therapist-layout .bio-panel :is(h2, h3) {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.2;
}
.btn--ghost,
a.btn--ghost {
  background: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
}
.btn--ghost:hover,
a.btn--ghost:hover {
  background: var(--color-brand);
  color: #fff;
}

/* Split columns (contact, etc.) */
.split,
.split--even,
.split--contact {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 30px 40px;
  align-items: start;
}
.split--even,
.split--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 50px; }
.split > div > img { width: 100%; border-radius: var(--radius); }
#main .gallery,
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
#main .gallery img,
.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
.container--narrow img {
  width: 100%;
  border-radius: var(--radius);
}
.container--narrow img + img { margin-top: 20px; }

.contact-card {
  background: #fff;
  padding: 20px;
}
.contact-form-panel {
  background: #fff;
  padding: 40px 40px 15px;
}

.map { border-radius: var(--radius); overflow: hidden; }
.map iframe { min-height: 500px; height: 500px; border-radius: var(--radius); }

/* Contact form */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kontakt-form {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
}
.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  border: 1px solid #69727d;
  border-radius: 10px;
  padding: 0 15px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--color-text);
  background: #fff;
}
.kontakt-form input {
  min-height: 50px;
}
.kontakt-form textarea {
  padding-top: 12px;
  min-height: 120px;
}
.kontakt-form label:not(.visually-hidden) {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-heading);
}
.kontakt-form .field-hint { font-weight: 400; color: var(--color-muted); }
.kontakt-form input:focus-visible,
.kontakt-form textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-focus);
}
.kontakt-form .hp { position: absolute; left: -9999px; }
.kontakt-form .turnstile:empty { display: none; }
.kontakt-form .turnstile-info { margin: 0; font-size: 0.875rem; }
.kontakt-form .turnstile-info a { color: inherit; }
.kontakt-form .form-status { min-height: 1.4em; }
#main .kontakt-form p { margin: 0; }
.kontakt-form .error { color: #9b1c1c; font-size: 14px; line-height: 1.4; }
.kontakt-form .error:empty { display: none; }
.kontakt-form .form-status { margin: 0; font-weight: 500; }
.kontakt-form .form-status:empty { min-height: 0; }
.kontakt-form .btn,
.kontakt-form button[type="submit"] {
  width: 100%;
  min-height: 0;
  height: auto;
  margin-top: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-card);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 48px;
  align-self: stretch;
}

/* Legal pages: Blocksy-style full-width 16px typography, no green hero */
.legal { font-size: 16px; }
#main .legal,
#main .legal p { font-size: 16px; line-height: 26.4px; margin: 0 0 24px; }
#main .legal p:last-child { margin-bottom: 0; }
.legal h1 {
  font-size: 40px;
  line-height: 52px;
  font-weight: 500;
  color: #000;
  margin: 0 0 20.5px;
}
#main .legal h2 {
  font-size: 35px;
  line-height: 52.5px;
  margin: 0 0 20.5px;
  padding-top: 60px;
}
#main .legal h3 {
  font-size: 30px;
  line-height: 45px;
  margin: 45px 0 19px;
  padding: 0;
}
#main .legal li {
  font-size: 16px;
  line-height: 26.4px;
}
.legal-inner { width: min(var(--container), var(--measure)); }

/* Våre tjenester */
.page-title--center,
#main .page-title--center {
  text-align: center;
  font-size: 40px;
  line-height: 60px;
  font-weight: 500;
  margin: 0;
  padding-top: 0;
  padding-bottom: 80px;
}
.section:has(.page-title--center) {
  padding-top: 70px;
}
.service-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin: 0 0 28px;
}
.service-card img {
  width: 48px;
  height: auto;
  margin: 0 0 16px;
}
.service-card :is(h2, h3),
#main .service-card :is(h2, h3) {
  font-size: 21px;
  font-weight: 600;
  line-height: 31.5px;
  margin: 0 0 16.3px;
}
.service-card p,
#main .service-card p { font-size: 16px; line-height: 26.4px; }
#main .service-card li,
.service-card li {
  font-size: 16px;
  line-height: 26.4px;
}
.service-card a { color: var(--color-brand-dark); text-decoration: underline; }

/* Therapist listing rhythm */
#main .therapist-card :is(h2, h3) { margin: 0; font-size: 30px; line-height: 30px; }
#main .therapist-card .role,
.therapist-card .role {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  color: var(--color-text);
}
#main .therapist-card p:not(.role) {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 26.4px;
  color: var(--color-text);
}
.therapist-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.therapist-layout .btn--ghost::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/></svg>") center / contain no-repeat;
}

/* Top-level nav hover/current is brand; dropdown links stay white */
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a:focus { color: var(--color-brand); }

/* Footer — typography and 2fr 1fr 1fr columns from live computed styles */
.site-footer {
  margin-top: 0;
  background: var(--color-footer);
  color: var(--color-text);
  font-size: 16px;
}
.footer-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  width: min(var(--container), var(--measure));
  margin-inline: auto;
  padding: 60px 0;
}
.footer-title {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: #000;
  margin: 0 0 16px;
}
.footer-title strong { font-weight: 700; }
.footer-main > div > p:not(.footer-title) {
  margin: 0 0 25.5px;
  font-size: 17px;
  font-weight: 400;
  line-height: 28.05px;
  color: var(--color-text);
}
.footer-main > div > p:not(.footer-title):last-of-type { margin-bottom: 0; }
.footer-main a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-main a:hover { color: var(--color-link-hover); }
.footer-links { margin-top: 40px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 28.05px;
}
.footer-links a {
  display: inline;
  margin: 0;
  font-size: 17px;
  line-height: 28.05px;
  color: var(--color-text);
  text-decoration: none;
}
.footer-bottom { padding: 0; }
.footer-bottom .inner { border-top: 1px solid var(--color-table-line); }
.footer-bottom .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  width: min(var(--container), var(--measure));
  margin-inline: auto;
  padding: 25px 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 19.5px;
}
.footer-bottom p {
  margin: 0;
  font-size: 15px;
  line-height: 19.5px;
  color: var(--color-muted);
}
.footer-bottom a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--color-link-hover); }

@media (max-width: 1024px) {
  /* Hero på mobil og nettbrett: bildet øverst, teksten under på hvit bunn.
     Ingen tekst over bildet, så kontrasten er alltid god. */
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
    margin-bottom: 48px;
    background: #fff;
  }
  .hero::after { display: none; }
  .hero-image {
    position: static;
    width: 100%;
    height: clamp(200px, 42vw, 380px);
    object-position: 70% 40%;
  }
  .hero .container { padding-top: 28px; }
  .hero-copy {
    width: 100%;
    max-width: 640px;
    text-align: left;
    margin-bottom: 0;
    padding: 0;
  }
  #main .hero-copy h1,
  #main .hero-copy h2,
  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.2;
  }
  .hero-lead,
  #main .hero-lead { font-size: 18px; line-height: 1.55; padding-top: 14px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .card-grid--3,
  .link-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .therapist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 30px; }
  .therapist-layout,
  .split,
  .split--even,
  .split--contact { grid-template-columns: minmax(0, 1fr); column-gap: 40px; }
  .therapist-layout { padding-top: 48px; }
  .card img, .card-media { height: 250px; }
}

@media (max-width: 767px) {
  :root { --space-card: 20px; }
  .logo img { height: 55px; max-width: 62vw; }
  h1, .page-hero h1 { font-size: 28px; line-height: 1.25; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  #main { font-size: 17px; line-height: 1.6; }
  #main p,
  #main li { font-size: 17px; line-height: 1.6; }
  #main p { margin-bottom: 20px; }
  #main ul,
  #main ol { padding-left: 1.3em; font-size: 17px; line-height: 1.6; }
  #main h2 { font-size: 26px; line-height: 1.25; padding-top: 36px; padding-bottom: 12px; }
  #main h3 { font-size: 22px; line-height: 1.3; padding-top: 32px; padding-bottom: 10px; }
  #main h4, #main h5 { padding-top: 28px; padding-bottom: 10px; }
  #main .page-hero h1 { line-height: 1.25; }
  .page-title--center,
  #main .page-title--center { font-size: 28px; line-height: 1.25; padding-bottom: 32px; }
  .section:has(.page-title--center) { padding-top: 40px; }
  .legal h1,
  #main .legal h1 { font-size: 28px; line-height: 1.25; }
  #main .legal h2 { font-size: 24px; line-height: 1.3; padding-top: 36px; }
  #main .legal h3 { font-size: 20px; line-height: 1.35; margin: 28px 0 10px; }
  #main .callout :is(h2, h3, h4):first-child,
  .callout :is(h2, h3, h4):first-child { font-size: 22px; line-height: 1.3; padding-bottom: 12px; }
  .therapist-layout :is(h1, h2),
  #main .therapist-layout :is(h1, h2) { font-size: 28px; }
  #main .bio-panel :is(h2, h3),
  .therapist-layout .bio-panel :is(h2, h3) { font-size: 22px; line-height: 1.3; }
  .therapist-card :is(h2, h3),
  #main .therapist-card :is(h2, h3) { font-size: 24px; line-height: 1.2; }
  .card :is(h2, h3, h4),
  #main .card :is(h2, h3, h4) { font-size: 22px; }
  #main .hero-copy h1,
  #main .hero-copy h2,
  .hero-copy h1 { font-size: 26px; line-height: 1.22; }
  .hero-lead,
  #main .hero-lead { font-size: 17px; }
  .hero .container { padding-top: 22px; }
  .hero-actions .btn { flex: 1 1 140px; padding: 14px 20px; }
  .page-hero { padding: 40px 0; margin-bottom: 40px; }
  .section { padding: 40px 0; }
  .section-title,
  #main .section-title { margin-bottom: 24px; }
  .container--narrow > .section { padding-top: 32px; }
  .service-card { padding: 24px 20px; }
  .contact-form-panel { padding: 24px 0 8px; }
  .btn,
  a.btn { padding: 14px 28px; }
  .therapist-layout .actions .btn--ghost { overflow-wrap: anywhere; }
  .price-table thead th,
  .price-table tbody td { padding: 12px 14px; }
  .price-table tbody td { font-size: 16px; }
  .card-grid--3,
  .link-grid--2,
  .link-grid--4,
  .media-row,
  .therapist-grid { grid-template-columns: minmax(0, 1fr); }
  .card img, .card-media { height: 220px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); padding: 40px 0; text-align: center; gap: 32px; }
  .footer-links li { padding: 4px 0; }
  .footer-bottom .inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
  .footer-bottom .inner { justify-content: center; text-align: center; }
  .map iframe { min-height: 320px; height: 320px; }
}

@media (max-width: 689.98px) {
  :root { --measure: 88vw; }
}

#main .contact-form-heading { margin: 0 0 16px; }
