/* ==========================================================================
   Modmed — reševalna služba v podravski regiji (modmed.si)
   Base copied from pacient.si (keep in sync); Modmed theme overrides at the end of the file.
   Design system follows Pacient CGP 3.0 (Oct 2026): one star, three units —
   Pacient yellow #FFD83D, Modmed red #D33432, MCZ blue #005093. Archivo +
   Archivo Black for numbers, square corners, no shadows, 2 px rules, left
   alignment, three-colour signal band, white "arm" supergraphic. Black is
   never used as a colour surface. Photography stays in colour (client decision).
   ========================================================================== */

/* ---------- Fonts (Archivo, OFL, self-hosted variable 400–800) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  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: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  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: "Archivo Black";
  src: url("../fonts/archivo-black-latin-ext.woff2") format("woff2");
  font-weight: 900;
  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: "Archivo Black";
  src: url("../fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 900;
  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;
}
/* Metric-matched fallback keeps text from jumping when Archivo arrives. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 85%;
  descent-override: 20%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand (CGP 3.0 p.03): Pacient yellow, Modmed red, MCZ blue */
  --yellow: #ffd83d;            /* text on yellow is always ink, never white */
  --yellow-strong: #f5c518;     /* hover on yellow buttons */
  --yellow-10: #fff7d8;         /* row tint for Pacient lists */
  --blue: #005093;
  --blue-80: #3373a9;
  --blue-20: #ccdce9;
  --blue-10: #e6edf4;
  --red: #d33432;
  --red-strong: #b52a28;        /* hover on red; 80 % tint fails AA for button text */
  --red-text: #b52a28;          /* small red text on light grounds (brand red is 4.4:1 on paper) */
  --red-10: #fbebeb;
  --ink: #201e1d;
  --dark: #2d2b2b;
  --paper: #f4f3f2;             /* neutral, < 8 % black */
  --white: #fff;
  --muted: #57524f;             /* 7.3:1 on white */
  --muted-on-dark: #c9c4c0;     /* only over photography/blue */
  --line: var(--ink);
  --line-soft: #d9d6d3;

  /* Type */
  --font: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-black: "Archivo Black", "Archivo", "Archivo Fallback", Arial, sans-serif;  /* numbers, times, phones */
  --arm: clamp(56px, 7vw, 120px);  /* supergraphic arm thickness */
  --fs-display: clamp(2.75rem, 1.25rem + 5.4vw, 6.25rem);
  --fs-h2: clamp(2.125rem, 1.35rem + 2.9vw, 4rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-over: 0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --max: 1400px;
  --section: clamp(4.5rem, 2.8rem + 6.5vw, 9.5rem);
  --header-h: 76px;
  --band-h: 8px;                /* CGP 3.0: 8 px on screen */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 900ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.hero :focus-visible, .brand-banner :focus-visible, .svc__panel--brand :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: -200px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: calc(var(--band-h) + 0.5rem); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.surface-yellow { background: var(--yellow); color: var(--ink); }
.surface-yellow .muted, .surface-yellow .section-head .lead { color: var(--muted); }  /* 5.5:1 on yellow */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 0.5rem + 1.6vw, 2.5rem);
}

/* ---------- Type ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-over);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}
.overline::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}
.overline--plain::before { display: none; }
.overline--red { color: var(--red-text); }                       /* Modmed */
.overline--pacient { color: var(--ink); }
.overline--pacient::before { height: 4px; background: var(--yellow); }
.overline--blue { color: var(--blue); }

.display, .h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2, .section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 38em;
  text-wrap: pretty;
}
.muted { color: var(--muted); }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 1.1em; }
.prose p { text-wrap: pretty; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li + li { margin-top: 0.5rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 0.75rem; height: 2px;
  background: currentColor;
}
.prose h3 { margin-top: 2rem; }

/* Inline links: ink, always underlined (red belongs to Modmed in CGP 3.0). */
.link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow-strong);
}
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
.surface-yellow .link { text-decoration-color: currentColor; }

/* ---------- Signature band (CGP 03/04) ---------- */
/* Order is always yellow → red → blue from the left; only the ratio changes. */
.band {
  --y: 70%;            /* Pacient 70 · 15 · 15 (default: pacient.si is the Pacient site) */
  --r: 85%;
  height: var(--band-h);
  background: linear-gradient(90deg, var(--yellow) 0 var(--y), var(--red) var(--y) var(--r), var(--blue) var(--r) 100%);
}
.band--transport, .band--pacient { --y: 70%; --r: 85%; }
.band--modmed { --y: 15%; --r: 85%; }    /* 15 · 70 · 15 */
.band--health { --y: 15%; --r: 30%; }    /* MCZ 15 · 15 · 70 */
.band--group { --y: 33.333%; --r: 66.667%; }

/* ---------- Buttons (CGP 12: label left, min 44 px, square) ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.15rem 0.8rem 1.25rem;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn .icon { flex: none; width: 1.25rem; height: 1.25rem; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--primary:hover { --btn-bg: var(--yellow-strong); }
.btn--secondary:hover { --btn-bg: var(--yellow); }
.btn--modmed { --btn-bg: var(--red); --btn-fg: var(--white); --btn-bd: var(--red); }
.btn--modmed:hover { --btn-bg: var(--red-strong); --btn-bd: var(--red-strong); }
/* On a yellow surface the primary button is white with a dark border; outlines stay ink. */
.surface-yellow .btn--primary, .menu .btn--primary { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--ink); }
.surface-yellow .btn--primary:hover, .menu .btn--primary:hover { --btn-bg: var(--yellow-10); }
.surface-yellow .btn--light, .menu .btn--light { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.surface-yellow .btn--light:hover, .menu .btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--ink); }
/* Over the dark video the yellow primary needs no dark outline */
.hero .btn--primary, .js .has-hero .site-header:not(.is-solid) .header-cta.btn--primary { --btn-bd: var(--yellow); }
.hero .btn--primary:hover, .js .has-hero .site-header:not(.is-solid) .header-cta.btn--primary:hover { --btn-bd: var(--yellow-strong); }
.btn--blue { --btn-bg: var(--blue); --btn-fg: var(--white); --btn-bd: var(--blue); }
.btn--blue:hover { --btn-bg: #003f74; --btn-bd: #003f74; }
.btn--light { --btn-fg: var(--white); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.icon {
  width: 1.25rem; height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Arrow link used in lists */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
}
.arrow-link .icon { width: 1.1rem; height: 1.1rem; transition: transform var(--dur) var(--ease-out); }
.arrow-link:hover .icon { transform: translateX(4px); }
.arrow-link--red { color: var(--red-text); }
.arrow-link--pacient { color: var(--ink); border-bottom-color: var(--yellow-strong); }
.arrow-link--blue { color: var(--blue); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ink);
  transition: transform var(--dur) var(--ease-out);
}
.site-header__bar {
  position: relative;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 2px solid var(--line-soft);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}
.brand {
  position: relative;
  display: block;
  flex: none;
  width: clamp(124px, 9vw + 40px, 156px);
  aspect-ratio: 153 / 45.5;
}
.brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity var(--dur) var(--ease-out);
}
.brand .logo-neg { opacity: 0; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.6rem;
  font-size: 0.9875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.2rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  padding-inline: 0.25rem;
}
.header-phone strong { font-family: var(--font-black); font-size: 1.0625rem; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; }
.header-phone span { font-size: 0.75rem; font-weight: 500; opacity: 0.8; }
.header-cta { min-height: 2.875rem; padding-block: 0.6rem; white-space: nowrap; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  margin-right: -0.75rem;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__lines { position: relative; width: 22px; height: 12px; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 10px; }
.menu-open .menu-toggle__lines::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: 5px; transform: rotate(-45deg); }

/* Transparent header over the cinematic hero */
.js .has-hero .site-header:not(.is-solid) .site-header__bar {
  background: transparent;
  border-color: rgb(255 255 255 / 0.18);
}
.js .has-hero .site-header:not(.is-solid) { color: var(--white); }
.js .has-hero .site-header:not(.is-solid) .logo-pos { opacity: 0; }
.js .has-hero .site-header:not(.is-solid) .logo-neg { opacity: 1; }
.js .has-hero .site-header:not(.is-solid) .header-cta.btn--secondary { --btn-fg: var(--white); --btn-bd: var(--white); }
.js .has-hero .site-header:not(.is-solid) .header-cta.btn--secondary:hover { --btn-bg: var(--white); --btn-fg: var(--ink); }
.js .has-hero .site-header:not(.is-solid) :focus-visible { outline-color: var(--white); }
.site-header.is-hidden { transform: translateY(calc(-100% + var(--band-h))); }
.menu-open .site-header { transform: none; }

@media (max-width: 1279px) {
  .nav + .header-actions .header-phone { display: none; }
}
@media (max-width: 1023px) {
  .nav + .header-actions .header-phone { display: inline-flex; }
  .header-phone span { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .nav, .header-actions .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 479px) {
  .nav + .header-actions .header-phone { display: none; }
}

/* ---------- Mobile menu (modal dialog) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--band-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--yellow);
  color: var(--ink);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur) var(--ease-in-out), visibility 0s linear var(--dur);
}
.menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--dur) var(--ease-in-out), visibility 0s;
}
.menu__list { display: grid; gap: 0.25rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 2px solid rgb(32 30 29 / 0.18);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.menu__link small { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.menu__link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) .menu__link { transition-delay: 40ms; }
.menu.is-open li:nth-child(3) .menu__link { transition-delay: 80ms; }
.menu.is-open li:nth-child(4) .menu__link { transition-delay: 120ms; }
.menu.is-open li:nth-child(5) .menu__link { transition-delay: 160ms; }
.menu.is-open li:nth-child(6) .menu__link { transition-delay: 200ms; }
.menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.menu__foot .btn { width: 100%; }
.menu__note { font-size: var(--fs-small); color: var(--muted); }
.menu .link { color: var(--ink); text-decoration-color: currentColor; }
.menu-open { overflow: hidden; }
.menu-open .site-header__bar { background: var(--yellow) !important; border-color: rgb(32 30 29 / 0.18) !important; }
.menu-open .site-header { color: var(--ink) !important; }
.menu-open .logo-pos { opacity: 1 !important; }
.menu-open .logo-neg { opacity: 0 !important; }
.menu-open .site-header :focus-visible { outline-color: var(--blue) !important; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ==========================================================================
   Hero (homepage, cinematic)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(640px, 100svh);
  padding-top: calc(var(--header-h) + var(--band-h) + 3rem);
  background: #161514;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero__media video {
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.hero.is-playing .hero__media video { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(22 21 20 / 0.86) 0%, rgb(22 21 20 / 0.62) 34%, rgb(22 21 20 / 0.12) 68%, rgb(22 21 20 / 0) 100%),
    linear-gradient(0deg, rgb(22 21 20 / 0.92) 0%, rgb(22 21 20 / 0.35) 34%, rgb(22 21 20 / 0) 56%),
    linear-gradient(180deg, rgb(22 21 20 / 0.55) 0%, rgb(22 21 20 / 0) 22%);
}
.hero__content { padding-bottom: clamp(2.5rem, 1rem + 4vw, 4.5rem); }
.hero__inner { max-width: 50rem; }
.hero .overline { color: var(--white); margin-bottom: clamp(1.25rem, 0.8rem + 1.2vw, 2rem); }
.hero h1 { max-width: 11.5ch; }
.hero__lead {
  margin-top: clamp(1.25rem, 0.8rem + 1.2vw, 2rem);
  max-width: 32em;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.9);
}
.hero .btn-row { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

/* Facts strip — the CGP's three-figure row, on dark glass-free ground */
.hero__facts {
  border-top: 2px solid rgb(255 255 255 / 0.22);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}
.fact {
  padding: 1.25rem 1.5rem 1.5rem 0;
}
.fact + .fact { padding-left: 1.5rem; border-left: 2px solid rgb(255 255 255 / 0.22); }
.fact strong { display: block; font-family: var(--font-black); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { display: block; margin-top: 0.3rem; font-size: var(--fs-small); color: rgb(255 255 255 / 0.78); }
.hero__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid rgb(255 255 255 / 0.22);
}
.video-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 2px solid rgb(255 255 255 / 0.6);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.video-toggle:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.video-toggle .icon { width: 1.1rem; height: 1.1rem; }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }
.video-toggle[hidden] { display: none; }

.hero__emergency {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: rgb(255 255 255 / 0.78);
}
.hero__emergency a { color: var(--white); font-weight: 700; }

@media (max-width: 767px) {
  .hero { min-height: max(600px, 100svh); }
  .hero__media img, .hero__media video { object-position: 55% 40%; }
  .hero__scrim {
    background:
      linear-gradient(0deg, rgb(22 21 20 / 0.95) 0%, rgb(22 21 20 / 0.78) 38%, rgb(22 21 20 / 0.15) 70%, rgb(22 21 20 / 0) 100%),
      linear-gradient(180deg, rgb(22 21 20 / 0.6) 0%, rgb(22 21 20 / 0) 22%);
  }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { display: none; }
  .hero__controls { display: none; }
  .fact { padding-block: 1rem 1.25rem; }
}

/* Hero entrance — pure CSS so the headline never depends on JavaScript */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes band-in { from { transform: scaleX(0); } }
[data-hero] { animation: rise 1000ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.hero .line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero .line-mask > span { display: block; animation: line-up 1100ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.band--intro { transform-origin: left; animation: band-in 1100ms var(--ease-in-out) both; }

/* ==========================================================================
   Page hero (inner pages) — editorial, light
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + var(--band-h) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.page-hero__grid { align-items: end; row-gap: 2rem; }
.page-hero__text { grid-column: 1 / span 8; }
.page-hero__aside { grid-column: 9 / -1; }
.page-hero .overline { margin-bottom: 1.5rem; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero__aside .quick {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.quick dt { font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.quick dd { margin: 0.25rem 0 1rem; font-size: 1.125rem; font-weight: 700; }
.quick dd a { text-decoration: none; }
.quick dd a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.page-hero__image {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  aspect-ratio: 21 / 8;
  overflow: hidden;
  background: var(--paper);
}
.page-hero__image img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 1023px) {
  .page-hero__text, .page-hero__aside { grid-column: 1 / -1; }
  .page-hero__image { aspect-ratio: 16 / 9; }
}

.breadcrumbs { margin-bottom: 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-soft); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   Sections — homepage
   ========================================================================== */
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 54rem; }
.section-head .lead { color: var(--muted); }

/* Intro / promise */
.intro__grid { row-gap: 3rem; align-items: start; }
.intro__promise { grid-column: 1 / span 6; }
.intro__body { grid-column: 8 / -1; padding-top: 0.5rem; }
.promise {
  font-size: clamp(3rem, 1.6rem + 5.5vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.promise span { display: block; }
.promise .dot { font-style: normal; color: var(--yellow-strong); }
.promise span:nth-child(2) .dot { color: var(--red); }
.promise span:nth-child(3) .dot { color: var(--blue); }
.intro__body .lead { font-weight: 500; color: var(--ink); }
.intro__body p + p { margin-top: 1.25rem; }
.intro__body .btn-row { margin-top: 2rem; }
.intro__caption { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); max-width: 26rem; }
@media (max-width: 1023px) {
  .intro__promise, .intro__body { grid-column: 1 / -1; }
}

/* Service index — editorial list with a sticky media panel */
.svc { align-items: start; }
.svc__media {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + var(--band-h) + 2rem);
  height: min(calc(100svh - var(--header-h) - 6rem), 680px);
  overflow: hidden;
  background: var(--paper);
}
.svc__lists { grid-column: 7 / -1; display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.svc__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms var(--ease-out), transform 1400ms var(--ease-out);
}
.svc__panel.is-active { opacity: 1; transform: none; }
.svc__panel img { width: 100%; height: 100%; object-fit: cover; }
.svc__panel--brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--blue);
  color: var(--white);
}
.svc__panel--brand img { width: min(78%, 320px); height: auto; }
.svc__panel--brand p { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.375rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; max-width: 13ch; }
.svc__panel-label {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-over);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.svc-group__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}
.svc-group__title .overline { color: var(--accent); }
.svc-group__title .overline::before { height: 4px; background: var(--accent-fill, var(--accent)); }
.svc-group__title a { white-space: nowrap; font-size: var(--fs-small); font-weight: 600; text-decoration: none; color: var(--muted); }
.svc-group__title a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.svc-group ul { list-style: none; margin: 0; padding: 0; }
.svc-group[data-accent="yellow"] { --accent: var(--ink); --accent-fill: var(--yellow); --accent-10: var(--yellow-10); }
.svc-group[data-accent="red"] { --accent: var(--red-text); --accent-fill: var(--red); --accent-10: var(--red-10); }
.svc-group[data-accent="blue"] { --accent: var(--blue); --accent-fill: var(--blue); --accent-10: var(--blue-10); }

.svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 2rem;
  column-gap: 1rem;
  row-gap: 0.4rem;
  padding: 1.5rem 0.25rem;
  border-bottom: 2px solid var(--line-soft);
  text-decoration: none;
  isolation: isolate;
}
.svc-item::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  background: var(--accent-10);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}
.svc-item:hover::before, .svc-item.is-active::before { transform: none; }
.svc-item__num { grid-row: 1 / span 2; font-size: var(--fs-small); font-weight: 600; color: var(--accent); padding-top: 0.45rem; font-variant-numeric: tabular-nums; }
.svc-item__title { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.svc-item__desc { grid-column: 2; color: var(--muted); font-size: var(--fs-small); max-width: 36em; }
.svc-item__tag { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.45rem; border: 2px solid var(--accent-fill, var(--accent)); color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; vertical-align: 0.3em; text-transform: uppercase; }
.svc-item .icon { grid-column: 3; grid-row: 1; align-self: center; color: var(--accent); transition: transform var(--dur) var(--ease-out); }
.svc-item:hover .icon, .svc-item:focus-visible .icon { transform: translateX(6px); }
.svc-item:focus-visible { outline-offset: -2px; }

@media (max-width: 1023px) {
  .svc__media { display: none; }
  .svc__lists { grid-column: 1 / -1; }
  .svc-item { grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem; }
}

/* Statement (cinematic still) */
.statement {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 80vh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  background: var(--yellow);
  overflow: hidden;
}
.statement__media { position: absolute; inset: -12% 0; z-index: -2; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(22 21 20 / 0.92) 0%, rgb(22 21 20 / 0.55) 45%, rgb(22 21 20 / 0.25) 100%);
}
.statement blockquote { padding-block: var(--section); }
.statement blockquote p {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 13ch;
}
.statement blockquote footer { margin-top: 1.5rem; font-size: var(--fs-lead); color: var(--ink); }

/* Brands (CGP 03 — three plates with their own band ratio) */
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--white);
}
.brand-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  padding-top: calc(clamp(1.5rem, 1rem + 1.5vw, 2.5rem) + var(--band-h));
}
.brand-plate + .brand-plate { border-left: 2px solid var(--ink); }
.brand-plate .band { position: absolute; inset: 0 0 auto 0; }
.brand-plate__kind { font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.brand-plate[data-accent="yellow"] { --accent: var(--ink); }
.brand-plate[data-accent="red"] { --accent: var(--red-text); }
.brand-plate[data-accent="blue"] { --accent: var(--blue); }
.brand-plate h3 { margin-top: 0.5rem; }
.brand-plate__logo { margin-block: 2rem 1.75rem; width: min(100%, 250px); }
.brand-plate__text { color: var(--muted); }
.brand-plate__meta { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--line-soft); font-size: var(--fs-small); }
.brand-plate__meta a { font-weight: 700; text-decoration: none; }
.brand-plate__meta a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.brand-plate__cta { margin-top: auto; padding-top: 2rem; }
@media (max-width: 1023px) {
  .brands { grid-template-columns: 1fr; }
  .brand-plate + .brand-plate { border-left: 0; border-top: 2px solid var(--ink); }
}

/* Why us — numbered reasons beside a portrait */
.why__grid { align-items: start; row-gap: 3rem; }
.why__aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--band-h) + 2rem); }
.why__main { grid-column: 7 / -1; }
.figure-frame { overflow: hidden; background: var(--paper); aspect-ratio: 4 / 5; }
.figure-frame img { width: 100%; height: 112%; object-fit: cover; }
.figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.reasons { counter-reset: r; border-top: 2px solid var(--ink); }
.reasons li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 2px solid var(--line-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
}
.reasons li::before {
  content: counter(r, decimal-leading-zero);
  font-size: var(--fs-small);
  font-family: var(--font-black);
  font-weight: 900;
  color: var(--ink);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.notice {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--white);
}
.notice { border-top: var(--band-h) solid var(--yellow); }
.notice .overline { color: var(--ink); margin-bottom: 0.75rem; }
.notice p { max-width: 40em; }
@media (max-width: 1023px) {
  .why__aside, .why__main { grid-column: 1 / -1; position: static; }
  .why__aside .figure-frame { aspect-ratio: 16 / 10; }
}

/* Steps — how to order */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.6vw, 2.5rem); counter-reset: s; }
.step { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  font-family: var(--font-black);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
  margin-bottom: 1.25rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); max-width: 30em; }
.step p a { color: var(--ink); font-weight: 700; }
.steps-foot { margin-top: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2rem; border-top: 2px solid var(--line-soft); }
.steps-foot p { max-width: 42em; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* Careers — yellow split with the arm supergraphic */
.careers__grid { align-items: center; row-gap: 3rem; }
.careers__media { grid-column: 1 / span 5; }
.careers__body { grid-column: 7 / -1; }
.careers__body .lead { color: var(--ink); margin-top: 1.5rem; }
.careers__role { margin-top: 2rem; padding: 1.25rem 0; border-block: 2px solid var(--ink); display: grid; gap: 0.25rem; }
.careers__role span { font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.careers__role strong { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.02em; }
.careers__body .btn-row { margin-top: 2rem; }
@media (max-width: 1023px) {
  .careers__media, .careers__body { grid-column: 1 / -1; }
  .careers__media .figure-frame { aspect-ratio: 16 / 10; }
}

/* Locations */
.locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 2px solid var(--ink); }
.location {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.5rem 1.75rem 0;
  border-bottom: 2px solid var(--line-soft);
}
.location__brand { font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, var(--ink)); }
.location[data-accent="yellow"] { --accent: var(--ink); }
.location[data-accent="red"] { --accent: var(--red-text); }
.location[data-accent="blue"] { --accent: var(--blue); }
.location h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.location address { font-style: normal; color: var(--muted); }
.location__phone { font-family: var(--font-black); font-size: 1.125rem; font-weight: 900; text-decoration: none; }
.location__phone:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.location__links { margin-top: auto; padding-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--fs-small); }
.location__links a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line-soft); }
.location__links a:hover { border-color: currentColor; }

/* ==========================================================================
   Inner page components
   ========================================================================== */
.detail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 0.5rem + 1.6vw, 2.5rem);
  row-gap: 1.5rem;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 2px solid var(--ink);
}
.detail:last-child { padding-bottom: 0; }
.detail__head { grid-column: 1 / span 5; }
.detail__body { grid-column: 7 / -1; }
.detail__num { display: inline-block; font-family: var(--font-black); font-size: var(--fs-small); font-weight: 900; color: var(--accent, var(--ink)); padding-bottom: 0.2rem; border-bottom: 4px solid var(--accent-fill, var(--yellow)); margin-bottom: 0.75rem; }
.detail__head .h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 3rem); }
.detail__media { margin-top: 2rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__body .btn-row { margin-top: 2rem; }
.detail .callout { margin-top: 1.75rem; padding: 1rem 1.25rem; border-left: 4px solid var(--accent-fill, var(--yellow)); background: var(--paper); font-weight: 500; }
.detail .callout .link { color: var(--accent, var(--ink)); }
@media (max-width: 1023px) {
  .detail__head, .detail__body { grid-column: 1 / -1; }
  .detail__media { aspect-ratio: 16 / 9; }
}

.subnav {
  position: sticky;
  top: calc(var(--header-h) + var(--band-h));
  z-index: 10;
  background: var(--white);
  border-bottom: 2px solid var(--line-soft);
}
.site-header.is-hidden ~ main .subnav { top: var(--band-h); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding-block: 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.subnav a:hover, .subnav a.is-current { color: var(--ink); border-color: var(--accent-fill, var(--accent, var(--ink))); }
.subnav a.is-current { border-bottom-width: 4px; }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--line-soft); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding-block: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.5rem; max-width: 46em; color: var(--muted); }
.faq details > div a { color: var(--ink); font-weight: 700; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.value { padding: 1.75rem 1.75rem 2rem 0; border-bottom: 2px solid var(--line-soft); }
.value:not(:nth-child(3n + 1)) { padding-left: 1.75rem; border-left: 2px solid var(--line-soft); }
.value h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.value p { color: var(--muted); }
@media (max-width: 899px) {
  .values { grid-template-columns: 1fr; }
  .value:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
}

.timeline { border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.25rem; border-bottom: 2px solid var(--line-soft); }
.timeline strong { font-family: var(--font-black); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.01em; }
@media (max-width: 599px) { .timeline li { grid-template-columns: 1fr; gap: 0.25rem; } }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.cols-3 > div { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.cols-3 h3 { margin-bottom: 1rem; }
@media (max-width: 899px) { .cols-3 { grid-template-columns: 1fr; } }

.split { row-gap: 2.5rem; align-items: start; }
.split__head { grid-column: 1 / span 6; }
.split__body { grid-column: 8 / -1; }
.split--narrow-head .split__head { grid-column: 1 / span 4; }
.split--narrow-head .split__body { grid-column: 6 / -1; }
.split__head .lead { margin-top: 1.5rem; }
.split__logo { width: 220px; margin-bottom: 2rem; }
@media (max-width: 1023px) {
  .split__head, .split__body, .split--narrow-head .split__head, .split--narrow-head .split__body { grid-column: 1 / -1; }
}

/* MCZ brand banner — typographic stand-in where no clinic photography exists */
.brand-banner {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding: clamp(1.75rem, 1rem + 3vw, 4rem);
  background: var(--blue);
  color: var(--white);
}
.brand-banner img { width: clamp(200px, 22vw, 320px); }
.brand-banner p { max-width: 20ch; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.quick--blue dt { color: var(--blue); }
.locations--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
@media (max-width: 599px) { .locations--2 { grid-template-columns: 1fr; } }
.tag { display: inline-block; margin-top: 1rem; padding: 0.2rem 0.6rem; border: 2px solid currentColor; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tag--blue { color: var(--blue); }
.exams { margin-top: 2rem; border-top: 2px solid var(--ink); }
.exams a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 2px solid var(--line-soft);
  text-decoration: none;
  transition: background-color var(--dur-fast);
}
.exams a:hover { background: var(--blue-10); }
.exams strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.exams span { grid-column: 1; color: var(--muted); }
.exams .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--blue); transition: transform var(--dur) var(--ease-out); }
.exams a:hover .icon { transform: translate(3px, -3px); }
.mt-m { margin-top: 1.5rem; }
.mt-l { margin-top: 2rem; }

.section--flush-top { padding-top: 0; }
.promise--small { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); }
.timeline p { color: var(--muted); padding-top: 0.35rem; max-width: 40em; }
.group-list { border-top: 2px solid var(--ink); }
.group-list li { display: grid; gap: 0.15rem; padding-block: 1.1rem; border-bottom: 2px solid var(--line-soft); }
.group-list strong { font-weight: 800; font-size: 1.125rem; }
.group-list span { color: var(--muted); }
.group-list a { font-weight: 700; text-decoration: none; justify-self: start; }
.group-list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.cta-band { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-band .h2 { max-width: 16ch; }

.contact-grid { align-items: start; row-gap: 3rem; }
.contact-main { grid-column: 1 / span 6; }
.contact-side { grid-column: 8 / -1; }
.contact-list { border-top: 2px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 2px solid var(--line-soft); }
.contact-list dt { font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.25rem; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list dd .big { display: inline-block; font-family: var(--font-black); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 900; letter-spacing: -0.015em; line-height: 1.1; text-decoration: none; }
.contact-list dd .big:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 2px; }
.contact-list dd a:not(.big) { font-weight: 700; text-decoration: none; }
.contact-list dd a:not(.big):hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 1023px) {
  .contact-main, .contact-side { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .contact-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--yellow); color: var(--ink); }
.footer__top { padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer__grid { row-gap: 2.5rem; }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { width: 172px; }
.footer__brand p { margin-top: 1.25rem; color: var(--ink); max-width: 22rem; }
.footer__call { margin-top: 1.75rem; }
.footer__call span { display: block; font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer__call a { display: inline-block; margin-top: 0.35rem; font-family: var(--font-black); font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; text-decoration: none; line-height: 1.05; }
.footer__call a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 4; }
.footer__col h2 { font-size: var(--fs-over); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer__col li + li { margin-top: 0.55rem; }
.footer__col a { text-decoration: none; font-weight: 500; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__col address { font-style: normal; color: var(--ink); }
.footer__col address strong { color: var(--ink); font-weight: 700; }
.footer__mail { margin-top: 1rem; }
.footer__col .ext::after { content: " ↗"; font-size: 0.85em; }
.footer__bottom { border-top: 2px solid var(--ink); padding-block: 1.5rem 2rem; font-size: var(--fs-small); color: var(--ink); }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.footer__bottom a { color: var(--ink); font-weight: 700; }
@media (max-width: 1023px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; }
  .footer__col--wide { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer__col { grid-column: 1 / -1; }
}

/* Mobile call bar — always one tap away from the dispatcher */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  background: var(--white);
  border-top: 2px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
}
.call-bar.is-visible { transform: none; }
.call-bar a { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0 var(--gutter); text-decoration: none; font-weight: 700; }
.call-bar__main { background: var(--yellow); color: var(--ink); border-right: 2px solid var(--ink); }
.call-bar__main span { font-family: var(--font-black); font-weight: 900; }
.call-bar__main small { font-family: var(--font); }
.call-bar__main small { font-weight: 500; opacity: 0.9; }
.call-bar__alt { color: var(--ink); font-size: var(--fs-small); }
@media (max-width: 767px) {
  .call-bar { display: grid; }
  .site-footer { padding-bottom: 56px; }
}

/* 404 */
.not-found { min-height: 80vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + var(--band-h)); }
.not-found__code { font-size: clamp(6rem, 3rem + 14vw, 16rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; color: var(--paper); -webkit-text-stroke: 2px var(--ink); }

/* ==========================================================================
   Motion system — reveal on scroll, parallax (opacity/transform only)
   ========================================================================== */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-on [data-reveal="fade"] { transform: none; }
.reveal-on [data-reveal="rule"] { transform: scaleX(0); transform-origin: left; opacity: 1; }
.reveal-on [data-reveal="rule"].is-in { transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}

@media print {
  .site-header, .menu, .call-bar, .hero__media, .hero__scrim, .video-toggle { display: none !important; }
  .hero, .surface-yellow, .site-footer, .hero__inner { background: none; color: #000; }
}

/* Responsive photography (<x-img> → <picture>) fills its frame */
.statement__media picture, .svc__panel picture, .figure-frame picture,
.detail__media picture, .page-hero__image picture { display: block; width: 100%; height: 100%; }
.svc__panel picture img, .detail__media picture img { width: 100%; height: 100%; object-fit: cover; }
.figure-frame picture img, .page-hero__image picture img { width: 100%; height: 112%; object-fit: cover; }
.split__head .detail__media { margin-block: 2rem 0.5rem; }
.archive { margin-top: 2rem; max-width: 26rem; }
.archive .detail__media { margin-top: 0; }

/* Statement with colour photography: photo band above, quote below — text never covers people */
.statement { display: block; min-height: 0; }
.statement::before { display: none; }
.statement__media {
  position: relative;
  inset: auto;
  z-index: auto;
  height: clamp(300px, 46vw, 720px);
  overflow: hidden;
}
.statement__media picture img { height: 116%; margin-top: -8%; }
.statement blockquote { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section); }

/* Cookie consent (Google Analytics) — equal-weight choices, square, on brand */
.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  max-width: 46rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.consent[hidden] { display: none; }
.consent::before { content: ""; display: block; height: var(--band-h); background: linear-gradient(90deg, var(--yellow) 0 33.333%, var(--red) 33.333% 66.667%, var(--blue) 66.667% 100%); }
.consent__inner { display: grid; gap: 1.25rem; padding: 1.25rem 1.5rem 1.5rem; }
.consent__title { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.consent__text p { font-size: var(--fs-small); color: var(--muted); max-width: 40em; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent__actions .btn { min-width: 9rem; justify-content: center; }
@media (min-width: 768px) {
  .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (max-width: 767px) {
  .consent { left: 0.75rem; right: 0.75rem; bottom: calc(56px + 0.75rem + env(safe-area-inset-bottom)); }
  .consent__actions .btn { flex: 1 1 0; min-width: 0; }
}
.footer__consent {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ==========================================================================
   Supergraphic — a white arm of the star of life on a yellow plane (CGP 3.0 p.05)
   Rules built in: angles only 0/30/60/90/120°, square ends, no gradient or shadow,
   never over photography (it sits under content and behind photos), never instead
   of the logo, never with the snake.
   ========================================================================== */
.has-arm { position: relative; overflow: hidden; isolation: isolate; }
.has-arm::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  left: var(--arm-x, 75%);
  top: var(--arm-y, 50%);
  width: 300vmax;
  height: var(--arm);
  background: var(--white);
  transform: translate(-50%, -50%) rotate(var(--arm-angle, -30deg));
  pointer-events: none;
}
.statement.has-arm { --arm-x: 78%; --arm-y: 100%; }
.careers.has-arm { --arm-x: 20%; --arm-y: 14%; }  /* behind the photo, exits the top before the text column */
.careers.has-arm .careers__media { position: relative; z-index: 1; }
@media (max-width: 1023px) {
  .statement.has-arm { --arm-x: 85%; --arm-y: 108%; }
  .careers.has-arm { --arm-x: 30%; --arm-y: 9%; }
}

/* ==========================================================================
   Modmed theme — red leads (CGP 3.0: Modmed unit colour #D33432, band 15 · 70 · 15).
   Everything above is the shared pacient.si base; overrides and Modmed-only components follow.
   ========================================================================== */
main { --accent: var(--red-text); --accent-fill: var(--red); --accent-10: var(--red-10); }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline-color: var(--red-strong); }

.skip-link { background: var(--red); color: var(--white); border-color: var(--red); }
.link { text-decoration-color: var(--red); }
.link:hover, .link:focus-visible { color: var(--red-text); }
.overline--accent { color: var(--red-text); }
.overline--accent::before { height: 4px; background: var(--red); }

/* Primary action is Modmed red with white text; secondary stays an ink outline */
.btn--primary { --btn-bg: var(--red); --btn-fg: var(--white); --btn-bd: var(--red); }
.btn--primary:hover { --btn-bg: var(--red-strong); --btn-bd: var(--red-strong); }
.btn--secondary:hover { --btn-bg: var(--red-10); }
.hero .btn--primary, .js .has-hero .site-header:not(.is-solid) .header-cta.btn--primary { --btn-bd: var(--red); }
.hero .btn--primary:hover, .js .has-hero .site-header:not(.is-solid) .header-cta.btn--primary:hover { --btn-bd: var(--red-strong); }

/* Header: raster Pacient Modmed logo (440 × 144), same box as the MCZ site */
.brand--modmed { width: clamp(150px, 9vw + 70px, 196px); aspect-ratio: 440 / 144; }

/* Mobile menu on a red plane */
.menu { background: var(--red); color: var(--white); }
.menu__link { border-bottom-color: rgb(255 255 255 / 0.3); }
.menu__link small { color: rgb(255 255 255 / 0.85); }
.menu__link[aria-current="page"] { color: var(--white); }
.menu .btn--primary { --btn-bg: var(--white); --btn-fg: var(--red-text); --btn-bd: var(--white); }
.menu .btn--primary:hover { --btn-bg: var(--red-10); --btn-bd: var(--red-10); }
.menu .btn--light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--white); }
.menu .btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--red-text); }
.menu__note { color: var(--white); }
.menu .link { color: var(--white); text-decoration-color: currentColor; }
.menu :focus-visible { outline-color: var(--white); }
.menu-open .site-header__bar { background: var(--white) !important; border-color: var(--line-soft) !important; }

/* Footer on red (white text only: brand red is 4.6:1 against white) */
.site-footer { background: var(--red); color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer__brand img { width: 220px; }
.footer__brand p, .footer__col address, .footer__col address strong, .footer__bottom, .footer__bottom a,
.footer__consent, .footer__call span, .footer__col h2 { color: var(--white); }
.footer__col h2, .footer__call span { opacity: 0.88; }
.footer__bottom { border-top-color: rgb(255 255 255 / 0.35); }

/* Mobile call bar */
.call-bar__main { background: var(--red); color: var(--white); border-right-color: var(--red); }
.call-bar__alt { color: var(--red-text); }

.subnav { --accent: var(--red-text); --accent-fill: var(--red); }
.quick dt { color: var(--red-text); }
.not-found__code { -webkit-text-stroke-color: var(--red); }

/* Hero facts: free number reads first */
.fact strong small { font-family: var(--font); font-size: 0.45em; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Numbers band (o-nas, home) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stat { padding: 1.5rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 2px solid var(--line-soft); }
.stat strong { display: block; font-family: var(--font-black); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--red-text); }
.stat span { display: block; margin-top: 0.5rem; color: var(--muted); max-width: 18ch; }
@media (max-width: 899px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line-soft); }
}
.stats-note { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Partner list ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(1.25rem, 0.75rem + 1.6vw, 2.5rem); border-top: 2px solid var(--ink); }
.partners li { padding-block: 0.9rem; border-bottom: 2px solid var(--line-soft); font-weight: 600; }

/* ---------- Sidebar card (prevozi, kontakt) ---------- */
.article__grid { row-gap: 3rem; align-items: start; }
.article__main { grid-column: 1 / span 7; }
.article__aside { grid-column: 9 / -1; align-self: stretch; }
@media (max-width: 1023px) { .article__main, .article__aside { grid-column: 1 / -1; } }
.aside-card { position: sticky; top: calc(var(--header-h) + var(--band-h) + 2rem); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); background: var(--red); color: var(--white); }
.aside-card .overline { color: var(--white); }
.aside-card p { margin-top: 0.75rem; }
.aside-card .big { display: inline-block; margin-top: 1rem; font-family: var(--font-black); font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-decoration: none; color: var(--white); }
.aside-card .big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.aside-card a { color: var(--white); }
.aside-card :focus-visible { outline-color: var(--white); }
.aside-card hr { margin: 1.5rem 0 0; border: 0; border-top: 2px solid rgb(255 255 255 / 0.35); }
@media (max-width: 1023px) { .aside-card { position: static; } }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--2 .stat:nth-child(3) { padding-left: 0; border-left: 0; }
.stats--2 .stat:nth-child(n+3) { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line-soft); }
.notice { border-top-color: var(--red); }
