/*
Theme Name: Dr. Hao – Kinesisk akupunktur
Theme URI: https://hao.dk
Author: Dr. Hao klinikken
Author URI: https://hao.dk
Description: Let, dansk tema til kinesisk akupunktur Dr. Hao på Østerbro. Klinikoplysninger (telefon, adresse, e-mail) redigeres uden kode under Tilpas → Klinikoplysninger. Ingen page builder påkrævet. Indeholder CPT "Udtalelser" med taksonomi "Lidelser".
Version: 1.8.12
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: drhao
Tags: custom-colors, custom-logo, responsive-layout, translation-ready, one-column, accessibility-ready
*/

/* ===========================================================
   Dr. Hao – Kinesisk akupunktur & TCM, Østerbro
   =========================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palet målt direkte på Kevins Lovable-video (frames i review/vid4) */
  --bg:            #F6FCFC;   /* sidens grundtone – kølig råhvid */
  --bg-alt:        #EAF6F6;   /* skiftende sektioner: USP-bjælke + Mød Dr. Hao */
  --band:          #DEF6F6;   /* kontaktbåndet "Din vej til klinikken" */
  --surface:       #FFFFFF;
  --ink:           #0A2E3C;
  --ink-soft:      #4F575B;   /* brødtekst (målt #4C5458) */
  --ink-faint:     #7C888C;
  --line:          #DCE6E7;
  --line-soft:     #E8F0F0;

  --navy:          #075174;   /* primærblå: topbar, knapper, links, tal */
  --navy-ink:      #0A2E3C;   /* dyb blæk til overskrifter, logo og labels */
  --navy-dark:     #05415C;   /* hover */
  --navy-soft:     #E7EFF4;
  --navy-accent:   #075174;

  --gold:          #B98A2E;
  --gold-soft:     #FBF2DE;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 1px 2px rgba(7, 81, 116, .06);
  --shadow:        0 6px 20px rgba(7, 81, 116, .08);
  --shadow-lg:     0 18px 50px rgba(7, 81, 116, .12);

  --font-serif:    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw:          1460px;

  /* Fælles lodret rytme: ens afstand indeni og mellem alle sektioner */
  --section-y:     clamp(48px, 6vw, 78px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--navy-ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
strong { font-weight: 600; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

/* ---------- Layout helpers ---------- */
.wrap   { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section{ padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 62ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
  margin-bottom: .8rem;
}
.section-head { max-width: 68ch; margin-bottom: 44px; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.86); font-size: .78rem; letter-spacing: .01em; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px 22px; min-height: 40px; flex-wrap: wrap;
}
.topbar-group { display: inline-flex; align-items: center; gap: 22px; }
.topbar-sep { opacity: .55; }
.topbar-item { color: rgba(255,255,255,.86); display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 13px; height: 13px; flex: none; opacity: .85; }
.topbar-item a, .topbar-item a:visited { color: rgba(255,255,255,.86); }
.topbar-item:hover { text-decoration: none; }
.topbar-item:hover a, .topbar-item:hover { color: #fff; }
.topbar-lang { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FDFCF9;
  border-bottom: 1px solid rgba(7, 81, 116, .09);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 22px; min-height: 80px;
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; justify-self: start; }
.brand-text { white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; flex: none; color: var(--navy); }
.brand-logo svg, .brand-logo img { width: 100%; height: 100%; display: block; }
.brand-logo .custom-logo-link { display: block; }
.brand-text { display: block; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.62rem; font-weight: 700;
  color: var(--navy-ink); line-height: 1.1; display: block; letter-spacing: -.01em;
}
.brand-sub {
  font-size: .67rem; letter-spacing: .13em; text-transform: uppercase;
  color: #5E6E76; display: block; margin-top: 4px; white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 16px; justify-self: end; }

/* ---------- Søgefelt i toppen ---------- */
.top-search { display: flex; align-items: stretch; flex: none; }
.top-search-input {
  width: 150px; max-width: 34vw;
  padding: 7px 12px;
  font: inherit; font-size: .82rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  transition: width .2s ease, border-color .2s ease;
}
.top-search-input::placeholder { color: #8A9499; }
.top-search-input:focus {
  outline: none; border-color: var(--navy); width: 210px;
}
.top-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 11px;
  color: #fff; background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}
.top-search-btn svg { width: 15px; height: 15px; }
.top-search-btn:hover { background: var(--navy-dark); }

/* ---------- Hovedmenu (én linje, blå markeringsstreg) ---------- */
.nav { display: flex; align-items: stretch; justify-self: center; height: 80px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; height: 100%; }
.nav li { margin: 0; position: relative; display: flex; align-items: stretch; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center;
  color: #3F4E56; font-size: .84rem; font-weight: 500;
  letter-spacing: .005em; line-height: 1.2;
  padding: 0 11px;
  white-space: nowrap;
}
.nav > ul > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 22px;
  height: 2px; background: transparent;
}
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav > ul > li > a:hover::after { background: rgba(7,81,116,.35); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav .current-menu-parent > a,
.nav .current_page_ancestor > a,
.nav .current_page_parent > a { color: var(--navy); }
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-ancestor > a::after,
.nav .current-menu-parent > a::after,
.nav .current_page_ancestor > a::after,
.nav .current_page_parent > a::after { background: var(--navy); }

/* Undermenu – vises først ved hover/fokus, så toplinjen altid er én linje */
.nav .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  display: none; flex-direction: column; align-items: stretch; gap: 0;
  height: auto;
  min-width: 216px; padding: 8px;
  background: #fff; border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  box-shadow: 0 18px 40px rgba(7, 81, 116, .12);
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu li { width: 100%; }
.nav .sub-menu a {
  display: block; padding: 9px 12px;
  border-bottom: 0; font-size: .84rem; color: #4A585F;
}
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover { background: var(--navy-soft); color: var(--navy); }
.nav .sub-menu .current-menu-item > a { background: var(--navy-soft); }

.nav-toggle {
  display: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 14px; cursor: pointer;
  font: inherit; font-size: .92rem; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 4px;
  font-size: .97rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--navy); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--accent { background: var(--gold); color: #fff; }
.btn--accent:hover { background: #9C7221; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Forside-hero (Kevins: foto i fuld bredde, lys skrå over venstre side) ---------- */
.hero-home {
  position: relative; overflow: hidden;
  background: var(--bg);
  min-height: clamp(440px, 60vh, 620px);
  display: flex; align-items: center;
}

/* NB: klassen hedder .hero-bg – .hero-photo bruges af undersidernes banner */
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 52% 60%;
  display: block;
}

/* Lys skrå, så teksten til venstre står rent – målt på Kevins video */
.hero-home::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(246,252,252,.97) 0%,
    rgba(246,252,252,.93) 20%,
    rgba(246,252,252,.74) 38%,
    rgba(246,252,252,.34) 56%,
    rgba(246,252,252,.08) 72%,
    rgba(246,252,252,0) 84%);
}

.hero-copy { position: relative; z-index: 2; padding-block: clamp(36px, 5vw, 56px); }
.hero-copy-inner { max-width: 31rem; }

/* To PARALLELLE lodrette kolonner i højre kant – som i Kevins prototype:
   中医针灸 (stor) til venstre, "Tradition & balance" (lille) til højre */
.hero-vert {
  position: absolute; z-index: 2;
  right: clamp(18px, 2vw, 34px); bottom: clamp(28px, 4vw, 56px);
  margin: 0;
  display: flex; align-items: flex-start; gap: 12px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero-vert-cn {
  writing-mode: vertical-rl;
  font-size: clamp(.95rem, 1.05vw, 1.15rem); letter-spacing: .78em;
  font-weight: 500;
}
.hero-vert-da {
  writing-mode: vertical-rl;
  font-size: .5rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: .9;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .68rem; font-weight: 600; letter-spacing: .19em;
  text-transform: uppercase; color: var(--navy); margin-bottom: clamp(16px, 2vw, 26px);
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--navy); flex: none; }

.hero-home h1 {
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 .45em; color: var(--navy-ink);
  max-width: 13ch;
}
.hero-home h1 em { font-style: italic; }

.hero-lede {
  font-size: 1rem; line-height: 1.8; color: var(--ink-soft);
  max-width: 34ch; margin: 0 0 clamp(26px, 3vw, 36px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  display: flex; align-items: center; gap: 8px;
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  font-size: .78rem; color: var(--ink-soft);
}
.hero-note svg { width: 13px; height: 13px; flex: none; }

/* Knapper i Kevin-stil: skarpe hjørner, lille tekst, pil */
.btn--navy, .btn--outline {
  border-radius: 2px; padding: 13px 21px;
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border: 1px solid rgba(7,81,116,.24); }
.btn--outline:hover { background: #fff; border-color: var(--navy); }
.btn .arr, .btn > svg { width: 14px; height: 14px; flex: none; transition: transform .15s ease; }
.btn:hover .arr, .btn:hover > svg { transform: translateX(2px); }
.meet-link > svg { width: 13px; height: 13px; flex: none; }
.arr svg { width: 13px; height: 13px; display: block; }

/* ---------- Troværdighedsbjælke (under hero) ---------- */
.trustbar { background: var(--bg-alt); border-top: 1px solid rgba(7,81,116,.05); border-bottom: 1px solid rgba(7,81,116,.06); }
.trustbar-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
.trust {
  display: flex; align-items: center; gap: 15px;
  padding: 27px 28px; position: relative;
}
.trust + .trust::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 38px; background: rgba(7,81,116,.13);
}
.trust svg { width: 23px; height: 23px; flex: none; color: var(--navy); }
.trust-title { font-size: .86rem; font-weight: 600; color: var(--navy-ink); margin: 0; line-height: 1.35; }
.trust-text { font-size: .78rem; color: #6C7B81; margin: 3px 0 0; line-height: 1.45; }

/* ---------- Sektionshoved med tekst til højre ---------- */
.head-split {
  display: grid; grid-template-columns: 1.35fr .78fr;
  gap: clamp(24px, 4vw, 56px); align-items: end;
  margin-bottom: clamp(34px, 4vw, 50px);
}
.head-split h2 {
  font-size: clamp(1.85rem, 3.05vw, 3.15rem);
  line-height: 1.13; margin: 0;
}
.head-split p { font-size: .9rem; line-height: 1.8; color: #5D6B72; margin: 0; max-width: 36ch; }
.head-split-link { text-align: right; }

/* Spørgsmål & svar på forsiden: tekst til venstre, flade rækker til højre */
.faq-grid {
  display: grid; grid-template-columns: .78fr 1.22fr;
  gap: clamp(28px, 5vw, 76px); align-items: start;
}
.faq-h2 { font-size: clamp(1.75rem, 2.85vw, 2.95rem); line-height: 1.14; max-width: 13ch; margin: 0 0 .55em; }
.faq-intro { font-size: .87rem; line-height: 1.75; color: #5D6B72; max-width: 30ch; margin: 0 0 18px; }

/* ---------- Behandlingsområder som 4 kolonner med hårfin streg ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 38px); }
.area { border-top: 1px solid var(--line); padding-top: 26px; }
.area svg { width: 26px; height: 26px; color: var(--navy); margin-bottom: 20px; display: block; }
.area h3 { font-size: 1.02rem; margin: 0 0 .5em; letter-spacing: -.005em; }
.area p { font-size: .85rem; line-height: 1.75; color: #5D6B72; margin: 0 0 18px; }
.area-link { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.area-link svg { width: 13px; height: 13px; margin: 0; }
.area-link:hover { text-decoration: none; }
.area-link:hover .arr { transform: translateX(2px); }

/* ---------- Mød Dr. Hao ---------- */
.meet { background: var(--bg-alt); }
.meet-grid {
  display: grid; grid-template-columns: .78fr 1fr;
  gap: clamp(34px, 6vw, 84px); align-items: center;
}
.meet-media { position: relative; padding: 0 0 0 0; }
.meet-media img { width: 100%; height: auto; display: block; }
.meet-media::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
  border: 1px solid rgba(7,81,116,.24);
}
.meet-media img { position: relative; z-index: 1; }
.meet-card {
  position: absolute; left: 22px; bottom: 26px; z-index: 2;
  background: #fff; padding: 13px 20px; box-shadow: 0 8px 24px rgba(7,81,116,.10);
}
.meet-card .n { display: block; font-family: var(--font-serif); font-size: 1.02rem; font-weight: 700; color: var(--navy-ink); }
.meet-card .r { display: block; font-size: .68rem; color: #6C7B81; margin-top: 2px; }
.meet-body h2 { font-size: clamp(1.8rem, 3vw, 3.05rem); line-height: 1.13; margin: 0 0 .7em; }
.meet-body p { font-size: .89rem; line-height: 1.85; color: #53626A; margin: 0 0 1em; }
.meet-link { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--navy); margin-top: 8px; }
.meet-link:hover { text-decoration: none; }
.meet-link:hover .arr { transform: translateX(2px); }

/* ---------- Dit første besøg: 01 02 03 ---------- */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 46px); }
.visit-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.visit-num { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1; color: #93A7AF; padding-top: 1px; }
.visit-item h3 { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; color: var(--navy-ink); margin: 0 0 .55em; }
.visit-item p { font-size: .84rem; line-height: 1.75; color: #5D6B72; margin: 0; }
.visit-rule { border-top: 1px solid var(--line); margin-top: clamp(30px, 4vw, 44px); }

/* ---------- Hero på undersider (banner med foto) ----------
   Fotoet går nu bag teksten i venstre side – samme integration som forsiden. */
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center 40%;
  min-height: clamp(320px, 40vh, 420px);
  display: flex; align-items: center;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(253,252,249,.96) 0%,
    rgba(253,252,249,.90) 20%,
    rgba(253,252,249,.72) 38%,
    rgba(253,252,249,.34) 56%,
    rgba(253,252,249,.08) 72%,
    rgba(253,252,249,0) 84%);
}
.hero-photo-inner { position: relative; width: 100%; z-index: 1; }
.hero-photo-copy { max-width: 560px; padding: clamp(30px, 5vw, 54px) 0; }
.hero-photo-copy h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .35em; }
.hero-photo-copy .lede { font-size: .96rem; }
.hero-photo .btn--ghost { background: rgba(253,252,249,.72); }

.uspbar { background: var(--navy); color: #fff; }
.uspbar-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 26px 24px; max-width: var(--maxw); margin: 0 auto;
}
.usp { display: flex; align-items: baseline; gap: 14px; }
.usp-num { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; }
.usp-text { font-size: .92rem; color: rgba(255,255,255,.78); line-height: 1.45; }

/* ---------- Page hero (undersider uden foto) ---------- */
.page-hero {
  position: relative;
  padding: clamp(52px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 420px at 90% -10%, var(--navy-soft) 0%, transparent 62%),
    radial-gradient(620px 340px at 2% 112%, var(--gold-soft) 0%, transparent 60%);
}
.page-hero.has-photo {
  background-size: cover;
  background-position: center right;
}
.page-hero.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,249,245,.97) 0%, rgba(251,249,245,.85) 40%, rgba(251,249,245,.2) 70%, rgba(251,249,245,0) 88%);
}
.page-hero-inner { position: relative; z-index: 1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 12px; display: block; }
.card-icon svg { width: 26px; height: 26px; color: var(--navy); display: block; }
.card-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; }
/* Hele kortet klikbart: "Læs mere"-linket strækkes usynligt ud over
   hele kortet, så et klik hvor som helst åbner siden. Hover-udtrykket
   (.card:hover) er uændret. Kun kort med ét link bruger mønsteret. */
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-left: 0; list-style: none; }
.chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .92rem; color: var(--ink-soft);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
a.chip--link { display: inline-flex; align-items: center; gap: 8px; }
a.chip--link:hover { text-decoration: none; }
.chip-count {
  background: var(--navy-soft); color: var(--navy);
  border-radius: 999px; padding: 1px 8px; font-size: .78rem; font-weight: 700;
}
.chips li { list-style: none; margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-soft); color: var(--navy);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: .3em; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Trin-version med tre kolonner */
.steps--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: -1; }
/* Samme udtryk og hover som .card, så alle tekstbokse er ens */
.split-media {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.split-media:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy); }
.split-media h3 { color: var(--navy-dark); }
.split-media p { color: var(--ink-soft); }
.split-media img { width: 100%; height: auto; border-radius: var(--radius); }
.split-media ul:last-child, .split-media p:last-child { margin-bottom: 0; }
.quote {
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.5;
  color: var(--navy-dark); border-left: 3px solid var(--gold); padding-left: 20px; margin: 0;
}
.quote-by { font-size: .9rem; color: var(--ink-faint); margin: 12px 0 0; }

/* ---------- Mini-liste med tick/bullet (konsistent: ét mærke, blåt, med luft) ---------- */
.mini-list {
  list-style: none; margin: 0 0 1.1em; padding: 0;
  display: grid; gap: 10px;
}
.mini-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; padding: 0;
}
.mini-list li::before { display: none; }
.mini-list .tick {
  color: var(--navy); flex: none;
  font-weight: 700; line-height: 1.7;
}
.mini-list .tick + span { min-width: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg);
}
.timeline .year {
  font-family: var(--font-serif); font-weight: 700; color: var(--navy);
  font-size: 1.05rem; display: block;
}
.timeline p { margin: .2em 0 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Band ---------- */
.band {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 54px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.86); margin: 0; }
.band .btn--accent { background: #fff; color: var(--navy-dark); }
.band .btn--accent:hover { background: var(--gold-soft); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: left; }
.contact-card .k {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); display: block; margin-bottom: 6px;
}
.contact-card .v { font-family: var(--font-serif); font-size: 1.18rem; color: var(--navy-ink); }

.todo { background: var(--gold-soft); border-bottom: 2px dashed var(--gold); padding: 0 4px; border-radius: 3px; }

.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.hours th { font-weight: 600; color: var(--navy-ink); width: 45%; }
.hours td { color: var(--ink-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.field .req { color: var(--navy); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .96rem; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); font-size: .93rem; }
.field textarea { min-height: 130px; resize: vertical; }
.form-check {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--ink-soft); cursor: pointer;
  margin: 0 0 4px;
}
.form-check input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--navy); cursor: pointer; }
.form-note { font-size: .84rem; color: var(--ink-faint); margin: 0; }

/* Formular som sammenhængende boks – samme sprog som .card */
.form-card {
  background: var(--surface);
  border: 1px solid rgba(7, 81, 116, .3);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
/* Formularkortet reagerer som de øvrige blokke – men uden at flytte sig,
 * så felterne ikke hopper, mens man skriver. */
.form-card:hover { border-color: rgba(7, 81, 116, .55); box-shadow: var(--shadow); }
.form-card:focus-within { border-color: var(--navy); box-shadow: var(--shadow); }
.form-card > .eyebrow { margin-bottom: 10px; }
.form-card h2 { margin-bottom: .3em; }
.form-card .lede { margin-bottom: 22px; }
#booking.split { align-items: start; }
#booking .card { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-actions .form-note { flex: 1 1 220px; }
/* Kvittering/fejl – samme tydelige boks som "Akut sygdom"-noten længere nede */
.form-msg {
  position: relative;
  border: 1px solid rgba(7, 81, 116, .16);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  background: var(--band);
  padding: 18px 22px 18px 60px;
  font-size: .95rem; line-height: 1.6; color: var(--ink);
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}
.form-msg::before {
  position: absolute; left: 20px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-size: .9rem; font-weight: 700; line-height: 1;
}
.form-msg--ok::before { content: "\2713"; }
.form-msg--err::before { content: "!"; }
.form-msg strong {
  display: block; margin-bottom: 3px;
  font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600;
  color: var(--navy-ink);
}
.form-msg--err { background: #FDF1EE; border-color: #F0CFC6; border-left-color: #B4432C; color: #7C2C1E; }
.form-msg--err::before { background: #B4432C; }
/* Honningkrukke – skjult for mennesker, synlig for bots */
.hao-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- FAQ (flade rækker med hårfin streg, som i Kevin-designet) ---------- */
.faq { display: grid; gap: 0; max-width: none; border-bottom: 1px solid var(--line); }
details.faq-item {
  background: transparent; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; padding: 0;
}
details.faq-item summary {
  cursor: pointer; font-family: var(--font-sans);
  font-size: .86rem; font-weight: 600; color: #34434B;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 0;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--navy); font-weight: 400; font-size: 1.2rem; line-height: 1; }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p { margin: 0 0 20px; color: #5D6B72; font-size: .84rem; line-height: 1.8; padding-right: 44px; max-width: 72ch; }

/* ---------- Notice (blå, som "Din vej til klinikken"-båndet) ---------- */
.notice {
  background: var(--band); border: 1px solid rgba(7, 81, 116, .16);
  border-left: 4px solid var(--navy); border-radius: var(--radius);
  padding: 18px 22px; font-size: .95rem; color: var(--ink);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--navy-ink); }

/* ---------- Udtalelser ---------- */
.udtalelse { position: relative; }
.udtalelse .post-meta { font-size: .84rem; color: var(--ink-faint); margin-bottom: 10px; }

/* ---------- Søgeresultater ---------- */
.result-intro {
  max-width: 62ch; color: var(--ink-soft); font-size: 1.02rem;
  margin: 0 0 26px;
}
.result-jump {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 18px; margin-bottom: 36px;
  background: var(--navy-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.result-jump-label {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-right: 4px;
}
.result-jump .chip { background: var(--surface); }
.result-jump .chip:hover { border-color: var(--navy); color: var(--navy); }
.result-group { margin-bottom: 46px; scroll-margin-top: 96px; }
.result-group h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.sec-icon {
  width: 22px; height: 22px; flex: none;
  color: var(--gold); display: block;
}
.result-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.result-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.result-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.result-item h3 { margin-bottom: .3em; font-size: 1.08rem; }
.result-item h3 a { color: var(--navy-ink); }
/* Hele søgeresultatet klikbart (samme mønster som kortene). */
.result-item h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.result-item .post-meta { margin-bottom: 4px; }
.result-excerpt { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.result-excerpt .chip-count { margin-left: 8px; }
mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- WordPress-indhold (editor) ---------- */
.entry { max-width: 78ch; }
.entry img { border-radius: var(--radius); }
.entry ul, .entry ol { margin-bottom: 1.1em; }
.entry li { margin-bottom: .4em; }

/* Juridiske sider: luft mellem afsnittene, ingen luft før første overskrift */
.entry--legal { max-width: 74ch; }
.entry--legal h2 { margin-top: 1.9em; }
.entry--legal h2:first-child { margin-top: 0; }
.entry--legal p:last-child { margin-bottom: 0; }
.alignwide { max-width: var(--maxw); }
.alignfull { max-width: none; }
.wp-block-quote { border-left: 3px solid var(--gold); padding-left: 20px; font-style: italic; }
.wp-block-button__link {
  background: var(--navy); color: #fff; border-radius: 4px;
  padding: 13px 24px; font-weight: 600;
}
.wp-block-button__link:hover { background: var(--navy-dark); color: #fff; }
.screen-reader-text { position: absolute !important; left: -9999px; }
.post-meta { font-size: .88rem; color: var(--ink-faint); margin-bottom: 10px; }

/* ---------- "Din vej til klinikken" (Kevins kontaktbånd) ---------- */
.vej { background: var(--band); padding: var(--section-y) 0; }
.vej-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.vej-text h2 {
  font-size: clamp(1.75rem, 2.9vw, 2.6rem); line-height: 1.14;
  margin: 0 0 .6em; max-width: 14ch; color: var(--navy-ink);
}
.vej-lede { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); max-width: 40ch; margin: 0 0 clamp(22px, 3vw, 30px); }
.vej-text .btn { padding: 14px 24px; }
.vej-text .btn > svg { width: 15px; height: 15px; }

.vej-list { list-style: none; margin: 0; padding: 0; }
.vej-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(7,81,116,.14);
}
.vej-list li:first-child { border-top: 1px solid rgba(7,81,116,.14); }
.vej-list > li > svg { width: 20px; height: 20px; flex: none; color: var(--navy); }
.vej-list > li > div { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.vej-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.vej-value { font-family: var(--font-serif); font-size: 1.02rem; color: var(--navy-ink); }
a.vej-value:hover { color: var(--navy); }
.vej-arrow { color: var(--navy); display: inline-flex; }
.vej-arrow svg { width: 15px; height: 15px; transition: transform .15s ease; }
.vej-arrow:hover svg { transform: translate(2px, -2px); }

.vej-more {
  justify-self: start; margin-top: 14px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 9px;
}
.vej-more .arr svg { width: 14px; height: 14px; }

/* ---------- Footer (Kevins hvide enkeltbjælke) ---------- */
.site-footer {
  background: var(--bg); color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 28px 0; font-size: .88rem;
}
.footer-bar {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 22px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 40px; height: 40px; color: var(--navy-ink); }
.footer-brand .brand-name { font-size: 1.12rem; color: var(--navy-ink); }
.footer-brand .brand-sub { color: var(--ink-faint); }
.footer-copy {
  margin: 0; text-align: center;
  font-size: .8rem; color: var(--ink-faint);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-soft); font-size: .82rem; }
.footer-links a:hover { color: var(--navy); }

/* ---------- Responsive ---------- */

/* Menuen bliver til hamburger-menu, før den kan nå at knække over to linjer */
@media (max-width: 979px) {
  .site-header { position: sticky; }
  .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-right { margin-left: auto; order: 2; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    width: 100%; max-width: 100%; justify-self: stretch;
    height: auto; flex-direction: column; align-items: stretch;
    background: #FDFCF9; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 18px 40px rgba(7,81,116,.12);
    margin-left: 0;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; height: auto; }
  .nav li { display: block; }
  .nav a { display: block; padding: 12px 8px; font-size: .95rem; }
  .nav > ul > li > a::after { display: none; }
  .nav .sub-menu {
    position: static; display: flex; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); padding: 2px 0 6px 12px;
    margin: 0 0 4px 8px; min-width: 0; background: transparent;
  }
  .nav .sub-menu a { padding: 7px 8px; color: #5E6D74; }
  .header-right { margin-left: auto; gap: 12px; }
  .top-search-input { width: 150px; }
}

@media (max-width: 980px) {
  .hero-home { display: block; min-height: 0; }
  /* Fotoet står i sin egen faste boks, og teksten ryger under det –
     det lyse slør er derfor ikke længere nødvendigt (og gjorde fotoet næsten usynligt). */
  .hero-home::before { content: none; }
  /* NB: height (ikke min-height) – ellers kollapser img'ets height:100% til auto */
  .hero-bg {
    position: relative; inset: auto;
    height: clamp(320px, 48vh, 440px);
    overflow: hidden;
  }
  .hero-bg img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 52% 50%;
  }
  .hero-vert { right: 16px; bottom: 20px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); opacity: 1; }
  .vej-grid { grid-template-columns: 1fr; gap: 34px; }
  .vej-more { margin-top: 16px; }
  /* padding-block (ikke shorthand) – ellers sletter den .wraps vandrette 28px,
     og hero-teksten ryger ud til kanten i forhold til alle andre blokke */
  .hero-copy { padding-block: clamp(40px, 7vw, 64px); }
  .hero-copy-inner { max-width: none; }
  .hero-home h1 { max-width: 16ch; }
  .hero-lede { max-width: 44ch; }
  .trustbar-inner { grid-template-columns: 1fr; }
  /* 28px i stedet for 4px – samme venstre kant som .wrap og hero-teksten */
  .trust { padding: 18px 28px; }
  .trust + .trust::before { left: 0; right: 0; top: 0; width: auto; height: 1px; transform: none; }
  .head-split { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .head-split-link { text-align: left; }
  .faq-grid { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .meet-grid { grid-template-columns: 1fr; gap: 40px; }
  .meet-body h2 { max-width: none; }
  .visit { grid-template-columns: 1fr; gap: 24px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split-media { order: 0; }
  .split-media { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bar { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .footer-copy { text-align: center; }
  .band { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-inner { gap: 10px; font-size: .74rem; min-height: 34px; }
  .brand-name { font-size: 1.4rem; }
  .brand-logo { width: 40px; height: 40px; }
  .header-inner { min-height: 62px; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; }
  .header-right { order: 4; flex: 1 1 100%; margin-left: 0; }
  .top-search { flex: 1 1 100%; }
  .top-search-input { width: 100%; }
  .top-search-input:focus { width: 100%; }
  .nav-toggle { order: 3; margin-left: auto; }
  .hero-home { min-height: 0; }
  .hero-home h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero-vert { right: 14px; bottom: 22px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .areas { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps, .steps--3 { grid-template-columns: 1fr; }

  .btn-row .btn { width: 100%; justify-content: center; }
  .meet-card { left: 14px; bottom: 16px; padding: 11px 16px; }
  .meet-media::after { inset: 12px -12px -12px 12px; }
}

/* Søgefeltet skjules i mobilmenuen, hvor pladsen er knap */
@media (max-width: 520px) {
  .top-search-input { width: 100%; }
  .header-right { flex-wrap: wrap; }
  .top-search { order: 4; flex: 1 1 100%; margin-top: 8px; }
}

/* Top-bjælken: linje 1 = adresse, linje 2 = telefon + e-mail
   (under 480 px kan begge grupper ikke være på én linje).
   Kontakt-gruppen flyttes blot ned på egen linje – afstandene
   indeni er uændret, så linjen ser ud som på computer. */
@media (max-width: 480px) {
  .topbar-inner { row-gap: 3px; min-height: 0; padding-block: 7px; }
  .topbar-group:first-child { flex-basis: 100%; }
}

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