/* ==========================================================================
   Medistar d.o.o. — Design System "Kinetic Circles"
   Circle-field motif (mouse + scroll parallax) amplifying the three-circle
   logo mark, a bold Manrope display system, and a light/dark band rhythm
   using the brand-forest color block. See /wow/concept-a.html for the
   original hero exploration this system was ported and extended from.

   QA round 2: the homepage H1 additionally borrows the Fraunces display
   serif + italic-accent treatment explored in /wow/concept-b.html, used
   as a single, deliberate one-off (see --font-display and h1.hero-headline
   below) — the brand tokens' documented exception for one hero headline
   moment. This is the concept's signature typographic craft detail,
   layered on top of (not replacing) the circle-field system.
   ========================================================================== */

:root {
  --color-bg: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1EFE9;
  --color-text: #24302B;
  --color-text-muted: #5C6660;

  --color-brand-green: #5C9A22;       /* mid green — icons, dots, decorative fills */
  --color-brand-green-light: #EAF5DC; /* pale tint — eyebrow chip backgrounds */
  --color-brand-forest: #3F6E12;      /* dark green — text links, dark panel bg */
  --color-brand-sage: #8FC157;        /* light accent — large bold numerals/labels only */

  --color-accent: #C2703D;            /* terracotta — sparing accent moments */
  --color-accent-hover: #A85A2E;
  --color-border: #E4E1D8;

  --font-heading: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  /* One-off display serif — reserved exclusively for the homepage's single
     primary H1 (the "hero headline moment" the brand tokens explicitly
     carve out an exception for). Not used for any other heading. */
  --font-display: "Fraunces", "Manrope", serif;

  --max-width: 1200px;
  --radius: 12px;
  --transition: 220ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  max-width: 70ch;
}

/* Links use --color-brand-forest (not --color-brand-green) for text: the
   fixed brand token --color-brand-green (#5C9A22) only clears ~3.3–3.4:1
   against --color-bg/white, which fails WCAG AA for normal-size text
   (needs 4.5:1). --color-brand-forest clears 5.78:1. --color-brand-green
   is reserved for decorative/graphical use (icons, dot bullets, circle
   fills) where the 3:1 non-text contrast threshold applies instead. */
a {
  color: var(--color-brand-forest);
  text-decoration: none;
  transition: color var(--transition);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  margin: 0;
  padding: 0;
}

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

@media (min-width: 768px) {
  .container {
    padding-inline: 64px;
  }
}

section {
  padding-block: 64px;
}

@media (min-width: 768px) {
  section {
    padding-block: 96px;
  }
}

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

.section-heading {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-heading p {
  margin-inline: auto;
  color: var(--color-text-muted);
}

/* ---------- Dash-eyebrow (sitewide marker above every <h2>) ----------
   Grafted from concept-b.html's .eyebrow::before pattern: a short accent
   bar (not a literal "—" glyph) preceding a small uppercase label. Used
   consistently above every section heading, homepage and interior pages,
   as the cross-page structural rhythm device. */
.eyebrow-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-forest);
  margin-bottom: 0.9rem;
}

.eyebrow-dash::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
  flex-shrink: 0;
}

.section-heading .eyebrow-dash {
  justify-content: center;
}

/* Dash-eyebrow variant for use on dark bands (forest bg) */
.eyebrow-dash--on-dark {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Visually hidden (accessible headings/labels) ---------- */
.sr-only {
  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 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

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

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.site-logo {
  --logo-w: clamp(170px, 34vw, 240px);
  display: block;
  width: var(--logo-w);
  height: calc(var(--logo-w) / 2.75862);
  overflow: hidden;
  position: relative;
}

.site-logo img {
  position: absolute;
  width: calc(var(--logo-w) * 6.5625);
  height: calc(var(--logo-w) * 4.65);
  max-width: none;
  left: calc(var(--logo-w) * -2.78125);
  top: calc(var(--logo-w) * -2.15);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.main-nav a:hover {
  color: var(--color-brand-forest);
}

.main-nav a[aria-current="page"] {
  color: var(--color-brand-forest);
  border-bottom-color: var(--color-brand-forest);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.lang-switch a {
  color: var(--color-text-muted);
}

.lang-switch a.active {
  color: var(--color-text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle-wrap {
  position: relative;
}

.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition);
}

.nav-toggle-btn::-webkit-details-marker {
  display: none;
}

.nav-toggle-btn .icon {
  width: 24px;
  height: 24px;
  color: var(--color-text);
}

.nav-toggle-btn:hover,
.nav-toggle[open] .nav-toggle-btn {
  background: var(--color-surface-alt);
}

@media (max-width: 1099px) {
  .nav-toggle[open] ~ .main-nav {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 16px 32px rgba(36, 48, 43, 0.14);
    padding: 12px;
    z-index: 60;
  }

  .nav-toggle:not([open]) ~ .main-nav {
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 10px 12px;
    border-bottom: none;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: var(--color-brand-green-light);
  }

  .main-nav a[aria-current="page"] {
    background: var(--color-brand-green-light);
  }
}

@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }
  .main-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ---------- Buttons ----------
   Categorized as a UI label per the design system (Manrope, not Inter). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  /* --color-accent (#C2703D) alone clears only ~3.7:1 against white text,
     which fails WCAG AA (4.5:1) for normal-size button labels.
     --color-accent-hover (#A85A2E) clears ~5:1 — used as the default fill,
     with --color-accent reserved for smaller accent moments (underline,
     dot bullets) where it never carries body-sized text on top of it. */
  background: var(--color-accent-hover);
  color: #FFFFFF;
}

.btn-primary:hover {
  filter: brightness(0.92);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 90, 46, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-brand-forest);
  color: var(--color-brand-forest);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   Kinetic circle-field system. Shared by the homepage hero, the interior-
   page hero and the .band-dark stat/CTA bands (circle-motif.js targets
   `.hero, .band-dark` as roots, `.hero-circle-field`/`.band-circle-field`
   as the scroll-parallax wrapper, and `.hero-circle`/`.band-circle` as the
   individual mouse-parallax shapes). Circles are plain flat/outline <span>
   or <div> shapes, zero image weight, aria-hidden, inside a
   pointer-events:none wrapper.

   Two independent, composable motion sources land on the same element:
   - Ambient float (CSS-only, hero circles only): keyframes animate the
     standalone `translate` property, never the `transform` shorthand.
   - Mouse parallax (JS-driven, hero + band-dark circles): JS writes the
     --px/--py custom properties on hover/move; a static `transform:
     translate(var(--px), var(--py))` rule below consumes them.
   Because `translate` and `transform` are independent CSS properties they
   compose instead of one clobbering the other, so ambient float and
   pointer offset add together on the hero circles at the same time. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes floatA {
    0%   { translate: 0 0; }
    50%  { translate: 10px -16px; }
    100% { translate: 0 0; }
  }
  @keyframes floatB {
    0%   { translate: 0 0; }
    50%  { translate: -14px 12px; }
    100% { translate: 0 0; }
  }
  @keyframes floatC {
    0%   { translate: 0 0; }
    50%  { translate: 9px 10px; }
    100% { translate: 0 0; }
  }
}

/* Mouse-parallax offset, consumed from the --px/--py custom properties
   circle-motif.js writes on pointer move. Falls back to 0px (no offset)
   when JS hasn't run, is skipped (reduced motion / touch), or the
   properties are unset. */
.hero-circle,
.band-dark .band-circle {
  transform: translate(var(--px, 0px), var(--py, 0px));
}

/* Reduced motion: kill all float/parallax animation and any residual
   transform/translate on every circle element, everywhere on the site. */
@media (prefers-reduced-motion: reduce) {
  .hero-circle,
  .hero-circle-field,
  .band-circle-field,
  .band-dark .band-circle {
    animation: none !important;
    transform: none !important;
    translate: none !important;
  }
}

/* ---------- Homepage hero ----------
   Editorial split-screen layout (round 2 fix): the homepage hero is a
   two-column grid — a text column (.hero-left) and a full-bleed, edge-
   to-edge forest-green graphic panel (.hero-right) carrying the kinetic
   circle composition. This replaces the previous "text centered over a
   full-bleed floating circle field" arrangement with an actual bespoke
   grid/layout decision (grafted from the split-hero structure explored in
   /wow/concept-b.html "Editorial Bold"), rather than relying on a single
   typographic accent to carry the whole "signature moment". The circle
   motif itself is not lost — it moves from being scattered behind the
   headline to being a deliberate, contained graphic device, which reads
   as more considered, not less distinctive. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: stretch;
  min-height: min(760px, 88vh);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner {
  position: relative;
  z-index: 5;
  padding: 3rem 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-inner {
    padding: 3rem 64px;
  }
}

/* Full-bleed graphic panel: no page container/padding applied — it runs
   flush to the hero's own right edge, the key structural signature of the
   split-screen treatment. */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-forest);
  background-image:
    radial-gradient(120% 140% at 15% 0%, rgba(143, 193, 87, 0.20), transparent 60%),
    radial-gradient(140% 120% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.hero-circle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  will-change: transform;
}

/* Large outline circle bleeding off the top-right corner of the panel. */
.hero-circle--a {
  width: 62vw;
  top: -22vw;
  right: -24vw;
  border: 1.5px solid rgba(250, 249, 246, 0.35);
}

/* Medium outline circle bleeding off the left edge of the panel. */
.hero-circle--b {
  width: 42vw;
  bottom: 4vw;
  left: -18vw;
  border: 1.5px solid rgba(143, 193, 87, 0.55);
}

/* Filled sage accent circle. */
.hero-circle--c {
  width: 15vw;
  min-width: 130px;
  bottom: -5vw;
  right: 8vw;
  background: rgba(143, 193, 87, 0.9);
}

/* Small solid dot, echoing the logo's smallest circle. */
.hero-circle--d {
  width: 3.4vw;
  min-width: 30px;
  top: 30%;
  right: 20%;
  background: var(--color-surface);
}

/* Thin mid outline ring for depth. */
.hero-circle--e {
  width: 26vw;
  top: 12%;
  left: 6%;
  border: 1px solid rgba(250, 249, 246, 0.22);
}

.hero-circle--a { animation: floatA 20s ease-in-out infinite; }
.hero-circle--b { animation: floatB 17s ease-in-out infinite; animation-delay: -6s; }
.hero-circle--c { animation: floatC 15s ease-in-out infinite; animation-delay: -9s; }
.hero-circle--d { animation: floatC 13s ease-in-out infinite; animation-delay: -3s; }
.hero-circle--e { animation: floatA 22s ease-in-out infinite; animation-delay: -11s; }

.hero-panel-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.85);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-forest);
  background: var(--color-brand-green-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-green);
  flex: none;
}

/* Distinctive art-direction moment (round 2 fix): the homepage's single
   H1 — the primary headline of the entire site — is set in Fraunces, a
   bespoke display serif, instead of the sitewide Manrope/Inter system.
   This is the "one-off display font for a hero headline moment" the
   brand tokens explicitly permit, used exactly once, nowhere else on the
   site (o-nas.html's <h1> and every other heading stay on Manrope). The
   serif's optical-sizing axis is tuned in at large sizes for crisp,
   confident letterforms; paired with an italic accent word this is the
   signature typographic craft detail intended to move the concept past
   the generic "kinetic circles" template pattern on its own. */
h1.hero-headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  /* Scaled to the width of .hero-left (58% of the hero, not the full
     viewport) now that the hero is a split-screen grid — the old
     clamp(3rem, 7vw, 6.5rem) was tuned for a full-bleed centered hero and
     overflows a ~58%-width column at large viewports. */
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin: 0 0 1.75rem;
  color: var(--color-text);
  position: relative;
}

/* Italic display-weight accent word (color + style, no underline gimmick)
   — the single accent moment in the hero. */
h1.hero-headline .accent-word {
  position: relative;
  white-space: nowrap;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent-hover);
}

h1.hero-headline .accent-word::after {
  content: "";
  position: absolute;
  left: 0.03em;
  right: 0.03em;
  bottom: 0.05em;
  height: 0.1em;
  background: var(--color-accent);
  opacity: 0.4;
  border-radius: 2px;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 0 0;
}

.hero .btn-row {
  margin-top: 2.5rem;
}

/* Stack the split hero into a single column below the tablet range —
   text on top, the graphic panel becomes a shorter full-width band underneath
   (same pattern proven in /wow/concept-b.html's own responsive rules). */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  h1.hero-headline {
    max-width: none;
  }
  .hero-right {
    min-height: 62vw;
    padding: 1.5rem;
  }
  .hero-circle--a { width: 78vw; top: -26vw; right: -28vw; }
  .hero-circle--b { width: 58vw; bottom: -6vw; left: -22vw; }
  .hero-circle--c { width: 24vw; min-width: 110px; bottom: -8vw; right: 6vw; }
  .hero-circle--e { width: 34vw; }
}

@media (max-width: 560px) {
  .hero-right { min-height: 280px; }
}

/* ---------- Dark band system (stat band + closing CTA + footer watermark)
   Full-bleed forest-green panels with faint large outline circles bleeding
   off the edges, grafted from concept-b.html's .circle--a/b/e treatment.
   Flat dark green + thin outline circles only — no blur, no gradient mesh. */
.band-dark {
  position: relative;
  background: var(--color-brand-forest);
  overflow: hidden;
  isolation: isolate;
}

/* Scroll-parallax wrapper (mirrors .hero-circle-field): gives
   circle-motif.js's initScrollParallax() an explicitly-sized (inset: 0)
   element to translate, so the band circles it contains keep their own
   top/right/bottom/left/% positioning intact regardless of the wrapper's
   own transform. */
.band-circle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.band-dark .band-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.band-dark .band-circle--a {
  width: 56vw;
  max-width: 760px;
  aspect-ratio: 1 / 1;
  top: -22vw;
  right: -18vw;
  border: 1.5px solid rgba(250, 249, 246, 0.25);
}

.band-dark .band-circle--b {
  width: 42vw;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  bottom: -18vw;
  left: -14vw;
  border: 1.5px solid rgba(250, 249, 246, 0.2);
}

.band-dark .band-circle--dot {
  width: 14px;
  height: 14px;
  top: 30%;
  right: 22%;
  background: var(--color-brand-sage);
}

.band-dark .container {
  position: relative;
  z-index: 1;
}

/* Section headings that sit directly on the dark band (e.g. the closing
   CTA's "Zanima vas sodelovanje?"), scoped so it never touches the light
   .cta-card headings floating on top of the same band. */
.band-dark .section-heading h2 {
  color: #FFFFFF;
}

.band-dark .section-heading p {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Stat band (replaces the old white-boxed .stat-row) ----------
   Round 3 fix: hairline dividers between columns (rather than plain gap
   spacing) and a featured first stat give the band its own asymmetric
   rhythm instead of three visually identical columns. */
.stat-band-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .stat-band-inner {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .stat-band-item {
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat-band-item:first-child {
    padding-left: 0;
    border-left: none;
  }

  .stat-band-item:first-child .stat-num {
    /* Featured stat: larger scale only — var(--color-brand-sage) was
       tried here but clears only ~2.9:1 on --color-brand-forest, short
       of the 3:1 AA floor for large text, so color stays white. */
    font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  }
}

.stat-band-item .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: #FFFFFF;
  line-height: 1.1;
}

.stat-band-item .stat-label {
  display: block;
  font-size: 0.95rem;
  /* rgba(255,255,255,.88) clears ~5.1:1 on --color-brand-forest — passes
     AA for body-sized text (the flat .82 the spec floats only clears
     ~4.7:1, still technically AA but with almost no margin). */
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.3rem;
  max-width: 32ch;
}

@media (min-width: 768px) {
  .stat-band-item .stat-label {
    margin-inline: 0;
  }
}

/* ---------- Supplier / brand strip ----------
   Round 3 fix: replaces the rounded-pill/chip-cloud pattern (a generic
   "logo strip as badges" template device) with a rule-bound editorial
   list — large Manrope names divided by hairlines, bracketed top and
   bottom, reading as a considered "official distributor" masthead
   rather than a row of UI chips. No new colors/fonts, still flat and
   fast; only typography, rules and spacing carry the effect. */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brand-strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--color-text);
  padding: 22px 30px;
  position: relative;
  transition: color 150ms ease;
}

.brand-strip li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--color-border);
}

.brand-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-green);
  flex-shrink: 0;
}

@media (hover: hover) {
  .brand-strip li:hover {
    color: var(--color-brand-forest);
  }
}

/* ---------- Clinical areas: overlapping three-circle graphic + list ----------
   Round 3 fix: the previous "three icon-in-circle cards in an evenly
   spaced row" pattern read as a generic template device despite the
   brand-colored circles. Replaced with a single overlapping three-circle
   graphic — deliberately echoing the logo mark's own large/medium/small
   overlapping composition — paired with an editorial numbered list. This
   reuses the same "graphic panel + text column" split language as the
   hero/page-hero, at section scale, instead of a repeated card grid. */
.circle-cluster-wrap {
  position: relative;
  /* Establishes a stacking context so the z-index:-1 watermark below is
     guaranteed to paint behind ALL content in this section (including
     non-positioned in-flow text like .section-heading), rather than
     depending on painting-order quirks between positioned/non-positioned
     siblings. */
  isolation: isolate;
}

/* Large, extremely faint outline-circle watermark tying this section back
   into the same kinetic-circle system as the hero. Purely decorative. */
.circle-cluster-wrap::before {
  content: "";
  position: absolute;
  width: min(560px, 60vw);
  height: min(560px, 60vw);
  border-radius: 50%;
  border: 1.5px solid var(--color-brand-forest);
  opacity: 0.07;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: -1;
}

.areas-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(200px, 32%) 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

/* Decorative overlapping circle composition — large/medium/small, the
   same relative proportions and overlap logic as the logo mark itself.
   aria-hidden: purely visual, the actual content lives in .areas-list. */
.areas-graphic {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.areas-circle {
  position: absolute;
  border-radius: 50%;
}

.areas-circle--a {
  width: 66%;
  aspect-ratio: 1 / 1;
  top: 0;
  left: 0;
  background: var(--color-brand-green);
}

.areas-circle--b {
  width: 48%;
  aspect-ratio: 1 / 1;
  bottom: 8%;
  right: 2%;
  background: var(--color-brand-forest);
}

.areas-circle--c {
  width: 27%;
  aspect-ratio: 1 / 1;
  bottom: -2%;
  left: 32%;
  background: var(--color-brand-sage);
  box-shadow: 0 0 0 6px var(--color-surface-alt);
}

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

.areas-item {
  display: flex;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--color-border);
}

.areas-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.areas-index {
  /* --color-accent-hover only clears ~4.38:1 on --color-surface-alt at
     this weight/size (below the 4.5:1 AA floor for non-large text) —
     --color-brand-forest clears ~5.29:1, so that's used for the actual
     numeral text; the terracotta accent still appears via the card-link
     arrows and eyebrow-dash bars elsewhere on the page. */
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 2.2ch;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-brand-forest);
}

.areas-body-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.areas-body-head .icon-sm {
  width: 24px;
  height: 24px;
  color: var(--color-brand-forest);
  flex-shrink: 0;
}

.areas-body-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.areas-body p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .areas-layout {
    grid-template-columns: 1fr;
  }

  .areas-graphic {
    max-width: 220px;
    margin-bottom: 8px;
  }
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card-link:hover svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .card-link:hover svg {
    transform: none;
  }
}

/* ---------- Closing CTA dark band ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Light floating cards on the dark background — solid surface + soft
   shadow, deliberately NOT frosted glass (no backdrop-filter anywhere).
   Round 3 fix: a thin terracotta top rule (the eyebrow-dash accent
   color, used sparingly per the brand tokens) replaces the plain flat
   edge, so the cards read as a branded detail rather than a stock
   "light card on dark section" pattern. */
.cta-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 48px -16px rgba(15, 26, 10, 0.35);
  border-top: 3px solid var(--color-accent);
}

.cta-card h3 {
  margin-bottom: 10px;
}

.cta-card p {
  color: var(--color-text-muted);
}

/* ---------- Icon ---------- */
.icon {
  width: 40px;
  height: 40px;
  color: var(--color-brand-green);
  flex-shrink: 0;
}

/* ---------- Interior-page hero (o-nas.html) ----------
   Round 3 fix: previously a bespoke "page-hero" wrapper with a small
   4-circle mini-motif (m1–m4) floating over centered text — the exact
   generic stock micro-motif flagged in QA as receiving no signature
   treatment. o-nas.html's hero now reuses the homepage's .hero /
   .hero-left / .hero-right split-screen system directly (see markup),
   so no page-hero-specific rules are needed here any more: the same
   classes, same full-bleed graphic panel, same circle-field device. */

/* ---------- Certification badges ---------- */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin: 28px 0 8px;
}

.cert-badges img {
  max-width: 140px;
  height: auto;
}

.muted-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Quality policy list (with scroll-reveal) ---------- */
.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.policy-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

/* Generic scroll-reveal utility (fade + 8px translateY), used on the
   policy-list items; reduced-motion-safe via the media query below and
   via the JS fallback that adds .is-visible immediately when motion is
   reduced or IntersectionObserver is unavailable. */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--color-text);
  color: #E9ECE9;
  padding-block: 56px 32px;
  overflow: hidden;
}

/* Persistent, very low-opacity outline-circle watermark — the same
   decorative signature used on the stat band and CTA band, so all three
   dark surfaces on the page share one consistent brand device. Kept at
   4–6% opacity so it never touches text contrast. */
.site-footer::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  opacity: 0.05;
  bottom: -180px;
  right: -100px;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: #C9D6C4;
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-legal {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #C9D6C4;
}

.footer-legal strong {
  color: #FFFFFF;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  list-style: none;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #9BA89C;
}

/* ---------- Reduced motion (global safety net) ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
