/* ===========================
   Vantra Building Services
   =========================== */

:root {
  --navy-900: #06142b;
  --navy-800: #0a1f3f;
  --navy-700: #12305c;
  --green-500: #8dc63f;
  --green-400: #a4d65e;
  --green-600: #6fa82a;
  --green-50: #f1f8e6;
  --ink: #0f1b2d;
  --muted: #5a6778;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(6, 20, 43, .06), 0 12px 32px rgba(6, 20, 43, .08);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-green {
  background: var(--green-500);
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(141, 198, 63, .35);
}
.btn-green:hover { background: var(--green-400); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-400); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 18px;
}
.eyebrow.dark { color: var(--green-600); }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(141, 198, 63, .2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 20, 43, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-text small {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
  font-size: .98rem;
  transition: color .15s;
}
.site-nav a:not(.btn):hover { color: var(--green-400); }

.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(141, 198, 63, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(18, 48, 92, .9), transparent 70%),
    var(--navy-900);
  padding: 96px 0 180px;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hl { color: var(--green-500); }
.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-proof { display: flex; align-items: center; gap: 14px; }
.hero-proof p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .98rem; }
.hero-proof strong { color: #fff; }
.stars { color: #ffc93c; letter-spacing: 2px; font-size: 1.15rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.badge-ring {
  width: min(380px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from 200deg, var(--green-500), rgba(141, 198, 63, .1), var(--green-500));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 120px rgba(141, 198, 63, .25);
}
.badge-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.float-card strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.float-card small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.fc-1 { left: -10px; bottom: 40px; }
.fc-2 { right: -10px; top: 20px; flex-direction: column; align-items: flex-start; gap: 2px; }
.fc-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
  font-weight: 900;
}
.fc-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--navy-800);
}

.skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 140px;
  z-index: 1;
}
.skyline path { fill: rgba(141, 198, 63, .08); }

/* ---------- Trust strip ---------- */
.trust { position: relative; z-index: 3; margin-top: -70px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 28px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-big {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.trust-label { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-sub { color: var(--muted); font-size: 1.15rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--green-500);
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card p { color: var(--muted); font-size: 1rem; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 24px;
  display: grid;
  gap: 8px;
}
.service-list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236fa82a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.service-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-700);
}
.service-link span { display: inline-block; transition: transform .15s; color: var(--green-600); }
.service-link:hover span { transform: translateX(4px); }

/* ---------- Why ---------- */
.why {
  background: var(--navy-900);
  color: #fff;
  background-image: radial-gradient(700px 400px at 100% 0%, rgba(141, 198, 63, .12), transparent 60%);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.why-copy { position: sticky; top: 120px; }
.why-list { display: grid; gap: 16px; }
.why-item {
  display: flex;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .2s, background .2s;
}
.why-item:hover { border-color: rgba(141, 198, 63, .5); background: rgba(141, 198, 63, .06); }
.why-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--green-500);
  padding-top: 2px;
}
.why-item h3 { margin-bottom: 6px; }
.why-item p { margin: 0; color: rgba(255, 255, 255, .7); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-soft); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.review-card blockquote {
  margin: 16px 0 28px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
}
.review-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card figcaption strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.review-card figcaption small { color: var(--muted); font-size: .88rem; }
.avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--green-500);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
}

/* ---------- Process ---------- */
.process-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--green-50);
}
.process-step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 22px;
}

/* ---------- Quote ---------- */
.quote {
  background:
    radial-gradient(800px 500px at 0% 100%, rgba(141, 198, 63, .16), transparent 60%),
    var(--navy-800);
  color: #fff;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.quote-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.quote-points li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  font-size: 1.05rem;
}
.quote-points li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
  font-size: .78rem;
  font-weight: 900;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 36px;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; }
.quote-form label span { font-weight: 600; font-size: .92rem; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(141, 198, 63, .2);
}
.quote-form .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand img {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  margin-bottom: 18px;
}
.footer-brand p { max-width: 320px; font-size: .98rem; }
.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .98rem; }
.site-footer a:hover { color: var(--green-400); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, label:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 22px; }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 160px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; padding: 20px 0; }
  .badge-ring { width: min(300px, 70vw); }
  .fc-1 { left: 0; bottom: 0; }
  .fc-2 { right: 0; top: 0; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .why-grid, .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-copy { position: static; }
  .review-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-burger {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    display: block;
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: transform .2s, background .2s;
  }
  .nav-burger span::before,
  .nav-burger span::after { content: ""; position: absolute; left: 0; }
  .nav-burger span::before { top: -6px; }
  .nav-burger span::after { top: 6px; }

  .site-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .site-nav .btn { margin-top: 16px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 24px; }
  .trust-item { padding: 20px 18px; }
  .trust-big { font-size: 1.15rem; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .float-card { padding: 10px 14px; }
  .brand-text small { font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Crop the logo's black corners so only the round badge shows */
.brand-logo,
.badge-ring img,
.footer-brand img {
  clip-path: circle(45.5% at 50% 50%);
  transform: scale(1.09);
}

/* ---------- CEO / Leadership ---------- */
.ceo { background: #fff; }
.ceo-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.ceo-photo { position: relative; display: flex; justify-content: center; }
.ceo-ring {
  width: min(400px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, var(--green-500), var(--navy-800));
  box-shadow: var(--shadow);
}
.ceo-ring img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  /* the source photo has dark corners around a round crop */
  clip-path: circle(45% at 50% 50%);
  transform: scale(1.1);
}
.ceo-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--green-400);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(6, 20, 43, .25);
}
.ceo-lead {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy-800);
}
.ceo-copy > p:not(.eyebrow):not(.ceo-lead) { color: var(--muted); font-size: 1.08rem; }
.ceo-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ceo-sign strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.ceo-sign small { color: var(--muted); }
.ceo-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy-800);
  transition: border-color .15s, color .15s;
}
.ceo-linkedin svg { width: 18px; height: 18px; color: #0a66c2; }
.ceo-linkedin:hover { border-color: var(--green-500); }

@media (max-width: 900px) {
  .ceo-grid { grid-template-columns: 1fr; gap: 56px; }
  .ceo-ring { width: min(320px, 78vw); }
}

/* ---------- Contact cards (quote section) ---------- */
.contact-cards { display: grid; gap: 12px; margin-top: 36px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.contact-card:hover { border-color: var(--green-500); background: rgba(141, 198, 63, .08); }
.contact-icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-card > span:last-child { min-width: 0; }
.contact-card small {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.contact-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #fff;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .contact-card { padding: 14px 16px; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-card strong { font-size: clamp(.9rem, 4.2vw, 1.1rem); }
}

/* ---------- Social links ---------- */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.social-links a:hover { background: var(--green-500); border-color: var(--green-500); color: var(--navy-900); }
.social-links svg { width: 20px; height: 20px; }
div.contact-card:hover { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); }

/* ---------- Before / After slider ---------- */
.results { background: var(--bg-soft); }
.compare {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: 1672 / 941;
  background: var(--navy-900);
  user-select: none;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-tag {
  position: absolute;
  top: 20px;
  z-index: 2;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(6, 20, 43, .85);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}
.tag-before { left: 20px; }
.tag-after { right: 20px; }

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .15s;
}
.compare-knob svg { width: 26px; height: 26px; }
.compare:hover .compare-knob { transform: translate(-50%, -50%) scale(1.06); }

/* Invisible range input on top captures drag, click, touch and keyboard */
.compare-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; cursor: ew-resize; }
.compare-range::-moz-range-thumb { width: 60px; height: 100vh; border: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) .compare-knob {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .compare { border-radius: 14px; }
  .compare-knob { width: 46px; height: 46px; }
  .compare-knob svg { width: 20px; height: 20px; }
  .compare-tag { top: 12px; padding: 6px 12px; font-size: .7rem; }
  .tag-before { left: 12px; }
  .tag-after { right: 12px; }
}


/* Tablet landscape: drop secondary nav links so the header fits */
@media (min-width: 901px) and (max-width: 1180px) {
  .site-nav .nav-extra { display: none; }
}

/* ---------- Header: white state on scroll ---------- */
.site-header { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(6, 20, 43, .08);
}
.site-header.scrolled .brand { color: var(--navy-800); }
.site-header.scrolled .brand-text small { color: var(--green-600); }
.site-header.scrolled .site-nav a:not(.btn) { color: var(--navy-800); }
.site-header.scrolled .site-nav a:not(.btn):hover { color: var(--green-600); }
.site-header.scrolled .btn-green { box-shadow: none; }
.site-header.scrolled .nav-burger { border-color: var(--line); }
.site-header.scrolled .nav-burger span,
.site-header.scrolled .nav-burger span::before,
.site-header.scrolled .nav-burger span::after { background: var(--navy-800); }
.site-header.scrolled .nav-toggle:checked + .nav-burger span { background: transparent; }

@media (max-width: 900px) {
  .site-header.scrolled .site-nav { background: #fff; border-bottom-color: var(--line); }
  .site-header.scrolled .site-nav a:not(.btn) { border-bottom-color: var(--line); }
}

/* ---------- Hero background video ---------- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
/* Size the 16:9 iframe to always cover the hero, like object-fit: cover */
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.15); /* extra scale hides YouTube's edge UI */
  border: 0;
}
/* Navy overlay keeps the headline readable over the footage */
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 20, 43, .92) 0%, rgba(6, 20, 43, .75) 50%, rgba(6, 20, 43, .55) 100%),
    radial-gradient(900px 500px at 85% 20%, rgba(141, 198, 63, .16), transparent 60%);
}
.hero .skyline { z-index: 1; }

@media (max-width: 900px) {
  .hero-video::after { background: rgba(6, 20, 43, .82); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ---------- Transparent header over the hero ---------- */
.site-header {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header:not(.scrolled) .brand-text,
.site-header:not(.scrolled) .site-nav a:not(.btn) {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.site-header:not(.scrolled) .brand-logo { box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.site-header.scrolled { backdrop-filter: blur(10px); }
/* Header is now out of the flow, so the hero makes room for it */
.hero { padding-top: calc(96px + 76px); }

@media (max-width: 900px) {
  .hero { padding-top: calc(64px + 76px); }
  /* Give the bar a solid navy when the mobile menu is open at the top */
  .site-header:not(.scrolled):has(.nav-toggle:checked) { background: var(--navy-900); }
  .site-header:not(.scrolled) .nav-burger { border-color: rgba(255, 255, 255, .3); }
}

/* Thin white divider under the transparent header */
.site-header:not(.scrolled) { border-bottom: 1px solid rgba(255, 255, 255, .22); }

/* Stats card: inset from the screen edges and aligned with other section content */
.trust-grid { padding: 0; width: calc(100% - 48px); max-width: 1152px; }
@media (max-width: 600px) {
  .trust-grid { width: calc(100% - 32px); }
}

/* Keep the navy overlay composited above the YouTube iframe from first paint.
   Without this, Chromium can draw the video layer on top until a repaint (e.g. on scroll). */
.hero-video { isolation: isolate; }
.hero-video iframe { z-index: 0; }
.hero-video::after {
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

/* Windows Chromium can hand the YouTube video to a hardware overlay plane that paints
   over the tint until something with a backdrop-filter (the scrolled header) appears.
   A filter on the iframe + a backdrop-filter on the tint keep it composited normally. */
.hero-video iframe { filter: saturate(.9); }
.hero-video::after {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Lighter tint over the hero video */
.hero-video::after {
  background:
    linear-gradient(90deg, rgba(6, 20, 43, .72) 0%, rgba(6, 20, 43, .5) 50%, rgba(6, 20, 43, .3) 100%),
    radial-gradient(900px 500px at 85% 20%, rgba(141, 198, 63, .12), transparent 60%);
}
.hero h1, .hero .lead, .hero .eyebrow, .hero-proof p { text-shadow: 0 2px 16px rgba(6, 20, 43, .55); }
@media (max-width: 900px) {
  .hero-video::after { background: rgba(6, 20, 43, .62); }
}
