/* NITS Zimbabwe - Main Stylesheet */
/* Design tokens — extracted from official NITS logo */
:root {
  /* Blues (from logo arc + original palette) */
  --navy:       #0D2B4E;   /* deep navy for header/footer */
  --blue:       #1A5FA8;   /* logo blue arc */
  --blue-mid:   #2E7FC0;   /* mid blue for accents */
  --blue-light: #B5D4F4;   /* light blue tint */
  --blue-pale:  #E8F2FB;   /* very pale blue background */
  /* Orange — from logo arc and tagline */
  --orange:     #E87722;   /* logo orange arc / tagline */
  --orange-dark:#C4621A;   /* hover state */
  --orange-pale:#FDF0E4;   /* pale orange background */
  /* Neutrals */
  --white:      #FFFFFF;
  --gray-100:   #F4F3EF;
  --gray-200:   #E8E7E2;
  --text:       #1A1A1A;   /* logo wordmark black */
  --text-muted: #5F5E5A;
  /* Functional */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(13,43,78,0.10);
  --shadow-lg: 0 8px 32px rgba(13,43,78,0.15);
  --transition: 0.2s ease;
  --max-w: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }
ul { list-style: none; }

/* Typography */
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--gray { background: var(--gray-100); }
.section--pale { background: var(--blue-pale); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1,.section--navy h2,.section--navy h3 { color: var(--white); }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); box-shadow: 0 2px 10px rgba(13,43,78,0.08);
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; background: var(--blue-mid);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: var(--white); flex-shrink: 0;
}
.logo-text { color: var(--white); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.logo-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--blue-light); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  color: var(--navy); font-size: 0.92rem; font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--orange-pale); color: var(--orange-dark); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-dropdown > a::after { content: "▾"; font-size: 0.75rem; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 0.5rem 0; z-index: 200;
  border-top: 3px solid var(--blue-mid);
}
.dropdown-menu a {
  display: block; color: var(--text); padding: 0.55rem 1.1rem;
  font-size: 0.875rem; border-radius: 0;
}
.dropdown-menu a:hover { background: var(--blue-pale); color: var(--navy); }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 0.5rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; background: var(--navy); padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: var(--blue-light); padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.95rem;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .mobile-section-title {
  color: var(--white); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.8rem 0 0.3rem; border-bottom: none;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3d6b 60%, #185FA5 100%);
  color: var(--white); padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Soft orange radial glow accent (top-right corner) */
.hero::after {
  content: ""; position: absolute; top: -120px; right: -100px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,119,34,0.12) 0%, rgba(232,119,34,0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-block; background: rgba(232,119,34,0.2);
  border: 1px solid var(--orange); color: #FFD4A8;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--white); margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.12;
}
.hero-tagline { font-size: 1.15rem; color: var(--blue-light); margin: 0 auto 2rem; max-width: 620px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); box-shadow: 0 4px 14px rgba(232,119,34,0.30); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,119,34,0.38); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 4px 14px rgba(13,43,78,0.22); }
.btn-navy:hover { background: #071e36; border-color: #071e36; color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,43,78,0.30); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── STATS BAR ── */
.stats-bar { background: var(--orange); color: var(--white); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats-grid > div { position: relative; padding: 0.25rem 0.5rem; }
.stats-grid > div + div::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: rgba(255,255,255,0.25);
}
.stat-value { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.9); margin-top: 0.3rem; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border: 1px solid rgba(4,44,83,0.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.card-link { font-size: 0.875rem; font-weight: 600; color: var(--blue); }
.card-link:hover { color: var(--blue-mid); }

/* Product card */
.product-card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(4,44,83,0.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(232,119,34,0.35); }
.product-card:hover::before { transform: scaleX(1); }
.product-card h3 { margin-bottom: 0.5rem; }
.product-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 1rem; }

/* Solutions index — vendor logo above the name */
.product-card--solution { text-align: center; align-items: center; }
.solution-logo {
  width: 100%; height: 96px; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.solution-logo img {
  max-width: 200px; max-height: 88px; width: auto; height: auto; object-fit: contain;
}
.solution-logo--text {
  font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: 0.02em;
}
.product-card--solution p { flex: 1; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; position: relative; padding-bottom: 0.85rem; }
.section-header h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 3px; border-radius: 3px; background: var(--orange);
}
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-label {
  display: inline-block; color: var(--orange); font-size: 0.8rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ── PARTNERS STRIP ── */
.partners-strip { background: var(--gray-100); padding: 3rem 0; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.partner-badge {
  background: var(--white); border-radius: var(--radius); padding: 1rem 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(4,44,83,0.07);
  text-align: center; min-width: 140px; transition: all var(--transition);
  text-decoration: none; display: block;
}
.partner-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.partner-badge-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.partner-badge-tier { font-size: 0.75rem; color: var(--orange); margin-top: 0.2rem; }

/* ── CLIENTS ── */
.clients-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.client-chip {
  background: var(--white); border: 1px solid var(--blue-light);
  border-radius: 100px; padding: 0.5rem 1.1rem;
  font-size: 0.875rem; color: var(--navy); font-weight: 500;
}

/* ── BREADCRUMB ── */
.breadcrumb { padding: 0.85rem 0; background: var(--gray-100); border-bottom: 1px solid rgba(4,44,83,0.08); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.breadcrumb li + li::before { content: "›"; color: var(--text-muted); font-size: 1rem; line-height: 1; }
.breadcrumb a { color: var(--blue); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current] { color: var(--text-muted); font-weight: 500; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3d6b 100%);
  color: var(--white); padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: var(--blue-light); font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.accreditation-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(232,119,34,0.15); border: 1px solid var(--orange);
  color: #FFD4A8; padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem;
}

/* ── WHY NITS CARDS ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.why-card {
  background: var(--blue-pale); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid rgba(4,44,83,0.07);
}
.why-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white); padding: 4rem 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: var(--blue-light); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-section p a { color: var(--white); font-weight: 600; text-decoration: underline; }
.cta-section p a:hover { color: var(--orange); }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.6); }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid #d0d0cc;
  border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(55,138,221,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-text strong { display: block; color: var(--navy); font-size: 0.875rem; }
.contact-info-text span { color: var(--text-muted); font-size: 0.9rem; }
.map-placeholder {
  background: var(--blue-pale); border-radius: var(--radius); height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--blue-light); color: var(--text-muted); font-size: 0.9rem;
  text-align: center; padding: 1rem;
}

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: var(--blue-light); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; color: var(--blue-light); line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--blue-light); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: var(--blue-light); }
.footer-bottom a:hover { color: var(--white); }

/* ── VENDOR HUB ── */
.vendor-intro { max-width: 800px; }
.vendor-intro p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── VENDOR PRODUCT RANGE / CAPABILITIES ── */
.range-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.range-card {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
  background: var(--white);
  border: 1px solid rgba(4,44,83,0.08);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.range-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--blue);
}
.range-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.range-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
/* Range card that links to a dedicated product page */
a.range-card { text-decoration: none; display: block; }
a.range-card .range-more {
  display: inline-block; margin-top: 0.6rem;
  font-size: 0.8rem; font-weight: 700; color: var(--orange);
}
a.range-card:hover .range-more { color: var(--blue); }

/* ── PRODUCT PAGE ── */
.product-content { max-width: 860px; }
.product-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--orange-pale); }
.product-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.product-content ul li { margin-bottom: 0.4rem; color: var(--text-muted); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--blue); font-size: 0.875rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--blue-mid); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.related-card {
  background: var(--blue-pale); border-radius: var(--radius); padding: 1rem 1.25rem;
  border: 1px solid var(--blue-light); transition: all var(--transition);
}
.related-card:hover { background: var(--blue-light); }
.related-card a { color: var(--navy); font-weight: 600; font-size: 0.9rem; }

/* ── ABOUT PAGE ── */
.team-card { display: flex; gap: 1.5rem; align-items: flex-start; }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0; color: var(--white);
}
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dept-card {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem;
  border: 1px solid rgba(4,44,83,0.07); box-shadow: var(--shadow);
}
.dept-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.dept-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.city-card {
  background: var(--blue-pale); border-radius: var(--radius); padding: 1rem;
  text-align: center; border: 1px solid var(--blue-light);
}
.city-card .city-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.city-card h3 { font-size: 0.95rem; color: var(--navy); }

/* ── PARTNERS PAGE ── */
.partner-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.partner-tier-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(13,43,78,0.07);
  border-top: 4px solid var(--orange);
}
.partner-tier-card h3 { margin-bottom: 0.3rem; }
.tier-badge {
  display: inline-block; background: var(--orange-pale); color: var(--orange);
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 100px; margin-bottom: 0.75rem;
}
.brands-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.brand-chip {
  background: var(--white); border: 1px solid var(--blue-light);
  border-radius: var(--radius); padding: 0.5rem 1rem;
  font-size: 0.875rem; color: var(--navy); font-weight: 500;
}

/* ── LOCATION PAGE ── */
.location-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.location-link-card {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow); border: 1px solid rgba(4,44,83,0.07);
  transition: all var(--transition);
}
.location-link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.location-link-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.location-link-card a { color: var(--blue); font-size: 0.875rem; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner-tier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .partner-tier-grid { grid-template-columns: 1fr; }
  .header-inner { height: 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 2.5rem 0; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .card-grid--4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── LOGO IMAGE ── */
.logo-img {
  height: 84px;   /* large enough to show icon + wordmark + tagline clearly */
  width: auto;
  display: block;
}
/* Footer sits on dark navy — the dark logo needs a light plaque to be visible */
.site-footer .logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  display: inline-block;
}
.site-footer .logo-img { height: 76px; }
@media (max-width: 768px) {
  .logo-img { height: 64px; }
}
@media (max-width: 480px) {
  .logo-img { height: 52px; }
}

/* ── MEGA MENU ── */
.mega-menu {
  display: none; position: absolute; top: 100%; left: -200px;
  margin-top: 8px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.5rem; z-index: 200; border-top: 3px solid var(--orange);
  grid-template-columns: repeat(5, 1fr); gap: 0; min-width: 700px;
}
/* Invisible bridge so the menu doesn't vanish when the cursor crosses the gap */
.mega-menu::before {
  content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 11px;
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu { display: grid; }
.mega-col { padding: 0 1rem; border-right: 1px solid var(--gray-100); }
.mega-col:last-of-type { border-right: none; }
.mega-col-title {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--orange); margin-bottom: 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--orange-pale);
}
.mega-col a {
  display: block; color: var(--text); padding: 0.3rem 0;
  font-size: 0.85rem; border-radius: 0; white-space: nowrap;
}
.mega-col a:hover { color: var(--blue); }
.mega-footer {
  grid-column: 1 / -1; border-top: 1px solid var(--gray-100);
  padding-top: 0.75rem; margin-top: 0.5rem; text-align: right;
}
.mega-footer a { color: var(--blue); font-size: 0.85rem; font-weight: 600; }

/* ── SERVICE PILLARS ── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.pillar-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(4,44,83,0.07);
  padding: 1.75rem; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pillar-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.pillar-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.pillar-card ul { list-style: none; padding: 0; margin: 0 0 1rem; flex: 1; }
.pillar-card ul li {
  font-size: 0.82rem; color: var(--text-muted); padding: 0.2rem 0;
  padding-left: 1rem; position: relative;
}
.pillar-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--pillar-color, var(--blue)); font-size: 0.75rem; }
.pillar-link { font-size: 0.85rem; font-weight: 700; color: var(--pillar-color, var(--blue)); margin-top: auto; }

/* ── PARTNER LOGO CARDS (homepage + partners page) ── */
.partners-logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem;
  max-width: 1000px; margin: 0 auto;
}
.partner-logo-card {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(13,43,78,0.07);
  text-align: center; text-decoration: none; display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  flex: 0 1 210px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.partner-logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.partner-logo-img {
  width: 100%; height: 80px; display: flex; align-items: center; justify-content: center;
}
.partner-logo-img img {
  max-width: 100%; max-height: 80px; width: auto; height: auto;
  object-fit: contain;
}
.partner-logo-tier { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.partner-text-fallback { font-weight: 700; color: var(--navy); font-size: 1rem; }

/* Partner badge on partners page (larger) */
.partner-badge-img {
  width: 100%; height: 100px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.partner-badge-img img {
  max-width: 100%; max-height: 100px; width: auto; height: auto;
  object-fit: contain;
}

/* ── BRAND LOGO GRID ── */
.brands-logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem;
}
.brand-logo-card {
  background: var(--white); border-radius: var(--radius); padding: 1rem;
  border: 1px solid var(--gray-200); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.brand-logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange); }
.brand-logo-card img {
  max-width: 120px; max-height: 48px; width: auto; height: auto;
  object-fit: contain;
}
.brand-logo-card span { font-size: 0.75rem; color: var(--text-muted); }
/* Text-only fallback for brands without images */
.brand-chip {
  background: var(--white); border: 1px solid var(--blue-light);
  border-radius: var(--radius); padding: 0.5rem 1rem;
  font-size: 0.875rem; color: var(--navy); font-weight: 500;
}

/* ── RESPONSIVE UPDATES ── */
@media (max-width: 1024px) {
  .mega-menu { min-width: 560px; grid-template-columns: repeat(3, 1fr); left: -100px; }
}
@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── INLINE SVG ICONS ── */
.icon {
  width: 24px; height: 24px; display: inline-block; vertical-align: middle;
  flex-shrink: 0;
}

/* Service pillar circular icon badge (uses pillar colour) */
.pillar-icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--pillar-color) 12%, white);
  color: var(--pillar-color);
}
.pillar-icon-badge .icon { width: 28px; height: 28px; }

/* why-card heading icons */
.why-card h3 { display: flex; align-items: center; }
.why-card h3 .icon {
  width: 20px; height: 20px; color: var(--orange); margin-right: 0.4rem;
}

/* contact info icons */
.contact-info-icon { display: flex; align-items: center; justify-content: center; }
.contact-info-icon .icon { width: 22px; height: 22px; color: var(--orange); }

/* dept-card heading icons */
.dept-card h3 { display: flex; align-items: center; }
.dept-card h3 .icon {
  width: 20px; height: 20px; color: var(--orange); margin-right: 0.4rem;
}

/* city-card icon (building) */
.city-card .city-icon {
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem;
}
.city-card .city-icon .icon { width: 28px; height: 28px; color: var(--blue-mid); }

/* team avatar icon */
.team-avatar .icon { width: 38px; height: 38px; color: var(--white); }

/* ── ACCESSIBILITY: focus-visible outlines ── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--blue-mid);
}
/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── GLOBAL OVERFLOW / WRAP SAFEGUARDS ── */
html, body { overflow-x: hidden; }
.product-content { overflow-wrap: break-word; word-wrap: break-word; }
.product-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.vendor-intro p, .product-content p, .product-content li { overflow-wrap: break-word; }

/* ── RESPONSIVE REFINEMENTS (all breakpoints) ── */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .brands-logo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Touch-friendly mobile nav links (>=44px tap target) */
  .mobile-nav a { padding: 0.75rem 0; min-height: 44px; display: flex; align-items: center; }
  .mobile-nav .mobile-section-title { min-height: auto; }
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .location-links { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .range-grid { grid-template-columns: 1fr 1fr; }
  /* Drop vertical separators on stacked stats */
  .stats-grid > div + div::before { display: none; }
}

@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .location-links { grid-template-columns: 1fr; }
  .brands-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .range-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-logo-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Very small screens (e.g. 320px) — prevent overflow, keep readable */
@media (max-width: 360px) {
  .cities-grid { grid-template-columns: 1fr; }
  .brands-logo-grid { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: 1fr; }
  .tier-badge { white-space: normal; }
}

/* ── BEFORE / AFTER CABLING SHOWCASE ── */
.beforeafter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: 860px; margin: 0 auto;
}
.beforeafter-card {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200); background: var(--white);
}
.beforeafter-card img {
  width: 100%; height: 420px; object-fit: cover; display: block;
  transition: transform var(--transition);
}
.beforeafter-card:hover img { transform: scale(1.03); }
.beforeafter-card figcaption {
  position: absolute; top: 0.75rem; left: 0.75rem;
}
.ba-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem; border-radius: 100px; color: var(--white);
}
.ba-tag--before { background: var(--text-muted); }
.ba-tag--after  { background: var(--orange); }

@media (max-width: 600px) {
  .beforeafter-grid { grid-template-columns: 1fr; }
  .beforeafter-card img { height: 320px; }
}

/* ── WORK GALLERY ── */
.work-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.work-tile {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200); background: var(--white);
}
.work-tile img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform var(--transition);
}
.work-tile:hover img { transform: scale(1.04); }
.work-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(13,43,78,0.85));
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  padding: 1.5rem 0.9rem 0.7rem;
}
@media (max-width: 768px) {
  .work-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .work-gallery { grid-template-columns: 1fr; }
}

/* ── FOOTER FREE-CALL LINK ── */
.footer-call-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--white); font-weight: 600; font-size: 0.85rem;
  background: var(--orange); padding: 0.45rem 0.85rem; border-radius: var(--radius);
  transition: background var(--transition);
}
.footer-call-link:hover { background: var(--orange-dark); color: var(--white); }
.footer-call-link .icon { width: 16px; height: 16px; }

/* ── PROMOTIONAL BANNER (data-driven, see assets/js/promo.js) ── */
.promo-banner {
  position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
}
.promo-banner__slot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem; line-height: 1.3;
  transition: opacity 0.25s ease;
}
/* Product link — takes you to the brand page */
.promo-banner__product {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--white); text-decoration: none;
}
.promo-banner__media { flex-shrink: 0; }
.promo-banner__media img {
  height: 34px; width: auto; max-width: 64px; border-radius: 4px;
  background: var(--white); padding: 2px; object-fit: contain;
}
.promo-banner__text { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.promo-banner__brand { font-weight: 800; letter-spacing: 0.02em; }
.promo-banner__device { font-weight: 500; transition: color var(--transition); }
.promo-banner__model {
  font-size: 0.78rem; font-weight: 600; opacity: 0.9;
  background: rgba(255,255,255,0.18); padding: 0.05rem 0.45rem; border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}
/* Hover only recolours the device + model text (not brand, not the whole row) */
.promo-banner__product:hover .promo-banner__device,
.promo-banner__product:hover .promo-banner__model {
  color: var(--navy);
}
.promo-banner__deal { display: inline-flex; align-items: center; gap: 0.4rem; }
.promo-banner__discount {
  font-weight: 800; background: var(--white); color: var(--orange-dark);
  padding: 0.1rem 0.55rem; border-radius: 100px; font-size: 0.82rem; white-space: nowrap;
}
.promo-banner__price { font-weight: 700; white-space: nowrap; }
.promo-banner__note {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  opacity: 0.92;
}
/* CTA — opens a pre-filled enquiry email to rfq@ */
.promo-banner__cta {
  margin-left: auto; flex-shrink: 0;
  color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 0.82rem;
  border: 1.5px solid rgba(255,255,255,0.7); border-radius: 100px;
  padding: 0.3rem 0.9rem; transition: background var(--transition), border-color var(--transition);
}
.promo-banner__cta:hover { background: var(--white); border-color: var(--white); color: var(--orange-dark); }

@media (max-width: 640px) {
  .promo-banner__slot { font-size: 0.82rem; padding: 0.55rem 1rem; }
  .promo-banner__cta { margin-left: 0; }
  .promo-banner__device { width: 100%; }
}

/* ── SHOP ── */

/* ── Filter panel ── */
.shop-filters {
  background: var(--white);
  padding: 0.75rem 0.75rem;
  margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}

.shop-filter-row {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.shop-filter-row + .shop-filter-row {
  padding-top: 0.7rem;
}

.shop-filter-label {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted);
  white-space: nowrap; min-width: 70px; flex-shrink: 0;
}
.shop-filter-label svg { opacity: 0.55; }

/* Button group shared base — rounded squares */
.shop-pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.shop-tab, .shop-brand-btn, .shop-tag-btn {
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  border: 1.5px solid var(--gray-200);
  background: var(--white); line-height: 1.2;
  white-space: nowrap; color: var(--navy);
}

/* Category — navy active */
.shop-tab:hover { border-color: var(--navy); background: var(--blue-pale); }
.shop-tab--active {
  background: var(--navy); border-color: var(--navy);
  color: var(--white); box-shadow: 0 2px 8px rgba(13,43,78,0.18);
}

/* Brand — blue active */
.shop-brand-btn:hover { border-color: var(--blue-mid); background: var(--blue-pale); }
.shop-brand-btn--active {
  background: var(--blue); border-color: var(--blue);
  color: var(--white); box-shadow: 0 2px 8px rgba(26,95,168,0.22);
}

/* Quick / tag — orange active */
.shop-tag-btn:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-pale); }
.shop-tag-btn--active {
  background: var(--orange); border-color: var(--orange);
  color: var(--white); box-shadow: 0 2px 8px rgba(232,119,34,0.25);
}

.shop-result-count {
  font-size: 0.88rem; color: var(--text-muted);
  margin-bottom: 1.5rem; margin-top: 0.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.shop-result-count strong { color: var(--navy); }
.shop-reset-btn {
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
  display: none;
}
.shop-reset-btn.visible { display: inline; }
.shop-reset-btn:hover { color: var(--orange-dark); }

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.5rem;
}
.shop-empty {
  grid-column: 1 / -1; color: var(--text-muted);
  text-align: center; padding: 3rem 0; font-size: 0.95rem;
}

/* Product card */
.shop-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(4,44,83,0.08); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(232,119,34,0.3); }

/* Media: product photo */
.shop-card__media { position: relative; overflow: hidden; }
.shop-card__img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* Media: logo on white panel */
.shop-card__logo-wrap {
  height: 140px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 2rem;
}
.shop-card__logo-img {
  max-width: 100%; max-height: 80px; width: auto; height: auto;
  object-fit: contain;
}

/* Media: text placeholder fallback */
.shop-card__placeholder {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.shop-card__placeholder-brand {
  font-size: 1.4rem; font-weight: 900; color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
}

/* Badges */
.shop-card__badges {
  position: absolute; top: 0.55rem; left: 0.55rem;
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.shop-badge {
  font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.55rem;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}
.shop-badge--deal { background: var(--orange); color: var(--white); }
.shop-badge--label { background: var(--navy); color: var(--white); }

/* Card body */
.shop-card__body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; flex: 1;
}
.shop-card__brand {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 0.2rem; display: block;
}
.shop-card__name {
  font-size: 0.98rem; color: var(--navy);
  margin-bottom: 0.2rem; line-height: 1.3; font-weight: 700;
}
.shop-card__model {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
  background: var(--gray-100); padding: 0.1rem 0.45rem;
  border-radius: 100px; display: inline-block; margin-bottom: 0.6rem;
}
.shop-card__desc {
  font-size: 0.83rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 0.75rem;
}
/* Spec bullets */
.shop-card__specs {
  list-style: none; padding: 0; margin: 0 0 0.9rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 0.5rem;
}
.shop-card__specs li {
  font-size: 0.75rem; color: var(--text-muted);
  padding-left: 0.9rem; position: relative; line-height: 1.4;
}
.shop-card__specs li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--orange); font-size: 0.7rem; font-weight: 700;
}

/* Footer: price row + action rows */
.shop-card__footer {
  display: flex; flex-direction: column;
  gap: 0.5rem; margin-top: auto;
  padding-top: 0.75rem; border-top: 1px solid var(--gray-100);
}
.shop-card__price {
  font-size: 0.95rem; font-weight: 800; color: var(--navy); white-space: nowrap;
}
/* Struck-out original + sale price */
.shop-price-wrap { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.shop-price-orig {
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  text-decoration: line-through; white-space: nowrap;
}
.shop-price-sale {
  font-size: 0.98rem; font-weight: 800; color: var(--orange-dark); white-space: nowrap;
}
/* Row 1: qty + Datasheet — uniform height */
.shop-card__actions {
  display: flex; align-items: stretch; gap: 0.35rem;
}
.shop-card__qty {
  width: 52px; height: 36px; text-align: center;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  padding: 0; background: var(--white);
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.shop-card__qty:focus { outline: none; border-color: var(--blue-mid); }
.shop-card__learn {
  flex: 1;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  white-space: nowrap; font-size: 0.82rem;
  box-sizing: border-box;
}
.shop-card__learn:hover { border-color: var(--navy); background: var(--blue-pale); color: var(--navy); }
/* Row 2: Add to Quote — full width */
.shop-card__add-btn {
  width: 100%; text-align: center; justify-content: center;
}

@media (max-width: 768px) {
  .shop-filters { padding: 0.75rem; }
  .shop-filter-label { min-width: auto; }
  .shop-filter-row { gap: 0.4rem; }

  /* On mobile, category + brand rows become collapsible dropdowns */
  .shop-pill-group,
  .shop-brand-group {
    display: none;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.6rem;
    background: var(--blue-pale);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .shop-pill-group.open,
  .shop-brand-group.open { display: flex; }

  /* Toggle button for each collapsible row */
  .shop-filter-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: 8px; padding: 0.45rem 0.9rem;
    font-size: 0.88rem; font-weight: 600; color: var(--navy);
    cursor: pointer; transition: all var(--transition);
    white-space: nowrap;
  }
  .shop-filter-toggle:hover { border-color: var(--navy); background: var(--blue-pale); }
  .shop-filter-toggle.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .shop-filter-toggle .ftoggle-arrow {
    font-size: 0.65rem; transition: transform 0.2s ease; opacity: 0.7;
  }
  .shop-filter-toggle.open .ftoggle-arrow { transform: rotate(180deg); }

  /* Quick row always visible — no toggle */
  .shop-filter-row--quick .shop-pill-group { display: flex; padding: 0; background: none; border: none; margin-top: 0; }

  /* Mobile grid: 2 cards per row, smaller with more breathing room */
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .shop-card__logo-wrap { height: 88px; padding: 0.65rem 0.8rem; }
  .shop-card__placeholder { height: 88px; }
  .shop-card__body { padding: 0.6rem 0.7rem; }
  .shop-card__model { display: none; }
  .shop-card__desc { display: none; }
  .shop-card__specs { display: none; }
  .shop-card__qty { width: 44px; }
  .shop-card__learn { font-size: 0.78rem; }
}

@media (min-width: 769px) {
  /* Desktop: toggle buttons hidden, pill groups always visible and wrapping */
  .shop-filter-toggle { display: none !important; }
  .shop-brand-group { display: flex !important; flex-wrap: wrap; gap: 0.35rem; }
  .shop-pill-group { display: flex !important; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .shop-card__name { font-size: 0.82rem; }
}
/* ── SHOP SEO noscript fallback (hidden when JS runs) ── */
.shop-seo-fallback { padding: 1rem 0; }
.shop-seo-cat { font-size: 1rem; color: var(--navy); margin: 1.5rem 0 0.5rem; border-bottom: 2px solid var(--orange-pale); padding-bottom: 0.3rem; }
.shop-seo-list { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.shop-seo-list li { margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.shop-seo-list li strong { color: var(--navy); }
.shop-seo-list li ul { margin-top: 0.3rem; list-style: circle; font-size: 0.82rem; }

/* ── CART NAV BUTTON ── */
.nav-cart-btn {
  background: none; border: none; cursor: pointer;
  position: relative; padding: 0.4rem 0.6rem;
  color: var(--navy); border-radius: var(--radius);
  display: flex; align-items: center; transition: background var(--transition);
}
.nav-cart-btn:hover { background: var(--orange-pale); }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--orange); color: var(--white);
  font-size: 0.65rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}

/* ── CART DRAWER ── */
#cart-drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
#cart-drawer.open { pointer-events: auto; }

.cart-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(13,43,78,0.45);
  opacity: 0; transition: opacity 0.3s ease;
}
#cart-drawer.open .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--white);
  box-shadow: -4px 0 32px rgba(13,43,78,0.18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}
#cart-drawer.open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid var(--orange);
  background: var(--navy);
}
.cart-drawer__title {
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin: 0; display: flex; align-items: center; gap: 0.5rem;
}
.cart-drawer__count {
  background: var(--orange); color: var(--white);
  font-size: 0.75rem; font-weight: 800;
  padding: 0.1rem 0.5rem; border-radius: 100px;
}
.cart-drawer__close {
  background: rgba(255,255,255,0.12); border: none;
  color: var(--white); font-size: 1rem; cursor: pointer;
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cart-drawer__close:hover { background: rgba(255,255,255,0.25); }

.cart-drawer__body {
  flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.cart-empty {
  color: var(--text-muted); font-size: 0.9rem;
  text-align: center; padding: 2rem 0; line-height: 1.6;
}

/* Cart items list */
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 0.5rem;
  padding: 0.75rem; border-radius: var(--radius);
  background: var(--gray-100); border: 1px solid var(--gray-200);
}
.cart-item__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-item__name { font-size: 0.83rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.cart-item__model { font-size: 0.72rem; color: var(--text-muted); }
.cart-item__controls { display: flex; align-items: center; gap: 0.25rem; }
.cart-qty-btn {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: 1rem; font-weight: 700; cursor: pointer; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-qty-btn:hover { border-color: var(--navy); background: var(--blue-pale); }
.cart-qty-input {
  width: 40px; height: 26px; text-align: center;
  border: 1.5px solid var(--gray-200); border-radius: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
}
.cart-item__price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.cart-unit-price { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.cart-line-total { font-size: 0.88rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.cart-remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.8rem; padding: 0.2rem;
  border-radius: 4px; transition: color var(--transition), background var(--transition);
}
.cart-remove-btn:hover { color: #c00; background: #fff0f0; }

/* Totals */
.cart-totals {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.cart-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted);
}
.cart-total-row span:last-child { font-weight: 700; color: var(--navy); }
.cart-total-row--total {
  border-top: 2px solid var(--navy);
  padding-top: 0.5rem; margin-top: 0.25rem;
  font-size: 0.95rem; font-weight: 800;
}
.cart-total-row--total span { color: var(--navy) !important; }

/* Quote form */
.cart-quote-form {
  display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 1px solid var(--gray-200); padding-top: 1rem;
}
.cart-input {
  width: 100%; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.88rem; font-family: inherit; color: var(--navy);
  transition: border-color var(--transition);
}
.cart-input:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(55,138,221,0.12); }
.cart-generate-btn { width: 100%; font-size: 0.95rem; padding: 0.7rem; }
.cart-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin: 0; }

/* Clear all */
.cart-clear-btn {
  width: calc(100% - 2.5rem); margin: 0 1.25rem 1.25rem;
  padding: 0.55rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white);
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.cart-clear-btn:hover { border-color: #c00; color: #c00; background: #fff5f5; }

/* Add to Quote button on card */
.shop-card__add-btn { white-space: nowrap; }

@media (max-width: 480px) {
  .cart-drawer__panel { width: 100vw; }
  .cart-item { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .cart-item__price { grid-column: 2; grid-row: 1; }
  .cart-item__controls { grid-column: 1 / -1; }
}

/* ── PAGINATED FILTER DROPDOWNS (mobile) ── */
.fpaged-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
}
/* Make buttons fill their grid cell */
.fpaged-grid .shop-tab,
.fpaged-grid .shop-brand-btn {
  width: 100%; text-align: center; justify-content: center;
}
.fpaged-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 0.5rem; padding-top: 0.4rem;
  border-top: 1px solid var(--gray-200);
}
.fpaged-arrow {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 6px; width: 30px; height: 30px;
  font-size: 1rem; font-weight: 700; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.fpaged-arrow:hover:not(:disabled) { border-color: var(--navy); background: var(--blue-pale); }
.fpaged-arrow:disabled { opacity: 0.3; cursor: default; }
.fpaged-info {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
}
/* On desktop the paginated grid is irrelevant but should still flex-wrap normally */
@media (min-width: 769px) {
  .fpaged-grid { display: contents; }
  .fpaged-nav  { display: none; }
}

/* ── LICENSE PROMPT ── */
#license-prompt { position: fixed; inset: 0; z-index: 3000; pointer-events: none; display: flex; align-items: center; justify-content: center; }
#license-prompt.open { pointer-events: auto; }
.lic-prompt__backdrop { position: absolute; inset: 0; background: rgba(13,43,78,0.5); opacity: 0; transition: opacity 0.25s ease; }
#license-prompt.open .lic-prompt__backdrop { opacity: 1; }
.lic-prompt__box {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.75rem 1.5rem;
  max-width: 400px; width: calc(100vw - 2rem);
  transform: translateY(16px) scale(0.97); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  text-align: center;
}
#license-prompt.open .lic-prompt__box { transform: translateY(0) scale(1); opacity: 1; }
.lic-prompt__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.lic-prompt__title { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.lic-prompt__body { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.lic-prompt__product {
  background: var(--blue-pale); border-radius: var(--radius);
  padding: 0.75rem 1rem; margin-bottom: 1.25rem;
  display: flex; flex-direction: column; gap: 0.2rem; text-align: left;
  border-left: 3px solid var(--blue);
}
.lic-prompt__name { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.lic-prompt__model { font-size: 0.75rem; color: var(--text-muted); }
.lic-prompt__price { font-size: 0.82rem; font-weight: 700; color: var(--orange-dark); margin-top: 0.2rem; }
.lic-prompt__actions { display: flex; gap: 0.6rem; }
.lic-prompt__yes { flex: 2; }
.lic-prompt__no { flex: 1; background: var(--white); color: var(--text-muted); border: 1.5px solid var(--gray-200); border-radius: var(--radius); }
.lic-prompt__no:hover { border-color: var(--navy); color: var(--navy); background: var(--blue-pale); }

/* ── FLOATING ACTION BUTTONS ── */
.fab {
  position: fixed;
  right: 1.25rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(13,43,78,0.22);
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.25s ease;
  z-index: 900;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,43,78,0.30); }
.fab:active { transform: translateY(0); }

/* Scroll-to-top: navy, sits at the very bottom */
.fab--scroll-top {
  bottom: 1.25rem;
  background: var(--navy);
  color: var(--white);
  opacity: 0; pointer-events: none;
}
.fab--scroll-top.fab--visible { opacity: 1; pointer-events: auto; }

/* Cart FAB: orange, sits just above scroll-to-top */
.fab--cart {
  bottom: 4.5rem;
  background: var(--orange);
  color: var(--white);
  opacity: 0; pointer-events: none;
}
.fab--cart.fab--visible { opacity: 1; pointer-events: auto; }

/* Badge on cart FAB */
.fab__badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--navy); color: var(--white);
  font-size: 0.65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 100px;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
  border: 2px solid var(--white);
}

@media (max-width: 480px) {
  .fab { width: 44px; height: 44px; right: 1rem; }
  .fab--scroll-top { bottom: 1rem; }
  .fab--cart { bottom: 4rem; }
}
