/* ============================================================
   AB&H Roofing & Construction — stylesheet
   Design: modern, warm-industrial (slate + amber), responsive
   ============================================================ */

:root {
  /* Palette */
  --ink-950: #070c16;
  --ink-900: #0b1220;
  --ink-800: #111a2e;
  --ink-700: #1c2942;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --white: #ffffff;

  /* Gradients */
  --grad-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --grad-text: linear-gradient(120deg, #fbbf24, #fb923c);
  --grad-hero: linear-gradient(180deg, rgba(7,12,22,0.72) 0%, rgba(7,12,22,0.55) 45%, rgba(7,12,22,0.85) 100%);

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.06), 0 4px 12px rgba(11,18,32,0.05);
  --shadow-md: 0 8px 24px rgba(11,18,32,0.10);
  --shadow-lg: 0 24px 60px rgba(11,18,32,0.18);
  --shadow-accent: 0 10px 30px rgba(245,158,11,0.35);

  /* Layout */
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Author display rules must never defeat the hidden attribute */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--amber-400); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.h3 { font-size: 1.35rem; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-sub {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--slate-500);
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 118px) 0; }
.section.alt { background: var(--slate-50); }

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn-accent {
  background: var(--grad-accent);
  color: var(--ink-900);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(245,158,11,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--ink-900);
  color: var(--ink-900);
  background: transparent;
}
.btn-outline:hover {
  background: var(--ink-900);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--amber-500);
  transition: gap 0.2s var(--ease), color 0.2s;
}
.text-link:hover { gap: 10px; color: var(--amber-400); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(7,12,22,0.35);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  color: var(--amber-500);
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(245,158,11,0.4));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:not(.btn):not(.nav-phone)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.main-nav a:not(.btn):not(.nav-phone):hover { color: #fff; }
.main-nav a:not(.btn):not(.nav-phone):hover::after { width: 100%; }
.main-nav a.active:not(.btn):not(.nav-phone) { color: var(--amber-400); }
.main-nav a.active:not(.btn):not(.nav-phone)::after { width: 100%; }

.nav-phone {
  color: var(--amber-400) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem !important;
}
.nav-cta { padding: 11px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=2000&q=80") center 30% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(245,158,11,0.14), transparent 60%),
    radial-gradient(50% 40% at 85% 80%, rgba(249,115,22,0.10), transparent 60%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.hero-content .eyebrow { color: var(--amber-400); }
.hero-content .eyebrow::before { background: var(--grad-accent); }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 540px;
  font-size: 1.13rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.hero-badges svg { color: var(--amber-400); }

/* Floating offer card */
.hero-card {
  position: relative;
  background: rgba(17,26,46,0.66);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-accent);
  color: var(--ink-900);
  box-shadow: var(--shadow-accent);
  margin-bottom: 20px;
}

.hero-card h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.hero-card p {
  color: rgba(255,255,255,0.78);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--amber-400);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--ink-900);
  position: relative;
  z-index: 2;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 90% at 10% 50%, rgba(245,158,11,0.10), transparent 60%),
    radial-gradient(40% 90% at 90% 50%, rgba(249,115,22,0.08), transparent 60%);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 46px 0;
}

.stat {
  text-align: center;
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-aa { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.02em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(245,158,11,0.12);
  color: var(--amber-600);
  margin-bottom: 20px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--grad-accent);
  color: var(--ink-900);
  transform: scale(1.06) rotate(-3deg);
}

.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { font-size: 0.93rem; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.why-media { position: relative; }
.why-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}

.why-badge {
  position: absolute;
  right: -18px;
  bottom: 34px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
.why-badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-badge span { font-size: 0.82rem; color: rgba(255,255,255,0.75); line-height: 1.3; }

.why-content .h2 { margin-bottom: 18px; }
.why-content > p { margin-bottom: 30px; }

.check-list {
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.check-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--amber-500);
  background: rgba(245,158,11,0.14);
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}
.check-list strong {
  display: block;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.check-list span { font-size: 0.94rem; color: var(--slate-500); }

.why-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.why-note { font-size: 0.92rem; font-weight: 600; color: var(--slate-500); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 34px 26px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--slate-100);
  -webkit-text-stroke: 1px var(--slate-200);
  line-height: 1;
  transition: color 0.3s;
}
.step:hover .step-num {
  color: rgba(245,158,11,0.15);
  -webkit-text-stroke: 1px rgba(245,158,11,0.35);
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--ink-900);
  color: var(--amber-400);
  margin-bottom: 22px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.step:hover .step-icon {
  background: var(--grad-accent);
  color: var(--ink-900);
}

.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  color: var(--slate-500);
}
.rating-summary strong { color: var(--ink-900); }

.stars {
  color: var(--amber-500);
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 4px 26px;
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }

.t-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.t-stars { color: var(--amber-500); font-size: 1.2rem; letter-spacing: 3px; }

.t-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.45;
  max-width: 640px;
}
.t-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-card figcaption strong { color: var(--ink-900); font-size: 1rem; }
.t-card figcaption span { font-size: 0.85rem; color: var(--slate-400); }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.car-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--ink-900);
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.car-btn:hover {
  background: var(--ink-900);
  color: var(--amber-400);
  border-color: var(--ink-900);
  transform: translateY(-2px);
}

.dots { display: flex; gap: 8px; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--slate-200);
  transition: all 0.3s var(--ease);
  padding: 0;
}
.dot.active {
  background: var(--grad-accent);
  width: 26px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areas-panel {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.areas-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 100% at 85% 0%, rgba(245,158,11,0.14), transparent 60%),
    radial-gradient(40% 100% at 10% 100%, rgba(249,115,22,0.10), transparent 60%);
}

.area-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-chips li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  cursor: default;
}
.area-chips li:hover {
  background: var(--grad-accent);
  color: var(--ink-900);
  border-color: transparent;
  transform: translateY(-3px);
}

.areas-note {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  color: rgba(255,255,255,0.75);
  font-size: 0.96rem;
  text-align: center;
  flex-wrap: wrap;
}
.areas-note svg { color: var(--amber-400); flex: none; }
.areas-note strong { color: #fff; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-content .h2 { margin-bottom: 20px; }
.about-content > p { margin-bottom: 16px; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 34px;
}
.about-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.about-facts li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.about-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.about-quote {
  position: absolute;
  left: -20px;
  bottom: -26px;
  right: 24px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--amber-500);
}
.about-quote p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
}
.about-quote span {
  font-size: 0.82rem;
  color: var(--amber-400);
  font-weight: 600;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.faq-head { position: sticky; top: 110px; }
.faq-head .section-sub { margin: 14px 0 26px; }
.faq-call { margin-top: 8px; }

.faq-list { display: grid; gap: 14px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] {
  border-color: rgba(245,158,11,0.5);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink-900);
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245,158,11,0.14);
  color: var(--amber-600);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--grad-accent);
  color: var(--ink-900);
}

.faq-item p {
  padding: 0 24px 22px;
  font-size: 0.96rem;
  color: var(--slate-500);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  background: var(--ink-900);
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 100% at 15% 0%, rgba(245,158,11,0.16), transparent 55%),
    radial-gradient(45% 100% at 90% 100%, rgba(249,115,22,0.13), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 40 L40 0 L80 40 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text .eyebrow { color: var(--amber-400); }
.cta-text h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.cta-text p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact-info .h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 30px; }

.contact-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.contact-cards li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.contact-cards li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(245,158,11,0.4);
}

.c-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(245,158,11,0.13);
  color: var(--amber-600);
}
.contact-cards strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.contact-cards a, .contact-cards span {
  font-size: 0.93rem;
  color: var(--slate-500);
}
.contact-cards a:hover { color: var(--amber-600); }

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  transition: all 0.3s var(--ease);
}
.socials a:hover {
  background: var(--ink-900);
  color: var(--amber-400);
  border-color: var(--ink-900);
  transform: translateY(-2px);
}
.social-note { font-size: 0.85rem; color: var(--slate-400); }

/* Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-accent);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 26px;
}
.contact-form h3 span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--slate-50);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--slate-500);
  text-align: center;
}
.form-note a { color: var(--amber-600); font-weight: 600; }

.form-success {
  margin-top: 16px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-950);
  color: rgba(255,255,255,0.7);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 56px;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand > p {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-col a, .footer-col span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
  transition: color 0.2s, transform 0.2s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--amber-400); transform: translateX(3px); }
.footer-nextdoor { font-weight: 600; color: var(--amber-400) !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer-meta { color: rgba(255,255,255,0.35); }

/* ============================================================
   FLOATING UI
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: var(--ink-900);
  color: var(--amber-400);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--grad-accent);
  color: var(--ink-900);
}

.mobile-call {
  display: none;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .why-grid, .about-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .why-media { max-width: 560px; }
  .about-quote { left: 14px; right: 14px; }
  .faq-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(11,18,32,0.98);
    backdrop-filter: blur(16px);
    padding: 22px 24px 30px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    padding: 13px 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; justify-content: center; }

  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-card { padding: 22px 18px; }
  .service-card h3 { font-size: 1rem; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .about-facts { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .why-badge { right: 8px; bottom: 20px; padding: 14px 16px; }
  .why-badge strong { font-size: 1.3rem; }
  .t-card { padding: 30px 24px; }
  .areas-panel { padding: 30px 22px; }
  .hero-card { padding: 26px 22px; }

  /* Floating call bar on mobile */
  .mobile-call {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--grad-accent);
    color: var(--ink-900);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    padding: 15px 34px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-accent);
    animation: floatCard 3.5s ease-in-out infinite;
  }
  .back-to-top { bottom: 84px; left: 16px; right: auto; width: 44px; height: 44px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   AI LEAD ASSISTANT — chat widget
   ============================================================ */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--grad-accent);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fabIn 0.6s var(--ease) 0.4s both;
}
@keyframes fabIn {
  from { opacity: 0; transform: translateY(24px) scale(0.6); }
  to   { opacity: 1; transform: none; }
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab:active { transform: translateY(0) scale(0.97); }
.chat-fab svg {
  width: 28px;
  height: 28px;
  grid-area: 1 / 1;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.chat-fab .chat-fab-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.chat-fab.open .chat-fab-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.chat-fab.open .chat-fab-close { opacity: 1; transform: none; }

.chat-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  animation: badgePop 0.4s var(--ease);
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 129;
  width: min(390px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 132px));
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatIn 0.35s var(--ease);
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.chat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ink-900);
  color: #fff;
}
.chat-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
}
.chat-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad-accent);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-accent);
}
.chat-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.7);
}
.chat-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}
.chat-close {
  margin-left: auto;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.24); transform: rotate(90deg); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-50);
  overscroll-behavior: contain;
}

.msg { max-width: 84%; animation: msgIn 0.3s var(--ease); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.msg p {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-800);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.bot { align-self: flex-start; }
.msg.bot p {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
.msg.user { align-self: flex-end; }
.msg.user p {
  background: var(--grad-accent);
  color: var(--ink-900);
  font-weight: 600;
  border-bottom-right-radius: 5px;
}

.msg.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
.msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate-400);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 4px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  max-height: 118px;
  overflow-y: auto;
}
.chip {
  border: 1.5px solid var(--slate-200);
  background: #fff;
  color: var(--ink-900);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover {
  border-color: var(--amber-500);
  color: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(245,158,11,0.55);
  background: rgba(245,158,11,0.08);
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--slate-100);
}
.chat-input-row input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--slate-50);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--amber-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.chat-input-row button {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--grad-accent);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.chat-input-row button:hover { transform: scale(1.07); box-shadow: var(--shadow-accent); }
.chat-input-row button:active { transform: scale(0.95); }

/* ============================================================
   LEAD INBOX — owner dashboard
   ============================================================ */
.leads-overlay {
  position: fixed;
  inset: 0;
  z-index: 139;
  background: rgba(7,12,22,0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.leads-dashboard {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  width: min(460px, 100vw);
  background: #fff;
  box-shadow: -24px 0 60px rgba(7,12,22,0.3);
  display: flex;
  flex-direction: column;
  animation: drawerIn 0.35s var(--ease);
}
@keyframes drawerIn {
  from { transform: translateX(100%); }
  to   { transform: none; }
}

.leads-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  background: var(--ink-900);
  color: #fff;
  flex-wrap: wrap;
}
.leads-head h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}
.leads-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-400);
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.leads-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.leads-btn {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.leads-btn:hover { background: rgba(255,255,255,0.2); }
.leads-btn.danger { color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.leads-btn.danger:hover { background: rgba(239,68,68,0.18); }
.leads-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.leads-close:hover { background: rgba(255,255,255,0.24); transform: rotate(90deg); }

.leads-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-50);
  overscroll-behavior: contain;
}

.lead-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  animation: msgIn 0.3s var(--ease);
}
.lead-card.is-new {
  border-left-color: var(--amber-500);
  box-shadow: var(--shadow-sm);
}
.lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.lead-top strong {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: 1rem;
}
.lead-new-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  background: rgba(245,158,11,0.14);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.lead-time { font-size: 0.74rem; color: var(--slate-400); }
.lead-phone {
  display: block;
  font-weight: 700;
  color: var(--amber-600);
  font-size: 1.02rem;
  margin-bottom: 8px;
  width: fit-content;
}
.lead-phone:hover { color: var(--amber-500); text-decoration: underline; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lead-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  color: var(--amber-600);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.lead-tag.town { background: var(--slate-100); color: var(--slate-500); }
.lead-tag.src { background: var(--ink-900); color: var(--amber-400); }
.lead-details {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-bottom: 12px;
  line-height: 1.5;
}
.lead-actions { display: flex; gap: 8px; }
.lead-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--grad-accent);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.lead-call:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.lead-del {
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  background: transparent;
  border: 1px solid #fecaca;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.lead-del:hover { background: #fef2f2; border-color: #f87171; }

.leads-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--slate-400);
}
.leads-empty svg { color: var(--slate-200); margin-bottom: 14px; }
.leads-empty strong { display: block; color: var(--ink-900); font-family: var(--font-display); margin-bottom: 4px; }
.leads-empty p { font-size: 0.9rem; }
.leads-note {
  margin: 0;
  padding: 12px 18px;
  font-size: 0.75rem;
  color: var(--slate-400);
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--slate-100);
}

.leads-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.leads-link:hover { color: var(--amber-400); }
.leads-link svg { flex: none; }

/* Chat & dashboard — responsive */
@media (max-width: 640px) {
  .chat-fab { right: 16px; bottom: 84px; width: 56px; height: 56px; }
  .chat-fab svg { width: 25px; height: 25px; }
  .chat-panel {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: auto;
    height: auto;
  }
  .leads-dashboard { width: 100vw; }
  .leads-head { padding: 16px 18px; }
  .leads-body { padding: 14px; }
  body.chat-open { overflow: hidden; }
  body.chat-open .mobile-call { display: none; }
}
