/* ============================================================
   G.Papa Electrical — premium dark/amber theme
   ============================================================ */

:root {
  /* Surfaces — deep navy charcoal */
  --bg:        #0A0C12;
  --bg-2:      #0D1018;
  --surface:   #13161F;
  --surface-2: #181C27;
  --line:      rgba(255, 255, 255, 0.075);
  --line-2:    rgba(255, 255, 255, 0.13);

  /* Ink */
  --ink:       #F3F0E8;   /* warm white */
  --muted:     #A7AAB6;
  --muted-2:   #74778450;

  /* Amber — the live filament. Driven by Tweaks. */
  --amber:        #F7A93B;
  --amber-bright: #FFCC6E;
  --amber-deep:   #C9701A;
  --amber-ink:    #1A1206;  /* text on amber */
  --glow:         252, 169, 53;  /* rgb for rgba() glows */

  /* Type */
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 520px at 78% -8%, rgba(var(--glow), 0.13), transparent 60%),
    radial-gradient(680px 600px at 8% 18%, rgba(var(--glow), 0.06), transparent 55%);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin: 18px 0 0;
}
.sec-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: var(--amber-ink);
  box-shadow: 0 8px 26px -8px rgba(var(--glow), 0.55),
              inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -8px rgba(var(--glow), 0.7),
              inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--glow), 0.55);
  background: rgba(var(--glow), 0.07);
}
.btn-wa {
  background: #1FB855;
  color: #07210F;
  box-shadow: 0 8px 26px -8px rgba(31,184,85,0.5);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(31,184,85,0.65); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--amber-bright), var(--amber) 45%, var(--amber-deep));
  box-shadow: 0 6px 20px -6px rgba(var(--glow), 0.6),
              inset 0 1px 0 rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.mark svg { width: 22px; height: 22px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-txt span {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--amber); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 18px 22px;
  background: rgba(10,12,18,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 14px 6px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  font-size: 14px;
  margin-bottom: 28px;
}
.hero-rating .stars { display: flex; gap: 2px; }
.hero-rating .stars svg { width: 16px; height: 16px; color: var(--amber); }
.hero-rating b { font-family: var(--display); }
.hero-rating span { color: var(--muted); }

.hero h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  letter-spacing: -0.035em;
}
.hero h1 .amber {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tag {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--muted);
  max-width: 540px;
  margin: 26px 0 0;
  text-wrap: pretty;
}
.hero-tag b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 26px;
  margin-top: 40px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { font-family: var(--display); font-size: 22px; }
.hero-meta span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* Hero visual — glowing filament card */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8);
}
.hero-card image-slot { width: 100%; height: 100%; }
.hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,12,18,0.85));
  pointer-events: none;
}
.hero-card-tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
}
.hero-card-tag .pin {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(var(--glow), 0.16);
  border: 1px solid rgba(var(--glow), 0.4);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-card-tag .pin svg { width: 18px; height: 18px; color: var(--amber); }
.hero-card-tag b { font-family: var(--display); font-size: 15px; display: block; }
.hero-card-tag span { font-size: 12.5px; color: var(--muted); }

.hero-spark {
  position: absolute;
  top: -22px; right: -16px;
  z-index: 3;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.7);
}
.hero-spark .bolt {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--amber-bright), var(--amber-deep));
  box-shadow: 0 0 18px rgba(var(--glow), 0.6);
}
.hero-spark .bolt svg { width: 18px; height: 18px; color: var(--amber-ink); }
.hero-spark b { font-family: var(--display); font-size: 14px; display: block; line-height: 1.2; }
.hero-spark span { font-size: 12px; color: var(--muted); }

/* Background decorative filament */
.hero-filament {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   SERVICES  — signature wire-current animation
   ============================================================ */
.services { padding: 110px 0 120px; }
.svc-stage {
  position: relative;
  margin-top: 12px;
}
.svc-wire-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
/* Wire SVG pieces (built/animated by app.js) */
.svc-wire-base {
  fill: none;
  stroke: rgba(var(--glow), 0.18);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.svc-wire-trail {
  fill: none;
  stroke: var(--amber-bright);
  stroke-width: 3.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(var(--glow), 0.95))
          drop-shadow(0 0 14px rgba(var(--glow), 0.55));
}
.svc-wire-head {
  fill: var(--amber-bright);
  filter: drop-shadow(0 0 9px rgba(var(--glow), 1))
          drop-shadow(0 0 20px rgba(var(--glow), 0.7));
}

.svc-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.svc-row {
  display: flex;
  width: 100%;
}
.svc-row.left  { justify-content: flex-start; }
.svc-row.right { justify-content: flex-end; }

.svc-card {
  position: relative;
  width: min(50%, 460px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform .5s var(--ease), border-color .5s var(--ease),
              box-shadow .5s var(--ease), background .5s var(--ease);
  /* --power 0..1 driven by JS as the current passes */
  --power: 0;
  transform: translateY(calc(var(--power) * -6px)) scale(calc(1 + var(--power) * 0.018));
  border-color: color-mix(in srgb, var(--amber) calc(var(--power) * 70%), var(--line));
  box-shadow:
    0 18px 40px -28px rgba(0,0,0,0.7),
    0 0 calc(var(--power) * 46px) rgba(var(--glow), calc(var(--power) * 0.5)),
    inset 0 0 calc(var(--power) * 60px) rgba(var(--glow), calc(var(--power) * 0.07));
}
.svc-node {
  position: absolute;
  top: 34px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--amber) calc(35% + var(--power)*65%), #444);
  box-shadow: 0 0 calc(6px + var(--power) * 22px) rgba(var(--glow), calc(0.25 + var(--power)*0.75));
  z-index: 3;
  transition: border-color .3s, box-shadow .3s;
}
.svc-row.left  .svc-node { right: -8px; }
.svc-row.right .svc-node { left: -8px; }
.svc-node::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--amber);
  opacity: calc(0.2 + var(--power) * 0.8);
  box-shadow: 0 0 calc(var(--power) * 14px) var(--amber);
}

.svc-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(var(--glow), calc(0.08 + var(--power) * 0.14));
  border: 1px solid color-mix(in srgb, var(--amber) calc(var(--power)*60%), var(--line-2));
  transition: background .5s, border-color .5s;
}
.svc-icon svg {
  width: 25px; height: 25px;
  color: color-mix(in srgb, var(--amber-bright) calc(40% + var(--power)*60%), var(--muted));
  transition: color .5s;
}
.svc-card h3 {
  font-size: 20px;
  margin-bottom: 7px;
  color: color-mix(in srgb, #fff calc(var(--power)*100%), var(--ink));
}
.svc-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.svc-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--amber) calc(var(--power)*100%), var(--muted-2));
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { padding: 30px 0 110px; }
.reviews-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 52px;
}
.google-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.google-badge .g {
  font-family: var(--display); font-weight: 700; font-size: 26px;
}
.google-badge .meta b { font-family: var(--display); font-size: 20px; }
.google-badge .meta .stars { display: flex; gap: 2px; margin: 2px 0; }
.google-badge .meta .stars svg { width: 15px; height: 15px; color: var(--amber); }
.google-badge .meta span { font-size: 12.5px; color: var(--muted); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s;
}
.review:hover { transform: translateY(-4px); border-color: rgba(var(--glow), 0.35); }
.review .stars { display: flex; gap: 3px; margin-bottom: 18px; }
.review .stars svg { width: 17px; height: 17px; color: var(--amber); }
.review .quote-mark {
  font-family: var(--display); font-size: 56px; line-height: 0.4;
  color: rgba(var(--glow), 0.25); height: 26px;
}
.review p {
  font-size: 16px; line-height: 1.6; color: #DCDAD2;
  margin: 0 0 24px; flex: 1; text-wrap: pretty;
}
.review .who { display: flex; align-items: center; gap: 13px; }
.review .who .ava {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--amber-ink);
  background: radial-gradient(120% 120% at 30% 20%, var(--amber-bright), var(--amber-deep));
  flex-shrink: 0;
}
.review .who b { font-family: var(--display); font-size: 15.5px; display: block; }
.review .who span { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   ABOUT GERALD
   ============================================================ */
.about { padding: 40px 0 110px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo image-slot {
  width: 100%;
  aspect-ratio: 16 / 9; /* Updated layout container size to match landscape image */
  border-radius: 22px;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
}
.about-photo .badge {
  position: absolute;
  bottom: -22px; right: -18px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.8);
}
.about-photo .badge .num {
  font-family: var(--display); font-weight: 700; font-size: 30px;
  background: linear-gradient(180deg, var(--amber-bright), var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-photo .badge span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.about h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 0; }
.about .lead {
  font-size: 21px; color: var(--ink); font-weight: 500;
  margin: 24px 0 0; text-wrap: pretty;
}
.about .lead .amber { color: var(--amber); }
.about p { color: var(--muted); font-size: 16.5px; margin: 18px 0 0; text-wrap: pretty; }
.about-traits {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;
}
.trait {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.trait svg { width: 16px; height: 16px; color: var(--amber); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 40px 0 100px; }
.contact-shell {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(var(--glow), 0.1), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { font-size: clamp(30px, 4vw, 44px); margin: 16px 0 0; }
.contact-info > p { color: var(--muted); font-size: 17px; margin: 16px 0 34px; }
.contact-rows { display: flex; flex-direction: column; gap: 14px; }
.crow {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s, background .25s, transform .25s;
}
a.crow:hover { border-color: rgba(var(--glow), 0.5); background: rgba(var(--glow), 0.06); transform: translateX(3px); }
.crow .ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(var(--glow), 0.1);
  border: 1px solid rgba(var(--glow), 0.28);
}
.crow .ic svg { width: 21px; height: 21px; color: var(--amber); }
.crow .lbl { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.crow b { display: block; font-family: var(--display); font-size: 17px; }
.crow.wa .ic { background: rgba(31,184,85,0.14); border-color: rgba(31,184,85,0.4); }
.crow.wa .ic svg { color: #36d46e; }

.contact-map {
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 180px;
  position: relative;
  background: var(--surface-2);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9); }

/* Form */
.quote-form {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px;
}
.quote-form h3 { font-size: 23px; }
.quote-form .sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--muted); margin-bottom: 7px; letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6a6d78; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.16);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A7AAB6' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field.bad input, .field.bad select, .field.bad textarea { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,0.15); }
.field .err { color: #ff8a8d; font-size: 12.5px; margin-top: 6px; display: none; }
.field.bad .err { display: block; }
.quote-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; animation: pop .5s var(--ease); }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--amber-bright), var(--amber-deep));
  box-shadow: 0 0 30px rgba(var(--glow), 0.5);
}
.form-success .check svg { width: 32px; height: 32px; color: var(--amber-ink); }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); margin: 10px 0 0; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  background: var(--bg-2);
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 30px;
}
.footer .brand-txt b { font-size: 19px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--body); font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 15px; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-col {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--muted);
}
.footer-bottom .stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.footer-bottom .stars svg { width: 13px; height: 13px; color: var(--amber); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
/* Fallback: if the environment freezes transitions, show content instantly */
.no-reveal-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .nav-phone { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-photo { max-width: 420px; }
  .contact-shell { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .review-grid { grid-template-columns: 1fr; }
  /* Wire collapses to a left rail */
  .svc-row.left, .svc-row.right { justify-content: flex-start; }
  .svc-card { width: 100%; margin-left: 26px; }
  .svc-row.left .svc-node, .svc-row.right .svc-node { left: -34px; right: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 130px 0 70px; }
  .hero-spark { display: none; }
  .hero-meta { gap: 18px; }
  .contact-shell { padding: 26px 20px; }
  .quote-form { padding: 24px 20px; }
  .nav-inner { padding: 14px 18px; }
  .svc-card { padding: 22px 20px; gap: 15px; }
  .footer-grid { gap: 26px; }
}