/* =========================================================
   Byåsen Tannhelse – stilark
   Fargepalett, typografi og komponenter.
   Endre farger under :root for å justere hele nettsiden.
   ========================================================= */

:root {
  /* Farger – basert på logoen (salvie-grå + mørk grå) og den gamle
     sidens dype turkis og varme beige, justert til et roligere, moderne uttrykk. */
  --ink: #24282a;          /* mørk tekst og mørke seksjoner */
  --ink-soft: #40464a;     /* brødtekst */
  --stone: #585757;        /* grå fra logoen */
  --mist: #7d8785;         /* dempet tekst */
  --sage: #b9c2bf;         /* salvie fra logoen */
  --sage-light: #e2e8e6;
  --sage-pale: #f0f3f2;
  --teal: #2f6f6d;         /* primær aksentfarge */
  --teal-deep: #235654;
  --teal-tint: #d6e4e2;
  --sand: #f6f3ec;         /* sidebakgrunn */
  --sand-deep: #ebe4d6;
  --white: #ffffff;
  --line: rgba(36, 40, 42, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Typografi */
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Mål */
  --container: 1240px;
  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 84px; }
}

/* ---------- Grunnlag ---------- */
*, *::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;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0; }

/* Kursiv serif-aksent (som i inspirasjonsmalen) */
em, .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: 0;
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-tint); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
.section--sage { background: var(--sage-pale); }
.section--white { background: var(--white); }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

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

/* ---------- Små byggesteiner ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--sage); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.section--dark .lead { color: rgba(255, 255, 255, 0.8); }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
  .section-head > p { margin-bottom: 6px; }
}

.num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--sage);
  letter-spacing: 0;
}

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--ink); }
.btn--ghost:hover { background: rgba(36, 40, 42, 0.05); }
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--white); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--teal);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Topptekst ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header--onhero { color: var(--white); }
.header--solid, .header--onhero.header--solid {
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; transition: filter 0.3s; }
@media (min-width: 768px) { .brand img { height: 38px; } }
.header--onhero:not(.header--solid) .brand img { filter: brightness(0) invert(1); }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 30px; }
  .nav a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    opacity: 0.85;
    transition: opacity 0.2s;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }
.header--onhero:not(.header--solid) .header__cta { background: var(--white); color: var(--ink); }
.header--onhero:not(.header--solid) .header__cta:hover { background: var(--sand); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 50%;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobilmeny */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--sand);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open .header { background: var(--sand); color: var(--ink); box-shadow: none; }
.menu-open .header .brand img { filter: none; }
.menu-open { overflow: hidden; }
.mobile-menu__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-menu__foot { display: grid; gap: 18px; font-size: 0.95rem; color: var(--mist); }
.mobile-menu__foot .btn { width: 100%; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__media img { object-position: 62% center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 26, 0.45) 0%, rgba(20, 24, 26, 0.05) 35%, rgba(20, 24, 26, 0.55) 75%, rgba(20, 24, 26, 0.82) 100%);
}
.hero .container {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 36px;
}
.hero__inner {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 48px; }
  .hero .container { padding-bottom: 48px; }
}
.hero h1 { color: var(--white); max-width: 12ch; }
.hero__text { margin-top: 24px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero__facts dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 3px; }
.hero__facts dd { margin: 0; color: var(--white); }
@media (min-width: 640px) and (max-width: 899px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }

/* Keep the portrait above the copy on small screens, with a soft fade into the page. */
@media (max-width: 899px) {
  .hero__media { height: clamp(480px, 125vw, 900px); }
  .hero__media img { object-position: center top; }
  .hero::after {
    background: linear-gradient(180deg, rgba(20, 24, 26, 0.24) 0%, transparent 20%, var(--ink) clamp(470px, 120vw, 860px));
  }
  .hero .container { padding-top: clamp(370px, 94vw, 690px); }
}

/* ---------- Aktuelt ---------- */
.news { border-bottom: 1px solid var(--line); }
.news__list {
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) { .news__list { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .news__list { grid-template-columns: repeat(4, 1fr); } }
.news__item {
  display: grid;
  gap: 10px;
  padding: 22px 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.5;
}
.news__item h3 { font-size: 1.05rem; }
.news__item a { color: var(--teal); font-weight: 500; }
.news__item a:hover { text-decoration: underline; }

/* ---------- Om oss ---------- */
.about__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
}
.about__statement {
  font-size: clamp(1.5rem, 2.9vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  text-wrap: balance;
}
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .about__media img { aspect-ratio: 7 / 5; } }
.about__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.values {
  display: grid;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  padding: 26px 26px 28px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(36, 40, 42, 0.35); }
.value .num { display: block; margin-bottom: 26px; }
.value h3 { margin-bottom: 8px; font-size: 1.2rem; }
.value p { font-size: 0.98rem; color: var(--ink-soft); }
.value--dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, 0.78); }
.value--dark h3 { color: var(--white); }
.value--dark p { color: rgba(255, 255, 255, 0.75); }
.value--dark .num { color: var(--sage); }

/* Galleri-stripe */
.gallery {
  display: grid;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.image-caption { margin: 12px 0 0; color: var(--mist); font-size: 0.78rem; }
.image-credit { margin: 32px 0 0; max-width: 70ch; font-size: 0.75rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- Behandlinger ---------- */
.services {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(36, 40, 42, 0.45); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.service .image--consultation, .treatment__media .image--consultation { object-position: center 12%; }
.service:hover img { transform: scale(1.03); }
.service__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.service__plus {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.1rem;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.service:hover .service__plus { background: var(--teal); border-color: var(--teal); color: var(--white); }
.service h3 { margin-bottom: 8px; }
.service p { font-size: 0.97rem; color: var(--ink-soft); }
.service a.service__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Utheving (tannlegeskrekk / narkose) ---------- */
.feature__grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .feature__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
}
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .feature__media img { aspect-ratio: 4 / 5; } }
.feature__list { display: grid; gap: 14px; margin: 28px 0 34px; }
.feature__list li { display: flex; gap: 14px; align-items: flex-start; }
.feature__list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--sage); }

/* ---------- Tannleger ---------- */
.team {
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.person { display: flex; flex-direction: column; }
.person__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sage-light);
}
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.03); }
.person__initials {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  color: var(--teal);
  background: radial-gradient(ellipse at 30% 15%, #f4f4ec, #c8d4cf);
}
.person__initials span {
  display: grid;
  place-items: center;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 111, 109, 0.2);
  border-radius: 50%;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-style: italic;
  font-weight: 400;
}
.person__role {
  position: absolute;
  left: 14px; top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.person__body { padding: 18px 4px 0; }
.person h3 { margin-bottom: 4px; }
.person__title { font-size: 0.92rem; color: var(--mist); margin-bottom: 12px; }
.person p { font-size: 0.97rem; }
.person details { margin-top: 6px; }
.person summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--teal);
  font-size: 0.95rem;
}
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; font-size: 1.1rem; }
.person details[open] summary::after { content: "–"; }
.person details[open] summary .more { display: none; }
.person details:not([open]) summary .less { display: none; }
.person details > div { margin-top: 10px; }
.person__cta { margin-top: 16px; }

/* ---------- Priser ---------- */
.pricing {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .pricing { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; }
}
.pricing__points { display: grid; gap: 0; margin-top: 8px; }
.pricing__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.pricing__points li:last-child { border-bottom: 1px solid var(--line); }
.pricing__points h3 { font-size: 1.1rem; margin-bottom: 4px; }
.pricing__points p { font-size: 0.97rem; }

/* Prisliste-tabell (valgfri) */
.price-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.98rem; }
.price-table th, .price-table td { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 600; color: var(--ink); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Finn oss ---------- */
.location {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .location { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
.info-list { display: grid; gap: 22px; margin-top: 28px; }
.info-list h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 6px; }
.info-list a:hover { color: var(--teal); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
.hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--mist); font-weight: 400; }

.map {
  display: grid;
  gap: 18px;
}
.map__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sage-light);
  aspect-ratio: 4 / 3;
}
@media (min-width: 900px) { .map__frame { aspect-ratio: 16 / 10; } }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.6) contrast(1.02); }
.map__photo { display: block; cursor: zoom-in; }
.map__photo img { width: 100%; height: auto; border-radius: var(--radius); }
.map__caption { font-size: 0.9rem; color: var(--mist); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
.form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.form__note { font-size: 0.86rem; color: var(--mist); }
.form__status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; }
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--teal-tint); color: var(--teal-deep); }
.form__status--info { background: var(--sand-deep); color: var(--ink); }

/* ---------- CTA-bånd ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 72px);
  background: var(--teal);
  color: var(--white);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { max-width: 50ch; margin-inline: auto; color: rgba(255, 255, 255, 0.82); }
.cta-band .btn { margin-top: 26px; }

/* ---------- Bunntekst ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(48px, 7vw, 80px) 0 32px;
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }
.footer .brand img { height: 36px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: var(--white); }
.footer__tagline { margin-top: 18px; max-width: 32ch; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Undersider ---------- */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}
.page-hero--plain { min-height: 0; color: var(--ink); background: var(--sand); }
.page-hero__media, .page-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.page-hero:not(.page-hero--plain)::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 26, 0.4) 0%, rgba(20, 24, 26, 0.1) 40%, rgba(20, 24, 26, 0.78) 100%);
}
.page-hero .container { padding-top: calc(var(--header-h) + 40px); padding-bottom: 44px; }
.page-hero--plain .container { padding-top: calc(var(--header-h) + 28px); padding-bottom: 8px; }
.page-hero h1 { max-width: 16ch; }
.page-hero:not(.page-hero--plain) h1 { color: var(--white); }
.page-hero p { margin-top: 20px; max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.page-hero:not(.page-hero--plain) p { color: rgba(255, 255, 255, 0.82); }
.page-hero .eyebrow { color: var(--sage); }
.page-hero--plain .eyebrow { color: var(--teal); }

.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--mist); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--teal); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { display: grid; gap: 10px; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
}
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose .note {
  margin: 1.6em 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink);
}
.note__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.prose .lead { margin-bottom: 1.4em; }
.prose .lead + h2 { margin-top: 1.6em; }

/* Behandlinger-side: liste med detaljer */
.treatment-list { display: grid; gap: 0; }
.treatment {
  display: grid;
  gap: 22px;
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.treatment:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .treatment { grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
}
.treatment .num { font-size: 1.4rem; }
.treatment h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.treatment__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.treatment__body ul { display: grid; gap: 8px; margin: 14px 0 0; }
.treatment__body li { position: relative; padding-left: 22px; font-size: 0.98rem; }
.treatment__body li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* Sidenavigasjon på undersider: én rad som kan sveipes, fester seg under toppteksten */
.subnav-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: var(--white);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.subnav a:hover { border-color: var(--teal); color: var(--teal); }
.subnav a.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.has-subnav [id] { scroll-margin-top: calc(var(--header-h) + 66px); }

/* ---------- Animasjon ved scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .value, .service img, .person__photo img { transition: none; }
}

/* ---------- Utskrift ---------- */
@media print {
  .header, .mobile-menu, .cta-band, .map__frame, .form, .footer__grid { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Tillegg: hero-eyebrow og kartknapp ---------- */
.hero .eyebrow { color: var(--sage); }
.map__load {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(135deg, var(--sage-light), var(--teal-tint));
  transition: background-color 0.2s;
}
.map__load svg { width: 40px; height: 40px; color: var(--teal); margin-bottom: 6px; }
.map__load span { font-size: 1.1rem; font-weight: 500; }
.map__load small { font-size: 0.85rem; color: var(--mist); }
.map__load:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Knapper i hero/CTA får full bredde på små skjermer */
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Anmeldelser (tillitsstripe under hero) ---------- */
:root { --star: #d9a441; }
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .trust__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; align-items: center; }
}
.trust__summary .eyebrow { margin-bottom: 10px; }
.trust__score { display: flex; align-items: baseline; gap: 8px; font-size: clamp(2.6rem, 4.5vw, 3.6rem); line-height: 1; margin-bottom: 10px; }
.trust__of { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.45em; color: var(--mist); }
.trust__count { margin-left: 8px; font-size: 0.95rem; color: var(--mist); vertical-align: middle; }
.trust__link { display: inline-flex; margin-top: 14px; font-size: 0.95rem; }

.stars { position: relative; display: inline-block; height: 22px; line-height: 0; vertical-align: middle; }
.stars svg { display: inline-block; width: 22px; height: 22px; fill: currentColor; margin-right: 2px; vertical-align: top; }
.stars--sm { height: 16px; }
.stars--sm svg { width: 16px; height: 16px; margin-right: 1px; }
.stars__base { display: inline-block; white-space: nowrap; color: var(--sage-light); line-height: 0; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); width: var(--fill, 100%); line-height: 0; }
.stars--sm .stars__fill { position: static; display: inline-block; }

.trust__list { display: grid; gap: 14px; }
@media (max-width: 899px) {
  .trust__list {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); /* ellers snapper første kort helt inntil skjermkanten */
    scrollbar-width: none;
  }
  .trust__list::-webkit-scrollbar { display: none; }
  .trust__list .review { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  border: 1px solid var(--line);
}
.review blockquote { margin: 0; flex: 1; font-size: 0.98rem; line-height: 1.5; color: var(--ink); }
.review footer { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--mist); }
.review__name { font-weight: 600; color: var(--ink-soft); }
.review__src a:hover { color: var(--teal); text-decoration: underline; }

/* Aktuelt ligger nå lenger ned: linje over i stedet for under */
.news { border-bottom: 0; border-top: 1px solid var(--line); }

/* På mobil ligger vurderingene i en sveipestripe – vis dem uten scroll-animasjon */
@media (max-width: 899px) {
  .trust__list .review.reveal { opacity: 1; transform: none; transition: none; }
}

/* Kompakt vurderingsrad på mobil: 4,7 ★★★★★ (15) på én linje */
@media (max-width: 899px) {
  .trust__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .trust__summary .eyebrow { flex-basis: 100%; margin-bottom: 2px; }
  .trust__score { font-size: 2.1rem; margin-bottom: 0; }
  .trust__of { display: none; }
  .trust__summary .stars { height: 20px; }
  .trust__summary .stars svg { width: 20px; height: 20px; }
  .trust__count { margin-left: 0; }
  .trust__link { flex-basis: 100%; margin-top: 4px; }
}

/* (15) lenker til Google; på mobil erstatter den «Se alle på Google» */
a.trust__count { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sage); }
a.trust__count:hover { color: var(--teal); text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .trust__link { display: none; }
  a.trust__count { color: var(--teal); font-weight: 500; }
}

/* ---------- Prisliste ---------- */
.pl { display: grid; gap: clamp(36px, 5vw, 56px); }
.pl__cat h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.pl__table { width: 100%; border-collapse: collapse; }
.pl__table th, .pl__table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pl__table th { font-weight: 500; color: var(--ink); }
.pl__note { display: block; margin-top: 2px; font-size: 0.88rem; font-weight: 400; color: var(--mist); }
.pl__price { width: 1%; padding-left: 24px !important; text-align: right; white-space: nowrap; font-weight: 500; color: var(--ink); }
.pl__price--text { white-space: normal; font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; max-width: 180px; }
.price--todo { color: var(--mist); font-weight: 400; }
.pl__legend { margin-top: 24px; font-size: 0.92rem; color: var(--mist); }
.pl__legend a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose .pl__table { margin: 8px 0 12px; }
.prose .pl__legend { margin-top: 10px; }

/* Uthevet boks */
.callout {
  margin: 1.6em 0;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--ink);
}
.callout h3 { margin: 0 0 8px; font-size: 1.15rem; }
.callout p:last-child { margin: 0; }
.callout--warn { background: var(--sand-deep); margin: 0 0 28px; font-size: 0.98rem; }
.callout--warn a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.callout[hidden] { display: none; }

/* ---------- Takk-side ---------- */
.thanks { max-width: 680px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.thanks .eyebrow { justify-content: center; }
.thanks h1 { margin-inline: auto; }
.thanks .lead { margin: 20px auto 0; max-width: 46ch; }
.thanks__icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
}
.thanks__icon svg { width: 34px; height: 34px; }
.thanks__actions { justify-content: center; }
.value .link-arrow { display: inline-flex; margin-top: 8px; font-size: 0.95rem; }

/* Knapper inne i brødtekst skal ikke arve lenkestilen (teal + understrek) */
.prose .btn, .prose .btn:hover { text-decoration: none; }
.prose .btn--primary { color: var(--white); }
.prose .btn--ghost { color: var(--ink); }
.prose .link-arrow { text-decoration: none; }

/* Pristabellene holder lesbar bredde, men følger venstrekanten til resten av innholdet */
.pl-wrap { max-width: 860px; }

/* Consent choices share the same visual weight. */
.consent-panel { position: fixed; z-index: 1000; bottom: 20px; left: 20px; right: 20px; max-width: 750px; padding: 24px; background: #fffdf7; color: #21362e; border: 1px solid #b7c5b7; border-radius: 16px; box-shadow: 0 12px 60px #152c2933; max-height: 80dvh; overflow: auto; }
.consent-panel[hidden], .consent-options[hidden] { display: none; }
.consent-panel h2 { font: 600 20px/1.3 var(--font-sans, sans-serif); margin: 0 0 10px; }
.consent-panel p { font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.consent-panel a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-panel button { border: 1px solid #315044; background: #fffdf7; color: #21362e; border-radius: 7px; padding: 11px 17px; font: 500 14px/1.3 inherit; cursor: pointer; }
.consent-panel button:hover { background: #e8eee6; }
.consent-options { margin-bottom: 20px; display: grid; gap: 12px; }
.consent-options label { display: flex; gap: 10px; align-items: center; }
.consent-options input { width: 18px; height: 18px; }
.consent-settings { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.form-honeypot { position: absolute; left: -10000px; height: 1px; overflow: hidden; }
.form [type="submit"]:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) { .consent-panel { left: 10px; right: 10px; bottom: 10px; padding: 18px; } .consent-actions { display: grid; grid-template-columns: 1fr; } }

/* Samtykkebanner: «Godta alle» til høyre og uthevet i klinikkens farge */
.consent-actions [data-choice="reject"] { order: 1; }
.consent-actions [data-choice="settings"] { order: 2; }
.consent-actions [data-choice="accept"] {
  order: 3;
  margin-left: auto;
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  font-weight: 600;
}
.consent-actions [data-choice="accept"]:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
@media (max-width: 480px) {
  /* Mobil: Avvis valgfrie øverst, Tilpass i midten, Godta alle nederst */
  .consent-actions [data-choice="reject"] { order: 1; }
  .consent-actions [data-choice="settings"] { order: 2; }
  .consent-actions [data-choice="accept"] { order: 3; margin-left: 0; }
}

/* Pristabeller på små skjermer: la lange prisangivelser brytes i stedet for å gå utenfor */
@media (max-width: 639px) {
  .pl__table th { padding-right: 12px; }
  .pl__price { width: 40%; max-width: none; white-space: normal; padding-left: 12px !important; }
}

/* Brødsmulesti oppå bildehero (narkose, avbestilling) */

/* Behandlinger uten bilde: la teksten bruke hele bredden */
@media (min-width: 900px) {
  .treatment__body:last-child { grid-column: 2 / -1; max-width: 68ch; }
}

/* Ofte stilte spørsmål (forsiden) */
.faq__list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 500;
  font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.3rem; color: var(--teal); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 0 20px; max-width: 64ch; color: var(--ink-soft); }
