/* ==========================================================================
   Pavage Alibi — editorial landscape / paving system
   ========================================================================== */

:root {
  /* Brand palette (do not hardcode these values elsewhere) */
  --primary: #165b6a;
  --primary-rgb: 22, 91, 106;
  --primary-ink: #ffffff;
  --primary-ink-rgb: 255, 255, 255;
  --primary-dark: #0e3f4a;
  --primary-dark-rgb: 14, 63, 74;
  --primary-light: #2a7a8b;
  --primary-light-rgb: 42, 122, 139;

  --secondary: #7d950b;
  --secondary-rgb: 125, 149, 11;
  --secondary-ink: #111827;
  --secondary-ink-rgb: 17, 24, 39;
  --secondary-dark: #3d4905;
  --secondary-dark-rgb: 61, 73, 5;
  --secondary-light: #cbef22;
  --secondary-light-rgb: 203, 239, 34;

  --accent: #165b69;
  --accent-rgb: 22, 91, 105;
  --accent-ink: #ffffff;
  --accent-ink-rgb: 255, 255, 255;
  --accent-on-light: #165b69;
  --accent-on-light-rgb: 22, 91, 105;

  --text: #1a2429;
  --text-rgb: 26, 36, 41;
  --text-light: #95a5ae;
  --text-light-rgb: 149, 165, 174;
  --text-muted: #98a7b0;
  --text-muted-rgb: 152, 167, 176;

  --background: #ffffff;
  --background-rgb: 255, 255, 255;
  --bg-alt: #0f1a1e;
  --bg-alt-rgb: 15, 26, 30;
  --bg-alt-ink: #ffffff;
  --bg-alt-ink-rgb: 255, 255, 255;

  --surface: #f5f7f8;
  --surface-rgb: 245, 247, 248;
  --border: #868c8e;
  --border-rgb: 134, 140, 142;

  /* Typography */
  --font-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* System scale */
  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px rgba(var(--bg-alt-rgb), 0.08);
  --transition: 240ms cubic-bezier(.2,.7,.2,1);

  /* Neutrals (not palette-derived) */
  --hairline: rgba(var(--text-rgb), 0.10);
  --hairline-strong: rgba(var(--text-rgb), 0.22);
  --hairline-light: rgba(var(--primary-ink-rgb), 0.22);
}

/* ==========================================================================
   Base / reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  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: -40px; left: 16px;
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: var(--bg-alt-ink); }

/* Section label — small tracked eyebrow */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-label--light { color: rgba(var(--primary-ink-rgb), 0.75); }

.section-title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.section-title--md { font-size: clamp(26px, 3.6vw, 44px); }

.section-lede {
  font-size: 18px;
  color: rgba(var(--text-rgb), 0.72);
  max-width: 620px;
  margin-top: 20px;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 780px;
  margin-inline: auto;
}
.section-head .section-lede { margin-inline: auto; }
.section-head--left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head--left .section-lede { margin-inline: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn__arrow {
  display: inline-block;
  transition: transform var(--transition);
  font-size: 1.1em;
  line-height: 1;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--lg { padding: 17px 30px; font-size: 15.5px; }

/* Ghost (over image) — solid dark chip so text passes contrast even over light imagery */
.btn--ghost {
  color: var(--primary-ink);
  border-color: var(--primary-ink);
  border-width: 2px;
  background: var(--bg-alt);
  padding: 13px 23px;
}
.btn--ghost.btn--lg { padding: 16px 29px; }
.btn--ghost:hover {
  color: var(--primary);
  background: var(--primary-ink);
  border-color: var(--primary-ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Ghost on dark section (same as above but explicit) */
.btn--ghost-dark {
  color: var(--primary-ink);
  border-color: rgba(var(--primary-ink-rgb), 0.85);
  background: transparent;
}
.btn--ghost-dark:hover {
  color: var(--text);
  background: var(--primary-ink);
  border-color: var(--primary-ink);
}

/* White filled — for primary CTAs on dark/teal backgrounds */
.btn--white {
  color: var(--primary-dark);
  background: var(--primary-ink);
  border-color: var(--primary-ink);
}
.btn--white:hover {
  color: var(--primary-ink);
  background: transparent;
  border-color: var(--primary-ink);
}

/* Solid secondary CTA — for use on light backgrounds where secondary emphasis is wanted */
.btn--secondary {
  color: var(--secondary-ink);
  background: var(--secondary);
  border-color: var(--secondary);
}
.btn--secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--primary-ink);
}

/* Solid (brand) */
.btn--solid {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
}
.btn--solid:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--primary-ink);
}

/* Primary CTA over dark hero/scrim — brand color, solid */
.btn--primary-on-dark {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--bg-alt-rgb), 0.35);
}
.btn--primary-on-dark:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-ink);
  transform: translateY(-1px);
}

/* Outline on light */
.btn--outline {
  color: var(--primary-dark);
  background: transparent;
  border-width: 2px;
  border-color: var(--primary-dark);
  padding: 13px 23px;
}
.btn--outline:hover {
  color: var(--primary-ink);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Ghost link (no border) */
.btn--link-ghost {
  color: var(--primary-ink);
  background: transparent;
  border: 0;
  padding: 14px 4px;
  text-decoration: none;
}
.btn--link-ghost:hover { color: rgba(var(--primary-ink-rgb), 0.8); }

/* Link with trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
  padding-bottom: 4px;
  transition: color var(--transition), border-color var(--transition);
}
.link-arrow__glyph {
  display: inline-block;
  transition: transform var(--transition);
}
.link-arrow:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.link-arrow:hover .link-arrow__glyph { transform: translateX(4px); }

.link-arrow--light {
  color: var(--primary-ink);
  border-color: rgba(var(--primary-ink-rgb), 0.35);
}
.link-arrow--light:hover {
  color: var(--primary-ink);
  border-color: var(--primary-ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--background);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(var(--bg-alt-rgb), 0.06);
}

.top-bar {
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
  font-size: 13px;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  flex-wrap: wrap;
}
.top-bar__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(var(--bg-alt-ink-rgb), 0.85);
}
.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary-light);
  display: inline-block;
}
.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.top-bar__email {
  color: rgba(var(--bg-alt-ink-rgb), 0.85);
}
.top-bar__email:hover { color: var(--bg-alt-ink); }
.top-bar__phone {
  color: var(--bg-alt-ink);
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.top-bar__phone-label {
  color: rgba(var(--bg-alt-ink-rgb), 0.6);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.top-bar__phone-number { white-space: nowrap; }
.top-bar__phone:hover { color: var(--secondary-light); }

.main-bar {
  background: var(--background);
}
.main-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  height: 52px;
  width: auto;
  display: block;
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  transition: color var(--transition);
}
.primary-nav__link:hover { color: var(--primary); }
.primary-nav__link.active {
  color: var(--primary);
  font-weight: 500;
}
.primary-nav__link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--secondary);
}
.primary-nav__link--alt {
  border-left: 1px solid var(--hairline-strong);
  margin-left: 10px;
  padding-left: 22px;
  color: rgba(var(--text-rgb), 0.7);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.caret {
  font-size: 10px;
  margin-left: 2px;
  color: rgba(var(--text-rgb), 0.5);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--background);
  border: 1px solid var(--hairline);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--transition);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  z-index: 10;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14.5px;
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--surface);
  color: var(--primary);
}

.main-bar__cta { flex-shrink: 0; }
.main-bar__cta .btn {
  padding: 13px 24px;
  font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28);
}
.main-bar__cta .btn:hover {
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  padding: 24px var(--container-pad) 40px;
  border-top: 1px solid var(--hairline);
  background: var(--background);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul li a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav ul li a.active { color: var(--primary); font-weight: 500; }
.mobile-nav__group ul { padding-left: 12px; }
.mobile-nav__group ul li a { font-size: 14px; color: rgba(var(--text-rgb), 0.75); }
.mobile-nav__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.mobile-nav__foot .btn { justify-content: center; }
.mobile-nav__phone {
  text-align: center;
  padding: 12px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

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

.hero {
  position: relative;
  min-height: min(84vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 8vw, 88px);
  color: var(--primary-ink);
  background-color: var(--bg-alt);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(var(--bg-alt-rgb), 0.55) 0%,
      rgba(var(--bg-alt-rgb), 0.62) 40%,
      rgba(var(--bg-alt-rgb), 0.88) 100%),
    linear-gradient(90deg,
      rgba(var(--bg-alt-rgb), 0.78) 0%,
      rgba(var(--bg-alt-rgb), 0.35) 55%,
      rgba(var(--bg-alt-rgb), 0.12) 100%);
}
.hero__inner {
  position: relative;
  max-width: 780px;
  padding-right: 20px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--primary-ink-rgb), 0.9);
  padding-bottom: 24px;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--secondary-light);
  border-radius: 50%;
  display: inline-block;
}
.hero__title {
  font-size: clamp(40px, 6.6vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--primary-ink);
  text-shadow: 0 2px 20px rgba(var(--bg-alt-rgb), 0.35);
  margin: 0;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--secondary-light);
  text-shadow:
    0 2px 24px rgba(var(--bg-alt-rgb), 0.65),
    0 1px 3px rgba(var(--bg-alt-rgb), 0.6);
}
.hero__lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(var(--primary-ink-rgb), 0.92);
  max-width: 560px;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(var(--bg-alt-rgb), 0.5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
}
.hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--primary-ink-rgb), 0.28);
  color: rgba(var(--primary-ink-rgb), 0.85);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.hero__marks li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__marks li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--secondary-light);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 32px;
  width: 44px;
  height: 60px;
  border: 1px solid rgba(var(--primary-ink-rgb), 0.5);
  border-radius: 22px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  z-index: 2;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: rgba(var(--primary-ink-rgb), 0.8);
  border-radius: 1px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   Intro
   ========================================================================== */

.intro {
  padding: var(--section-y) 0;
  background: var(--background);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro__label { padding-top: 12px; }
.intro__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}
.intro__paragraph {
  margin-top: 24px;
  font-size: 17px;
  color: rgba(var(--text-rgb), 0.72);
  max-width: 720px;
}
.intro__meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: var(--section-y) 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--background);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.service-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.service-card__media--tagged::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-alt-rgb), 0.0) 55%, rgba(var(--bg-alt-rgb), 0.6) 100%);
  pointer-events: none;
}
.service-card__media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 12px;
  background: rgba(var(--bg-alt-rgb), 0.78);
  color: var(--primary-ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }

.service-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.service-card__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.service-card__title a {
  color: inherit;
  transition: color var(--transition);
}
.service-card__title a:hover { color: var(--primary); }

.service-card__text {
  color: rgba(var(--text-rgb), 0.72);
  font-size: 15.5px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.service-card__body .link-arrow { margin-top: auto; align-self: flex-start; }

/* CTA card variant — brand teal so it lives inside the palette instead of jumping to black */
.service-card--cta {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--secondary-light-rgb), 0.18), transparent 55%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--primary-ink);
  border-color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}
.service-card--cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
}
.service-card--cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.service-card__body--cta {
  padding: 40px 32px;
  color: var(--primary-ink);
  background: transparent;
  position: relative;
}
.service-card__title--cta {
  color: var(--primary-ink);
  font-size: 28px;
  line-height: 1.2;
}
.service-card__text--cta {
  color: rgba(var(--primary-ink-rgb), 0.9);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.service-card__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  align-items: flex-start;
}

/* ==========================================================================
   About Split
   ========================================================================== */

.about-split {
  padding: var(--section-y) 0;
  background: var(--background);
}
.about-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-split__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--background);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.about-split__badge-line {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.about-split__badge-strong {
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
}

.about-split__body { max-width: 560px; }
.about-split__paragraph {
  margin-top: 24px;
  font-size: 17px;
  color: rgba(var(--text-rgb), 0.72);
  line-height: 1.65;
}

.about-facts {
  margin: 32px 0 32px;
  border-top: 1px solid var(--hairline);
}
.about-facts__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.about-facts dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
}
.about-facts dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--text);
}

.about-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  padding: var(--section-y) 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.process-steps {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process-step {
  padding-top: 32px;
  border-top: 1px solid var(--hairline-strong);
  position: relative;
}
.process-step__num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 24px;
}
.process-step__title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.process-step__text {
  color: rgba(var(--text-rgb), 0.72);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial {
  padding: var(--section-y) 0;
  background: var(--background);
}
.testimonial__inner {
  max-width: 900px;
  text-align: center;
  position: relative;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.testimonial__inner::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  background: var(--secondary);
}
.testimonial__figure {
  margin: 40px 0 0;
  position: relative;
}
.testimonial__mark {
  display: block;
  font-family: 'Roboto', serif;
  font-size: clamp(80px, 12vw, 140px);
  line-height: 0.4;
  color: var(--secondary);
  font-weight: 300;
  margin-bottom: 16px;
}
.testimonial__quote {
  margin: 0;
}
.testimonial__quote p {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
  margin: 0;
  font-style: italic;
}
.testimonial__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}
.testimonial__author {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.testimonial__meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================================================
   Coverage
   ========================================================================== */

.coverage {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
}
.coverage__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.coverage__grid--single {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}
.coverage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(var(--bg-alt-ink-rgb), 0.18);
}
.coverage__title {
  color: var(--bg-alt-ink);
  margin-top: 12px;
}
.coverage__title em { color: var(--secondary-light); }
.coverage__text {
  color: rgba(var(--bg-alt-ink-rgb), 0.78);
  font-size: 17px;
  line-height: 1.65;
  margin-top: 24px;
  max-width: 560px;
}
.coverage__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 32px;
  max-width: 520px;
}
.coverage__list li {
  padding: 12px 0;
  border-top: 1px solid rgba(var(--bg-alt-ink-rgb), 0.15);
  color: rgba(var(--bg-alt-ink-rgb), 0.9);
  font-size: 15px;
}
.coverage__aside { display: flex; justify-content: flex-end; }
.coverage__card {
  border: 1px solid rgba(var(--bg-alt-ink-rgb), 0.2);
  padding: 32px;
  min-width: 300px;
  width: 100%;
  max-width: 360px;
  background: transparent;
}
.coverage__card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--bg-alt-ink);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--bg-alt-ink-rgb), 0.2);
}
.coverage__address {
  color: rgba(var(--bg-alt-ink-rgb), 0.85);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.coverage__card-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-final {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
  color: var(--primary-ink);
  background-color: var(--bg-alt);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-final__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-final__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg,
      rgba(var(--bg-alt-rgb), 0.7),
      rgba(var(--bg-alt-rgb), 0.7));
}
.cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.cta-final__title {
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-ink);
  margin: 16px 0 0;
  text-shadow: 0 2px 12px rgba(var(--bg-alt-rgb), 0.4);
}
.cta-final__lede {
  color: rgba(var(--primary-ink-rgb), 0.9);
  font-size: 18px;
  line-height: 1.55;
  margin: 24px auto 40px;
  max-width: 560px;
}
.cta-final__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

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

.site-footer {
  background: var(--bg-alt);
  color: var(--bg-alt-ink);
  padding: clamp(56px, 8vw, 96px) 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(var(--bg-alt-ink-rgb), 0.15);
}
.site-footer__col--brand { max-width: 340px; }
.site-footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--bg-alt-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-footer__brand:hover { color: var(--secondary-light); }
.site-footer__brand-mark--alt {
  color: var(--secondary-light);
  font-weight: 300;
  font-style: italic;
}
.site-footer__blurb {
  color: rgba(var(--bg-alt-ink-rgb), 0.78);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.site-footer__heading {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--bg-alt-ink-rgb), 0.7);
  font-weight: 500;
  margin: 0 0 22px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.site-footer__links a {
  color: rgba(var(--bg-alt-ink-rgb), 0.94);
  font-size: 15.5px;
}
.site-footer__links a:hover { color: var(--secondary-light); }
.site-footer__address {
  color: rgba(var(--bg-alt-ink-rgb), 0.88);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__contact-list a {
  color: rgba(var(--bg-alt-ink-rgb), 0.94);
  font-size: 15.5px;
}
.site-footer__contact-list a:hover { color: var(--secondary-light); }
.site-footer__phone {
  font-weight: 500;
  font-size: 17px !important;
  color: var(--bg-alt-ink) !important;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.site-footer__copy {
  margin: 0;
  color: rgba(var(--bg-alt-ink-rgb), 0.6);
  font-size: 13px;
}
.site-footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__legal a {
  color: rgba(var(--bg-alt-ink-rgb), 0.78);
  font-size: 13.5px;
}
.site-footer__legal a:hover { color: var(--bg-alt-ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .site-footer__col--brand { grid-column: span 2; max-width: none; }
}

@media (max-width: 900px) {
  .top-bar { display: none; }

  .primary-nav { display: none; }
  .main-bar__cta { display: none; }
  .menu-toggle { display: flex; }
  .main-bar__inner { min-height: 72px; }
  .brand__logo { height: 44px; }

  .hero { min-height: 620px; padding-top: 100px; }
  .hero__title { font-size: clamp(36px, 8vw, 56px); }

  .intro__grid { grid-template-columns: 1fr; gap: 24px; }
  .intro__label { padding-top: 0; }

  .about-split__grid { grid-template-columns: 1fr; }
  .about-split__media { max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 4; }

  .coverage__grid { grid-template-columns: 1fr; }
  .coverage__aside { justify-content: flex-start; }
  .coverage__card { max-width: none; }

  .cta-final__actions { flex-direction: column; align-items: stretch; }
  .cta-final__actions .btn { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card__media { aspect-ratio: 3 / 2; }

  .process-steps { grid-template-columns: 1fr; gap: 32px; }

  .about-facts__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .coverage__list { grid-template-columns: 1fr; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__col--brand { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__marks { gap: 12px 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  .about-split__badge { left: 16px; bottom: 16px; padding: 16px 20px; min-width: 150px; }
  .about-split__badge-strong { font-size: 20px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@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;
  }
}


/* Phone/contact links inside .link-arrow must never wrap mid-number */
.link-arrow[href^="tel:"],
.link-arrow[href^="mailto:"] {
  white-space: nowrap;
}

/* Restore CTA service card surface so it wins over generic .service-card safety-net.
   Using double-class selector for specificity without !important. */
.service-card.service-card--cta {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--secondary-light-rgb), 0.18), transparent 55%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--primary-ink);
  border-color: var(--primary-dark);
}

/* Restore text colors inside the CTA card so contrast holds on the teal surface */
.service-card.service-card--cta .section-label--light {
  color: rgba(var(--primary-ink-rgb), 0.85);
}
.service-card.service-card--cta .service-card__title--cta {
  color: var(--primary-ink);
}
.service-card.service-card--cta .service-card__text--cta {
  color: rgba(var(--primary-ink-rgb), 0.9);
}
.service-card.service-card--cta .link-arrow--light {
  color: var(--primary-ink);
  border-color: rgba(var(--primary-ink-rgb), 0.4);
}
.service-card.service-card--cta .link-arrow--light:hover {
  color: var(--primary-ink);
  border-color: var(--primary-ink);
}

/* betterly-css-safety-net:start */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img, .hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header {
  width: 100%;
  max-width: 100%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  align-items: stretch;
}

.service-card {
  background: var(--background, #fff);
  border: 1px solid var(--border, #e1e6ed);
  border-radius: var(--radius, 12px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  overflow: hidden;
}

@media (max-width: 760px) {
  .intro-grid,
  .founder-grid,
  .visit-grid,
  .feature-grid,
  .trust-grid,
  .value-grid,
  .value__grid,
  .program-grid,
  .pillar-grid,
  .link-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .value__list,
  .values-list,
  .trust-list,
  .checklist,
  .bullets {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    display: grid;
  }
  .cta-banner-inner {
    display: grid;
  }
}
/* betterly-css-safety-net:end */
