/* ============================================================
   OPTION 8 — DARK INDUSTRIAL (based on Option 2)
   Carter Power Systems
   Dark-themed, high-contrast, engineering-grade design
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg-darkest: #0A1018;
  --bg-primary: #0F1923;
  --bg-card: #1A2635;
  --bg-card-hover: #223044;
  --bg-elevated: #243347;
  --bg-input: #162030;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(236, 170, 35, 0.3);

  --gold: #ECAA23;
  --gold-hover: #F5BD3F;
  --gold-dim: rgba(236, 170, 35, 0.15);
  --gold-glow: rgba(236, 170, 35, 0.25);

  --text-primary: #F0F2F5;
  --text-secondary: #A0AEBF;
  --text-muted: #6B7C90;
  --text-inverse: #0F1923;

  --accent-blue: #3B82F6;
  --accent-green: #22C55E;
  --accent-red: #EF4444;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 20px rgba(236,170,35,0.15);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.25s ease;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: var(--gold-dim);
  border-radius: 999px;
}
.section-header h2 { color: var(--text-primary); margin-bottom: 16px; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--gold-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold-hover);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-nav-cta {
  background: var(--gold);
  color: var(--text-inverse);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}
.btn-nav-cta:hover {
  background: var(--gold-hover);
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   EMERGENCY BANNER
   ============================================================ */
.emergency-banner {
  background: var(--gold);
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  z-index: 1100;
}
.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.emergency-inner i.fa-bolt { margin-right: 4px; }
.emergency-phone {
  color: var(--text-inverse);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
}
.emergency-phone:hover { background: rgba(0,0,0,0.25); }
.emergency-close {
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  opacity: 0.7;
  transition: var(--transition);
}
.emergency-close:hover { opacity: 1; }
.emergency-banner.hidden { display: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 25, 35, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-carter {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.logo-divider {
  width: 1.5px;
  height: 24px;
  background: var(--gold);
  opacity: 0.35;
}
.logo-ps {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Nav menu */
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text-primary); }
.nav-menu a .fa-chevron-down { font-size: 0.6rem; opacity: 0.5; }

/* Dropdowns */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}
.dropdown a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.dropdown a i { width: 18px; text-align: center; color: var(--gold); font-size: 0.8rem; }
.dropdown-view-all {
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 10px !important;
  color: var(--gold) !important;
  font-weight: 600 !important;
}

/* ---- Mega Menu ---- */
.has-megamenu .megamenu {
  min-width: 780px;
  padding: 20px 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}
.has-megamenu:hover .megamenu {
  transform: translateX(-50%) translateY(0);
}
.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.megamenu-col {
  padding: 8px 10px;
  border-right: 1px solid var(--border-subtle);
}
.megamenu-col:last-child { border-right: none; }
.megamenu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 6px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.megamenu-heading i { font-size: 0.75rem; width: 16px; text-align: center; }
.megamenu-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.megamenu-col a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.megamenu-col a i { width: 16px; text-align: center; color: var(--gold); font-size: 0.72rem; opacity: 0.7; }
.megamenu-col a:hover i { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Nav Search Button */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-search-btn:hover {
  background: var(--bg-elevated);
  color: var(--gold);
  border-color: var(--border-gold);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(10, 16, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-overlay-inner { padding: 24px 0; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(236, 170, 35, 0.15);
}
.search-bar-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.05rem;
}
.search-input::placeholder { color: var(--text-muted); }
.search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.search-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.search-suggestion-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.search-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.search-tag:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-dim);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============================================================
   HERO — SPLIT-SCREEN WITH DIAGONAL CLIP
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  background: var(--bg-darkest);
  overflow: hidden;
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236,170,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,170,35,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-split {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  padding: 80px 60px 80px 0;
  padding-left: calc((100vw - 1280px) / 2 + 24px);
  position: relative;
  z-index: 3;
}

.hero-right {
  flex: 0 0 45%;
  position: relative;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-darkest) 0%, transparent 30%);
}

.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid var(--border-gold);
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 br + * { display: inline; }
.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.trust-item i { color: var(--gold); font-size: 0.9rem; }

/* ============================================================
   STATS COUNTER BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-card);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
  position: relative;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 24px;
  min-width: 180px;
}
.stat-number, .stat-number-text {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-medium);
  flex-shrink: 0;
}

/* ============================================================
   THREE PILLARS
   ============================================================ */
.pillars {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}
.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
}
.pillar-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin: -24px -24px 20px -24px;
  width: calc(100% + 48px);
}

.pillar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-card-img img {
  transform: scale(1.05);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon i { font-size: 1.3rem; color: var(--gold); }
.pillar-card h3 { color: var(--text-primary); margin-bottom: 12px; }
.pillar-card > p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 20px; }
.pillar-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.pillar-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.pillar-link:hover { color: var(--gold-hover); gap: 10px; }

/* ============================================================
   PERSONA BLOCKS
   ============================================================ */
.persona-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}
.persona-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
}
.persona-card:hover {
  border-color: var(--border-gold);
  border-top-color: var(--gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.persona-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.persona-icon i { font-size: 1.4rem; color: var(--gold); }
.persona-card h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.persona-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.persona-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.persona-list li i {
  color: var(--accent-green);
  margin-top: 4px;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.persona-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.persona-link:hover { color: var(--gold-hover); gap: 10px; }

/* 4-card services override — 2x2 grid */
.services-grid.services-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .persona-grid { grid-template-columns: 1fr; }
  .services-grid.services-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .persona-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ENGINEERING TOOLS
   ============================================================ */
.tools-section {
  padding: 100px 0;
  background: var(--bg-darkest);
}
.tools-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.tool-card-featured {
  border-left: 3px solid var(--gold);
}
.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tool-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon i { color: var(--gold); font-size: 1.2rem; }
.tool-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 4px 12px;
  border-radius: 999px;
}
.tool-card h3 { color: var(--text-primary); margin-bottom: 10px; }
.tool-card > p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 24px; }

.tool-cards-secondary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-card-sm {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: var(--transition);
}
.tool-card-sm:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
}
.tool-icon-sm {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--gold-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon-sm i { color: var(--gold); font-size: 1rem; }
.tool-card-sm h4 { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 4px; }
.tool-card-sm p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin: 0; }
.tool-arrow { color: var(--text-muted); margin-left: auto; font-size: 0.85rem; }
.tool-card-sm:hover .tool-arrow { color: var(--gold); }

/* Forms (shared in tools and contact) */
.sizing-form, .contact-form { }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full-width { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.form-field select,
.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 11px 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}
.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-field select { cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   PRODUCTS — HORIZONTAL CAROUSEL
   ============================================================ */
.products-section {
  padding: 100px 0 80px;
  background: var(--bg-primary);
}
.products-carousel-wrapper {
  overflow-x: auto;
  padding: 0 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-card);
}
.products-carousel-wrapper::-webkit-scrollbar { height: 6px; }
.products-carousel-wrapper::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 3px; }
.products-carousel-wrapper::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.products-carousel {
  display: flex;
  gap: 24px;
  padding-bottom: 8px;
  min-width: max-content;
}
.product-hcard {
  display: flex;
  flex-direction: row;
  width: 520px;
  min-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-hcard:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-hcard-img {
  width: 200px;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}
.product-hcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-hcard:hover .product-hcard-img img { transform: scale(1.05); }
.product-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.product-hcard-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.product-hcard-body h3 { color: var(--text-primary); margin-bottom: 8px; }
.product-hcard-body > p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin-bottom: 14px; }
.product-specs-preview {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.product-specs-preview span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.product-specs-preview i { color: var(--gold); font-size: 0.72rem; }
.product-cat-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.product-hcard:hover .product-cat-link { color: var(--gold-hover); gap: 10px; }

/* ============================================================
   APPLICATIONS — TABBED SIDEBAR LAYOUT
   ============================================================ */
.applications-section {
  padding: 100px 0;
  background: var(--bg-darkest);
}
.applications-sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

/* Vertical tab sidebar */
.tab-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  padding: 8px;
}
.tab-sidebar .tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.tab-sidebar .tab-btn i { color: var(--text-muted); font-size: 0.8rem; width: 16px; text-align: center; }
.tab-sidebar .tab-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.tab-sidebar .tab-btn.active {
  background: var(--bg-card);
  color: var(--gold);
  font-weight: 600;
  border-left-color: var(--gold);
}
.tab-sidebar .tab-btn.active i { color: var(--gold); }

/* Tab panel */
.tab-panel { padding: 36px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.tab-content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tab-content:hover .tab-content-img img {
  transform: scale(1.03);
}
.tab-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}
.tab-text h3 { color: var(--text-primary); margin-bottom: 12px; font-size: 1.3rem; }
.tab-text > p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 24px; line-height: 1.7; }

.app-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.app-spec {
  background: var(--bg-primary);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.spec-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.app-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Resource links in application tabs */
.app-resource-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.resource-link i { color: var(--gold); font-size: 0.75rem; opacity: 0.7; }
.resource-link:hover { color: var(--gold); }
.resource-link:hover i { opacity: 1; }

.tab-features h4 {
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.feature-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
}
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.feature-list li i { color: var(--accent-green); margin-top: 3px; font-size: 0.75rem; }

/* ============================================================
   INDUSTRIES — HORIZONTAL ICON STRIP
   ============================================================ */
.industries-section {
  padding: 100px 0;
  background: var(--bg-primary);
}
.industries-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-card);
}
.industries-strip::-webkit-scrollbar { height: 4px; }
.industries-strip::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 2px; }
.industries-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.industry-tile {
  min-width: 220px;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.industry-tile:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: opacity 0.4s ease, transform 0.5s ease;
  z-index: 0;
}

.industry-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,35,0.85) 0%, rgba(26,38,53,0.95) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.industry-tile-content {
  position: relative;
  z-index: 2;
}

.industry-tile:hover .industry-tile-bg {
  opacity: 0.25;
  transform: scale(1.08);
}

.industry-tile:hover .industry-tile-overlay {
  background: linear-gradient(180deg, rgba(15,25,35,0.75) 0%, rgba(26,38,53,0.85) 100%);
}

.industry-tile-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.industry-tile-icon i { font-size: 1.5rem; color: var(--gold); }
.industry-tile h3 { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 8px; }
.industry-tile p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin-bottom: 14px; flex: 1; }
.industry-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.industry-tile:hover .industry-link { color: var(--gold-hover); gap: 10px; }

/* ============================================================
   DOCUMENTATION — DARK TABLE
   ============================================================ */
.documentation-section {
  padding: 100px 0;
  background: var(--bg-darkest);
}

/* Search bar */
.doc-search-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.doc-search-input {
  flex: 1;
  min-width: 280px;
  position: relative;
}
.doc-search-input i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.doc-search-input input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}
.doc-search-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.doc-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.doc-filter {
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 10px 14px;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.doc-filter:focus { border-color: var(--gold); }

/* Table layout */
.doc-table {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.doc-table-head {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.doc-table-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
  font-size: 0.88rem;
}
.doc-table-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.doc-table-row:hover { background: var(--bg-card-hover); }
.doc-table-row:last-child { border-bottom: none; }

.dt-col { padding: 0 8px; }
.dt-icon { width: 40px; flex-shrink: 0; }
.dt-icon i { color: var(--accent-red); font-size: 1.1rem; }
.dt-name { flex: 1; font-weight: 500; color: var(--text-primary); min-width: 0; }
.dt-type { width: 110px; flex-shrink: 0; color: var(--text-muted); font-size: 0.82rem; }
.dt-fuel { width: 100px; flex-shrink: 0; color: var(--text-muted); font-size: 0.82rem; }
.dt-rating { width: 100px; flex-shrink: 0; color: var(--text-secondary); font-size: 0.82rem; font-weight: 500; }
.dt-size { width: 110px; flex-shrink: 0; color: var(--text-muted); font-size: 0.78rem; }
.dt-action { width: 120px; flex-shrink: 0; text-align: right; }

.doc-footer {
  text-align: center;
  margin-top: 32px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  padding: 100px 0;
  background: var(--bg-primary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card-new {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.service-card-new:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon-new {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon-new i { color: var(--gold); font-size: 1.2rem; }
.service-card-new h3 { color: var(--text-primary); margin-bottom: 10px; }
.service-card-new p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 16px; line-height: 1.6; }
.service-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-link:hover { color: var(--gold-hover); gap: 10px; }

/* ============================================================
   CASE STUDIES — FULL-WIDTH HORIZONTAL BANDS
   ============================================================ */
.case-studies-section {
  padding: 100px 0 60px;
  background: var(--bg-darkest);
}
.case-bands {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 40px;
}
.case-band {
  display: flex;
  background: var(--bg-card);
  min-height: 340px;
  overflow: hidden;
}
.case-band-reverse { flex-direction: row-reverse; }

.case-band-img {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}
.case-band-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-band:hover .case-band-img img { transform: scale(1.03); }

.case-band-content {
  flex: 1;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.case-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 4px 12px;
  border-radius: 999px;
}
.case-band-content h3 { color: var(--text-primary); font-size: 1.3rem; margin-bottom: 12px; }
.case-band-content > p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 24px; }

.case-metrics {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.case-metric { text-align: left; }
.metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}
.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.case-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.case-link:hover { color: var(--gold-hover); gap: 10px; }

.case-footer {
  text-align: center;
  padding-bottom: 40px;
}

/* ============================================================
   WHY CARTER — BACKGROUND IMAGE + DARK OVERLAY
   ============================================================ */
.why-carter {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.why-carter-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.why-carter-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-carter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,16,24,0.95) 0%, rgba(15,25,35,0.88) 100%);
}
.why-carter .container { position: relative; z-index: 2; }

.why-carter-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.why-carter-text .section-label { }
.why-carter-text h2 { color: #fff; margin-bottom: 16px; }
.why-carter-text > p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; }

.credibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cred-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.cred-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.cred-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.why-carter-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wc-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.wc-feature:hover { background: rgba(255,255,255,0.06); border-color: var(--border-gold); }
.wc-feature > i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.wc-feature h4 { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 4px; }
.wc-feature p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* ============================================================
   COVERAGE MAP
   ============================================================ */
.coverage-section {
  padding: 100px 0;
  background: var(--bg-primary);
}
.coverage-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.coverage-text .section-label { }
.coverage-text h2 { color: var(--text-primary); margin-bottom: 14px; }
.coverage-text > p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; }

.coverage-locations {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.location-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.location-item i { color: var(--gold); font-size: 1rem; margin-top: 2px; }
.location-item strong { display: block; color: var(--text-primary); font-size: 0.92rem; }
.location-item span { color: var(--text-muted); font-size: 0.82rem; }

.coverage-map { position: relative; }
.map-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
}
.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: brightness(0.3) saturate(0.5);
}
.map-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: 420px;
}
.map-overlay-content > i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.map-overlay-content > span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.map-overlay-content > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 360px;
  margin-bottom: 20px;
}
.map-search {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}
.map-search input {
  flex: 1;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.88rem;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  outline: none;
}
.map-search input:focus { border-color: var(--gold); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-layout {
  text-align: center;
}
.cta-text { margin-bottom: 40px; }
.cta-text h2 { color: #fff; margin-bottom: 12px; }
.cta-text p { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.cta-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cta-card i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.cta-card h4 { color: var(--text-primary); margin-bottom: 8px; }
.cta-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* ============================================================
   CONTACT — WITH STICKY SIDEBAR CTA
   ============================================================ */
.contact-section {
  padding: 100px 0;
  background: var(--bg-primary);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

/* Sticky sidebar */
.contact-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-cta-sticky {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.sidebar-cta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sidebar-cta-header i { font-size: 1.4rem; color: var(--gold); }
.sidebar-cta-header h4 { color: var(--text-primary); font-size: 1.1rem; }
.sidebar-cta-sticky > p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}
.sidebar-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.sidebar-card h4 i { color: var(--gold); font-size: 0.9rem; }
.sidebar-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; line-height: 1.5; }
.emergency-link, .phone-link, .email-link {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 6px;
}
.email-link { font-size: 0.9rem; word-break: break-all; }

/* ============================================================
   FOOTER — MINIMAL SINGLE-ROW DARK
   ============================================================ */
.footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 24px;
}
.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.footer-brand-min {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo .logo-carter { font-size: 1.1rem; color: var(--gold); }
.footer-logo .logo-ps { font-size: 0.7rem; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.footer-logo .logo-divider { height: 18px; background: var(--gold); opacity: 0.3; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: none;
}

.footer-links-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-links-row a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.footer-links-row a:hover { color: var(--gold); background: var(--gold-dim); }

.footer-certs {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.footer-certs span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-certs i { color: var(--gold); font-size: 0.7rem; }

.footer-social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--text-inverse);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-bottom a { color: var(--text-secondary); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }
.footer-parent { margin-top: 4px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- Tablets ---------- */
@media (max-width: 1024px) {
  .hero-split { flex-direction: column; min-height: auto; }
  .hero-left {
    flex: none;
    padding: 80px 24px 60px;
    order: 1;
  }
  .hero-right {
    flex: none;
    height: 360px;
    clip-path: none;
    order: 0;
  }
  .hero-right-overlay { background: linear-gradient(180deg, transparent 50%, var(--bg-darkest) 100%); }

  .stats-row { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .stat-item { min-width: 140px; flex: 0 0 calc(50% - 8px); }

  .pillars-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-cards-secondary { flex-direction: row; flex-wrap: wrap; }
  .tool-card-sm { flex: 1; min-width: 260px; }

  .products-carousel { padding-left: 24px; }

  .applications-sidebar-layout { grid-template-columns: 1fr; }
  .tab-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px;
    gap: 4px;
  }
  .tab-sidebar .tab-btn {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    font-size: 0.82rem;
  }
  .tab-sidebar .tab-btn.active { border-left-color: transparent; border-bottom-color: var(--gold); }

  .tab-layout { grid-template-columns: 1fr; }

  .why-carter-layout { grid-template-columns: 1fr; gap: 48px; }
  .coverage-layout { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; max-width: 400px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .case-band, .case-band.case-band-reverse { flex-direction: column; }
  .case-band-img { flex: none; height: 260px; }
  .case-band-content { padding: 36px; }

  /* Mega-menu tablet: 3-column reflow */
  .has-megamenu .megamenu { min-width: 560px; }
  .megamenu-grid { grid-template-columns: repeat(3, 1fr); }
  .megamenu-col:nth-child(3) { border-right: none; }
  .megamenu-col:nth-child(4),
  .megamenu-col:nth-child(5) { border-top: 1px solid var(--border-subtle); padding-top: 12px; margin-top: 8px; }

  .footer-compact { flex-direction: column; text-align: center; }
  .footer-links-row { justify-content: center; }
  .footer-certs { justify-content: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--bg-primary);
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
  }
  .nav-menu.open ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }
  .nav-menu.open a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
  .nav-menu.open a:hover { background: var(--bg-card); }
  .nav-menu.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 20px;
  }
  .nav-menu.open .megamenu { min-width: unset; }
  .nav-menu.open .megamenu-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-menu.open .megamenu-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
  }
  .nav-menu.open .megamenu-col:last-child { border-bottom: none; }
  .nav-menu.open .megamenu-heading { font-size: 0.82rem; padding: 8px 0; }

  .app-resource-links { flex-direction: column; gap: 10px; }

  .hamburger { display: flex; }
  .btn-nav-cta { display: none; }
  .search-bar { padding: 12px 16px; }
  .search-input { font-size: 0.95rem; }
  .search-suggestions { gap: 6px; }

  .hero-left { padding: 48px 16px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-trust-bar { flex-direction: column; gap: 12px; }

  .stat-item { min-width: 100%; }
  .stat-number, .stat-number-text { font-size: 2.2rem; }

  .section-header { margin-bottom: 36px; }
  h2 { font-size: 1.6rem; }
  .section-desc { font-size: 0.92rem; }

  .form-row, .form-grid { grid-template-columns: 1fr; }
  .app-specs { grid-template-columns: 1fr; }

  .product-hcard {
    width: 300px;
    min-width: 300px;
    flex-direction: column;
  }
  .product-hcard-img { width: 100%; min-width: 100%; height: 180px; }

  .industries-strip { flex-direction: column; overflow-x: hidden; }
  .industry-tile { min-width: 100%; }

  /* Doc table: stack on mobile */
  .doc-table-head { display: none; }
  .doc-table-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }
  .dt-col { width: auto; }
  .dt-icon { width: auto; }
  .dt-name { flex: 1 1 100%; font-size: 0.92rem; }
  .dt-type, .dt-fuel, .dt-rating, .dt-size {
    width: auto;
    font-size: 0.75rem;
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
  }
  .dt-action { width: 100%; text-align: left; margin-top: 4px; }

  .services-grid { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
  .credibility-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .case-band-content { padding: 24px; }
  .case-metrics { gap: 20px; }
  .metric-value { font-size: 1.3rem; }

  .map-placeholder { min-height: 340px; }
  .map-overlay-content { padding: 40px 20px; min-height: 340px; }

  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 1rem; }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
  .emergency-inner { font-size: 0.78rem; gap: 10px; }
  .hero h1 { font-size: 1.7rem; }
  .credibility-grid { grid-template-columns: 1fr; }
  .hero-right { height: 260px; }
}

/* Animated number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-item { animation: countUp 0.6s ease-out forwards; }
.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(3) { animation-delay: 0.1s; }
.stat-item:nth-child(5) { animation-delay: 0.2s; }
.stat-item:nth-child(7) { animation-delay: 0.3s; }
