/*
  ammeblik.dk — stylesheet
  Design tokens measured from the live Colibri/WordPress site.
*/

/* Self-hosted fonts (latin subset only — covers Danish æ/ø/å via Latin-1
   Supplement). Downloaded once from Google Fonts; each file is a variable
   font, so one file covers the whole weight range declared below. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2');
}


@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/open-sans.woff2') format('woff2');
}


:root {
  --purple: #c0a5e8;
  --purple-dark: #6f4fb0; /* readable lavender for text and small accents (6:1 on white) */
  --purple-soft: rgba(192, 165, 232, 0.12);
  --purple-tint: rgba(192, 165, 232, 0.24);
  --brown: #604028;
  --text: #5b5450;
  --text-soft: #7a7370;
  --page: #f7f3ec;   /* sand: the page itself */
  --cream: #ede3d3;  /* deeper sand: surfaces that sit on the page */
  --paper: #fcfaf6;
  --white: #ffffff;
  --border: #e7e0d5;
  --radius: 12px;
  --radius-lg: 22px;
  /* thin check mark, used as a mask so it takes the current colour */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-label: var(--font-body);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--brown);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 600; color: var(--brown); }

p { margin: 0 0 1em; }
p, li { max-width: 70ch; }
/* centred contexts keep the measure but centre the block */

.eyebrow {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 0.4em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* One continuous sand page: sections are separated by space and headings.
   A box only marks a thing you act on: a choice, a process, an invitation,
   a form or an article. */
section { padding: 72px 0; }
/* A section that is only a box (or the two service cards) already has a visible edge,
   so it needs far less air around it: two boxes in a row sit 64px apart, not 144px */
main > section:has(> .container > .box:only-child),
main > section:has(> .container > .paths:only-child),
main > section:has(> .container > .paths:first-child + .paths-note:last-child) { padding: 32px 0; }

.box {
  background: var(--cream);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
}
.box > h2:first-child { margin-top: 0; }
.box-dark { background: var(--brown); color: #efe5d8; }
.box-dark h2 { color: #fff; }
.box-dark p { color: #efe5d8; }
.box-dark .btn-primary { background: var(--page); color: var(--brown); }
.box-dark .btn-primary:hover { background: var(--white); }
.box-dark .btn-outline { background: transparent; color: var(--page); border-color: rgba(247, 243, 236, 0.45); }
.box-dark .btn-outline:hover { border-color: var(--page); }
.box-dark .link-more { color: var(--page); }
.box-dark .btn-row { margin-top: 8px; }
.cta-box { margin: 56px 0; }

/* Accessibility helpers (not part of the visual design, kept regardless) */
.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;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--purple-dark);
  color: #fff; padding: .75em 1em; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons: brown carries the action; lavender stays decorative */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple-dark);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brown);
  color: var(--white);
}
.btn-primary:hover { background: #4a3020; }

.btn-outline {
  background: var(--white);
  color: var(--brown);
  border-color: rgba(96, 64, 40, 0.3);
}
.btn-outline:hover { border-color: var(--brown); }

.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Secondary text link: "Læs mere om …" */
.link-more {
  color: var(--brown);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-more:hover { text-decoration-color: var(--brown); }

/* Check-mark list */
.checklist { list-style: none; margin: 24px 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  background: var(--purple-dark);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .25s;
}
/* At the top the header blends into the page; once scrolled it lifts
   off the content passing underneath (class set in main.js) */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(96, 64, 40, 0.12), 0 10px 24px -18px rgba(96, 64, 40, 0.45);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo: the line-drawing mark + the name, both in brand brown */
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { width: 48px; height: 48px; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brown);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav ul a {
  font-family: var(--font-label);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brown);
  transition: color .2s;
}
.main-nav ul a:hover,
.main-nav ul a[aria-current="page"] { color: var(--purple-dark); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; width: 26px; height: 26px; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle, .header-call { color: var(--brown); }

/* Mobile-only call button and menu CTAs (shown in the 720px query) */
.header-call, .nav-cta, .mobile-only { display: none; }
.header-call {
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: 999px;
}
.header-call svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero.hero-simple .container { display: block; }
.hero-photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.hero-lede { font-size: 1.15rem; margin-bottom: 1.6em; }
.hero-lede-more { display: block; margin-top: 0.5em; }

/* One quiet line of key facts under the hero buttons */

/* Credentials: three facts, Cormorant word stacked over an Open Sans line (partials/facts.njk).
   Stacked rather than side by side, so the two typefaces share a left edge, never a baseline. */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { margin: 0; max-width: none; padding: 0 28px; border-left: 1px solid rgba(96, 64, 40, 0.15); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts-big {
  display: block;
  font-family: var(--font-heading); font-weight: 500; font-variant-numeric: lining-nums;
  font-size: 2.2rem; line-height: 1; color: var(--brown);
  margin-bottom: 6px;
}
.facts-small { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--text); }
.facts-band { background: var(--cream); padding: 26px 0; }
.facts-plain { margin-top: 28px; }

/* Homepage: the two services as the page's one real choice */
.paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.path {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  background: var(--cream);
  border-radius: 20px;
}
.path-when { font-weight: 600; color: var(--purple-dark); margin-bottom: 0.2em; }
.path h3 { font-family: var(--font-heading); font-size: 2.1rem; margin-bottom: 0.4em; }
.path h3 a:hover { color: var(--purple-dark); }
.path-text { flex-grow: 1; }
.path-price { color: var(--text-soft); margin-bottom: 1.4em; line-height: 1.5; }
.path-price strong { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; color: var(--brown); margin-right: 0.2em; }
.path .btn-row { flex-direction: column; align-items: flex-start; gap: 16px; }
.paths-note { margin-top: 24px; color: var(--text-soft); }
.paths-note a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

/* Homepage: what I help with, as an index rather than cards */
.symptoms {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  margin: 28px 0 24px;
  padding: 0;
}
.symptoms li { max-width: none; }
.symptoms a { display: block; padding: 12px 0 14px; }
.symptoms strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brown);
  transition: color .2s;
}
.symptoms a:hover strong { color: var(--purple-dark); }
.symptoms span { color: var(--text); }
.symptoms-more { color: var(--text-soft); }

/* Large serif opening line of a text section */
.lead {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--brown);
  max-width: 34em;
}

/* Feature / topic cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--cream);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--purple-dark);
}
.card .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--purple-dark);
  margin-bottom: 0.6em;
}
.card p { flex-grow: 1; }
.card .btn-row { align-items: center; gap: 18px; }
.topic-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.55rem;
}

/* Rounded pill tags (towns, topics) */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
}
.chips li > * {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9rem;
}
.chips a {
  background: var(--purple-tint);
  border-color: transparent;
  color: var(--brown);
  font-weight: 600;
  transition: border-color .2s;
}
.chips a:hover { border-color: var(--purple-dark); }

/* Numbered steps */
/* The visit, Før / under / efter (partials/visit-phases.njk): phases on a thin line, no numbers */
.phases { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.phases > li { margin: 0; max-width: none; position: relative; padding: 30px 32px 0 0; border-top: 1px solid rgba(96, 64, 40, 0.25); }
.phases > li::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid var(--purple-dark);
}
.phase-when { display: block; font-size: 0.9rem; font-weight: 600; color: var(--purple-dark); margin-bottom: 6px; }
.phases h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.55rem; margin: 0 0 10px; }
.phases ul { list-style: none; margin: 0; padding: 0; }
.phases ul li { position: relative; padding-left: 18px; margin: 0 0 8px; font-size: 0.97rem; line-height: 1.5; }
.phases ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background: var(--brown); }

/* The visit on a service page (Ammehjælp, Ammeforberedelse): intro + vertical line of moments */
.visit { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: stretch; }
/* The timeline runs the full height of the box and spreads its points evenly,
   so it ends level with the photo in the left column */
.visit .moments { display: flex; flex-direction: column; justify-content: space-between; }
.visit-intro p { max-width: 36ch; }
.visit-duration {
  font-family: var(--font-heading); font-weight: 500; font-variant-numeric: lining-nums;
  font-size: 2.6rem; line-height: 1; color: var(--brown); margin: 18px 0 4px;
}
.visit-duration-label { font-size: 0.9rem; margin: 0; }
.moments { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(96, 64, 40, 0.25); }
.moments li { position: relative; margin: 0; max-width: none; padding: 0 0 26px 30px; }
.moments li:last-child { padding-bottom: 0; }
.moments li::before {
  content: ""; position: absolute; left: -6px; top: 0.55em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid var(--purple-dark);
}
.moments li.moments-after::before { background: var(--purple-dark); }
.moments h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.45rem; margin: 0 0 4px; }
.moments p { margin: 0; font-size: 0.97rem; max-width: 52ch; }

/* FAQ accordion (<details>, no JS) */
.faq { margin: 32px 0 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 48px 20px 0;
  font-family: var(--font-label);
  font-weight: 700;
  color: var(--brown);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--purple-dark);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 0 12px; max-width: 72ch; }
.faq .faq-body ul { padding-left: 1.2em; }
.faq .faq-body a:not(.btn) { color: var(--purple-dark); text-decoration: underline; }

/* About / intro split */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media { order: 2; }
.split-media img.portrait {
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}
.split-media img.landscape {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

/* Pricing / service layout */
.service-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-info { padding: 56px 48px; }
.service-price { padding: 56px 48px; background: rgba(96, 64, 40, 0.06); }
.price-intro { margin: -0.2em 0 1.2em; font-size: 0.95rem; color: var(--text-soft); }
.price-intro-tag { display: inline-block; margin-left: 10px; vertical-align: middle; padding: 3px 12px; font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; border-radius: 999px; background: var(--purple-dark); color: var(--white); font-weight: 600; }
.price-fast { display: inline-block; margin: 0 0 1.2em; padding: 6px 14px; border-radius: var(--radius); background: var(--paper); color: var(--brown); font-weight: 600; }
.price-included-label { margin: 1.2em 0 -12px; font-weight: 600; color: var(--brown); }
.price-bundle.price-phone { margin: 24px 0 0; }
.path-fast { margin: 0 0 1em; font-weight: 600; color: var(--brown); }
.price-extras { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(96, 64, 40, 0.18); font-size: 0.95rem; line-height: 1.55; }
.price-extras li + li { margin-top: 8px; }
.price-extras a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.doubts p + p { margin-top: 0.8em; }
.price-bundle { margin: 0 0 22px; padding-top: 16px; border-top: 1px solid rgba(96, 64, 40, 0.18); font-size: 0.95rem; line-height: 1.55; }
.price-bundle a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.price-amount { font-family: var(--font-heading); font-size: 2.6rem; color: var(--brown); margin-bottom: 0.4em; }

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 32px;
}
.includes-grid h3 { margin-bottom: 0.3em; }
.includes-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Long text pages: tighter rhythm between sections */
.dense section { padding: 64px 0; }

/* Long text section: heading (and a quote or contents) in a narrow side
   column that stays in view, body text at a readable width beside it */
.split-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.split-text-aside { position: sticky; top: 112px; }
.split-text-aside .pullquote { margin-top: 24px; font-size: 1.5rem; line-height: 1.4; }
.split-text-body > h3 { margin-top: 1.6em; }
.split-text-body > h3:first-child { margin-top: 0.2em; }
/* Self-contained topics side by side (read one at a time, so columns are fine) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 64px;
  margin-top: 32px;
}
.topic-grid h3 { margin-bottom: 0.35em; }
.topic-grid p { margin: 0; }

.faq-note {
  margin-top: 56px;
  padding: 32px 36px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.faq-note ul { padding-left: 1.2em; columns: 2; column-gap: 48px; }
.faq-note li { margin-bottom: 8px; break-inside: avoid; }

/* Two-column info (om-mig, town pages etc.) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.two-col > div > * + h3 { margin-top: 1.8em; }
.two-col ul { padding-left: 1.2em; }
.two-col li { margin-bottom: 6px; }

/* Approach numbered list (om-mig) */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}

blockquote.pullquote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--brown);
  margin: 0;
}
.quote-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 40px;
}

/* Timeline entries (om-mig faglig baggrund) */
.year {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  color: var(--purple-dark);
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.review-ask { margin-top: 32px; }
.review-ask .link-more { display: inline-block; margin-top: 6px; }
.contact-form-wrap h2 { margin-top: 0; }
.contact-form-wrap {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Contact details with round icons */
.contact-list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--brown);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--brown); line-height: 1.4; }
.contact-list a:hover strong { color: var(--purple-dark); }
.contact-list span { font-size: 0.9rem; color: var(--text-soft); }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-tint);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.char-count { text-align: right; font-size: 0.75rem; color: var(--text-soft); }
.form-note { font-size: 0.85rem; color: var(--text-soft); margin-top: 12px; }
.form-status { font-weight: 700; margin-top: 12px; min-height: 1.2em; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #b3261e; }
.hp-field { position: absolute; left: -9999px; }

/* Simple content page (privacy / terms) */
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* Footer: the one full-width band, marking the end of the page */
.site-footer {
  padding: 64px 0 28px;
  background: var(--cream);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1.9fr;  /* towns get room for two columns */
  gap: 40px;
}
.footer-brand p { margin: 14px 0 0; max-width: 30ch; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer nav a, .footer-legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.site-footer nav a:hover, .footer-legal a:hover { color: var(--brown); text-decoration-color: currentColor; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(96, 64, 40, 0.15);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container,
  .split, .split.reverse,
  .service-layout,
  .contact-layout,
  .two-col { grid-template-columns: minmax(0, 1fr); }  /* minmax: a long word can't push the column wider than the screen */
  .split.reverse .split-media { order: 0; }
  .card-grid, .approach-grid, .includes-grid, .includes-grid.cols-3, .paths, .split-text, .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .split-text { gap: 24px; }
  .phases { grid-template-columns: 1fr; border-left: 1px solid rgba(96, 64, 40, 0.25); margin-left: 5px; }
  .phases > li { border-top: 0; padding: 0 0 26px 28px; }
  .phases > li::before { top: 0.35em; left: -6px; }
  .visit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-text-aside { position: static; }
  .dense section { padding: 48px 0; }
  .faq-note ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-towns { grid-column: 1 / -1; }
  .symptoms { grid-template-columns: 1fr; }
  .card-grid.topics { grid-template-columns: repeat(2, 1fr); }
  section { padding: 48px 0; }
  main > section:has(> .container > .box:only-child),
  main > section:has(> .container > .paths:only-child),
  main > section:has(> .container > .paths:first-child + .paths-note:last-child) { padding: 20px 0; }
  .box { border-radius: 20px; }
  .service-info, .service-price { padding: 40px 28px; }
  .btn-row.mobile-only { display: flex; margin-top: 24px; }
  .split-media img { max-width: min(420px, 100%); margin: 0 auto; }
}

@media (max-width: 720px) {
  /* backdrop-filter would make the fixed mobile menu position itself inside the header */
  .site-header { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .logo img { width: 40px; height: 40px; }
  .logo-text { font-size: 1.6rem; }
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--page); padding: 24px; display: none; overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav ul a { display: block; padding: 16px 0; }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { display: none; }
  .header-call { display: inline-flex; }
  /* Tap targets: at least 44px tall for links that aren't part of running text */
  .logo, .link-more, .chips a, .chips span { display: inline-flex; align-items: center; min-height: 44px; }
  .symptoms li a { padding: 10px 0; min-height: 44px; }
  .path h3 a, .cred-list dd a, .contact-list a { display: inline-block; padding: 6px 0; min-height: 44px; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer li { margin-bottom: 0; min-height: 44px; display: flex; align-items: center; }
  /* Help topics: compact two-column list of headings on phones (descriptions on larger screens) */
  .symptoms { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .symptoms a { padding: 8px 0; }
  .symptoms strong { font-size: 1.3rem; line-height: 1.2; }
  .symptoms span { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 12px 0; border-left: 0; border-top: 1px solid rgba(96, 64, 40, 0.15); }
  .facts li:first-child { padding-top: 0; border-top: 0; }
  .facts-big { font-size: 1.9rem; }
  .nav-cta { display: flex; margin-top: 24px; }
  .nav-cta .btn { flex: 1 1 100%; justify-content: center; }
  /* bigger tap targets in the footer */
  .site-footer li a { display: inline-block; padding: 6px 0; }
  .footer-legal a { display: inline-block; padding: 8px 0; }
  .card-grid.topics { grid-template-columns: 1fr; }
  .path { padding: 28px 22px 24px; }
  /* Homepage service cards on phones: name, price and buttons only (the description is on the service page) */
  .paths-compact { gap: 16px; }
  .paths-compact .path { padding: 24px 22px 22px; }
  .paths-compact .path h3 { font-size: 1.75rem; margin-bottom: 0.2em; }
  .paths-compact .path-text { display: none; }
  .paths-compact .path-price { margin-bottom: 1em; }
  .paths-compact .path .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .site-footer { padding-top: 48px; }
  .contact-form-wrap { padding: 28px 20px; }
  .faq summary { padding-left: 18px; }
  .faq .faq-body { padding: 0 18px 4px; }
}

/* keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 96px; }

/* Blog */
.post-container { max-width: 760px; }
.post-meta { font-size: 0.9rem; color: var(--text-soft); margin: 0; }
.post-meta a { color: var(--brown); font-weight: 600; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose a:not(.btn):not(.link-more) { color: var(--purple-dark); text-decoration: underline; }
.topic-card h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.55rem;
}
.post-cta { margin-top: 56px; }
.post-cta h2 { margin-top: 0; }
.draft-flag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fbe9d0;
  color: #7a4a10;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
}
.pager { display: flex; justify-content: space-between; margin-top: 40px; }

/* Guides (/viden/) */
.breadcrumb { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 12px; }
.breadcrumb a { color: var(--purple-dark); }
.answer {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  border-left: 3px solid var(--purple);
  padding-left: 18px;
  margin: 8px 0 20px;
}
.red-flags {
  background: var(--cream);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 40px;
}
.red-flags h2 { font-size: 1.4rem; margin: 0 0 12px; }
.red-flags p { margin: 12px 0 6px; }
.red-flags ul { margin: 0; }
.red-flags-112 { font-size: 0.9rem; color: var(--text-soft); }
.sources { font-size: 0.92rem; }
.guide-cluster { margin: 40px 0 20px; }
.guide-cluster:first-child { margin-top: 0; }
.hero-simple + section .red-flags:first-child { margin-top: -24px; }
.prose table {
  display: block;            /* lets a wide table scroll sideways on phones instead of the page */
  overflow-x: auto;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.95rem;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  min-width: 9em;
}
.prose th { color: var(--brown); font-weight: 600; border-bottom-width: 2px; }

/* Sign-off line at the bottom of the dark CTA boxes (partials/cta-note.njk) */
.box-dark .cta-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 243, 236, 0.18);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(239, 229, 216, 0.78);
}
.box-dark .cta-note strong { color: #fff; font-weight: 600; }

/* Om mig: verifiable credentials (#autorisation) */
.credentials { margin-top: 64px; }
.credentials > p { color: var(--text-soft); margin: 0 0 20px; }
.cred-list { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.cred-list > div { border-top: 1px solid rgba(96, 64, 40, 0.2); padding-top: 16px; }
.cred-list dt { font-family: var(--font-heading); font-weight: 500; font-size: 1.4rem; color: var(--brown); margin-bottom: 4px; }
.cred-list dd { margin: 0 0 8px; font-size: 0.95rem; }
.cred-list a { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-auth { font-size: 0.9rem; margin-top: 8px; }
.footer-auth a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .cred-list { grid-template-columns: 1fr; gap: 20px; }
}
.credentials h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.9rem; margin: 0 0 6px; }

/* Review quote (partials/reviews.njk), centred, quiet */
.review-slot { padding-top: 24px; }
.review { margin: 0 auto; max-width: 640px; text-align: center; }
.review blockquote { margin: 0; }
.review blockquote p {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.35; color: var(--brown);
  margin: 0 auto;
}
.review figcaption { margin-top: 14px; font-weight: 600; color: var(--text); }
.review-more { margin: 10px auto 0; font-size: 0.92rem; }
.review a { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px; }
/* Empty state: a pair of quotation marks with nothing between them */
/* Empty state: quotation marks around a blinking cursor, as if the first review is being written */
.review-marks {
  display: inline-flex; align-items: center; gap: 0.06em; height: 0.8em;
  font-family: var(--font-heading); font-weight: 500; line-height: 1;
  font-size: clamp(3rem, 7vw, 4.4rem); margin-bottom: 22px;
}
.review-mark { color: var(--purple); display: inline-block; transform: translateY(0.2em); }
.review-caret {
  display: inline-block; width: 2px; height: 0.42em; margin: 0 0.1em;
  background: var(--brown);
  animation: review-caret 1.1s steps(1) infinite;
}
@keyframes review-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .review-caret { animation: none; } }
.review-empty-lead {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--brown); margin: 0 auto 12px;
}
.review-empty p { margin-left: auto; margin-right: auto; }

/* Photos added so every main page has a real content image (search thumbnails, AI answers) */
.hero-photo-short img { aspect-ratio: 4 / 5; object-position: 50% 35%; }
.hero-photo-city img, .aside-photo-city { object-position: 65% 80%; }  /* subject sits low and right in this photo */
.aside-photo { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); margin-top: 28px; }
.visit-photo { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); margin-top: 28px; }
@media (max-width: 900px) {
  .hero-photo-short img { max-height: 460px; }
  .aside-photo { max-height: 420px; }
}

/* Footer town list in two columns once there are more than a handful of towns */
.footer-towns ul { columns: 2; column-gap: 24px; }
.footer-towns li { break-inside: avoid; }
@media (min-width: 901px) { .footer-towns a { white-space: nowrap; } }
.footer-heading a { color: inherit; }
.footer-heading a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-about { margin-top: 10px; }
.footer-about a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* "Hvornår skal I kontakte lægen?" (partials/safety-note.njk) */
.safety-note {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--purple-dark);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  max-width: 760px;
}
.safety-note h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.4rem; margin: 0 0 6px; }
.safety-note p { margin: 0; font-size: 0.97rem; }

/* Plain links inside body text (internal links between pages) */
.split-text-body p a:not([class]), .service-info p a:not([class]), .town-links a, .split p a:not([class]) {
  color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px;
}
.town-links { margin-top: 1.6em; }

/* Homepage hero: two paths instead of one generic booking button */
.hero-paths-label { font-weight: 600; color: var(--brown); margin: 0 0 10px; }
.hero-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 34rem; }
.hero-path {
  display: block; padding: 16px 18px; border-radius: 16px;
  background: var(--brown); color: var(--page);
  transition: background .2s;
}
.hero-path:hover { background: #4a3020; }
.hero-path strong { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 1.45rem; line-height: 1.15; margin-bottom: 4px; }
.hero-path span { display: block; font-size: 0.88rem; line-height: 1.4; opacity: .85; }
.hero-path + .hero-path { background: var(--cream); color: var(--brown); }
.hero-path + .hero-path:hover { background: #e3d6c1; }
.hero-path + .hero-path span { color: var(--text); opacity: 1; }
.hero-call { margin: 16px 0 0; font-size: 0.95rem; color: var(--text-soft); }
.hero-call a { color: var(--brown); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Line under booking buttons (partials/cta-help.njk) */
.cta-help { margin: 14px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-soft); max-width: 52ch; }
.box-dark .cta-help { color: rgba(239, 229, 216, 0.85); }

/* "Er det noget for os?" on Ammehjælp */
.doubts { margin: 56px 0 8px; }
.doubts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px; }
.doubts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.doubts h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.45rem; margin: 0 0 6px; }
.doubts p { margin: 0; }

/* Mobile booking bar */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .hero-paths { grid-template-columns: 1fr; }
  .doubts-grid, .doubts-grid.cols-2 { grid-template-columns: 1fr; gap: 20px; }
  .sticky-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--page); box-shadow: 0 -4px 18px rgba(96, 64, 40, 0.12);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { flex: 1; justify-content: center; padding-top: 12px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
.doubts:first-child { margin-top: 0; }
.doubts + .box-dark { margin-top: 48px; }

/* "Kort fortalt" (partials/quick-facts.njk) */
.quick-facts { margin: 0 0 80px; }
.quick-facts > p { margin: 12px 0 28px; max-width: 72ch; }
.quick-facts dl { margin: 0; border-top: 1px solid var(--border); }
.quick-facts dl > div { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.quick-facts dt { font-family: var(--font-heading); font-weight: 500; font-size: 1.35rem; color: var(--brown); line-height: 1.2; }
.quick-facts dd { margin: 0; }
.quick-facts a { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px; }
.om-mig-facts { margin-top: 64px; }
.om-mig-facts .quick-facts { margin-bottom: 0; }
.om-mig-facts h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.9rem; margin: 0; }
.om-mig-facts .quick-facts > p { margin-top: 6px; }
.updated { margin: 24px 0 0; font-size: 0.85rem; color: var(--text-soft); }
@media (max-width: 720px) { .quick-facts dl > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; } }

/* Review notes in drafts, shown in `npm start` only (eleventy.config.js "review-notes") */
.review-note { display: block; margin: 10px 0; padding: 8px 12px; border-left: 4px solid #c58a00; background: #fff4d6; color: #4a3500; font-size: 0.9rem; line-height: 1.45; }
.review-note strong { margin-right: 4px; }
.review-amalie { border-left-color: var(--purple-dark); background: #efe8fb; color: #3b2a63; }
