/* ═══════════════════════════════════════════════════════════════
   HVAC247PRO — Components
   ─────────────────────────────────────────────────────────────
   Component inventory (in build order):
     1.  .btn              — primary, secondary, ghost, emergency, premium, sizes, full-width
     2.  .phone-display    — CallRail-swappable single-text-node CTA
     3.  .badge / .chip    — pill, status, license, premium, emergency
     4.  .card             — base, service, location, blog, testimonial
     5.  .bento-tile       — asymmetric service tile w/ feature variants
     6.  .hero             — split layout, overlay, scanner accent
     7.  .nav-header       — sticky glass-effect header
     8.  .nav-drawer       — mobile slide-in
     9.  .footer           — multi-col with NAP, license, CTAs
     10. .trust-metric     — number + label + icon stat block
     11. .faq-item         — <details> based accordion
     12. .form-field       — input/textarea/select w/ label + error
     13. .testimonial      — quote card with author block
     14. .step             — process step with number badge
     15. .divider          — brand-styled section separator
     16. .surface-glass    — glassmorphism panel utility
   ═══════════════════════════════════════════════════════════════ */


/* ╔══════════════════════════════════════════════════════════╗
   ║  1. BUTTON                                                ║
   ╚══════════════════════════════════════════════════════════╝
   Examples:
     <a class="btn btn-emergency" href="tel:3464511559">Call 24/7</a>
     <button class="btn btn-premium btn-lg">Schedule Service</button>
     <a class="btn btn-secondary">Learn More</a>
     <button class="btn btn-ghost btn-sm">Cancel</button>
*/

.btn {
  --btn-bg: transparent;
  --btn-color: var(--text-primary);
  --btn-border: var(--border-default);
  --btn-bg-hover: rgba(244, 246, 251, 0.06);
  --btn-shadow: var(--shadow-sm);
  --btn-shadow-hover: var(--shadow-md);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);

  height: 2.875rem;          /* 46px — exceeds 44px touch target */
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);

  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;
  user-select: none;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--btn-shadow);
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-out);
}

.btn:hover {
  background: var(--btn-bg-hover);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: var(--ring-width) solid var(--ring-color);
  outline-offset: var(--ring-offset);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* Variants */

.btn-primary {
  --btn-bg: var(--color-navy-500);
  --btn-color: var(--text-primary);
  --btn-border: var(--color-navy-400);
  --btn-bg-hover: var(--color-navy-400);
}

.btn-secondary {
  --btn-bg: transparent;
  --btn-color: var(--text-primary);
  --btn-border: var(--border-strong);
  --btn-bg-hover: rgba(244, 246, 251, 0.06);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text-primary);
  --btn-border: transparent;
  --btn-bg-hover: rgba(244, 246, 251, 0.06);
  --btn-shadow: none;
  --btn-shadow-hover: none;
}

.btn-emergency {
  --btn-bg: var(--accent-emergency);
  --btn-color: var(--color-bone-50);
  --btn-border: var(--color-red-400);
  --btn-bg-hover: var(--accent-emergency-hover);
  --btn-shadow: 0 4px 16px -2px rgba(197, 40, 46, 0.45);
  --btn-shadow-hover: 0 8px 24px -4px rgba(197, 40, 46, 0.55), var(--glow-red);
}

.btn-premium {
  --btn-bg: var(--gradient-premium);
  --btn-color: var(--color-navy-950);
  --btn-border: var(--color-gold-300);
  --btn-bg-hover: linear-gradient(135deg, var(--color-gold-300) 0%, var(--color-gold-200) 100%);
  --btn-shadow: 0 4px 16px -2px rgba(245, 177, 0, 0.40);
  --btn-shadow-hover: 0 8px 24px -4px rgba(245, 177, 0, 0.55), var(--glow-gold);
}

/* Sizes */

.btn-sm {
  height: 2.25rem;
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  height: 3.375rem;
  padding: 0 var(--space-8);
  font-size: var(--text-base);
}

.btn-xl {
  height: 3.875rem;
  padding: 0 var(--space-10);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* Modifiers */

.btn-block,
.btn-full { width: 100%; }

.btn-icon-only {
  padding: 0;
  width: 2.875rem;
  aspect-ratio: 1;
}

/* Shimmer sweep on hover (compositor-friendly) */

.btn-shimmer::before {
  content: '';
  position: absolute;
  inset: -8px 0 -8px -120%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-14deg);
  transition: transform var(--duration-slower) var(--ease-expo-out);
  pointer-events: none;
}

.btn-shimmer:hover::before {
  transform: skewX(-14deg) translateX(220%);
}

@media (prefers-reduced-motion: reduce) {
  .btn-shimmer::before { transition: none; }
  .btn:hover { transform: none; }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  2. PHONE-DISPLAY (CallRail-swappable CTA)                ║
   ╚══════════════════════════════════════════════════════════╝
   CRITICAL: Anchor must be a single text node — no nested spans
   inside the <a>. swap.js regex matches text content directly.

   Example:
     <a class="phone-display" href="tel:3464511559" itemprop="telephone">(346) 451-1559</a>
     <a class="phone-display phone-display--emergency" href="tel:3464511559">(346) 451-1559</a>
*/

.phone-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);

  height: 2.875rem;
  padding: 0 var(--space-5) 0 var(--space-4);
  border-radius: var(--radius-pill);

  background: var(--gradient-premium);
  color: var(--color-navy-950);
  border: 1px solid var(--color-gold-300);

  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;

  box-shadow:
    0 4px 16px -2px rgba(245, 177, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-out),
    filter var(--duration-normal) var(--ease-out);
}

/* Phone icon prepended via CSS pseudo, NOT a nested span (CallRail safe) */
.phone-display::before {
  content: '';
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2a15.07 15.07 0 0 1-6.59-6.59l2.2-2.2c.28-.27.36-.66.25-1.01A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2a15.07 15.07 0 0 1-6.59-6.59l2.2-2.2c.28-.27.36-.66.25-1.01A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/></svg>") center / contain no-repeat;
  flex-shrink: 0;
}

.phone-display:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px -4px rgba(245, 177, 0, 0.55),
    var(--glow-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.phone-display:active { transform: translateY(0); }

.phone-display:focus-visible {
  outline: var(--ring-width) solid var(--ring-color);
  outline-offset: var(--ring-offset);
}

/* Emergency variant (red) — for 24/7 strip / urgent CTAs */
.phone-display--emergency {
  background: var(--gradient-emergency);
  color: var(--color-bone-50);
  border-color: var(--color-red-400);
  box-shadow:
    0 4px 16px -2px rgba(197, 40, 46, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.phone-display--emergency:hover {
  box-shadow:
    0 8px 24px -4px rgba(197, 40, 46, 0.55),
    var(--glow-red),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Large prominent version (footer / hero) */
.phone-display--lg {
  height: 3.5rem;
  padding: 0 var(--space-7) 0 var(--space-6);
  font-size: var(--text-xl);
}

.phone-display--lg::before { width: 1.3rem; height: 1.3rem; }

/* Minimal text-only variant (inline copy) */
.phone-display--inline {
  display: inline;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--accent-premium);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.phone-display--inline::before { display: none; }
.phone-display--inline:hover { filter: none; transform: none; color: var(--accent-premium-hover); }


/* ╔══════════════════════════════════════════════════════════╗
   ║  3. BADGE / CHIP                                          ║
   ╚══════════════════════════════════════════════════════════╝
   Example:
     <span class="badge badge-license">TX License TACLB00105442E</span>
     <span class="badge badge-emergency"><span class="dot"></span>24/7 Available</span>
     <span class="chip">Spring, TX</span>
*/

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 1.75rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: rgba(244, 246, 251, 0.04);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  white-space: nowrap;
}

.badge--premium {
  background: rgba(245, 177, 0, 0.10);
  color: var(--color-gold-200);
  border-color: var(--border-accent-gold);
}

.badge--emergency {
  background: rgba(197, 40, 46, 0.12);
  color: var(--color-red-200);
  border-color: var(--border-accent-red);
}

.badge--license {
  background: rgba(245, 177, 0, 0.08);
  color: var(--color-gold-200);
  border-color: var(--border-accent-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: 0.7rem;
}

.badge--success {
  background: rgba(47, 170, 106, 0.12);
  color: #84d4ad;
  border-color: rgba(47, 170, 106, 0.32);
}

/* Pulse dot for "live / available" badges */
.badge .dot,
.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}

.dot--pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  animation: dot-pulse 1.8s var(--ease-out) infinite;
}

@keyframes dot-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  70%  { transform: scale(2.1);  opacity: 0; }
  100% { transform: scale(2.1);  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dot--pulse::after { animation: none; opacity: 0; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 2rem;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(244, 246, 251, 0.05);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

a.chip:hover {
  background: rgba(245, 177, 0, 0.08);
  color: var(--accent-premium);
  border-color: var(--border-accent-gold);
}

.chip--active {
  background: var(--gradient-premium);
  color: var(--color-navy-950);
  border-color: var(--color-gold-300);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  4. CARD                                                  ║
   ╚══════════════════════════════════════════════════════════╝
   Examples:
     <article class="card">...</article>
     <article class="card card-service">...</article>
     <article class="card card-location">...</article>
*/

.card {
  position: relative;
  padding: var(--space-7);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  overflow: hidden;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-expo-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.card-interactive:hover,
a.card:hover,
.card-link:hover {
  border-color: var(--border-accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-flush  { padding: 0; }
.card-tight  { padding: var(--space-5); }
.card-loose  { padding: var(--space-10); }

.card-bordered { border-color: var(--border-default); }

.card-on-light {
  background: #ffffff;
  border-color: var(--border-on-light);
  color: var(--text-on-light);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.06);
}

.card-on-light.card-interactive:hover {
  border-color: var(--color-navy-300);
  box-shadow: 0 16px 32px -8px rgba(10, 22, 40, 0.18);
}

/* Service card — icon + title + desc + arrow */
.card-service {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 18rem;
}

.card-service .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: rgba(245, 177, 0, 0.10);
  border: 1px solid var(--border-accent-gold);
  color: var(--accent-premium);
}

.card-service .card-icon svg { width: 1.5rem; height: 1.5rem; }

.card-service h3 {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
}

.card-service .card-link-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-premium);
  letter-spacing: var(--tracking-wide);
}

.card-service .card-link-arrow::after {
  content: '→';
  transition: transform var(--duration-normal) var(--ease-expo-out);
}

.card-service:hover .card-link-arrow::after { transform: translateX(4px); }

/* Location card — city + zip count + arrow */
.card-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}

.card-location .loc-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--text-primary);
}

.card-location .loc-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.card-location .loc-count {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(245, 177, 0, 0.10);
  color: var(--color-gold-200);
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
}

/* Blog card — image top, content below */
.card-blog {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.card-blog .card-blog-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-navy-700);
}

.card-blog .card-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-expo-out);
}

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

.card-blog .card-blog-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}

.card-blog .card-blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.card-blog h3 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

@media (prefers-reduced-motion: reduce) {
  .card-blog:hover .card-blog-image img { transform: none; }
  .card-interactive:hover,
  a.card:hover { transform: none; }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  5. BENTO TILE (asymmetric service grid tile)             ║
   ╚══════════════════════════════════════════════════════════╝
   Use INSIDE .bento (grid). Variants: .bento-tile-feature/.wide/.tall.

   Example:
     <div class="bento">
       <a class="bento-tile bento-tile-feature">...</a>
       <a class="bento-tile">...</a>
       <a class="bento-tile bento-tile-wide">...</a>
     </div>
*/

.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  isolation: isolate;
  color: var(--text-primary);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-expo-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.bento-tile:hover {
  border-color: var(--border-accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.bento-tile .bento-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bento-tile .bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-expo-out);
}

.bento-tile:hover .bento-bg img {
  opacity: 0.55;
  transform: scale(1.04);
}

.bento-tile .bento-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 26, 42, 0.55) 0%,
    rgba(6, 15, 28, 0.94) 100%
  );
}

.bento-tile .bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(245, 177, 0, 0.14);
  border: 1px solid var(--border-accent-gold);
  color: var(--accent-premium);
}

.bento-tile .bento-icon svg { width: 1.35rem; height: 1.35rem; }

.bento-tile h3 {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
}

.bento-tile-feature h3 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tighter);
}

.bento-tile p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

.bento-tile .bento-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-premium);
}

.bento-tile .bento-cta::after {
  content: '→';
  transition: transform var(--duration-normal) var(--ease-expo-out);
}

.bento-tile:hover .bento-cta::after { transform: translateX(4px); }


/* ╔══════════════════════════════════════════════════════════╗
   ║  6. HERO                                                  ║
   ╚══════════════════════════════════════════════════════════╝
   Example:
     <section class="hero hero-split">
       <div class="hero-content">...</div>
       <div class="hero-visual">...</div>
     </section>
*/

.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 9vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20));
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}

/* Ambient blur circles */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
}

.hero-glow--gold {
  background: radial-gradient(circle, var(--color-gold-400) 0%, transparent 70%);
  width: 32rem;
  height: 32rem;
  top: -6rem;
  right: -8rem;
}

.hero-glow--red {
  background: radial-gradient(circle, var(--color-red-500) 0%, transparent 70%);
  width: 24rem;
  height: 24rem;
  bottom: -4rem;
  left: -6rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-14));
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 7fr 5fr; gap: clamp(var(--space-12), 5vw, var(--space-16)); }
}

.hero-content { display: flex; flex-direction: column; gap: var(--space-6); }

.hero-content h1 {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: 0.94;
}

.hero-content .hero-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 36ch;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-xl);
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* Scanner line (vertical sweep on visual) */
.hero-scanner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-scanner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 177, 0, 0.55) 30%,
    rgba(197, 40, 46, 0.55) 70%,
    transparent 100%
  );
  animation: scanner-sweep 4.5s var(--ease-linear) infinite;
}

@keyframes scanner-sweep {
  0%   { transform: translateY(-10%); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(120%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scanner::after { animation: none; opacity: 0; }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  7. NAV HEADER                                            ║
   ╚══════════════════════════════════════════════════════════╝
*/

.nav-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.nav-header--scrolled {
  background: rgba(6, 15, 28, 0.92);
  border-bottom-color: var(--border-default);
}

.nav-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 4.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.nav-brand-tagline {
  font-size: 0.66rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-premium);
  margin-top: 0.35em;
}

/* Desktop nav — pill */
.nav-primary {
  display: none;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  background: rgba(244, 246, 251, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(20px);
}

@media (min-width: 1024px) {
  .nav-primary { display: inline-flex; }
}

.nav-primary a {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  background: rgba(244, 246, 251, 0.08);
  color: var(--text-primary);
}

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

.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* Hamburger toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(244, 246, 251, 0.04);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

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

.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; }

.nav-toggle-bars span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-expo-out), opacity var(--duration-normal) var(--ease-out);
}

[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ╔══════════════════════════════════════════════════════════╗
   ║  8. NAV DRAWER (mobile)                                   ║
   ╚══════════════════════════════════════════════════════════╝
*/

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
  background: var(--color-navy-950);
  padding: var(--space-6);
  overflow-y: auto;
  flex-direction: column;
}

.nav-drawer[data-open="true"] { display: flex; }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.nav-drawer-links a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  9. FOOTER                                                ║
   ╚══════════════════════════════════════════════════════════╝
*/

.site-footer {
  position: relative;
  background: var(--color-navy-950);
  color: var(--text-secondary);
  padding-block: var(--space-20) var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold-400) 50%,
    transparent 100%
  );
  opacity: 0.55;
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-12); }
}

.footer-brand-col h3,
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover { color: var(--accent-premium); }

.footer-nap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}

.footer-nap-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

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


/* ╔══════════════════════════════════════════════════════════╗
   ║ 10. TRUST METRIC                                          ║
   ╚══════════════════════════════════════════════════════════╝
   Example:
     <div class="trust-metric">
       <div class="trust-metric-num">15<span>+</span></div>
       <div class="trust-metric-label">Years Serving Houston</div>
     </div>
*/

.trust-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

.trust-metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
  background: var(--gradient-num);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.trust-metric-num span {
  font-size: 0.55em;
  color: var(--accent-premium);
  -webkit-text-fill-color: var(--accent-premium);
  margin-left: 0.1em;
}

.trust-metric-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Trust strip — divider between metrics on desktop */
.trust-strip {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .trust-strip .trust-metric + .trust-metric { border-left: 1px solid var(--border-subtle); }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║ 11. FAQ                                                   ║
   ╚══════════════════════════════════════════════════════════╝
*/

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.faq-item[open],
.faq-item:hover { border-color: var(--border-accent-gold); }

.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-chev {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent-premium);
  transition: transform var(--duration-normal) var(--ease-expo-out);
}

.faq-item[open] .faq-chev { transform: rotate(180deg); }

.faq-item > div {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║ 12. FORM FIELD                                            ║
   ╚══════════════════════════════════════════════════════════╝
*/

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.field-label--required::after {
  content: '*';
  color: var(--accent-emergency);
  margin-left: 0.25em;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(244, 246, 251, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.field-input:hover,
.field-textarea:hover,
.field-select:hover { border-color: var(--border-strong); }

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--accent-premium);
  background: rgba(244, 246, 251, 0.06);
  box-shadow: 0 0 0 3px rgba(245, 177, 0, 0.18);
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-tertiary); }

.field-textarea { min-height: 7rem; resize: vertical; }

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23f4f6fb' stroke-width='1.5' stroke-linecap='round'><path d='M1 1.5L6 6.5L11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
}

.field-help {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.field-error {
  font-size: var(--text-xs);
  color: var(--color-red-300);
  font-weight: var(--weight-semibold);
}

.field--error .field-input,
.field--error .field-textarea,
.field--error .field-select {
  border-color: var(--accent-emergency);
}

/* Honeypot — hide off-screen, NOT display:none (bots skip display:none) */
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Status message */
.form-status {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.form-status--success {
  background: rgba(47, 170, 106, 0.10);
  border-color: rgba(47, 170, 106, 0.45);
  color: #a4dabe;
}

.form-status--error {
  background: rgba(197, 40, 46, 0.10);
  border-color: var(--border-accent-red);
  color: var(--color-red-200);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║ 13. TESTIMONIAL                                           ║
   ╚══════════════════════════════════════════════════════════╝
*/

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-7);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-3);
  left: var(--space-6);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-premium);
  opacity: 0.32;
}

.testimonial-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent-premium);
}

.testimonial-stars svg { width: 1rem; height: 1rem; }

.testimonial-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-500);
  color: var(--accent-premium);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║ 14. STEP (process step)                                   ║
   ╚══════════════════════════════════════════════════════════╝
*/

.step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.step:hover { border-color: var(--border-accent-gold); }

.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
}

.step-num--gold { background: var(--gradient-premium); color: var(--color-navy-950); }
.step-num--navy { background: var(--color-navy-500); color: var(--accent-premium); border: 1px solid var(--border-accent-gold); }
.step-num--red  { background: var(--gradient-emergency); color: var(--color-bone-50); }

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

.step-body h3 {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.step-body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║ 15. DIVIDER                                               ║
   ╚══════════════════════════════════════════════════════════╝
   Example:
     <div class="divider" role="presentation">
       <span class="divider-bar"></span>
       <span class="divider-mark"></span>
       <span class="divider-bar"></span>
     </div>
*/

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-block: var(--space-section-sm);
  padding-inline: var(--space-gutter);
}

.divider-bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-accent-gold) 50%,
    transparent 100%
  );
}

.divider-mark {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-premium);
  box-shadow: 0 0 16px rgba(245, 177, 0, 0.55);
}

/* Glow line — for between sections */
.divider-glow {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold-400) 30%,
    var(--color-red-400) 70%,
    transparent 100%
  );
  opacity: 0.4;
  margin-block: var(--space-12);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║ 16. SURFACE-GLASS (utility panel)                         ║
   ╚══════════════════════════════════════════════════════════╝
*/

.surface-glass {
  background: rgba(244, 246, 251, 0.045);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
}

.surface-glass--strong {
  background: rgba(13, 26, 42, 0.62);
  backdrop-filter: blur(22px) saturate(160%);
}

.surface-glass--pill {
  background: rgba(244, 246, 251, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

/* ── Hairline border helpers ────────────────────────────────── */
.hairline           { border: 1px solid var(--border-default); }
.hairline-subtle    { border: 1px solid var(--border-subtle); }
.hairline-gold      { border: 1px solid var(--border-accent-gold); }
.hairline-emergency { border: 1px solid var(--border-accent-red); }

/* ── Lift on hover (interaction utility) ────────────────────── */

.lift {
  transition:
    transform var(--duration-normal) var(--ease-expo-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .lift:hover { transform: none; }
}
