/* =========================================================
   SelectPath shared stylesheet
   Host once at /assets/selectpath.css and link from every page.
   ========================================================= */

:root {
  --navy: #13294b;
  --navy-2: #1d3a66;
  --navy-deep: #0d1d36;
  --teal: #1f8a83;
  --teal-dark: #176b66;
  --teal-light: #6fd3c9;
  --teal-tint: #e3f3f1;
  --sand: #f6f3ee;
  --ink: #1c2430;
  --muted: #5a6575;
  --muted-on-dark: #cfd8e6;
  --line: #e2ded6;
  --white: #ffffff;
  --warn-tint: #fbf1e6;
  --warn: #9a5b13;
  --radius: 14px;
  --max: 1120px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .6rem; }
h3 { font-size: 1.2rem; margin-bottom: .35rem; }
p { color: var(--muted); }
a { color: var(--teal-dark); }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
section { padding: 84px 0; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-gradient { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-gradient h1, .bg-gradient h2, .bg-gradient h3 { color: var(--white); }
.bg-navy p, .bg-gradient p { color: var(--muted-on-dark); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .7rem; }
.bg-navy .eyebrow, .bg-gradient .eyebrow { color: var(--teal-light); }
.lead { font-size: 1.15rem; max-width: 680px; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.split.center { align-items: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; transition: background .2s, transform .2s, color .2s; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.logo span { color: var(--teal); }
.logo sup { font-size: .55em; font-family: var(--sans); color: var(--muted); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.current { color: var(--teal); }
.nav-links .btn { padding: 10px 20px; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 84px; }
.hero h1 { max-width: 760px; margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.4rem; font-size: .93rem; color: var(--muted-on-dark); }
.trust span::before { content: "✓"; color: var(--teal-light); margin-right: 8px; font-weight: 700; }

/* ---------- Cards & grids ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.4rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--white); }
.bg-navy .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 16px; }

/* Question callouts */
.questions { display: grid; gap: 12px; }
.q { background: var(--white); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 8px; font-family: var(--serif); color: var(--navy); font-size: 1.08rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 2.4rem 0 2.6rem; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }

/* ---------- Lists ---------- */
.checklist { list-style: none; display: grid; gap: 18px; }
.checklist li { padding-left: 38px; position: relative; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.checklist strong { color: var(--navy); }
.xlist { list-style: none; display: grid; gap: 12px; }
.xlist li { padding-left: 34px; position: relative; color: var(--muted); }
.xlist li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--warn-tint); color: var(--warn); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 1.4rem; }
.pill-list li { background: var(--teal-tint); color: var(--teal-dark); padding: 8px 16px; border-radius: 999px; font-size: .93rem; font-weight: 600; }

/* ---------- Callout box ---------- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 22px 24px; background: var(--white); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-tint); }
.callout h3 { font-size: 1.08rem; }

/* ---------- Terms table ---------- */
.terms { width: 100%; border-collapse: collapse; margin-top: 1.6rem; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.terms th, .terms td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms th { width: 38%; color: var(--navy); font-weight: 600; background: #fbfaf8; }
.terms td { color: var(--muted); }
.terms tr:last-child th, .terms tr:last-child td { border-bottom: 0; }

/* ---------- Quote & stats ---------- */
blockquote { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); border-left: 4px solid var(--teal); padding-left: 24px; line-height: 1.5; }
blockquote cite { display: block; margin-top: 14px; font-family: var(--sans); font-size: .92rem; font-style: normal; color: var(--muted); }
.stats { display: grid; gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--teal-dark); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.photo { width: 220px; height: 220px; border-radius: 50%; background: #d9d4ca; display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; }

/* ---------- Strip (cross-link band) ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.strip-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.strip-row > div:first-child { max-width: 620px; }

/* ---------- Forms ---------- */
.form { background: var(--white); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: .95rem; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfaf8; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form textarea { min-height: 90px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; grid-column: 1 / -1; }
.form .check input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; padding: 0; }
.form fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 12px; }
.form legend { font-weight: 700; color: var(--navy); font-size: .9rem; padding: 0 6px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.form-thanks { grid-column: 1 / -1; color: var(--navy); font-weight: 600; }
.phone { margin-top: 1.4rem; font-size: 1.05rem; }
.bg-gradient .phone a, .bg-navy .phone a { color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb0c8; padding: 44px 0; font-size: .85rem; }
.site-footer p { color: #9fb0c8; margin-bottom: 10px; max-width: 860px; }
.foot-links { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted-on-dark); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .split, .split.center { grid-template-columns: 1fr; gap: 36px; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .cards.four, .steps, .steps.five { grid-template-columns: 1fr 1fr; }
  .founder-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .nav-links { display: none; position: absolute; top: 72px; left: -24px; right: -24px; background: var(--white); flex-direction: column; padding: 20px 24px 28px; gap: 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .terms th { width: 45%; }
}
@media (max-width: 560px) {
  .cards.four, .steps, .steps.five { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .hero { padding: 72px 0 64px; }
  .terms th, .terms td { display: block; width: 100%; }
  .terms th { border-bottom: 0; padding-bottom: 4px; }
}

/* ---------- Video ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 6px 24px rgba(19,41,75,.18); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--white); text-align: center; padding: 20px; }
.video-placeholder .play { width: 68px; height: 68px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.video-placeholder .play::after { content: ""; border-left: 20px solid var(--white); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video-placeholder p { color: var(--muted-on-dark); font-size: .95rem; }
.video-placeholder strong { color: var(--white); font-size: 1.1rem; display: block; }
.video-section { padding: 72px 0; }
.founder-grid.with-video { grid-template-columns: 1.15fr 1fr; }

/* ---------- Footer: offices + Equal Housing ---------- */
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--white); font-weight: 700; margin-bottom: 12px; }
.foot-brand span { color: var(--teal-light); }
.offices { display: grid; gap: 10px; }
.offices p { margin: 0; }
.offices strong { color: var(--white); font-weight: 600; }
.eho { display: flex; align-items: center; gap: 16px; justify-self: end; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 16px 20px; }
.eho svg { width: 64px; height: 64px; flex-shrink: 0; }
.eho-text { color: var(--white); font-weight: 700; font-size: .95rem; letter-spacing: .08em; line-height: 1.35; }
.eho-text small { display: block; font-weight: 400; letter-spacing: 0; color: #9fb0c8; font-size: .8rem; margin-top: 4px; }

@media (max-width: 900px) {
  .founder-grid.with-video { grid-template-columns: 1fr; text-align: left; justify-items: stretch; }
  .foot-grid { grid-template-columns: 1fr; }
  .eho { justify-self: start; }
}

/* ---------- Waypoint logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.04em; color: var(--navy); text-decoration: none; }
.logo .logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.logo .logo-mark svg { width: 28px; height: 28px; display: block; }
.logo .logo-word { color: var(--navy); }
.logo .logo-word span { color: var(--teal); font-weight: 500; }
.logo sup { font-size: .5em; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.foot-brand.logo { font-size: 1.3rem; margin-bottom: 12px; }
.foot-brand.logo .logo-mark { background: var(--white); }
.foot-brand.logo .logo-word { color: var(--white); }
.foot-brand.logo .logo-word span { color: var(--teal-light); }
.foot-brand.logo sup { color: #9fb0c8; }
