/* ==========================================================
   Mederinav Health Care – stylesheet
   Palette taken from the reference mockups (mint / teal / sage).
   ========================================================== */

:root {
  color-scheme: light;

  /* Colour tokens */
  --bg: #effdfd;
  --surface: #ffffff;
  --mint: #c7e2e4;
  --mint-soft: #dcefef;
  --sage: #89b0b2;
  --ink: #0e1a1c;
  --ink-2: #364649;
  --ink-3: #56686b;
  --accent: #1e5d63;
  --accent-hover: #164a4f;
  --accent-soft: #dcefef;
  --sand: #f1e4cf;
  --sand-deep: #6e431b;
  --line: rgba(14, 26, 28, 0.14);
  --line-strong: rgba(14, 26, 28, 0.32);
  --danger: #a8231a;
  --success: #17704a;
  --success-soft: #def3e8;

  /* Type */
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Spacing (8pt scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Shape & elevation */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 26, 28, 0.06), 0 2px 8px rgba(14, 26, 28, 0.05);
  --shadow-2: 0 4px 12px rgba(14, 26, 28, 0.07), 0 16px 40px rgba(14, 26, 28, 0.08);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-med: 260ms;

  /* Layout */
  --container: 1180px;
  --gutter: 16px;
  --header-h: 72px;

  /* Z-index scale */
  --z-header: 40;
  --z-menu: 50;
  --z-toast: 100;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 84px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 2.6vw + 0.75rem, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute !important;
  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: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-8); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
.section--mint { background: var(--mint); }
.section--tight-top { padding-top: var(--s-6); }

.section-head {
  max-width: 680px;
  margin: 0 auto var(--s-7);
  text-align: center;
}
.section-head p { margin-top: var(--s-4); color: var(--ink-2); font-size: 1.125rem; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead { font-size: 1.1875rem; color: var(--ink-2); line-height: 1.6; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
    border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.link-arrow .icon { transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: auto; height: 40px; }
@media (min-width: 768px) { .brand img { height: 46px; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t-fast) ease;
}
.nav-list a:hover { background: var(--mint-soft); }
.nav-list a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
/* Just above the menu breakpoint the row is tight (longer Spanish labels + language switch). */
@media (min-width: 901px) and (max-width: 1023px) {
  .header-inner { gap: var(--s-4); }
  .nav-list a { padding: 0 var(--s-2); }
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

/* Language switch (SV | ES). Needs JS, so it only shows once the .js class is set in <head>. */
.lang-switch {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
}
.js .lang-switch { display: inline-flex; }
.lang-switch button {
  min-width: 44px;
  min-height: 41px;
  padding: 0 var(--s-2);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.lang-switch button:hover { background: var(--mint-soft); color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; cursor: default; }
.lang-switch button:focus-visible { outline-offset: 2px; border-radius: var(--r-pill); }

/* Hide the page for a moment while Spanish is applied, so Swedish text doesn't flash.
   The animation reveals it anyway after 1.5 s in case a script fails. */
.i18n-pending body { visibility: hidden; animation: i18n-reveal 0s linear 1.5s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

@media (max-width: 480px) {
  .header-inner { gap: var(--s-3); }
  .header-actions { gap: var(--s-2); }
  .brand { flex: 0 1 175px; min-width: 0; }
  .brand img { width: 100%; height: auto; }
}
@media (max-width: 360px) {
  .header-actions .header-cta { padding: 0 var(--s-3); font-size: 0.9375rem; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu breakpoint – keep in sync with matchMedia("(min-width: 901px)") in main.js */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* Header keeps "Boka tid"; the language switch moves into the menu (.nav-lang). */
  .header-cta { min-height: 44px; padding: 0 var(--s-4); }
  .js .header-actions > .lang-switch { display: none; }
  .js .nav-lang { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: var(--z-menu);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--s-4) var(--gutter) var(--s-6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { min-height: 56px; font-size: 1.25rem; border-radius: var(--r-sm); border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { box-shadow: none; background: var(--mint-soft); }
}
.nav-lang { display: none; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); padding-inline: var(--s-3); }
.nav-lang-label { font-weight: 600; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero-grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding-block: var(--s-8) var(--s-9); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
}
.hero h1 .serif { display: inline; font-size: 1.08em; color: var(--accent); }
.hero .lead { margin-top: var(--s-5); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9375rem;
}
.trust-list li { display: inline-flex; align-items: center; gap: var(--s-2); }
.trust-list .icon { color: var(--accent); }

.hero-media { position: relative; justify-self: center; width: min(100%, 440px); }
.arch {
  overflow: hidden;
  border-radius: 999px 999px var(--r-md) var(--r-md);
  background: var(--mint);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .arch { aspect-ratio: 4 / 5; }
.hero-badge {
  position: absolute;
  left: -8px;
  bottom: 22%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  max-width: 250px;
}
@media (min-width: 900px) { .hero-badge { left: -40px; } }
.hero-badge strong { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.hero-badge div > span { display: block; font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; }
.hero-badge .badge-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Treatment category cards (home) ---------- */
.cat-grid {
  display: grid;
  gap: var(--s-7) var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cat-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cat-card .circle {
  width: min(220px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.cat-card:hover .circle { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-card .circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-card h3 { margin-top: var(--s-5); font-size: 1.375rem; }
.cat-card p { margin-top: var(--s-2); color: var(--ink-2); max-width: 26ch; }
.cat-card .link-arrow { margin-top: var(--s-3); }
.cat-card .from { margin-top: var(--s-2); font-size: 0.9375rem; color: var(--ink-3); font-weight: 600; }

/* ---------- Campaign ---------- */
.campaign {
  display: grid;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sand);
}
@media (min-width: 900px) { .campaign { grid-template-columns: 1.15fr 0.85fr; } }
.campaign-body { padding: var(--s-6) var(--s-5); }
@media (min-width: 768px) { .campaign-body { padding: var(--s-8) var(--s-7); } }
.campaign .eyebrow { color: var(--sand-deep); }
.campaign h2 .serif { color: var(--sand-deep); }
.campaign-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-size: 0.9375rem;
}
.campaign-meta .icon { color: var(--sand-deep); }
.campaign-countdown { font-variant-numeric: tabular-nums; color: var(--sand-deep); font-weight: 800; }
.offer-list { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.offer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-4);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--r-md);
}
.offer-name { font-weight: 700; font-size: 1.0625rem; }
.offer-desc { grid-column: 1; font-size: 0.9375rem; color: var(--ink-2); }
.offer-price { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }
.offer-price del { display: block; color: var(--ink-3); font-size: 0.875rem; }
.offer-price strong { font-size: 1.25rem; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); align-items: center; }
.campaign-note { font-size: 0.8125rem; color: var(--ink-2); }
.campaign-media { min-height: 260px; position: relative; }
.campaign-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-stamp {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  line-height: 1.05;
  font-weight: 800;
  transform: rotate(-8deg);
}
.campaign-stamp span { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.campaign-stamp strong { font-size: 2rem; }
.campaign.is-ended .campaign-countdown { color: var(--ink-2); }

/* ---------- Before / after gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.chip {
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: transparent;
  font-weight: 600;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.ba-grid {
  display: grid;
  gap: var(--s-6) var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.ba { margin: 0; }
.ba[hidden] { display: none; }
.ba-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--mint);
  user-select: none;
}
.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.ba-tag {
  position: absolute;
  top: var(--s-3);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: rgba(14, 26, 28, 0.78);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity var(--t-fast) ease;
}
.ba-tag.is-covered { opacity: 0; } /* the divider has moved over this tag (set in main.js) */
.ba-tag--before { left: var(--s-3); }
.ba-tag--after { right: var(--s-3); }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.ba-frame:has(.ba-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba figcaption { margin-top: var(--s-4); }
.ba figcaption strong { display: block; font-size: 1.0625rem; }
.ba figcaption span { color: var(--ink-2); font-size: 0.9375rem; }
.disclaimer { margin-top: var(--s-6); text-align: center; color: var(--ink-3); font-size: 0.875rem; }

/* ---------- Team / doctor ---------- */
.role { margin-top: var(--s-2); color: var(--accent); font-weight: 700; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin: var(--s-6) 0;
  padding: 0;
  list-style: none;
}
.stat-row li {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--bg);
}
.section--mint .stat-row li { background: rgba(255, 255, 255, 0.6); }
.stat-row strong { display: block; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-row span { font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; display: block; margin-top: var(--s-1); }

.cred-grid { display: grid; gap: var(--s-5); margin-top: var(--s-2); }
@media (min-width: 640px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
.cred-grid .cred-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.team-mini {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 640px) { .team-mini { grid-template-columns: 160px 1fr; align-items: start; } }
.team-mini .arch { width: 160px; aspect-ratio: 4 / 5; }
.section-head + .team-mini { margin-top: 0; padding-top: 0; border-top: 0; } /* first card: no divider under the heading */
.team-mini h3 { font-size: 1.375rem; }
.team-mini p { margin-top: var(--s-2); color: var(--ink-2); }
.team-text { max-width: 68ch; margin-bottom: var(--s-2); }
.team-text p + p { margin-top: var(--s-3); }
.team-text .team-lead { margin-top: var(--s-3); color: var(--ink); font-weight: 700; }

/* About page profile */
.profile {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
}
.profile:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .profile { grid-template-columns: 340px 1fr; gap: var(--s-8); align-items: start; }
  .profile-media { position: sticky; top: calc(var(--header-h) + 24px); }
}
.profile-media .arch { aspect-ratio: 4 / 5; width: 100%; max-width: 340px; }
.profile h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.profile .bio { margin-top: var(--s-4); color: var(--ink-2); font-size: 1.0625rem; max-width: 65ch; }
.profile .bio + .bio { margin-top: var(--s-3); }
.profile .cred-grid { margin-top: var(--s-6); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.tag-list li {
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--mint);
  font-size: 0.9375rem;
  font-weight: 600;
}
.section--mint .tag-list li { background: rgba(255, 255, 255, 0.7); }
.profile-quote {
  margin: var(--s-6) 0 0;
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
}
.profile-quote footer { margin-top: var(--s-2); font-family: var(--font-sans); font-style: normal; font-size: 0.9375rem; color: var(--ink-2); }

/* About: clinic intro */
.about-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); } }
.about-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.values li { display: flex; gap: var(--s-4); align-items: flex-start; }
.values p { color: var(--ink-2); font-size: 0.9375rem; }
.value-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
}

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 768px) { .visit-grid { grid-template-columns: 300px 1fr; gap: var(--s-7); } }
@media (min-width: 1024px) { .visit-grid { grid-template-columns: 340px 1fr; } }
/* Text columns next to the photo: stacked on tablets, side by side on desktop. */
.visit-info { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1024px) { .visit-info { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.visit-photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 2 / 3; max-height: 460px; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.info-block + .info-block { margin-top: var(--s-5); }
.info-block h3 { display: flex; align-items: center; gap: var(--s-2); font-size: 1.0625rem; margin-bottom: var(--s-1); }
.info-block h3 .icon { color: var(--accent); }
.info-block p { color: var(--ink-2); }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: var(--s-2) 0; border-bottom: 1px solid var(--line-strong); text-align: left; }
.hours-table th { font-weight: 600; }
.hours-table td { text-align: right; color: var(--ink-2); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--ink); font-weight: 800; }

/* ---------- Page header ---------- */
.page-hero { padding-block: var(--s-7) var(--s-6); text-align: center; }
@media (min-width: 768px) { .page-hero { padding-block: var(--s-8) var(--s-7); } }
.page-hero .lead { margin: var(--s-4) auto 0; max-width: 40rem; }

/* ---------- Treatments accordion ---------- */
.narrow { max-width: 760px; margin-inline: auto; }
.cat-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-7); }
.cat-jump a { text-decoration: none; display: inline-flex; align-items: center; }

.t-group + .t-group { margin-top: var(--s-7); }
.t-group-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-3); }
.t-group-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.t-group-head h2 { font-size: 1.5rem; }
.t-group-head p { color: var(--ink-2); font-size: 0.9375rem; margin-top: 2px; }

.t-list { border-top: 1.5px solid var(--ink); }
.t-item { border-bottom: 1px solid var(--ink); }
.t-item summary {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 60px;
  padding: var(--s-3) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.125rem;
}
.t-item summary::-webkit-details-marker { display: none; }
.t-item summary:hover .t-name { text-decoration: underline; text-underline-offset: 4px; }
.t-item summary .t-name { flex: 1; }
.t-item summary .t-from { font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) {
  /* Campaign badge drops below the name so the row fits on small phones. */
  .t-item summary { flex-wrap: wrap; row-gap: 0; }
  .t-item summary::after { content: ""; order: 2; flex-basis: 100%; }
  .t-item summary .t-name { flex: 1 1 0; min-width: 0; }
  .t-item summary .badge { order: 3; margin-top: var(--s-1); }
}
.t-plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}
.t-plus::before, .t-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out);
}
.t-plus::after { transform: rotate(90deg); }
.t-item[open] .t-plus { background: var(--ink); border-color: var(--ink); }
.t-item[open] .t-plus::before, .t-item[open] .t-plus::after { background: #fff; }
.t-item[open] .t-plus::after { transform: rotate(0deg); }
.t-body { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 62ch; }
.t-body p + p { margin-top: var(--s-3); }
/* "Boka …" / "Reservar: …" carries the full treatment name, so let it wrap on phones. */
.t-body .btn { max-width: 100%; white-space: normal; text-align: center; padding-block: var(--s-2); }
.t-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-4) 0; padding: 0; list-style: none; color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.t-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.t-facts .icon { color: var(--accent); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  background: var(--sand);
  color: var(--sand-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-cta { text-align: center; padding-block: var(--s-7) var(--s-8); }
.page-cta p { color: var(--ink-2); margin-bottom: var(--s-4); }

/* ---------- Booking ---------- */
.steps {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
  counter-reset: step;
  flex-wrap: wrap;
}
.steps li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-3);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.875rem;
}
.steps li.is-current { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); }
.steps li.is-current::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.is-done { color: var(--success); }
.steps li.is-done::before { content: "✓"; background: var(--success-soft); border-color: var(--success); }

.booking-layout { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1100px) { .booking-layout { grid-template-columns: 1fr 320px; } }

.panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--s-5) var(--s-4);
}
@media (min-width: 768px) { .panel { padding: var(--s-6); } }
.panel + .panel { margin-top: var(--s-5); }
.panel-title { display: flex; align-items: baseline; gap: var(--s-3); font-size: 1.25rem; margin-bottom: var(--s-4); }
.panel-title .num { color: var(--ink-3); font-weight: 600; font-size: 1rem; }

.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.field .req { color: var(--danger); }
.field .hint { display: block; margin-top: var(--s-1); font-size: 0.875rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230e1a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 93, 99, 0.22); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field-error { display: none; margin-top: var(--s-1); color: var(--danger); font-size: 0.875rem; font-weight: 600; }
.field.has-error .field-error { display: flex; gap: var(--s-1); align-items: center; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* Week calendar */
.week-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.week-label { font-weight: 800; font-size: 1.125rem; }
.week-label small { display: block; font-weight: 600; font-size: 0.875rem; color: var(--ink-3); }
.week-nav { display: flex; gap: var(--s-2); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.icon-btn:hover:not([disabled]) { border-color: var(--ink); background: var(--mint-soft); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.today-btn {
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
}
.today-btn:hover:not([disabled]) { border-color: var(--ink); }
.today-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); font-size: 0.875rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-strong); display: inline-block; }
.legend .l-free { background: var(--surface); border-color: var(--accent); }
.legend .l-busy { background: repeating-linear-gradient(135deg, #eef2f2 0 4px, #dfe6e6 4px 8px); }
.legend .l-sel { background: var(--ink); border-color: var(--ink); }

.day-tabs { display: none; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--s-2);
  position: relative;
}
.week-grid.is-loading { opacity: 0.4; pointer-events: none; }
.day-col { min-width: 0; }
.day-head {
  padding: var(--s-2) var(--s-1) var(--s-3);
  text-align: center;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: var(--s-2);
}
.day-head .dow { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.day-head .dnum { display: grid; place-items: center; height: 36px; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.day-col.is-today .day-head .dnum {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.0625rem;
}
.slot-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.slot {
  width: 100%;
  min-height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.slot:hover:not([disabled]) { background: var(--accent-soft); }
.slot:active:not([disabled]) { transform: scale(0.96); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot[disabled] {
  border-color: transparent;
  color: var(--ink-3);
  background: repeating-linear-gradient(135deg, #eef2f2 0 4px, #e3e9e9 4px 8px);
  text-decoration: line-through;
  cursor: not-allowed;
  font-weight: 500;
}
.day-closed, .day-empty {
  padding: var(--s-4) var(--s-1);
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  background: var(--bg);
}

@media (max-width: 899px) {
  .day-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: var(--s-4);
  }
  .day-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 64px;
    padding: var(--s-2) 0;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--surface);
    font-variant-numeric: tabular-nums;
  }
  .day-tab .dow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
  .day-tab .dnum { font-size: 1.125rem; font-weight: 800; line-height: 1.1; }
  .day-tab .dfree { font-size: 0.6875rem; font-weight: 600; color: var(--accent); }
  .day-tab.is-none .dfree { color: var(--ink-3); }
  .day-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .day-tab[aria-pressed="true"] .dow, .day-tab[aria-pressed="true"] .dfree { color: #dcefef; }
  .week-grid { grid-template-columns: 1fr; }
  .day-col { display: none; }
  .day-col.is-active { display: block; }
  .day-col .day-head { display: none; }
  .slot-list { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--s-2); }
  .slot { min-height: 48px; }
}

.empty-week {
  padding: var(--s-6) var(--s-4);
  text-align: center;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink-2);
}
.empty-week .btn { margin-top: var(--s-4); }

/* Summary */
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary dl { margin: 0; display: grid; gap: var(--s-3); }
.summary dl div { display: grid; gap: 2px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.summary dt { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary dd.is-empty { color: var(--ink-3); font-weight: 500; }
.summary .help { margin-top: var(--s-5); font-size: 0.9375rem; color: var(--ink-2); }
.summary .help a { font-weight: 700; white-space: nowrap; }

.error-summary {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border: 2px solid var(--danger);
  border-radius: var(--r-md);
  background: #fdf1f0;
}
.error-summary h3 { font-size: 1rem; color: var(--danger); }
.error-summary ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); font-weight: 600; }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.confirm {
  text-align: center;
  padding: var(--s-6) var(--s-4);
}
.confirm-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}
.confirm h2 { font-size: 1.75rem; }
.confirm p { margin-top: var(--s-3); color: var(--ink-2); }
.confirm .ref { display: inline-block; margin-top: var(--s-4); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.confirm .btn { margin-top: var(--s-5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage); padding-block: var(--s-7) var(--s-5); }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: var(--s-3); max-width: 30ch; font-size: 0.9375rem; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: var(--s-2); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(14, 26, 28, 0.2);
  font-size: 0.875rem;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
