/* =====================================================
   Septic Tank Pros — Landing Page Styles
   Rank-and-rent template for Next.js integration
   ===================================================== */

:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #E8F5E9;
  --orange: #FF6B35;
  --orange-dark: #E55A24;
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #8A8A8A;
  --line: #E0E0E0;
  --gold: #F5A623;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 78px; /* mobile sticky CTA clearance */
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ===== Top utility bar ===== */
.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
.topbar a { color: var(--white); font-weight: 600; }

/* ===== Header / Nav ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green);
  display: grid; place-items: center;
  color: var(--white);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-city { color: var(--green); }

.nav-links {
  display: none;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--green); text-decoration: none; }

.header-cta {
  display: flex; align-items: center; gap: 12px;
}
.header-phone {
  display: none;
  align-items: center; gap: 8px;
  font-weight: 700; color: var(--green); font-size: 1.05rem;
}
.header-phone svg { width: 18px; height: 18px; }

/* Mobile-only phone icon button — gives parity with "Free Quote" CTA */
.header-phone-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green);
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-phone-icon:hover { background: var(--green); color: var(--white); text-decoration: none; }
.header-phone-icon:active { transform: scale(0.95); }
.header-phone-icon svg { width: 22px; height: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  line-height: 1; letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 6px 20px rgba(255,107,53,0.45); }

.btn-secondary {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 720px);
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,94,32,0.92) 0%, rgba(46,125,50,0.78) 55%, rgba(0,0,0,0.65) 100%);
  z-index: -1;
}
body[data-hero-variant="urgent-red"] .hero::before {
  background: linear-gradient(135deg, rgba(183,28,28,0.92) 0%, rgba(211,47,47,0.78) 55%, rgba(0,0,0,0.7) 100%);
}
body[data-hero-variant="green-trust"] .hero::before {
  background: linear-gradient(135deg, rgba(27,94,32,0.95) 0%, rgba(46,125,50,0.85) 100%);
}

.hero-inner {
  padding: 80px 0 96px;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
body[data-hero-variant="urgent-red"] .hero-eyebrow {
  background: rgba(255,255,255,0.18);
}
body[data-hero-variant="urgent-red"] .hero-eyebrow .live-dot {
  background: #fde047;
}

.hero h1 {
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .accent { color: #FFD166; }
body[data-hero-variant="urgent-red"] .hero h1 .accent { color: #FFE8A3; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 580px;
  opacity: 0.95;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}
.hero-ctas .btn-primary {
  font-size: 1.15rem;
  padding: 18px 28px;
  box-shadow: 0 6px 24px rgba(255,107,53,0.55), 0 0 0 0 rgba(255,107,53,0.5);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  font-size: 0.92rem; font-weight: 500;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
}
.hero-trust-item svg {
  width: 18px; height: 18px;
  color: #4ade80;
  flex-shrink: 0;
}
body[data-hero-variant="urgent-red"] .hero-trust-item svg { color: #FFE8A3; }

/* Hero side card (visible only in green-trust variant on desktop) */
.hero-card { display: none; }

/* ===== Section base ===== */
.section {
  padding: clamp(56px, 9vw, 96px) 0;
}
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 12px;
  margin-bottom: 0;
}

.bg-white { background: var(--white); }
.bg-gradient-green {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--white) 100%);
}
.bg-green-dark {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
}
.bg-green-dark .section-eyebrow { color: #FFD166; }
.bg-green-dark h2, .bg-green-dark p { color: var(--white); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { color: var(--ink); }
.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--orange);
  margin-top: 8px;
}
.service-link:hover { text-decoration: none; gap: 10px; }
.service-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* ===== Trust / Reviews ===== */
.trust-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.reviews-carousel {
  position: relative;
}
.reviews-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.review {
  flex: 0 0 100%;
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars {
  display: flex; gap: 2px;
  color: var(--gold);
}
.review-stars svg { width: 18px; height: 18px; }
.review-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.review-text::before { content: '"'; }
.review-text::after { content: '"'; }
.review-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.95rem; }
.review-loc { font-size: 0.85rem; color: var(--ink-mute); }

.reviews-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  gap: 16px;
}
.reviews-dots { display: flex; gap: 8px; }
.reviews-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.reviews-dots button[aria-current="true"] {
  background: var(--green);
  transform: scale(1.3);
}
.reviews-arrows { display: flex; gap: 8px; }
.reviews-arrows button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  display: grid; place-items: center;
  transition: border-color 0.15s, color 0.15s;
}
.reviews-arrows button:hover { border-color: var(--green); color: var(--green); }
.reviews-arrows svg { width: 18px; height: 18px; }

.trust-side {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
}
.trust-side h3 { margin-bottom: 16px; }
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.trust-badge {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.trust-badge-num {
  font-size: 1.5rem; font-weight: 800;
  color: var(--green); line-height: 1;
  letter-spacing: -0.02em;
}
.trust-badge-lbl {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink-soft);
  margin-top: 4px;
}

.areas-title {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.areas-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; padding: 0;
  list-style: none;
}
.areas-list li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.areas-list li::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
}

.licenses {
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.licenses-item { display: flex; align-items: center; gap: 6px; }
.licenses-item svg { width: 16px; height: 16px; color: var(--green); }

/* ===== Lead Form ===== */
.form-section { background: var(--white); }
.form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.form-pitch h2 { margin-bottom: 16px; }
.form-pitch p { color: var(--ink-soft); font-size: 1.05rem; }
.form-checks {
  display: flex; flex-direction: column; gap: 12px;
  margin: 24px 0 0; padding: 0;
  list-style: none;
}
.form-checks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 500;
}
.form-checks svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--green);
  margin-top: 1px;
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.lead-form-head {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  margin: -28px -24px 24px;
  padding: 20px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.lead-form-head h3 { color: var(--white); margin-bottom: 4px; }
.lead-form-head p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin: 0; }

.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row .field { margin-bottom: 0; }
.field label {
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft);
}
.field label .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,125,50,0.12);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(211,47,47,0.1);
}
.field-error {
  font-size: 0.8rem;
  color: var(--red);
  display: none;
  margin-top: 2px;
}
.field.error .field-error { display: block; }

.form-submit {
  margin-top: 6px;
}
.form-submit.loading { pointer-events: none; opacity: 0.85; }
.form-submit.loading .btn-label { opacity: 0; }
.form-submit .spinner {
  display: none;
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.form-submit.loading .spinner { display: block; }
.form-submit .btn-icon { transition: transform 0.2s ease; }
.form-submit:hover .btn-icon { transform: translateX(3px); }

.form-foot {
  font-size: 0.8rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 14px;
}
.form-foot svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }

/* form-right desktop variant adjusts grid */
body[data-form-variant="form-right"] .form-wrap {
  grid-template-columns: 1fr;
}

/* ===== Before / After ===== */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.ba-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ba-pair-single {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  background: #1a1a1a;
}
.ba-pair-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-caption {
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.ba-caption strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 1rem; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item[open] {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(46,125,50,0.08);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 4px;
  margin-top: -4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-item .faq-body {
  padding: 0 20px 20px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: var(--white); }
.footer-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800;
  color: var(--white);
  margin: 10px 0;
}
.footer-phone svg { width: 24px; height: 24px; color: var(--orange); }
.footer-map {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6);
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter);
  display: flex; gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.sticky-cta .btn { flex: 1; padding: 14px 16px; font-size: 0.95rem; }
.sticky-cta .btn-primary {
  flex: 2;
  font-size: 1.05rem;
}
.sticky-cta .btn-primary svg { width: 18px; height: 18px; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--ink-mute);
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  animation: pop-in 0.4s 0.1s backwards cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-icon svg { width: 40px; height: 40px; }
.modal h3 { margin-bottom: 8px; font-size: 1.5rem; }
.modal p { color: var(--ink-soft); }
.modal-call {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px;
  padding: 14px 24px;
  background: var(--green-light);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}
.modal-call svg { width: 20px; height: 20px; }

/* ===== Animations ===== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,107,53,0.55), 0 0 0 0 rgba(255,107,53,0.5); }
  50% { box-shadow: 0 6px 24px rgba(255,107,53,0.55), 0 0 0 12px rgba(255,107,53,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.field.error input,
.field.error select { animation: shake 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .header-phone { display: inline-flex; }
  .header-phone-icon { display: none; }
  .nav-links { display: flex; }

  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  body[data-hero-variant="green-trust"] .hero-card {
    display: block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--white);
  }
  body[data-hero-variant="green-trust"] .hero-card h3 { color: var(--white); margin-bottom: 16px; font-size: 1.25rem; }
  body[data-hero-variant="green-trust"] .hero-card .hero-card-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  }
  body[data-hero-variant="green-trust"] .hero-card-stat { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.2); }
  body[data-hero-variant="green-trust"] .hero-card-num { font-size: 2rem; font-weight: 800; color: #FFD166; line-height: 1; }
  body[data-hero-variant="green-trust"] .hero-card-lbl { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-wrap { grid-template-columns: 1.4fr 1fr; }
  .form-wrap { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  body[data-form-variant="form-right"] .form-wrap { grid-template-columns: 1fr 1.1fr; }
  body[data-form-variant="form-right"] .form-pitch { order: 1; }
  body[data-form-variant="form-right"] .lead-form { order: 2; position: sticky; top: 88px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

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

