/* ============================================================
   IonVantage Partners — site styles
   Built on the v1.0 brand package (tokens/brand-tokens.css).
   Palette, typography, radii and shadow are brand-authoritative:
   change them in the brand package first, then mirror here.
   ============================================================ */

:root {
  /* Brand tokens — from ionvantage-design-assets/tokens */
  --forest: #0E3B2E;
  --fresh-green: #3FA34D;
  --leaf: #7CC36A;
  --mist: #F2F5F1;
  --paper: #F7F7F3;
  --ink: #18211D;
  --white: #FFFFFF;

  --font-sans: "Lexend", Arial, sans-serif;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 16px 50px rgb(14 59 46 / .10);
  --gradient-fresh: linear-gradient(135deg, #3FA34D, #7CC36A);

  /* Site-level derived values */
  --forest-deep: #0A2B21;
  --line: #E2E8E1;
  --line-dark: rgb(255 255 255 / .16);
  --muted: #52605A;
  --muted-on-dark: rgb(255 255 255 / .78);
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --shadow-lift: 0 26px 60px -28px rgb(14 59 46 / .30);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-weight: var(--w-semibold);
  color: var(--forest);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-weight: var(--w-medium);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--forest);
  margin: 0 0 1rem;
}
.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  line-height: 1.68;
  color: var(--muted);
  max-width: 62ch;
}
.muted { color: var(--muted); }

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--mist { background: var(--mist); }
.section--pattern { position: relative; overflow: hidden; }
.section--pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/brand/patterns/orbit-field.svg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}
.section--pattern > .wrap { position: relative; z-index: 1; }
.section--paper { background: var(--paper); }
.section--tight { padding-top: 0; }

.section-head { max-width: 68ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1.1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--white);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: var(--w-medium);
}
.skip-link:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--fresh-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 84px;
}
.header-logo { display: flex; align-items: center; flex: 0 0 auto; }
.header-logo img { width: 210px; height: auto; display: block; }

.primary-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
}
.primary-nav > a:not(.btn) {
  font-weight: var(--w-medium);
  font-size: .95rem;
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
  transition: color .15s ease;
}
.primary-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--fresh-green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.primary-nav > a:not(.btn):hover { color: var(--forest); }
.primary-nav > a:not(.btn):hover::after,
.primary-nav > a.is-active::after { transform: scaleX(1); }
.primary-nav > a.is-active { color: var(--forest); font-weight: var(--w-semibold); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--forest); border-radius: 2px;
  transform: translateX(-50%);
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { content: ""; top: -6px; }
.nav-toggle-bars::after  { content: ""; top: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: var(--w-medium);
  font-size: .97rem; line-height: 1;
  padding: .95rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease,
              background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .7rem 1.25rem; font-size: .9rem; }

.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-deep); box-shadow: var(--shadow-lift); }

.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); background: var(--white); }

.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--mist); box-shadow: var(--shadow-lift); }

.btn-outline-light { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn-outline-light:hover { border-color: var(--white); background: rgb(255 255 255 / .08); }

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--forest);
  color: var(--white);
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero--flow::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: min(320px, 62%);
  background-image: url("/brand/patterns/energy-flow.svg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1000px 460px at 12% -10%, rgb(124 195 106 / .16), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .eyebrow { color: var(--leaf); }
.hero .lead { color: var(--muted-on-dark); max-width: 60ch; }
.hero-narrow h1 { max-width: 26ch; }

/* ---------- cards ---------- */

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card h3 { margin-bottom: .5rem; }
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgb(63 163 77 / .35);
}
.section--mist .card, .section--paper .card { background: var(--white); }

.icon-badge {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgb(63 163 77 / .10);
  color: var(--fresh-green);
  margin-bottom: 1.25rem;
}
.icon-badge img { width: 26px; height: 26px; }

/* ---------- checklist ---------- */

.checklist { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .8rem; }
.checklist li {
  position: relative; padding-left: 2rem;
  color: var(--muted); font-size: .98rem; line-height: 1.6;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--gradient-fresh);
  box-shadow: inset 0 0 0 3px var(--white);
}
.checklist--on-dark li { color: var(--muted-on-dark); }
.checklist--on-dark li::before { box-shadow: inset 0 0 0 3px var(--forest); }
.checklist--links a { color: var(--forest); font-weight: var(--w-medium); }
.checklist--links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.text-link { color: var(--forest); font-weight: var(--w-medium); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.founder-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.6rem; }
.founder-photo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto; box-sizing: border-box;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px rgb(14 59 46 / .16), var(--shadow-soft);
}
.founder-header .eyebrow { margin-bottom: .4rem; }
.founder-header h2 { margin-bottom: 0; }

/* ---------- split feature ---------- */

.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--reverse > :first-child { order: 2; }

.panel {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  position: relative; overflow: hidden;
}
.panel h2, .panel h3 { color: var(--white); }
.panel .eyebrow { color: var(--leaf); }
.panel .lead, .panel p { color: var(--muted-on-dark); }
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/brand/patterns/connection-grid.svg");
  background-size: cover; pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }

/* ---------- numbered steps ---------- */

.step-num {
  font-weight: var(--w-semibold); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fresh-green); display: block; margin-bottom: .7rem;
}

/* ---------- stats ---------- */

.stat { border-top: 2px solid var(--fresh-green); padding-top: 1.25rem; }
.stat-value {
  font-weight: var(--w-semibold); font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  color: var(--forest); line-height: 1.1; display: block; margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.stat p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- insight cards ---------- */

.tag {
  display: inline-block;
  font-weight: var(--w-medium); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--forest); background: var(--mist);
  border-radius: 999px; padding: .4rem .85rem; margin-bottom: 1.1rem;
}
.section--mist .tag { background: var(--white); }

/* ---------- profile ---------- */

.profile-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 3.4vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}
.profile-mark {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--mist); display: grid; place-items: center;
  margin-bottom: 1.5rem;
}
.profile-mark img { width: 46px; height: 46px; }

/* ---------- contact ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; }
.contact-list .icon-badge img { width: 22px; height: 22px; }
.contact-label {
  display: block; font-weight: var(--w-semibold); color: var(--forest);
  font-size: .95rem; margin-bottom: .1rem;
}
.contact-list a { color: var(--forest); font-weight: var(--w-medium); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing CTA ---------- */

.cta-band {
  background: var(--forest); color: var(--white);
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(760px 340px at 82% 120%, rgb(124 195 106 / .18), transparent 70%);
  pointer-events: none;
}
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); max-width: 24ch; }
.cta-band p { color: var(--muted-on-dark); max-width: 58ch; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-inner > div:first-child { flex: 1 1 44ch; }
.cta-inner > .cta-row { flex: 0 0 auto; }
.cta-inner .cta-row { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest-deep); color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-brand img { width: 200px; height: auto; display: block; margin-bottom: 1.3rem; }
.footer-tagline { color: var(--muted-on-dark); max-width: 34ch; margin-bottom: .6rem; }
.footer-descriptor {
  color: var(--leaf); font-weight: var(--w-medium);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .16em;
}
.footer-heading {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--white); font-weight: var(--w-medium); margin: 0 0 1.1rem;
}
.footer-links { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--muted-on-dark); font-size: .96rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-location { color: rgb(255 255 255 / .6); font-size: .88rem; max-width: 30ch; }
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  color: rgb(255 255 255 / .55); font-size: .85rem;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.btn) {
    padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem;
  }
  .primary-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.1rem; }
  .header-logo img { width: 178px; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { display: block; }
  .cta-inner .cta-row { margin-top: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card--hover:hover { transform: none; }
}
