/* ==========================================================================
   Xclusive Painting Company — shared styles
   Palette matched to the Xclusive Painting Company mascot logo:
   near-black base, lime green CTAs, yellow-gold accents
   ========================================================================== */

:root {
  --bg: #0f0f10;
  --panel: #17171a;
  --panel-2: #1f1f23;
  --black: #0a0a0b;
  --green: #44d62c;
  --green-dark: #35b120;
  --yellow: #f0b429;
  --white: #ffffff;
  --text: #e8e8ea;
  --text-soft: #9aa1a9;
  --line: #28282d;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

/* Heavy uppercase grotesque, matching the brand's headline lockup.
   Archivo Black is wide and heavy, so it needs tight leading and negative
   tracking to keep multi-line headings from feeling loose. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
  /* Evens out the line lengths and stops a single orphan word
     dangling on the last line of a heading. */
  text-wrap: balance;
}

/* h1/h2 go all-caps like the artwork; h3 (small card titles) stays sentence
   case, where all-caps would hurt readability. */
h1, h2 { text-transform: uppercase; }

h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.2rem; }


.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 620px;
  color: var(--text-soft);
  margin-top: 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(68, 214, 44, 0.3);
}
.btn-green:hover { background: var(--green-dark); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #1c1c20; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}

.brand-logo {
  height: 64px;
  width: auto;
}

.footer-about .brand-logo { height: 110px; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-phone svg { display: inline; vertical-align: -3px; margin-right: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(10, 10, 11, 0.96) 0%, rgba(17, 17, 19, 0.88) 55%, rgba(17, 17, 19, 0.65) 100%),
    repeating-linear-gradient(45deg, #1a1a1e 0 22px, #111113 22px 44px);
  color: var(--white);
  padding: clamp(1.4rem, 2.6vw, 1.9rem) 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, rgba(10, 10, 11, 0.92) 0%, rgba(17, 17, 19, 0.72) 55%, rgba(17, 17, 19, 0.45) 100%);
}

/* Respect reduced-motion, but keep the first frame visible rather than blanking it */
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; }
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 214, 44, 0.16), transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.hero .container { text-align: center; }

.hero-logo {
  height: clamp(150px, 17vw, 235px);
  width: auto;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

/* NOTE: there is deliberately no `.hero h1` rule here any more.
   The hero's h1 is now the green pill (.hero-badge), and a `.hero h1`
   font-size would beat `.hero-badge` on specificity (0,1,1 vs 0,1,0) and
   blow the pill up to headline size. The lockup below is a plain <img>. */

.hero-lockup {
  display: block;
  width: min(415px, 100%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55));
}

.hero-sub {
  margin: 0.9rem auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(68, 214, 44, 0.12);
  border: 1px solid rgba(68, 214, 44, 0.45);
  color: var(--green);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  /* This element is the page <h1>, so it inherits the global heading rules
     (Archivo Black, balanced wrapping, 1.08 leading). Those are neutralised
     here so the pill renders byte-identical to when it was a <div>. The
     font-size / weight / colour / tracking above already win on specificity
     (class 0,1,0 beats type 0,0,1); these three do not, so they're explicit. */
  font-family: var(--font-body);
  line-height: 1;
  text-wrap: wrap;
}

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green);
}
.trust-item span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: #131315; }

/* ---------- Centred sections (all breakpoints) ---------- */
.reviews-section .container,
#services .container,
#process .container,
.areas-section .container { text-align: center; }

.reviews-section .section-intro,
#services .section-intro,
#process .section-intro { margin-inline: auto; }

.areas-wrap { justify-content: center; }

/* "Why We Started" — only the label and headline centre; the body copy,
   founder quote and photo stay left-aligned. */
.story-grid > div:first-child > .eyebrow { display: block; text-align: center; }
.story-grid > div:first-child > h2 { text-align: center; }

/* Card interiors keep their own alignment on desktop */
@media (min-width: 641px) {
  #services .service-card,
  .reviews-section .testimonial-card { text-align: left; }
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.story-quote {
  border-left: 4px solid var(--green);
  padding-left: 1.4rem;
  margin-top: 1.6rem;
  font-size: 1.05rem;
  color: var(--text-soft);
  font-style: italic;
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.7rem;
}

.owner-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
  border: 2px solid var(--green);
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top; /* source is already a tight square crop */
}

.owner-meta strong { display: block; color: var(--white); font-size: 1rem; }
.owner-meta span { display: block; color: var(--text-soft); font-size: 0.9rem; }

.story-card {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.story-card h3 { color: var(--green); font-size: 1.5rem; margin-bottom: 1rem; }
.story-card ul { list-style: none; }
.story-card li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.story-card li:last-child { border-bottom: none; }
.story-card li::before { content: "✓"; color: var(--green); font-weight: 800; }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Full-bleed photo behind each service card, kept very dark so text stays legible.
   Works for either an <img class="service-bg"> or the inline SVG placeholder. */
.service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  z-index: -1;
  transition: opacity 0.18s ease;
}
.service-card:hover .service-bg { opacity: 0.22; }
.section-alt .service-card { background: var(--panel-2); }

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(68, 214, 44, 0.13);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--green);
}

.service-card p { color: var(--text-soft); font-size: 0.93rem; margin-top: 0.5rem; }

/* ---------- Process ---------- */

.process-section { background: var(--black); color: var(--white); }
.process-section h2 { color: var(--white); }
.process-section .section-intro { color: rgba(255, 255, 255, 0.7); }

/* Horizontal step flow: 6 steps separated by arrows, left to right on desktop */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--green);
  line-height: 1;
}

.process-step h3 {
  color: var(--white);
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex: 0 0 20px;
}
.process-arrow svg { width: 20px; height: 20px; }

/* ---------- Service areas ---------- */

.areas-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.area-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yellow);
}
.area-chip.more { background: transparent; border-style: dashed; color: var(--text-soft); }

/* ---------- Stars / rating ---------- */

.stars { color: var(--green); letter-spacing: 0.2em; font-size: 1.1rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(100deg, rgba(68, 214, 44, 0.96), rgba(68, 214, 44, 0.9)),
    repeating-linear-gradient(-45deg, #44d62c 0 18px, #3dc626 18px 36px);
  color: var(--black);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cta-band h2 { color: var(--black); }
.cta-band p { max-width: 540px; margin: 0.9rem auto 1.8rem; font-weight: 500; }

.cta-owner-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.9rem;
  background: rgba(255, 255, 255, 0.28);
  border: 4px solid rgba(10, 10, 11, 0.65);
  object-fit: cover;
  object-position: center top; /* source is already a tight square crop */
}

.cta-band .cta-owner-name {
  margin: 0 auto 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.75);
}

/* ---------- Portfolio page ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(10, 10, 11, 0.96), rgba(17, 17, 19, 0.85)),
    repeating-linear-gradient(45deg, #1a1a1e 0 22px, #111113 22px 44px);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Dark scrim so the headline stays readable over the photo */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.72) 55%, rgba(10, 10, 11, 0.55) 100%);
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255, 255, 255, 0.75); max-width: 560px; margin-top: 1rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.2rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--green); color: var(--white); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--black); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.gallery-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item.hidden { display: none; }

.gallery-media { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-media svg { width: 100%; height: 100%; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; }

.gallery-info { padding: 0.95rem 1.3rem 1.05rem; }
.gallery-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

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

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text-soft); margin: 0.9rem 0 1.1rem; flex: 1; }

.reviews-cta { margin-top: 1.4rem; }

.services-cta { margin-top: 2.2rem; text-align: center; }

/* Compact two-review block on the home page */
.testimonial-grid.two-up { grid-template-columns: repeat(2, 1fr); margin-top: 1.8rem; }
.reviews-section .testimonial-card { padding: 1.4rem; }
.reviews-section .testimonial-card blockquote { font-size: 0.9rem; margin: 0.7rem 0 0.9rem; }
.reviews-section .stars { font-size: 1rem; }
.testimonial-card cite { font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--white); }
.testimonial-card cite span { display: block; font-weight: 500; font-size: 0.8rem; color: var(--text-soft); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-details { display: grid; gap: 1.3rem; margin-top: 1.8rem; }

.contact-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-line .service-icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.contact-line strong { display: block; color: var(--white); font-size: 0.95rem; }
.contact-line a, .contact-line span { color: var(--text-soft); font-size: 0.92rem; }
.contact-line a:hover { color: var(--yellow); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

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

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 1rem; /* ≥16px prevents iOS auto-zoom on focus */
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(68, 214, 44, 0.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.9rem; }

.form-success {
  display: none;
  background: rgba(68, 214, 44, 0.1);
  border: 1px solid rgba(68, 214, 44, 0.4);
  color: #7fe085;
  border-radius: 9px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  background: rgba(214, 69, 69, 0.12);
  border: 1px solid rgba(214, 69, 69, 0.45);
  color: #f1a0a0;
  border-radius: 9px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.form-error a { text-decoration: underline; }
.form-error.show { display: block; }

/* ---------- Mobile CTA bar ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 0.7rem;
  padding: 0.7rem 4% calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-cta-bar .btn { flex: 1; justify-content: center; padding: 0.8rem 1rem; }
.mobile-cta-bar .btn-dark { border: 1px solid rgba(255, 255, 255, 0.25); }
.mobile-cta-bar svg { flex-shrink: 0; }

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

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }

.footer-subhead {
  font-size: 0.72rem !important;
  letter-spacing: 0.12em;
  color: var(--green) !important;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem !important;
}
.footer-grid address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--green); }

.footer-about p { font-size: 0.9rem; margin-top: 1rem; max-width: 30ch; }

.social-row { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.social-row a:hover { background: var(--green); border-color: var(--green); color: var(--black); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services-grid, .gallery-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stack the step flow top-to-bottom and point the arrows down */
  .process-flow { flex-direction: column; gap: 0.3rem; }
  /* Number stacked above its label, both centred in the card */
  .process-step {
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1.2rem 1rem;
  }
  .process-step h3 { font-size: 1rem; }
  .process-arrow { flex: none; transform: rotate(90deg); }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* Room for the fixed bottom CTA bar */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 0.94rem; }

  /* ---- Compact mobile scale ---- */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.02rem; }

  .section { padding: 2.5rem 0; }
  .eyebrow { font-size: 0.68rem; margin-bottom: 0.5rem; }
  .section-intro { font-size: 0.9rem; margin-top: 0.7rem; }

  .hero { padding: 2.5rem 0 3rem; }
  .hero-logo { height: 165px; margin-bottom: 0.75rem; }
  .hero-lockup { width: min(360px, 100%); }
  .hero-badge { font-size: 0.66rem; padding: 0.3rem 0.8rem; margin-bottom: 1rem; }
  .hero-sub { font-size: 0.95rem; margin-top: 0.9rem; }
  .hero-actions { margin-top: 1.5rem; gap: 0.7rem; }

  .btn { padding: 0.75rem 1.4rem; font-size: 0.9rem; }

  .trust-bar { padding: 1.1rem 0; }
  .trust-item strong { font-size: 1.45rem; }
  .trust-item span { font-size: 0.76rem; }

  /* ---- Centred mobile layout ---- */
  /* Everything inside a section centres by default; the exceptions below opt back out. */
  .section .container,
  .cta-band .container,
  .site-footer { text-align: center; }

  .section-intro { margin-inline: auto; }

  /* Blocks that stay left-aligned — centring these hurts readability */
  .story-card,
  .contact-form,
  .form-field label,
  .contact-line { text-align: left; }

  /* Hamburger centres in the header (it's the only visible item on mobile).
     The gap has to go — the empty <nav> wrapper would otherwise offset it. */
  .nav-bar { justify-content: center; gap: 0; }
  .nav-cta { gap: 0; }

  /* the quote loses its left rule when centred, so give it a rule above instead */
  .story-quote {
    font-size: 0.95rem;
    margin-top: 1.1rem;
    padding: 0.9rem 0 0;
    border-left: none;
    border-top: 3px solid var(--green);
  }

  .story-card { text-align: left; }
  .story-card li { font-size: 0.9rem; padding: 0.5rem 0; }

  /* Photo on the left, vertically centred against the two lines of credit text,
     with the pair centred as a group in the section. */
  .owner-card {
    margin-top: 1.2rem;
    gap: 0.9rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
  .owner-photo { width: 84px; height: 84px; }

  .areas-wrap { justify-content: center; }

  .footer-grid { justify-items: center; }
  .footer-about { display: flex; flex-direction: column; align-items: center; }
  .footer-about p { max-width: 34ch; }
  .social-row { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }

  .services-grid, .gallery-grid, .testimonial-grid { gap: 0.9rem; margin-top: 1.6rem; }
  .process-flow { margin-top: 1.6rem; }
  .service-card { padding: 1.3rem; }
  /* icon centres above its centred card text */
  .service-card .service-icon { width: 42px; height: 42px; margin: 0 auto 0.8rem; }
  .service-card p { font-size: 0.88rem; }

  .process-step { padding: 0.9rem 1.1rem; }
  .step-number { font-size: 1.9rem; }
  .process-step h3 { font-size: 0.95rem; }

  .areas-wrap { gap: 0.5rem; margin-top: 1.2rem; }
  .area-chip { font-size: 0.83rem; padding: 0.4rem 0.9rem; }

  .cta-band { padding: 2.5rem 0; }
  .cta-owner-photo { width: 96px; height: 96px; margin-bottom: 0.7rem; }

  /* Keep the owner credit on a single line at 375px */
  .cta-band .cta-owner-name {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    margin-bottom: 0.85rem;
  }

  /* "Ready for a Flawless Finish?" on one line, with even rhythm
     photo → credit → headline → button now the paragraph is hidden */
  .cta-band h2 { font-size: 1.15rem; margin-bottom: 1.9rem; }

  /* Supporting paragraph removed on mobile — the heading + button carry it */
  .cta-band .cta-sub { display: none; }

  .page-hero { padding: 2.5rem 0; }
  .filter-bar { margin-top: 1.4rem; }
  /* Keep tap targets ≥44px even at the compact scale */
  .filter-btn { font-size: 0.83rem; padding: 0.45rem 1.1rem; min-height: 44px; }
  .social-row a { width: 44px; height: 44px; }
  .gallery-info { padding: 0.9rem 1.1rem 1.1rem; }
  .gallery-info p { font-size: 0.84rem; }

  .testimonial-card { padding: 1.3rem; }
  .testimonial-card blockquote { font-size: 0.9rem; margin: 0.7rem 0 0.9rem; }

  .contact-details { gap: 1rem; margin-top: 1.3rem; }
  .form-field { margin-bottom: 0.9rem; }

  .site-footer { padding: 2.5rem 0 1.2rem; }
  .footer-grid { padding-bottom: 1.8rem; }
  .footer-about .brand-logo { height: 88px; }
  .footer-grid li { font-size: 0.86rem; margin-bottom: 0.45rem; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 4%;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.95rem 0; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-phone, .nav-cta .btn { display: none; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .services-grid, .gallery-grid, .testimonial-grid, .testimonial-grid.two-up { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }

  /* All four trust stats stay on one horizontal row on phones */
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .trust-item strong { font-size: 1.05rem; }
  .trust-item span { font-size: 0.6rem; line-height: 1.25; display: block; }
  .story-card, .contact-form { padding: 1.5rem; }

  /* Filter bar becomes one swipeable row */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -4%;
    padding-inline: 4%;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }

  .mobile-cta-bar { display: flex; }
}

/* ==========================================================================
   Local landing pages (generated by .claude/build-local-pages.ps1)
   One page per city x service. These classes are used ONLY by those pages.
   ========================================================================== */

.local-hero .hero-actions { justify-content: flex-start; }

.local-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.local-list {
  list-style: none;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.local-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
}

/* Green tick, drawn in CSS so the pages carry no extra image requests */
.local-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.local-subhead { margin-top: 2.5rem; }
.local-grid p { margin-top: 1rem; color: var(--text-soft); }

.local-aside { position: sticky; top: 96px; display: grid; gap: 0.75rem; }
.local-aside p { color: var(--text-soft); margin-bottom: 0.5rem; }
.local-aside .btn { width: 100%; justify-content: center; }

.faq-list { margin-top: 2rem; display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.02rem; margin: 0; text-transform: none; }

/* Chevron that rotates when the item opens */
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { margin-top: 0.9rem; color: var(--text-soft); }

.local-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.local-links h3 { margin-bottom: 1rem; }
.local-links ul { list-style: none; display: grid; gap: 0.5rem; }
.local-links a { color: var(--text-soft); }
.local-links a:hover { color: var(--green); }

@media (max-width: 860px) {
  .local-grid, .local-links { grid-template-columns: 1fr; gap: 2rem; }
  .local-aside { position: static; }
  .local-hero .hero-actions { justify-content: center; }
}

/* BBB accreditation seal (footer). Sized to the 120x61 asset BBB serves. */
.bbb-seal {
  display: inline-block;
  margin-top: 1.1rem;
  transition: opacity 0.15s ease;
}
.bbb-seal:hover { opacity: 0.85; }
.bbb-seal img { border: 0; height: auto; }
