/* ==========================================================================
   Moosa Traders — Flagship Commercial B2B Design System (v21)
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-panel: #f1f6fc;
  --bg-band: #e2edf9;
  --navy-950: #051630;
  --navy-900: #092756;
  --navy: #0b3d91;
  --navy-dark: #082c6b;
  --navy-text: #0f2442;
  --slate-900: #0f172a;
  --body: #334155;
  --muted: #52637a;
  --muted2: #64748b;
  --blue: #0b6fe0;
  --blue-soft: #eaf2fd;
  --blue-line: #bfd7f6;
  --green: #157347;
  --green-dark: #115c39;
  --green-soft: #ecfdf5;
  --green-line: #a7f3d0;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;
  --amber-text: #92400e;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(11, 61, 145, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 22px 44px -12px rgba(11, 61, 145, 0.16), 0 8px 18px -4px rgba(15, 23, 42, 0.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1860px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.18s ease; }
a:hover { text-decoration: underline; color: var(--navy); }
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.18;
  margin: 0 0 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-text);
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.13rem; color: #40556e; line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.eyebrow-pill {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--navy);
}
.section-num { color: var(--blue); font-weight: 900; margin-right: 0.25em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section, .section { padding: 76px 0; scroll-margin-top: 76px; }
.section-head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: #475569; font-size: 1.04rem; }
.section-head--left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head--left .divider { margin-left: 0; margin-right: 0; }
.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  border-radius: 4px;
  margin: 14px auto 18px;
}
.bg-panel {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bg-soft { background: var(--bg-soft); }

/* --- Accessibility & Scrollbar --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 120;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.site-header :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: #fff; }
.noscript-note {
  background: var(--blue-soft);
  border-bottom: 1px solid var(--blue-line);
  color: var(--navy-text);
  padding: 12px 16px;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
::selection { background: #bfdbfe; color: var(--navy-text); }

/* --- Top Utility Bar --- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-text); }
.brand:hover { text-decoration: none; }
.logo-img { height: 48px; width: 48px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; color: var(--navy-text); }
.brand-tagline { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.top-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy-text);
}
.top-contact a { color: var(--navy-text); display: inline-flex; align-items: center; gap: 6px; }
.top-contact a svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }
.top-contact a:hover { color: var(--blue); text-decoration: none; }
.top-badge {
  background: var(--blue-soft);
  color: var(--navy);
  border: 1px solid var(--blue-line);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}

/* --- Sticky Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 61, 145, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-dark);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(5, 22, 48, 0.24); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.site-header.scrolled-compact .header-inner { min-height: 52px; }
.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; width: 100%; }
.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; color: #fff; }
.main-nav a.active { background: var(--blue); color: #fff; }
.main-nav a.quote-btn {
  margin-left: auto;
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.main-nav a.quote-btn:hover { background: var(--green-dark); color: #fff; }
.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  align-items: center;
  gap: 8px;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* --- Buttons --- */
.btn, .btn-green, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--navy-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--navy-text); }
.btn-ghost:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--navy); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn-green:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
.btn-row--left { justify-content: flex-start; }

/* --- Hero --- */
.hero {
  padding: 72px 0 68px;
  background:
    radial-gradient(900px 420px at 88% -5%, rgba(11, 111, 224, 0.14), transparent 60%),
    radial-gradient(600px 320px at 10% 90%, rgba(21, 115, 71, 0.06), transparent 60%),
    linear-gradient(180deg, #eff5fd 0%, #e4eefb 55%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center; }
.hero h1.hero-grad {
  background: linear-gradient(95deg, #051630 25%, #0b3d91 60%, #0b6fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.1em;
}
.hero-rotator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-text);
  font-size: 1rem;
  margin: 6px 0 20px;
  background: #fff;
  border: 1px solid var(--blue-line);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-rotator span { color: var(--blue); display: inline-block; font-weight: 800; }
.hero-rotator span.swap { animation: rotatorSlide 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-media { position: relative; }
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.hero-photo img { width: 100%; height: 470px; object-fit: cover; }
.hero-photo figcaption { padding: 12px 18px; font-size: 0.86rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.hero-float-badge {
  position: absolute;
  bottom: 62px;
  left: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
}
.hero-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-badge strong { display: block; font-size: 0.9rem; color: var(--navy-text); line-height: 1.2; }
.hero-float-badge span { font-size: 0.8rem; color: var(--muted); }

/* --- Trust Strip --- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.trust-item:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.trust-item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; color: var(--navy-text); font-size: 0.94rem; line-height: 1.3; margin-bottom: 2px; }
.trust-item span { color: var(--muted); font-size: 0.84rem; line-height: 1.4; display: block; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-line); box-shadow: var(--shadow-md); }
.card h2 { font-size: 1.22rem; }
.card h3 { color: var(--navy-text); font-size: 1.14rem; }
.card p { font-size: 0.95rem; color: var(--body); }
.card--static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }

.icon-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.icon-box {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-soft); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-box svg { width: 18px; height: 18px; }

.product-card { display: flex; flex-direction: column; }
.product-card .btn-row { margin-top: auto; padding-top: 12px; }
.product-card .price { color: var(--navy-text); font-weight: 800; margin: 10px 0 4px; font-size: 0.94rem; }
.spec-badges { font-size: 0.86rem; color: var(--muted); margin-bottom: 8px; }
.spec-badges span { color: var(--navy-text); font-weight: 700; }

/* --- Absorbency & Lint Visual Meters --- */
.spec-meters { display: grid; gap: 8px; margin: 12px 0 14px; padding: 12px; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.meter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
.meter-label { color: var(--muted); font-weight: 600; }
.meter-val { color: var(--navy-text); font-weight: 700; }
.meter-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; flex: 1; max-width: 110px; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--blue)); border-radius: 999px; }
.meter-fill--green { background: linear-gradient(90deg, var(--green), #22c55e); }

/* --- Interactive Grade Finder Wizard --- */
.wizard-card {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.wizard-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.wizard-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.wizard-opt {
  text-align: left;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  transition: all 0.18s ease;
}
.wizard-opt strong { display: block; color: var(--navy-text); font-size: 0.94rem; margin-bottom: 2px; }
.wizard-opt span { display: block; color: var(--muted); font-size: 0.82rem; }
.wizard-opt:hover { border-color: var(--blue); background: #fff; }
.wizard-opt.active { border-color: var(--navy); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.12); }
.wizard-result {
  background: linear-gradient(145deg, var(--navy-950), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.wizard-result .tag { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.wizard-result h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.wizard-result p { color: #dbeafe; font-size: 0.94rem; }

/* --- Photos & Product Gallery --- */
.photo { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s ease; }
.card:hover .photo img, .photo:hover img { transform: scale(1.03); }
.photo figcaption { padding: 10px 14px; font-size: 0.83rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.product-card .photo { aspect-ratio: 4/3; }
.photo-small img { height: 215px; }
.photo-wide img { height: 320px; }

.gallery-main { aspect-ratio: 4/3; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.gallery-thumb {
  padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; background: #fff; aspect-ratio: 4/3; transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); transform: translateY(-2px); }

/* --- Check lists --- */
.check-list, .check { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li, .check li { padding: 5px 0 5px 26px; position: relative; color: var(--body); font-size: 0.95rem; }
.check-list li::before, .check li::before {
  content: "\2713"; position: absolute; left: 0; top: 5px;
  color: var(--green); font-weight: 900; font-size: 0.98rem; line-height: 1.2;
}
.check-list li strong, .check li strong { color: var(--navy-text); }

/* --- Tags, Chips, Presets --- */
.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  padding: 4px 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.tag--green { background: var(--green-soft); border-color: var(--green-line); color: var(--green-dark); }
.area-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips li {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 14px; color: var(--navy-text); font-size: 0.88rem; font-weight: 600;
}
.use-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.use-chip {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 0.85rem; color: var(--navy-text); font-weight: 600;
}
.pack-sizes, .pack-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.pack-chip {
  background: #fff; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 10px;
  padding: 9px 18px; font-weight: 800; font-size: 0.92rem; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.pack-chip:hover, .pack-chip.active { background: var(--navy); color: #fff; text-decoration: none; transform: translateY(-1px); }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.preset-pill {
  background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--navy-text);
  border-radius: 999px; padding: 6px 14px; font-size: 0.83rem; font-weight: 700; cursor: pointer;
  transition: all 0.18s ease;
}
.preset-pill:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--navy); }

/* --- Interactive Bale & Container Calculator --- */
.calc-card {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.calc-result {
  background: linear-gradient(145deg, var(--navy-950), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.calc-result h3 { color: #fff; margin-bottom: 14px; font-size: 1.1rem; }
.calc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.calc-metric {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}
.calc-metric strong { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.2; }
.calc-metric span { font-size: 0.8rem; color: #cbd5e1; }

/* --- Process Timeline --- */
.process-timeline { list-style: none; padding: 0; margin: 24px 0 0; }
.timeline-stage {
  position: relative;
  padding: 0 0 32px 42px;
  border-left: 2px solid var(--blue-line);
  margin-left: 12px;
}
.timeline-stage:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-stage::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-stage .num {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.quote-steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.quote-step {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}
.quote-step.active { border-color: var(--blue); color: var(--navy-text); background: var(--blue-soft); }
.quote-step.done { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table, .spec-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.94rem; }
th, .spec-table th {
  text-align: left; padding: 13px 16px; background: var(--navy); color: #fff;
  text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.08em; font-weight: 700;
}
td, .spec-table td, tbody th[scope="row"] {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--body); background: #fff; text-transform: none; font-size: 0.94rem; letter-spacing: 0;
}
tbody th[scope="row"] { color: var(--navy-text); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: var(--bg-soft); }
table caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 0.88rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-weight: 600; }

/* --- Forms --- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: 0.9rem; margin: 14px 0 6px; color: var(--navy-text); }
.field label, .form-row label { margin-top: 0; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  color: var(--slate-900);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 111, 224, 0.16);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #dc2626; }
textarea { resize: vertical; }
input[type="checkbox"] { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--navy); }
.check-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.check-row label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--navy-text); cursor: pointer; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.output {
  background: var(--bg-soft);
  border: 1.5px dashed var(--navy);
  border-radius: var(--radius);
  padding: 18px;
  white-space: pre-wrap;
  color: var(--navy-text);
  min-height: 150px;
  font-size: 0.92rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.55;
}
.note { font-size: 0.88rem; color: var(--muted2); }
.err-msg { color: #b91c1c; font-weight: 600; font-size: 0.85rem; margin: 6px 0 0; }

/* --- Alerts & Toast --- */
.alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  color: var(--navy-text);
  margin-top: 16px;
}
.alert--ok, .alert.ok { background: var(--green-soft); border-color: var(--green-line); color: var(--green-dark); }
.alert--err, .alert.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.toast-region {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--navy-950);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: fadeUp 0.25s ease both;
}

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--blue-line); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--navy-text); text-align: left;
  padding: 18px 22px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { background: var(--bg-soft); }
.faq-q span[aria-hidden] { display: inline-block; transition: transform 0.2s ease; color: var(--blue); font-size: 1.3rem; font-weight: 600; }
.faq-item.open .faq-q span[aria-hidden] { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; display: none; }
.faq-a p { color: var(--body); }
.faq-item.open .faq-a { display: block; }

/* --- Filters & Search Toolbar --- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  background: #fff; border: 1px solid var(--line-strong); color: var(--navy-text);
  padding: 9px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600;
  transition: all 0.18s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-box { position: relative; min-width: 240px; flex: 0 1 320px; }
.search-box input { padding-left: 38px; border-radius: 999px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted2); pointer-events: none; }
.hidden { display: none !important; }

/* --- Breadcrumbs --- */
.breadcrumbs { color: var(--muted2); font-size: 0.88rem; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.breadcrumbs [aria-current] { color: var(--navy-text); font-weight: 700; }

/* --- CTA Band & 4-Column Footer --- */
.cta-band {
  background:
    radial-gradient(700px 300px at 85% 20%, rgba(11, 111, 224, 0.35), transparent 60%),
    linear-gradient(105deg, var(--navy-950), var(--navy) 60%, #1454b8);
  color: #fff;
  padding: 58px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbeafe; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: #eff6ff; color: var(--navy-950); }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

.site-footer { background: var(--navy-950); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; color: #cbd5e1; font-size: 0.93rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tagline { color: #93c5fd; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 40px;
  padding-top: 22px;
  color: #94a3b8;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Floating Controls --- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), #22c55e); z-index: 90; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 65; background: var(--green); color: #fff;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28); transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); background: var(--green-dark); }
.to-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 65; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; font-size: 1.15rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.2s ease; box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); background: var(--navy-dark); }
.mobile-quote-bar { display: none; }

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotatorSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-anim { animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: var(--d, 0s); }
.d-1 { --d: 0.05s; } .d-2 { --d: 0.14s; } .d-3 { --d: 0.22s; } .d-4 { --d: 0.3s; } .d-5 { --d: 0.38s; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Utilities --- */
.txt-center { text-align: center; }
.txt-navy { color: var(--navy-text); }
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-20 { margin-bottom: 20px; }
.max-720 { max-width: 720px; margin-left: auto; margin-right: auto; }

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .calc-grid, .wizard-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-float-badge { left: 14px; bottom: 58px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 35px rgba(5, 22, 48, 0.35);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav a.quote-btn { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  section, .section { padding: 52px 0; }
  .hero { padding: 44px 0 42px; }
  .hero-photo img { height: 270px; }
  .hero-float-badge { position: static; margin-top: 12px; max-width: 100%; }
  .grid-4, .grid-3, .trust-strip .wrap, .footer-grid, .form-row, .calc-metrics, .wizard-options { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .top-contact { font-size: 0.8rem; gap: 6px 12px; }
  .toast-region { left: 14px; right: 14px; bottom: 72px; }
  .mobile-quote-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--green); color: #fff; text-align: center; font-weight: 800;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); text-decoration: none;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.16);
  }
  .mobile-quote-bar:hover { color: #fff; background: var(--green-dark); }
  .wa-float { bottom: 72px; right: 14px; }
  .to-top { bottom: 138px; right: 16px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

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

@media print {
  .topbar, .site-header, .wa-float, .mobile-quote-bar, .to-top, .cta-band, .site-footer,
  .scroll-progress, .menu-btn, .no-print, .toast-region { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .output { border: 1px solid #000; background: #fff; color: #000; }
}

/* Meter fill widths (replaces inline style widths) + small utilities */
.w-20{width:20%}
.w-35{width:35%}
.w-50{width:50%}
.w-55{width:55%}
.w-78{width:78%}
.w-88{width:88%}
.w-90{width:90%}
.w-95{width:95%}
.w-100{width:100%}
.ml-0{margin-left:0}
.pl-20{padding-left:20px}
