/* ===================================================================
   ClearPathTitle Group, LLC — landing page
   Rebuilt from the "ClearPathTitle Landing" design handoff (hifi).
   Plain HTML/CSS/JS. No framework. No CDN — fonts self-hosted.
   =================================================================== */

/* ---------- Self-hosted fonts (Spectral + Public Sans) ---------- */
/* Public Sans is a variable font; one latin file serves weights 400–800. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/spectral-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Accent is a single global theme variable (swap to retheme every CTA).
     Alt options from the handoff: #294B73, #1f7a8c, #3a6ea5 */
  --accent: #2f6fb0;
  --accent-hover: #2a63a0;

  --navy-brand: #294B73;
  --steel: #5e83ad;
  --light-steel: #8fb4dc;
  --eyebrow-dark: #9fc0e0;

  --footer-navy: #0a1a2b;
  --page-light: #f6f9fc;
  --card-surface: #ffffff;
  --card-border: #e7eef6;
  --nav-border: #eef1f5;
  --icon-tile: #eaf1f8;

  --heading: #15314f;
  --body-light: #4f6276;
  --body-light-2: #5a6b80;
  --body-dark: #c2d2e3;
  --body-dark-2: #a9bdd3;
  --muted-dark: #7a8aa0;
  --muted-dark-2: #94a8bf;

  --success: #1f7a46;
  --success-bg: #e9f6ee;
  --gold: #f4c150;

  --hero-grad: radial-gradient(120% 120% at 78% 12%, #1d3f63 0%, #102841 55%, #0c1f33 100%);
  --contact-grad: radial-gradient(120% 120% at 18% 0%, #1d3f63 0%, #102841 55%, #0c1f33 100%);
  --how-grad: linear-gradient(180deg, #102841, #0c1f33);

  --sans: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--heading);
  background: var(--card-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Offset anchored sections for the sticky nav */
section[id] {
  scroll-margin-top: 78px;
}

/* ---------- Shared helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow__square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.eyebrow__label--light {
  color: var(--steel);
}
.eyebrow__label--dark {
  color: var(--eyebrow-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.btn--accent {
  background: var(--accent);
  color: #ffffff;
}
.btn--accent:hover {
  background: var(--accent-hover);
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: #ffffff;
  border-bottom: 1px solid var(--nav-border);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 52px;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: #3b4a5c;
  transition: color 0.18s ease;
}
.nav__links a:hover {
  color: var(--heading);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-brand);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.nav__cta {
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--navy-brand);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--hero-grad);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 560px;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 56px 96px;
}

.hero__left {
  max-width: 600px;
}
.hero__eyebrow {
  margin-bottom: 30px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 66px;
  line-height: 1.04;
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0 0 26px;
}
.hero__title-accent {
  color: var(--light-steel);
}
.hero__subhead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--body-dark);
  margin: 0 0 38px;
  max-width: 482px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.hero__cta {
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 7px;
}
.hero__ghost {
  font-size: 16px;
  font-weight: 600;
  color: #dce7f2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__ghost:hover {
  color: #ffffff;
}
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #93a9c0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}
.hero__note strong {
  color: #cfdcea;
  font-weight: 600;
}

/* ---------- Hero illustration cluster (fixed 560×520 canvas) ---------- */
.cluster {
  position: relative;
  width: 560px;
  height: 520px;
  justify-self: end;
}
.cluster__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cluster__card {
  position: absolute;
  background: #ffffff;
  border-radius: 14px;
}
.cluster__doc {
  top: 118px;
  left: 60px;
  width: 300px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
  padding: 24px;
}
.doc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.doc__tile {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--icon-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc__title {
  font-size: 13px;
  font-weight: 700;
  color: #1f3450;
}
.doc__sub {
  font-size: 11px;
  color: #8a9bb0;
}
.doc__line {
  height: 8px;
  border-radius: 4px;
  background: #e9eef4;
  margin-bottom: 11px;
}
.doc__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
}

.cluster__shield {
  top: 28px;
  right: 24px;
  width: 128px;
  background: var(--accent);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  padding: 20px;
  text-align: center;
}
.shield__title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.shield__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.cluster__stat {
  bottom: 36px;
  right: 60px;
  width: 172px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  padding: 18px 20px;
}
.stat__num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-brand);
  line-height: 1;
}
.stat__label {
  font-size: 12px;
  color: var(--muted-dark);
  margin-top: 4px;
}
.stat__bar {
  display: flex;
  gap: 4px;
  margin-top: 13px;
}
.stat__seg {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #cfe0f0;
}
.stat__seg--on {
  background: var(--accent);
}

.cluster__gold {
  position: absolute;
  bottom: 140px;
  left: 18px;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: var(--gold);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Trust strip ---------- */
.trust {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.trust__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 56px;
  display: flex;
  gap: 64px;
  align-items: center;
}
.trust__item {
  display: flex;
  flex-direction: column;
}
.trust__num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.trust__label {
  font-size: 13px;
  color: var(--muted-dark-2);
  margin-top: 3px;
}

/* ===================== SERVICES ===================== */
.services {
  background: var(--page-light);
  padding: 100px 56px;
}
.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.services__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--heading);
  margin: 0 0 14px;
  max-width: 620px;
}
.services__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-light);
  margin: 0 0 50px;
  max-width: 560px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(21, 49, 79, 0.04);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.card:hover {
  box-shadow: 0 18px 44px rgba(21, 49, 79, 0.16);
  transform: translateY(-2px);
}
.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--icon-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 9px;
}
.card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-light-2);
  margin: 0;
}

/* ===================== HOW IT WORKS ===================== */
.how {
  background: var(--how-grad);
  padding: 100px 56px;
}
.how__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.how__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 auto 14px;
  max-width: 560px;
}
.how__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-dark-2);
  margin: 0 auto 60px;
  max-width: 520px;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  text-align: left;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step__num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--light-steel);
  line-height: 1;
}
.step__rule {
  flex: 1;
  height: 1px;
  background: rgba(143, 180, 220, 0.28);
}
.step__title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.step__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-dark-2);
  margin: 0;
}

/* ===================== WHY ===================== */
.why {
  background: #ffffff;
  padding: 100px 56px;
}
.why__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.why__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--heading);
  margin: 0 0 28px;
  max-width: 480px;
}
.reason {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid #eef2f7;
}
.reason:last-of-type {
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 30px;
}
.reason__check {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reason__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 5px;
}
.reason__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-light-2);
  margin: 0;
}
.why__cta {
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 7px;
}

.why__media {
  position: relative;
}
.why__panel {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(21, 49, 79, 0.18);
  background: #eef5fb;
}
.why__badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(21, 49, 79, 0.16);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.why__badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why__badge-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}
.why__badge-sub {
  font-size: 12px;
  color: var(--muted-dark);
  margin-top: 2px;
}

/* ===================== CONTACT ===================== */
.contact {
  background: var(--contact-grad);
  padding: 100px 56px;
}
.contact__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 18px;
  max-width: 440px;
}
.contact__subtext {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-dark);
  margin: 0 0 34px;
  max-width: 430px;
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.contact__phone-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__phone-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}
.contact__note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #93a9c0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
}

.contact__card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  padding: 32px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: #3b4a5c;
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--heading);
  border: 1px solid #d3deea;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.15);
}
.field textarea {
  resize: vertical;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form__hp {
  position: absolute;
  left: -9999px;
}
.form__submit {
  font-size: 16px;
  border-radius: 8px;
  padding: 15px;
  justify-content: center;
}
.form__submit:disabled {
  opacity: 0.7;
  cursor: default;
}
.form__status {
  font-size: 14px;
  margin: 0;
  display: none;
}
.form__status--error {
  display: block;
  color: #c0392b;
}
.form__status--success {
  display: block;
  color: var(--success);
  font-weight: 600;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--footer-navy);
  padding: 52px 56px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__wordmark {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.footer__wordmark span {
  color: var(--light-steel);
  font-weight: 600;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body-dark-2);
  transition: color 0.18s ease;
}
.footer__links a:hover {
  color: #ffffff;
}
.footer__links a.footer__links-phone {
  font-weight: 600;
  color: #ffffff;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
}
.footer__legal,
.footer__deed {
  font-size: 13px;
  color: #7a90a8;
}
.footer__deed a {
  color: var(--light-steel);
  font-weight: 600;
}
.footer__deed a:hover {
  text-decoration: underline;
}

/* ===================================================================
   RESPONSIVE  (handoff was desktop-only @1440; below is added for prod)
   =================================================================== */

/* ---------- Tablet / small desktop: ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 72px 40px 80px;
  }
  .hero__title {
    font-size: 54px;
  }
  .cluster {
    justify-self: center;
  }

  .services,
  .how,
  .why,
  .contact {
    padding: 84px 40px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .why__media {
    max-width: 560px;
  }
  .trust__inner {
    flex-wrap: wrap;
    gap: 32px 56px;
  }
}

/* ---------- Mobile: ≤ 767px ---------- */
@media (max-width: 767px) {
  /* Hamburger nav */
  .nav {
    padding: 14px 20px;
  }
  .nav__left {
    gap: 0;
  }
  .nav__logo img {
    height: 30px;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 14px 20px;
    border-top: 1px solid var(--nav-border);
  }
  /* Phone + CTA collapse into the hamburger menu; hero CTA covers conversion */
  .nav__phone,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }

  /* Hero */
  .hero__inner {
    padding: 56px 20px 64px;
  }
  .hero__title {
    font-size: 40px;
  }
  .hero__subhead {
    font-size: 17px;
  }
  /* Decorative cluster doesn't reflow below 768; hide to avoid overlap */
  .cluster {
    display: none;
  }

  /* Trust strip */
  .trust__inner {
    padding: 22px 20px;
    gap: 22px 40px;
  }

  /* Sections */
  .services,
  .how,
  .why,
  .contact {
    padding: 64px 20px;
  }
  .services__heading,
  .how__heading,
  .why__heading {
    font-size: 34px;
  }
  .contact__heading {
    font-size: 34px;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .how__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Why */
  .why__badge {
    left: 16px;
    bottom: -20px;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .contact__phone-num {
    font-size: 26px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    padding: 44px 20px;
  }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer__links {
    gap: 18px 24px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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