/* =========================================================
   EQ SLEEP — Design system
   Brand colours sampled directly from the supplied logo files.
   Typeface: Univers Next Pro (see @font-face below — font files
   are not yet available in this project; add them to
   /assets/fonts/ and the site will pick them up automatically).
   ========================================================= */

/* ---- Fonts -------------------------------------------------
   Univers Next Pro, as supplied by the client. Weights below use
   each file's own usWeightClass (read from the font, not assumed):
   Light=300, Regular=400, Medium=500, Bold=600, Heavy=700.
   The family also includes Thin/UltraLight/Black/ExtraBlack and
   Condensed + Italic variants — all shipped in /assets/fonts/ for
   future use, just not wired up below to keep initial page weight
   down (only the 5 styles this design actually uses are loaded). */
@font-face {
  font-family: "Univers Next Pro";
  src: url("../fonts/Univers_Next_Pro_Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univers Next Pro";
  src: url("../fonts/UniversNextProRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univers Next Pro";
  src: url("../fonts/Univers_Next_Pro_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univers Next Pro";
  src: url("../fonts/UniversNextProBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Univers Next Pro";
  src: url("../fonts/Univers_Next_Pro_Heavy.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colour — sampled from EQ_Sleep__logo.png / __NEG.png */
  --navy-900: #10192b;
  --navy-800: #15253e;
  --navy-700: #1f3252;
  --navy-600: #2c4266;
  --steel-400: #9ca6b0;
  --steel-300: #c3cad2;
  --steel-100: #eef1f3;

  /* Sleepwave accent — sampled from Sleepwavelogoliggenddonker.png */
  --wave-700: #2f5964;
  --wave-500: #3d6c7c;
  --wave-300: #7fa3ac;
  --wave-100: #e6eef0;

  --white: #ffffff;
  --bg-soft: #f5f6f7;
  --bg-soft-2: #eef0f2;
  --ink: #1c2430;
  --ink-muted: #5b6472;
  --line: #e2e5e9;

  --font-family: "Univers Next Pro", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Type scale (~1.25 ratio) */
  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.15rem;
  --text-lg: 1.4rem;
  --text-xl: 1.85rem;
  --text-2xl: 2.35rem;
  --text-3xl: 3.05rem;
  --text-4xl: 3.9rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --space-10: 9rem;

  --container: 1200px;
  --radius: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-family);
  color: var(--ink);
  background: var(--white);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
strong { font-weight: 600; color: var(--navy-800); }
.section-navy strong { color: var(--white); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-left: var(--space-6); padding-right: var(--space-6); }
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--navy-800);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ---- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1px solid var(--navy-800);
}
.btn-ghost:hover { background: var(--navy-800); color: var(--white); }
.btn-wave { background: var(--wave-500); color: var(--white); }
.btn-wave:hover { background: var(--wave-700); }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em; height: 1.4em;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.btn-icon svg { width: 0.8em; height: 0.8em; }

/* ---- Header / nav ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: var(--space-5);
}
.brand-logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 26px; width: auto; max-width: none; }

.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-7);
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy-800);
  padding: var(--space-2) 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--navy-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: var(--space-5); }

.lang-switch { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.lang-switch a {
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  color: var(--ink-muted);
  font-weight: 500;
}
.lang-switch a[aria-current="true"] { color: var(--navy-800); font-weight: 700; }
.lang-switch a:hover { background: var(--bg-soft); }
.lang-sep { color: var(--steel-300); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: var(--space-3) 0;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---- Hero -------------------------------------------------------- */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-8);
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  align-items: center;
}
.hero .container > * { min-width: 0; }
.hero-media {
  border-radius: 10px;
  overflow: hidden;
  order: -1;
  width: 100%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.hero-title {
  font-size: var(--text-2xl);
  font-weight: 300;
  margin-bottom: var(--space-5);
}
.hero-body {
  font-size: var(--text-md);
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}
.hero-mission {
  border-left: 2px solid var(--steel-400);
  padding-left: var(--space-5);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}
.hero-mission .label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wave-500);
  margin-bottom: var(--space-2);
}
.hero-mission p { color: var(--ink-muted); }

@media (min-width: 900px) {
  .hero .container { flex-direction: row; align-items: center; }
  .hero .container > * { flex: 1 1 0; }
  .hero-media { order: 1; aspect-ratio: 4/3.4; width: auto; }
  .hero-title { font-size: var(--text-4xl); }
}

/* ---- Sections ------------------------------------------------------ */
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: var(--text-2xl); }
.section-lede {
  font-size: var(--text-md);
  color: var(--ink-muted);
  margin-top: var(--space-4);
}
.section-navy .section-lede { color: var(--steel-300); }

/* ---- Brand cards (Two brands. One vision.) -------------------------- */
.brand-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (min-width: 860px) {
  .brand-grid { flex-direction: row; }
  .brand-grid > * { flex: 1 1 0; min-width: 0; }
}
.brand-card {
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brand-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.brand-card-media { aspect-ratio: 4/3; }
.brand-card-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-wordmark { height: 22px; width: auto; align-self: flex-start; margin-bottom: var(--space-4); }
.brand-card-tagline {
  font-size: var(--text-md);
  color: var(--navy-800);
  margin-bottom: var(--space-3);
}
.brand-card-body p.body-text {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}
@media (min-width: 640px) {
  .brand-card { flex-direction: row; }
  .brand-card.flip { flex-direction: row-reverse; }
  .brand-card-body { flex: 1.1 1 0; min-width: 0; }
  .brand-card-media { flex: 1 1 0; min-width: 0; aspect-ratio: auto; height: auto; }
}

/* ---- Split (image + text) sections ----------------------------------- */
.split {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}
.split-media { border-radius: 10px; overflow: hidden; width: 100%; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.split p + p { margin-top: var(--space-4); }
.split p { color: var(--ink-muted); }
@media (min-width: 860px) {
  .split { flex-direction: row; gap: var(--space-8); }
  .split > * { flex: 1 1 0; min-width: 0; }
  .split.reverse { flex-direction: row-reverse; }
}

/* ---- Zones / pill list ----------------------------------------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.pill {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--steel-300);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy-800);
}

/* ---- Quote ------------------------------------------------------------ */
.quote-block {
  border-left: 3px solid var(--wave-500);
  padding-left: var(--space-6);
  margin-top: var(--space-7);
}
.quote-block p {
  font-size: var(--text-lg);
  color: var(--navy-800);
  font-weight: 500;
  line-height: 1.4;
}
.quote-block cite {
  display: block;
  font-style: normal;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.quote-block cite strong { color: var(--navy-800); display: block; }

/* ---- Stat section with circle motif ----------------------------------- */
.stat-section { position: relative; overflow: hidden; }
.stat-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}
.stat-number {
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--navy-800);
  line-height: 1;
}
.stat-caption { color: var(--ink-muted); margin-top: var(--space-4); max-width: 40ch; }
.circle-motif { width: 100%; height: auto; }
@media (min-width: 860px) {
  .stat-grid { flex-direction: row; }
  .stat-grid > *:first-child { flex: 1 1 0; min-width: 0; }
  .stat-grid > *:last-child { flex: 1.2 1 0; min-width: 0; }
}

/* ---- Three-type grid (Sleepwave) --------------------------------------- */
.type-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .type-grid { flex-direction: row; }
  .type-grid > * { flex: 1 1 0; min-width: 0; }
}
.type-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Sleepwave type visual: brand gradient with the white type logo. */
.type-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.type-media img { height: 38%; width: auto; max-width: 60%; object-fit: contain; }
.type-media--wave { background-image: url("../img/gradient-wave.webp"); }
.type-media--flow { background-image: url("../img/gradient-flow.webp"); }
.type-media--still { background-image: url("../img/gradient-still.webp"); }
.type-body { padding: var(--space-5) var(--space-6) var(--space-6); }
.type-card .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--wave-500);
  margin-bottom: var(--space-4);
}
.type-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); color: var(--wave-700); }
.type-card p { color: var(--ink-muted); font-size: var(--text-sm); }

/* ---- Closing list / combine block -------------------------------------- */
.combine-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-5) 0 var(--space-6);
}
@media (min-width: 640px) {
  .combine-list { flex-direction: row; flex-wrap: wrap; gap: 0 var(--space-6); }
  .combine-list li { flex: 1 1 45%; }
}
.combine-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--navy-800);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.combine-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wave-500);
  flex-shrink: 0;
}
.goal-line { font-size: var(--text-md); color: var(--navy-800); font-weight: 500; }
.goal-line .label { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--ink-muted); margin-bottom: var(--space-2); }
.section-navy .combine-list li { color: var(--white); border-bottom-color: rgba(255,255,255,0.18); }
.section-navy .combine-list li::before { background: var(--wave-300); }
.section-navy .goal-line { color: var(--white); }
.section-navy .goal-line .label { color: var(--steel-300); }
.section-navy .pill { border-color: rgba(255,255,255,0.35); color: var(--white); }

/* ---- Closing statement band --------------------------------------------- */
.closing-band { text-align: center; padding-top: var(--space-9); padding-bottom: var(--space-9); }
.closing-band h2 { font-size: var(--text-2xl); font-weight: 300; max-width: 20ch; margin-left: auto; margin-right: auto; }
.closing-band p { max-width: 56ch; margin: var(--space-5) auto 0; color: var(--steel-300); font-size: var(--text-md); }

/* ---- Contact page --------------------------------------------------------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .contact-grid { flex-direction: row; }
  .contact-grid > * { flex: 1 1 0; min-width: 0; }
}
.form-field { margin-bottom: var(--space-5); }
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  background: var(--white);
  font-size: var(--text-base);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-800);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  padding: var(--space-4);
  border-radius: var(--radius);
  display: none;
}
.form-status.is-success { display: block; background: var(--wave-100); color: var(--wave-700); }
.form-status.is-error { display: block; background: #fbeceb; color: #9a3b32; }
.form-status.is-sending { display: block; background: var(--bg-soft); color: var(--ink-muted); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-side { background: var(--bg-soft); border-radius: 10px; padding: var(--space-6); }
.contact-side h3 { font-size: var(--text-md); margin-bottom: var(--space-3); }
.contact-side .direct-email {
  display: inline-block;
  font-size: var(--text-md);
  color: var(--navy-800);
  font-weight: 500;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--navy-800);
}
.contact-side address { font-style: normal; color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.8; }

/* ---- Legal pages ----------------------------------------------------------- */
.legal-notice {
  background: #fff7e6;
  border: 1px solid #f0d68a;
  color: #6b5416;
  padding: var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}
.legal-section { margin-bottom: var(--space-7); max-width: 72ch; }
.legal-section h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.legal-section p { color: var(--ink-muted); }
.legal-section--wide { max-width: 100%; }

.cookie-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.cookie-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--text-sm); }
.cookie-table th, .cookie-table td {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cookie-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}
.cookie-table td:first-child { font-weight: 500; color: var(--navy-800); white-space: nowrap; }
.cookie-table td:last-child { white-space: nowrap; }
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table-note { color: var(--ink-muted); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 72ch; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-top: var(--space-8); padding-bottom: var(--space-6); }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 24px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--ink-muted); font-size: var(--text-sm); max-width: 32ch; }
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: var(--text-sm);
  color: var(--navy-800);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.footer-country { display: inline-flex; align-items: center; gap: var(--space-2); }
.flag-be {
  display: inline-flex;
  width: 18px; height: 12px;
  border-radius: 2px;
  overflow: hidden;
}
.flag-be span { flex: 1; }
.flag-be span:nth-child(1) { background: #000; }
.flag-be span:nth-child(2) { background: #FAE042; }
.flag-be span:nth-child(3) { background: #ED2939; }

@media (min-width: 760px) {
  .footer-top { flex-direction: row; }
  .footer-top > * { flex: 1 1 0; min-width: 0; }
  .footer-top > .footer-brand { flex: 1.6 1 0; }
}

/* ---- Cookie consent banner ------------------------------------------------------ */
.consent-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(16, 25, 43, 0.16);
  border-radius: 10px;
  padding: var(--space-6);
  z-index: 900;
  display: none;
  /* Never taller than the screen: scroll inside the banner instead of
     pushing its top out of view on small or short screens. */
  max-height: calc(100vh - 2 * var(--space-4));
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.consent-banner.is-visible { display: block; }
/* Once the preferences are open, the "Preferences" button has done its job. */
.consent-banner.is-detail-open [data-consent-settings] { display: none; }
.consent-banner h2 { font-size: var(--text-md); margin-bottom: var(--space-3); }
.consent-banner p { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--space-5); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.consent-actions .btn { flex: 1; justify-content: center; }
.consent-detail { margin-top: var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-5); display: none; }
.consent-detail.is-open { display: block; }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.consent-row h3 { font-size: var(--text-sm); margin-bottom: var(--space-1); }
.consent-row p { font-size: var(--text-xs); margin-bottom: 0; }
.consent-row + .consent-row { border-top: 1px solid var(--line); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--steel-300);
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.switch input:checked + .slider { background: var(--navy-800); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { background: var(--steel-400); opacity: .6; }
.consent-policy-link { display: inline-block; margin-top: var(--space-4); font-size: var(--text-xs); text-decoration: underline; }

/* ---- Utility text ---------------------------------------------------------------- */
.lede { font-size: var(--text-md); color: var(--ink-muted); max-width: 60ch; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--space-6); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-5 { margin-bottom: var(--space-5); }
.section-flush-top { padding-top: 0; }

/* One-off component variants (kept as real classes, not inline styles, so the
   site can ship a strict style-src with no 'unsafe-inline'). */
.stat-title { font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-3); }
.hero-subtitle { font-size: var(--text-md); color: var(--navy-800); margin-bottom: var(--space-4); }
.btn-icon-ghost { background: transparent; }
.btn-on-navy { background: var(--white); color: var(--navy-800); }
.btn-on-navy:hover { background: var(--bg-soft); }
.consent-save-btn { margin-top: var(--space-4); width: 100%; justify-content: center; }
.brand-wordmark.is-text { height: auto; font-size: 1.5rem; font-weight: 500; color: var(--navy-800); display: block; }

/* ---- Simple page hero (Contact / Legal) -------------------------------------------- */
.page-hero { padding-top: var(--space-8); padding-bottom: var(--space-6); }
.page-hero h1 { font-size: clamp(2rem, 9vw, var(--text-3xl)); font-weight: 300; max-width: 16ch; overflow-wrap: break-word; hyphens: auto; }

/* Equilli/Sleepwave hero title stays at the smaller "brand page" scale at every
   width (placed after the .hero-title desktop media query on purpose so it wins
   the cascade there too, without needing !important). */
.hero-title.hero-title--brand { font-size: var(--text-3xl); }

/* ---- Motion -------------------------------------------------------------------
   Subtle movement only: the layout and design stay exactly as delivered.
   Everything below is inactive until main.js adds .motion to <html>, so the
   page is fully visible without JavaScript, and it is skipped entirely for
   visitors who prefer reduced motion. */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* Scroll reveal */
.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance on page load */
.motion .hero-intro {
  opacity: 0;
  transform: translateY(20px);
  animation: eq-rise 1s var(--ease-out) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
.motion .hero-media img { animation: eq-settle 1.8s var(--ease-out) both; }
@keyframes eq-rise { to { opacity: 1; transform: none; } }
@keyframes eq-settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Images: slow zoom on hover */
.brand-card-media, .split-media { overflow: hidden; }
.brand-card-media img, .split-media img { transition: transform 1.2s var(--ease-out); }
.brand-card:hover .brand-card-media img,
.split-media:hover img { transform: scale(1.04); }

/* Buttons: arrow nudges forward */
.btn-icon svg { transition: transform .3s var(--ease-out); }
.btn:hover .btn-icon svg { transform: translateX(3px); }

/* Header gets a soft shadow once the page scrolls */
.site-header { transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(21, 37, 62, 0.08); }

/* Circle motif: dots move gently, like a slow wave */
.motion .circle-motif.is-visible circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: eq-wave 4.8s ease-in-out infinite;
}
@keyframes eq-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .motion .reveal, .motion .hero-intro { opacity: 1; transform: none; animation: none; transition: none; }
  .motion .hero-media img, .motion .circle-motif circle { animation: none; }
  .brand-card:hover .brand-card-media img, .split-media:hover img { transform: none; }
}

/* ---- Responsive fine-tuning ---------------------------------------------------- */
/* Small phones: keep the header logo at its true proportions by making the
   items next to it more compact instead of squeezing the logo. */
@media (max-width: 479px) {
  .site-header .container { gap: var(--space-3); }
  .header-right { gap: var(--space-2); }
  .brand-logo img { height: 22px; }
  .lang-switch { gap: 2px; }
  .lang-switch a { padding: 0.6rem 0.4rem; }
}
@media (max-width: 359px) {
  .brand-logo img { height: 20px; }
  .lang-sep { display: none; }
}
/* Tablets: give the footer columns room so the e-mail address isn't cut off. */
@media (min-width: 760px) and (max-width: 1023px) {
  .footer-top { flex-wrap: wrap; }
  .footer-top > .footer-brand { flex: 1 1 100%; }
}
/* Phones and small tablets: comfortable tap targets in the header. */
@media (max-width: 767px) {
  .brand-logo { min-height: 44px; }
  .lang-switch a { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}

/* Floating button to reopen the cookie banner after it was closed. */
.consent-reopen {
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 800;
  width: 44px; height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(16, 25, 43, 0.14);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.consent-reopen.is-visible { display: inline-flex; }
.consent-reopen:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 25, 43, 0.18); }
.consent-reopen:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 3px; }
.consent-reopen svg { width: 22px; height: 22px; }

/* Homepage Sleepwave card: on wider screens show the left of the room
   (curtain, artwork, bedside table) instead of the centre; phones keep
   the centred crop. */
@media (min-width: 640px) {
  .brand-card-media img.media-focus-left { object-position: 6% 50%; }
}
/* Phones and tablets: keep every large image in the same landscape ratio as
   the Sleepwave page, instead of letting portrait photos run very tall. */
@media (max-width: 899px) {
  .hero-media, .split-media { aspect-ratio: 4 / 3; }
  .hero-media img, .split-media img { width: 100%; height: 100%; object-fit: cover; }
}
