/* Kiropraktor Sara Nordanger – Fetsund
   Layout: rolig redaksjonell side, smal tekstspalte, brede seksjoner med vekslende flate. */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --tint: #ecf1ee;
  --ink: #1d2826;
  --muted: #56625f;
  --line: #d9dfdb;
  --accent: #1f5a4f;
  --accent-ink: #ffffff;
  --accent-soft: #d6e6e0;
  --rose: #a4524a;
  --rose-soft: #f4e3df;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --text: 68ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin-bottom: .75rem; display: block; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: var(--text); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand strong { font-family: var(--display); font-size: 1.3rem; font-weight: 500; display: block; }
.brand span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 600; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 20px; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; display: grid; min-width: 220px; box-shadow: 0 12px 30px rgb(0 0 0 / .08); }
.menu-panel a { padding: .65rem .8rem; text-decoration: none; color: var(--ink); border-radius: 8px; }
.menu-panel a:hover { background: var(--tint); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-cta { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--accent); transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-tint { background: var(--tint); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: var(--accent-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.empty { display: grid; place-items: center; font-family: var(--display); font-size: 5rem; color: var(--accent); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.facts div { background: var(--surface); padding: 1rem 1.1rem; font-size: .92rem; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: 1rem; }

/* Notice (Årnes) */
.notice { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; background: var(--rose-soft); border: 1px solid color-mix(in srgb, var(--rose) 25%, transparent); border-radius: var(--radius); padding: 1rem 1.25rem; }
.notice p { margin: 0; min-width: 0; flex: 1 1 320px; }
.notice strong { color: var(--rose); }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
a.card { text-decoration: none; color: var(--ink); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .more { display: inline-block; margin-top: .8rem; color: var(--accent); font-weight: 600; font-size: .92rem; }
.card-feature { border-color: var(--accent); background: linear-gradient(180deg, var(--surface), var(--tint)); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .7rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips a, .chips span { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: .95rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-bottom: .8rem; }
.steps p { color: var(--muted); margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Course */
.course { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.course > * { min-width: 0; }
.course h2, .course h3 { color: #fff; }
.course p { color: color-mix(in srgb, #fff 85%, var(--accent)); }
.course .eyebrow { color: #f2c9c1; }
.course ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.course li { padding-left: 1.4rem; position: relative; }
.course li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: #f2c9c1; }
.course .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.course .btn-primary:hover { background: var(--rose-soft); }
.course .btn-ghost { color: #fff; border-color: color-mix(in srgb, #fff 60%, transparent); }
.course .btn-ghost:hover { background: rgb(255 255 255 / .12); color: #fff; }
.price-line { font-family: var(--display); font-size: 1.4rem; color: #fff; margin: .2rem 0 0; }
@media (max-width: 820px) { .course { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { columns: 3 280px; column-gap: 1.25rem; }
.review { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 0 0 1.25rem; }
.review blockquote { margin: 0 0 .8rem; font-family: var(--display); font-size: 1.12rem; line-height: 1.5; }
.review figcaption { font-size: .88rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--tint); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding-block: 1rem; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin: .75rem 0 0; color: var(--muted); }

.callout { border-left: 3px solid var(--rose); background: var(--rose-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }

.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }

/* CTA */
.cta { text-align: left; }
.cta .card { padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta .card > * { min-width: 0; }
@media (max-width: 720px) { .cta .card { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2cf; padding-block: 3rem 2rem; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Anmeldelser: stjerner og "Les mer" */
.stars { color: #d39b2a; letter-spacing: .12em; font-size: 1rem; margin-bottom: .5rem; }
.review blockquote.clamp { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .4rem; }
.review blockquote.clamp.open { -webkit-line-clamp: unset; display: block; }
.more-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; margin-bottom: .7rem; }
.more-btn:hover { text-decoration: underline; }
.reviews + .actions { margin-top: .5rem; }

/* Andre plager som kort */
.plager { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.plager a { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--accent-soft); text-decoration: none; color: var(--ink); position: relative; transition: background .15s, transform .15s; }
.plager a:nth-child(4n+2), .plager a:nth-child(4n+4) { background: var(--rose-soft); border-color: color-mix(in srgb, var(--rose) 20%, transparent); }
.plager strong { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; padding-right: 1.5rem; }
.plager span { color: var(--muted); font-size: .95rem; }
.plager a::after { content: "→"; position: absolute; top: 1.2rem; right: 1.2rem; color: var(--accent); font-size: 1.2rem; }
.plager a:hover { transform: translateY(-2px); background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) { .plager a:hover { transform: none; } }

/* Mobil topp */
.header-cta { white-space: nowrap; }
@media (max-width: 520px) { .brand span { display: none; } }

/* Blogg */
.post-card h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.post-title { max-width: 26ch; }
.byline { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.post-body { margin-bottom: 1rem; }
.post-body .lead { font-size: 1.15rem; }
.post-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.post-body table { margin-bottom: 1.2rem; }
.post-body td:last-child, .post-body th:last-child { text-align: left; white-space: normal; }
ul.sources { font-size: .9rem; color: var(--muted); }
