/* EGentid Spa & Service — palette tuned for WCAG 2.1 AA on beige background */

:root {
  --bg: #c3b09c;
  --bg-soft: #d4c4b2;
  --bg-panel: #ebe1d5;
  /* Adjust: keep contrast ≥ 4.5:1 vs --bg for body text (EU/WCAG AA) */
  --ink: #3a2e24;
  --ink-strong: #241c16;
  --ink-muted: #4d3f32;
  --line: rgba(36, 28, 22, 0.35);
  --accent: #2c221c;
  --flash-ok: #1e4d2b;
  --flash-err: #6b1f1f;
  --focus: #1a4480; /* Distinct focus ring, not colour-only meaning */
  --max: 980px;
  --header-h: 5.5rem;
  --font-body: "Roboto", sans-serif;
  --font-display: "Roboto Condensed", sans-serif;
}

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

html {
  scroll-behavior: auto;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  /* Sticky footer: fill viewport; main grows so footer sits at bottom */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--ink-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

/* Visible keyboard focus — never remove without equivalent (EU a11y) */
:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.required-marker {
  color: var(--flash-err);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: #fff;
  color: var(--ink-strong);
  border: 2px solid var(--focus);
  text-decoration: none;
  font-weight: 500;
  /* Hidden until focused — still available to keyboard users */
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus,
.skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  min-height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 300;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--ink-strong);
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* Top-level nav only — do not style nested .nav-submenu with display:flex */
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.2rem 0;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink-strong);
  text-decoration: underline;
}

.nav-cta {
  font-weight: 500;
}

/* Behandlingar submenu — open state is JS-only (.is-open) so it can collapse */
.nav-item.has-submenu {
  position: relative;
}

.nav-submenu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.2rem 0;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-submenu-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
}

.nav-submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
  color: var(--ink-strong);
  text-decoration: underline;
}

.site-nav .nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 14rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(40, 30, 20, 0.08);
  z-index: 30;
  display: none;
}

.site-nav .nav-submenu.is-open {
  display: block;
}

.site-nav .nav-submenu a {
  display: block;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  box-sizing: border-box;
}

@media (min-width: 761px) {
  .site-nav .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
  }
}


.flash-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1rem 0;
}

.flash {
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.flash-success {
  color: var(--flash-ok);
  border-color: var(--flash-ok);
}

.flash-error {
  color: var(--flash-err);
  border-color: var(--flash-err);
}

.site-main {
  /* Adjust: grows to push .site-footer to the bottom on short pages */
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.hero {
  text-align: center;
}

.hero-image,
.page-hero,
.feature-image,
.content-block-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1rem auto 1.25rem;
}

/* Hero carousel — 2+ images on Hem / Behandlingar (Admin → Sidor → Hero-karusell) */
.hero-carousel {
  position: relative;
  margin: 1rem auto 1.25rem;
  max-width: 100%;
}

.hero .hero-carousel {
  margin-top: 0.75rem;
}

.hero-carousel-viewport {
  position: relative;
}

.hero-carousel-slide[hidden] {
  display: none;
}

.hero-carousel-slide .hero-image,
.hero-carousel-slide .page-hero {
  margin: 0;
  display: block;
}

/* Side arrows on the photo — compact glyphs, 36px hit area */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.hero-carousel-btn--prev {
  left: 0.15rem;
}

.hero-carousel-btn--next {
  right: 0.15rem;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  background: transparent;
  color: #fff;
}

.hero-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.hero-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.4rem;
  margin-top: 0.45rem;
}

/* Icon-only pause/play — name is on aria-label */
.hero-carousel-pause {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel-pause:hover,
.hero-carousel-pause:focus-visible {
  background: transparent;
  color: var(--ink-strong);
}

.hero-carousel-icon--pause {
  display: block;
  width: 8px;
  height: 10px;
  border-left: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}

.hero-carousel-icon--play {
  display: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}

.hero-carousel-pause[aria-pressed="true"] .hero-carousel-icon--pause {
  display: none;
}

.hero-carousel-pause[aria-pressed="true"] .hero-carousel-icon--play {
  display: block;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hero-carousel-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 2px solid var(--ink-strong);
  background: transparent;
}

.hero-carousel-dot[aria-current="true"]::after {
  background: var(--ink-strong);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: none;
  }

  .hero-carousel-pause {
    display: none;
  }
}

/* Home: subtitle sits above hero image — tighten gap under title */
.hero > .lead + picture .hero-image,
.hero > .lead + .hero-image {
  margin-top: 0.75rem;
}

.lead {
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0.5rem auto 1rem;
}

/* Home subtitle (above hero image) — Adjust: bold lead under h1 */
.hero .lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-strong);
  max-width: 40rem;
  margin: 0.35rem auto 0;
}

.hero .prose {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  max-width: 40rem;
  margin: 0.5rem auto 1rem;
}

.prose,
.prose-stack p,
.feature-copy p,
.content-block p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Monthly tip under CTAs — content from Admin → Säsongstips (current month) */
.month-tip {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

.month-tip-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
}

.month-tip-rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: min(100%, 22rem);
  margin: 0 auto 1.25rem;
}

.month-tip-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--ink-strong);
}

.month-tip-body {
  text-align: left;
  max-width: 36rem;
  margin: 0 auto;
}

.month-tip-body p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.month-tip-subheading,
.body-section-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--ink-strong);
  text-align: left;
}

.month-tip-checks,
.body-section-checks {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.month-tip-checks li,
.body-section-checks li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink);
  line-height: 1.45;
}

.month-tip-checks li::before,
.body-section-checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-strong);
  font-weight: 700;
}

.month-tip-more {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Divider under Boka / Se behandlingar — before monthly recognition */
.home-divider {
  border: 0;
  border-top: 1px solid var(--ink-muted);
  opacity: 0.45;
  max-width: 12rem;
  margin: 2rem auto 1.75rem;
}

/* “Känner du igen det här?” — month copy from pages/month_hooks.py */
.month-hook {
  max-width: 34rem;
  margin: 0 auto 0.5rem;
  text-align: center;
}

.month-hook-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: var(--ink-strong);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.month-hook-block {
  margin: 0;
}

.month-hook-month {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-strong);
  font-family: inherit;
}

.month-hook-icon {
  margin-right: 0.25rem;
}

.month-hook-quote {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}

.month-hook-quote p {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-strong);
}

.month-hook-body {
  margin: 0 auto 1rem;
  max-width: 32rem;
  line-height: 1.55;
  color: var(--ink);
}

.month-hook-cta {
  margin: 0;
}

.month-hook-cta a {
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.month-hook-cta a:hover,
.month-hook-cta a:focus-visible {
  color: var(--ink);
}

/* Why choose — checkmarks; Adjust list copy in home.html */
.why-choose {
  max-width: 40rem;
  margin: 2rem auto 1.75rem; /* Adjust: space above Boka / Se behandlingar buttons */
  text-align: center;
}

.why-choose-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-align: center;
  margin: 0 0 1.1rem;
  color: var(--ink-strong);
}

.why-choose-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
}

.why-choose-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
}

.why-choose-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-strong);
  font-weight: 700;
}

.btn {
  display: inline-block;
  border: 1px solid var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  transition: background 180ms ease, color 180ms ease;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-strong);
}

.btn-ghost:hover {
  background: var(--bg-panel);
  color: var(--ink-strong);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.feature-right {
  direction: rtl;
}

.feature-right > * {
  direction: ltr;
}

.page-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-article {
  max-width: 720px;
  margin: 0 auto;
}

/* Content pages with ## / checklist body (Värmande, Om, Service, …) */
.page-body-sections {
  text-align: left;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.page-body-sections .body-section-heading {
  margin-top: 1.75rem;
}

.warming-page .page-header .lead {
  font-weight: 700;
  color: var(--ink-strong);
}

/* Service — bold lead with triangle marker (matches brand mockup) */
.service-page .service-lead {
  font-weight: 700;
  color: var(--ink-strong);
  position: relative;
  padding-left: 1.1rem;
}

.service-page .service-lead::before {
  content: "◂";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-strong);
  font-size: 0.85em;
  line-height: 1.5;
}

/* Om — divider + Emma presentation under Boka */
.about-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem auto 1.75rem;
  max-width: 40rem;
}

.about-presentation-split {
  display: grid;
  grid-template-columns: minmax(9rem, 0.85fr) minmax(0, 1.25fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  text-align: left;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.about-presentation-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin: 0;
}

.about-photo-placeholder {
  aspect-ratio: 3 / 4;
  min-height: 12rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.about-presentation-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
}

.about-presentation-body .body-section-heading {
  margin-top: 1.25rem;
}

.about-presentation-body .body-section-heading:first-child {
  margin-top: 0;
}

.booking-page,
.dashboard,
.contact-page {
  max-width: 860px;
}

/* Boka — 3 steps: behandling → tid → namn + telefon */
.booking-steps {
  margin: 1.5rem auto 2rem;
  max-width: 36rem;
}

.booking-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.booking-steps li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.booking-steps li[aria-current="step"] {
  color: var(--ink-strong);
  font-weight: 500;
}

.booking-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-panel);
}

.booking-steps li[aria-current="step"] .booking-step-num {
  background: var(--ink-strong);
  color: #fff;
  border-color: var(--ink-strong);
}

.booking-step {
  max-width: 36rem;
  margin: 0 auto;
}

.booking-summary {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.booking-summary a {
  margin-left: 0.35rem;
}

.service-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-pick-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  min-height: 44px;
  transition: background 180ms ease;
}

.service-pick-card:hover {
  background: var(--bg-soft);
}

.service-pick-main {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

.service-pick-main:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

.service-pick-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 1.05rem;
}

.service-pick-meta {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.service-pick-desc {
  font-size: 0.9rem;
}

.service-pick-more {
  justify-self: start;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.service-pick-more:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}


/* Kontakt: center all page content (copy, heading, form) */
.contact-page {
  text-align: center;
}

.contact-form-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Stacked centered form — labels above fields, same width, centered block */
.aligned-form {
  max-width: 28rem;
  margin: 0 auto;
  text-align: left; /* typed text stays left inside inputs */
}

.aligned-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.aligned-row > label {
  font-weight: 500;
  color: var(--ink-strong);
  text-align: center;
}

.aligned-label-spacer {
  display: none; /* not needed in stacked centered layout */
}

.aligned-field {
  width: 100%;
}

.aligned-form .form-control,
.aligned-form input:not([type="checkbox"]):not([type="radio"]),
.aligned-form select,
.aligned-form textarea {
  width: 100%;
  max-width: none;
  display: block;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-strong);
  font: inherit;
  text-align: left;
}

.aligned-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.aligned-actions {
  margin-top: 1.1rem;
  align-items: center;
}

.aligned-actions .aligned-field {
  display: flex;
  justify-content: center;
}

.field-error,
.form-errors {
  margin: 0.35rem 0 0;
  color: var(--flash-err);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  text-align: center;
}

/* GDPR notice under contact / booking submit */
.form-legal-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 28rem;
}

.form-legal-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.form-legal-note a:hover,
.form-legal-note a:focus-visible {
  color: var(--ink-strong);
}

.form-errors {
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  background: #f8e8e8;
  border: 1px solid var(--flash-err);
}

.aligned-row.has-error .form-control,
.aligned-row.has-error input,
.aligned-row.has-error textarea {
  border-color: var(--flash-err);
}

.content-block {
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Behandlingar — centered header/intro; treatment rows are image + copy */
.treatments-page {
  text-align: center;
  max-width: 52rem; /* Adjust: image column + copy like the live WordPress layout */
  margin-left: auto;
  margin-right: auto;
}

.treatments-page .page-header {
  margin-bottom: 1rem;
}

.treatments-page .page-hero {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  margin: 0.75rem auto 1.35rem;
}

/* Page title — strongest signal */
.treatments-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
  margin: 0 0 0.9rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.treatments-intro {
  margin: 0 auto 1.35rem;
  max-width: 34rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.85rem;
  line-height: 1.45;
}

.check-list li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.treatments-section {
  margin: 0;
  padding: 0;
}

/* Paraffin / topic blocks — divider above */
.treatments-section-topic {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* “Vilken olja…” — same weight as page chapter */
.treatments-section-major {
  margin-top: 2.25rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
}

/* Oil / innehåll — stacked under major heading, no extra rule */
.treatments-section-sub {
  margin-top: 1.5rem;
  padding-top: 0;
}

.treatments-heading {
  font-family: var(--font-display);
  color: var(--ink-strong);
  margin: 0 auto 0.9rem;
  line-height: 1.25;
}

.treatments-heading-topic {
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  letter-spacing: 0.02em;
}

.treatments-heading-major {
  font-weight: 700;
  font-size: clamp(1.55rem, 3.8vw, 1.95rem);
  letter-spacing: 0.01em;
  margin-bottom: 0;
  max-width: 20ch;
}

.treatments-heading-sub {
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  line-height: 1.35;
  max-width: 32rem;
  margin-bottom: 0.75rem;
}

.treatments-subhead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 auto 0.7rem;
  color: var(--ink-strong);
  line-height: 1.4;
}

.treatments-cta {
  margin: 1.25rem 0 0;
}

.treatments-cta a {
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.treatments-cta a:hover,
.treatments-cta a:focus-visible {
  color: var(--ink);
}

.treatments-cta-final {
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.treatments-pricelist-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  max-width: none;
}

.treatments-price-item {
  margin-top: 1.75rem;
  padding-top: 0;
  text-align: left;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.treatments-price-item .treatments-heading {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: none;
}

.treatments-price-intro {
  margin: 0 0 0.65rem;
  line-height: 1.5;
  text-align: left;
}

.treatments-price-bullets {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.treatments-price {
  margin: 0.75rem 0 0;
  font-weight: 700;
  color: var(--ink-strong);
  text-align: right;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background: var(--bg-panel);
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.6rem;
}

/* Året runt — centered intro + one featured month (admin-chosen) */
.seasons-page {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.seasons-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  line-height: 1.25;
  color: var(--ink-strong);
  margin: 0 auto 1.25rem;
  max-width: 18rem;
}

.seasons-intro {
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.seasons-intro p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.seasons-intro p:last-child {
  margin-bottom: 0;
}

/* Året runt — all MonthHook months (same copy as startsidan) */
.seasons-hooks {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.seasons-hook-divider {
  border: 0;
  border-top: 1px solid var(--ink-muted);
  opacity: 0.4;
  margin: 1.75rem auto;
  max-width: 14rem;
}

.seasons-page .month-hook-month {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
}

.season-feature {
  margin: 0 auto;
  max-width: 34rem;
  text-align: left;
}

.seasons-month-list {
  margin: 0 auto;
  max-width: 34rem;
}

.season-month-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* Året runt — native disclosure (first para visible, Läs mer opens rest) */
.season-feature-intro {
  margin-bottom: 0.25rem;
}

.season-feature-intro p {
  margin: 0 0 0.85rem;
}

.season-tip-details {
  margin-top: 0.35rem;
}

.season-tip-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  list-style: none;
}

.season-tip-summary::-webkit-details-marker {
  display: none;
}

.season-tip-summary::before {
  content: "▸";
  font-size: 0.85em;
  text-decoration: none;
  flex-shrink: 0;
}

.season-tip-details[open] > .season-tip-summary::before {
  content: "▾";
}

.season-tip-summary:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

.season-tip-more {
  padding-top: 0.5rem;
}

.season-feature-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink-strong);
  margin: 0 0 1rem;
}

.season-feature-icon {
  font-size: 1.35em;
  line-height: 1;
}

.season-feature-body {
  margin: 0 0 1rem;
}

.season-feature-body p {
  margin: 0 0 0.75rem;
  max-width: none;
}

/* Closing under current month tip — from Året runt ContentBlock */
.seasons-closing {
  margin: 2.25rem auto 0;
  max-width: 34rem;
  text-align: left;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.seasons-closing-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  line-height: 1.3;
  color: var(--ink-strong);
  margin: 0 0 1rem;
}

.seasons-closing-body p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
  color: var(--ink);
}

.seasons-closing-body p:last-child {
  margin-bottom: 0;
}

.season-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}

.season-check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  line-height: 1.45;
}

.season-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 1.05rem;
  line-height: 1.3;
}

.season-check-headline {
  font-weight: 700;
  color: var(--ink-strong);
}

.season-check-desc {
  font-weight: 400;
  color: var(--ink);
}

.season-closing {
  margin: 1.35rem 0 0;
  line-height: 1.5;
  color: var(--ink);
}

.season-closing-label {
  color: var(--ink-strong);
}

.season-closing-cta {
  color: var(--ink-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.season-closing-cta:hover,
.season-closing-cta:focus-visible {
  color: var(--ink);
}

.seasons-empty {
  margin-top: 1.5rem;
  color: var(--ink-muted);
}

/* Home “Månadens tips” uses the same tip card */
.month-tip .season-feature {
  margin-top: 0.5rem;
}

.month-tip .season-feature-heading {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  justify-content: center;
  text-align: center;
}

.month-tip .season-check-list,
.month-tip .season-closing {
  text-align: left;
}

.gallery-item figcaption {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.service-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

/* Behandlingar + prislista — treatment cards: image left, copy right, divider between */
.treatments-page .treatments-lead,
.prices-page .prices-lead {
  font-weight: 700;
  color: var(--ink-strong);
}

.treatments-intro,
.prices-intro {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 38rem;
}

.treatments-category {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  color: var(--ink-strong);
  text-align: center;
  margin: 2rem 0 0.35rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--ink-strong);
}

.treatments-page {
  max-width: 52rem;
}

.treatment-card,
.price-card {
  text-align: left;
  margin: 0;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--ink-strong);
}

.treatment-card--split {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.38fr) minmax(0, 1fr);
  gap: 1.15rem 1.6rem;
  align-items: start;
}

.treatment-card-media {
  min-width: 0;
}

.treatment-card-image {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  margin: 0;
  display: block;
}

.treatment-card-copy {
  min-width: 0;
}

.treatment-card--split .treatment-card-body p,
.treatment-card--split .body-section-heading,
.treatment-card--split .body-section-checks {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}

.treatment-card-title,
.price-card-title {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--ink-strong);
}

.treatment-card-meta,
.price-card-meta {
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.treatment-card-body p,
.price-card-body p {
  margin: 0 0 0.7rem;
}

.treatment-card-body .body-section-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.7rem 0 0.35rem;
}

.treatment-card-body .body-section-checks li::before {
  content: "✓";
}

.treatment-card--info .treatment-card-title,
.price-card--info .price-card-title {
  font-size: 1.15rem;
}

.treatment-card-action,
.price-card-action {
  margin: 1rem 0 0;
  text-align: left;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.slot-day {
  margin-bottom: 1.15rem;
}

.slot-day h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  text-decoration: none;
  color: var(--ink-strong);
  min-width: 4.5rem;
  min-height: 44px;
  text-align: center;
}

.slot-chip:hover {
  background: var(--bg-soft);
}

.slot-chip:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

.setup-page {
  text-align: center;
}

.stack-form p,
.form-row {
  margin: 0 0 0.85rem;
}

.form-control,
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-strong);
  font: inherit;
}

.confirm-list {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.4rem 1rem;
  max-width: 28rem;
  margin: 1.5rem auto;
}

.confirm-list dt {
  font-weight: 500;
}

.confirm-list dd {
  margin: 0;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.dash-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 7rem;
}

.dash-card:hover {
  background: var(--bg-soft);
}

.dash-panel {
  margin: 1.75rem 0;
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

/* Staff week table — open hours and lunch per weekday */
.week-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

.week-table th,
.week-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.35rem;
  text-align: left;
  vertical-align: middle;
}

.week-table input[type="time"],
.week-table input[type="checkbox"] {
  max-width: 8rem;
}

.upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upcoming-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
}

.badge-booked {
  color: var(--flash-ok);
}

.site-footer {
  /* Stays at bottom via body flex + main flex-grow; do not remove margin-top:auto */
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.2rem 1.25rem 0.8rem;
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem 1.25rem;
}

.footer-brand p,
.footer-contact p,
.footer-booking p {
  margin: 0 0 0.45rem;
}

.footer-brand p:last-child,
.footer-contact p:last-child,
.footer-booking p:last-child {
  margin-bottom: 0;
}

.footer-name,
.footer-label {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--ink-strong);
}

/* Footer booking invite — “Boka” is a link to the booking page */
.footer-booking-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

.footer-booking-note a {
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-booking-note a:hover,
.footer-booking-note a:focus-visible {
  color: var(--ink);
}

.footer-booking .footer-address {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

.footer-email .footer-contact-term,
.footer-phone .footer-contact-term {
  font-weight: 600;
  color: var(--ink-strong);
}

.footer-email a,
.footer-phone a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-email a:hover,
.footer-email a:focus-visible,
.footer-phone a:hover,
.footer-phone a:focus-visible {
  color: var(--ink-strong);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0.95rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-credit {
  margin: 0;
  margin-left: auto; /* Stay in the right corner */
  text-align: right;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-credit a {
  font-weight: 500;
}

.a11y-statement ul {
  text-align: left;
  max-width: 40rem;
  margin: 0.75rem auto 1.25rem;
  padding-left: 1.25rem;
}

.a11y-statement h2 {
  margin-top: 1.5rem;
  text-align: center;
}

.site-main:focus {
  outline: none;
}

.site-main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Footer social icons — URLs from SiteSettings; hide section if both empty */
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink-strong);
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  min-height: 44px;
  transition: background 180ms ease, color 180ms ease;
}

.social-link:hover {
  background: var(--bg);
  color: var(--accent);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.social-text {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0 0.25rem;
  }

  .site-nav .nav-submenu {
    position: static;
    width: 100%;
    margin: 0.25rem 0 0.35rem;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    padding: 0.15rem 0 0.15rem 0.75rem;
    background: transparent;
  }


  .feature,
  .feature-right {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .confirm-list {
    grid-template-columns: 1fr;
  }

  .treatment-card--split {
    grid-template-columns: 1fr;
  }

  .about-presentation-split {
    grid-template-columns: 1fr;
  }

  .treatment-card-image {
    max-height: 200px;
  }

  .brand-tagline {
    display: none;
  }
}

/* Staff handbook — large readable type; print hides chrome */
.staff-guide {
  max-width: 42rem;
}

.staff-guide-toc {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}

.staff-guide-toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.staff-guide h2 {
  margin-top: 2rem;
}

.staff-guide h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.staff-guide code {
  font-size: 0.95em;
  background: var(--bg-panel);
  padding: 0.1em 0.35em;
}

.staff-guide-print {
  margin-left: 0.25rem;
}

@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .staff-guide-print {
    display: none !important;
  }

  .staff-guide {
    max-width: none;
  }

  .staff-guide a[href^="http"]::after,
  .staff-guide a[href^="/"]::after {
    content: none;
  }
}
