/* ===========================================================
   M2C Worldwide - site stylesheet
   Brand: navy #0B2A4A | gold #E3B23C (bright) / #B8892E (on light)
   Single stylesheet, no build step, no external framework.
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #061a2e;
  --navy-800: #082239;
  --navy:     #0B2A4A;
  --navy-600: #14406c;
  --navy-400: #3c6794;

  --gold:        #B8892E;  /* accents on light backgrounds */
  --gold-bright: #E3B23C;  /* accents on navy */
  --gold-soft:   #f3e4c4;
  --gold-wash:   #fbf6ec;

  --ink:    #14222e;
  --body:   #3d4e5d;
  --muted:  #64788a;
  --line:   #e3e9ef;
  --line-strong: #cfd9e3;

  --bg:      #ffffff;
  --bg-soft: #f7f9fb;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06), 0 2px 8px rgba(11, 42, 74, .05);
  --shadow-md: 0 4px 12px rgba(11, 42, 74, .08), 0 12px 32px rgba(11, 42, 74, .07);
  --shadow-lg: 0 18px 50px rgba(11, 42, 74, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

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

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #cfdced; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; flex: none;
}
.section--navy .eyebrow { color: var(--gold-bright); }

.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section--navy .lede { color: #a9c0d8; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .eyebrow { justify-content: center; }
.section-head.is-centered .lede { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--gold { --btn-bg: var(--gold-bright); --btn-bd: var(--gold-bright); --btn-fg: var(--navy-900); }
.btn--gold:hover { --btn-bg: #efc258; --btn-bd: #efc258; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: transparent; }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--ghost-light:hover { --btn-bd: #fff; }

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  color: var(--navy-600);
}
.textlink svg { transition: transform .18s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  padding: .5rem .8rem; border-radius: 7px;
  font-size: .93rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px; background: var(--gold); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: .9rem; flex: none; }
.header-phone {
  font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.header-phone:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  cursor: pointer; color: var(--navy);
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .nav {
    position: absolute; inset: 74px 0 auto; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}
@media (min-width: 961px) {
  .nav[hidden] { display: flex; }   /* desktop nav stays visible regardless of toggle state */
  .nav .btn { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy) 46%, var(--navy-600) 100%);
  color: #cfdced;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 88% 6%, rgba(227, 178, 60, .18), transparent 62%),
    radial-gradient(600px 400px at 4% 96%, rgba(60, 103, 148, .35), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero__lede { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: #b9cde1; max-width: 54ch; }
.hero .btn-row { margin-top: 2rem; }
.hero__note { margin-top: 1.5rem; font-size: .86rem; color: #8caac8; }

.hero-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.hero-card h2 { font-size: 1.15rem; color: #fff; margin-bottom: 1.25rem; }
.hero-card dl { display: grid; gap: 1.1rem; margin: 0; }
.hero-card dt { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-bright); font-weight: 600; }
.hero-card dd { margin: .2rem 0 0; color: #dce7f2; font-size: .95rem; }

/* ---------- 7. Stat band ---------- */
.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--line);
  border-block: 1px solid var(--line);
  max-width: var(--maxw); margin-inline: auto;
}
.stat { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.1rem, 2vw, 1.75rem); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat__num span { color: var(--gold); }
.stat__label { margin: .55rem 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- 8. Cards ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card--link:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; margin-bottom: 1rem; }
.card > :last-child { margin-top: auto; }
.card ul { font-size: .92rem; padding-left: 1.1em; margin-bottom: 1rem; }
.card ul li::marker { color: var(--gold); }

.card__icon {
  width: 52px; height: 52px; flex: none; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: var(--gold-wash); border: 1px solid var(--gold-soft);
  border-radius: 12px; color: var(--gold);
}
.card__icon svg { width: 26px; height: 26px; }

.section--navy .card {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); color: #c3d5e7;
}
.section--navy .card__icon { background: rgba(227,178,60,.14); border-color: rgba(227,178,60,.3); color: var(--gold-bright); }

/* numbered process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.25rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.6rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--gold); letter-spacing: .02em;
}
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; margin: 0; }

/* feature list with check marks */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; font-size: .96rem; margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gold-wash); border: 1px solid var(--gold-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: .33rem; top: .62em;
  width: .5rem; height: .26rem;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.section--navy .checklist li::before { background: rgba(227,178,60,.14); border-color: rgba(227,178,60,.32); }
.section--navy .checklist li::after { border-color: var(--gold-bright); }

/* ---------- 9. Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding: .75rem 1rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--navy); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- 10. Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: grid; gap: .4rem; }
.field > label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.req { color: var(--gold); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; padding: .78rem .9rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364788a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-400); box-shadow: 0 0 0 3px rgba(11,42,74,.1); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #c0392b; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .88rem; }
.checkbox input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }

.form__status { font-size: .93rem; padding: .9rem 1.1rem; border-radius: var(--radius); display: none; }
.form__status[data-state="ok"]    { display: block; background: #eef7f0; border: 1px solid #c6e3cd; color: #1d6b33; }
.form__status[data-state="error"] { display: block; background: #fdf0ee; border: 1px solid #f3cdc7; color: #a3291a; }
.form__status[data-state="busy"]  { display: block; background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--muted); }

.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 {
  position: absolute; left: 50%; translate: -50% -140%;
  z-index: 100; padding: .7rem 1.2rem; background: var(--navy); color: #fff;
  border-radius: 0 0 8px 8px; text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: translate .15s var(--ease);
}
.skip-link:focus { translate: -50% 0; color: #fff; }

/* ---------- 11. Panels / CTA ---------- */
.panel {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
}
.panel--gold { background: var(--gold-wash); border-color: var(--gold-soft); }

.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #c7d8ea;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(540px 300px at 92% 12%, rgba(227,178,60,.2), transparent 64%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #a9c0d8; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--navy-900); color: #93adc6; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; font-size: .92rem; }
.site-footer a { color: #c0d3e6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer__brand img { height: 40px; margin-bottom: 1.1rem; }
.footer__brand p { font-size: .9rem; color: #86a1bb; max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer li { margin: 0; }
.footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #7794ae;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- 13. Page header (interior pages) ---------- */
.page-head {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #b9cde1; padding-block: clamp(2.75rem, 6vw, 4.75rem);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 330px at 88% 10%, rgba(227,178,60,.17), transparent 62%);
}
.page-head > * { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .5rem; }
.page-head .lede { color: #a9c0d8; }

.breadcrumb { font-size: .83rem; color: #8caac8; margin-bottom: 1.1rem; }
.breadcrumb a { color: #a9c0d8; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb span { opacity: .55; margin-inline: .45rem; }

/* ---------- 14. Misc ---------- */
.pill {
  display: inline-block; padding: .3rem .75rem; border-radius: 999px;
  background: var(--gold-wash); border: 1px solid var(--gold-soft);
  font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold);
}
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.note {
  border-left: 3px solid var(--gold); background: var(--gold-wash);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .93rem;
}

.region-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.region-list li { margin: 0; background: var(--bg); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: baseline; font-size: .94rem; }
.region-list strong { color: var(--navy); }
.region-list span { color: var(--muted); font-size: .88rem; }

.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--bg-soft), #eef3f8);
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 2rem;
}
.media-frame img { max-height: 100%; width: auto; opacity: .9; }

details.faq { border-bottom: 1px solid var(--line); padding-block: 1.15rem; }
details.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; flex: none; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: .85rem 0 0; font-size: .95rem; }

/* ---------- 15. Small-screen header CTA ---------- */
@media (max-width: 600px) {
  .header-actions > .btn { display: none; }
  .brand img { height: 28px; }
}

/* ===========================================================
   16. Categorical colour system
   -----------------------------------------------------------
   Navy and gold remain the brand. These six colours identify
   the six product categories - the way Microsoft's four squares
   or Google's four letters work: multi-colour as a categorical
   signal, on an otherwise neutral page.
   All six pass WCAG AA (4.98-7.38:1) for text on white.
   =========================================================== */
:root {
  --cat-1: #0F7B8A;  /* personal care & hygiene   */
  --cat-2: #1B5FB4;  /* continence care           */
  --cat-3: #B93A2E;  /* wound care & dressings    */
  --cat-4: #2E7D32;  /* mobility & daily living   */
  --cat-5: #6B3FA0;  /* infection control & PPE   */
  --cat-6: #B35309;  /* home medical devices      */

  --cat-1-wash: #e2eff1;
  --cat-2-wash: #e4ecf6;
  --cat-3-wash: #f7e7e6;
  --cat-4-wash: #e6efe6;
  --cat-5-wash: #ede8f4;
  --cat-6-wash: #f6eae1;

  --spectrum: linear-gradient(90deg,
    var(--cat-1) 0 16.666%, var(--cat-2) 0 33.333%, var(--cat-3) 0 50%,
    var(--cat-4) 0 66.666%, var(--cat-5) 0 83.333%, var(--cat-6) 0 100%);
}

/* --- the spectrum rule under the header and above the footer --- */
.site-header::after {
  content: ""; display: block; height: 3px; background: var(--spectrum);
}
.site-footer { border-top: 4px solid transparent; border-image: var(--spectrum) 1; }



/* --- stat band: one colour each, like the Microsoft squares --- */
.stats .stat:nth-child(1) .stat__num { color: var(--cat-2); }
.stats .stat:nth-child(2) .stat__num { color: var(--cat-1); }
.stats .stat:nth-child(3) .stat__num { color: var(--cat-4); }
.stats .stat:nth-child(4) .stat__num { color: var(--cat-6); }
.stats .stat__num span { color: inherit; opacity: .55; }

/* --- media frame holding the gold-on-navy lockup --- */
.media-frame--fill {
  padding: 0; background: var(--navy); aspect-ratio: 2400 / 1479;
  border-color: var(--navy);
}
.media-frame--fill img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }

/* ===========================================================
   17. Bolder colour - the six colours applied site-wide
   Microsoft/Google pattern: neutral page, colour as the
   categorical and structural signal.
   =========================================================== */

/* Section eyebrows cycle through the palette down each page */
main .section:not(.section--navy):nth-of-type(6n+1) .eyebrow { color: var(--cat-1); }
main .section:not(.section--navy):nth-of-type(6n+2) .eyebrow { color: var(--cat-2); }
main .section:not(.section--navy):nth-of-type(6n+3) .eyebrow { color: var(--cat-3); }
main .section:not(.section--navy):nth-of-type(6n+4) .eyebrow { color: var(--cat-4); }
main .section:not(.section--navy):nth-of-type(6n+5) .eyebrow { color: var(--cat-5); }
main .section:not(.section--navy):nth-of-type(6n+6) .eyebrow { color: var(--cat-6); }

/* Any card grid cycles its icon chips through the palette */
.grid > .card:nth-child(6n+1) .card__icon { background: var(--cat-1-wash); border-color: var(--cat-1); color: var(--cat-1); }
.grid > .card:nth-child(6n+2) .card__icon { background: var(--cat-2-wash); border-color: var(--cat-2); color: var(--cat-2); }
.grid > .card:nth-child(6n+3) .card__icon { background: var(--cat-3-wash); border-color: var(--cat-3); color: var(--cat-3); }
.grid > .card:nth-child(6n+4) .card__icon { background: var(--cat-4-wash); border-color: var(--cat-4); color: var(--cat-4); }
.grid > .card:nth-child(6n+5) .card__icon { background: var(--cat-5-wash); border-color: var(--cat-5); color: var(--cat-5); }
.grid > .card:nth-child(6n+6) .card__icon { background: var(--cat-6-wash); border-color: var(--cat-6); color: var(--cat-6); }

/* On navy sections the palette washes are too pale - keep gold there */
.section--navy .card__icon,
.section--navy .grid > .card .card__icon {
  background: rgba(227,178,60,.14); border-color: rgba(227,178,60,.3); color: var(--gold-bright);
}

/* Process step numbers cycle too */
.steps .step:nth-child(6n+1)::before { color: var(--cat-1); }
.steps .step:nth-child(6n+2)::before { color: var(--cat-2); }
.steps .step:nth-child(6n+3)::before { color: var(--cat-3); }
.steps .step:nth-child(6n+4)::before { color: var(--cat-4); }
.steps .step:nth-child(6n+5)::before { color: var(--cat-5); }
.steps .step:nth-child(6n+6)::before { color: var(--cat-6); }

/* a colour bar grows down the left of a step on hover */
.step { transition: padding-left .25s var(--ease); }
.step::after {
  content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 3px;
  border-radius: 2px; background: currentColor; opacity: 0;
  transform: scaleY(.3); transform-origin: top;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.steps .step:nth-child(6n+1):hover::after { background: var(--cat-1); }
.steps .step:nth-child(6n+2):hover::after { background: var(--cat-2); }
.steps .step:nth-child(6n+3):hover::after { background: var(--cat-3); }
.steps .step:nth-child(6n+4):hover::after { background: var(--cat-4); }
.steps .step:nth-child(6n+5):hover::after { background: var(--cat-5); }
.steps .step:nth-child(6n+6):hover::after { background: var(--cat-6); }
.step:hover::after { opacity: 1; transform: scaleY(1); }

/* The header rule doubles as a scroll-progress indicator:
   grey track, spectrum fill that grows as the page scrolls. */
.site-header::after { background: var(--line); }
.site-header::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--spectrum); z-index: 2;
  transform: scaleX(var(--scroll, 0)); transform-origin: left;
}

/* ---- category marquee ---- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--bg-soft); padding-block: 1.1rem;
}
.marquee__track { display: flex; width: max-content; }
.marquee__row {
  display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .95rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.marquee__item::before {
  content: ""; width: 11px; height: 11px; border-radius: 3px;
  background: var(--c, var(--gold)); flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none; }
  .marquee__track { width: 100%; overflow-x: auto; }
}

/* ===========================================================
   18. Motion
   -----------------------------------------------------------
   Scroll-triggered reveals, hero entrance, hover depth.
   Everything is gated on html.js so the site is fully readable
   without JavaScript, and on prefers-reduced-motion so it is
   comfortable for people who ask for less movement.
   =========================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* --- scroll reveal (class applied by site.js) --- */
  html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .62s var(--ease), transform .62s var(--ease);
    will-change: opacity, transform;
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  /* --- hero entrance, plays once on load --- */
  html.js .hero .eyebrow,
  html.js .hero h1,
  html.js .hero__lede,
  html.js .hero .btn-row,
  html.js .hero__note,
  html.js .hero-card {
    animation: riseIn .75s var(--ease) both;
  }
  html.js .hero .eyebrow  { animation-delay: .05s; }
  html.js .hero h1        { animation-delay: .14s; }
  html.js .hero__lede     { animation-delay: .24s; }
  html.js .hero .btn-row  { animation-delay: .34s; }
  html.js .hero__note     { animation-delay: .42s; }
  html.js .hero-card      { animation-delay: .30s; }

  /* --- page headers on interior pages --- */
  html.js .page-head .breadcrumb,
  html.js .page-head h1,
  html.js .page-head .lede {
    animation: riseIn .7s var(--ease) both;
  }
  html.js .page-head .breadcrumb { animation-delay: .04s; }
  html.js .page-head h1          { animation-delay: .12s; }
  html.js .page-head .lede       { animation-delay: .22s; }

  @keyframes riseIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }

  /* --- icon chips react on card hover --- */
  .card__icon { transition: transform .3s var(--ease), background-color .3s var(--ease); }
  .card:hover .card__icon { transform: translateY(-2px) scale(1.06); }

  /* --- stat numbers lift as the band appears --- */
  .stat { transition: background-color .3s var(--ease); }
  .stat:hover { background: var(--bg-soft); }
}

/* Hover depth works with or without reduced motion preference */
.card--link:hover { box-shadow: var(--shadow-lg); }
.media-frame--fill { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.media-frame--fill:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Table rows pick out on hover - helps on the long product tables */
tbody tr { transition: background-color .15s var(--ease); }
tbody tr:hover { background: var(--bg-soft); }

/* Eyebrows sitting on dark panels must not take a palette colour -
   #B93A2E on navy is 2.3:1. These override the cycling above.
   Gold-bright on navy is 7.3:1. */
.hero .eyebrow,
.page-head .eyebrow,
.cta .eyebrow,
main .section .cta .eyebrow { color: var(--gold-bright); }

/* ===========================================================
   19. Bold colour - tinted sections, filled chips, colour bands
   =========================================================== */

/* --- alternating sections take a palette tint, not plain grey --- */
main .section--soft:nth-of-type(6n+1) { background: var(--cat-1-wash); border-top: 3px solid var(--cat-1); }
main .section--soft:nth-of-type(6n+2) { background: var(--cat-2-wash); border-top: 3px solid var(--cat-2); }
main .section--soft:nth-of-type(6n+3) { background: var(--cat-3-wash); border-top: 3px solid var(--cat-3); }
main .section--soft:nth-of-type(6n+4) { background: var(--cat-4-wash); border-top: 3px solid var(--cat-4); }
main .section--soft:nth-of-type(6n+5) { background: var(--cat-5-wash); border-top: 3px solid var(--cat-5); }
main .section--soft:nth-of-type(6n+6) { background: var(--cat-6-wash); border-top: 3px solid var(--cat-6); }

/* --muted drops to 3.8:1 on a tint, so ledes there use the darker body ink */
.section--soft .lede { color: var(--body); }

/* --- icon chips go solid, white icon inside --- */
.grid > .card:nth-child(6n+1) .card__icon { background: var(--cat-1); border-color: var(--cat-1); color: #fff; }
.grid > .card:nth-child(6n+2) .card__icon { background: var(--cat-2); border-color: var(--cat-2); color: #fff; }
.grid > .card:nth-child(6n+3) .card__icon { background: var(--cat-3); border-color: var(--cat-3); color: #fff; }
.grid > .card:nth-child(6n+4) .card__icon { background: var(--cat-4); border-color: var(--cat-4); color: #fff; }
.grid > .card:nth-child(6n+5) .card__icon { background: var(--cat-5); border-color: var(--cat-5); color: #fff; }
.grid > .card:nth-child(6n+6) .card__icon { background: var(--cat-6); border-color: var(--cat-6); color: #fff; }
.section--navy .card__icon,
.section--navy .grid > .card .card__icon {
  background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-900);
}

/* card borders pick up their colour on hover */
.grid > .card:nth-child(6n+1):hover { border-color: var(--cat-1); }
.grid > .card:nth-child(6n+2):hover { border-color: var(--cat-2); }
.grid > .card:nth-child(6n+3):hover { border-color: var(--cat-3); }
.grid > .card:nth-child(6n+4):hover { border-color: var(--cat-4); }
.grid > .card:nth-child(6n+5):hover { border-color: var(--cat-5); }
.grid > .card:nth-child(6n+6):hover { border-color: var(--cat-6); }



/* --- stat band: each stat carries its colour --- */
.stats .stat { border-top: 4px solid transparent; }
.stats .stat:nth-child(1) { border-top-color: var(--cat-2); }
.stats .stat:nth-child(2) { border-top-color: var(--cat-1); }
.stats .stat:nth-child(3) { border-top-color: var(--cat-4); }
.stats .stat:nth-child(4) { border-top-color: var(--cat-6); }

/* ===========================================================
   20. Animated hero and the four-square mark
   =========================================================== */
.hero__orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__orb {
  position: absolute; display: block;
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  border-radius: 50%;
  background: var(--c);
  opacity: .22;
  filter: blur(70px);
}
.hero__orb:nth-child(1) { top: -12%;  left: -8%;  --c: var(--cat-2); }
.hero__orb:nth-child(2) { top: 40%;   left: 18%;  --c: var(--cat-1); }
.hero__orb:nth-child(3) { top: -18%;  right: 8%;  --c: var(--cat-5); }
.hero__orb:nth-child(4) { bottom: -22%; right: 22%; --c: var(--cat-4); }
.hero__orb:nth-child(5) { bottom: -10%; left: 38%; --c: var(--cat-6); }

@media (prefers-reduced-motion: no-preference) {
  .hero__orb { animation: drift 26s ease-in-out infinite alternate; }
  .hero__orb:nth-child(2) { animation-duration: 32s; animation-delay: -6s; }
  .hero__orb:nth-child(3) { animation-duration: 29s; animation-delay: -12s; }
  .hero__orb:nth-child(4) { animation-duration: 35s; animation-delay: -3s; }
  .hero__orb:nth-child(5) { animation-duration: 24s; animation-delay: -9s; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, -8%, 0) scale(1.18); }
}

/* four-square mark, the Microsoft-squares nod */
.squares {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  width: 30px; flex: none;
}
.squares i { display: block; aspect-ratio: 1; border-radius: 2px; }
.squares i:nth-child(1) { background: var(--cat-3); }
.squares i:nth-child(2) { background: var(--cat-4); }
.squares i:nth-child(3) { background: var(--cat-2); }
.squares i:nth-child(4) { background: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) {
  .squares i { animation: squarePulse 3.2s var(--ease) infinite; }
  .squares i:nth-child(2) { animation-delay: .2s; }
  .squares i:nth-child(3) { animation-delay: .4s; }
  .squares i:nth-child(4) { animation-delay: .6s; }
}
@keyframes squarePulse {
  0%, 70%, 100% { transform: scale(1);   opacity: 1; }
  35%           { transform: scale(.72); opacity: .6; }
}
.hero-card h2 { display: flex; align-items: center; gap: .75rem; }
