/* ==========================================================================
   B2B Solutions — Global Design System
   Built from AA-Traders-Developer-Spec.md + 9 page mockups
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0a1a2f;
  --navy-800: #0f2138;
  --navy-700: #16304f;
  --teal-500: #16a085;
  --teal-600: #0f8c73;
  --teal-400: #2ec4a6;
  --teal-100: #e3f5f0;
  --teal-50: #f1faf7;
  --logo-blue: #2e5c9a;

  /* Surfaces */
  --bg-page: #ffffff;
  --bg-section-alt: #f6f8f9;

  /* Text */
  --text-heading: #111827;
  --text-body: #5b6b79;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #aeb9c4;

  /* Lines & shadow */
  --border-light: #e5e9ec;
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.12);
  --shadow-teal: 0 4px 10px rgba(22, 160, 133, 0.25);

  /* Layout */
  --container: 1200px;
  --gutter: 1.5rem;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --section-y: 5rem;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t: 200ms var(--ease);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--teal-500); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--teal-600); }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text-heading);
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; line-height: 1.15; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

/* Broken/missing photos still read as a dark tech panel rather than a torn icon */
img.photo { background: linear-gradient(135deg, #12263f, #1d3a5c); color: transparent; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 3.5rem; }
.section--alt { background: var(--bg-section-alt); }
.section--teal { background: var(--teal-50); }
.section--dark { background: var(--navy-900); color: var(--text-on-dark); }

/* --- Photographic section backgrounds ---------------------------------
   Each is a photo under a heavy flat wash. The wash is deliberately opaque
   (0.90+) so the picture reads as texture and body copy keeps its contrast
   ratio — the photo should be felt, not read. */
.section--teal {
  background-image:
    linear-gradient(rgba(241, 250, 247, 0.93), rgba(227, 245, 240, 0.95)),
    url("../img/bg-process.jpg");
  background-size: cover;
  background-position: center;
}

.section--dark {
  background-image:
    linear-gradient(rgba(10, 26, 47, 0.93), rgba(10, 26, 47, 0.96)),
    url("../img/bg-cta.jpg");
  background-size: cover;
  background-position: center;
}

.section--alt {
  background-image:
    linear-gradient(rgba(246, 248, 249, 0.94), rgba(246, 248, 249, 0.96)),
    url("../img/bg-cta-soft.jpg");
  background-size: cover;
  background-position: center;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--text-on-dark-muted); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Asymmetric splits. These are classes rather than inline styles so the
   breakpoints below can actually collapse them. */
.grid-split { grid-template-columns: 0.9fr 1.1fr; }
.grid-split-rev { grid-template-columns: 1.1fr 0.9fr; }
.grid-aside { grid-template-columns: 0.85fr 1.35fr; }
.grid-main-aside { grid-template-columns: 1.9fr 1fr; }
.grid-faq-preview { grid-template-columns: 0.85fr 1.35fr 1fr; }
.compare-cols { display: grid; grid-template-columns: repeat(4, 1fr); }

.gap-md { gap: 2.5rem; }
.gap-lg { gap: 3rem; }
.items-center { align-items: center; }
.items-start { align-items: start; }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.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;
}

/* Icon glyphs injected by main.js */
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* --------------------------------------------------------------------------
   4. Typography blocks
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 0.75rem;
}

.accent { color: var(--teal-500); }
.section--dark .accent { color: var(--teal-400); }

.section-head { max-width: 680px; margin-inline: auto; margin-bottom: 3rem; }
.section-head p { margin-top: 0.75rem; }
.section-head--left { margin-inline: 0; }

.lead { font-size: 1rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t);
}
.btn .icon { width: 1rem; height: 1rem; transition: transform var(--t); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover { background: var(--teal-600); color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--teal-500);
  color: var(--teal-500);
}
.btn--outline:hover { background: var(--teal-500); color: #fff; }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); }

.btn--white { background: #fff; color: var(--teal-600); }
.btn--white:hover { background: var(--navy-900); color: #fff; }

.btn--sm { padding: 0.625rem 1.125rem; font-size: 0.8125rem; }
.btn--block { width: 100%; justify-content: center; }

/* Tertiary text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.link-arrow .icon { width: 0.9rem; height: 0.9rem; transition: transform var(--t); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Pill filter buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--t);
}
.pill .icon { width: 1rem; height: 1rem; }
.pill:hover { border-color: var(--teal-500); color: var(--teal-500); }
.pill.is-active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. Icon badges
   -------------------------------------------------------------------------- */
.badge-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-500);
  flex: none;
}
.badge-icon .icon { width: 26px; height: 26px; }
.badge-icon--sm { width: 44px; height: 44px; }
.badge-icon--sm .icon { width: 20px; height: 20px; }
.badge-icon--solid { background: var(--teal-500); color: #fff; }
.badge-icon--white { background: #fff; box-shadow: var(--shadow-md); }
.badge-icon--dark { background: rgba(22, 160, 133, 0.15); color: var(--teal-400); }

/* Badge that overlaps the bottom-left of a card photo */
.card__badge {
  position: absolute;
  left: 1rem;
  bottom: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.card__badge .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card__body { padding: 1.5rem; }
.card__title { margin-bottom: 0.5rem; font-size: 1.0625rem; }
.card__text { font-size: 0.875rem; margin-bottom: 1rem; }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--navy-800);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.card--hover:hover .card__media img { transform: scale(1.05); }

/* Media card with an overlapping icon badge needs breathing room below */
.card--badged .card__body { padding-top: 2.25rem; }

/* Small check list */
.checklist { display: grid; gap: 0.75rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.checklist .icon { width: 1.125rem; height: 1.125rem; color: var(--teal-500); margin-top: 0.15rem; }
.section--dark .checklist li { color: var(--text-on-dark-muted); }
.section--dark .checklist .icon { color: var(--teal-400); }

/* Bulleted brand list */
.brand-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; font-size: 0.8125rem; }
.brand-list li { position: relative; padding-left: 0.85rem; }
.brand-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* --------------------------------------------------------------------------
   8. Utility bar
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  font-size: 0.75rem;
}
.utility-bar .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.utility-bar__social { display: flex; align-items: center; gap: 0.5rem; }
.social-link {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.social-link .icon { width: 11px; height: 11px; }
.social-link:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }

/* --------------------------------------------------------------------------
   9. Header
   -------------------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border-light); }
.site-header .container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--text-heading); }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: block;
}
.logo__tag { font-size: 0.6875rem; color: var(--text-body); line-height: 1.3; display: block; }

.header-info { display: flex; align-items: center; gap: 2rem; }
.info-item { display: flex; align-items: center; gap: 0.65rem; }
.info-item .icon { width: 20px; height: 20px; color: var(--teal-500); }
.info-item__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-body);
  line-height: 1.4;
}
.info-item__value {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.4;
}
.info-item__value:hover { color: var(--teal-500); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-heading);
  transition: all var(--t);
}
.icon-btn:hover { border-color: var(--teal-500); color: var(--teal-500); }

/* --------------------------------------------------------------------------
   10. Nav
   -------------------------------------------------------------------------- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow var(--t);
}
.main-nav.is-stuck { box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-list > li { position: relative; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 52px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-heading);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--teal-500); }
.nav-list a .icon { width: 0.9rem; height: 0.9rem; }
.nav-list .is-current > a { color: var(--teal-500); border-bottom-color: var(--teal-500); }

.nav-drop {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t);
  z-index: 70;
}
.nav-list > li:hover > .nav-drop,
.nav-list > li:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a {
  height: auto;
  padding: 0.6rem 1.25rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
  border-bottom: 0;
}
.nav-drop a:hover { background: var(--teal-50); color: var(--teal-500); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Search overlay */
.search-panel {
  display: none;
  background: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-light);
  padding-block: 1rem;
}
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 0.5rem; max-width: 640px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.field { position: relative; }
.field .icon {
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  width: 1rem; height: 1rem;
  color: var(--text-body);
  pointer-events: none;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-heading);
  font-size: 0.875rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.field .icon + .input,
.field .icon ~ .input { padding-left: 2.5rem; }
.input::placeholder, .textarea::placeholder { color: #9aa7b2; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.12);
}
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; padding-right: 2.25rem; background-image: none; }

.field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #d64545;
}
.field.has-error .input,
.field.has-error .textarea { border-color: #d64545; }
.field.has-error .field__error { display: block; }

.form-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}
.form-note.is-visible { display: block; }

/* Search bar with attached button */
.search-bar { display: flex; }
.search-bar .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.search-bar button {
  display: grid;
  place-items: center;
  width: 48px;
  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--teal-500);
  color: #fff;
  transition: background var(--t);
}
.search-bar button:hover { background: var(--teal-600); }

/* Newsletter input group */
.newsletter-form { display: flex; }
.newsletter-form .input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: 0;
  font-size: 0.8125rem;
}
.newsletter-form button {
  display: grid;
  place-items: center;
  width: 46px;
  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--teal-500);
  color: #fff;
  transition: background var(--t);
}
.newsletter-form button:hover { background: var(--teal-600); }

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 420px at 78% 40%, rgba(22, 160, 133, 0.22), transparent 65%),
    linear-gradient(100deg, var(--navy-900) 32%, rgba(10, 26, 47, 0.82) 62%, rgba(10, 26, 47, 0.6) 100%);
}
.hero .container { position: relative; z-index: 1; padding-block: 5rem; }
.hero--tall .container { padding-block: 6rem; }
.hero--short .container { padding-block: 3.5rem; }

.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Dot-matrix world map / network overlay */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(46, 196, 166, 0.3) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(60% 70% at 78% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 70% at 78% 45%, #000 0%, transparent 72%);
  opacity: 0.75;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb .icon { width: 0.8rem; height: 0.8rem; }
.breadcrumb .is-current { color: var(--teal-400); }
.breadcrumb--pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  margin: 0;
}

/* Inline hero feature row */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-feature { display: flex; align-items: center; gap: 0.75rem; }
.hero-feature .icon { width: 26px; height: 26px; color: var(--teal-400); }
.hero-feature strong { display: block; font-size: 0.875rem; color: #fff; font-weight: 600; }
.hero-feature span { display: block; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }

.hero-features--boxed .hero-feature {
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

/* Inline hero stat row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.hero-stat { display: flex; align-items: center; gap: 0.75rem; }
.hero-stat .icon { width: 26px; height: 26px; color: var(--teal-400); }
.hero-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.375rem;
  color: #fff;
  line-height: 1.1;
}
.hero-stat span { display: block; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   13. Stats strip
   -------------------------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background:
    linear-gradient(rgba(10, 26, 47, 0.90), rgba(15, 33, 56, 0.94)),
    url("../img/bg-stats.jpg") center / cover;
  border-radius: var(--radius);
  padding: 2.25rem 1rem;
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  padding-inline: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child { border-right: 0; }
.stat .icon { width: 34px; height: 34px; color: var(--teal-400); }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.stat span { display: block; font-size: 0.8125rem; line-height: 1.3; color: var(--text-on-dark-muted); }
.stats-strip--plain { background: transparent; padding-block: 0; }
.stats-strip--plain .stat b { color: var(--text-heading); }
.stats-strip--plain .stat span { color: var(--text-body); }
.stats-strip--plain .stat { border-color: var(--border-light); }
.stats-strip--plain .stat .icon { color: var(--teal-500); }

/* --------------------------------------------------------------------------
   14. Logo row
   -------------------------------------------------------------------------- */
.logo-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.logo-row--6 { grid-template-columns: repeat(6, 1fr); }
.logo-row--5 { grid-template-columns: repeat(5, 1fr); }
.logo-cell {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border-light);
  min-height: 84px;
}
.logo-cell:last-child { border-right: 0; }
.logo-cell img { max-height: 34px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: all var(--t); }
.logo-cell:hover img { filter: none; opacity: 1; }

/* Carousel variant with arrows */
.logo-carousel { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo-carousel__intro { flex: 1 1 200px; max-width: 240px; }
.logo-carousel__track {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 0.25rem;
}
.logo-carousel__track::-webkit-scrollbar { display: none; }
.logo-carousel__track .logo-cell {
  flex: 0 0 clamp(140px, 16%, 190px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: #fff;
  color: var(--teal-500);
  transition: all var(--t);
}
.carousel-btn:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.carousel-btn--solid { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.carousel-btn--solid:hover { background: var(--teal-600); }

/* --------------------------------------------------------------------------
   15. Accordion
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 0.75rem; }
.accordion__item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.accordion__item.is-open { border-color: var(--teal-500); background: var(--teal-50); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-heading);
  transition: color var(--t);
}
.accordion__trigger:hover { color: var(--teal-500); }
.accordion__item.is-open .accordion__trigger { color: var(--teal-600); font-weight: 600; }
.accordion__mark {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  transition: all var(--t);
}
.accordion__mark .icon { width: 14px; height: 14px; transition: transform var(--t); }
.accordion__item.is-open .accordion__mark {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
}
.accordion__item.is-open .accordion__mark .icon { transform: rotate(180deg); }
/* Collapsed by default; main.js sets an explicit pixel max-height on open so
   the transition runs against a real measured value rather than a guessed cap. */
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms var(--ease);
}
.accordion__panel p { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; }

/* Compact list variant (General Order page) */
.accordion--list { gap: 0; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.accordion--list .accordion__item {
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
}
.accordion--list .accordion__item:last-child { border-bottom: 0; }
.accordion--list .accordion__trigger { font-size: 0.875rem; padding: 0.9rem 1.25rem; }
.accordion--list .accordion__trigger > span { display: flex; align-items: center; gap: 0.75rem; }
.accordion--list .accordion__trigger .icon.lead-icon { width: 18px; height: 18px; color: var(--teal-500); }

/* --------------------------------------------------------------------------
   16. Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed var(--border-light);
}
.timeline__node { text-align: center; position: relative; }
.timeline__dot {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  position: relative;
  z-index: 1;
}
.timeline__dot .icon { width: 26px; height: 26px; }
.timeline__node.is-active .timeline__dot {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(22, 160, 133, 0.15);
}
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--teal-500); margin-bottom: 0.35rem; }
.timeline__node p { font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   17. Process steps
   -------------------------------------------------------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.process::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed rgba(22, 160, 133, 0.35);
}
.process__step { text-align: center; position: relative; }
.process__icon {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-500);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.process__icon .icon { width: 28px; height: 28px; }
.process__step h4 { margin-bottom: 0.35rem; }
.process__step p { font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background:
    linear-gradient(rgba(10, 26, 47, 0.94), rgba(10, 26, 47, 0.97)),
    url("../img/bg-footer.jpg") center / cover;
  color: var(--text-on-dark-muted);
  padding-top: 4rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr 1.4fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-grid--4 { grid-template-columns: 1.6fr 1fr 1.2fr 1.6fr; }
.site-footer .logo { color: #fff; }
.site-footer .logo__tag { color: var(--text-on-dark-muted); }
.site-footer p { font-size: 0.875rem; }
.footer-about p { margin: 1.25rem 0; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social .social-link { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.footer-social .social-link .icon { width: 15px; height: 15px; }

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-on-dark-muted); }
.footer-links a:hover { color: var(--teal-400); }

.footer-contact { display: grid; gap: 0.9rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.875rem; }
.footer-contact .icon { width: 1rem; height: 1rem; color: var(--teal-400); margin-top: 0.25rem; }
.footer-contact a { color: var(--text-on-dark-muted); }
.footer-contact a:hover { color: var(--teal-400); }

.footer-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.footer-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; width: 100%; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}
.footer-bottom nav { display: flex; gap: 1rem; align-items: center; }
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--teal-400); }

/* --------------------------------------------------------------------------
   19. CTA blocks
   -------------------------------------------------------------------------- */
.cta-banner {
  background:
    linear-gradient(rgba(10, 26, 47, 0.90), rgba(10, 26, 47, 0.94)),
    url("../img/bg-cta.jpg") center / cover;
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 88% 20%, rgba(22, 160, 133, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2, .cta-banner h3 { color: #fff; }
.cta-banner p { color: var(--text-on-dark-muted); margin-top: 0.5rem; }

.cta-strip {
  background: var(--teal-500);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-strip h3 { color: #fff; }
.cta-strip p { color: rgba(255, 255, 255, 0.85); }
.cta-strip__text { flex: 1; min-width: min(260px, 100%); }

.cta-soft {
  background:
    linear-gradient(rgba(241, 250, 247, 0.92), rgba(227, 245, 240, 0.95)),
    url("../img/bg-cta-soft.jpg") center / cover;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-soft__text { flex: 1; min-width: min(260px, 100%); }

/* --------------------------------------------------------------------------
   20. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  grid-auto-rows: 190px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery-item--featured { grid-column: span 2; grid-row: span 2; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__scrim {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 26, 47, 0.65);
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-item__scrim,
.gallery-item:focus-visible .gallery-item__scrim { opacity: 1; }
.gallery-item__scrim span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-500);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.gallery-item__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem;
  text-align: left;
  background: linear-gradient(to top, rgba(10, 26, 47, 0.92), transparent);
  color: #fff;
}
.gallery-item__caption h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.35rem; }
.gallery-item__caption .meta {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.8);
}
.gallery-item__caption .meta .icon { width: 0.85rem; height: 0.85rem; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: var(--teal-500);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.tag--dark { background: rgba(255, 255, 255, 0.15); }
.tag--corner { position: absolute; top: 0.85rem; left: 0.85rem; margin: 0; z-index: 2; }

/* Featured gallery banner */
.feature-banner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--navy-900);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-banner__media { position: relative; min-height: 300px; }
.feature-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner__body { padding: 2.5rem; color: #fff; align-self: center; }
.feature-banner__body h2 { color: #fff; margin-bottom: 0.75rem; }
.feature-banner__body p { color: var(--text-on-dark-muted); }
.feature-banner__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.8125rem; color: var(--text-on-dark-muted);
}
.feature-banner__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.feature-banner__meta .icon { width: 0.9rem; height: 0.9rem; color: var(--teal-400); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(10, 26, 47, 0.92);
  padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.lightbox__close:hover { background: var(--teal-500); border-color: var(--teal-500); }

/* --------------------------------------------------------------------------
   21. Page-specific blocks
   -------------------------------------------------------------------------- */

/* Story collage (About) */
.collage { position: relative; }
.collage__frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.collage__frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.collage__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--teal-500);
  color: #fff;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.collage__badge b { display: block; font-family: var(--font-head); font-size: 1.75rem; line-height: 1.1; }
.collage__badge span { display: block; font-size: 0.8125rem; line-height: 1.3; }

/* CEO block */
.ceo-grid { display: grid; grid-template-columns: 0.85fr 1.4fr 1fr; gap: 2rem; align-items: start; }
.ceo-photo { position: relative; }
.ceo-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.ceo-photo__quote {
  position: absolute;
  right: -14px; bottom: -14px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
}
.ceo-photo__quote .icon { width: 24px; height: 24px; }
.signature {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.75rem;
  color: var(--text-heading);
  margin: 1.25rem 0 0.5rem;
}
.ceo-name { font-weight: 600; color: var(--teal-500); }
.ceo-title { font-size: 0.8125rem; }

/* Quick category strip overlapping hero (Products) */
.quick-strip {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}
.quick-card {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-heading);
  transition: all var(--t);
}
.quick-card:hover { border-color: var(--teal-500); color: var(--teal-500); transform: translateY(-3px); }
.quick-card .icon { width: 26px; height: 26px; color: var(--teal-500); }
.quick-card span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* Comparison split card sits at a different ratio than the default */
.split-card--wide { grid-template-columns: 1fr 1.3fr; }

/* Feature row (Why choose) */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-item h4 { margin-bottom: 0.3rem; font-size: 0.9375rem; }
.feature-item p { font-size: 0.8125rem; }

/* Product listing */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: 76px; }
.sidebar__card { border: 1px solid var(--border-light); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sidebar__title {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-heading);
}
.cat-list li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-heading);
  transition: all var(--t);
}
.cat-list li a .icon { width: 17px; height: 17px; color: var(--text-body); }
.cat-list li a span:first-of-type { flex: 1; }
.cat-list li a .count { font-size: 0.8125rem; color: var(--text-body); }
.cat-list li a:hover { background: var(--teal-50); color: var(--teal-500); }
.cat-list li a:hover .icon { color: var(--teal-500); }
.cat-list li.is-active a { background: var(--teal-500); color: #fff; }
.cat-list li.is-active a .icon,
.cat-list li.is-active a .count { color: #fff; }

.filter-group { padding: 1.25rem; border-bottom: 1px solid var(--border-light); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > label,
.filter-group > .filter-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}
.check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8125rem; margin-bottom: 0.5rem; cursor: pointer; }
.check input { accent-color: var(--teal-500); width: 15px; height: 15px; }
.range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; margin-top: 0.4rem; }
input[type="range"] { width: 100%; accent-color: var(--teal-500); }

.listing__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.listing__meta .sort { display: flex; align-items: center; gap: 0.5rem; }
.listing__meta .select { width: auto; padding-block: 0.5rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card { position: relative; overflow: hidden; }
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-section-alt);
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; }
.count-badge {
  position: absolute;
  top: 0.65rem; right: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--teal-100);
  color: var(--teal-600);
  font-size: 0.6875rem;
  font-weight: 700;
}
.ribbon {
  position: absolute;
  top: 0.65rem; left: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--teal-500);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}
.product-card__brands { font-size: 0.8125rem; color: var(--teal-600); margin-bottom: 0.4rem; }

/* Category tab row */
.tab-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  /* Grid/flex children default to min-width:auto, which would let the tab
     strip push the page wide instead of scrolling inside itself. */
  min-width: 0;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--t);
}
.tab .icon { width: 20px; height: 20px; }
.tab:hover { color: var(--teal-500); }
.tab.is-active { color: var(--teal-500); border-bottom-color: var(--teal-500); }

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.toolbar > * { min-width: 0; }

/* Expert help split card */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  background: var(--navy-900);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
}
.split-card__media { min-height: 280px; }
.split-card__media img { width: 100%; height: 100%; object-fit: cover; }
.split-card__body { padding: 2.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; }
.split-card__body h2, .split-card__body h3 { color: #fff; }
.split-card__body p { color: var(--text-on-dark-muted); }

/* Document cards (Featured) */
.doc-card { position: relative; overflow: hidden; }
.doc-card__scan {
  aspect-ratio: 3 / 4;
  background: var(--bg-section-alt);
  padding: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
.doc-card__scan img { max-height: 100%; width: auto; object-fit: contain; box-shadow: var(--shadow-md); }
.doc-card__foot { padding: 1.25rem 1.5rem 1.5rem; }
.doc-card__foot h3 { font-size: 1.0625rem; margin-bottom: 0.2rem; }
.doc-card__foot .meta { font-size: 0.8125rem; }
.doc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: var(--teal-600);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--t);
}
.doc-btn:hover { background: var(--teal-500); color: #fff; }

/* Trust badges strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  padding-inline: 1rem;
  border-right: 1px solid rgba(22, 160, 133, 0.18);
}
.trust-item:last-child { border-right: 0; }
.trust-item .icon { width: 30px; height: 30px; color: var(--teal-500); }
.trust-item b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--text-heading); line-height: 1.2; }
.trust-item span { display: block; font-size: 0.8125rem; }

/* 2x2 stat card (General Order) */
.stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.stat-card > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat-card > div:nth-child(2n) { border-right: 0; }
.stat-card > div:nth-child(n + 3) { border-bottom: 0; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--text-heading); line-height: 1.1; }
.stat-card span { display: block; font-size: 0.8125rem; }

/* Dark mini card */
.mini-dark {
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mini-dark::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 160, 133, 0.3), transparent 70%);
}
.mini-dark h4 { color: #fff; margin-bottom: 0.5rem; }
.mini-dark p { color: var(--text-on-dark-muted); font-size: 0.875rem; margin-bottom: 1.25rem; }

/* Contact info cards */
.info-card { text-align: left; padding: 1.5rem; }
.info-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.info-card__head .icon { width: 26px; height: 26px; color: var(--teal-500); }
.info-card__head h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.info-card p { font-size: 0.875rem; }

/* Office card */
.office-card { display: grid; grid-template-columns: 0.85fr 1.15fr; overflow: hidden; }
.office-card__media { position: relative; min-height: 190px; }
.office-card__media img { width: 100%; height: 100%; object-fit: cover; }
.office-card__body { padding: 1.5rem; }
.office-card__body h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; margin-bottom: 1rem; }
.office-card__body h3 .icon { width: 1.05rem; height: 1.05rem; color: var(--teal-500); }
.office-card__body ul { display: grid; gap: 0.7rem; }
.office-card__body li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8125rem; }
.office-card__body li .icon { width: 0.95rem; height: 0.95rem; color: var(--text-body); margin-top: 0.25rem; }

/* Map */
.map-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-section-alt);
  display: block;
}

/* Quick action cards */
.action-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem;
  color: var(--text-heading);
}
.action-card .badge-icon { width: 46px; height: 46px; }
.action-card .badge-icon .icon { width: 21px; height: 21px; }
.action-card__text { flex: 1; }
.action-card strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.action-card span { display: block; font-size: 0.8125rem; color: var(--text-body); }
.action-card > .icon { width: 1.1rem; height: 1.1rem; color: var(--text-body); transition: transform var(--t); }
.action-card:hover > .icon { transform: translateX(4px); color: var(--teal-500); }

/* FAQ category cards */
.faq-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.faq-cat {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--text-heading);
}
.faq-cat .icon { width: 26px; height: 26px; color: var(--teal-500); }
.faq-cat strong { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.faq-cat span { font-size: 0.75rem; color: var(--text-body); }

/* Sidebar resource list */
.resource-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-heading);
  transition: background var(--t);
}
.resource-list li a:hover { background: var(--teal-50); }
.resource-list .icon:first-child { width: 20px; height: 20px; color: var(--teal-500); }
.resource-list__text { flex: 1; }
.resource-list strong { display: block; font-size: 0.875rem; font-weight: 600; }
.resource-list span { display: block; font-size: 0.75rem; color: var(--text-body); }
.resource-list .icon:last-child { width: 0.9rem; height: 0.9rem; color: var(--text-body); }

.article-list { display: grid; gap: 1rem; padding: 1.25rem; }
.article-list a { display: flex; gap: 0.85rem; align-items: center; color: var(--text-heading); }
.article-list img { width: 62px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
.article-list strong { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.article-list span { display: block; font-size: 0.75rem; color: var(--text-body); margin-top: 0.2rem; }
.article-list a:hover strong { color: var(--teal-500); }

/* Support card (dark, FAQ sidebar + hero) */
.support-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
}
.support-card h3 { color: #fff; margin-bottom: 0.5rem; }
.support-card p { color: var(--text-on-dark-muted); font-size: 0.875rem; }
.support-card ul { display: grid; gap: 1rem; margin: 1.5rem 0; }
.support-card li { display: flex; gap: 0.75rem; align-items: flex-start; }
.support-card li .icon { width: 20px; height: 20px; color: var(--teal-400); margin-top: 0.15rem; }
.support-card li strong { display: block; font-size: 0.8125rem; color: #fff; font-weight: 600; }
.support-card li span { display: block; font-size: 0.8125rem; color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------------------
   22. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-600); }

/* --------------------------------------------------------------------------
   23. Reveal on scroll
   -------------------------------------------------------------------------- */
/* Content is visible by default. The hidden start state is scoped to
   .js-reveal, which main.js only adds when it can actually reveal it again —
   so a JS or IntersectionObserver failure can never leave the page blank. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-info { gap: 1.25rem; }
  .header-info .info-item:first-child { display: none; }
  .nav-list { gap: 1.25rem; }
  .quick-strip { grid-template-columns: repeat(4, 1fr); }
  .listing { grid-template-columns: 240px 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .logo-cell:nth-child(4n) { border-right: 0; }
  .logo-cell:nth-child(-n + 4) { border-bottom: 1px solid var(--border-light); }
  .faq-cats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --section-y: 3.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.625rem; }

  .utility-bar { display: none; }
  .site-header .container { min-height: 68px; }
  .header-info { display: none; }

  .main-nav .container { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; order: -1; }
  .nav-list {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { height: auto; padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
  .nav-list .is-current > a { border-bottom-color: var(--teal-500); }
  .nav-drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 1rem;
    display: none;
  }
  .nav-list > li.is-expanded > .nav-drop { display: block; }

  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .container { padding-block: 3.5rem; }
  .hero--tall .container { padding-block: 4rem; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-split,
  .grid-split-rev,
  .grid-aside,
  .grid-main-aside,
  .grid-faq-preview { grid-template-columns: 1fr; }
  .compare-cols { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .compare-cols > div { border-right: 0 !important; }
  .gap-lg, .gap-md { gap: 2rem; }
  .split-card--wide { grid-template-columns: 1fr; }

  .stats-strip { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 0; }
  .stat { border-right: 0; justify-content: flex-start; }

  .timeline, .process { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before, .process::before { display: none; }
  .timeline__node, .process__step { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; text-align: left; align-items: start; }
  .timeline__dot, .process__icon { margin: 0; }

  .ceo-grid { grid-template-columns: 1fr; }
  .ceo-photo img { aspect-ratio: 16/10; }

  .quick-strip { margin-top: 0; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow-md); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }

  .listing { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr; }

  .split-card, .office-card, .feature-banner { grid-template-columns: 1fr; }
  .split-card__body { grid-template-columns: 1fr; padding: 1.75rem; }
  .feature-banner__body { padding: 1.75rem; }
  .feature-banner__media { min-height: 240px; }

  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .trust-item:nth-child(2n) { border-right: 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .collage__frame img { min-height: 220px; }

  .cta-banner, .cta-strip, .cta-soft { padding: 1.75rem; }
  .footer-grid, .footer-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 1.125rem; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .quick-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .faq-cats { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; justify-content: flex-start; }
  .stat-card { grid-template-columns: 1fr; }
  .stat-card > div { border-right: 0; }
  .stat-card > div:nth-child(3) { border-bottom: 1px solid var(--border-light); }
  .brand-list { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--featured { grid-column: span 1; grid-row: span 1; }

  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { border-bottom: 1px solid var(--border-light); }
  .logo-cell:nth-child(2n) { border-right: 0; }

  .footer-grid, .footer-grid--4 { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .collage__frame { grid-template-columns: 1fr; }
  .collage__badge {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: -2rem auto 0;
    width: fit-content;
  }
  .compare-cols { grid-template-columns: 1fr; }

  .cta-banner, .cta-strip, .cta-soft { flex-direction: column; align-items: flex-start; }
  .listing__meta { flex-direction: column; align-items: flex-start; }
}

/* Flex CTA rows carry per-instance `min-width` hints so they wrap nicely on
   desktop; below this width those hints are wider than the screen itself. */
@media (max-width: 520px) {
  .cta-banner > *,
  .cta-strip > *,
  .cta-soft > *,
  .split-card__body > *,
  .feature-banner__body > *,
  .section--dark > .container > *,
  .newsletter-form,
  .search-bar { min-width: 0 !important; }
}

/* Very narrow phones (iPhone SE and similar) */
@media (max-width: 400px) {
  .stats-strip { grid-template-columns: 1fr; gap: 1.25rem; }
  .stat { padding-inline: 0.5rem; }
  .stat b { font-size: 1.5rem; }
  .quick-strip { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: 1fr; }
  .logo-cell:last-child { border-bottom: 0; }
  .logo-carousel__intro { max-width: none; }
  .btn { padding-inline: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
  .utility-bar, .main-nav, .to-top, .site-footer { display: none; }
}
