/* Nittedal Massasje – stilark
   Farger fra Tor Gustavsens tidligere side (mørk petrol + turkis logo).
   Font: Nunito (gratis, Google Fonts) – avrundet stil som ligner Museo Sans Rounded. */

:root {
  --bg: #f3f7f8;
  --surface: #ffffff;
  --tint: #e3eef1;
  --ink: #1c2b30;
  --muted: #5b6b70;
  --line: #d5e2e6;
  --navy: #004e66;       /* hovedfarge fra gammel side */
  --navy-dark: #003a4d;
  --teal: #0096af;       /* turkis fra logoen – til grafikk og store flater */
  --teal-text: #00788c;  /* mørkere turkis for liten tekst (god kontrast) */
  --teal-light: #7fd3e2; /* turkis på mørk bakgrunn */
  --radius: 12px;
  --radius-btn: 8px;
  --shadow: 0 1px 2px rgba(0, 58, 77, .06), 0 8px 24px rgba(0, 58, 77, .07);
  --font: "Nunito", "Museo Sans Rounded", "Arial Rounded MT", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-text); }
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

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

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--teal-text); margin-bottom: .8em;
}

.placeholder-note { color: #a0522d; font-style: italic; }

/* Utkast-banner */
.draft-banner {
  background: var(--ink); color: #fff; text-align: center;
  font-size: .82rem; font-weight: 600; padding: 6px 16px;
}

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .8em 1.4em; border-radius: var(--radius-btn);
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
  font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px;
}
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .7em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 24px; color: var(--teal); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.logo-sub { font-size: .74rem; font-weight: 600; color: var(--teal-text); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.main-nav a:not(.btn):hover { color: var(--teal-text); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 6px;
}
.menu-bar { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.tagline { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--teal-text); margin: -.1em 0 .7em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.hero-facts li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: .45em; }

/* Buen i bildet speiler buen i logoen */
.hero-image {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint);
  border-radius: 999px 999px var(--radius) var(--radius);
  border-top: 6px solid var(--teal);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 16 / 11; border-radius: var(--radius); border-top: 0; }
}

/* Tekst i hero glir rolig inn ved lasting */
.hero-anim { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }


/* Snarveier under hero */
.quickbar {
  position: relative; z-index: 2;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 58, 77, .06);
}
.quickbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 18px; text-decoration: none; color: var(--ink);
  border-left: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.quick:first-child { border-left: 0; }
.quick svg {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%;
  background: var(--tint); stroke: var(--teal-text); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: background .2s, stroke .2s, transform .25s;
}
.quick span { display: flex; flex-direction: column; line-height: 1.25; }
.quick strong { font-weight: 800; }
.quick small { color: var(--muted); font-size: .88rem; }
.quick:hover { background: var(--bg); }
.quick:hover svg { background: var(--navy); stroke: #fff; transform: translateY(-2px); }
@media (max-width: 860px) {
  .quickbar-inner { grid-template-columns: 1fr 1fr; width: 100%; }
  .quick { padding: 16px 10px; border-left: 0; border-top: 1px solid var(--line); flex-direction: column; gap: 8px; text-align: center; }
  .quick span { align-items: center; }
  .quick:nth-child(even) { border-left: 1px solid var(--line); }
  .quick:nth-child(-n+2) { border-top: 0; }
  .quick svg { width: 38px; height: 38px; padding: 8px; }
  .quick small { font-size: .8rem; }
}

/* Myke overganger: innhold glir inn når man scroller */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Seksjoner */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .eyebrow { color: var(--teal-light); }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--teal);
}
.card p { color: var(--muted); margin: 0; }

/* Steg */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Priser */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-box {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.price-box:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 12px 32px rgba(0, 58, 77, .12); }
.price-box-featured { border: 2px solid var(--navy); }
.badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-bottom: .2em; }
.price-desc { color: var(--muted); }
.price-cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--teal-text); }
.booking-help { margin: 28px 0 0; color: var(--muted); }
.booking-help a { font-weight: 700; }
@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Om Tor */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.about-image {
  aspect-ratio: 4 / 5; overflow: hidden; background: #e9eaea;
  border-radius: 999px 999px var(--radius) var(--radius);
  border-top: 6px solid var(--teal);
  max-width: 420px; width: 100%;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-weight: 600; }
.checklist li::before { content: "✓"; color: var(--teal-light); font-weight: 800; margin-right: .6em; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-image { max-width: 300px; }
}

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 600; color: var(--teal);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { margin: 0 0 28px; font-style: normal; }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list .dt { color: var(--muted); }
.contact-list .dd { font-weight: 600; }
.contact-list a { color: var(--ink); }
.dd-note { font-weight: 400; color: var(--muted); font-size: .92rem; }
.contact-media { display: grid; gap: 16px; }
.clinic-photo { margin: 0; }
.clinic-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.clinic-photo figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .78); padding: 48px 0; font-size: .95rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .3em !important; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.credit { width: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-anim, .js .reveal { opacity: 1; transform: none; }
}
