/* =========================================================
   Purvi Heaters — Design System
   Brand colors & fonts sourced from brandguideline.pdf
   ========================================================= */

/* Self-hosted fonts (Archivo + Montserrat) — deliberately NOT loaded from
   Google Fonts CDN. A CDN dependency here means typography silently breaks
   for any visitor whose browser/extension blocks it (ad blockers, privacy
   modes like Brave's default fingerprint protection, offline dev, etc). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/archivo-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
}

:root {
  --color-primary: #dd3b18;
  --color-primary-dark: #b92e10;
  --color-dark: #2a2a2a;
  --color-gray: #6b6d70;
  --color-gray-light: #f2f2f3;
  --color-border: #e3e3e4;
  --color-white: #ffffff;

  --font-primary: "Archivo", "Arial Black", sans-serif; /* headings */
  --font-secondary: "Montserrat", "Segoe UI", sans-serif; /* body */

  --container-width: 1200px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(42, 42, 42, 0.08);
  --shadow-md: 0 6px 24px rgba(42, 42, 42, 0.12);
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 3.6vw + 1rem, 3.85rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 1.8vw + 1rem, 2.35rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

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

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--color-dark); }

.btn-block { width: 100%; }

.btn svg { transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
}

.brand img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-dark);
  padding: 0.5rem 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.has-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  text-transform: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.dropdown-menu a:hover { background: var(--color-gray-light); }
/* Distinguishes a link to a multi-product category page from a link that
   goes straight to a single product's page — both look like plain text
   links otherwise, with no way to tell which you'll land on. */
.mega-count {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  color: var(--color-gray);
  margin-top: 0.05rem;
}

/* Products mega-menu — grouped into solution areas (Heating Solutions /
   Temperature Sensors) instead of one flat list of categories. */
.dropdown-mega {
  min-width: 520px;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  padding: 1rem;
}
.mega-col { display: grid; gap: 0.1rem; align-content: start; }
.mega-col h5 {
  grid-column: 1 / -1;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  color: var(--color-primary);
  margin: 0;
  padding: 0.4rem 0.75rem 0.35rem;
}
.mega-col-all,
.mega-view-all {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  color: var(--color-primary) !important;
  padding: 0.6rem 0.75rem 0.3rem;
}
.mega-view-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-border);
  margin-top: 0.4rem;
  padding-top: 0.85rem;
}
@media (max-width: 959px) {
  .mobile-nav .dropdown-mega { grid-template-columns: 1fr; min-width: 0; gap: 0; padding: 0 0 0.5rem 1rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: none;
  border: 2px solid var(--color-dark);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: transform var(--transition);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 0.5rem 1.25rem 1rem; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a, .mobile-nav .dropdown-toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  background: none;
  border: none;
}
.mobile-nav .dropdown-menu {
  position: static;
  box-shadow: none;
  border: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: none;
  padding: 0 0 0.5rem 1rem;
}
.mobile-nav .has-dropdown.is-open .dropdown-menu { display: grid; }

@media (min-width: 960px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, var(--color-dark) 0%, #363636 100%);
  color: #fff;
  padding: 5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(221,59,24,0.32), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead {
  color: #d8d8d8;
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.page-hero {
  background:
    radial-gradient(70% 240px at 85% 0%, rgba(221,59,24,0.22) 0%, rgba(221,59,24,0) 60%),
    linear-gradient(135deg, var(--color-dark) 0%, #333333 100%);
  color: #fff;
  padding: 3.25rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero .lead { color: #d8d8d8; max-width: 60ch; margin: 0; }
.breadcrumbs {
  font-size: 0.8rem;
  color: #b9b9b9;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.breadcrumbs a { color: #d8d8d8; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { margin: 0 0.4rem; color: #6b6d70; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-gray-light); }
.section-header { max-width: 640px; margin-bottom: 2.75rem; }
.section-header p { color: var(--color-gray); }

/* ---------- Media frames (branded placeholder visuals) ---------- */
.media-frame {
  position: relative;
  display: flex;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-dark);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame-hero { box-shadow: var(--shadow-md); border-radius: 14px; }
.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.product-gallery-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 57px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-dark);
  cursor: pointer;
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb.is-active { border-color: var(--color-primary); }
.media-icon-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(221,59,24,0.45);
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.75rem; }
/* auto-fill (not auto-fit): keeps empty tracks reserved instead of collapsing
   them, so a row with fewer cards than the max per row (e.g. a category with
   only 1 product) doesn't stretch a lone card's image to fill the full row. */
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-top-color: var(--color-primary); }
.card-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.card-body p { color: var(--color-gray); font-size: 0.92rem; flex: 1; }
/* Makes the whole card clickable: the title link's ::after is stretched to
   cover the entire card (image included), so a click anywhere lands on this
   link. Other interactive elements inside the card (the "View Details" link)
   sit above it via z-index so they still work as their own, more specific,
   click target. */
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link {
  position: relative;
  z-index: 2;
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}
.card-link svg { transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(3px); }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  background: rgba(221,59,24,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  width: fit-content;
}

/* ---------- Stats strip (floating panel overlapping the hero) ---------- */
.stats-wrap { padding-top: 0; padding-bottom: 2.5rem; }
.stats-float {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: -4.5rem;
  position: relative;
  z-index: 2;
  background: var(--color-dark);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
@media (min-width: 720px) { .stats-float { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat:nth-child(even) { border-right: none; }
@media (min-width: 720px) {
  .stat { border-bottom: none; }
  .stat:nth-child(even) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat:last-child { border-right: none; }
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(221,59,24,0.15);
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.stat h3 {
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 0.15rem;
}
.stat span {
  font-size: 0.78rem;
  color: #a8a8a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Spec tables ---------- */
.spec-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
table.spec-table caption {
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
table.spec-table th, table.spec-table td {
  border: 1px solid var(--color-border);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
table.spec-table thead th {
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-primary);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
table.spec-table tbody tr:nth-child(even) { background: var(--color-gray-light); }

/* Below ~560px a 480px-min-width table only invites silent horizontal
   scroll (easy to miss on a phone, cells read as cut off). Restack each
   row into a labeled card instead — data-label (set in dataTable()) supplies
   the column header per cell; 2-column spec tables need no label since
   their first cell already reads as the row's heading. */
@media (max-width: 560px) {
  .spec-table-wrap { overflow-x: visible; }
  table.spec-table { min-width: 0; }
  table.spec-table, table.spec-table thead, table.spec-table tbody, table.spec-table tr, table.spec-table th, table.spec-table td {
    display: block;
    width: 100%;
  }
  table.spec-table thead { position: absolute; left: -9999px; }
  table.spec-table tbody tr {
    margin-bottom: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  table.spec-table tbody tr:last-child { margin-bottom: 0; }
  table.spec-table td, table.spec-table th {
    border: none;
    border-bottom: 1px solid var(--color-border);
  }
  table.spec-table tr > td:last-child, table.spec-table tr > th:last-child { border-bottom: none; }
  table.spec-table td:first-child { width: auto; background: var(--color-gray-light); }
  table.spec-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    color: var(--color-gray);
    margin-bottom: 0.2rem;
  }
}
table.spec-table td:first-child { font-weight: 700; width: 32%; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.tag-list li {
  background: var(--color-gray-light);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.check-list { display: grid; gap: 0.75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(221,59,24,0.12);
  color: var(--color-primary);
}
/* Wider checklist inside a full-width row (e.g. a QC timeline stage) —
   flows into columns instead of stacking one item per line down a narrow card. */
.check-list-flow { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- Process timeline (e.g. Quality Control stages) ---------- */
.timeline { display: flex; flex-direction: column; margin-top: 2.5rem; }
.timeline-stage { display: grid; grid-template-columns: 60px 1fr; gap: 1.75rem; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; }
.timeline-number {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  border: 2px solid var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.15rem;
}
.timeline-connector { width: 2px; flex: 1; min-height: 2rem; background: var(--color-border); margin: 0.4rem 0; }
.timeline-stage:last-child .timeline-connector { display: none; }
.timeline-content { padding-bottom: 2.5rem; }
.timeline-stage:last-child .timeline-content { padding-bottom: 0; }
.timeline-content h3 { margin-bottom: 0.9rem; font-size: 1.15rem; }
@media (max-width: 640px) {
  .timeline-stage { grid-template-columns: 44px 1fr; gap: 1rem; }
  .timeline-number { width: 40px; height: 40px; font-size: 0.95rem; }
}

/* ---------- Product / Category detail layout ---------- */
.detail-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* ---------- Lead capture forms ---------- */
/* Same base tone + glow recipe as .site-footer (which sits directly below
   this section on every page) — the bottom-anchored glow here and the
   top-anchored glow in the footer meet at the shared seam, so the two read
   as one continuous dark zone instead of two mismatched grey blocks. */
.lead-form-section {
  background:
    radial-gradient(90% 240px at 50% 0%, rgba(221,59,24,0.16) 0%, rgba(221,59,24,0) 60%),
    radial-gradient(120% 320px at 18% 100%, rgba(221,59,24,0.18) 0%, rgba(221,59,24,0) 55%),
    #1c1c1c;
  color: #fff;
  padding: 3.5rem 0;
}
.lead-form-section .section-header p { color: #c9c9c9; }
.lead-form-section .section-eyebrow { color: var(--color-primary); }
.lead-form-section h2 { color: #fff; }

.lead-form {
  background: #fff;
  color: var(--color-dark);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}
.lead-form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .lead-form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
.form-field { display: grid; gap: 0.35rem; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-dark);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.product-other-field { display: none; }
.product-other-field.is-visible { display: grid; }
.form-note { font-size: 0.78rem; color: var(--color-gray); }
.form-success {
  display: none;
  background: #eafff1;
  border: 1px solid #46b06a;
  color: #1f6b3a;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success.is-visible { display: block; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 60ch; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: radial-gradient(120% 260px at 18% 0%, rgba(221,59,24,0.16) 0%, rgba(221,59,24,0) 55%), #1c1c1c;
  color: #d8d8d8;
  padding-top: 3.5rem;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  right: -40px;
  bottom: -40px;
  color: #fff;
  opacity: 0.035;
  pointer-events: none;
  line-height: 0;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #3d3d3d;
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.3fr 0.8fr 1fr 1fr; }
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: #c6c6ca; font-size: 0.9rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: #c6c6ca; font-size: 0.9rem; display: block; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-primary); text-shadow: 0 0 12px rgba(221,59,24,0.55); }
.footer-count { display: block; font-size: 0.72rem; color: #8f8f93; margin-top: 0.1rem; }
.footer-address address { font-style: normal; color: #c6c6ca; font-size: 0.9rem; margin-top: 1.25rem; }
.footer-address ul { margin-bottom: 0; }


.footer-social {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #3f3f3f;
  color: #d8d8d8;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.footer-industries li { color: #c6c6ca; font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #9c9ca0;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
