/* ==========================================================================
   DualCraft Contractor — Core Design System
   --------------------------------------------------------------------------
   Contrast note: the brand accent #0e73e4 measures 4.22:1 on #0d0e12, which
   FAILS WCAG AA (4.5:1) for normal-size text. It is therefore used only for
   button fills (4.57:1 against white text), borders, and large display text
   where the 3:1 large-text threshold applies. --accent-text (#3d92f0, 6.03:1)
   is the accessible tint used for links and any small text.
   Champagne gold #d4af37 carries DARK text only (9.17:1); white on gold is
   2.10:1 and must never be used.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted variable fonts (no CDN — see plan §2)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/vendor/fonts/inter-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../assets/vendor/fonts/outfit-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/vendor/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand surfaces */
  --bg:              #0d0e12;
  --bg-alt:          #121418;
  --surface:         #161922;
  --surface-2:       #1a1d24;
  --surface-3:       #21252f;
  --line:            #2a2f3a;
  --line-soft:       #1f232c;

  /* Brand accent — fills / large text / borders only */
  --accent:          #0e73e4;
  --accent-deep:     #0066cc;
  --accent-press:    #0b5cb8;
  /* Accessible tint — links and small text (6.03:1 on --bg) */
  --accent-text:     #3d92f0;
  --accent-bright:   #5aa6f5;
  --cyan:            #00d2ff;

  /* Champagne gold — DARK text on this only */
  --gold:            #d4af37;
  --gold-bright:     #e8c860;

  /* Text ramp — every value verified >= 4.5:1 on --bg */
  --text:            #ffffff;   /* 19.29:1 */
  --text-2:          #c3cad6;   /* 11.70:1 */
  --text-3:          #a8b0c0;   /*  8.85:1 */
  --text-muted:      #8b94a8;   /*  6.34:1 */

  /* Status */
  --ok:              #34d399;
  --warn:            #fbbf24;
  --danger:          #f87171;

  /* Typography */
  --font-head:  'Outfit', 'Space Grotesk', system-ui, sans-serif;
  --font-mono-ish: 'Space Grotesk', ui-monospace, monospace;
  --font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem);
  --fs-h1:      clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  --fs-h2:      clamp(1.7rem, 1.25rem + 1.9vw, 2.7rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  --fs-sm:      0.9rem;
  --fs-xs:      0.8rem;

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Shape */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
  --shadow-accent: 0 8px 28px rgba(14,115,228,.32);

  /* Glass */
  --glass-bg:     rgba(22,25,34,.72);
  --glass-border: rgba(255,255,255,.08);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 140ms;
  --dur:      260ms;
  --dur-slow: 480ms;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --header-h: 72px;
  --topbar-h: 44px;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent-bright); }

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

strong { color: var(--text); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

/* --------------------------------------------------------------------------
   4. Accessibility primitives
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
/* Never remove focus outright — only swap the default for the custom ring */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--r-md);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

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

@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono-ish);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.center .eyebrow::before { display: none; }

.lede { font-size: 1.1rem; color: var(--text-3); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* White on --accent = 4.57:1 — passes AA */
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 10px 32px rgba(14,115,228,.42); }
.btn-primary:active { background: var(--accent-press); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); background: rgba(14,115,228,.1); }

.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

/* Dark text on gold = 9.17:1 — the only accessible pairing */
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-bright); color: var(--bg); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   7. Top contact bar — dual partner hotlines
   -------------------------------------------------------------------------- */
.topbar {
  background: linear-gradient(90deg, var(--accent-press), var(--accent) 55%, var(--accent-deep));
  color: #fff;
  font-size: var(--fs-sm);
}
.topbar-inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-2);
}
.topbar-contacts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; }
.topbar-person {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-person:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-person .who { font-weight: 800; }
.topbar-person .sep { opacity: .55; }
.topbar-note { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; opacity: .95; }

@media (max-width: 720px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
}

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,14,18,.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); background: rgba(13,14,18,.94); }

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-mono-ish);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a[aria-current='page'] { color: var(--accent-text); }

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

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: calc(var(--header-h) + var(--topbar-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: var(--sp-4); font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-actions .btn-quote { display: none; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(14,115,228,.20), transparent 62%),
    radial-gradient(700px 420px at 12% 92%, rgba(0,210,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}
/* Blueprint grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); } }

.hero h1 { font-size: var(--fs-display); font-weight: 900; margin-bottom: var(--sp-5); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--text-3); max-width: 58ch; margin-bottom: var(--sp-6); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
}
.trust-item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-3); font-weight: 600; }
.trust-item svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }

/* Live metric tiles */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-3); }
.metric {
  padding: var(--sp-5) var(--sp-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.metric-value {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
}
.metric-value .suffix { color: var(--accent-text); }
.metric-label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-md); }

.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  background: linear-gradient(140deg, rgba(14,115,228,.20), rgba(0,210,255,.09));
  border: 1px solid rgba(14,115,228,.30);
  border-radius: var(--r-md);
  color: var(--accent-text);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { margin-bottom: var(--sp-3); }
.service-card p { color: var(--text-3); font-size: .97rem; }

.service-features { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-5); }
.service-features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .92rem;
  color: var(--text-3);
  margin-bottom: var(--sp-2);
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.service-card .card-foot { margin-top: auto; padding-top: var(--sp-4); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: .92rem;
}
.service-link svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease); }
.service-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   11. Placeholder media — MUST stay visually obvious (see plan §5)
   -------------------------------------------------------------------------- */
.placeholder-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  background:
    repeating-linear-gradient(45deg,
      var(--surface-2) 0 14px,
      var(--surface-3) 14px 28px);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--text-muted);
  text-align: center;
  padding: var(--sp-5);
  overflow: hidden;
}
.placeholder-media .ph-icon { width: 40px; height: 40px; opacity: .5; margin: 0 auto var(--sp-3); }
.placeholder-media .ph-label {
  font-family: var(--font-mono-ish);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warn);
}
.placeholder-media .ph-desc { font-size: var(--fs-sm); margin-top: var(--sp-2); max-width: 34ch; }

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .28rem .7rem;
  background: rgba(251,191,36,.14);
  border: 1px solid rgba(251,191,36,.4);
  border-radius: var(--r-pill);
  color: var(--warn);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Inline marker for unresolved business facts (license #, hours, etc.) */
.needs-input {
  background: rgba(251,191,36,.14);
  border-bottom: 2px dotted var(--warn);
  color: var(--warn);
  font-weight: 700;
  padding: 0 .28em;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   12. Before / after slider
   -------------------------------------------------------------------------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  touch-action: pan-y;
  user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer > * { width: 100%; height: 100%; object-fit: cover; }
.ba-layer .placeholder-media { height: 100%; border: 0; border-radius: 0; }
/* The "after" layer is clipped by the handle position */
.ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 4px;
  margin-left: -2px;
  background: var(--accent);
  cursor: ew-resize;
  z-index: 3;
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}
.ba-range:focus-visible ~ .ba-handle::after { outline: 3px solid #fff; outline-offset: 3px; }

.ba-tag {
  position: absolute;
  top: var(--sp-4);
  z-index: 2;
  padding: .3rem .8rem;
  background: rgba(13,14,18,.82);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.ba-tag-before { left: var(--sp-4); }
.ba-tag-after  { right: var(--sp-4); }

/* --------------------------------------------------------------------------
   13. Portfolio filter + grid
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.filter-btn {
  padding: .55rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }

.project-card { padding: 0; overflow: hidden; }
.project-card .project-media { aspect-ratio: 4 / 3; }
.project-card .project-media .placeholder-media { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.project-body { padding: var(--sp-5); }
.project-cat {
  font-family: var(--font-mono-ish);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.project-card h3 { font-size: 1.15rem; margin: var(--sp-2) 0 var(--sp-2); }
.project-card p { font-size: .92rem; color: var(--text-3); margin: 0; }

.project-card[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Estimator
   -------------------------------------------------------------------------- */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--sp-6);
  padding: var(--sp-7);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; padding: var(--sp-5); } }

.est-field { margin-bottom: var(--sp-5); }
.est-field > label,
.est-legend {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.est-fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }

.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block;
  padding: .8rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip span:hover { border-color: var(--accent); color: var(--text); }
.chip input:checked + span {
  background: rgba(14,115,228,.16);
  border-color: var(--accent);
  color: var(--text);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

.est-result {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  align-self: start;
  padding: var(--sp-6);
  background: linear-gradient(160deg, rgba(14,115,228,.14), rgba(0,210,255,.05));
  border: 1px solid rgba(14,115,228,.3);
  border-radius: var(--r-lg);
  text-align: center;
}
.est-range {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: var(--sp-3) 0;
}
.est-caption { font-size: var(--fs-sm); color: var(--text-3); }

/* Non-negotiable: an instant price tool must disclaim itself (plan §5) */
.est-disclaimer {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: rgba(251,191,36,.09);
  border: 1px solid rgba(251,191,36,.28);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-3);
  text-align: left;
}
.est-disclaimer strong { color: var(--warn); }

/* --------------------------------------------------------------------------
   15. Process timeline
   -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-6); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: .55;
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.step p { font-size: .93rem; color: var(--text-3); }

/* --------------------------------------------------------------------------
   16. Testimonials
   -------------------------------------------------------------------------- */
.testimonial { display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 var(--sp-5); font-size: 1.02rem; color: var(--text-2); font-style: italic; }
.testimonial figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--sp-3); }
.t-avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  font-weight: 800;
  flex: none;
}
.t-name { font-weight: 700; color: var(--text); font-size: .95rem; }
.t-meta { font-size: var(--fs-xs); color: var(--text-muted); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); margin-bottom: var(--sp-3); }
.stars svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-full { grid-column: 1 / -1; }

.field label { font-size: .9rem; font-weight: 700; color: var(--text); }
.field .req { color: var(--accent-text); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }

.input, .textarea, .select {
  width: 100%;
  padding: .82rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,115,228,.24);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.8rem;
}
.select option { background: var(--surface-2); color: var(--text); }

.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248,113,113,.18);
}
.field-error { font-size: var(--fs-xs); font-weight: 600; color: var(--danger); min-height: 1em; }

/* Bot honeypot — hidden from humans, visible to naive scrapers (plan §4) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop {
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--accent); background: rgba(14,115,228,.07); }
.file-drop svg { width: 32px; height: 32px; color: var(--text-muted); margin-bottom: var(--sp-2); }
.file-drop .fd-main { font-weight: 700; color: var(--text); font-size: .95rem; }
.file-drop .fd-sub { font-size: var(--fs-xs); color: var(--text-muted); }
.file-list { list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
}
.file-list .fl-size { color: var(--text-muted); font-size: var(--fs-xs); }
.file-remove {
  background: none; border: 0; cursor: pointer;
  color: var(--danger); font-weight: 700; font-size: 1.1rem; line-height: 1;
  padding: var(--sp-1) var(--sp-2);
}

.form-note { font-size: var(--fs-xs); color: var(--text-muted); }
.form-status { padding: var(--sp-4); border-radius: var(--r-md); font-weight: 600; font-size: .95rem; }
.form-status.is-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; }
.form-status.is-ok    { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #6ee7b7; }
.form-status[hidden]  { display: none; }

/* --------------------------------------------------------------------------
   18. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); transition: transform var(--dur) var(--ease); }
.faq-q[aria-expanded='true'] svg { transform: rotate(45deg); }
.faq-a { padding: 0 0 var(--sp-5); color: var(--text-3); max-width: 72ch; }
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: var(--section-y);
  background: linear-gradient(140deg, var(--accent-press), var(--accent-deep) 60%, #0a4f9e);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-contacts { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; margin-top: var(--sp-6); }
.cta-person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--r-lg);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.cta-person:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.cta-person svg { width: 24px; height: 24px; flex: none; }
.cta-person .cp-name { font-weight: 800; font-size: .95rem; }
.cta-person .cp-num { font-size: 1.08rem; font-family: var(--font-mono-ish); font-weight: 700; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding-block: var(--sp-8) var(--sp-5); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a { color: var(--text-3); font-size: .93rem; }
.footer-col a:hover { color: var(--accent-text); }
.footer-about p { color: var(--text-3); font-size: .93rem; max-width: 42ch; }
.footer-contact { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-contact a { display: inline-flex; align-items: center; gap: var(--sp-2); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent-text); }
.license-line { font-family: var(--font-mono-ish); font-weight: 600; }

/* --------------------------------------------------------------------------
   21. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(700px 340px at 70% 0%, rgba(14,115,228,.16), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-4); list-style: none; padding: 0; }
.breadcrumb li { margin: 0; display: inline-flex; gap: var(--sp-2); align-items: center; }
.breadcrumb li + li::before { content: '/'; color: var(--line); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current='page'] { color: var(--text-3); }

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   23. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.flow > * + * { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .nav-toggle, .filter-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .section { break-inside: avoid; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
