/* ==========================================================================
   Faamasani Messenger Consulting — saniconsults.com
   Design system & styles. Teal accent (#0E7C86) on a cool, airy base.
   System font stack (no third-party fonts). Mobile-first, WCAG-AA targeted.
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  /* palette */
  --navy: #1E2A3A;
  --navy-700: #263546;
  --teal: #0E7C86;
  --teal-600: #0B6670;
  --teal-050: #E6F2F3;
  --coral: #E4572E;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #1F2933;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --fs-hero: clamp(2.1rem, 5vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 3.2vw, 2.3rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --lh-body: 1.65;

  /* layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(30, 42, 58, 0.06), 0 2px 8px rgba(30, 42, 58, 0.05);
  --shadow-md: 0 6px 24px rgba(30, 42, 58, 0.1);
  --header-h: 68px;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-hero); margin: 0 0 1rem; }
h2 { font-size: var(--fs-h2); margin: 0 0 1rem; }
h3 { font-size: var(--fs-h3); margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.1rem; }

/* ----- Accessibility helpers ----- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ----- Layout primitives ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface); }
.section--navy { background: var(--navy); color: #E8EDF2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #7FD3DB; }
.narrow { max-width: var(--maxw-narrow); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 0.75rem;
}
.section--navy .eyebrow { color: #7FD3DB; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--text); }
.section--navy .lead { color: #CBD8E4; }

/* two-column media rows */
.media-row {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row--reverse .media-row__media { order: -1; }
}
.media-row__media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10; object-fit: cover;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-600); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.section--navy .btn--ghost:hover { border-color: #7FD3DB; color: #7FD3DB; }
.btn--block { width: 100%; }
.textlink { font-weight: 600; text-decoration: none; }
.textlink::after { content: " \2192"; }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 250, 0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); background: rgba(247,248,250,0.95); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__pron { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 940px) {
  .nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
  .nav__links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
  .nav__links a:hover { color: var(--teal-600); }
}
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border-strong);
  background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; color: var(--navy);
}
@media (min-width: 940px) { .nav__toggle { display: none; } }
.nav__toggle svg { width: 22px; height: 22px; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--surface); padding: 1.5rem clamp(1.1rem, 4vw, 2rem);
  display: none; flex-direction: column; gap: 0.25rem; overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.15rem;
  padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 1.25rem; }
body.menu-open { overflow: hidden; }

/* ----- Hero ----- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.hero__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }

/* ----- Cards & grids ----- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* understated bullet list (NO green check boxes) */
.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.list-clean li { position: relative; padding-left: 1.4rem; }
.list-clean li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: rotate(45deg);
}
.list-questions { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.list-questions li { padding-left: 1.4rem; position: relative; color: var(--muted); }
.list-questions li::before { content: "?"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }

/* before/now contrast block */
.contrast { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .contrast { grid-template-columns: 1fr 1fr; } }
.contrast__cell { padding: 1.25rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.contrast__cell--old { color: var(--muted); }
.contrast__cell--new { border-color: var(--teal); background: var(--teal-050); }
.contrast__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; margin-bottom: 0.3rem; }
.contrast__cell--old .contrast__label { color: var(--muted); }
.contrast__cell--new .contrast__label { color: var(--teal-600); }
.contrast__q { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 0; }

/* comparison (most consultants vs how I work) */
.compare { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__cell { padding: 1.3rem 1.5rem; border-radius: var(--radius); }
.compare__cell--them { background: #F1F4F8; border: 1px solid var(--border); }
.compare__cell--me { background: var(--navy); color: #E8EDF2; }
.compare__cell--me h3 { color: #fff; }
.compare__cell h3 { margin-top: 0; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 0.6rem;
}
.callout {
  margin-top: 1.75rem; padding: 1.3rem 1.5rem; border-left: 4px solid var(--teal);
  background: var(--teal-050); border-radius: var(--radius-sm);
}
.callout strong { color: var(--navy); }

/* quote */
.quote-card { border-left: 4px solid var(--teal); background: var(--surface); padding: 1.5rem 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quote-card blockquote { margin: 0; font-size: 1.2rem; color: var(--navy); font-style: italic; }
.quote-card cite { display: block; margin-top: 0.9rem; font-style: normal; font-weight: 600; color: var(--muted); }

/* stat strip */
.stats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 680px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.stat__k { font-weight: 700; color: var(--teal-600); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat__v { color: var(--text); }

/* fit / not-fit */
.fit { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__col { padding: 1.4rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.fit__col--yes { border-top: 4px solid var(--teal); }
.fit__col--no { border-top: 4px solid var(--coral); }
.fit__col h3 { display: flex; align-items: center; gap: 0.5rem; }
.fit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.fit li { padding-left: 1.6rem; position: relative; }
.fit__col--yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.fit__col--no li::before { content: "\2715"; position: absolute; left: 0; color: var(--coral); font-weight: 800; }

/* about */
.about__media img { width: 100%; max-width: 150px; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 1 / 1; object-fit: cover; background: var(--navy); }
.about__placeholder {
  width: 100%; max-width: 360px; aspect-ratio: 1/1; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--teal-600));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 3rem; font-weight: 800; letter-spacing: 0.05em; box-shadow: var(--shadow-md);
}

/* FAQ accordion */
.faq { display: grid; gap: 0.75rem; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--navy); font-size: 1.05rem;
  padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__icon { flex: none; width: 20px; height: 20px; transition: transform 0.2s ease; color: var(--teal); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; }
.faq__a p { margin: 0 0 1rem; }
.faq__item.is-open .faq__a { padding: 0 1.3rem 1.2rem; max-height: 600px; }

/* ----- CTA / form ----- */
.book__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .book__grid { grid-template-columns: 1fr 1.05fr; } }
.riskbox { background: var(--teal-050); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.25rem; }
.riskbox strong { color: var(--navy); }
.influencer { border-left: 4px solid var(--coral); padding: 0.4rem 0 0.4rem 1rem; margin: 1.25rem 0; }
.book__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); margin-top: 1.25rem; aspect-ratio: 4/3; object-fit: cover; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.95rem; }
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-050); }
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
.form__error { color: var(--coral); font-weight: 600; margin: 0 0 1rem; display: none; }
.form__error.is-visible { display: block; }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #B9C4D1; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer a { color: #CBD8E4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.footer__brand .brand__name { color: #fff; }
.footer__tag { color: #8FA0B3; margin: 0.4rem 0 0.8rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer__legal { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #8FA0B3; }

/* simple page (privacy/thanks/404) */
.simple-page { min-height: 60vh; }
.simple-page .container { max-width: var(--maxw-narrow); }
