/* ==========================================================================
   ClearFlow Plumbing Co. — styles (mobile-first, no build step)
   Design tokens per PRD.md §4
   ========================================================================== */

:root {
  --navy: #1E3A5F;
  --navy-deep: #16293F;
  --ink-muted: #55677D;
  --blue: #4FA8D8;
  --panel: #E9F2FB;
  --panel-deep: #D9E9F7;
  --amber: #F2C14E;
  --amber-hover: #E9B32F;
  --white: #FFFFFF;
  --error: #D9534F;

  --radius-panel: 24px;
  --radius-card: 20px;
  --radius-field: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 6px 24px rgba(30, 58, 95, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(30, 58, 95, 0.14);

  --panel-pad: 28px;
  --font: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 36px;
  scroll-margin-top: 96px;
}

/* ---------- Shared components ---------- */

.panel {
  position: relative;
  border-radius: var(--radius-panel);
  padding: var(--panel-pad);
}

.panel--blue { background: var(--panel); }

.panel--navy {
  background: var(--navy);
  color: var(--white);
}

.badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.badge::before {
  content: "—";
  margin-right: 10px;
}

.badge--light { color: var(--panel-deep); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-sub {
  margin-top: 12px;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--amber {
  background: var(--amber);
  color: var(--navy-deep);
}

.btn--amber:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 179, 47, 0.35);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.06rem;
}

.ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Doodles */

.doodle {
  position: absolute;
  color: var(--navy);
  pointer-events: none;
}

.doodle--sparkle { width: 34px; height: 34px; }
.doodle--dashes { width: 34px; height: 30px; }

.doodle--arrow {
  position: static;
  width: 72px;
  height: 58px;
  flex: 0 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #E4EDF6;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--navy);
  display: flex;
  flex-direction: column;
}

.logo-text small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav {
  display: none;
  margin-left: auto;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--blue); }

.btn--call {
  margin-left: auto;
  padding: 11px 18px;
  white-space: nowrap;
}

.call-full { display: none; }
.call-short { display: inline; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2.6px;
  width: 100%;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Mobile nav drawer */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 20px 20px;
  background: var(--white);
  border-bottom: 1px solid #E4EDF6;
  box-shadow: var(--shadow-card);
}

.nav.is-open .nav-link {
  padding: 13px 4px;
  border-bottom: 1px solid #EEF4FA;
  font-size: 1.05rem;
}

.nav.is-open .nav-link:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */

.hero { padding-block: 20px 36px; }

.hero-panel {
  padding: 36px var(--panel-pad) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hero-copy { padding-bottom: 8px; }

.hero-sub {
  margin-top: 18px;
  max-width: 460px;
  font-size: 1.06rem;
  color: var(--ink-muted);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-trust {
  margin-top: 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-trust a {
  color: var(--navy);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-photo {
  position: relative;
  align-self: end;
  margin-inline: auto;
  width: min(98%, 456px);
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(30, 58, 95, 0.18));
}

/* Photo showcase: circle backdrop + floating trust badges (mobile & tablet) */

.hero-photo-ring,
.hero-float { display: none; }

@media (max-width: 899px) {
  .hero-photo { width: min(100%, 420px); }

  .hero-photo-ring {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -22%;
    width: 104%;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--panel-deep);
  }

  .hero-photo-ring::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 2px dashed rgba(30, 58, 95, 0.28);
    border-radius: 50%;
    animation: ring-spin 40s linear infinite;
  }

  .hero-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--navy);
    animation: floaty 3.4s ease-in-out infinite;
  }

  .hero-float--rating {
    left: 0;
    top: 34%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .hero-float--sameday {
    right: 0;
    bottom: 15%;
    animation-delay: 1.7s;
  }
}

@keyframes ring-spin {
  to { rotate: 1turn; }
}

.hero-float-num {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-float-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-float-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 0.7rem;
}

.hero-sparkle-1 { top: 26px; right: 26px; }
.hero-sparkle-2 { top: 66px; right: 74px; width: 22px; height: 22px; }
.hero-dashes { left: 26px; bottom: 26px; display: none; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid #E4EDF6;
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--panel);
  color: var(--navy);
  margin-bottom: 16px;
}

.icon-box svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

/* ---------- Why Choose Us ---------- */

.why-panel { padding-block: 40px; }

.why-sparkle { top: 24px; right: 24px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-item { text-align: center; }

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.why-icon svg { width: 28px; height: 28px; }

.why-item h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.why-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 260px;
  margin-inline: auto;
}

/* ---------- How It Works ---------- */

.steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 26px;
  max-width: 960px;
  margin-inline: auto;
}

.step {
  position: relative;
  text-align: center;
  flex: 1;
  padding: 30px 22px 26px;
  background: var(--white);
  border: 1px solid #E4EDF6;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  margin-bottom: 12px;
}

.step-icon svg { width: 26px; height: 26px; }

.step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.step-link {
  display: none;
  flex: 0 0 76px;
  width: 76px;
  height: 40px;
  align-self: center;
  color: var(--navy);
}

/* ---------- Work Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid #E4EDF6;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
}

.ba-half {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ba-half img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  background: #E3E9F0;
  border-right: 2px solid var(--white);
}

.ba-after {
  background: var(--panel-deep);
}

.ba-tag {
  z-index: 1;
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-muted);
}

.ba-tag--after {
  background: var(--amber);
  color: var(--navy-deep);
}

.gallery-card figcaption {
  padding: 14px 18px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

/* ---------- Testimonials ---------- */

.reviews-panel { padding-block: 40px; }

.reviews-sparkle { top: 24px; left: 24px; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: var(--amber);
}

.review-card blockquote {
  color: var(--navy-deep);
  font-size: 0.98rem;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--navy);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.avatar--blue { background: var(--blue); }
.avatar--amber { background: var(--amber); color: var(--navy-deep); }

/* ---------- Service Area ---------- */

.area-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin-inline: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--panel);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
}

.chip .ico { width: 17px; height: 17px; color: var(--blue); }

.area-note {
  margin-top: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-muted);
}

.area-note a {
  color: var(--navy);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Final CTA ---------- */

.cta-panel { padding-block: 40px; }

.cta-sparkle-1 { top: 24px; right: 28px; color: var(--amber); }
.cta-dashes { bottom: 24px; left: 24px; color: var(--amber); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.cta-copy h2 { color: var(--white); }

.cta-sub {
  margin-top: 12px;
  color: var(--panel-deep);
  max-width: 400px;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 800;
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-phone:hover { color: var(--amber-hover); }

.cta-phone .ico { width: 28px; height: 28px; }

.cta-hours {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--panel-deep);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--panel-deep);
}

.field .optional {
  font-weight: 600;
  opacity: 0.7;
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid transparent;
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--navy-deep);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--amber);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9AAABC;
}

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

.field-error {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFB4B0;
}

.form-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-arrow {
  color: var(--amber);
  transform: scaleY(-1) rotate(10deg);
}

.form-success {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
}

.form-success svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  color: var(--amber);
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-success p { color: var(--panel-deep); }

.form-success a {
  color: var(--amber);
  font-weight: 800;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #E4EDF6;
  padding: 44px 0 28px;
  margin-top: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.footer-col p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer-col a {
  color: var(--navy);
  font-weight: 700;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #EEF4FA;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-demo-note { opacity: 0.75; }

/* ---------- Mobile sticky call bar ---------- */

.mobile-call-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(22, 41, 63, 0.28);
  transform: translateY(calc(100% + 20px));
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1), visibility 0.35s;
}

@media (max-width: 767px) {
  .mobile-call-bar { display: flex; }

  .mobile-call-bar.is-visible {
    transform: none;
    visibility: visible;
  }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Small phones: full-width CTAs (the doodle arrows need room to breathe) */
@media (max-width: 479px) {
  .hero-cta .doodle--arrow,
  .form-cta .doodle--arrow { display: none; }

  .hero-cta .btn,
  .form-cta .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding-inline: 20px;
    font-size: 1rem;
  }
}

/* Very small phones: icon-only call button in the header */
@media (max-width: 379px) {
  .call-short { display: none; }

  .btn--call { padding: 11px 13px; }

  .btn--call .ico { width: 22px; height: 22px; }
}

/* Phones: smaller corner doodles so they don't crowd the badges,
   and room under the footer for the sticky call bar */
@media (max-width: 639px) {
  .doodle--sparkle { width: 24px; height: 24px; }

  .hero-sparkle-1 { top: 14px; right: 14px; }
  .hero-sparkle-2 { top: 44px; right: 48px; width: 15px; height: 15px; }
  .why-sparkle { top: 12px; right: 12px; }
  .reviews-sparkle { top: 12px; left: 12px; }
  .cta-sparkle-1 { top: 12px; right: 14px; }
}

@media (max-width: 767px) {
  .site-footer { padding-bottom: 96px; }
}

@media (min-width: 640px) {
  :root { --panel-pad: 40px; }

  .container { padding-inline: 28px; }
  .section { padding-block: 44px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .call-full { display: inline; }
  .call-short { display: none; }

  .hero-dashes { display: block; }
}

@media (min-width: 900px) {
  :root {
    --radius-panel: 32px;
  }

  .section { padding-block: 52px; }

  .nav {
    display: flex;
    gap: 30px;
    margin-inline: auto;
  }

  .burger { display: none; }
  .btn--call { margin-left: 0; }

  .hero-panel { padding: 40px 56px 0; }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 32px;
    align-items: end;
  }

  .hero-copy {
    align-self: center;
    padding-bottom: 40px;
  }

  .reviews-grid { grid-template-columns: repeat(3, 1fr); }

  .steps { flex-direction: row; align-items: stretch; gap: 0; }
  .step-link { display: block; margin-top: 30px; }

  .cta-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
  }

  .cta-panel { padding: 56px; }
  .why-panel, .reviews-panel { padding: 48px 56px; }

  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Animations & micro-interactions
   ========================================================================== */

/* ---------- Scroll reveal (elements get [data-reveal] in HTML or via JS) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--rd, 0s);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ---------- First-load hero sequence ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes photo-in {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}

.js .hero-copy > * {
  animation: rise-in 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.js .hero-copy .badge  { animation-delay: 0.05s; }
.js .hero-copy h1      { animation-delay: 0.14s; }
.js .hero-copy .hero-sub   { animation-delay: 0.24s; }
.js .hero-copy .hero-cta   { animation-delay: 0.34s; }
.js .hero-copy .hero-trust { animation-delay: 0.46s; }

.js .hero-photo {
  animation: photo-in 0.85s cubic-bezier(0.22, 0.9, 0.3, 1) 0.3s both;
}

.js .hero-cta .doodle--arrow path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw-stroke 1.1s ease 0.85s forwards;
}

.js .hero-cta .doodle--arrow path:last-child {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation-duration: 0.3s;
  animation-delay: 1.75s;
}

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ring-in {
  from { opacity: 0; transform: translateX(-50%) scale(0.7); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

@media (max-width: 899px) {
  .js .hero-photo-ring {
    animation: ring-in 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) 0.55s both;
  }

  .js .hero-float {
    animation: badge-pop 0.55s cubic-bezier(0.5, 1.6, 0.4, 1) both,
               floaty 3.4s ease-in-out infinite;
  }

  .js .hero-float--rating { animation-delay: 1.05s, 2.4s; }
  .js .hero-float--sameday { animation-delay: 1.35s, 3.2s; }
}

/* ---------- Ambient doodles ---------- */

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(0.72) rotate(18deg); opacity: 0.45; }
}

.doodle--sparkle { animation: twinkle 3.6s ease-in-out infinite; }
.hero-sparkle-2  { animation-delay: 1.2s; }
.why-sparkle     { animation-delay: 0.6s; }
.reviews-sparkle { animation-delay: 1.8s; }
.cta-sparkle-1   { animation-delay: 0.9s; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.form-arrow { animation: floaty 3.5s ease-in-out infinite; }

/* ---------- Header ---------- */

.site-header { transition: box-shadow 0.25s ease; }

.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(30, 58, 95, 0.09); }

.logo-mark { transition: transform 0.25s ease; }

.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }

.nav-link { position: relative; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* ---------- Buttons & phone links ---------- */

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

@keyframes ring-wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}

.btn--call:hover .ico,
.cta-phone:hover .ico,
.mobile-call-bar:hover .ico { animation: ring-wiggle 0.6s ease; }

/* ---------- Service cards (What We Do) ---------- */

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card .icon-box {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .icon-box {
  background: var(--navy);
  color: var(--amber);
  transform: translateY(-3px) rotate(-5deg);
}

.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--navy-deep);
}

.card-tag--navy {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Why Us (Licensed & Insured) ---------- */

.why-dashes {
  left: 26px;
  bottom: 26px;
  display: none;
}

@media (min-width: 640px) {
  .why-dashes { display: block; }
}

.why-item { transition: transform 0.25s ease; }

.why-item:hover { transform: translateY(-4px); }

.why-icon {
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.why-item:hover .why-icon {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(30, 58, 95, 0.22);
}

.why-icon::after {
  content: "✓";
  position: absolute;
  top: -4px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.2);
  transform: scale(1);
}

.js .why-item[data-reveal] .why-icon::after {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.5, 1.6, 0.4, 1) 0.45s;
}

.js .why-item.revealed .why-icon::after { transform: scale(1); }

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px dashed rgba(30, 58, 95, 0.25);
  text-align: center;
}

@media (min-width: 900px) {
  .why-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-num {
  display: block;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.stat-star {
  color: var(--amber);
  -webkit-text-stroke: 1px var(--navy);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* ---------- How It Works ---------- */

.js .step[data-reveal] .step-num {
  transform: translateX(-50%) scale(0);
  transition: transform 0.45s cubic-bezier(0.5, 1.6, 0.4, 1) 0.35s;
}

.js .step.revealed .step-num { transform: translateX(-50%) scale(1); }

@keyframes dash-flow {
  to { stroke-dashoffset: -9; }
}

.step-link path:first-child { animation: dash-flow 1.4s linear infinite; }

.step-icon { transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

.step:hover .step-icon {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------- Gallery ---------- */

.ba-half img { transition: transform 0.5s ease; }

.gallery-card:hover .ba-half img { transform: scale(1.06); }

.ba-tag { transition: transform 0.3s ease; }

.gallery-card:hover .ba-tag { transform: translateY(-2px); }

/* ---------- Reviews: stars pop in one by one ---------- */

.js .review-card[data-reveal] .stars svg {
  opacity: 0;
  transform: scale(0) rotate(-30deg);
  transition: transform 0.45s cubic-bezier(0.5, 1.6, 0.4, 1), opacity 0.3s ease;
}

.js .review-card.revealed .stars svg {
  opacity: 1;
  transform: none;
}

.js .review-card.revealed .stars svg:nth-child(1) { transition-delay: 0.25s; }
.js .review-card.revealed .stars svg:nth-child(2) { transition-delay: 0.33s; }
.js .review-card.revealed .stars svg:nth-child(3) { transition-delay: 0.41s; }
.js .review-card.revealed .stars svg:nth-child(4) { transition-delay: 0.49s; }
.js .review-card.revealed .stars svg:nth-child(5) { transition-delay: 0.57s; }

.review-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Service area chips ---------- */

.chip { transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }

.chip:hover {
  transform: translateY(-3px);
  background: var(--panel-deep);
  box-shadow: var(--shadow-card);
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-4px); }
}

.chip:hover .ico { animation: pin-bounce 0.5s ease; }

/* ---------- Reduced motion ---------- */

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
