/*
 * Binx Professional Cleaning — Design System
 * css/binx.css
 *
 * Structure:
 *   1. CSS Custom Properties (shared + commercial + residential themes)
 *   2. Reset & Base
 *   3. Typography
 *   4. Layout & Grid (Bootstrap 5.3 stripped)
 *   5. Components: Buttons, Cards, Trust Badges, Nav, Forms, FAQ, Testimonials
 *   6. Page Sections: Hero, Content, CTA, Footer
 *   7. Utilities
 *   8. Animations
 *   9. Responsive
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand neutrals — shared across both themes */
  --brand-black:         #141414;
  --brand-white:         #FAFAF8;
  --brand-warm-gray-100: #F5F3EF;
  --brand-warm-gray-200: #E8E5DF;
  --brand-warm-gray-300: #D4D0C8;
  --brand-warm-gray-400: #A89E90;
  --brand-warm-gray-500: #7A7168;
  --brand-warm-gray-600: #5C5448;
  --brand-warm-gray-700: #3D362E;

  /* Amber — the genetic link between both themes */
  --amber-core: #E87A2D;

  /* Typography
   * Load order: local woff2 (fonts.css) overrides Google Fonts @font-face for same name.
   * If fonts.css fails entirely, the Google Fonts link in header.php keeps these names
   * registered. System stack is the last resort.
   */
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale (desktop — scales down in responsive section) */
  --text-hero:    clamp(36px, 5vw, 56px);
  --text-h1:      clamp(28px, 4vw, 42px);
  --text-h2:      clamp(22px, 3vw, 32px);
  --text-h3:      22px;
  --text-h4:      18px;
  --text-body:    17px;
  --text-body-sm: 15px;
  --text-label:   13px;
  --text-stat:    clamp(24px, 3vw, 36px);
  --text-stat-sm: 20px;

  /* Spacing scale (8px base grid) */
  --space-2xs:  4px;
  --space-xs:   8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout */
  --max-width:    1200px;
  --side-pad-sm:  24px;
  --side-pad-md:  48px;
  --side-pad-lg:  64px;
  --section-gap:  var(--space-3xl);
  --card-radius:  12px;
  --btn-radius:   8px;

  /* Responsive breakpoints (for JS use via CSS vars if needed) */
  --bp-sm:  640px;
  --bp-md:  768px;
  --bp-lg:  1024px;
  --bp-xl:  1280px;
  --bp-2xl: 1440px;

  /* Animation */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.5s;

  /* Default: commercial theme (overridden by [data-theme="residential"]) */
  --bg-hero:              #1E1E1E;
  --bg-hero-subtle:       #2A2A2A;
  --bg-content:           #FFFFFF;
  --bg-surface:           #F7F5F2;
  --bg-surface-elevated:  #FFFFFF;
  --accent-primary:       #E87A2D;
  --accent-primary-hover: #D06A22;
  --accent-primary-light: #FAEEDA;
  --accent-primary-dark:  #854F0B;
  --accent-secondary:     #F5A623;
  --accent-secondary-light: #FEF5E0;
  --text-on-dark-primary:   #F5F3EF;
  --text-on-dark-secondary: #B8B0A4;
  --text-on-dark-tertiary:  #8A8178;
  --text-on-light-primary:   #1E1E1E;
  --text-on-light-secondary: #5C5448;
  --text-on-light-tertiary:  #7A7168;
  --border-dark:   rgba(255,255,255,0.10);
  --border-light:  rgba(0,0,0,0.08);
  --border-accent: rgba(232,122,45,0.25);
  --success:       #3A7D44;
  --success-light: #EAF3DE;
  --info:          #2D6A9F;
  --info-light:    #E6F1FB;
  --error:         #C0392B;
  --error-light:   #FDECEA;
}

/* Commercial theme (default — explicit for clarity) */
[data-theme="commercial"] {
  --bg-hero:              #1E1E1E;
  --bg-hero-subtle:       #2A2A2A;
  --bg-content:           #FFFFFF;
  --bg-surface:           #F7F5F2;
  --bg-surface-elevated:  #FFFFFF;
  --accent-primary:       #E87A2D;
  --accent-primary-hover: #D06A22;
  --accent-primary-light: #FAEEDA;
  --accent-primary-dark:  #854F0B;
  --accent-secondary:     #F5A623;
  --text-on-dark-primary:   #F5F3EF;
  --text-on-dark-secondary: #B8B0A4;
  --text-on-light-primary:   #1E1E1E;
  --text-on-light-secondary: #5C5448;
  --text-on-light-tertiary:  #7A7168;
}

/* Residential theme */
[data-theme="residential"] {
  --bg-hero:              #FFF8F0;
  --bg-hero-accent:       #FFF0E0;
  --bg-content:           #FFFFFF;
  --bg-surface:           #FFFBF5;
  --bg-surface-elevated:  #FFFFFF;
  --accent-primary:       #D4956A;
  --accent-primary-hover: #C08558;
  --accent-primary-light: #FFF0E0;
  --accent-primary-dark:  #7A4E30;
  --accent-secondary:     #F4B88C;
  --accent-brand-spark:   #E87A2D;
  --text-on-dark-primary:   #3D362E;
  --text-on-dark-secondary: #6B5E50;
  --text-on-light-primary:   #3D362E;
  --text-on-light-secondary: #6B5E50;
  --text-on-light-tertiary:  #9A8E80;
  --border-light:  rgba(180,150,120,0.12);
  --border-accent: rgba(212,149,106,0.20);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════════════════════════════════ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-on-light-primary);
  background: var(--bg-content);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-primary); text-decoration: underline; }
a:hover { color: var(--accent-primary-hover); }

/* Focus visible — amber ring, all interactive elements */
:focus-visible {
  outline: 2px solid var(--amber-core);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--amber-core);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--btn-radius) var(--btn-radius);
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════════════════════════════════════════ */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  color: var(--text-on-light-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-sm);
  color: var(--text-on-light-primary);
}

h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5, h6 { font-size: var(--text-body); }

p {
  margin: 0 0 var(--space-md);
  color: var(--text-on-light-secondary);
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-on-light-secondary);
}

/* On dark backgrounds */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark-primary); }
.on-dark p, .on-dark .lead { color: var(--text-on-dark-secondary); }
.on-dark a { color: var(--accent-secondary); }

/* Overline label (e.g. "COMMERCIAL CLEANING") */
.overline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
}
[data-theme="residential"] .overline { letter-spacing: 0.05em; }

/* Stat numbers */
.stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-stat);
  font-weight: 500;
  line-height: 1.1;
  color: var(--amber-core);
}
.section-light .stat-number  { color: var(--color-accent); }
.section-surface .stat-number { color: var(--color-accent); }
.stat-number-sm {
  font-family: var(--font-mono);
  font-size: var(--text-stat-sm);
  font-weight: 400;
}

/* Section heading */
.section-heading {
  font-size: var(--text-h1);
  margin-bottom: var(--space-lg);
}
.section-subheading {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. LAYOUT & GRID (Bootstrap 5.3 stripped)
═══════════════════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--side-pad-sm);
}

@media (min-width: 768px)  { .container { padding-inline: var(--side-pad-md); } }
@media (min-width: 1024px) { .container { padding-inline: var(--side-pad-lg); } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--space-md) / -2);
}

.col, [class^="col-"] {
  padding-inline: calc(var(--space-md) / 2);
  flex: 1 0 0%;
}

.col-12 { flex: 0 0 auto; width: 100%; }
.col-md-6  { flex: 0 0 auto; width: 100%; }
.col-md-4  { flex: 0 0 auto; width: 100%; }
.col-md-3  { flex: 0 0 auto; width: 100%; }
.col-lg-4  { flex: 0 0 auto; width: 100%; }
.col-lg-6  { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.333%; }
  .col-md-3 { width: 25%; }
}

@media (min-width: 1024px) {
  .col-lg-4 { width: 33.333%; }
  .col-lg-6 { width: 50%; }
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mb-sm { margin-bottom: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Display utilities */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════════
   5. COMPONENTS
═══════════════════════════════════════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--btn-radius);
  border: 1.5px solid transparent;
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--amber-core);
  outline-offset: 2px;
}

/* Primary — bold amber fill */
.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
/* Belt-and-suspenders: ensure white text wins against global a { color } rule */
a.btn-primary, button.btn-primary { color: #fff; }
.btn-primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.btn-secondary:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Ghost — for dark backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark-primary);
  border-color: rgba(255,255,255,0.30);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.50);
  color: var(--text-on-dark-primary);
  text-decoration: none;
}

/* Hero size */
.btn-hero { font-size: 16px; padding: 16px 32px; }
/* Compact size */
.btn-sm   { font-size: 14px; padding: 10px 20px; }

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ── Cards ── */
.card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.card-body { padding: var(--space-lg); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Commercial card — amber bottom accent */
[data-theme="commercial"] .card-accent {
  border-bottom: 3px solid var(--accent-primary);
}

/* Residential card — copper left accent */
[data-theme="residential"] .card-accent {
  border-left: 3px solid var(--accent-primary);
}

/* Service card */
.service-card .card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-size: var(--text-body-sm);
  margin-bottom: var(--space-md);
}

/* ── Trust Badge Bar ── */
.trust-bar {
  padding: var(--space-xl) 0;
}

[data-theme="commercial"] .trust-bar {
  background: var(--bg-hero-subtle);
}

[data-theme="residential"] .trust-bar {
  background: var(--bg-hero-accent, var(--bg-surface));
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-md);
  align-items: start;
}

@media (min-width: 640px) {
  .trust-bar-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .trust-bar-grid { grid-template-columns: repeat(5, 1fr); }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.trust-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

[data-theme="commercial"] .trust-icon {
  color: var(--accent-secondary, var(--accent-primary));
}

.trust-stat {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

[data-theme="commercial"] .trust-stat { color: var(--text-on-dark-primary); }
[data-theme="residential"] .trust-stat { color: var(--text-on-light-primary); }

.trust-label {
  font-size: var(--text-label);
  line-height: 1.3;
}

[data-theme="commercial"] .trust-label { color: var(--text-on-dark-secondary); }
[data-theme="residential"] .trust-label { color: var(--text-on-light-secondary); }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

/* Over dark hero — transparent start */
[data-theme="commercial"] .site-nav {
  background: rgba(30,30,30,0);
}

/* After scroll (JS adds .scrolled) */
.site-nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

[data-theme="commercial"] .site-nav.scrolled .nav-logo-text,
[data-theme="commercial"] .site-nav.scrolled .nav-link { color: var(--brand-black); }

/* Residential — always light */
[data-theme="residential"] .site-nav {
  background: #fff;
  box-shadow: 0 1px 0 var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img { height: 40px; width: auto; }

.nav-logo-text {
  font-weight: 700;
  font-size: 15px;
  color: inherit;
  white-space: nowrap;
}

[data-theme="commercial"] .nav-logo-text { color: var(--text-on-dark-primary); }
[data-theme="commercial"] .site-nav.scrolled .nav-logo-text { color: var(--brand-black); }
[data-theme="residential"] .nav-logo-text { color: var(--brand-black); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: var(--text-body-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-on-light-secondary);
  transition: color var(--duration-fast);
  padding: var(--space-xs) 0;
  position: relative;
}

[data-theme="commercial"] .nav-link { color: var(--text-on-dark-secondary); }
[data-theme="commercial"] .site-nav.scrolled .nav-link { color: var(--text-on-light-secondary); }

.nav-link:hover { color: var(--accent-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--duration-fast) var(--ease-out);
}

.nav-link:hover::after { width: 100%; }

.nav-phone {
  font-size: var(--text-body-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-on-light-primary);
}

.nav-phone:hover { color: var(--accent-primary); text-decoration: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--text-on-light-secondary);
}

[data-theme="commercial"] .nav-toggle { color: var(--text-on-dark-secondary); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  overflow-y: auto;
  padding: 80px var(--space-lg) var(--space-xl);
}

[data-theme="commercial"] .nav-mobile { background: var(--bg-hero); }
[data-theme="residential"] .nav-mobile { background: var(--bg-hero); }

.nav-mobile.is-open { display: flex; flex-direction: column; gap: var(--space-lg); }

.nav-mobile-link {
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-on-dark-primary);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-dark);
}

.nav-mobile-link:hover { color: var(--accent-primary); }

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--text-on-light-secondary);
  margin-bottom: var(--space-xs);
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--text-on-light-primary);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-light);
  border-radius: var(--btn-radius);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-light);
}

.form-control.is-invalid {
  border-color: var(--error);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C5448' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-check-input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-body-sm);
  color: var(--text-on-light-secondary);
  cursor: pointer;
}

.form-error {
  font-size: var(--text-body-sm);
  color: var(--error);
  margin-top: var(--space-2xs);
}

.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* ── FAQ Accordion ── */
.faq-section {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg) 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--text-on-light-primary);
  transition: color var(--duration-fast);
}

.faq-question:hover { color: var(--accent-primary); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-primary);
  transition: transform var(--duration-base) var(--ease-out);
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              padding var(--duration-base) var(--ease-out);
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--text-on-light-secondary);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
  color: var(--accent-primary);
}

.testimonial-quote {
  font-size: var(--text-body);
  font-style: italic;
  color: var(--text-on-light-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.testimonial-meta {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-on-light-primary);
}

.testimonial-source {
  font-size: var(--text-label);
  color: var(--text-on-light-tertiary);
  margin-top: var(--space-2xs);
}

/* ── Breadcrumbs ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  font-size: var(--text-body-sm);
}

.breadcrumb-item { display: flex; align-items: center; gap: var(--space-xs); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--text-on-light-tertiary); }
.breadcrumb-item a { color: var(--text-on-light-tertiary); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent-primary); }
.breadcrumb-item.active { color: var(--text-on-light-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════════
   6. PAGE SECTIONS
═══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero — Commercial (dark) ── */
[data-theme="commercial"] .hero {
  background: var(--bg-hero);
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

[data-theme="commercial"] .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  /* Set via inline style on pages with hero images */
}

[data-theme="commercial"] .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

[data-theme="commercial"] .hero h1 {
  font-size: var(--text-hero);
  color: var(--text-on-dark-primary);
  margin-bottom: var(--space-lg);
}

[data-theme="commercial"] .hero .lead {
  color: var(--text-on-dark-secondary);
  font-size: 20px;
  margin-bottom: var(--space-xl);
}

/* ── Hero — Residential (warm) ── */
[data-theme="residential"] .hero {
  background: var(--bg-hero);
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

[data-theme="residential"] .hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--text-on-light-primary);
  margin-bottom: var(--space-md);
}

[data-theme="residential"] .hero .lead {
  color: var(--text-on-light-secondary);
  font-size: 19px;
  margin-bottom: var(--space-xl);
}

/* ── Hero split layout (text + image side by side) ── */
.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.hero-image {
  flex: 0 0 400px;
  max-width: 400px;
}
.hero-image .img-responsive {
  border-radius: var(--card-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
@media (max-width: 900px) {
  .hero .container { flex-direction: column; }
  .hero-image { flex: none; max-width: 100%; width: 100%; display: none; }
}

[data-theme="residential"] .hero-image {
  border-radius: var(--card-radius);
  overflow: hidden;
}

[data-theme="residential"] .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Section wrappers ── */
.section { padding: var(--section-gap) 0; }
.section-light { background: var(--bg-content); }
.section-surface { background: var(--bg-surface); }
.section-dark {
  background: var(--bg-hero);
  color: var(--text-on-dark-primary);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--text-on-dark-primary); }
.section-dark p   { color: var(--text-on-dark-secondary); }

/* ── Two-column content layout ── */
.content-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
}

@media (min-width: 768px) {
  .content-split { grid-template-columns: 1fr 1fr; }
  .content-split.reverse { direction: rtl; }
  .content-split.reverse > * { direction: ltr; }
}

/* ── Process steps ── */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.process-step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
}

/* ── Closing CTA block ── */
.cta-block {
  padding: var(--space-3xl) 0;
  text-align: center;
}

[data-theme="commercial"] .cta-block {
  background: var(--bg-hero);
}

[data-theme="residential"] .cta-block {
  background: var(--accent-primary-light, var(--bg-surface));
  border: 1px solid var(--border-accent);
  border-radius: var(--card-radius);
  margin: var(--section-gap) var(--side-pad-sm);
}

@media (min-width: 768px) {
  [data-theme="residential"] .cta-block { margin-inline: var(--side-pad-md); }
}

.cta-block h2 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-sm);
}

[data-theme="commercial"] .cta-block h2 { color: var(--text-on-dark-primary); }

.cta-block .lead {
  margin-bottom: var(--space-xl);
}

[data-theme="commercial"] .cta-block .lead { color: var(--text-on-dark-secondary); }

/* ── Footer ── */
.site-footer {
  background: var(--brand-warm-gray-700);
  color: var(--brand-warm-gray-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .footer-logo { height: 40px; width: auto; margin-bottom: var(--space-md); filter: brightness(0) invert(1); }
.footer-brand p { font-size: var(--text-body-sm); color: var(--brand-warm-gray-400); line-height: 1.6; }

.footer-heading {
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: var(--brand-warm-gray-100);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  font-size: var(--text-body-sm);
  color: var(--brand-warm-gray-400);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-links a:hover { color: var(--amber-core); }

.footer-nap {
  font-size: var(--text-body-sm);
  color: var(--brand-warm-gray-400);
  line-height: 1.8;
}

.footer-nap a { color: var(--amber-core); text-decoration: none; }
.footer-nap a:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--brand-warm-gray-400);
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.footer-social-link:hover {
  background: var(--amber-core);
  color: #fff;
}

.footer-social-link svg { width: 20px; height: 20px; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: var(--space-xl) 0 var(--space-lg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-body-sm);
  color: var(--brand-warm-gray-500);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal-links a {
  color: var(--brand-warm-gray-500);
  text-decoration: none;
  font-size: var(--text-body-sm);
  transition: color var(--duration-fast);
}

.footer-legal-links a:hover { color: var(--amber-core); }

.footer-engineered {
  margin-top: var(--space-xs);
  width: 100%;
}
.footer-engineered a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--brand-warm-gray-500);
  text-decoration: none;
  font-size: var(--text-body-sm);
  transition: color var(--duration-fast);
}
.footer-engineered a:hover { color: var(--amber-core); }
.footer-engineered-logo-img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 4px;
  filter: grayscale(1) brightness(1.8);
  transition: filter var(--duration-fast);
  flex-shrink: 0;
}
.footer-engineered a:hover .footer-engineered-logo-img {
  filter: none;
}

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--brand-warm-gray-700);
  color: var(--brand-warm-gray-200);
  padding: var(--space-lg);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  font-size: var(--text-body-sm);
  color: var(--brand-warm-gray-300);
  margin: 0;
  flex: 1 1 400px;
}

.cookie-banner a { color: var(--amber-core); }

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ── Mobile sticky CTA bar (service pages) ── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  .mobile-cta-bar { display: flex; gap: var(--space-sm); align-items: center; }
  body { padding-bottom: 80px; }
}

.mobile-cta-bar .btn { flex: 1; justify-content: center; font-size: 14px; padding: 12px; }

/* ── Notification / alert ── */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--btn-radius);
  font-size: var(--text-body-sm);
  margin-bottom: var(--space-md);
  border: 1px solid transparent;
}

.alert-success { background: var(--success-light); border-color: var(--success); color: var(--success); }
.alert-error   { background: var(--error-light); border-color: var(--error); color: var(--error); }
.alert-info    { background: var(--info-light); border-color: var(--info); color: var(--info); }

/* ═══════════════════════════════════════════════════════════════════════════════
   7. UTILITIES
═══════════════════════════════════════════════════════════════════════════════ */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-amber    { color: var(--amber-core); }
.text-muted    { color: var(--text-on-light-tertiary); }
.text-sm       { font-size: var(--text-body-sm); }
.text-mono     { font-family: var(--font-mono); }
.fw-bold       { font-weight: 700; }
.fw-medium     { font-weight: 500; }
.lh-tight      { line-height: 1.3; }

.divider-line {
  width: 80px;
  height: 2px;
  background: var(--accent-primary);
  margin: var(--space-md) auto;
}

.divider-line-left { margin-left: 0; }

/* ═══════════════════════════════════════════════════════════════════════════════
   8. ANIMATIONS
═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  /* Hero content fade-in */
  .hero-content {
    animation: fadeSlideUp 0.6s var(--ease-out) both;
  }

  /* Trust badge bar stagger */
  .trust-item:nth-child(1) { animation: fadeSlideUp 0.5s var(--ease-out) 0.1s both; }
  .trust-item:nth-child(2) { animation: fadeSlideUp 0.5s var(--ease-out) 0.2s both; }
  .trust-item:nth-child(3) { animation: fadeSlideUp 0.5s var(--ease-out) 0.3s both; }
  .trust-item:nth-child(4) { animation: fadeSlideUp 0.5s var(--ease-out) 0.4s both; }
  .trust-item:nth-child(5) { animation: fadeSlideUp 0.5s var(--ease-out) 0.5s both; }

  /* Scroll-triggered fade-up (JS adds .animate class) */
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. RESPONSIVE
═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  :root {
    --section-gap: var(--space-2xl);
  }

  .nav-links, .nav-phone-desktop { display: none; }
  .nav-toggle { display: flex; }

  h1 { font-size: clamp(26px, 7vw, 36px); }
  h2 { font-size: clamp(20px, 5vw, 28px); }

  .hero-content { max-width: 100%; }

  [data-theme="commercial"] .hero { padding: var(--space-2xl) 0; }
  [data-theme="residential"] .hero { padding: var(--space-2xl) 0; }

  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }

  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; justify-content: center; }

  /* Hero trust stats wrap to 2 cols on mobile */
  .trust-bar-grid .trust-item:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-phone-desktop { display: flex; }

  [data-theme="commercial"] .hero { padding: var(--space-4xl) 0 var(--space-3xl); }

  .content-split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero-content { max-width: 700px; }
}

/* Print */
@media print {
  .site-nav, .mobile-cta-bar, .cookie-banner, .cta-block { display: none; }
  body { font-size: 12pt; }
  a[href]::after { content: ' (' attr(href) ')'; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10. MISSING CLASSES — aliases and components for Phase 1 pages
═══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero component aliases ── */
/* Pages set .hero-title on <h1>, .hero-subtitle on <p> inside .hero */
.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-on-dark-primary);
  margin-bottom: var(--space-lg);
}
[data-theme="residential"] .hero-title { color: var(--text-on-light-primary); }

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-xl);
  max-width: 640px;
  line-height: 1.55;
}
[data-theme="residential"] .hero-subtitle { color: var(--text-on-light-secondary); }

/* .hero-inner — alias for .hero-content */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

/* Hero CTA button group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
@media (max-width: 767px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { text-align: center; justify-content: center; }
}

/* Hero modifiers */
.hero--short {
  padding-top: var(--space-3xl) !important;
  padding-bottom: var(--space-2xl) !important;
}
.hero-title--sm {
  font-size: var(--text-h1) !important;
}

/* ── Overline label alias ── */
/* Pages use .overline-label; CSS had .overline */
.overline-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
}
[data-theme="residential"] .overline-label { letter-spacing: 0.05em; }

/* ── Section heading aliases ── */
/* Pages use .section-title / .section-subtitle; CSS had .section-heading / .section-subheading */
.section-title {
  font-size: var(--text-h1);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-align: center;
}
.section-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-on-light-secondary);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 0;
  line-height: 1.55;
}
.section-dark .section-title  { color: var(--text-on-dark-primary); }
.section-dark .section-subtitle { color: var(--text-on-dark-secondary); }

/* mt-xl helper used on grids after section headings */
.mt-xl { margin-top: var(--space-xl); }

/* ── Content split children ── */
/* .split-panel and .split-text are column children of .content-split */
.split-panel,
.split-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}

/* Equal-height cards: make the direct card child fill the stretched grid cell */
.split-panel > .card { height: 100%; }

/* ── Feature and process lists ── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.feature-list li {
  padding-left: 1.5em;
  position: relative;
  font-size: var(--text-body-sm);
  color: var(--text-on-light-secondary);
  line-height: 1.5;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}
.section-dark .feature-list li { color: var(--text-on-dark-secondary); }

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  counter-reset: process-counter;
}
.process-list li {
  counter-increment: process-counter;
  padding-left: 2.5em;
  position: relative;
  font-size: var(--text-body-sm);
  color: var(--text-on-light-secondary);
  line-height: 1.5;
}
.process-list li::before {
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Card title, icon, and link variants ── */
.card-title {
  font-size: var(--text-h4);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-on-light-primary);
}
.section-dark .card-title { color: var(--text-on-dark-primary); }

.card-body p,
.card-body .card-body-text {
  font-size: var(--text-body-sm);
  color: var(--text-on-light-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}
.section-dark .card-body p { color: var(--text-on-dark-secondary); }

/* Emoji/icon container inside cards */
.card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: block;
}

/* .card-link — anchor element that looks like a card */
a.card,
.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}
a.card:hover,
.card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* ── Breadcrumb list wrapper ── */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  font-size: var(--text-body-sm);
}

/* ── Nav Actions wrapper (phone + CTA) ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ── Nav Dropdown (desktop hover) ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hide menu by default */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 8px 0 var(--space-xs);  /* 8px top padding preserves visual gap without a mouse dead zone */
  list-style: none;
  margin: 0;
  z-index: 200;
}

/* Show on hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 10px var(--space-md);
  font-size: var(--text-body-sm);
  color: var(--text-on-light-secondary);
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
  white-space: nowrap;
}
.nav-dropdown-link:hover {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

/* ── Divider ── */
.divider-line {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-lg) 0;
}

/* ── Text utilities ── */
.text-muted { color: var(--text-on-light-tertiary); font-size: var(--text-body-sm); }
.section-dark .text-muted { color: var(--text-on-dark-secondary); }

/* ── Page hero for interior pages (non-full-screen hero) ── */
.page-hero {
  background: var(--bg-hero);
  padding: var(--space-4xl) 0 var(--space-3xl);
}
[data-theme="residential"] .page-hero {
  background: var(--bg-surface);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

/* ── Map embed ── */
.map-embed {
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-top: var(--space-md);
}
.map-embed iframe { display: block; width: 100%; border: none; }

/* ── Contact layout ── */
.contact-location,
.contact-email,
.contact-hours {
  margin-bottom: var(--space-lg);
}
.contact-phone {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
}
.contact-phone:hover { color: var(--accent-primary-hover); text-decoration: underline; }

/* ── Inline breadcrumb (non-list style used in new pages) ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-body-sm);
  margin-bottom: var(--space-xl);
  color: var(--text-on-dark-secondary);
}
.breadcrumb a { color: var(--text-on-dark-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-primary); }
[data-theme="residential"] .breadcrumb,
.section-light .breadcrumb { color: var(--text-on-light-tertiary); }
[data-theme="residential"] .breadcrumb a,
.section-light .breadcrumb a { color: var(--text-on-light-tertiary); }

/* ═══════════════════════════════════════════════════════════════════════════
   11. ADDITIONAL MISSING CLASSES (Phase 1 Bug Fix — Round 2)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero theme variants ── */
.hero--home {
  background: var(--bg-hero);
  background-image: linear-gradient(135deg, var(--bg-hero) 60%, rgba(232,122,45,0.08) 100%);
}
.hero--commercial {
  background: var(--bg-hero);
  background-image: linear-gradient(135deg, var(--bg-hero) 55%, rgba(232,122,45,0.06) 100%);
}
.hero--residential {
  background: var(--bg-hero-residential, #FFF8F0);
  color: var(--text-on-light-primary);
}
[data-theme="residential"] .hero--residential {
  background: linear-gradient(135deg, #FFF8F0 60%, rgba(212,149,106,0.15) 100%);
}

/* ── Hero CTA group aliases ── */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
}

/* ── Button variants ── */
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--text-on-dark-primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: rgba(255,255,255,0.1);
  color: var(--text-on-dark-primary);
}
[data-theme="residential"] .btn-outline,
.section-light .btn-outline {
  color: var(--text-on-light-primary);
}
[data-theme="residential"] .btn-outline:hover,
.section-light .btn-outline:hover {
  background: rgba(0,0,0,0.06);
}

/* ── Content split reverse ── */
.content-split--reverse { flex-direction: row-reverse; }
@media (max-width: 767px) {
  .content-split--reverse { flex-direction: column; }
}

/* ── Content split contact (stacked on mobile, side-by-side on desktop) ── */
.content-split--contact { align-items: flex-start; }

/* ── Split image ── */
.split-image {
  min-width: 0; /* grid child fix */
}
.split-image .img-responsive {
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.section-dark .split-image .img-responsive {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.image-placeholder {
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--text-on-light-tertiary);
  font-size: var(--text-body-sm);
}

/* ── Services grid ── */
.services-grid { gap: var(--space-lg); }

/* ── Services directory (homepage) ── */
.services-directory { align-items: start; }
.services-directory-col .card { height: 100%; }
.services-directory-heading {
  font-size: var(--text-h3);
  margin-bottom: var(--space-md);
}
.services-directory-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}
.services-directory-list li {
  border-bottom: 1px solid var(--color-border);
}
.services-directory-list li:last-child { border-bottom: none; }
.services-directory-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-body);
  transition: color var(--duration-fast);
}
.services-directory-list a::after {
  content: '→';
  color: var(--amber-core);
  font-size: 0.9em;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}
.services-directory-list a:hover { color: var(--amber-core); }

/* ── Stats grid ── */
.stats-grid { gap: var(--space-xl); }
.stat-item {
  text-align: center;
}
.stat-label {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-secondary);
  margin-top: var(--space-xs);
}
.section-light .stat-label { color: var(--text-on-light-secondary); }

/* ── Testimonials grid ── */
.testimonials-grid { gap: var(--space-lg); }
.testimonial-context {
  font-size: var(--text-body-sm);
  color: var(--text-on-light-tertiary);
  font-style: italic;
}
.section-dark .testimonial-context { color: var(--text-on-dark-secondary); }
.testimonial-card--featured {
  border: 2px solid var(--accent-primary);
  background: var(--bg-card);
}
.testimonial-quote--large {
  font-size: var(--text-h4);
  line-height: 1.5;
}

/* ── Credential / Why Binx list ── */
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.credential-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-xl);
}
.credential-item:last-child { border-bottom: none; }

/* ── Process number ── */
.process-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-sm);
  font-weight: 700;
  line-height: 1;
}

/* ── Prose (long-form text pages) ── */
.prose {
  font-size: var(--text-body-lg, 1.0625rem);
  line-height: 1.75;
  color: var(--text-on-light-primary);
}
.prose h2 { margin-top: var(--space-2xl); }
.prose h3 { margin-top: var(--space-xl); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-md); }
.prose a { color: var(--accent-primary); }
.prose a:hover { text-decoration: underline; }

/* ── Contact form ── */
.contact-form { width: 100%; }
.form-sla {
  font-size: var(--text-body-sm);
  color: var(--text-on-light-tertiary);
  margin-top: var(--space-sm);
}

/* ── Section notes / CTA links ── */
.section-cta-link {
  text-align: center;
  margin-top: var(--space-xl);
}
.section-note {
  font-size: var(--text-body-sm);
  color: var(--text-on-light-tertiary);
  text-align: center;
  margin-top: var(--space-lg);
}
.section-dark .section-note { color: var(--text-on-dark-secondary); }

/* ── Cookie banner text ── */
.cookie-text {
  font-size: var(--text-body-sm);
  margin: 0;
}

/* ── Thanks icon ── */
.thanks-icon {
  display: block;
  text-align: center;
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

/* ── Breadcrumb light variant ── */
.breadcrumb--light {
  color: var(--text-on-light-tertiary);
}
.breadcrumb--light a { color: var(--text-on-light-secondary); }
.breadcrumb--light a:hover { color: var(--accent-primary); }

/* ── Footer component classes ── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-tagline {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-secondary);
  margin-top: var(--space-sm);
  max-width: 260px;
}
.footer-phone,
.footer-email {
  color: var(--text-on-dark-secondary);
  text-decoration: none;
  font-size: var(--text-body-sm);
}
.footer-phone:hover,
.footer-email:hover { color: var(--accent-primary); }
.footer-address,
.footer-hours {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-secondary);
  font-style: normal;
}
.footer-cta { margin-top: var(--space-md); }
.footer-copy {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-secondary);
}

/* ── Mobile CTA bar ── */
.mobile-cta-phone {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-on-dark-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-body-sm);
}
.mobile-cta-phone:hover { color: var(--accent-primary); }
.mobile-cta-quote { flex-shrink: 0; }

/* ── Hero section (dark section used as hero on interior pages without hero markup) ── */
.hero-section {
  background: var(--bg-hero);
  color: var(--text-on-dark-primary);
}

/* ── Page header (anchored section) ── */
.page-header {
  background: var(--bg-hero);
  padding: var(--space-3xl) 0 var(--space-2xl);
  color: var(--text-on-dark-primary);
}
[data-theme="residential"] .page-header {
  background: var(--bg-surface);
  color: var(--text-on-light-primary);
}
.img-responsive { max-width: 100%; height: auto; display: block; border-radius: var(--card-radius); }

/* ── Card image (full-bleed image at top of card) ── */
.card-image { overflow: hidden; border-radius: var(--card-radius) var(--card-radius) 0 0; margin: -1px -1px 0; }
.card-image .img-responsive { border-radius: var(--card-radius) var(--card-radius) 0 0; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
