/* =========================================================
   Exceed Partners — theme tokens (edit these to restyle)
   ========================================================= */
:root {
  /* Brand palette */
  --bg: #EAE5D9;           /* background */
  --primary: #4A6B82;      /* primary – slate blue */
  --secondary: #C85A32;    /* secondary – burnt orange */
  --accent: #D4A373;       /* pop / accent – warm sand */

  /* Derived tones */
  --bg-alt: #E1DACB;
  --surface: #F5F2EB;
  --ink: #1F2D37;
  --ink-soft: #4E5A62;
  --line: #D2C9B6;
  --primary-soft: #DCE3E8;
  --accent-soft: #F1E3D1;
  --dark: #2E4556;
  --dark-line: #46606F;

  --font-display: "Cabinet Grotesk", "Plus Jakarta Sans", system-ui, sans-serif; /* headers & titles (Bold) */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; /* everything else */

  --radius: 14px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.container.narrow { max-width: 860px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 16ch; letter-spacing: -0.03em; }
h1 em { font-style: normal; color: var(--secondary); position: relative; z-index: 0; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.08em; height: 0.32em;
  background: var(--accent); opacity: .55; border-radius: 3px; transform: rotate(-1.2deg);
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--secondary); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.lead, .body-lg { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin: 0; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 0.98rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--primary); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-light { background: var(--accent); color: var(--ink); margin-top: 28px; }
.btn-light:hover { background: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; letter-spacing: -0.02em;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: #fff; background: var(--secondary); padding: 9px 18px; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 12vh, 140px); overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .45;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--bg); border-top: 0; }
.section-dark .body-lg { color: #D3DCE2; }
.section-dark .eyebrow { color: var(--accent); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 + p { margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 64px; }
.pull {
  margin: 32px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.4; color: var(--primary);
}
.pull::before {
  content: "\201C"; position: absolute; left: 14px; top: -0.55em; font-size: 4rem; line-height: 1;
  color: var(--accent); font-family: var(--font-display); font-weight: 700;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--secondary);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(31,45,55,.35); }
.card h3 { margin: 18px 0 10px; }
.card p { margin: 0; color: var(--ink-soft); }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--secondary); }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  background: var(--accent-soft); color: var(--secondary); padding: 4px 10px; border-radius: 999px;
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent); }
.footnote { margin-top: 28px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person {
  display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.avatar {
  width: 150px; aspect-ratio: 4/5; border-radius: 10px; object-fit: cover; filter: grayscale(1);
  background: linear-gradient(160deg, var(--primary), var(--dark)); color: var(--bg);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2rem; position: relative;
}
.avatar::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
img.avatar::after { display: none; }
.person h3 { font-size: 1.45rem; }
.role { font-size: .76rem; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 14px; }
.person p:not(.role) { color: var(--ink-soft); margin: 0; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; background: var(--bg); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.stats { position: relative; }
.stats::before { content: ""; position: absolute; top: -1px; left: 0; width: 72px; height: 3px; background: var(--secondary); }
.stat { padding: 40px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5.4vw, 4.4rem); letter-spacing: -0.02em; line-height: 1; color: var(--accent); }
.stat-label { color: #D3DCE2; font-size: .95rem; max-width: 22ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--secondary); transition: transform .25s;
}
.faq summary:hover, .faq details[open] summary { color: var(--primary); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Form ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 0; }
legend span {
  width: 28px; height: 28px; border-radius: 50%; background: var(--secondary); color: #fff;
  display: grid; place-items: center; font-family: var(--font-sans); font-size: .8rem; font-weight: 600;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checks label {
  flex-direction: row; align-items: center; gap: 10px; font-weight: 500; border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 10px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s;
}
.checks label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.checks input { accent-color: var(--primary); width: 16px; height: 16px; }
.privacy { font-size: .85rem; color: var(--ink-soft); margin: 0 0 20px; }
.form-error { color: var(--secondary); margin: 16px 0 0; }
.form button[disabled] { opacity: .6; pointer-events: none; }
.thanks { background: var(--surface); border: 1px solid var(--primary); border-radius: var(--radius); padding: 56px 32px; text-align: center; }
.thanks-icon { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.thanks p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.contact h2 { font-size: clamp(3rem, 8vw, 6.5rem); }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 32px; border-top: 3px solid var(--secondary); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-tag { margin: 16px 0 0; font-size: .92rem; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--font-sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--secondary); font-weight: 600; margin-bottom: 14px; }
.footer-cols a { display: block; text-decoration: none; margin-bottom: 8px; font-size: .95rem; }
.footer-cols a:hover { color: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 8px 0; }
  .nav-links .nav-cta { margin-top: 8px; padding: 10px 20px; }
  .split, .contact { grid-template-columns: 1fr; gap: 28px; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-4, .grid-2, .checks { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .avatar { width: 120px; }
}
