/* ===========================================
   CLEARWATER ELECTRIC — Design System
   Palette: Navy / Golden / Ocean Blue
   Font: Calibri (headings + body)
   =========================================== */

/* --- TOKENS --- */
:root {
  --primary: #1B3A5C;
  --primary-dark: #0F2440;
  --primary-light: #2A5580;
  --secondary: #F7B731;
  --secondary-dark: #E5A21E;
  --secondary-light: #FFD066;
  --accent: #2E9FD9;
  --accent-dark: #1E7DB0;
  --accent-light: #5BB8E6;
  --text: #1E2A3A;
  --text-light: #5A6B7F;
  --text-inverse: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #F0F5FA;
  --bg-dark: #0F1F30;
  --bg-dark-lighter: #162D45;
  --border: #D8E2ED;
  --border-light: #E8EFF6;
  --success: #28A745;

  --font-heading: 'Calibri', 'Carlito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Calibri', 'Carlito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h1: clamp(1.6rem, 2.8vw, 2.2rem);
  --fs-h2: clamp(1.3rem, 2.2vw, 1.7rem);
  --fs-h3: clamp(1.1rem, 1.8vw, 1.35rem);
  --fs-h4: clamp(1rem, 1.5vw, 1.15rem);
  --fs-body: clamp(1rem, 1.2vw, 1.1rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section-pad: clamp(3.5rem, 8vw, 6rem);
  --container-max: 1180px;
  --container-pad: clamp(1.5rem, 4vw, 2rem);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 4px rgba(27,58,92,0.07);
  --shadow-md: 0 4px 16px rgba(27,58,92,0.10);
  --shadow-lg: 0 8px 32px rgba(27,58,92,0.14);
  --shadow-glow: 0 0 20px rgba(247,183,49,0.25);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  --bolt-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24' fill='%23F7B731'%3E%3Cpath d='M9 0L3 14h4l-2 10 8-16H9z'/%3E%3C/svg%3E");
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: var(--fs-h1); margin-bottom: var(--space-md); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-sm); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-sm); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: var(--space-sm); }
li { margin-bottom: var(--space-xs); }

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--secondary);
  color: var(--primary-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: var(--space-sm); }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: var(--text-inverse); }
.section--dark h2, .section--dark h3 { color: var(--text-inverse); }
.section--dark .eyebrow { color: var(--secondary); }

.section--angled { position: relative; z-index: 1; }
.section--angled::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  right: 0;
  height: 56px;
  background: inherit;
  transform: skewY(-1.5deg);
  transform-origin: left;
  z-index: -1;
}

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-dark);
  margin-bottom: var(--space-xs);
}

.section-intro {
  max-width: 680px;
  margin-bottom: var(--space-xl);
}
.section-intro.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* heading accent underline */
.accent-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.accent-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn--primary {
  background: var(--secondary);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--secondary-dark);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn--white {
  background: var(--bg);
  color: var(--primary);
}
.btn--white:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}
.btn--lg {
  font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-lg);
}
.btn--icon::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--bolt-svg) center / contain no-repeat;
  flex-shrink: 0;
}
.btn--pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 24px rgba(247,183,49,0.4); }
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header.scrolled .header__inner {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.site-header.scrolled .header-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* --- TOP UTILITY BAR --- */
.header-topbar {
  background: var(--primary);
  color: var(--text-inverse);
  overflow: hidden;
  max-height: 40px;
  padding: 0.45rem 0;
  transition: max-height var(--duration) var(--ease), padding var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  flex-wrap: wrap;
  text-align: center;
}
.header-topbar__text {
  font-size: var(--fs-xs);
  opacity: 0.92;
}
.header-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
}
.header-topbar__link svg { flex-shrink: 0; }
.header-topbar__link:hover { color: var(--secondary-light); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  transition: padding var(--duration) var(--ease);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo img {
  height: 44px;
  width: auto;
  transition: height var(--duration) var(--ease);
}
.scrolled .header__logo img { height: 36px; }

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.header__logo-text span {
  display: block;
  color: var(--secondary-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- DESKTOP NAV --- */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav__list {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  transition: color var(--duration) var(--ease);
  text-decoration: none;
}
.main-nav__link:hover,
.main-nav__link[aria-expanded="true"] { color: var(--accent); }

/* dropdown */
.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--duration) var(--ease);
  list-style: none;
  z-index: 100;
}
.main-nav__dropdown--wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0 var(--space-xs);
  min-width: 560px;
  max-height: 70vh;
  overflow-y: auto;
}
.main-nav__item:hover .main-nav__dropdown,
.main-nav__item:focus-within .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__dropdown a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: var(--fs-sm);
  color: var(--text);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.main-nav__dropdown a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* header call button */
.header__cta {
  margin-left: var(--space-sm);
  flex-shrink: 0;
}
.header__cta .btn { font-size: var(--fs-xs); padding: 0.6rem 1.2rem; }

/* mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: all var(--duration) var(--ease);
  border-radius: 1px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO (split layout) --- */
#main {
  padding-top: 112px;
}
.hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--bg) 60%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.hero__content { flex: 1 1 55%; }
.hero__image {
  flex: 1 1 40%;
  position: relative;
}
.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__image::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: 12px;
  left: 12px;
  border: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--secondary);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink-dot 1.8s ease-in-out infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 { font-size: var(--fs-hero); color: var(--primary); }
.hero h1 strong { color: var(--secondary-dark); }

.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero__response {
  font-size: var(--fs-sm);
  color: var(--text-light);
}
.hero__response strong { color: var(--accent); }

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--primary);
  padding: var(--space-md) 0;
}
.trust-bar__items {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}
.trust-bar__value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}
.trust-bar__label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- ANSWER FIRST --- */
.answer-first {
  background: var(--bg-alt);
  border-left: 4px solid var(--secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-lg);
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}
.answer-first p { margin-bottom: 0; }

/* --- GRID LAYOUTS --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- CARDS --- */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; }

.card h3 a {
  color: var(--primary);
  text-decoration: none;
}
.card h3 a:hover { color: var(--accent); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-sm);
}
.card__link:hover { gap: 0.5rem; }

/* pillar card (larger, featured) */
.card--pillar {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}
.card--pillar .card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
}
.card--pillar .card__icon svg { stroke: var(--primary-dark); }

/* --- CTA BAND --- */
.cta-band {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.06);
  transform: skewX(-20deg);
}
.cta-band h2 {
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}
.cta-band p {
  color: var(--primary);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn {
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
}
.cta-band .btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.cta-band--dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.cta-band--dark h2 { color: var(--secondary); }
.cta-band--dark p { color: rgba(255,255,255,0.85); }
.cta-band--dark .btn {
  background: var(--secondary);
  color: var(--primary-dark);
}
.cta-band--dark .btn:hover {
  background: var(--secondary-dark);
}

/* --- PROCESS STEPS --- */
.process-steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-lg);
}
.process-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  counter-increment: step;
}
.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step__content h3 { font-size: var(--fs-h4); margin-bottom: 0.3rem; }

/* --- BOLT LIST (lightning bullet) --- */
.bolt-list {
  list-style: none;
  padding: 0;
}
.bolt-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
}
.bolt-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 18px;
  background: var(--bolt-svg) center / contain no-repeat;
}

/* --- FAQ --- */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--duration) var(--ease);
  line-height: 1.35;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}
.faq-item.active .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: var(--space-md);
}
.faq-answer p { color: var(--text-light); line-height: 1.75; }

/* --- MAP --- */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.map-section {
  display: flex;
  gap: var(--space-lg);
  align-items: stretch;
}
.map-section__map { flex: 1 1 55%; }
.map-section__info { flex: 1 1 40%; }

/* --- SERVICE AREA LINKS --- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-xs) var(--space-sm);
}
.area-grid a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  font-size: var(--fs-sm);
  color: var(--text);
  transition: color var(--duration) var(--ease);
}
.area-grid a::before {
  content: '';
  width: 10px;
  height: 15px;
  background: var(--bolt-svg) center / contain no-repeat;
  flex-shrink: 0;
  opacity: 0.6;
}
.area-grid a:hover { color: var(--accent); }

/* --- CITY BANNER IMAGE --- */
.city-banner {
  max-width: var(--container-max);
  margin: 0 auto var(--space-lg);
  padding: 0 var(--container-pad);
}
.city-banner img {
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* --- CITY MAP BANNER (above H1 on location pages) --- */
.city-map-banner {
  max-width: var(--container-max);
  margin: 0 auto var(--space-md);
  padding: 0 var(--container-pad);
}
.city-map-banner iframe {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* --- PROBLEM / SOLUTION CARDS --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.problem-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.problem-card__problem,
.problem-card__solution {
  padding: var(--space-md) var(--space-lg);
}
.problem-card__problem {
  border-left: 4px solid var(--accent);
}
.problem-card__solution {
  border-left: 4px solid var(--secondary);
  background: var(--bg-alt);
}
.problem-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.problem-card__problem .problem-card__label { color: var(--accent-dark); }
.problem-card__solution .problem-card__label { color: var(--secondary-dark); }
.problem-card p { margin-bottom: 0; }

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

/* --- BREADCRUMBS --- */
.breadcrumbs {
  padding: var(--space-xs) 0;
  font-size: var(--fs-xs);
  color: var(--text-light);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.3rem;
}
.breadcrumbs li::after { content: '/'; margin-left: 0.3rem; color: var(--border); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--text-light); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent); }

/* --- STAT COUNTERS --- */
.stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* --- BLOG CARDS --- */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: var(--space-md); }
.blog-card__category {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}
.blog-card__body h3 { font-size: var(--fs-h4); }
.blog-card__body h3 a { color: var(--primary); }
.blog-card__body h3 a:hover { color: var(--accent); }

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand { max-width: 280px; }
.footer__brand img { height: 42px; margin-bottom: var(--space-sm); }
.footer__brand p { font-size: var(--fs-sm); line-height: 1.7; }

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__links li { margin-bottom: 0.45rem; }
.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-sm);
  transition: color var(--duration) var(--ease);
}
.footer__links a:hover { color: var(--secondary); }

.footer__nap {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.footer__nap a { color: var(--secondary); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
}
.footer__legal {
  display: flex;
  gap: var(--space-md);
}
.footer__legal a { color: rgba(255,255,255,0.5); }
.footer__legal a:hover { color: var(--secondary); }

/* --- MOBILE STICKY CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--secondary);
  padding: 0.7rem var(--container-pad);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta a::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2440' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

/* --- POPUP --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,31,48,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.92);
  transition: transform var(--duration) var(--ease);
  box-shadow: var(--shadow-lg);
}
.popup-overlay.active .popup { transform: scale(1); }

.popup__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}
.popup__close:hover { color: var(--text); }
.popup h2 { margin-bottom: var(--space-xs); }
.popup p { color: var(--text-light); margin-bottom: var(--space-md); }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn--pulse { animation: none; }
  .hero__badge::before { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .map-section { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__content { order: 1; }
  .hero__image { order: 0; max-width: 400px; margin: 0 auto; }
  .hero__image::after { display: none; }
  .hero__cta { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }

  .trust-bar__items { gap: var(--space-md); }

  .stats { gap: var(--space-lg); }

  /* mobile nav */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem var(--space-lg) var(--space-lg);
    overflow-y: auto;
    transition: right var(--duration) var(--ease);
    z-index: 1000;
  }
  .main-nav.open { right: 0; }
  .main-nav__list { flex-direction: column; }
  .main-nav__link { padding: 0.7rem 0; border-bottom: 1px solid var(--border-light); }
  .main-nav__dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    padding: 0;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
  }
  .main-nav__dropdown--wide {
    grid-template-columns: 1fr;
    min-width: 0;
    max-height: none;
    overflow-y: visible;
  }
  .main-nav__item.open .main-nav__dropdown {
    max-height: 1600px;
    padding: var(--space-xs) 0;
  }
  .main-nav__dropdown a { padding: 0.45rem 1rem; }

  .menu-toggle { display: block; }
  .header__cta { display: none; }

  .mobile-cta { display: block; }
  body { padding-bottom: 56px; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 375px) {
  :root {
    --container-pad: 1.5rem;
  }
  #main { padding-top: 96px; }
  .hero { padding-top: var(--space-lg); }
  .header-topbar__text { display: none; }
  .header-topbar__inner { justify-content: center; }
  .trust-bar__items { flex-direction: column; gap: var(--space-sm); }
}
