/* ==========================================================================
   Tradimed - design tokens, base, layout, utilities
   Brand palette recovered from the rendered original (screenshot-sampled):
   header blue #207bbd, action green #6bb44c, dark footer navy.
   ========================================================================== */

:root {
  /* brand */
  --blue: #207bbd;
  --blue-600: #1a68a3;
  --blue-700: #134f7e;
  --blue-50: #eaf3fb;
  --green: #6bb44c;
  --green-600: #5aa03c;
  --green-50: #eef7ea;
  --navy: #0b1d33;
  --navy-2: #10294a;
  --navy-3: #173a63;

  /* neutrals */
  --ink: #0e1726;
  --text: #2b3445;
  --muted: #565e6b;           /* light backgrounds only */
  --muted-on-dark: #a9c1d8;   /* dark backgrounds only */
  --line: #e2e8f0;
  --stone: #eef1f6;
  --surface: #f7f9fc;
  --white: #ffffff;

  /* type */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  --fs-4xl: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);

  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --section-y: clamp(64px, 9vw, 120px);

  /* layout */
  --max-w: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --chrome-h: 116px;          /* top bar (40) + header (76): space above the home hero */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --pill: 9999px;

  /* depth */
  --shadow-sm: 0 1px 2px rgba(11, 29, 51, .06), 0 1px 3px rgba(11, 29, 51, .08);
  --shadow: 0 10px 30px -12px rgba(11, 29, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 29, 51, .30);
  --ring: 0 0 0 3px rgba(32, 123, 189, .35);

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .7s;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 var(--sp-4); letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: var(--sp-4); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--stone { background: var(--stone); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--muted-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--blue { background: linear-gradient(135deg, var(--blue-700), var(--blue) 60%, #2a8fd6); color: #e6f1fb; }
.section--blue h2, .section--blue h3 { color: #fff; }

.grid { display: grid; gap: var(--sp-6); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.1fr .9fr; }
  .split--wide-right { grid-template-columns: .9fr 1.1fr; }
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-md); color: var(--muted); }
.section--dark .section-head p { color: var(--muted-on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
  margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .section--blue .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--green); }
.lead { font-size: var(--fs-md); color: var(--muted); line-height: 1.75; }
.text-gradient {
  background: linear-gradient(100deg, var(--blue) 0%, #3fa0e6 40%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 12px 24px; border-radius: var(--pill); border: 0;
  background: var(--bg); color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .01em; line-height: 1.2; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--bg) 80%, transparent);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--bg) 90%, transparent); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--green { --bg: var(--green); --fg: var(--ink); }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.btn--white { --bg: #fff; --fg: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue-600); }
.btn--ghost-light { --bg: rgba(255,255,255,.06); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { min-height: 40px; padding: 8px 18px; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--font-display); font-size: var(--fs-sm); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="blur"] { filter: blur(10px); transform: translate3d(0, 16px, 0); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.img-reveal img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.img-reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  transform-origin: right; transition: transform 1s var(--ease-in-out);
}
.img-reveal.is-in img { transform: scale(1); }
.img-reveal.is-in::after { transform: scaleX(0); }
.no-js .img-reveal::after { display: none; }
.no-js .img-reveal img { transform: none; }

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

/* grid children must be allowed to shrink below their min-content (animated SVGs, long words) */
.grid > *, .split > *, .hero__grid > *, .shop-layout > *, .pd > *, .pd-body > *, .contact-wrap > *, .footer-main > *, .footer-offers > *, .cta-band > * { min-width: 0; }
