/* ==========================================================================
   Pristine Care Australia — Design Tokens & Base
   ========================================================================== */

:root {
  /* Refined brand palette — calmer, more premium; cyan reserved for
     primary actions/links/icons rather than decorative overuse */
  --navy-950: #03131F;
  --navy-900: #071E2E;
  --navy-800: #0E2A3D;
  --navy-700: #163B52;
  --navy-600: #1F4D68;
  --blue-500: #19BCE4;
  --blue-400: #3FC9E8;
  --blue-300: #7DDBF2;
  --blue-100: #E3F6FE;
  --teal-400: #39BFC3;

  --ink: #15232D;
  --slate-600: #4A5A63;
  --slate-500: #61717B;
  --slate-300: #C8D3D6;
  --slate-100: #E8EFF0;
  --bg-light: #F7F9F8;
  --bg-pale-blue: #EDF7F9;
  --white: #ffffff;

  --success: #1fa971;
  --outline-black: #0a0a0a;

  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 27, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, 0.16);
  --shadow-glow: 0 0 0 1px rgba(25, 188, 228, 0.18), 0 20px 50px rgba(25, 188, 228, 0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 76px;
}

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

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

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

::selection { background: var(--blue-400); color: var(--navy-950); }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-500); }

.font-display { font-family: var(--font-display); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
@media (min-width: 1200px) { .wrap { padding-inline: 56px; } }

.section { padding-block: clamp(48px, 7vw, 92px); position: relative; }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-400);
  display: inline-block;
  border-radius: 2px;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}
.text-muted { color: var(--slate-500); }
.accent-italic { font-style: italic; color: var(--blue-500); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 26px 60px rgba(25, 188, 228, 0.38); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--slate-300);
  color: var(--navy-900);
}
.btn-outline-navy:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 11px 22px; font-size: 0.85rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

/* Default header: solid/light so it's never mistaken for part of the page
   background beneath it. On the homepage (body.has-dark-hero) it starts
   transparent over the dark video hero instead, then both variants
   converge on the same solid deep-navy state once scrolled. */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(11, 27, 51, 0.07);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), height 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.site-header.is-solid {
  height: 68px;
  background: rgba(3, 19, 31, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16), 0 20px 44px rgba(2, 8, 16, 0.28);
}
.site-header.is-solid .main-nav > a,
.site-header.is-solid .main-nav > .nav-item-dropdown > .nav-dropdown-trigger { color: rgba(255, 255, 255, 0.78); }
.site-header.is-solid .main-nav > a:hover,
.site-header.is-solid .main-nav > .nav-item-dropdown > .nav-dropdown-trigger:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-header.is-solid .main-nav > a.is-active,
.site-header.is-solid .nav-dropdown-trigger.is-active { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header.is-solid .nav-item-dropdown > .nav-dropdown-chevron { color: rgba(255, 255, 255, 0.78); }
.site-header.is-solid .brand-name { color: #fff; }
.site-header.is-solid .brand-name small { opacity: 0.72; }
.site-header.is-solid .header-phone { color: rgba(255, 255, 255, 0.88); }
.site-header.is-solid .header-phone svg { color: var(--blue-400); }
.site-header.is-solid .nav-toggle { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.site-header.is-solid .nav-dropdown-chevron { color: inherit; }

/* Homepage only: header starts transparent/glass over the dark hero video,
   with light nav text, until scroll triggers the solid-navy state above. */
body.has-dark-hero .site-header:not(.is-solid) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.has-dark-hero .site-header:not(.is-solid) .main-nav > a,
body.has-dark-hero .site-header:not(.is-solid) .main-nav > .nav-item-dropdown > .nav-dropdown-trigger { color: rgba(255, 255, 255, 0.85); }
body.has-dark-hero .site-header:not(.is-solid) .main-nav > a:hover,
body.has-dark-hero .site-header:not(.is-solid) .main-nav > .nav-item-dropdown > .nav-dropdown-trigger:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
body.has-dark-hero .site-header:not(.is-solid) .main-nav > a.is-active,
body.has-dark-hero .site-header:not(.is-solid) .nav-dropdown-trigger.is-active { color: #fff; background: rgba(255, 255, 255, 0.16); }
body.has-dark-hero .site-header:not(.is-solid) .nav-item-dropdown > .nav-dropdown-chevron { color: rgba(255, 255, 255, 0.85); }
body.has-dark-hero .site-header:not(.is-solid) .brand-name { color: #fff; }
body.has-dark-hero .site-header:not(.is-solid) .brand-name small { opacity: 0.75; }
body.has-dark-hero .site-header:not(.is-solid) .header-phone { color: rgba(255, 255, 255, 0.85); }
body.has-dark-hero .site-header:not(.is-solid) .header-phone svg { color: var(--blue-300); }
body.has-dark-hero .site-header:not(.is-solid) .nav-toggle { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white);
  padding: 3px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--navy-950);
}
.brand-name small { display: none; font-family: var(--font-sans); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; margin-top: 2px; white-space: nowrap; }
@media (min-width: 560px) { .brand-name small { display: block; } }

.main-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 992px) { .main-nav { display: flex; } }
.main-nav a {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-pill);
  transition: color 0.3s ease, background 0.3s ease;
}
.main-nav a:hover { color: var(--navy-950); background: var(--slate-100); }
.main-nav a.is-active { color: var(--navy-950); background: var(--blue-100); }

/* Services hover dropdown (desktop). The trigger link and the chevron
   toggle button are separate elements: clicking "Services" navigates to
   the main services page, clicking the chevron just opens/closes the
   menu. The menu sits flush against the trigger (no visual gap creates a
   dead zone) — the 10px of breathing room is padding *inside* the
   hoverable box instead, so moving the cursor from trigger to menu never
   leaves a hoverable element and the dropdown never closes prematurely. */
.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; }
.nav-dropdown-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: -6px;
  background: none; border: none; border-radius: 50%; color: inherit;
}
.nav-dropdown-chevron svg { width: 13px; height: 13px; transition: transform 0.25s ease; pointer-events: none; }
.nav-item-dropdown:hover .nav-dropdown-chevron svg,
.nav-item-dropdown:focus-within .nav-dropdown-chevron svg,
.nav-item-dropdown.is-open .nav-dropdown-chevron svg { transform: rotate(180deg); }
.nav-dropdown-menu-wrap {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
  padding-top: 10px; /* bridges the gap while staying part of the hoverable box */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 90;
}
.nav-item-dropdown:hover .nav-dropdown-menu-wrap,
.nav-item-dropdown:focus-within .nav-dropdown-menu-wrap,
.nav-item-dropdown.is-open .nav-dropdown-menu-wrap {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu {
  width: 600px; max-width: 82vw;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px;
}
.nav-dropdown-menu.is-compact { width: 220px; grid-template-columns: 1fr; padding: 10px; }
.nav-dropdown-menu.is-locations { width: 440px; grid-template-columns: repeat(2, 1fr); }
.nav-dropdown-group h4 {
  margin: 0 0 8px 10px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-500);
}
.nav-dropdown-group { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-menu a {
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--slate-600);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible { background: var(--blue-100); color: var(--navy-950); }
.nav-dropdown-footer {
  grid-column: 1 / -1;
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}
.nav-dropdown-footer a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; font-size: 0.86rem; font-weight: 700; color: var(--blue-500);
}
.nav-dropdown-footer a svg { width: 14px; height: 14px; }
.nav-dropdown-footer a:hover { color: var(--navy-950); background: none; }

/* Mobile expandable services submenu */
.mobile-nav-item-dropdown { display: flex; flex-direction: column; }
.mobile-nav-dropdown-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-dropdown-row > a { flex-grow: 1; }
.mobile-nav-dropdown-toggle {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); background: none; border: none;
}
.mobile-nav-dropdown-toggle svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.mobile-nav-item-dropdown.is-open .mobile-nav-dropdown-toggle svg { transform: rotate(180deg); }
.mobile-nav-submenu {
  max-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: max-height 0.35s ease;
}
.mobile-nav-item-dropdown.is-open .mobile-nav-submenu { max-height: 1400px; }
.mobile-nav-submenu a {
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 11px 4px 11px 16px; border-bottom: none;
}
.mobile-nav-submenu-heading {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-400); padding: 14px 4px 4px 16px;
}
.mobile-nav-submenu-heading:first-child { padding-top: 8px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
/* On narrow phones, the logo + "Get a Free Quote" button + hamburger icon
   don't all fit in one row and the toggle gets pushed off-screen. Hide the
   header's quote button below 480px — it's already duplicated inside the
   mobile menu itself, so nothing is lost. */
.header-actions > .btn { display: none; }
@media (min-width: 480px) { .header-actions > .btn { display: inline-flex; } }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-950);
}
@media (min-width: 640px) { .header-phone { display: inline-flex; } }
.header-phone svg { width: 18px; height: 18px; color: var(--blue-500); }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--navy-950);
}
@media (min-width: 992px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-950);
  display: flex; flex-direction: column;
  padding: 110px 28px 40px;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.7rem; color: var(--white); padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu-foot { margin-top: auto; color: rgba(255,255,255,0.55); font-size: 0.85rem; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-foot a { color: var(--blue-300); font-size: 0.95rem; font-weight: 700; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: radial-gradient(120% 90% at 15% 0%, #142a4d 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  overflow: hidden;
  color: var(--white);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.hero-blob--a { width: 620px; height: 620px; top: -180px; right: -160px; background: radial-gradient(circle, rgba(25,188,228,0.55), transparent 70%); }
.hero-blob--b { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(94,213,255,0.28), transparent 70%); }

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; display: grid; gap: 56px; padding-block: 56px; }
@media (min-width: 992px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-block: 0; } }

.hero-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-chip .dot-badge {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-400);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-950);
}
.hero-chip .dot-badge svg { width: 14px; height: 14px; }

/* Light variant for .hero-chip / blobs / lede when used inside a light .page-hero
   (inner pages) instead of the dark video hero (homepage only). */
.page-hero .hero-chip { background: var(--white); border-color: var(--slate-300); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.page-hero .hero-blob--a { background: radial-gradient(circle, rgba(25,188,228,0.28), transparent 70%); }
.page-hero .lede, .page-hero p.lede { color: var(--slate-600); }

.hero h1, .video-hero-content h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin: 22px 0 20px; }
.hero p.lede, .video-hero-content p.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,0.82); max-width: 46ch; line-height: 1.65; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-trust-row {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 16px 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-trust-row .item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,0.92); letter-spacing: 0.01em; }
.hero-trust-row svg { width: 19px; height: 19px; color: var(--blue-400); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 40px 90px rgba(3, 10, 22, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,32,0) 40%, rgba(6,15,32,0.55) 100%);
}

.hero-float-card {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--white);
  color: var(--navy-950);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  max-width: 260px;
  z-index: 3;
}
@media (max-width: 560px) { .hero-float-card { left: 12px; bottom: -22px; padding: 14px 16px; } }
.hero-float-card .icon-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-float-card .icon-badge svg { width: 22px; height: 22px; }
.hero-float-card strong { display: block; font-size: 0.95rem; }
.hero-float-card span { font-size: 0.78rem; color: var(--slate-500); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 2;
}
@media (min-width: 768px) { .scroll-cue { display: flex; } }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent); overflow: hidden; position: relative; }
.scroll-cue .line::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--blue-400); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip { background: var(--navy-950); padding-block: 26px; border-top: 1px solid rgba(255,255,255,0.06); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 44px; }
.trust-strip .item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.84rem; font-weight: 600; }
.trust-strip svg { width: 18px; height: 18px; color: var(--blue-400); }

/* ==========================================================================
   Cards / generic components
   ========================================================================== */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card img { transition: transform 0.5s var(--ease-out); }
.card:hover img { transform: scale(1.04); }

/* Standardized "text-action" CTA used at the base of any card — a small
   arrow-suffixed link, never an oversized icon button. */
.link-more { font-size: 0.86rem; font-weight: 700; color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; }
.link-more svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.card:hover .link-more svg, a.card:hover .link-more svg, .link-more:hover svg { transform: translateX(4px); }

.icon-tile {
  width: auto; height: auto;
  background: none; border-radius: 0;
  color: var(--blue-500);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}
.icon-tile svg { width: 34px; height: 34px; stroke-width: 1.5; }
.card:hover .icon-tile { transform: scale(1.08); }

.pain-card { padding: 34px 28px; }
.pain-card .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--blue-500); font-weight: 600; }

.diff-card { padding: 32px 26px; }

.service-card { padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.service-card .tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-500); background: var(--blue-100); padding: 4px 10px; border-radius: var(--radius-pill);
}
.service-card h3 { font-size: 1.12rem; margin: 0; color: var(--navy-950); }
.service-card p { color: var(--slate-500); font-size: 0.92rem; line-height: 1.6; margin: 0; flex-grow: 1; }

/* Section band with dark bg */
.band-navy { background: var(--navy-950); color: var(--white); }
.band-navy .text-muted { color: rgba(255,255,255,0.6); }
.band-navy .h-section, .band-navy .h-display { color: var(--white); }
.band-navy .diff-card h3,
.band-navy .how-step h3 { color: var(--white); }
.band-navy .how-step p { color: rgba(255,255,255,0.6); }
.band-navy .trust-grid-item span { color: var(--white); }
.band-navy .card { background: var(--white); }
.band-navy .btn-outline-navy { background: transparent; border-color: rgba(255,255,255,0.28); color: var(--white); }
.band-navy .btn-outline-navy:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--slate-300); background: var(--white); color: var(--slate-600);
  font-size: 0.86rem; font-weight: 700;
  transition: all 0.3s ease;
}
.filter-btn.is-active, .filter-btn:hover { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  aspect-ratio: 1/1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gcap {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,32,0) 45%, rgba(6,15,32,0.82) 100%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gcap { opacity: 1; }
.gallery-item .gcap span { color: var(--white); font-weight: 700; font-size: 0.88rem; }

/* ==========================================================================
   Team / founder
   ========================================================================== */

.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 44px; max-width: 1040px; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.team-card { text-align: center; padding: 28px 22px 30px; }
.team-photo { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy-950); }
.team-card .role { color: var(--blue-500); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }

.founder-wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .founder-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }

/* Equal-size side-by-side founder photo duo */
.founder-photos-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founder-photo-item {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.founder-photo-item img { width: 100%; height: 100%; object-fit: cover; }

.founder-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; color: var(--navy-950); }

/* ==========================================================================
   Reviews / social proof
   ========================================================================== */

.review-card { padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; }
.review-stars { display: flex; gap: 3px; color: var(--blue-500); }
.review-stars svg { width: 16px; height: 16px; }
.review-card p.quote { color: var(--slate-600); font-size: 0.98rem; line-height: 1.65; margin: 0; flex-grow: 1; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-900); color: var(--blue-300);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
}
.review-who strong { display: block; font-size: 0.9rem; color: var(--navy-950); }
.review-who span { font-size: 0.78rem; color: var(--slate-500); }

.reviews-cta-box {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-item { border-bottom: 1px solid var(--slate-100); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 1.08rem; color: var(--navy-950);
}
.faq-q .plus {
  width: 30px; height: 30px; border-radius: 50%; background: var(--slate-100);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}
.faq-q .plus svg { width: 14px; height: 14px; color: var(--navy-900); transition: transform 0.4s var(--ease-out); }
.faq-item.is-open .faq-q .plus { background: var(--blue-400); }
.faq-item.is-open .faq-q .plus svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a-inner { padding: 0 4px 24px; color: var(--slate-500); line-height: 1.7; max-width: 62ch; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--navy-900); }
.field .req { color: var(--blue-500); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.96rem;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-300); background: var(--white); color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(25, 188, 228, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-error { font-size: 0.78rem; color: #d64545; min-height: 1em; }
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: #e8f9f1; color: var(--success); }
.form-status.error { background: #fdecec; color: #c0392b; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.74); padding-top: 64px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; } }
.footer-grid h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-grid ul a { font-size: 0.9rem; transition: color 0.25s ease, transform 0.25s ease; display: inline-block; }
.footer-grid ul a:hover { color: var(--blue-300); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  text-align: center;
}
.footer-bottom a { transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--blue-300); }
@media (max-width: 560px) { .footer-bottom { flex-direction: column; justify-content: center; } }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.12);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--blue-400); color: var(--navy-950); }

/* ==========================================================================
   Reveal animation base states (GSAP toggles .is-revealed)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); }
.reveal-scale.is-revealed { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .hero-blob { animation: none !important; }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.divider-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--slate-300), transparent); }
.badge-abn { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--navy-950); padding: 12px 20px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

.page-hero {
  background: radial-gradient(120% 100% at 20% 0%, #eaf3fc 0%, var(--bg-light) 55%, var(--white) 100%);
  color: var(--navy-950);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-100);
}
.page-hero .text-muted { color: var(--slate-600); }
.legal-content h2 { font-family: var(--font-display); color: var(--navy-950); margin-top: 40px; }
.legal-content p, .legal-content li { color: var(--slate-600); line-height: 1.75; }

/* ==========================================================================
   Solutions banner ("Complete Property Care Solutions" icon-grid card)
   ========================================================================== */

.solutions-banner {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 56px) clamp(40px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--blue-400);
  overflow: hidden;
}
.solutions-banner::before, .solutions-banner::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 96px; height: 96px;
  background-image: radial-gradient(var(--slate-300) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}
.solutions-banner::before { left: 24px; }
.solutions-banner::after { right: 24px; }
.solutions-banner-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(100deg, var(--navy-950), var(--navy-800) 55%, var(--blue-500));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scale(1.6, 1) translateY(40%);
  opacity: 0.9;
  z-index: 0;
}
.solutions-banner-head { position: relative; z-index: 1; text-align: center; max-width: 620px; margin-inline: auto; }
.solutions-pill {
  display: inline-block; margin-top: 18px;
  background: var(--navy-950); color: var(--white);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 20px; border-radius: var(--radius-pill);
}
.solutions-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin-top: 44px;
}
@media (min-width: 560px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .solutions-grid { grid-template-columns: repeat(5, 1fr); } }

.solution-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.solution-item .circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: var(--blue-300);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  box-shadow: 0 10px 24px rgba(11,27,51,0.18);
}
.solution-item .circle svg { width: 28px; height: 28px; }
.solution-item span { font-size: 0.82rem; font-weight: 700; color: var(--navy-950); line-height: 1.3; max-width: 12ch; }
.solution-item:hover .circle { transform: translateY(-5px) scale(1.06); box-shadow: 0 16px 30px rgba(25,188,228,0.32); }

.solutions-foot {
  position: relative; z-index: 1;
  margin-top: 46px; padding-top: 30px;
  border-top: 1px solid var(--slate-100);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 34px;
}
.solutions-foot .item { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; font-weight: 700; color: var(--slate-600); }
.solutions-foot svg { width: 18px; height: 18px; color: var(--blue-500); }

.solutions-tagline {
  position: relative; z-index: 1;
  text-align: center; margin-top: 30px;
  font-family: var(--font-display); font-style: italic; color: var(--navy-950);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.solutions-cta { position: relative; z-index: 1; display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ==========================================================================
   Gallery teaser (homepage compact version)
   ========================================================================== */

.gallery-teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .gallery-teaser-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-teaser-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 639px) { .gallery-teaser-grid .gallery-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; } }

/* ==========================================================================
   Video hero (scroll-clip reveal)
   ========================================================================== */

.video-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.video-hero-sticky {
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--navy-950);
}
.video-hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.video-hero-media video, .video-hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-clip { opacity: 0; transition: opacity 1.4s ease; }
.hero-clip.is-active { opacity: 1; }
.video-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,32,0.55) 0%, rgba(6,15,32,0.35) 40%, rgba(6,15,32,0.75) 100%);
}
.video-hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  color: var(--white);
}
.video-hero .scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; }

/* ==========================================================================
   Quote band (condensed form directly beneath the hero)
   ========================================================================== */

.quote-band { background: var(--white); border-bottom: 1px solid var(--slate-100); }
.quote-band-inner {
  background: var(--bg-light);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  margin-top: -64px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) {
  .quote-band-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
}
.quote-band-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.quote-form-compact .form-grid { gap: 16px; }
.quote-form-compact .field input,
.quote-form-compact .field select { padding: 12px 14px; }

/* ==========================================================================
   Trust grid (2x2, no boxed icons)
   ========================================================================== */

.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px;
  max-width: 760px; margin-inline: auto;
}
@media (min-width: 640px) { .trust-grid { gap: 40px; } }
.trust-grid-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-grid-item svg { width: 34px; height: 34px; color: var(--blue-500); stroke-width: 1.5; }
.trust-grid-item span { font-weight: 700; font-size: 0.92rem; color: var(--navy-950); }

/* Standalone stat used sparingly near the top of the page */
.stat-inline { display: inline-flex; align-items: baseline; gap: 8px; }
.stat-inline strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy-950); }
.stat-inline span { font-size: 0.88rem; color: var(--slate-500); font-weight: 600; }

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 768px) { .how-it-works-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.how-step { text-align: center; }
.how-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-500);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.how-step h3 { font-family: var(--font-display); font-size: 1.02rem; color: var(--navy-950); margin: 0 0 8px; }
.how-step p { color: var(--slate-500); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.how-step-connector { display: none; }
@media (min-width: 768px) {
  .how-step-wrap { position: relative; }
  .how-step-wrap:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; left: calc(50% + 40px); width: calc(100% - 56px);
    border-top: 2px dashed var(--slate-300);
  }
}

/* ==========================================================================
   Story + People combined section
   ========================================================================== */

.story-people-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 992px) { .story-people-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.story-photo-col { display: flex; flex-direction: column; height: 100%; }
.story-photo-col .founder-photos-duo { flex-grow: 1; }
.story-photo-col .founder-photo-item { height: 100%; }
.story-people-people { margin-top: 56px; }
.people-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 720px) { .people-grid { grid-template-columns: repeat(4, 1fr); } }
.people-item { text-align: center; }
.people-photo { aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; }
.people-photo img { width: 100%; height: 100%; object-fit: cover; }
.people-item h3 { margin: 0 0 2px; font-size: 1rem; font-family: var(--font-display); color: var(--navy-950); }
.people-item .role { color: var(--blue-500); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   Gallery carousel (swipeable, before/after aware)
   ========================================================================== */

.gallery-carousel-wrap { position: relative; }
.gallery-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-carousel-item {
  scroll-snap-align: start; flex: 0 0 auto;
  width: min(340px, 78vw);
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-carousel-item .gcap {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,32,0) 50%, rgba(6,15,32,0.78) 100%);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-carousel-item .gcap span { color: var(--white); font-weight: 700; font-size: 0.88rem; }
.gallery-carousel-item .ba-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill); color: var(--white);
}
.gallery-carousel-item .ba-badge.before { background: var(--slate-500); }
.gallery-carousel-item .ba-badge.after { background: var(--blue-500); }
/* Homepage "Our Work" gallery only — continuous auto-scroll, same
   compositor-driven keyframe technique as the reviews marquee. Other
   gallery-carousel-wrap instances site-wide keep plain click/swipe nav. */
.gallery-carousel-wrap.is-home-marquee.has-marquee { overflow: hidden; }
.gallery-carousel-wrap.is-home-marquee.has-marquee .gallery-carousel {
  overflow: visible;
  width: max-content;
  animation: gallery-marquee 40s linear infinite;
}
.gallery-carousel-wrap.is-home-marquee.has-marquee:hover .gallery-carousel,
.gallery-carousel-wrap.is-home-marquee.has-marquee:focus-within .gallery-carousel,
.gallery-carousel-wrap.is-home-marquee.has-marquee.is-touching .gallery-carousel {
  animation-play-state: paused;
}
@keyframes gallery-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery-nav { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.gallery-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--slate-300); background: var(--white); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.gallery-nav button:hover { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.gallery-nav button svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reviews — auto-scrolling horizontal carousel
   ========================================================================== */

.reviews-carousel-wrap { position: relative; margin-top: 40px; }
.reviews-carousel {
  display: flex; gap: 22px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
/* Continuous auto-scroll mode (JS adds .has-marquee when motion is allowed):
   the track's width collapses to its content and a CSS keyframe animation
   drives the movement directly on the compositor, so it can never silently
   fail to run the way a JS-timed scroll loop can. The card set is cloned
   once so -50% lands exactly on the start of the identical clone set. */
.reviews-carousel-wrap.has-marquee {
  overflow: hidden;
}
.reviews-carousel-wrap.has-marquee .reviews-carousel {
  overflow: visible;
  width: max-content;
  animation: reviews-marquee 44s linear infinite;
}
.reviews-carousel-wrap.has-marquee:hover .reviews-carousel,
.reviews-carousel-wrap.has-marquee:focus-within .reviews-carousel,
.reviews-carousel-wrap.has-marquee.is-touching .reviews-carousel {
  animation-play-state: paused;
}
@keyframes reviews-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.review-card-static {
  position: relative;
  height: 100%;
  background: var(--white); border: 1px solid var(--slate-100); border-bottom: 3px solid var(--blue-400);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
/* Sizing below only applies inside the homepage's flex-based carousel track —
   review cards used in a plain CSS grid (service-page testimonials) fill
   their grid cell naturally via minmax(280px,1fr) instead. */
.reviews-carousel .review-card-static { flex: 0 0 auto; width: min(360px, 84vw); }
@media (min-width: 768px) { .reviews-carousel .review-card-static { width: calc((100% - 44px) / 2); } }
@media (min-width: 1100px) { .reviews-carousel .review-card-static { width: calc((100% - 44px) / 3); } }
/* Marquee mode's track is width:max-content (sized from its own children),
   so percentage-of-container card widths above would create a circular
   layout dependency and blow up unpredictably. Fixed pixel widths instead —
   these selectors are more specific so they win over the rules above. */
.reviews-carousel-wrap.has-marquee .review-card-static { width: min(340px, 84vw); }
@media (min-width: 768px) { .reviews-carousel-wrap.has-marquee .review-card-static { width: 320px; } }
@media (min-width: 1100px) { .reviews-carousel-wrap.has-marquee .review-card-static { width: 360px; } }

/* Two-row scrolling grid — both rows share the same track/animation
   mechanics as the single-row marquee above, just stacked and using a
   denser card variant so more reviews are visible at once. */
.reviews-marquee-rows { display: flex; flex-direction: column; gap: 16px; }
.reviews-marquee-rows .reviews-carousel { gap: 16px; }
.review-card-static.is-compact {
  padding: 20px 22px 18px;
  text-align: left;
  align-items: flex-start;
  gap: 10px;
}
.reviews-carousel-wrap.has-marquee .review-card-static.is-compact { width: min(280px, 78vw); }
@media (min-width: 768px) { .reviews-carousel-wrap.has-marquee .review-card-static.is-compact { width: 260px; } }
@media (min-width: 1100px) { .reviews-carousel-wrap.has-marquee .review-card-static.is-compact { width: 280px; } }
.review-card-static.is-compact .review-slide-quotemark { display: none; }
.review-card-static.is-compact .review-stars { justify-content: flex-start; }
.review-card-static.is-compact .review-stars svg { width: 15px; height: 15px; }
.review-card-static.is-compact .quote {
  font-size: 0.88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card-static.is-compact .quote.is-headline { font-size: 0.98rem; -webkit-line-clamp: 2; }
.review-card-static.is-compact .review-slide-head { flex-direction: row; gap: 10px; align-items: center; }
.review-card-static.is-compact .review-slide-who { text-align: left; }
.review-card-static.is-compact .review-avatar { width: 32px; height: 32px; font-size: 0.86rem; flex-shrink: 0; }
.review-card-static.is-compact .review-slide-who strong { font-size: 0.86rem; }
.review-card-static.is-compact .review-slide-who em { font-size: 0.72rem; }
.review-card-static .review-slide-quotemark { position: absolute; top: 10px; right: 18px; font-size: 3.6rem; color: var(--blue-100); font-family: var(--font-display); }
.review-card-static .review-stars { justify-content: center; }
.review-card-static .review-stars svg { width: 19px; height: 19px; }
.review-card-static .quote { font-family: var(--font-display); font-weight: 500; color: var(--navy-950); font-size: 1.02rem; line-height: 1.55; margin: 0; position: relative; z-index: 1; }
.review-card-static .quote.is-headline { font-size: 1.3rem; }
.review-card-static .review-slide-head { flex-direction: column; gap: 8px; align-items: center; }
.review-card-static .review-slide-who { text-align: center; }
.review-card-static .review-avatar { background: var(--navy-900); color: var(--white); font-family: var(--font-display); }

/* ==========================================================================
   Simplified final CTA
   ========================================================================== */

.final-cta-ghost-link {
  display: inline-block; margin-top: 16px;
  color: rgba(255,255,255,0.75); font-weight: 700; font-size: 0.92rem;
  text-decoration: underline; text-underline-offset: 4px;
}
.final-cta-ghost-link:hover { color: var(--white); }

/* ==========================================================================
   Mobile-only homepage hero fixes (phones — desktop/tablet untouched)
   1) Hero chip sat too close to the header and wasn't centred once the
      hero content is squeezed into a short mobile viewport.
   2) The quote-band card's negative margin-top (designed to float the card
      up over the *bottom edge* of a tall desktop hero) was strong enough on
      short mobile screens to climb up over the trust-row text instead.
   ========================================================================== */
@media (max-width: 767px) {
  .video-hero-content .hero-copy { text-align: center; }
  .video-hero-content .hero-chip { margin-top: 28px; }
  .video-hero-content .hero-cta-row { justify-content: center; }
  .video-hero-content .hero-trust-row { justify-content: center; }

  .quote-band-inner { margin-top: 24px; }
}

