/* =========================================================
   Heritage Digital Partners — Apple-inspired styling
   Palette pulled from logo: navy #14476b, maroon #7a161d
   ========================================================= */

:root {
  --navy: #14476b;
  --navy-deep: #0f3450;
  --maroon: #7a161d;
  --maroon-bright: #9a1d25;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #0a0a0a;
  --radius: 18px;
  --maxw: 1080px;
  --nav-h: 104px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

section { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--maroon);
  text-transform: none;
  margin-bottom: 12px;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 22px;
}

.section-alt { background: var(--bg-soft); max-width: 100%; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 64px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.07; font-weight: 700; }

.section-head h2 { font-size: clamp(32px, 5vw, 52px); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:active { transform: scale(0.97); }
.btn-block { width: 100%; }

.btn-link {
  display: inline-block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  padding: 13px 6px;
  transition: opacity 0.2s ease;
}
.btn-link:hover { opacity: 0.65; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
}
.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img { height: 90px; width: auto; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--navy); }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  padding: 7px 16px;
  border-radius: 980px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 22px 60px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #eaf1f7 0%, #ffffff 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  color: var(--ink);
  margin-bottom: 22px;
}
.hero .subhead {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.35;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 130vw;
  height: 700px;
  background: radial-gradient(circle, rgba(20, 71, 107, 0.10) 0%, rgba(122, 22, 29, 0.06) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- STATEMENT (dark) ---------- */
.statement {
  background: var(--bg-dark);
  color: #f5f5f7;
  text-align: center;
  padding: 130px 22px;
}
.statement h2 {
  font-size: clamp(34px, 6vw, 68px);
  max-width: 900px;
  margin: 0 auto 26px;
}
.statement .muted {
  background: linear-gradient(90deg, #4d8fbf, #c0656c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.statement p {
  font-size: clamp(18px, 2.4vw, 23px);
  color: #a1a1a6;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.card-icon {
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1;
}
.card h3 { font-size: 22px; margin-bottom: 10px; color: var(--ink); }
.card p { font-size: 16px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.stat {
  text-align: center;
  padding: 44px 22px;
  background: linear-gradient(180deg, #f7f9fb 0%, #f1f4f7 100%);
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 14px;
}
.stat-label { font-size: 16px; color: var(--ink-soft); }

.why-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 120px 22px;
  background:
    radial-gradient(120% 120% at 50% 0%, #14476b 0%, #0f3450 100%);
  color: #fff;
}
.cta h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.cta > p {
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 44px;
}
.cta-form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-wide, .cta-form .btn-primary, .form-note { grid-column: 1 / -1; }
.cta-form input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.cta-form input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}
.cta-form .btn-primary { background: #fff; color: var(--navy); }
.cta-form .btn-primary:hover { background: #eaeaea; }
.form-note { font-size: 15px; min-height: 20px; color: #9fd0a0; margin-top: 4px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-soft);
  padding: 60px 22px;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-logo { height: 64px; width: auto; margin: 0 auto 18px; }
.footer-tag { font-size: 17px; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.footer-copy { font-size: 13px; color: var(--ink-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 734px) {
  .section { padding: 80px 20px; }
  .statement, .cta { padding: 90px 20px; }
  .section-head { margin-bottom: 44px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 18px 22px 26px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 13px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
