/* ============================================================
   BESTINSPECT — style.css
   Art Direction: Authoritative / Trust-forward / National Brand
   Palette: Navy + White + Amber accent (contrast to all competitors)
   Fonts: Cabinet Grotesk (display) + Instrument Serif (accent/italic) 
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-accent:  'Instrument Serif', 'Georgia', serif;

  /* BestInspect Custom Palette — Navy + Amber */
  --color-bg:             #F8F9FA;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F3F4F6;
  --color-surface-offset: #EEF0F3;
  --color-divider:        #E2E5EA;
  --color-border:         #D1D5DB;

  --color-text:           #0F1723;
  --color-text-muted:     #6B7280;
  --color-text-faint:     #9CA3AF;
  --color-text-inverse:   #FFFFFF;

  /* Primary: Deep Navy */
  --color-primary:        #1A3A5C;
  --color-primary-hover:  #122C47;
  --color-primary-active: #0B1F33;
  --color-primary-light:  #E8EFF6;

  /* Accent: Amber Gold */
  --color-accent:         #E8A020;
  --color-accent-hover:   #D08A10;
  --color-accent-light:   #FEF3DA;

  /* Success */
  --color-success:        #16A34A;
  --color-success-light:  #DCFCE7;

  /* Warning */
  --color-warning:        #D97706;
  --color-warning-light:  #FEF3C7;

  /* Error */
  --color-error:          #DC2626;
  --color-error-light:    #FEE2E2;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,35,0.08);
  --shadow-md: 0 4px 16px rgba(15,23,35,0.10);
  --shadow-lg: 0 12px 40px rgba(15,23,35,0.14);
  --shadow-xl: 0 20px 60px rgba(15,23,35,0.18);

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-narrow:  680px;
  --content-default: 1000px;
  --content-wide:    1240px;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg:             #0B1220;
  --color-surface:        #111928;
  --color-surface-2:      #182030;
  --color-surface-offset: #1E2A3C;
  --color-divider:        #253248;
  --color-border:         #2E3D52;
  --color-text:           #E8EDF2;
  --color-text-muted:     #8896A8;
  --color-text-faint:     #4A5C70;
  --color-primary:        #5B91C8;
  --color-primary-hover:  #7EB0E0;
  --color-primary-light:  #1A2D42;
  --color-accent:         #F4B840;
  --color-accent-hover:   #FFC857;
  --color-accent-light:   #2A2012;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0B1220;
    --color-surface: #111928;
    --color-surface-2: #182030;
    --color-surface-offset: #1E2A3C;
    --color-divider: #253248;
    --color-border: #2E3D52;
    --color-text: #E8EDF2;
    --color-text-muted: #8896A8;
    --color-text-faint: #4A5C70;
    --color-primary: #5B91C8;
    --color-primary-hover: #7EB0E0;
    --color-primary-light: #1A2D42;
    --color-accent: #F4B840;
    --color-accent-hover: #FFC857;
    --color-accent-light: #2A2012;
  }
}

/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  hanging-punctuation: first last;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(232,160,32,0.25); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, [role="button"], input, textarea, select {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}
.container--narrow {
  max-width: var(--content-narrow);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-primary);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  text-decoration: none;
  color: white;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--color-text); background: var(--color-surface-2); text-decoration: none; }

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-full { width: 100%; justify-content: center; }

/* === SECTION LABELS === */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-heading {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}
.section-heading em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-primary);
}
.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
  line-height: 1.65;
}

/* === ANNOUNCE BAR === */
.announce-bar {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
}
.announce-bar a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 68px;
}
.logo { flex-shrink: 0; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-6); list-style: none; }
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.phone-link { font-weight: 600; color: var(--color-text); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all var(--transition); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-6);
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-nav a { font-size: var(--text-base); font-weight: 600; color: var(--color-text); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,22,45,0.88) 0%,
    rgba(10,22,45,0.75) 50%,
    rgba(10,22,45,0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-16);
  padding-bottom: clamp(var(--space-20), 10vw, var(--space-32));
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(232,160,32,0.18);
  border: 1px solid rgba(232,160,32,0.5);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero-heading {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-heading em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent);
}
.hero-subhead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}
.hero-subhead strong { color: white; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-item strong {
  font-size: var(--text-lg);
  font-weight: 900;
  color: white;
  line-height: 1;
}
.trust-item span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}
.scroll-hint {
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(4px); opacity: 1; }
}

/* === PROBLEM SECTION === */
.problem-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.problem-section .section-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.problem-section .container--narrow {
  max-width: 840px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition), transform var(--transition);
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.problem-icon {
  width: 48px;
  height: 48px;
  background: var(--color-error-light, #FEE2E2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DC2626;
  margin-bottom: var(--space-5);
}
.problem-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.problem-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* === STANDARD SECTION === */
.standard-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-primary);
  color: white;
}
.standard-section .section-label { color: var(--color-accent); }
.standard-section .section-heading { color: white; font-size: var(--text-2xl); }
.standard-section .section-intro { color: rgba(255,255,255,0.75); max-width: 65ch; }
.standard-section .section-intro strong { color: white; }
.standard-intro { margin-bottom: var(--space-12); }
.standard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.standard-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.standard-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.standard-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.95);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.standard-badge svg { color: var(--color-success); flex-shrink: 0; }
.standard-item {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.standard-item:last-child { border-bottom: none; padding-bottom: 0; }
.standard-num {
  font-size: var(--text-xs);
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 28px;
}
.standard-text h3 {
  font-size: var(--text-base);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-2);
}
.standard-text p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* === SERVICES SECTION === */
.services-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-7, 1.75rem);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-primary-light);
}
.service-card--featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  grid-row: span 2;
}
.service-card--featured h3 { color: white; }
.service-card--featured p { color: rgba(255,255,255,0.75); }
.service-card--featured ul { color: rgba(255,255,255,0.85); margin-top: var(--space-3); padding-left: var(--space-4); list-style: disc; }
.service-card--featured .service-link { color: var(--color-accent); font-weight: 700; margin-top: auto; }
.service-card--featured .service-icon { background: rgba(255,255,255,0.12); color: var(--color-accent); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.service-card h3 {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-text);
  margin-top: var(--space-2);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.service-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
}
.service-link:hover { text-decoration: underline; }

/* === TECH SECTION === */
.tech-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-surface-2);
}
.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.tech-content .section-heading { font-size: var(--text-2xl); }
.tech-content > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.tech-list { display: flex; flex-direction: column; gap: var(--space-5); }
.tech-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.tech-list li strong { color: var(--color-text); }
.tech-check {
  width: 24px;
  height: 24px;
  background: var(--color-success-light, #DCFCE7);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 1px;
}
.tech-image { position: relative; }
.tech-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.tech-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}
.tech-caption strong { font-size: var(--text-sm); color: var(--color-text); font-weight: 700; }
.tech-caption span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* === AI SECTION === */
.ai-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.ai-inner {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  align-items: flex-start;
}
.ai-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.ai-content .section-heading { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.ai-content > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.ai-features {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.ai-feature {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ai-feature strong { font-size: var(--text-sm); font-weight: 800; color: var(--color-text); }
.ai-feature span { font-size: var(--text-xs); color: var(--color-text-muted); }
.ai-widget-zone {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}
.ai-widget-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.ai-pulse {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}
.ai-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: pulsering 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes pulsering { 0% { opacity: 0.6; inset: -4px; } 100% { opacity: 0; inset: -20px; } }
.ai-widget-placeholder p { font-size: var(--text-sm); color: var(--color-text-muted); }
.ai-widget-placeholder strong { color: var(--color-text); }
.ai-prompt-example {
  font-style: italic;
  color: var(--color-text-faint) !important;
  font-size: var(--text-xs) !important;
}

/* === SOCIAL PROOF === */
.social-proof-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-surface-2);
}
.proof-header { margin-bottom: var(--space-10); }
.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.stars { display: flex; gap: 2px; }
.rating-summary strong { font-size: var(--text-lg); font-weight: 800; }
.rating-summary span { font-size: var(--text-sm); color: var(--color-text-muted); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-card--featured {
  background: var(--color-primary);
  border-color: transparent;
  grid-column: span 2;
}
.testimonial-card--featured .testimonial-stars { color: var(--color-accent); }
.testimonial-card--featured blockquote { color: rgba(255,255,255,0.9); }
.testimonial-card--featured .testimonial-author strong { color: white; }
.testimonial-card--featured .testimonial-author span { color: rgba(255,255,255,0.6); }
.testimonial-stars { color: #F59E0B; font-size: var(--text-lg); letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}
.testimonial-card--featured .author-avatar { background: rgba(255,255,255,0.15); color: white; }
.testimonial-author strong { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); display: block; }
.testimonial-author span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* === AGENTS SECTION === */
.agents-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.agents-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.agents-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.agents-content .section-heading { font-size: var(--text-2xl); }
.agents-content > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.agents-benefits { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }
.agent-benefit { display: flex; gap: var(--space-4); }
.benefit-icon {
  width: 32px;
  height: 32px;
  background: var(--color-success-light, #DCFCE7);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  flex-shrink: 0;
}
.agent-benefit strong { font-size: var(--text-sm); font-weight: 800; color: var(--color-text); display: block; margin-bottom: 2px; }
.agent-benefit p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; margin-bottom: 0; }

/* === BOOKING FORM === */
.book-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-primary);
}
.book-section .section-label { color: var(--color-accent); }
.book-section .section-heading { color: white; }
.book-section .section-intro { color: rgba(255,255,255,0.75); }
.book-inner { text-align: left; }
.booking-form {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-xl);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1.5;
}
.form-disclaimer a { color: var(--color-primary); }

/* === GUARANTEE === */
.guarantee-section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  background: var(--color-accent-light);
  border-top: 3px solid var(--color-accent);
}
.guarantee-inner {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.guarantee-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}
.guarantee-content h2 {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.guarantee-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.guarantee-content em { color: var(--color-text); font-style: italic; }
.guarantee-link { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }

/* === FOOTER === */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
  max-width: 36ch;
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  padding: var(--space-2);
}
.footer-social a:hover { color: white; }
.footer-links h4 {
  font-size: var(--text-sm);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.4); line-height: 1.5; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .standard-columns { grid-template-columns: 1fr; }
  .tech-inner { grid-template-columns: 1fr; }
  .agents-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: span 2; }
  .testimonial-card--featured { grid-column: span 1; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .phone-link { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 85vh; }
  .hero-heading { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-trust { gap: var(--space-4); }
  .trust-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .ai-inner { flex-direction: column; }
  .guarantee-inner { flex-direction: column; text-align: center; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card--featured { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-row: span 1; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; align-items: flex-start; }
  .booking-form { padding: var(--space-6); }
}


/* ============================================================
   GRETA VOICE WIDGET — Retell-powered
   bestinspectvoices.com
   ============================================================ */

/* Hero two-column layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-10);
  align-items: center;
  width: 100%;
}
.widget-tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: var(--space-2);
}

/* Card Shell */
.hero-widget {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.38), 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

/* Header */
.widget-header {
  background: var(--color-primary);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.widget-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.avatar-pulse {
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-accent);
  opacity: 0.65;
  animation: avatarPulse 2.5s ease-in-out infinite;
}
.avatar-pulse.speaking {
  border-color: #4ADE80;
  animation: avatarPulse 0.8s ease-in-out infinite;
  opacity: 1;
}
@keyframes avatarPulse {
  0%,100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.18); }
}
.widget-identity { flex: 1; min-width: 0; }
.widget-identity strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 800;
  color: white;
  line-height: 1.2;
}
.widget-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
  animation: statusBlink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.status-dot.calling { background: var(--color-accent); }
.status-dot.active  { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,0.4); animation: statusBlink 0.7s ease-in-out infinite; }
@keyframes statusBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.widget-badge-ai {
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Body */
.widget-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-bg);
  flex: 1;
}
.widget-intro {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Panels */
.widget-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: panelIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
.widget-panel--hidden { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* Big Voice Button */
.btn-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 800;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn-voice:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-voice.active {
  background: #DC2626;
}
.btn-voice.active:hover { background: #B91C1C; }

.voice-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-voice.active .voice-icon {
  background: rgba(255,255,255,0.2);
  animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Audio Visualizer */
.voice-visualizer {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  opacity: 0;
  transition: opacity 0.4s;
}
.voice-visualizer.active { opacity: 1; }
.voice-visualizer span {
  display: block;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: vizBar 0.8s ease-in-out infinite;
  min-height: 4px;
}
.voice-visualizer span:nth-child(1) { animation-delay: 0s;    height: 12px; }
.voice-visualizer span:nth-child(2) { animation-delay: 0.1s;  height: 20px; }
.voice-visualizer span:nth-child(3) { animation-delay: 0.2s;  height: 28px; }
.voice-visualizer span:nth-child(4) { animation-delay: 0.15s; height: 20px; }
.voice-visualizer span:nth-child(5) { animation-delay: 0.05s; height: 12px; }
@keyframes vizBar {
  0%,100% { transform: scaleY(0.3); }
  50%     { transform: scaleY(1); }
}
.voice-visualizer.speaking span { background: #4ADE80; }
.voice-visualizer.agent-speaking span { background: var(--color-accent); }

.voice-status {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin: 0;
}

/* Widget Footer */
.widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent-light);
  border-top: 1px solid rgba(232,160,32,0.2);
  flex-shrink: 0;
}
.widget-book-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
.widget-book-cta:hover { color: var(--color-accent-hover); text-decoration: none; }
.widget-disclaimer {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-widget-wrap { order: -1; }
}
@media (max-width: 480px) {
  .hero-widget { border-radius: var(--radius-lg); }
}


/* ============================================================
   FIXES — Pre-launch audit additions
   ============================================================ */

/* === SKIP NAVIGATION LINK (accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-2);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === FIELD ERROR MESSAGES (accessibility) === */
.field-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-error);
}
.field-error[hidden] { display: none; }

/* === FLOATING GRETA CTA === */
.greta-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.greta-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.greta-float-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26, 58, 92, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
}
.greta-float-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 58, 92, 0.45);
}
.greta-float-btn:active {
  transform: translateY(0);
}
.greta-float-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.greta-float-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid white;
  animation: float-pulse 2s ease-in-out infinite;
}
@keyframes float-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.25); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .greta-float-pulse { animation: none; }
}
@media (max-width: 480px) {
  .greta-float { bottom: var(--space-4); right: var(--space-4); }
}


/* === MOBILE HERO IMAGE FIX === */
/* On mobile the widget stacks first (order:-1). We add padding-top
   to the hero section so the background image shows above the widget. */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 52vw; /* Space above content for the image to show */
  }
  .hero-media img {
    object-position: 65% 8%; /* Show inspector face, not just roofline */
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10,22,45,0.20) 0%,
      rgba(10,22,45,0.45) 40%,
      rgba(10,22,45,0.90) 65%,
      rgba(10,22,45,0.97) 100%
    );
  }
  .hero-content {
    padding-top: var(--space-4);
    padding-bottom: var(--space-8);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 65vw; /* More space on smaller phones */
  }
  .hero-media img {
    object-position: 62% 5%;
  }
}
