/* ==========================================================================
   SureSight — homepage styles
   Mobile-first: base rules target ~375–390px phones. Enhancements for
   tablet (768px+) and desktop (1024px+) are layered on via media queries.
   ========================================================================== */

:root {
  --ocean: #0C3A5E;
  --ocean-rgb: 12, 58, 94;
  --amber: #E0A430;
  --cream: #F6F4EE;
  --ink: #2A2A28;
  --muted: #7A7871;
  --light-blue: #B8C6D6;
  --white: #FFFFFF;
  --border-ocean: rgba(var(--ocean-rgb), 0.15);
  --header-h: 60px;
  --deep-amber: #C9871C;   /* amber text on light backgrounds only */
  --card-border: #E7E3D9;  /* service card border */

  /* three-state colour — About section "when you need us" cards */
  --state-now: #0C3A5E;          /* ocean — same-day */
  --state-now-tint: #E7EDF3;
  --state-plan: #2C6B52;         /* deep green — scheduled */
  --state-plan-tint: #E5EFE9;
  --state-urgent: #A4262C;       /* red — after hours; matches report "Critical" */
  --state-urgent-tint: #F7E7E7;
  --muted-on-tint: #5E5C55;      /* body text on tints; --muted fails contrast there */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; }
h1, h2, h3, p, dl, ol, ul { margin: 0; }
ul, ol { list-style: none; padding: 0; }

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--amber); }

input, select, button { font-family: 'Poppins', sans-serif; }

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

svg { display: block; flex: 0 0 auto; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--ocean);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 200;
}
.skip-link:focus { top: 8px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections all stack single-column on mobile by default. */
.section { padding: 52px 0; }
.section-white { background: var(--white); }
.section-ocean { background: var(--ocean); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-amber);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: 0.85; }
.eyebrow-bold { font-weight: 700; color: var(--amber); }

.section-title {
  font-weight: 700;
  font-size: 27px;
  color: var(--ocean);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.18;
  text-wrap: balance;
}
.section-title-md { font-weight: 600; font-size: 24px; margin: 0 0 18px; line-height: 1.25; letter-spacing: -0.3px; text-wrap: balance; }
.section-title.on-ocean, .section-title-md.on-ocean { color: var(--white); }

.section-subtitle { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; }

.lead { font-size: 14.5px; color: var(--ink); line-height: 1.6; margin: 0 0 24px; }

/* ---------------------------------- About photo carousel ------------------ */

.about-carousel { position: relative; max-width: 420px; margin: 0 auto 22px; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  outline-offset: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
/* Each slide is a <picture> (WebP + JPG fallback) wrapping the actual <img>.
   <picture> renders no box of its own, so the flex-item/scroll-snap sizing
   has to target it explicitly — the .carousel-slide rules below only handle
   how the image fills that box. */
.carousel-track > picture {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: block;
}
.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* This slide's on-screen readout (distance counter, date/time stamp) sits in
   the corners of a 16:9 frame — cover would crop it off a square slide, so
   show the whole frame letterboxed instead. */
.carousel-slide--contain { object-fit: contain; background: var(--white); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(var(--ocean-rgb), 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-arrow:hover { background: rgba(var(--ocean-rgb), 0.75); }
.carousel-arrow:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.carousel-arrow--prev { left: 6px; }
.carousel-arrow--next { right: 6px; }

.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ocean-rgb), 0.25); transition: background 140ms ease, width 140ms ease; }
.carousel-dot.is-active { background: var(--ocean); width: 16px; border-radius: 3px; }

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

/* ---------------------------------- About: services + modes --------------- */

.about-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ocean);
  opacity: 0.72;
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-ocean);
}

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border-ocean);
}
.svc-list li:last-child { border-bottom: 0; }
.svc-list li > svg { flex: 0 0 auto; color: var(--deep-amber); margin-top: 1px; }
.svc-list b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ocean);
}
.svc-list em {
  display: block;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 2px;
}

/* Jump into the Fix Finder */
.svc-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--white);
  border: 1px dashed rgba(var(--ocean-rgb), 0.28);
  color: var(--ocean);
  text-decoration: none;
}
.svc-jump:hover { background: rgba(var(--ocean-rgb), 0.04); }
.svc-jump:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.svc-jump > span { font-size: 13.5px; line-height: 1.45; }
.svc-jump b { display: block; font-weight: 600; font-size: 14px; }
.svc-jump > svg { flex: 0 0 auto; opacity: 0.5; }

/* When you need us */
.modes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Cards carry their own urgency colour: blue = act now, green = plan,
   red = emergency. Red matches the inspection report's Critical badge. */
.mode {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}
.mode:hover {
  box-shadow: 0 6px 16px rgba(var(--ocean-rgb), 0.10);
  transform: translateY(-1px);
}
.mode:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.mode-chip {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-body { flex: 1; min-width: 0; }
.mode-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mode-body > span {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted-on-tint);
  margin-top: 1px;
}
.mode-go { flex: 0 0 auto; opacity: 0.5; }

.mode-now    { background: var(--state-now-tint); }
.mode-now    .mode-chip { background: var(--state-now); }
.mode-now    .mode-body strong,
.mode-now    .mode-go { color: var(--state-now); }

.mode-plan   { background: var(--state-plan-tint); }
.mode-plan   .mode-chip { background: var(--state-plan); }
.mode-plan   .mode-body strong,
.mode-plan   .mode-go { color: var(--state-plan); }

.mode-urgent { background: var(--state-urgent-tint); }
.mode-urgent .mode-chip { background: var(--state-urgent); }
.mode-urgent .mode-body strong,
.mode-urgent .mode-go { color: var(--state-urgent); }

@media (prefers-reduced-motion: reduce) {
  .mode { transition: none; }
  .mode:hover { transform: none; }
}

@media (min-width: 768px) {
  .svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .svc-list li:nth-last-child(2) { border-bottom: 0; }
  .modes { flex-direction: row; }
  .modes > li { flex: 1 1 0; }
  .mode { height: 100%; align-items: flex-start; }
}

.router-intro { font-size: 14.5px; color: var(--ink); line-height: 1.6; margin: 0 0 20px; max-width: 60ch; }

.kicker {
  color: var(--ocean);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-icon svg { flex: 0 0 auto; }
.btn-block { width: 100%; }

.btn-amber { background: var(--amber); color: var(--ocean); box-shadow: 0 1px 2px rgba(var(--ocean-rgb), 0.14); }
.btn-amber:hover { background: #cf9526; color: var(--ocean); box-shadow: 0 6px 18px rgba(224, 164, 48, 0.36); }

.btn-outline-cream {
  background: transparent;
  border: 1.5px solid rgba(246, 244, 238, 0.5);
  color: var(--cream);
}
.btn-outline-cream:hover { color: var(--amber); border-color: rgba(246,244,238,0.8); }

.btn-outline-ocean {
  background: var(--cream);
  border: 1px solid rgba(var(--ocean-rgb), 0.2);
  color: var(--ocean);
  flex: 1;
  min-height: 42px;
  font-size: 13.5px;
}
.btn-outline-ocean:hover { color: var(--amber); }

.button-row { display: flex; gap: 10px; margin-top: 18px; }

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding: 8px 20px;
  transition: padding 0.15s ease;
}
.site-header.is-scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }

/* Logo is taken out of flex flow and centered on the bar independently, so its
   height no longer drives the bar's height — it can run bigger than the bar
   and overhang the top/bottom edge, like a badge sitting on a slim strip. */
.logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 1;
}
.logo img {
  display: block;
  height: 92px;
  width: auto;
  flex-shrink: 0;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-desktop { display: none; }

.menu-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ocean);
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  background: var(--cream);
  border-bottom: 1px solid var(--border-ocean);
  box-shadow: 0 8px 16px rgba(var(--ocean-rgb), 0.1);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 5px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ocean);
  border-bottom: 1px solid rgba(var(--ocean-rgb), 0.06);
}

/* ---------------------------------- Hero -------------------------------- */
/* This whole section (marquee + skyline-into-blue block) uses Barlow /
   Barlow Condensed rather than the site's global Poppins — a deliberate,
   scoped exception for this one component, not a global type change. */

.hero { position: relative; }

/* -- Skyline-into-blue block ----------------------------------------------
   One element hosts the photo and the navy plate so there is no seam
   between them: a fixed-height photo band dissolves into solid navy via
   .hero-skyline-fade, and the same water/ripple washes run across both. */
.hero-skyline { position: relative; background: var(--ocean); overflow: hidden; }

.hero-skyline-photo { position: relative; z-index: 0; height: 158px; }
.hero-skyline-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-skyline-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 58, 94, 0) 0%,
    rgba(12, 58, 94, 0) 22%,
    rgba(12, 58, 94, 0.18) 46%,
    rgba(12, 58, 94, 0.42) 60%,
    rgba(12, 58, 94, 0.68) 74%,
    rgba(12, 58, 94, 0.88) 88%,
    #0C3A5E 100%);
}
.hero-water {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 15% 40%, rgba(122, 178, 214, 0.34) 0%, rgba(122, 178, 214, 0) 62%),
    radial-gradient(90% 55% at 95% 55%, rgba(64, 132, 178, 0.3) 0%, rgba(64, 132, 178, 0) 65%),
    radial-gradient(120% 70% at 60% 112%, rgba(6, 32, 54, 0.5) 0%, rgba(6, 32, 54, 0) 70%);
}
.hero-ripple {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(172deg, rgba(246, 244, 238, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(186deg, rgba(246, 244, 238, 0.055) 0 1px, transparent 1px 27px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}

.hero-copy { position: relative; z-index: 2; padding: 18px 20px 36px; }
.hero-copy > * { position: relative; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cream);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero-eyebrow-rule { width: 22px; height: 1px; background: var(--amber); flex: 0 0 auto; }
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 18px;
}
.hero-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(246, 244, 238, 0.86);
  max-width: 32ch;
  margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: background 140ms ease, box-shadow 140ms ease;
}
.hero-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hero-btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ocean);
  box-shadow: 0 1px 12px rgba(224, 164, 48, 0.25);
}
.hero-btn-primary:hover { background: #C88F22; border-color: #C88F22; }
.hero-btn-primary:active { background: #B07A16; border-color: #B07A16; box-shadow: none; }
.hero-btn-secondary {
  background: rgba(246, 244, 238, 0.08);
  border-color: rgba(246, 244, 238, 0.4);
  color: var(--cream);
}
.hero-btn-secondary:hover { background: rgba(246, 244, 238, 0.16); border-color: rgba(246, 244, 238, 0.6); }
.hero-btn-secondary:active { background: rgba(246, 244, 238, 0.22); }

/* Credentials marquee — mobile/tablet only, hidden from 1024px up. Transparent
   background, white pill badges, seamless duplicated-content loop. */
.hero-badges {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.hero-badges-track { display: flex; width: max-content; animation: heroBadgeScroll 22s linear infinite; }
.hero-badges-group { display: contents; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 244, 238, 0.28);
  background: rgba(246, 244, 238, 0.08);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.hero-badge svg { width: 14px; height: 14px; flex: 0 0 auto; stroke: currentColor; }
@keyframes heroBadgeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badges-track { animation: none; }
}
@media (min-width: 1024px) {
  .hero-badges { display: none; }
}

/* ---------------------------------- Steps -------------------------------- */

.steps-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.step { display: flex; gap: 14px; }
.step-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.step-body h3 { font-weight: 600; font-size: 17px; color: var(--ocean); margin: 0 0 4px; }
.step-body p { font-size: 15px; color: var(--ink); line-height: 1.5; }

/* ---------------------------------- Fix finder (CSS-only picker) --------- */

/* Column layout so the revealed answer can be re-ordered above the tile grid
   on phones/tablets (see the order rules below); desktop keeps DOM order. */
.fix-picker { position: relative; display: flex; flex-direction: column; }
.fix-picker > .fix-results { order: -1; margin-bottom: 14px; }
.fix-picker > .fix-tiles { order: 0; }
.fix-picker > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; pointer-events: none; }

/* Gallery cards: full-bleed photo, no border/white bg. 3:2 landscape single
   column on phones; swaps to a 4:5 portrait 4-up grid at 768px (see that
   media query below for the grid + aspect-ratio + photo swap). */
.fix-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 0; }
.fix-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 14px 15px 13px;
  cursor: pointer;
  isolation: isolate;
  background: var(--ocean);
  color: var(--white);
  aspect-ratio: 3 / 2;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(var(--ocean-rgb), 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-user-select: none;
  user-select: none;
}
.fix-tile::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transition: transform .45s ease;
}
.fix-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(var(--ocean-rgb), 0.92) 0%,
    rgba(var(--ocean-rgb), 0.80) 20%,
    rgba(var(--ocean-rgb), 0.40) 45%,
    rgba(var(--ocean-rgb), 0)    72%);
}
.fix-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(var(--ocean-rgb), 0.28); }
.fix-tile:hover::before { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .fix-tile, .fix-tile::before { transition: none; }
  .fix-tile:hover { transform: none; }
  .fix-tile:hover::before { transform: none; }
}
.fix-tile > svg { display: none; }
.fix-tile__label,
.fix-tile__price,
.fix-tile__check { position: relative; z-index: 2; }
.fix-tile__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(var(--ocean-rgb), 0.65);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.fix-tile__price {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--amber);
  text-shadow: 0 1px 4px rgba(var(--ocean-rgb), 0.7);
}
.fix-tile__check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--ocean); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; box-shadow: 0 2px 6px rgba(var(--ocean-rgb), 0.45); }
.fix-tile__check svg { width: 15px; height: 15px; }

/* Photo keys — the only place image paths appear. Wide (3:2) is the mobile
   default; the 768px media query below swaps in the portrait (4:5) crop. */
.fix-tile[for="fix-bath"]::before    { background-image: url("images/fix/fix-bath-wide.webp"); }
.fix-tile[for="fix-kitchen"]::before { background-image: url("images/fix/fix-kitchen-wide.webp"); }
.fix-tile[for="fix-toilet"]::before  { background-image: url("images/fix/fix-toilet-wide.webp"); }
.fix-tile[for="fix-wash"]::before    { background-image: url("images/fix/fix-wash-wide.webp"); }
.fix-tile[for="fix-floor"]::before   { background-image: url("images/fix/fix-floor-wide.webp"); }
.fix-tile[for="fix-house"]::before   { background-image: url("images/fix/fix-house-wide.webp"); }
.fix-tile[for="fix-smell"]::before   { background-image: url("images/fix/fix-smell-wide.webp"); }
.fix-tile[for="fix-unsure"]::before  { background-image: url("images/fix/fix-unsure-wide.webp"); }
.fix-tile[for="fix-report"]::before  { background-image: url("images/fix/fix-report-wide.webp"); }

/* Full-width banner tile: spans every column of the grid at all breakpoints. */
.fix-tile--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

.fix-hint { background: var(--white); border: 1px dashed rgba(var(--ocean-rgb), 0.28); border-radius: 14px; padding: 18px 16px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.5; }
.fix-hint strong { color: var(--ocean); font-weight: 600; }
.fix-result { display: none; background: var(--ocean); color: var(--cream); border-radius: 16px; padding: 22px 20px 20px; animation: fixIn .28s ease; box-shadow: 0 14px 34px rgba(var(--ocean-rgb), 0.22); scroll-margin-top: calc(var(--header-h) + 12px); }
@keyframes fixIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fix-result { animation: none; } .fix-tile__check { transition: none; } }
.fix-result__k { color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 6px; }
.fix-result h3 { color: var(--white); font-size: 19.5px; font-weight: 600; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.2px; text-wrap: balance; }
.fix-result dl { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; margin: 0 0 16px; font-size: 14px; }
.fix-result dt { color: var(--amber); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .9px; padding-top: 3px; }
.fix-result dd { margin: 0; color: #D5E1EB; line-height: 1.5; }
.fix-result__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.fix-result__amt { font-size: 34px; font-weight: 700; color: var(--amber); line-height: 1; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.fix-result__sub { font-size: 13px; color: var(--light-blue); }
.fix-result__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fix-result__actions .btn { flex: 1 1 150px; }
.fix-note { font-size: 12.5px; color: var(--light-blue); margin: 12px 0 0; line-height: 1.5; }
.fix-side { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.fix-side__card { background: var(--white); border: 1px solid var(--card-border); border-radius: 14px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fix-side__card b { display: block; font-size: 14px; font-weight: 600; color: var(--ocean); }
.fix-side__card span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.fix-side__card em { font-style: normal; font-weight: 700; color: var(--deep-amber); white-space: nowrap; font-size: 14px; }
.fix-fine { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 14px 0 0; }

#fix-bath:checked ~ .fix-results #res-bath { display: block; }
#fix-kitchen:checked ~ .fix-results #res-kitchen { display: block; }
#fix-toilet:checked ~ .fix-results #res-toilet { display: block; }
#fix-wash:checked ~ .fix-results #res-wash { display: block; }
#fix-floor:checked ~ .fix-results #res-floor { display: block; }
#fix-house:checked ~ .fix-results #res-house { display: block; }
#fix-smell:checked ~ .fix-results #res-smell { display: block; }
#fix-unsure:checked ~ .fix-results #res-unsure { display: block; }
#fix-report:checked ~ .fix-results #res-report { display: block; }

/* Selected state: bright amber ring (reads over any photo) + reveal the
   floating check badge. */
#fix-bath:checked    ~ .fix-tiles label[for="fix-bath"],
#fix-kitchen:checked ~ .fix-tiles label[for="fix-kitchen"],
#fix-toilet:checked  ~ .fix-tiles label[for="fix-toilet"],
#fix-wash:checked    ~ .fix-tiles label[for="fix-wash"],
#fix-floor:checked   ~ .fix-tiles label[for="fix-floor"],
#fix-house:checked   ~ .fix-tiles label[for="fix-house"],
#fix-smell:checked   ~ .fix-tiles label[for="fix-smell"],
#fix-unsure:checked  ~ .fix-tiles label[for="fix-unsure"],
#fix-report:checked  ~ .fix-tiles label[for="fix-report"] {
  box-shadow: 0 0 0 3px var(--amber), 0 8px 22px rgba(var(--ocean-rgb), 0.30);
}
#fix-bath:checked    ~ .fix-tiles label[for="fix-bath"]    .fix-tile__check,
#fix-kitchen:checked ~ .fix-tiles label[for="fix-kitchen"] .fix-tile__check,
#fix-toilet:checked  ~ .fix-tiles label[for="fix-toilet"]  .fix-tile__check,
#fix-wash:checked    ~ .fix-tiles label[for="fix-wash"]    .fix-tile__check,
#fix-floor:checked   ~ .fix-tiles label[for="fix-floor"]   .fix-tile__check,
#fix-house:checked   ~ .fix-tiles label[for="fix-house"]   .fix-tile__check,
#fix-smell:checked   ~ .fix-tiles label[for="fix-smell"]   .fix-tile__check,
#fix-unsure:checked  ~ .fix-tiles label[for="fix-unsure"]  .fix-tile__check,
#fix-report:checked  ~ .fix-tiles label[for="fix-report"]  .fix-tile__check {
  opacity: 1; transform: scale(1);
}
#fix-bath:focus-visible    ~ .fix-tiles label[for="fix-bath"],
#fix-kitchen:focus-visible ~ .fix-tiles label[for="fix-kitchen"],
#fix-toilet:focus-visible  ~ .fix-tiles label[for="fix-toilet"],
#fix-wash:focus-visible    ~ .fix-tiles label[for="fix-wash"],
#fix-floor:focus-visible   ~ .fix-tiles label[for="fix-floor"],
#fix-house:focus-visible   ~ .fix-tiles label[for="fix-house"],
#fix-smell:focus-visible   ~ .fix-tiles label[for="fix-smell"],
#fix-unsure:focus-visible  ~ .fix-tiles label[for="fix-unsure"],
#fix-report:focus-visible  ~ .fix-tiles label[for="fix-report"] {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--amber);
}
.fix-picker > input:checked ~ .fix-results .fix-hint { display: none; }

/* ---------------------------------- Reviews -------------------------------- */

.testimonial { margin: 0; padding: 1.25rem 1.25rem 1rem; border-left: 4px solid var(--amber); background: var(--cream); border-radius: 8px; }
.testimonial blockquote { margin: 0; }
.testimonial p { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.55; }
.testimonial-stars { display: flex; gap: 2px; margin: 0 0 .75rem; color: var(--amber); }
.testimonial-stars svg { fill: currentColor; }
.testimonial figcaption { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline; }
.testimonial-name { font-weight: 600; }
.testimonial-meta { color: var(--muted-on-tint); font-size: .875rem; }

/* Default (no JS / reduced motion): stacked */
.quote-rotator { display: grid; gap: 1rem; margin-bottom: 1rem; }

/* Rotating mode: all slides in one cell, height = tallest */
.quote-rotator.js-rotate { gap: 0; }
.quote-rotator.js-rotate > .testimonial { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.quote-rotator.js-rotate > .testimonial.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }

/* ---------------------------------- FAQ ------------------------------------ */

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.faq-question span:first-child { font-weight: 500; font-size: 17px; color: var(--white); }
.faq-symbol { flex: 0 0 auto; font-size: 20px; color: var(--amber); font-weight: 400; }
.faq-answer { font-size: 14px; color: var(--light-blue); line-height: 1.55; margin: 0 0 16px; }

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

.area-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ocean);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.area-chips span {
  border: 1px solid var(--card-border);
  background: var(--white);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink);
}

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

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-form[hidden] { display: none; }
.form-group label,
.form-label-static {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(var(--ocean-rgb), 0.25);
  border-radius: 4px;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}
.contact-form input:disabled,
.contact-form select:disabled,
.contact-form button:disabled { opacity: 0.6; }
.radio-group { display: flex; gap: 20px; padding: 6px 0; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); font-weight: 400; }
.radio-group input { width: 18px; height: 18px; }
.form-confirmation {
  font-size: 13.5px;
  color: var(--ocean);
  background: rgba(224, 164, 48, 0.15);
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(var(--ocean-rgb), 0.15);
  padding-top: 18px;
}
.contact-direct-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ocean);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-note { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }

.follow-us {
  border-top: 1px solid rgba(var(--ocean-rgb), 0.15);
  margin-top: 18px;
  padding-top: 18px;
}

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

.site-footer {
  background: var(--ocean);
  color: var(--cream);
  padding: 32px 0 120px;
}
.footer-logo { font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.footer-tagline { font-size: 12.5px; color: var(--amber); font-weight: 600; margin: 0 0 8px; }
.footer-blurb { font-size: 12px; color: rgba(246, 244, 238, 0.7); line-height: 1.5; margin: 0 0 22px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.footer-nav a { font-size: 14.5px; color: var(--cream); opacity: 0.9; }
.footer-fine { font-size: 12px; color: rgba(246, 244, 238, 0.65); line-height: 1.6; margin: 0 0 6px; }
.footer-copyright { font-size: 11.5px; color: rgba(246, 244, 238, 0.5); margin: 0; }

/* ---------------------------------- Benny chat widget -------------------------- */

.benny-tooltip {
  position: fixed;
  bottom: 78px;
  left: 36px;
  z-index: 71;
  background: var(--ocean);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(var(--ocean-rgb), 0.25);
}
.benny-tooltip[hidden] { display: none; }

.benny-panel {
  position: fixed;
  bottom: 78px;
  left: 20px;
  z-index: 71;
  width: 250px;
  max-width: calc(100vw - 32px);
  background: var(--cream);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(var(--ocean-rgb), 0.3);
  overflow: hidden;
}
.benny-panel[hidden] { display: none; }
.benny-header {
  background: var(--ocean);
  color: var(--cream);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14.5px;
}
.benny-header button { background: transparent; border: none; color: var(--cream); cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; padding: 0; }
.benny-body { padding: 14px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }

/* ---------------------------------- Sticky mobile CTA bar ----------------------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--amber);
  padding: 8px 14px;
  z-index: 60;
  box-shadow: 0 -4px 12px rgba(var(--ocean-rgb), 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.benny-fab {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.sticky-cta-call {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: var(--ocean);
  font-weight: 600;
  font-size: 15px;
}

/* ---- Mobile hardening: no overflow on 320px phones, 44px tap targets ---- */
/* Two-up button rows wrapped instead of overflowing on very narrow screens */
.button-row { flex-wrap: wrap; }
.btn-outline-ocean { flex: 1 1 140px; min-height: 44px; }
/* Minimum comfortable touch targets (Apple/Google guidance: 44px) */
.menu-toggle { width: 44px; height: 44px; }
.logo { min-height: 44px; }
.contact-direct-link { min-height: 44px; }
.footer-nav { gap: 2px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; }
.nav-desktop a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.radio-group { gap: 8px; }
/* .radio-group > label, not .radio-group label — a .form-group label rule
   elsewhere has equal specificity and comes later in source, so the un-scoped
   version gets silently overridden and this fix appears to do nothing. */
.radio-group > label { min-height: 44px; padding-right: 12px; }
.radio-group input { width: 22px; height: 22px; }
/* Long email/phone can never push the page sideways */
.contact-direct-link, .footer-fine, .testimonial-meta { overflow-wrap: anywhere; }

/* Keep anchored sections clear of the sticky header when jumped to. */
section[id] { scroll-margin-top: var(--header-h); }


/* ==========================================================================
   Tablet — 768px+
   ========================================================================== */
@media (min-width: 768px) {
  .container { padding: 0 32px; }

  .logo img { height: 108px; }

  .hero-skyline-photo { height: 220px; }
  .hero h1 { font-size: 60px; }
  .hero-copy { max-width: 620px; margin: 0 auto; padding: 26px 32px 48px; }
  .hero-sub { max-width: 34ch; }
  .section { padding: 76px 0; }

  .fix-tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .fix-tile { aspect-ratio: 4 / 5; }
  .fix-tile__label { font-size: 14px; }
  .fix-tile__price { font-size: 17px; }
  .fix-tile[for="fix-bath"]::before    { background-image: url("images/fix/fix-bath-portrait.webp"); }
  .fix-tile[for="fix-kitchen"]::before { background-image: url("images/fix/fix-kitchen-portrait.webp"); }
  .fix-tile[for="fix-toilet"]::before  { background-image: url("images/fix/fix-toilet-portrait.webp"); }
  .fix-tile[for="fix-wash"]::before    { background-image: url("images/fix/fix-wash-portrait.webp"); }
  .fix-tile[for="fix-floor"]::before   { background-image: url("images/fix/fix-floor-portrait.webp"); }
  .fix-tile[for="fix-house"]::before   { background-image: url("images/fix/fix-house-portrait.webp"); }
  .fix-tile[for="fix-smell"]::before   { background-image: url("images/fix/fix-smell-portrait.webp"); }
  .fix-tile[for="fix-unsure"]::before  { background-image: url("images/fix/fix-unsure-portrait.webp"); }
  .fix-tile--wide { aspect-ratio: 5 / 1; }
  .fix-result { padding: 28px 30px 26px; }
  .fix-result dl { grid-template-columns: 112px 1fr; }
  .fix-result__actions .btn { flex: 0 1 auto; }


  .steps-list { flex-direction: row; }
  .step { flex: 1; flex-direction: column; text-align: left; }

  .sticky-cta { max-width: 420px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 12px 12px 0 0; bottom: 0; }
  .benny-tooltip { left: calc(50% - 174px); }
  .benny-panel { left: calc(50% - 189px); }
}

/* ==========================================================================
   Desktop — 1024px+
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }

  .container { padding: 0 40px; }

  .fix-tiles { gap: 16px; }
  .fix-picker > .fix-results { order: 0; margin-bottom: 0; margin-top: 16px; }

  .logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }
  .logo img { height: 48px; }

  .nav-desktop { display: flex; align-items: center; gap: 28px; }
  nav.nav-desktop a { font-weight: 500; font-size: 14.5px; color: var(--ocean); }
  a.nav-desktop.btn { font-weight: 600; }
  .menu-toggle, .mobile-nav { display: none; }

  .header-inner { justify-content: space-between; padding: 16px 40px; }


  .section-title { font-size: 32px; }
  .section-title-md { font-size: 28px; }


  .steps-list { gap: 32px; }

  .contact-form { max-width: 480px; }

  section#contact .container { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
  section#contact .contact-form { grid-column: 1; }
  section#contact .eyebrow,
  section#contact .section-title-md,
  section#contact .lead { grid-column: 1 / -1; }
  section#contact .contact-direct,
  section#contact .follow-us { grid-column: 2; border-top: none; padding-top: 0; }

  .sticky-cta { display: none; }

  /* A subtle glass effect once the page scrolls, instead of the flat cream
     bar used on mobile/tablet — desktop-only polish, no layout change. */
  .site-header.is-scrolled {
    background: rgba(246, 244, 238, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(var(--ocean-rgb), 0.08);
  }

  /* Hero gets more room to breathe on a wide screen: taller photo band,
     bigger type, roomier copy column. Still the same centered, stacked
     composition as tablet — just scaled up for the extra space. */
  .hero-skyline-photo { height: 340px; }
  .hero-copy { max-width: 760px; padding: 44px 40px 68px; }
  .hero h1 { font-size: 76px; }
  .hero-sub { max-width: 42ch; font-size: 16px; }

  /* About: carousel takes a fixed left column, and .about-copy (the lead
     paragraph + service list + jump link, wrapped as one grid item so its
     height flows independently of the carousel's) takes the right column.
     The urgency cards break out below to span both columns full-width.
     Mirrors the grid technique already used for section#contact below. */
  section#about .container {
    display: grid;
    grid-template-columns: 440px 1fr;
    column-gap: 48px;
    align-items: start;
  }
  section#about .eyebrow,
  section#about .section-title-md {
    grid-column: 1 / -1;
  }
  section#about .about-carousel {
    grid-column: 1;
    max-width: none;
    margin: 0;
  }
  section#about .about-copy {
    grid-column: 2;
  }
  /* The heading that follows .about-copy ("When you need us") and the card
     row after it break out to the full width of both columns. */
  section#about .about-copy + .about-heading,
  section#about .about-copy + .about-heading + .modes {
    grid-column: 1 / -1;
  }

  /* FAQ: two independent columns (odd items left, even items right) rather
     than one long list — each item keeps its own row height, so opening an
     answer never reflows items in the other column. */
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .faq-item:nth-child(odd) { grid-column: 1; }
  .faq-item:nth-child(even) { grid-column: 2; }

  /* Long paragraphs shouldn't stretch edge-to-edge on a wide container. */
  .lead, .section-subtitle { max-width: 640px; }

  /* The single full-width CTA button reads oddly once the container is this
     wide; give it a sensible cap instead of spanning 1040px. */
  section#service-area .btn-block { width: auto; min-width: 300px; }

  /* Footer: brand block and nav share a row, fine print spans below. */
  .site-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    align-items: start;
  }
  .footer-logo, .footer-tagline, .footer-blurb { grid-column: 1; }
  .footer-nav {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-bottom: 0;
    align-self: start;
  }
  /* Base rule only enforces min-height for the vertical mobile/tablet list;
     row layout needs a min-width too or short labels like "FAQ" shrink to
     their text size and fall under the 44px tap-target minimum. */
  .footer-nav a { min-width: 44px; }
  .footer-fine, .footer-copyright { grid-column: 1 / -1; }
  .footer-fine { margin-top: 28px; }
}
