/* =========================================================
   ERGO — placeholder brand styles
   Swap the CSS variables below to re-skin the whole site.
   ========================================================= */

/* Self-hosted: Aka-Acid GR Poiret (SIL OFL) — chosen over Google's
   Poiret One because this cut covers modern Greek glyphs.
   Modified: the font's capital Θ was drawn like an Ο, so U+0398 now uses the
   small θ glyph (re-run that cmap change if the font file is ever replaced).
   License: assets/fonts/LICENSE-AC-Poiret.txt */
/* Self-hosted: GFS Neohellenic (SIL OFL), Greek Font Society. Only the Regular
   weight is included, so bold body text is synthesised by the browser.
   size-adjust: the font runs small, so it's scaled up wherever it's used
   (body text, explicit rem sizes) without touching headings or layout. */
@font-face {
  font-family: "GFS Neohellenic";
  src: url("../assets/fonts/GFSNeohellenic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 115%;
}

/* Self-hosted: BPreplay (SIL OFL), © 2004 Magenta / 2008 George Triantafyllakos.
   Regular weight only. It runs large (tall x-height), so it's scaled down a little. */
@font-face {
  font-family: "BPreplay";
  src: url("../assets/fonts/BPreplay.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 92%;
}

@font-face {
  font-family: "Aka Acid Poiret";
  src: url("../assets/fonts/AC-Poiret.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Self-hosted copies of the Google Fonts (all SIL OFL), so visitors' browsers never
   contact Google. Latin, Latin Extended and Greek subsets only (Nunito Sans and
   Poiret One have no Greek). Nunito Sans and Ubuntu Sans are variable fonts:
   one file covers every weight. */
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-greek.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/NunitoSans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/NunitoSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poiret One";
  src: url("../assets/fonts/PoiretOne-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poiret One";
  src: url("../assets/fonts/PoiretOne-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ubuntu Sans";
  src: url("../assets/fonts/UbuntuSans-greek.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Ubuntu Sans";
  src: url("../assets/fonts/UbuntuSans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu Sans";
  src: url("../assets/fonts/UbuntuSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* From the final logo: teal + pastel blue / peach / coral / sage */
  --color-bg: #fdfefe;
  --color-bg-alt: #eef7f8;
  --color-primary: #0d8790;
  --color-primary-dark: #0a6c74;
  --color-secondary: #fde6c8;
  --color-accent: #a5c6ab;
  --color-accent-dark: #55866d;
  --color-sky: #a2d5f4;
  --color-coral: #fa9687;
  --color-text: #21383c;
  --color-text-light: #5d7377;
  --color-white: #ffffff;
  --color-border: #dcebec;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(13, 70, 80, 0.09);
  --shadow-card: 0 6px 18px rgba(13, 70, 80, 0.07);

  --font-heading: "Aka Acid Poiret", "Poiret One", "Segoe UI", sans-serif;
  --font-body: "BPreplay", "Nunito Sans", "Segoe UI", sans-serif;
  /* Loaded and available, not yet wired into any role: */
  --font-ubuntu-sans: "Ubuntu Sans", "Segoe UI", sans-serif;
  --font-rounded: "Comfortaa", "Ubuntu Sans", "Segoe UI", sans-serif;

  --container-width: 1140px;
}

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

html {
  /* never a sideways scroll on phones; clip (not hidden) keeps the sticky header working */
  overflow-x: clip;
  scroll-behavior: smooth;
  /* Keeps #anchor targets clear of the sticky header. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  /* Poiret One only ships a single (regular) weight — asking for 700 just
     makes the browser fake-bold it, which looks heavier and uneven rather
     than actually bold. 400 is its true, lighter weight. */
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-light);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75em;
}

.eyebrow--lg {
  font-size: 1.1rem;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 254, 254, 0.92);
  backdrop-filter: blur(6px);
}

/* Wavy bottom edge: a strip in the header's colour hangs below it, with the
   border traced along the wave. It sits under the mobile menu (z-index: -1). */
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: -1;
  height: var(--header-wave);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M-4 -4H1444V38C1290 78 1120 92 940 60S600 4 420 30 130 86 -4 52Z' fill='rgba(253,254,254,0.92)' stroke='%23dcebec' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
  pointer-events: none;
}

/* The header is a little wider than the page content, so the logo and the
   full menu fit side by side on desktop */
.site-header .nav {
  max-width: 1400px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px; /* keeps the container's side padding */
}

.logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text);
}

/* The site's name, with the therapist's name centred under it */
.logo-text {
  display: flex;
  white-space: nowrap;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  text-align: center;
  line-height: 1.15;
}

/* the name in teal capitals, as on the business card (logo-card.jpg), in a soft rounded font */
.logo-owner {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 0.58em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.logo-mark {
  height: 54px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.is-active > .nav-link {
  background: var(--color-secondary);
  color: var(--color-text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.lang-switch {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.lang-switch:hover {
  background: var(--color-secondary);
}

/* ---------- Accessibility tools (header button + panel) ---------- */
.a11y {
  position: relative;
}

.a11y-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"] {
  background: var(--color-secondary);
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 110;
  display: grid;
  gap: 6px;
  width: min(270px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1rem;
}

.a11y-size {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.a11y-size span {
  flex: 1;
}

.a11y-size output {
  min-width: 3.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.a11y-panel button {
  font: inherit;
  color: var(--color-text);
  cursor: pointer;
}

.a11y-size button {
  width: 36px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-weight: 700;
}

.a11y-size button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Options are on/off switches: the dot on the right fills when on */
.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  text-align: left;
}

.a11y-option::after {
  content: "";
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 9px 50%, var(--color-white) 0 6px, transparent 7px) var(--color-border);
  transition: background 0.15s ease;
}

.a11y-option[aria-pressed="true"] {
  border-color: var(--color-primary);
}

.a11y-option[aria-pressed="true"]::after {
  background: radial-gradient(circle at 21px 50%, var(--color-white) 0 6px, transparent 7px) var(--color-primary);
}

.a11y-reset {
  margin-top: 4px;
  padding: 6px;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a11y-panel button:focus-visible,
.a11y-toggle:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Narrow phones: the header holds the name, accessibility, language and menu
   buttons, so everything tightens up a little to keep the name on one line. */
@media (max-width: 480px) {
  .nav-cta {
    gap: 8px;
  }

  .logo {
    gap: 6px;
    font-size: 1.2rem;
  }

  .site-header .logo-mark {
    height: 44px;
  }

  .a11y-toggle {
    width: 34px;
    height: 34px;
  }

  .lang-switch {
    padding: 6px 9px;
  }
}

@media (max-width: 380px) {
  .site-header .nav {
    gap: 8px;
    padding-inline: 16px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .site-header .logo-mark {
    height: 40px;
  }
}

/* The settings themselves (classes on <html>, set by main.js) */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 137.5%; }

html.a11y-contrast {
  --color-text: #000000;
  --color-text-light: #1f3034;
  --color-border: #6b8286;
  --color-primary: #055960;
  --color-primary-dark: #033e43;
  --color-accent-dark: #2d5a43;
}

html.a11y-readable {
  --font-heading: var(--font-body);
}

html.a11y-readable :is(h1, h2, h3, h4) {
  font-weight: 600;
  letter-spacing: 0;
}

html.a11y-links a:not(.btn, .logo, .lang-switch) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.a11y-motion {
  scroll-behavior: auto;
}

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-bg);
  padding: 100px 0 96px;
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-accent-dark);
  font-weight: 500;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
}

/* Home hero: the slogan sits under the centre's name, a step smaller */
.hero h1.hero-tagline {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

/* Home: the hero's longer text, in its own short section under the hero */
.home-welcome {
  padding-bottom: 0;
}

.home-welcome .lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Homepage hero: text on the left, photo on the right (stacked on small screens) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-grid .hero-inner {
  max-width: none;
  margin: 0;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* One soft organic accent shape — used on the homepage hero only, so it
   reads as a single playful gesture rather than a repeated motif. */
.hero-blob {
  position: absolute;
  z-index: 1;
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
}

.hero-blob--peach {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: var(--color-secondary);
  opacity: 0.9;
}

.hero-blob--blue {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -50px;
  background: var(--color-sky);
  opacity: 0.45;
  border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%;
}

.page-hero {
  background: var(--color-bg-alt);
  padding: 76px 0 70px;
}

.page-hero .eyebrow {
  color: var(--color-primary-dark);
}

/* ---------- Placeholder art ---------- */
.placeholder-art {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.split-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Intro / two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-reverse .split-media {
  order: 2;
}

/* For upright photos: less cropping than 4:3 */
.split-photo--portrait {
  aspect-ratio: 4 / 5;
}

/* Photo cut into the site's organic shape, with a soft sky blob behind it */
.split-media--blob {
  position: relative;
  z-index: 0; /* keeps the shape behind the photo but above the section background */
}

.split-media--blob::before {
  content: "";
  position: absolute;
  inset: 8% -5% -5% 8%;
  z-index: -1;
  background: var(--color-sky);
  opacity: 0.45;
  border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%;
}

.split-media--blob .split-photo {
  aspect-ratio: 1;
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  box-shadow: none;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-primary-dark);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card a.card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}

/* ---------- Team ---------- */
.team-member {
  text-align: center;
}

.team-avatar {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--shadow-card);
}

.team-member h3 {
  margin-bottom: 0.2em;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

/* ---------- Info / hours band ---------- */
.info-band {
  background: var(--color-accent-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-band h2,
.info-band .eyebrow {
  color: var(--color-white);
}

.hours-list {
  display: grid;
  gap: 10px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  font-size: 0.95rem;
}

.hours-list li span:last-child {
  font-weight: 700;
}

/* the hours at the top, the address in the bottom right corner */
.info-band-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.info-band-address {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
}

.info-band-address svg {
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 135, 144, 0.25);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.form-consent input {
  width: auto;
  margin-top: 4px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* Error message under the send button (the form keeps what was typed) */
.form-status {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(192, 80, 63, 0.35);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: rgba(250, 150, 135, 0.12);
  color: #a3412f;
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

#contact-form {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#contact-form.form-fading {
  opacity: 0;
  transform: translateY(-6px);
}

/* .form-grid's display: grid would otherwise override the hidden attribute */
#contact-form[hidden] {
  display: none;
}

/* Thank-you card that replaces the form after sending */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  text-align: center;
  animation: form-success-in 0.45s ease both;
}

.form-success[hidden] {
  display: none;
}

.form-success:focus {
  outline: none;
}

.form-success:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.form-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  animation: form-success-pop 0.5s 0.15s ease both;
}

.form-success-icon svg {
  width: 36px;
  height: 36px;
}

.form-success-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.form-success-text {
  max-width: 34ch;
  margin: 0 0 24px;
  color: var(--color-text-light);
}

@keyframes form-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes form-success-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  #contact-form,
  .form-success,
  .form-success-icon {
    transition: none;
    animation: none;
  }
}

/* ---------- Contact info list ---------- */
.contact-info-list {
  display: grid;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.map-embed {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-card);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-band + .map-embed {
  margin-top: 28px;
}

.map-link {
  margin: 14px 0 0;
  text-align: right;
}

@media (max-width: 700px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #123b40;
  color: #cfe3e5;
  padding: calc(var(--wave) + 32px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1em;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
}

.footer-grid a:hover {
  color: var(--color-primary);
}

.footer-logo {
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row a:hover {
  background: var(--color-primary);
}

/* ---------- Scroll-to-top swing ----------
   The kid from the logo-mark hangs on a rope from just under the header.
   The rope lengthens as the page scrolls (it doubles as a progress bar), and
   the swing sways like a pendulum when the page moves, and comes to rest
   while hovered so it's easy to click. main.js sets --rope (px) and
   --swing (rad). Click the kid (or its label) to go back up. */
.scroll-top {
  --kid-width: 40px;
  position: fixed;
  top: 90px;
  bottom: 72px; /* room for the label under the kid */
  right: 56px;
  width: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-top.is-visible {
  opacity: 1;
}

.scroll-top-swing {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(calc(var(--swing, 0) * 1rad));
  transform-origin: 0 0;
}

/* Same coral as the rope drawn in the logo */
.scroll-top-rope {
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: calc(var(--rope, 24) * 1px);
  background: #f58e6b;
  opacity: 0.6;
}

.scroll-top-kid {
  position: absolute;
  top: calc(var(--rope, 24) * 1px - 1px);
  left: 0;
  width: var(--kid-width);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* the rope sits at 47% of the image's width */
  transform: translateX(-47%);
}

.scroll-top.is-visible .scroll-top-kid {
  pointer-events: auto;
}

/* A slightly bigger click target than the drawing itself */
.scroll-top-kid::before {
  content: "";
  position: absolute;
  inset: -10px;
}

/* Sits under the kid and counter-rotates so it always reads level.
   Narrow enough to stay on screen; longer labels wrap onto two lines. */
.scroll-top-label {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  max-width: 7.5em;
  margin-top: 2px;
  padding: 2px 8px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(253, 254, 254, 0.92);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%) rotate(calc(var(--swing, 0) * -1rad));
  transform-origin: center top;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.scroll-top-kid:hover .scroll-top-label,
.scroll-top-kid:focus-visible .scroll-top-label {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.scroll-top-kid img {
  display: block;
  width: 100%;
  height: auto;
  /* the image is filled white inside (logo-mark-solid.png); a faint white outline
     also keeps the thin lines (hair, motion lines) visible over the dark footer */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.9));
}

.scroll-top-kid:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 12px;
}

/* On small screens a long rope would hang over the text, so the kid swings
   on a short rope in the bottom-right corner instead. */
@media (max-width: 700px) {
  .scroll-top {
    --kid-width: 34px;
    top: auto;
    bottom: 96px;
    right: 68px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-top {
    transition: none;
  }
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* the footer's columns get too narrow for their links side by side */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav-cta .btn {
    display: none;
  }

  .split,
  .split-reverse .split-media {
    order: initial;
  }

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

  .split-media--blob {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-grid .hero-actions {
    justify-content: center;
  }

  .info-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 120px;
  }
}

.footer-logo .logo-mark {
  background: var(--color-white);
  border-radius: 12px;
  padding: 4px 6px;
  height: 52px;
}

/* ---------- Curved section edges + logo-style background dots ---------- */
:root {
  --dot-sky: rgba(162, 213, 244, 0.6);
  --dot-peach: rgba(253, 213, 162, 0.8);
  --dot-coral: rgba(250, 150, 135, 0.45);
  --dot-sage: rgba(165, 198, 171, 0.65);
  /* Wavy edges: the hero's bottom, the top and bottom of every .section--alt
     and the top of the footer are page-coloured strips masked into a wave. */
  --wave: 84px;
  --header-wave: 22px;
  /* filled below the wave: for dividers on a section's bottom edge */
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58C160 18 330 14 520 46S880 98 1080 66 1340 22 1440 40V100H0Z'/%3E%3C/svg%3E");
  /* filled above the wave: for dividers on a section's top edge */
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V44C1280 84 1110 88 920 56S560 2 360 34 100 80 0 60Z'/%3E%3C/svg%3E");
}

.section,
.site-footer {
  position: relative;
}

.section--alt::before,
.section--alt::after,
.hero::after,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--wave);
  pointer-events: none;
  -webkit-mask: var(--wave-bottom) bottom / 100% 100% no-repeat;
  mask: var(--wave-bottom) bottom / 100% 100% no-repeat;
}

.section--alt::before {
  top: -1px;
  background: var(--color-bg);
  -webkit-mask-image: var(--wave-top);
  mask-image: var(--wave-top);
}

.section--alt::after,
.hero::after {
  bottom: -1px;
  background: var(--color-bg);
}

/* above the home hero's photo when it's used as a background */
.hero::after {
  z-index: 2;
}

main > .section--alt:last-child::after {
  display: none;
}

.site-footer::before {
  top: -1px;
  background: var(--color-bg-alt);
  -webkit-mask-image: var(--wave-top);
  mask-image: var(--wave-top);
}

.page-hero {
  position: relative;
  padding-bottom: 96px;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
  background: var(--color-secondary);
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  opacity: 0.9;
}

.page-hero {
  background-image:
    radial-gradient(circle at 6% 30%, var(--dot-sky) 0 22px, transparent 23px),
    radial-gradient(circle at 12% 78%, var(--dot-coral) 0 9px, transparent 10px),
    radial-gradient(circle at 94% 80%, var(--dot-sage) 0 14px, transparent 15px);
}

.section:not(.section--alt) {
  background-image:
    radial-gradient(circle at 3% 12%, var(--dot-peach) 0 20px, transparent 21px),
    radial-gradient(circle at 97% 88%, var(--dot-sky) 0 34px, transparent 35px),
    radial-gradient(circle at 93% 14%, var(--dot-coral) 0 9px, transparent 10px);
}

.section--alt {
  background-image:
    radial-gradient(circle at 96% 24%, var(--dot-sage) 0 22px, transparent 23px),
    radial-gradient(circle at 4% 78%, var(--dot-sky) 0 30px, transparent 31px),
    radial-gradient(circle at 8% 22%, var(--dot-coral) 0 8px, transparent 9px);
}

@media (max-width: 700px) {
  :root {
    --wave: 40px;
    --header-wave: 12px;
  }

  .section,
  .section--alt,
  .page-hero {
    background-image: none;
  }
}

/* ---------- Photo slider (Ο χώρος μας) ---------- */
.slider {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-soft);
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.slider-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-btn[hidden] {
  display: none;
}

.slider-btn svg {
  width: 22px;
  height: 22px;
}

.slider-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.slider-btn:focus-visible,
.slider-thumb:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--color-white);
  color: var(--color-primary);
}

.slider-btn--prev {
  left: -24px;
}

.slider-btn--next {
  right: -24px;
}

.slider-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slider-thumbs[hidden] {
  display: none;
}

.slider-thumbs::-webkit-scrollbar {
  display: none;
}

/* Centred when they fit, scrollable from the first one when they don't. */
.slider-thumb:first-child {
  margin-left: auto;
}

.slider-thumb:last-child {
  margin-right: auto;
}

.slider-thumb {
  flex: 0 0 auto;
  width: 88px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.slider-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-thumb:hover {
  opacity: 1;
}

.slider-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .slider-track,
  .slider-thumbs {
    scroll-behavior: auto;
  }

  .slider-thumb {
    transition: none;
  }
}

@media (max-width: 600px) {
  .slider-thumb {
    width: 64px;
  }
}

@media (max-width: 1040px) {
  .slider-btn--prev {
    left: 10px;
  }

  .slider-btn--next {
    right: 10px;
  }
}

/* ---------- Equipment list ---------- */
.equipment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.equipment-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--color-text);
}

.equipment-list li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-sky);
}

.equipment-list li:nth-child(4n + 2)::before { background: var(--color-secondary); }
.equipment-list li:nth-child(4n + 3)::before { background: var(--color-coral); }
.equipment-list li:nth-child(4n + 4)::before { background: var(--color-accent); }

@media (max-width: 860px) {
  .equipment-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .equipment-list {
    grid-template-columns: 1fr;
  }
}

.nav-link {
  white-space: nowrap;
}

/* ---------- Page hero variations (one per inner page) ---------- */

/* About: text left, logo illustration in a circle */
.page-hero--about {
  text-align: left;
}

.page-hero--about::before {
  display: none;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.page-hero--about .hero-inner {
  margin: 0;
}

.page-hero-art {
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-secondary);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 14px rgba(162, 213, 244, 0.35);
}

.page-hero-art img {
  width: 62%;
  height: auto;
}

/* Occupational therapy: centred, with jump-link chips */
.page-hero--ergotherapeia {
  background-color: var(--color-bg-alt);
}

.page-hero--ergotherapeia::before {
  left: -110px;
  right: auto;
  top: auto;
  bottom: -80px;
  background: var(--color-sky);
  opacity: 0.4;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.service-chips a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-white);
  border: 2px solid var(--color-sky);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.service-chips li:nth-child(2) a { border-color: var(--color-secondary); }
.service-chips li:nth-child(3) a { border-color: var(--color-coral); }
.service-chips li:nth-child(4) a { border-color: var(--color-accent); }
.service-chips li:nth-child(5) a { border-color: var(--color-primary); }

.service-chips a:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.service-chips a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Contact: compact, left-aligned, quick actions */
.page-hero--contact {
  text-align: left;
  padding: 64px 0 88px;
  background-color: #eef6fb;
}

.page-hero--contact::before {
  width: 240px;
  height: 240px;
  top: auto;
  bottom: -60px;
  right: 6%;
  background: var(--color-coral);
  opacity: 0.25;
}

.page-hero--contact .hero-inner {
  margin: 0;
  max-width: 640px;
}

.page-hero--contact .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero-art {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-chips a {
    transition: none;
  }
}

.page-hero--about {
  background-image:
    radial-gradient(circle at 48% 18%, var(--dot-sky) 0 18px, transparent 19px),
    radial-gradient(circle at 4% 86%, var(--dot-coral) 0 9px, transparent 10px),
    radial-gradient(circle at 94% 80%, var(--dot-sage) 0 14px, transparent 15px);
}

.page-hero--contact {
  background-image:
    radial-gradient(circle at 62% 22%, var(--dot-sky) 0 18px, transparent 19px),
    radial-gradient(circle at 92% 30%, var(--dot-sage) 0 12px, transparent 13px);
}

/* =========================================================
   Menu with submenus
   ========================================================= */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.has-sub > .nav-link {
  padding-right: 6px;
}

.sub-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.sub-toggle svg {
  transition: transform 0.2s ease;
}

.sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sub-toggle:hover {
  background: var(--color-secondary);
}

.sub-toggle:focus-visible,
.sub-link:focus-visible,
.sub-all:focus-visible,
.related-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 120;
  width: 360px;
  padding-top: 12px;
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.sub-body,
.sub-menu > .sub-all {
  background: var(--color-white);
}

.sub-body {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-soft);
}

.sub-body > ul {
  display: grid;
  gap: 2px;
}

.sub-group-title {
  margin: 0;
  padding: 8px 12px 4px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.sub-body > ul + .sub-group-title {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

.has-sub.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

@media (hover: hover) and (min-width: 1401px) {
  .has-sub:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
}

.sub-link,
.related-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background 0.15s ease;
}

.sub-link:hover,
.sub-link[aria-current="page"] {
  background: var(--accent-soft, var(--color-bg-alt));
}

.sub-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft, var(--color-bg-alt));
  color: var(--accent-ink, var(--color-primary-dark));
}

.sub-text {
  display: grid;
  gap: 2px;
}

.sub-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
}

.sub-desc {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--color-text-light);
}

.sub-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border: 1px solid var(--color-border);
  border-top: 1px dashed var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.sub-all:hover {
  background: var(--color-bg-alt);
}

/* Menu collapses into the hamburger earlier now that it has six items. */
@media (max-width: 1400px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: var(--color-bg);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-width: 560px;
    margin: 0 auto;
  }

  .nav-item {
    flex-wrap: wrap;
  }

  .nav-link {
    flex: 1;
    padding: 12px 16px;
  }

  .sub-toggle {
    width: 44px;
    height: 44px;
  }

  .sub-menu {
    position: static;
    flex-basis: 100%;
    width: auto;
    padding: 4px 0 8px 12px;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }

  .has-sub.is-open > .sub-menu {
    display: block;
    transform: none;
  }

  .sub-body,
  .sub-all {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .sub-body {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .sub-all {
    padding: 10px 12px;
    justify-content: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   Accent colours (one per service / assessment page)
   ========================================================= */
.accent-sky,
[data-accent="sky"] {
  --accent: var(--color-sky);
  --accent-soft: #e3f2fc;
  --accent-ink: #2d6f96;
}

.accent-peach,
[data-accent="peach"] {
  --accent: #fdd5a2;
  --accent-soft: #fff1de;
  --accent-ink: #a5641c;
}

.accent-coral,
[data-accent="coral"] {
  --accent: var(--color-coral);
  --accent-soft: #fee6e2;
  --accent-ink: #b0473a;
}

.accent-sage,
[data-accent="sage"] {
  --accent: var(--color-accent);
  --accent-soft: #e6f0e8;
  --accent-ink: var(--color-accent-dark);
}

.accent-teal,
[data-accent="teal"] {
  --accent: #7fc3c8;
  --accent-soft: #e0f1f2;
  --accent-ink: var(--color-primary-dark);
}

.card[class*="accent-"] .card-icon {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.card-title-link {
  color: inherit;
}

.card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card {
  position: relative;
}

.card-title-link:focus-visible {
  outline: none;
}

.card:has(.card-title-link:focus-visible) {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* =========================================================
   Topic hero (service / assessment pages)
   ========================================================= */
.page-hero--topic {
  text-align: left;
  background-color: var(--accent-soft, var(--color-bg-alt));
  background-image:
    radial-gradient(circle at 46% 16%, var(--dot-sky) 0 14px, transparent 15px),
    radial-gradient(circle at 4% 88%, var(--dot-coral) 0 9px, transparent 10px);
}

.page-hero--topic::before {
  display: none;
}

.page-hero--topic .hero-inner {
  margin: 0;
}

.page-hero--topic .hero-actions {
  justify-content: flex-start;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--accent-ink, var(--color-primary));
}

.breadcrumb a {
  color: var(--accent-ink, var(--color-primary-dark));
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.topic-art {
  position: relative;
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
}

.topic-art-circle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--accent-ink, var(--color-primary));
  box-shadow: 0 0 0 16px var(--accent, var(--color-sky)), var(--shadow-soft);
}

.topic-art-circle svg {
  stroke-width: 1.5;
}

.topic-art-dot {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

.topic-art-dot--1 {
  width: 34px;
  height: 34px;
  top: -14px;
  right: 18px;
  background: var(--color-coral);
}

.topic-art-dot--2 {
  width: 22px;
  height: 22px;
  bottom: 4px;
  left: -10px;
  background: var(--color-sky);
}

.topic-art-dot--3 {
  width: 16px;
  height: 16px;
  bottom: 40px;
  right: -22px;
  background: var(--color-accent);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--accent-ink, var(--color-primary));
}

.hero-facts span {
  display: grid;
  line-height: 1.2;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.hero-facts strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Building blocks used on the topic pages
   ========================================================= */
.narrow {
  max-width: 820px;
}

.centered {
  text-align: center;
}

.text-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-ink, var(--color-primary-dark));
}

.text-link:hover {
  text-decoration: underline;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.panel h3 {
  margin-bottom: 16px;
}

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

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.chip-list--center {
  justify-content: center;
  margin: 24px 0;
}

.chip-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft, var(--color-bg-alt));
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.tick-list {
  display: grid;
  gap: 12px;
}

.tick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-text);
}

.tick-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-ink, var(--color-primary));
}

/* Neutral bullets for lists of signs, where a tick would read as "good". */
.dot-list li::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin: 0.55em 4px 0 6px;
  border-radius: 50%;
  background: var(--color-sky);
}

/* in the logo's colours in turn, as in .equipment-list */
.dot-list li:nth-child(4n + 2)::before { background: #fdd5a2; }
.dot-list li:nth-child(4n + 3)::before { background: var(--color-coral); }
.dot-list li:nth-child(4n + 4)::before { background: var(--color-accent); }

.callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft, var(--color-bg-alt));
}

.callout--light {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.callout > svg {
  flex-shrink: 0;
  color: var(--accent-ink, var(--color-primary));
}

.callout h3 {
  margin-bottom: 8px;
}

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

.section .narrow > .callout + * {
  margin-top: 40px;
}

.everyday {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1.05rem;
}

/* Dysgraphia: signs written on a notebook page */
.notebook {
  position: relative;
  /* room on the left for the ✎ markers, right of the margin line */
  padding: 34px 32px 30px 84px;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  background-image:
    linear-gradient(90deg, transparent 46px, rgba(250, 150, 135, 0.55) 46px, rgba(250, 150, 135, 0.55) 48px, transparent 48px),
    repeating-linear-gradient(transparent 0 35px, #dcebf4 35px 36px);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1deg);
}

.notebook-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 36px;
}

.notebook li {
  line-height: 36px;
  color: var(--color-text);
  list-style: "✎  ";
}

.pull-quote {
  margin: 0;
  padding: 0 8%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--accent-ink, var(--color-primary-dark));
  text-wrap: balance;
}

.pull-quote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent, var(--color-sky));
}

/* Sensory integration: the senses + signs */
.sense-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.sense-row li {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  padding: 12px;
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  background: var(--accent-soft);
}

.sense-row li:nth-child(2) { background: #fff1de; }
.sense-row li:nth-child(3) { background: #fee6e2; }
.sense-row li:nth-child(4) { background: #e6f0e8; }
.sense-row li:nth-child(5) { background: #e0f1f2; }

.sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.sign-grid li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.sign-grid svg {
  flex-shrink: 0;
  color: var(--accent-ink);
}

/* A coloured dot instead of an icon (the items are questions, not ticks),
   in the logo's colours in turn */
.sign-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--color-sky);
}

.sign-grid li:nth-child(4n + 2) .sign-dot {
  background: #fdd5a2;
}

.sign-grid li:nth-child(4n + 3) .sign-dot {
  background: var(--color-coral);
}

.sign-grid li:nth-child(4n + 4) .sign-dot {
  background: var(--color-accent);
}

/* Feeding: a path of small steps */
.step-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}

.step-path li {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.step-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -21px;
  width: 22px;
  border-top: 3px dotted var(--accent);
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.step-path h3 {
  margin-bottom: 6px;
}

.step-path p {
  margin: 0;
  font-size: 0.95rem;
}

/* Group therapy: benefits + individual vs group */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-grid li {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.benefit-grid h3 {
  margin-bottom: 6px;
}

.benefit-grid p {
  margin: 0;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft, var(--color-bg-alt));
  color: var(--accent-ink, var(--color-primary));
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.compare-col {
  height: 100%;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  text-align: center;
}

.compare-col:last-child {
  background: var(--color-white);
  border: 2px solid var(--accent);
}

.compare-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--accent-ink);
  box-shadow: var(--shadow-card);
}

.compare-col p {
  margin: 0;
}

.compare-plus {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent-ink);
}

.compare-note {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
}

/* CO-OP: Goal – Plan – Do – Check loop */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.loop-step {
  position: relative;
  display: grid;
  gap: 6px;
  place-items: center;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--color-white);
  text-align: center;
}

.loop-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-ink);
  font-weight: 700;
}

.loop-word {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-ink);
}

.loop-question {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.loop-example {
  max-width: 700px;
  margin: 28px auto 0;
  text-align: center;
  font-style: italic;
}

/* Beery VMI: main test + percentiles */
.test-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.test-main {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.test-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.test-main .card-icon {
  background: var(--color-white);
}

.percentile {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.percentile-figure {
  margin: 0;
  text-align: center;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  max-width: 300px;
  margin: 0 auto;
}

.dot-grid span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-border);
}

.dot-grid span.on {
  background: var(--accent-ink);
}

.percentile-figure figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* "See also" links + closing CTA */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.related-list--large {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.related-link {
  height: 100%;
  padding: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.related-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.related-list--large .related-link {
  padding: 28px;
}

.topic-cta {
  background: var(--color-white);
}

/* ---------- Topic pages: smaller screens ---------- */
@media (max-width: 960px) {
  .step-path,
  .loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-path li::after,
  .loop-step::after {
    display: none;
  }

  .sign-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-grid {
    grid-template-columns: 1fr 1fr;
  }

  .test-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .two-col,
  .percentile,
  .compare,
  .related-list--large {
    grid-template-columns: 1fr;
  }

  .compare-plus {
    text-align: center;
  }

  .topic-art {
    width: 190px;
  }

  .notebook {
    transform: none;
  }
}

@media (max-width: 560px) {
  .sign-grid,
  .benefit-grid,
  .step-path,
  .test-grid {
    grid-template-columns: 1fr;
  }

  .loop {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .loop-word {
    font-size: 1.2rem;
  }

  .sense-row li {
    width: 104px;
    height: 104px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-menu,
  .sub-toggle svg {
    transition: none;
  }
}

.breadcrumb ol,
.step-path,
.loop {
  list-style: none;
  padding: 0;
}

.breadcrumb ol {
  margin: 0 0 18px;
}

.loop-step {
  align-content: center;
}

/* Services: "when does a child need OT" */
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
}

.when-conditions {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;
}

.when-conditions .chip-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

/* About page: training lists */
.course-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-list li {
  padding: 10px 0;
  border-top: 1px dashed var(--color-border);
}

.course-list li:first-child {
  border-top: none;
  padding-top: 0;
}

/* Panels in a row share the tallest height; the link sits at the bottom of each. */
.course-panel {
  display: flex;
  flex-direction: column;
}

.course-link {
  margin: auto 0 0;
  padding-top: 14px;
}

/* Occupational therapy page: longer reading text, "how we work" panels, FAQ */
.prose {
  max-width: 760px;
  margin: -16px auto 48px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.how-panels {
  margin-top: 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.faq-item summary .icon {
  flex-shrink: 0;
  color: var(--color-primary-dark);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
}

/* ---------- Cookie consent banner ----------
   A bar across the bottom of the screen until the visitor chooses (like the
   WordPress "Cookie Notice" bar). "Reject" hides the Google map. Reopened from
   "Cookie settings" in the footer. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 14px 24px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.consent[hidden] {
  display: none;
}

.consent-text {
  max-width: 760px;
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.consent-button {
  padding: 8px 22px;
  border: 1px solid var(--color-white);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-primary-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.consent-button:hover,
.consent-button:focus-visible {
  background: var(--color-secondary);
}

.consent-button:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* Cookies rejected: the map's place shows a note and a "Show map" button */
.map-embed {
  position: relative;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--color-text-light);
}

.map-placeholder p {
  max-width: 34em;
  margin: 0;
}

.cookies-rejected .map-embed:not(.is-shown) .map-placeholder {
  display: flex;
}

.cookies-rejected .map-embed:not(.is-shown) iframe {
  visibility: hidden;
}

.footer-consent {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 700px) {
  .consent {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .consent-button {
    flex: 1;
  }
}
