/* ==========================================================================
   White Shore Cleaning — Design System
   Upscale coastal aesthetic: maritime blues, crisp neutrals, editorial serif.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0a2452;
  --navy-deep: #000f30;
  --navy-mid: #12326b;
  --azure: #5b92d6;
  --azure-light: #a9c6ea;
  --gray-cool: #c9cdd3;

  /* Surfaces */
  --white: #ffffff;
  --off-white: #f5f7fa;
  --surface: #faf8fd;
  --surface-container: #efedf2;
  --surface-variant: #e3e2e6;

  /* Text */
  --on-surface: #1b1b1f;
  --on-surface-variant: #44464f;
  --outline: #757780;
  --outline-variant: #c5c6d0;

  /* Accents */
  --gold: #ffd700;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-label: "Poppins", system-ui, sans-serif;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-card: 12px;
  --radius: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --gutter: 32px;
  --margin-mobile: 20px;
  --section-padding: 120px;

  /* Cool-toned ambient shadows (never pure black) */
  --shadow-sm: 0 2px 8px rgba(10, 36, 82, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 36, 82, 0.09);
  --shadow-lg: 0 24px 60px rgba(10, 36, 82, 0.13);
  --shadow-azure: 0 14px 34px rgba(91, 146, 214, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--azure); color: #fff; }

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--margin-mobile);
  z-index: 200;
  background: var(--azure);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Typography tokens
   -------------------------------------------------------------------------- */
.display-lg,
.headline-md,
.headline-sm {
  font-family: var(--font-display);
  margin: 0;
}

.display-lg {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headline-md {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.headline-sm {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.body-lg { font-size: 17px; line-height: 28px; letter-spacing: 0.01em; }
.body-md { font-size: 15px; line-height: 24px; letter-spacing: 0; }

.label-xl,
.label-md {
  font-family: var(--font-label);
  text-transform: uppercase;
  line-height: 1;
}
.label-xl { font-size: 16px; font-weight: 800; letter-spacing: 0.1em; }
.label-md { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }

.lede {
  font-size: 17px;
  line-height: 28px;
  color: var(--on-surface-variant);
  margin: 0 0 20px;
}
.lede:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
.shell--narrow { max-width: 860px; }

.section {
  padding-block: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.section--surface { background: var(--surface); }
.section--white { background: var(--white); }
.section--offwhite { background: var(--off-white); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy-deep { background: var(--navy-deep); color: #fff; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head .display-lg { color: var(--navy-deep); }
.section--navy .section-head .display-lg,
.section--navy-deep .section-head .display-lg { color: #fff; }

/* Eyebrow chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 146, 214, 0.18);
  color: var(--azure);
  padding: 9px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow .icon { width: 14px; height: 14px; }

/* Diagonal texture used on navy panels */
.bg-diagonal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.025) 0 2px,
    transparent 2px 8px
  );
  pointer-events: none;
}
.bg-diagonal > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   5. Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  padding: 17px 32px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--azure); color: #fff; }
.btn--primary:hover { background: #4d84c9; box-shadow: var(--shadow-azure); transform: translateY(-2px); }

.btn--navy { background: var(--navy-deep); color: #fff; }
.btn--navy:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--outline { border-color: var(--outline-variant); color: var(--navy-deep); }
.btn--outline:hover { border-color: var(--navy); background: rgba(91, 146, 214, 0.08); }

.btn--sm { padding: 13px 26px; font-size: 12px; }
.btn--lg { padding: 21px 44px; font-size: 14px; }

.btn--quiet {
  padding: 13px 8px;
  color: var(--on-surface-variant);
}
.btn--quiet:hover { color: var(--navy-deep); }

/* Text link with sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--azure);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.is-stuck {
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(0, 15, 48, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand__mark { height: 42px; width: auto; transition: opacity 0.25s var(--ease); }
.brand:hover .brand__mark { opacity: 0.82; }
.brand__name {
  display: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 34px;
}
.nav__link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-bottom: 6px;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--azure);
  transition: width 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 20px; }

.nav__phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav__phone:hover { color: var(--azure-light); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 88px 0 auto;
  z-index: 99;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px var(--margin-mobile) 32px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .btn { width: 100%; margin-top: 20px; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  height: 100svh;
  max-height: 921px;
  background: var(--navy-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active.is-animating { animation: kenBurns 20s ease-out forwards; }

@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.1) translate(-2%, -1%); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(10, 36, 82, 0.94) 0%,
    rgba(10, 36, 82, 0.72) 42%,
    rgba(10, 36, 82, 0.15) 100%
  );
}
.hero__sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.55; }
.hero__sparkles canvas { width: 100%; height: 100%; display: block; }

.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__content { max-width: 640px; color: #fff; }

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 146, 214, 0.2);
  border: 1px solid rgba(91, 146, 214, 0.4);
  backdrop-filter: blur(6px);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.hero__chip .icon { width: 15px; height: 15px; color: var(--azure-light); }

.hero__title { color: #fff; margin-bottom: 24px; }
.hero__sub {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 0 36px;
  font-weight: 300;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}
.hero__trust-item { display: flex; align-items: center; gap: 8px; }
.hero__trust-item .icon { width: 19px; height: 19px; color: var(--azure-light); }
.hero__trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--azure); }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 17px; height: 17px; }

/* Centred like .shell so the dots line up with the hero copy, not the viewport edge */
.hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  padding-inline: var(--margin-mobile);
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 14px; height: 3px;
  border-radius: var(--radius-full);
  background: #fff;
  opacity: 0.4;
  transition: width 0.4s var(--ease), opacity 0.4s var(--ease);
}
.hero__dot.is-active { width: 46px; opacity: 1; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  animation: floatDown 3s ease-in-out infinite;
}
@keyframes floatDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--navy);
  padding-block: 34px;
  border-top: 1px solid rgba(91, 146, 214, 0.2);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 0;
}
.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-inline: 16px;
  color: #fff;
}
.trust-strip__item + .trust-strip__item { box-shadow: inset 1px 0 0 rgba(91, 146, 214, 0.2); }
.trust-strip__item:nth-child(3) { box-shadow: none; }
.trust-strip__item .icon { color: var(--azure); transition: transform 0.3s var(--ease); }
.trust-strip__item:hover .icon { transform: scale(1.15); }
.trust-strip__item span {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Service cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.service-card__media { position: relative; height: 240px; overflow: hidden; }
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }

/* Signature diagonal shard over the image */
.service-card__shard {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}
.service-card__body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.service-card__icon { color: var(--navy); margin-bottom: 18px; }
.service-card__body h3 {
  color: var(--navy-deep);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.service-card__body p {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 24px;
  margin: 0 0 24px;
  flex: 1;
}

.banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.banner p { color: #fff; margin: 0; font-size: 18px; }

/* --------------------------------------------------------------------------
   11. Before / after comparison
   -------------------------------------------------------------------------- */
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* The "before" layer sits full-size on top and is revealed by clipping, so both
   images stay in register at any viewport width — no JS size syncing needed. */
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}
.compare__before img { width: 100%; height: 100%; object-fit: cover; }

.compare__tag {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.compare__tag--before { left: 18px; background: rgba(10, 36, 82, 0.92); color: #fff; }
.compare__tag--after { right: 18px; background: rgba(255, 255, 255, 0.92); color: var(--navy-deep); }

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease);
}
.compare:hover .compare__handle { background: var(--azure); }
.compare__grip {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
}
.compare__handle:hover .compare__grip { transform: scale(1.12); }

/* Gallery rail */
.rail {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  padding-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item {
  flex: none;
  width: 84vw;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-sm);
}
.rail__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.rail__item:hover img { transform: scale(1.09); }

/* --------------------------------------------------------------------------
   12. Why us
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: center;
}

.why__media { position: relative; }
.why__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why__frame img { width: 100%; height: 100%; object-fit: cover; }
/* Explicit size: an absolutely positioned <svg> falls back to its intrinsic
   ratio instead of filling the inset box, which floats the wedges mid-photo. */
.why__shards {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stat-card {
  position: absolute;
  right: -12px;
  bottom: -24px;
  background: var(--azure);
  color: #fff;
  padding: 26px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease);
}
.stat-card:hover { transform: scale(1.04); }
.stat-card__value {
  font-family: var(--font-label);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__label {
  font-size: 12px;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why__body .display-lg { color: var(--navy-deep); margin-bottom: 26px; }

.sparkle-list { display: grid; gap: 14px; margin-top: 32px; }
.sparkle-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 24px;
}
.sparkle-list .icon { width: 18px; height: 18px; color: var(--azure); }

/* --------------------------------------------------------------------------
   13. Testimonials marquee
   -------------------------------------------------------------------------- */
.marquee { position: relative; width: 100%; overflow: hidden; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__group { display: flex; gap: 24px; padding-inline: 12px; }

.quote-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  width: 340px;
  flex: none;
  box-shadow: 0 18px 44px rgba(0, 15, 48, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-card .stars { color: var(--azure); margin-bottom: 16px; }
.quote-card p {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 24px;
  font-style: italic;
  margin: 0 0 24px;
}
.quote-card__author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-variant);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.quote-card__author h4 {
  margin: 0;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
}
.quote-card__author span { font-size: 13px; color: var(--outline); }

.rating-badge {
  margin: 48px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rating-badge .icon { color: var(--gold); }

/* --------------------------------------------------------------------------
   14. Steps timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline__rail,
.timeline__progress {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  height: 2px;
}
.timeline__rail { width: 100%; background: rgba(255, 255, 255, 0.12); }
.timeline__progress { width: 0; background: var(--azure); transition: width 1.4s var(--ease); }

.timeline__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
.step { text-align: center; display: flex; flex-direction: column; align-items: center; }
.step__num {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid var(--azure);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease);
}
.step:hover .step__num { transform: scale(1.08); background: var(--navy-mid); }
.step h3 {
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 24px;
  max-width: 260px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. Service area
   -------------------------------------------------------------------------- */
.area__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-top: 28px;
}
.area__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface-variant);
  font-size: 15px;
}
.area__list .icon { width: 16px; height: 16px; color: var(--azure); }

.area__map { position: relative; }
.area__map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(91, 146, 214, 0.16);
}
.area__map-embed {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}
.area__pill {
  position: absolute;
  right: -12px;
  bottom: -18px;
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(91, 146, 214, 0.2);
  color: var(--navy);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 0 rgba(91, 146, 214, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(91, 146, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 146, 214, 0); }
}

/* --------------------------------------------------------------------------
   16. Estimate form
   -------------------------------------------------------------------------- */
.estimate__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1040px;
  margin-inline: auto;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--on-surface);
  position: relative;
  overflow: hidden;
}

.progress__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--outline);
}
.progress__labels span.is-done { color: var(--navy); }
.progress__bar {
  height: 4px;
  background: var(--surface-variant);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 32px;
}
.progress__fill {
  height: 100%;
  width: 33.33%;
  background: var(--azure);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
}

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: panelIn 0.4s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-panel > h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy-deep);
  margin: 0 0 26px;
}

.field { margin-bottom: 20px; }
.field__label,
.fieldset__legend {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--gray-cool);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(91, 146, 214, 0.18);
}
.textarea { resize: vertical; min-height: 76px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2344464f'%3E%3Cpath d='M12 15.5 5.5 9h13z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

fieldset { border: 0; padding: 0; margin: 0 0 20px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-stack { display: grid; gap: 12px; }

.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--gray-cool);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.choice--tile label { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.choice label:hover { border-color: var(--azure); }
.choice input:checked + label {
  background: var(--azure);
  border-color: var(--azure);
  color: #fff;
}
.choice input:focus-visible + label { outline: 2px solid var(--azure); outline-offset: 3px; }
.choice__title {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.choice__hint { font-size: 13px; line-height: 19px; opacity: 0.8; margin-top: 3px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.form-actions--end { justify-content: flex-end; }
.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--on-surface-variant);
  margin: 16px 0 0;
}

.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.is-active { display: block; animation: panelIn 0.4s var(--ease); }
.form-success__icon {
  width: 78px; height: 78px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(91, 146, 214, 0.12);
  color: var(--azure);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success__icon .icon { width: 38px; height: 38px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 12px;
}
.form-success p { color: var(--on-surface-variant); font-size: 15px; margin: 0 auto 28px; max-width: 380px; }
.link-underline {
  color: var(--azure);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Contact rail */
.contact { color: #fff; }
.contact h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azure-light);
  margin: 0 0 18px;
}
.contact > p { color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 24px; margin: 0 0 32px; }
.contact__list { display: grid; gap: 22px; }
.contact__item { display: flex; align-items: center; gap: 16px; }
.contact__icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.contact__item:hover .contact__icon { background: var(--azure); border-color: var(--azure); }
.contact__meta {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.contact__value { font-size: 17px; }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 4px; }
.faq details {
  border-bottom: 1px solid var(--outline-variant);
  padding-block: 22px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-deep);
}
.faq summary .icon {
  flex: none;
  color: var(--azure);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary .icon { transform: rotate(135deg); }
.faq__answer {
  margin-top: 14px;
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 25px;
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 120px 0 40px;
  overflow: hidden;
}
.footer__shape {
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  width: 100%;
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand-mark { height: 74px; width: auto; margin-bottom: 22px; }
.footer__about { color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 24px; margin: 0 0 24px; max-width: 34ch; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { background: var(--azure); border-color: var(--azure); transform: translateY(-3px); }
.footer__social .icon { width: 19px; height: 19px; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.footer__links { display: grid; gap: 14px; }
.footer__links a,
.footer__links li { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.footer__links a:hover { color: var(--azure-light); }
.footer__links li { display: flex; align-items: center; gap: 12px; }
.footer__links .icon { width: 18px; height: 18px; color: var(--azure); flex: none; }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom a:hover { color: #fff; }

/* Floating call button (mobile) */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--azure);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-azure);
  transition: transform 0.25s var(--ease);
}
.fab:hover { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
/* Only hide content when scripting is available to bring it back. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The marquee needs its JS-cloned second group to loop seamlessly. */
html:not(.js) .marquee__track { animation: none; }

/* --------------------------------------------------------------------------
   20. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .banner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .form-card { padding: 44px; }
}

@media (min-width: 768px) {
  :root { --margin-mobile: var(--gutter); }

  .display-lg { font-size: 48px; }
  .section-head { margin-bottom: 72px; }

  .trust-strip__grid { grid-template-columns: repeat(4, 1fr); }
  .trust-strip__item:nth-child(3) { box-shadow: inset 1px 0 0 rgba(91, 146, 214, 0.2); }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .compare { aspect-ratio: 16 / 9; }
  .rail__item { width: 400px; }

  .timeline__rail,
  .timeline__progress { display: block; }
  .timeline__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
  .fab { display: none; }
}

@media (min-width: 1024px) {
  .nav__phone { display: flex; }
  .brand__name { display: block; }
  .estimate__layout { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .brand__mark { height: 48px; }
  .split { gap: 88px; }
}

@media (max-width: 767px) {
  :root { --section-padding: 64px; }
  .display-lg { font-size: 32px; letter-spacing: 0.06em; }
  .headline-md { font-size: 26px; }
  .hero { height: auto; min-height: 0; padding-block: 132px 96px; max-height: none; }
  .hero__scroll { display: none; }
  .stat-card { right: 0; bottom: -20px; padding: 20px 24px; }
  .stat-card__value { font-size: 34px; }
  .footer { padding-top: 88px; }
  .marquee::before, .marquee::after { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
