/* ===========================================================
   Expect Success Global — Coaching Discovery-Call Landing Page
   Premium editorial design system, scoped under .esg so it
   never bleeds into the shared SuccessTek header/footer shell.
   Palette: Ink Navy / Brass / Paper / Slate / White
   Type: Fraunces (display) + Hanken Grotesk (body)
   =========================================================== */
.esg {
  /* Palette */
  --ink: #14213D;
  --brass: #B8893B;
  --brass-dark: #9C7330;
  --paper: #F7F4EF;
  --slate: #5B6470;
  --white: #FFFFFF;
  --line: #E4DED3;          /* warm hairline on paper */
  --line-ink: rgba(255, 255, 255, 0.14);

  /* Type */
  --esg-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --esg-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;

  /* Rhythm */
  --esg-section-pad: clamp(3.75rem, 8vw, 8rem);

  font-family: var(--esg-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Headings — Fraunces with optical sizing */
.esg h1,
.esg h2,
.esg h3 {
  font-family: var(--esg-display);
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}

.esg p { margin: 0; }
.esg a { color: var(--ink); text-decoration: none; }
.esg ul, .esg ol { margin: 0; padding: 0; list-style: none; }

/* Scoped focus ring — ink instead of the global royal blue */
.esg a:focus-visible,
.esg button:focus-visible,
.esg input:focus-visible,
.esg select:focus-visible,
.esg textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Section frames ---------- */
.esg-section { padding: var(--esg-section-pad) 0; }
.esg-section--white { background: var(--white); }
.esg-section--paper { background: var(--paper); }
.esg-section--ink   { background: var(--ink); color: rgba(255, 255, 255, 0.86); }
.esg-section--ink h2,
.esg-section--ink h3 { color: var(--white); }

/* ---------- Kicker (all-caps tracked label) ---------- */
.esg-kicker {
  display: inline-block;
  font-family: var(--esg-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--slate);
}
.esg-kicker--ink { color: var(--ink); }
.esg-kicker--brass { color: var(--brass); }

/* Brass hairline accent */
.esg-rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--brass);
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* ---------- Section heading block ---------- */
.esg-head {
  max-width: 46rem;
  margin: 0 0 clamp(2.25rem, 4vw, 3.25rem);
}
.esg-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
}
.esg-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===========================================================
   Buttons — Brass fill, ink text, 6px radius (intentionally
   distinct from the global pill .btn used in the shell)
   =========================================================== */
.esg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--esg-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  border-radius: 6px;
  border: 1.5px solid transparent;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.esg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.esg-btn--primary {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.12);
}
.esg-btn--primary:hover {
  background: var(--brass-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 33, 61, 0.22);
}

.esg-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.esg-btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.esg-btn--lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.06rem;
}

/* ---------- Reveal-on-scroll (scoped) ---------- */
.esg-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.esg-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .esg-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   Hero
   =========================================================== */
.esg-hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(184, 137, 59, 0.08), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.esg-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}
.esg-hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.esg-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.esg-hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--slate);
  max-width: 38rem;
  margin-bottom: 2rem;
}
.esg-hero__actions { margin-top: 2.5rem; margin-bottom: 1.5rem; }
.esg-hero__trust {
  font-size: 0.95rem;
  color: var(--slate);
  font-weight: 500;
}
.esg-stars { color: var(--brass); letter-spacing: 0.1em; margin-right: 0.4rem; }

/* Hero proof card */
.esg-hero__aside { justify-self: stretch; }
.esg-proof {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.10);
  position: relative;
}
.esg-proof::before {
  content: '';
  position: absolute;
  left: 0; top: 1.75rem; bottom: 1.75rem;
  width: 3px;
  background: var(--brass);
  border-radius: 2px;
}
.esg-proof__lead {
  font-family: var(--esg-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}
.esg-proof__stats {
  display: grid;
  gap: 1.25rem;
  padding-left: 1.25rem;
}
.esg-proof__stats li { display: grid; gap: 0.15rem; }
.esg-proof__num {
  font-family: var(--esg-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
}
.esg-proof__label { font-size: 0.92rem; color: var(--slate); }
.esg-proof__foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  padding-left: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--slate);
}
.esg-proof__value { font-weight: 700; color: var(--ink); }

@media (min-width: 900px) {
  .esg-hero__inner { grid-template-columns: 1.15fr 0.85fr; }
  .esg-rule { margin: 1.75rem 0; }
}

/* ===========================================================
   What you get
   =========================================================== */
.esg-get {
  display: grid;
  gap: 1.25rem;
}
.esg-get__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
}
.esg-get__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
}
.esg-get__check svg { width: 18px; height: 18px; }
.esg-get__item p { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.esg-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brass-dark);
  background: rgba(184, 137, 59, 0.14);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.esg-reassure {
  margin-top: 1.75rem;
  font-family: var(--esg-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

@media (min-width: 820px) {
  .esg-get { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .esg-get__item { flex-direction: column; }
}

/* ===========================================================
   What's included
   =========================================================== */
.esg-included__body {
  max-width: 60ch;
  border-left: 3px solid var(--brass);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}
.esg-included__body p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink);
}

/* ===========================================================
   Tired of the gurus (dark)
   =========================================================== */
.esg-gurus__body {
  display: grid;
  gap: 1.5rem;
  max-width: 64ch;
}
.esg-gurus__body p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* ===========================================================
   Where coaching moves the needle
   =========================================================== */
.esg-needle {
  display: grid;
  gap: 1.25rem;
}
.esg-needle__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.5rem, 2.5vw, 1.9rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.esg-needle__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.10);
  border-color: rgba(184, 137, 59, 0.5);
}
.esg-needle__card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.esg-needle__card ul { display: grid; gap: 0.5rem; }
.esg-needle__card ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.98rem;
  color: var(--slate);
}
.esg-needle__card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

@media (min-width: 640px) {
  .esg-needle { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1000px) {
  .esg-needle { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   Steve Thornton
   =========================================================== */
.esg-steve {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.esg-steve__media { position: sticky; top: 6rem; }
.esg-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background:
    linear-gradient(160deg, #1b2c4d, var(--ink));
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}
.esg-portrait::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 137, 59, 0.4);
  border-radius: 10px;
  pointer-events: none;
}
.esg-portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.esg-portrait__mark {
  font-family: var(--esg-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.05em;
}
.esg-portrait__note {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Expect Success Global brand lockup — used on light (paper) sections only */
.esg-brandmark {
  display: block;
  height: 46px;
  width: auto;
  margin-bottom: 1.4rem;
}
.esg-brandmark--center {
  height: 54px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.6rem;
}
.esg-steve__cap {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--slate);
  text-align: center;
  font-weight: 500;
}
.esg-steve__text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1.25rem;
}
.esg-steve__text > p {
  font-size: 1.08rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}
.esg-steve__list { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.esg-steve__list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink);
}
.esg-steve__list svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--brass);
  margin-top: 0.15rem;
}
.esg-steve__close {
  font-family: var(--esg-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}

@media (min-width: 860px) {
  .esg-steve { grid-template-columns: 0.8fr 1.2fr; }
}

/* ===========================================================
   How it works
   =========================================================== */
.esg-steps {
  display: grid;
  gap: 2rem;
  counter-reset: esg-step;
}
.esg-steps__item {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.esg-steps__num {
  font-family: var(--esg-display);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.esg-steps__item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.esg-steps__item p { color: var(--slate); font-size: 1rem; }

@media (min-width: 760px) {
  .esg-steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ===========================================================
   Ways to work with us
   =========================================================== */
.esg-ways {
  display: grid;
  gap: 1.25rem;
}
.esg-ways__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.6rem, 2.5vw, 2rem);
  border-left: 3px solid var(--brass);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.esg-ways__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.10);
}
.esg-ways__card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.esg-ways__card p { color: var(--slate); font-size: 1rem; }
.esg-ways__note {
  margin-top: 1.75rem;
  font-family: var(--esg-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

@media (min-width: 720px) {
  .esg-ways { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ===========================================================
   Testimonials (dark)
   =========================================================== */
.esg-testi {
  display: grid;
  gap: 1.5rem;
}
.esg-testi__card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-ink);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
}
.esg-testi__quote {
  width: 34px; height: 34px;
  color: var(--brass);
  margin-bottom: 1rem;
  opacity: 0.9;
}
.esg-testi__text {
  font-family: var(--esg-display);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.5rem;
  flex: 1;
}
.esg-testi__stars {
  color: var(--brass);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.esg-testi__cite {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 760px) {
  .esg-testi { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   FAQ accordion
   =========================================================== */
.esg-faq { max-width: 52rem; }
.esg-faq__list {
  border-top: 1px solid var(--line);
}
.esg-faq__item { border-bottom: 1px solid var(--line); }
.esg-faq__q { margin: 0; }
.esg-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--esg-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.esg-faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--brass);
  transition: transform 0.3s ease;
}
.esg-faq__trigger[aria-expanded="true"] .esg-faq__icon { transform: rotate(180deg); }
.esg-faq__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease;
}
.esg-faq__answer {
  padding: 0 0 1.5rem;
  max-width: 60ch;
}
.esg-faq__answer p { color: var(--slate); font-size: 1.02rem; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .esg-faq__panel { transition: none; }
}

.esg-faq__cta {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: var(--slate);
}
.esg-faq__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brass-dark);
  white-space: nowrap;
}
.esg-faq__cta a svg { width: 18px; height: 18px; }
.esg-faq__cta a:hover { color: var(--ink); }

/* ===========================================================
   Schedule / form
   =========================================================== */
.esg-schedule { max-width: 46rem; }
.esg-schedule__sub {
  font-size: 1.08rem;
  color: var(--slate);
  margin-top: 0.75rem;
}
.esg-formwrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.08);
}
.esg-form__row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.esg-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.esg-form__row .esg-field { margin-bottom: 0; }
.esg-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.esg-req { color: var(--brass-dark); }
.esg-opt { font-weight: 400; color: var(--slate); font-size: 0.85rem; }
.esg-field input,
.esg-field select {
  font-family: var(--esg-body);
  font-size: 1rem;          /* >=16px prevents iOS zoom */
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
  min-height: 48px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.esg-field input:focus,
.esg-field select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 137, 59, 0.18);
  outline: none;
}
.esg-field--honey {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  margin: 0; padding: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.esg-form__submit { width: 100%; margin-top: 0.5rem; }
.esg-form__micro {
  text-align: center;
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 0.9rem;
}

.esg-formwrap.is-submitted .esg-form { display: none; }
.esg-form-success { text-align: center; padding: clamp(1.5rem, 4vw, 2.5rem) 0.5rem; }
.esg-form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
  margin-bottom: 1.25rem;
}
.esg-form-success__icon svg { width: 30px; height: 30px; }
.esg-form-success h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.esg-form-success p { color: var(--slate); max-width: 38ch; margin: 0 auto; }

@media (min-width: 600px) {
  .esg-form__row { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================
   Sticky mobile CTA
   =========================================================== */
.esg-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.75rem var(--container-pad);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.esg-sticky-cta .esg-btn { width: 100%; }
.esg-sticky-cta[aria-hidden="true"] {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
/* Desktop: rely on inline CTAs, hide the sticky bar */
@media (min-width: 768px) {
  .esg-sticky-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .esg-sticky-cta { transition: none; }
}
