/* ============================================================
   NovoComms UK — Master Stylesheet
   Professional electronics / semiconductor industry design
   Supports dual naming conventions (BEM + simple) throughout
   ============================================================ */

/* ── 0. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Navy palette */
  --navy-900: #0a1628;
  --navy-800: #0f1d32;
  --navy-700: #1a2744;
  --navy-600: #2d4a7a;
  --navy-500: #3a5f9a;

  /* Accent */
  --blue: #0066cc;
  --blue-hover: #0052a3;
  --blue-light: #e6f0ff;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f5;
  --gray-200: #e2e6ea;
  --gray-300: #cdd3da;
  --gray-400: #9aa5b4;
  --gray-500: #6c7a89;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;

  /* Semantic */
  --success: #0f9d58;
  --warning: #f4b400;
  --danger: #db4437;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --container-max: 1200px;
  --container-narrow: 800px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, .08);
  --shadow: 0 4px 12px rgba(10, 22, 40, .1);
  --shadow-lg: 0 10px 30px rgba(10, 22, 40, .15);
  --shadow-xl: 0 20px 50px rgba(10, 22, 40, .2);

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: .25s;
}

/* ── 1. Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-navbar {
  padding-top: 72px;          /* offset for fixed nav */
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p + p { margin-top: 1rem; }

ul, ol { list-style: none; }

table {
  border-collapse: collapse;
  width: 100%;
}

/* ── 2. Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-4 {
  gap: 1rem;
}

.justify-center {
  justify-content: center;
}

/* ── 3. Header / Nav — Convention A ───────────────────────── */
.site-header,
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.header-inner,
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 1.25rem;
  height: 72px;
}

.logo-link,
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.logo-img,
.nav-logo {
  height: 40px;
  width: auto;
}

/* Hamburger / toggle (mobile) */
.hamburger,
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.hamburger span,
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

/* Active hamburger animation */
.hamburger.active span:nth-child(1),
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2),
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3),
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation list — mobile first (hidden) */
.main-nav,
.nav-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--navy-800);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
  z-index: 999;
}

.main-nav.active,
.nav-menu.active {
  transform: translateX(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav-item,
.nav-list a,
.nav-menu a {
  display: block;
  color: rgba(255, 255, 255, .85);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.nav-item:hover,
.nav-list a:hover,
.nav-menu a:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.nav-item--cta,
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  text-align: center;
  margin-top: .5rem;
}

.nav-item--cta:hover,
.nav-cta:hover {
  background: var(--blue-hover) !important;
}

/* Caret for dropdown */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform var(--duration) var(--ease);
}

/* Dropdown — Convention A */
.dropdown,
.dropdown-menu {
  display: none;
  background: var(--navy-700);
  border-radius: var(--radius-sm);
  padding: .5rem 0;
  margin-top: .25rem;
}

/* active class no longer forces dropdown open — hover/click only */

.dropdown a,
.dropdown-menu a {
  padding: .6rem 1.25rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}

.dropdown a:hover,
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--white);
}

/* ── Desktop nav (≥ 768px) ───────────────────────────────── */
@media (min-width: 768px) {
  .hamburger,
  .nav-toggle {
    display: none;
  }

  .main-nav,
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
  }

  .nav-list,
  .nav-menu {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav-list {
    flex-direction: row;
  }

  .nav-item,
  .nav-list a,
  .nav-menu a {
    padding: .5rem .85rem;
    white-space: nowrap;
  }

  .nav-item--cta,
  .nav-cta {
    margin-top: 0;
    margin-left: .5rem;
    padding: .5rem 1.25rem !important;
  }

  /* Desktop dropdown — absolute */
  .has-dropdown,
  .nav-item {
    position: relative;
  }

  .dropdown,
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
    background: var(--navy-800);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 1020;
  }

  .has-dropdown:hover > .dropdown,
  .has-dropdown:hover > .dropdown-menu,
  .nav-item:hover > .dropdown {
    display: block;
  }
}

/* ── 4. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 102, 204, .15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 74, 122, .2) 0%, transparent 40%);
  pointer-events: none;
}

.hero--compact {
  padding: 3rem 0 2.5rem;
}

.hero-inner,
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.hero-title,
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-subtitle,
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, .8);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: .5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  margin-inline: auto;
}

/* ── 5. Sections ──────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section--gray {
  background: var(--gray-50);
}

.section--sm {
  padding: 2.5rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

.section__title,
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy-900);
  margin-bottom: .75rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

/* Primary — BEM & simple */
.btn--primary,
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 102, 204, .35);
  transform: translateY(-1px);
}

/* Secondary */
.btn--secondary,
.btn-secondary {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
}

.btn--secondary:hover,
.btn-secondary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* Outline */
.btn--outline,
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover,
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* Details */
.btn-details {
  background: transparent;
  color: var(--blue);
  border-color: var(--gray-200);
  font-size: .875rem;
}

.btn-details:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

/* Sizes */
.btn--sm {
  font-size: .85rem;
  padding: .45rem 1rem;
}

.btn--lg {
  font-size: 1.05rem;
  padding: .85rem 2rem;
}

/* Download button */
.download-btn {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.download-btn:hover {
  background: #0b8a4a;
  border-color: #0b8a4a;
  color: var(--white);
}

/* ── 7. Product Cards — BEM convention ────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.products-overview {
  padding: 2rem 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__image,
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img,
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body,
.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title,
.product-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .25rem;
}

.product-card__model,
.product-card-model {
  font-size: .85rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-bottom: .5rem;
}

.product-card__desc {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: .75rem;
  flex: 1;
}

.product-card__category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: .2rem .6rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}

.product-card__specs,
.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}

.product-card__spec {
  font-size: .8rem;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
}

.product-card__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── 8. Product Detail ────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.product-detail__media {
  position: relative;
}

.product-detail__image {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  overflow: hidden;
}

.product-detail__image img {
  width: 100%;
  height: auto;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail__model {
  font-size: .9rem;
  font-family: var(--font-mono);
  color: var(--gray-400);
}

.product-detail__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-900);
  font-weight: 800;
}

.product-detail__bands {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.product-detail__bands span {
  font-size: .8rem;
  background: var(--blue-light);
  color: var(--blue);
  padding: .25rem .65rem;
  border-radius: 100px;
  font-weight: 500;
}

.product-detail__desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.product-detail__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* ── 9. Product Gallery ───────────────────────────────────── */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-50);
}

.gallery-main img {
  width: 100%;
  height: auto;
}

.gallery-thumb {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
}

.gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

.gallery-thumb img:hover,
.gallery-thumb img.active {
  border-color: var(--blue);
}

/* ── 10. Product Specs ────────────────────────────────────── */
.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.spec-section {
  margin-bottom: 1.5rem;
}

.spec-section h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.spec-table th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: .75rem 1rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spec-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

/* Alternating rows */
.spec-table tr:nth-child(even) td {
  background: var(--gray-50);
}

.spec-table tr:hover td {
  background: var(--blue-light);
}

/* Key-value table variant */
.spec-table--kv th {
  width: 40%;
  background: var(--gray-50);
  color: var(--navy-900);
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
  border-right: 1px solid var(--gray-200);
}

.spec-table--kv td {
  font-weight: 500;
}

.spec-note {
  font-size: .85rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: var(--gray-50);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.why-wins {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.why-wins h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.why-wins ul {
  list-style: none;
  display: grid;
  gap: .5rem;
}

.why-wins li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, .9);
}

.why-wins li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ── 11. Feature Cards ────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .5rem;
}

.feature-card__text {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── 12. Stat Cards ───────────────────────────────────────── */
.stats-grid,
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card,
.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.stat-card:hover,
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card__value,
.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: .25rem;
}

.stat-card__label,
.stat-label {
  font-size: .9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── 13. Generic Cards ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .5rem;
}

.card-text {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── 14. Business Units ───────────────────────────────────── */
.business-units {
  padding: 2rem 0;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.unit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.unit-card h3 {
  margin-bottom: .5rem;
}

.unit-card p {
  font-size: .9rem;
  color: var(--gray-500);
}

/* ── 15. Forms ────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: .4rem;
}

.form-label--required::after {
  content: ' *';
  color: var(--danger);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, .15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── 16. Filter Bar ───────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.filter-btn {
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.5rem;
  font-size: .9rem;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  transition: border-color var(--duration) var(--ease);
}

.search-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, .12);
}

.search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .9rem;
  pointer-events: none;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
  font-size: 1.05rem;
}

/* ── 17. Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  padding: .75rem 0;
  color: var(--gray-400);
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumbs__sep {
  color: var(--gray-300);
  margin: 0 .1rem;
  user-select: none;
}

.breadcrumbs__current {
  color: var(--navy-900);
  font-weight: 600;
}

/* ── 18. Badges ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge--primary {
  background: var(--blue-light);
  color: var(--blue);
}

.badge--success {
  background: #e6f7ef;
  color: var(--success);
}

/* ── 19. CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, .8);
}

.cta-inner {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: .75rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 20. Footer — Convention A ────────────────────────────── */
.site-footer,
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .7);
  padding: 3.5rem 0 0;
}

.footer-grid,
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.footer-col {
  /* Individual footer column */
}

.footer-col h4,
.footer__brand h4,
.footer__links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__brand {
  max-width: 260px;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: .75rem;
}

.footer-links,
.footer__links {
  list-style: none;
}

.footer-links a,
.footer__links a {
  display: block;
  color: rgba(255, 255, 255, .65);
  padding: .3rem 0;
  font-size: .9rem;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover,
.footer__links a:hover {
  color: var(--white);
}

.footer-contact-line,
.footer__contact {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.8;
}

.footer-contact-line a,
.footer__contact a {
  color: rgba(255, 255, 255, .8);
}

.footer-contact-line a:hover,
.footer__contact a:hover {
  color: var(--white);
}

.footer-bottom,
.footer__bottom {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
}

/* ── 21. Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: .85rem; }
.text-md     { font-size: 1rem; }

.mx-auto { margin-inline: auto; }
.mt-2    { margin-top: .5rem; }
.mt-4    { margin-top: 1rem; }
.mt-8    { margin-top: 2rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-12   { margin-bottom: 3rem; }

.bg-gray { background: var(--gray-50); }

.subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
}

.sep {
  width: 60px;
  height: 3px;
  background: var(--blue);
  border: none;
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── 22. Animations / Fade-in ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease),
              transform .6s var(--ease);
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .24s; }
.stagger > *:nth-child(5) { transition-delay: .32s; }
.stagger > *:nth-child(6) { transition-delay: .4s; }
.stagger > *:nth-child(7) { transition-delay: .48s; }
.stagger > *:nth-child(8) { transition-delay: .56s; }
.stagger > *:nth-child(9) { transition-delay: .64s; }
.stagger > *:nth-child(10) { transition-delay: .72s; }

/* Keyframe for initial page-load hero elements */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title,
.hero__title {
  animation: fadeUp .8s var(--ease) both;
}

.hero-subtitle,
.hero__subtitle {
  animation: fadeUp .8s var(--ease) .15s both;
}

.hero-cta {
  animation: fadeUp .8s var(--ease) .3s both;
}

/* ── 23. Responsive Breakpoints ───────────────────────────── */

/* Tablet (≥ 576px) */
@media (min-width: 576px) {
  .container {
    padding-inline: 2rem;
  }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
  .hero {
    padding: 6rem 0 5rem;
  }

  .hero-inner,
  .hero__content {
    max-width: 720px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 5rem 0;
  }
}

/* Wide (≥ 1200px) */
@media (min-width: 1200px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* Mobile-only tweaks (≤ 767px) */
@media (max-width: 767px) {
  body.has-navbar {
    padding-top: 64px;
  }

  .header-inner,
  .navbar {
    height: 64px;
  }

  .main-nav,
  .nav-menu {
    top: 64px;
    height: calc(100vh - 64px);
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-title,
  .hero__title {
    font-size: 1.75rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile (≤ 400px) */
@media (max-width: 400px) {
  .stats-grid,
  .highlights {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── 24. Print Styles ─────────────────────────────────────── */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  body.has-navbar {
    padding-top: 0;
  }

  .site-header,
  .header,
  .hamburger,
  .nav-toggle,
  .main-nav,
  .nav-menu,
  .cta-banner,
  .filter-bar,
  .site-footer,
  .footer {
    display: none !important;
  }

  .hero,
  .page-hero {
    padding: 1rem 0;
    background: none !important;
  }

  .hero-title,
  .hero__title,
  .page-hero h1 {
    font-size: 22pt;
    color: #000 !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .product-card,
  .card,
  .feature-card,
  .stat-card,
  .stat,
  .unit-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  .product-grid,
  .grid--3,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: .8em;
    color: #555;
  }

  .btn,
  .btn--primary,
  .btn-primary,
  .btn--secondary,
  .btn-secondary,
  .download-btn {
    border: 1px solid #000 !important;
    padding: .3rem .8rem;
  }

  .spec-table th {
    background: #eee !important;
    color: #000 !important;
  }

  .spec-table tr:nth-child(even) td {
    background: #f5f5f5 !important;
  }

  img {
    max-width: 100% !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── 25. Focus & Accessibility ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Skip to content link (if present) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ── 26. Selection Styling ────────────────────────────────── */
::selection {
  background: rgba(0, 102, 204, .2);
  color: var(--navy-900);
}

/* ── 27. Scrollbar (Webkit) ───────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ── EOF ──────────────────────────────────────────────────── */
