/* ============================================================
   THE EQUAL GROUP — EDI AUDIT SUBDOMAIN
   Design system: matches theequalgroup.com

   TOKENS TO CONFIRM AGAINST LIVE SITE:
   --accent: update if live site uses a different accent colour
   --font-primary: update if live site uses a different typeface
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --black:        #0A0A0A;
  --white:        #FFFFFF;
  --accent:       #00c0c3;   /* ← confirm against live site */
  --accent-dark:  #009E57;
  --grey-100:     #F6F6F6;
  --grey-200:     #EBEBEB;
  --grey-400:     #9A9A9A;
  --grey-600:     #555555;
  --grey-800:     #2A2A2A;

  --font:         'DM Sans', system-ui, -apple-system, sans-serif;
  --nav-h:        72px;
  --max-w:        1180px;
  --radius:       4px;
  --radius-lg:    12px;

  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --transition:   0.25s var(--ease);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-weight: 700; }
p  { font-size: 1.0625rem; line-height: 1.7; color: var(--grey-600); }
p.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--grey-600); }
.light p, .light p.lead { color: rgba(255,255,255,0.72); }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey-100); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 32px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,0.72); font-size: 0.9375rem; font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--white); color: var(--black) !important;
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta:hover { background: var(--grey-200) !important; transform: translateY(-1px); }
.nav__menu-btn { display: none; color: var(--white); padding: 8px; }
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--black); padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav__menu-btn { display: block; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9375rem; font-family: var(--font);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn--primary { background: var(--accent); color: var(--black); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--white  { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--grey-200); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--white); }
.btn--dark   { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--grey-800); }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* ── HERO ── */
.hero {
  background: var(--black); color: var(--white);
  padding: calc(var(--nav-h) + 80px) 0 96px;
  min-height: 85vh; display: flex; align-items: center;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; text-transform: uppercase;
}
.hero__eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { color: rgba(255,255,255,0.7); margin-bottom: 40px; max-width: 520px; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__stat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 32px;
}
.hero__stat-card + .hero__stat-card { margin-top: 16px; }
.hero__stat-num { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.hero__stat-label { font-size: 0.9375rem; color: rgba(255,255,255,0.6); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__stat-card + .hero__stat-card { margin-top: 0; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__stats { grid-template-columns: 1fr; }
}

/* ── LOGO STRIP ── */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); }
.logo-strip__label { font-size: 0.8125rem; font-weight: 600; color: var(--grey-400); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; margin-bottom: 32px; }
.logo-strip__logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logo-strip__logos img { height: 28px; width: auto; opacity: 0.5; filter: grayscale(1); transition: opacity var(--transition); }
.logo-strip__logos img:hover { opacity: 0.9; }

/* ── PROBLEM SECTION ── */
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.problem__card {
  padding: 36px; border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.problem__card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(0,201,111,0.1); }
.problem__num { font-size: 3rem; font-weight: 800; color: var(--grey-200); line-height: 1; margin-bottom: 16px; }
.problem__card h4 { margin-bottom: 12px; color: var(--black); }
@media (max-width: 768px) { .problem__grid { grid-template-columns: 1fr; } }

/* ── PROCESS SECTION ── */
.process__steps { margin-top: 64px; }
.process__step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.process__step:last-child { border-bottom: none; }
.process__step-num { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.12); line-height: 1; padding-top: 4px; }
.process__step h4 { color: var(--white); margin-bottom: 8px; font-size: 1.25rem; }
.process__step p { color: rgba(255,255,255,0.6); margin-top: 0; }
@media (max-width: 600px) { .process__step { grid-template-columns: 48px 1fr; gap: 20px; } .process__step-num { font-size: 2.5rem; } }

/* ── ASSETS / RESOURCE CARDS ── */
.assets__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 64px; }
.asset-card {
  display: flex; flex-direction: column;
  background: var(--grey-100); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.asset-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); transform: translateY(-4px); }
.asset-card__tag {
  background: var(--black); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; display: inline-block; align-self: flex-start; margin: 24px 24px 0;
  border-radius: 2px;
}
.asset-card__tag--educate   { background: #1A3A2A; color: var(--accent); }
.asset-card__tag--diagnose  { background: #1A2B3A; color: #60B8FF; }
.asset-card__tag--validate  { background: #3A1A1A; color: #FF8A60; }
.asset-card__tag--decide    { background: #2A1A3A; color: #C080FF; }
.asset-card__body { padding: 20px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.asset-card h4 { color: var(--black); font-size: 1.1875rem; margin-bottom: 12px; line-height: 1.3; }
.asset-card p { font-size: 0.9375rem; flex: 1; }
.asset-card__footer { padding: 0 24px 24px; }
.asset-card .btn { width: 100%; justify-content: center; }
@media (max-width: 768px) { .assets__grid { grid-template-columns: 1fr; } }

/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--black); color: var(--white);
  padding: 96px 0;
}
.testimonial__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial__quote {
  font-size: clamp(1.3rem, 2.5vw, 1.875rem); font-weight: 700; line-height: 1.4;
  color: var(--white); margin-bottom: 40px; letter-spacing: -0.01em;
}
.testimonial__quote::before { content: '\201C'; color: var(--accent); }
.testimonial__quote::after  { content: '\201D'; color: var(--accent); }
.testimonial__author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.testimonial__author-info { text-align: left; }
.testimonial__name { font-weight: 700; color: var(--white); font-size: 0.9375rem; }
.testimonial__role { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.testimonial__divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

/* ── STATS BAND ── */
.stats-band { padding: 72px 0; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__num { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--black); line-height: 1; margin-bottom: 8px; }
.stat__num--accent { color: var(--accent); }
.stat__label { font-size: 0.9375rem; color: var(--grey-600); }
@media (max-width: 768px) { .stats-band__grid { grid-template-columns: repeat(2, 1fr); } }

/* ── FINAL CTA ── */
.cta-band {
  background: var(--black); color: var(--white);
  padding: 96px 0; text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 20px; }
.cta-band p  { color: rgba(255,255,255,0.65); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FORM GATE ── */
.gate-section { padding: calc(var(--nav-h) + 80px) 0 96px; background: var(--white); }
.gate__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.gate__content h1 { margin-bottom: 20px; }
.gate__content .lead { margin-bottom: 32px; }
.gate__list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.gate__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9375rem; color: var(--grey-600);
}
.gate__list li::before {
  content: '✓'; color: var(--accent); font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}
.gate__form-wrap {
  background: var(--grey-100); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 40px;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.gate__form-title { font-size: 1.375rem; font-weight: 800; margin-bottom: 6px; color: var(--black); }
.gate__form-sub   { font-size: 0.9375rem; color: var(--grey-600); margin-bottom: 28px; }
@media (max-width: 900px) { .gate__inner { grid-template-columns: 1fr; } .gate__form-wrap { position: static; } }

/* ── FORM STYLES ── */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--grey-800); margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.9375rem; color: var(--black);
  background: var(--white); transition: border-color var(--transition);
  outline: none;
}
.form-field input:focus, .form-field select:focus { border-color: var(--accent); }
.form-field input::placeholder { color: var(--grey-400); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { font-size: 0.8125rem; color: var(--grey-600); margin: 16px 0; display: flex; gap: 10px; align-items: flex-start; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form-consent a { color: var(--black); text-decoration: underline; }
.form-submit { width: 100%; padding: 15px; background: var(--black); color: var(--white); font-weight: 700; font-size: 1rem; border-radius: var(--radius); cursor: pointer; font-family: var(--font); transition: background var(--transition), transform var(--transition); }
.form-submit:hover { background: var(--grey-800); transform: translateY(-1px); }
.form-error { color: #D93B3B; font-size: 0.8125rem; margin-top: 4px; display: none; }
.form-field.has-error input { border-color: #D93B3B; }
.form-field.has-error .form-error { display: block; }

/* ── THANK YOU ── */
.thankyou { min-height: 100vh; display: flex; align-items: center; background: var(--black); color: var(--white); padding: var(--nav-h) 0 80px; }
.thankyou__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.thankyou__icon { width: 64px; height: 64px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 32px; font-size: 1.75rem; }
.thankyou h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.thankyou p { color: rgba(255,255,255,0.65); margin-bottom: 40px; }
.thankyou__next h3 { color: var(--white); margin-bottom: 20px; font-size: 1.25rem; }
.thankyou__next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.next-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 20px; }
.next-card p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.next-card a { color: var(--white); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) { .thankyou__next-grid { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
.footer { background: var(--black); color: var(--white); padding: 60px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer__logo img { height: 28px; margin-bottom: 16px; }
.footer__tagline { font-size: 0.9375rem; color: rgba(255,255,255,0.5); max-width: 260px; }
.footer__col h5 { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul li a { font-size: 0.9375rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 16px; }
.footer__legal { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer__legal a { color: rgba(255,255,255,0.5); margin-left: 16px; }
.footer__legal a:hover { color: var(--white); }
@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr; gap: 36px; } .footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ── UTILITIES ── */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.section__header { max-width: 700px; }
.section__header--center { max-width: 700px; margin: 0 auto; text-align: center; }
.section__eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.section__eyebrow--light { color: rgba(255,255,255,0.4); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
