/* Årnes Kiropraktorsenter
   Layout: lys, luftig side med runde former fra logoen; turkise bånd deler opp seksjonene. */
:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #12303a;
  --muted: #4f6870;
  --line: #d6e4e6;
  --turkis: #2b6e6a;
  --turkis-dark: #1e5250;
  --turkis-soft: #e2efed;
  --sand: #f3ecdf;
  --sand-dark: #8a6a3c;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 22px;
  --wrap: 1140px;
  color-scheme: only 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.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turkis-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sand-dark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.18; text-wrap: balance; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--turkis); margin-bottom: .9rem; }
.kicker::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--turkis); box-shadow: 0 0 0 3px var(--sand); }

.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: 68ch; }
.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; }

/* Topp */
.topbar { background: var(--turkis-dark); color: #e9f6f7; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #fff; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; flex: none; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; display: block; line-height: 1.1; }
.brand small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.2rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--turkis); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem .95rem; border-radius: 999px; background: var(--turkis-soft); font-weight: 700; font-size: .92rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .5rem; display: grid; min-width: 230px; box-shadow: 0 14px 36px rgb(18 48 58 / .12); }
.menu-panel a { padding: .65rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-panel a:hover { background: var(--turkis-soft); }
@media (max-width: 1000px) { .nav { display: none; } .menu { display: block; } }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--turkis); transition: background .15s, color .15s; }
.btn-main { background: var(--turkis); color: #fff; }
.btn-main:hover { background: var(--turkis-dark); border-color: var(--turkis-dark); color: #fff; }
.btn-line { color: var(--turkis-dark); background: transparent; }
.btn-line:hover { background: var(--turkis-soft); color: var(--ink); }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band { background: var(--surface); }
.band-turkis { background: var(--turkis-dark); color: #eaf6f7; }
.band-turkis h2, .band-turkis h3 { color: #fff; }
.band-turkis p { color: #d2ebee; }
.band-sand { background: var(--sand); }
.head { max-width: 62ch; margin-bottom: 2rem; }
.head p { color: var(--muted); }
.band-turkis .head p { color: #d2ebee; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-circle { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-circle img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; border-radius: 50%; border: 10px solid var(--surface); box-shadow: 0 0 0 3px var(--sand), 0 0 0 9px var(--surface), 0 0 0 12px var(--turkis); }
.badge { position: absolute; left: -6%; bottom: 8%; background: var(--surface); border-radius: 16px; padding: .7rem 1rem; box-shadow: 0 10px 30px rgb(18 48 58 / .14); font-size: .9rem; line-height: 1.35; }
.badge b { display: block; font-size: 1rem; }
.badge .stars { color: #d39b2a; letter-spacing: .08em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-circle { max-width: 320px; } .badge { left: 0; } }

.opening { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--sand); border-radius: var(--r); padding: .9rem 1.2rem; margin-top: 1.75rem; max-width: 640px; }
.opening p { margin: 0; flex: 1 1 260px; min-width: 0; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 2.5rem; list-style: none; padding: 0; }
.points li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.points li::before { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--turkis-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231e5250' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.points b { display: block; color: var(--ink); }

/* Kort */
.grid { display: grid; gap: 1.2rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; min-width: 0; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--turkis); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .go { display: inline-block; margin-top: .9rem; font-weight: 700; color: var(--turkis-dark); font-size: .93rem; }
.card-big { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.card-big img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 12%; }
.card-big .in { padding: 1.4rem 1.5rem 1.6rem; }
.tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-dark); background: var(--sand); padding: .22rem .6rem; border-radius: 999px; margin-bottom: .7rem; }

.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.areas a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .8rem 1.15rem; text-decoration: none; color: var(--ink); font-weight: 700; min-width: 0; }
.areas a::after { content: "→"; color: var(--turkis); }
.areas a:hover { border-color: var(--turkis); background: var(--turkis-soft); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.4rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; background: var(--sand); color: var(--ink); }
.band-turkis .steps li::before { background: #fff; color: var(--turkis-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--r); overflow: hidden; }
.photo img { width: 100%; }
.photo-round img { border-radius: 48% 48% var(--r) var(--r); }

/* Anmeldelser */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; margin: 0; display: flex; flex-direction: column; }
.review .stars { color: #d39b2a; letter-spacing: .1em; margin-bottom: .5rem; }
.review blockquote { margin: 0 0 1rem; font-size: 1.02rem; }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.review figcaption b { color: var(--ink); }

/* Kurs */
.course { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: var(--sand); border-radius: calc(var(--r) * 1.3); padding: clamp(1.75rem, 4vw, 3rem); }
.course > * { min-width: 0; }
.course ul { margin: 0; padding-left: 1.1rem; }
.course .price { font-family: var(--display); font-size: 1.5rem; margin: .8rem 0 .2rem; }
@media (max-width: 820px) { .course { grid-template-columns: 1fr; } }

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

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

.note { background: var(--turkis-soft); border-radius: 16px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.note.warn { background: #fbeee6; }
.note 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.2rem, 5vw, 3.6rem) 1.5rem; }
.fig { margin: 0 0 1.8rem; max-width: 820px; }
.fig img { border-radius: var(--r); width: 100%; }
.fig.small { max-width: 480px; }
.byline { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
ul.sources { font-size: .9rem; color: var(--muted); }

.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-box > * { min-width: 0; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } }

.info { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Bunn */
.site-footer { background: var(--ink); color: #c4d6da; padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-family: var(--body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.fgrid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fbottom { border-top: 1px solid rgb(255 255 255 / .14); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }
@media (max-width: 1000px) {
  .site-header .wrap { gap: .5rem; }
  .brand { min-width: 0; }
  .brand small { letter-spacing: .06em; }
  .menu { margin-left: auto; flex: none; }
}

/* Mobil: hold «Bestill time» på én linje og la logoteksten få plass */
.header-book { white-space: nowrap; flex: none; }
@media (max-width: 1000px) { .header-book { margin-left: auto; } .menu { margin-left: 0; } }
@media (max-width: 560px) { .site-header .header-book { display: none; } .menu { margin-left: auto; } }

/* Mobil: fast «Bestill time»-linje nederst på skjermen */
.mobile-book { display: none; }
@media (max-width: 560px) {
  .mobile-book { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(18 48 58 / .10); }
  .mobile-book .btn-main { flex: 1; font-size: 1.05rem; padding-block: .9rem; }
  .mobile-book .btn-line { flex: none; padding-inline: 1.3rem; }
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 400px) { .brand small { letter-spacing: .02em; font-size: .7rem; } .brand img { width: 42px; height: 42px; } }

/* Om meg: bilde øverst */
.about-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.about-photo { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 28px; border: 8px solid var(--surface); box-shadow: 0 0 0 3px var(--turkis-soft), 0 0 0 6px var(--turkis); justify-self: center; height: auto; }
@media (max-width: 760px) { .about-head { grid-template-columns: 1fr; gap: 1.5rem; } .about-photo { max-width: 340px; order: -1; } }

/* Behandlingsområder: bilde over hver gruppe */
.group-head { position: relative; margin: 2.8rem 0 1.2rem; border-radius: var(--r); overflow: hidden; }
.group-head img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; object-position: 50% 35%; display: block; }
.group-head h2 { position: absolute; left: 0; bottom: 0; margin: 0; padding: 1.4rem 1.6rem 1.1rem; width: 100%; color: #fff; background: linear-gradient(to top, rgb(20 50 50 / .75), rgb(20 50 50 / 0)); }
@media (max-width: 600px) { .group-head img { aspect-ratio: 16 / 9; } .group-head h2 { padding: 1rem 1.1rem .8rem; } }
