/* ==========================================================================
   Mokhashi Advisors – main.css
   Single stylesheet. Brand tokens as CSS custom properties.
   Palette: 02 - GTM Strategy/Branding/Visual Identity.md
   Body type: Montserrat (Google Fonts). Wordmark: Para Central (outlined SVG).
   ========================================================================== */

/* --- Design tokens --------------------------------------------------------- */
:root {
  /* Brand */
  --color-brand: #465624;        /* deepest olive – wordmark, primary */
  --color-accent: #657f35;       /* light olive – highlights, links */
  --color-moss: #2a3416;         /* reserve dark */
  --color-sage: #8fa660;
  --color-pale-sage: #b7c788;
  --color-sage-wash: #dbe3c2;    /* tints, section backgrounds */

  /* System */
  --color-bg: #ffffff;
  --color-text: #111111;         /* near-black, warm undertone */
  --color-text-soft: #5a5a5a;    /* secondary text, captions */
  --color-border: #e5e5e5;       /* dividers */

  /* Type */
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Noto Serif", Georgia, "Times New Roman", serif;  /* big section headers (h1, h2) */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Fluid type scale */
  --fs-eyebrow: 0.78rem;
  --fs-small: 0.95rem;   /* nav, buttons, proof copy, form labels, footer */
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.15rem, 0.95rem + 0.9vw, 1.4rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.85vw, 2.75rem);
  --fs-h1: clamp(2.4rem, 1.7rem + 3.1vw, 4rem);

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Layout */
  --maxw: 900px;         /* single content width — navbar, hero, sections all share this */
  --radius: 4px;
  --transition: 160ms ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--color-brand);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
h1, h2 {                       /* big section headers — Noto Serif */
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: normal;
}
h3 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
a:hover { border-bottom-color: currentColor; }

img, svg { max-width: 100%; height: auto; display: block; }

strong { font-weight: var(--fw-semibold); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Layout helpers -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-5); }
.section--tint { background: var(--color-sage-wash); }

.eyebrow,
.contact-aside dt {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2);
}

.lead { font-size: var(--fs-lead); color: var(--color-text); line-height: 1.55; }

.text-soft { color: var(--color-text-soft); }

/* Narrative beats (shift / response) — quiet labels, body-size prose,
   even vertical rhythm so the section H2 stays dominant. */
.beat { margin-top: var(--space-4); }
.beat p:not(.eyebrow):not(:last-child) { margin-bottom: 0.75em; }   /* stacked-line cadence */

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1px solid var(--color-brand);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary {
  background: var(--color-brand);
  color: #fff;
  border-bottom-color: var(--color-brand);
}
.btn--primary:hover { background: var(--color-moss); border-color: var(--color-moss); }

/* --- Header / nav ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.wordmark { display: inline-block; border-bottom: none; }
.wordmark img { height: 45px; width: auto; }

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav a {
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
.site-nav a:hover:not(.btn),
.site-nav a[aria-current="page"]:not(.btn) { color: var(--color-brand); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--color-brand); }
.site-nav .btn { color: #fff; }
.site-nav .btn:hover { color: #fff; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding-block: var(--space-5); }
.hero .lead { margin-bottom: var(--space-4); }
.lead:has(+ .lead) { margin-bottom: 0.75em; }   /* stacked leads share the beat cadence */

/* --- Proof rows ------------------------------------------------------------ */
.proof-list { margin-top: var(--space-4); }
.proof-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.proof-row:last-child { border-bottom: 1px solid var(--color-border); }
.proof-row h3 { color: var(--color-text); font-weight: var(--fw-medium); font-size: var(--fs-body); margin: 0; }
.proof-row p { color: var(--color-text-soft); font-size: var(--fs-small); line-height: 1.6; margin: 0; }

/* --- Contact / forms ------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.form-field { margin-bottom: var(--space-3); }
.form-field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.7em 0.85em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(101, 127, 53, 0.15);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-hp { position: absolute; left: -5000px; } /* honeypot */

.contact-aside dt { margin-bottom: var(--space-1); }   /* eyebrow styling shared above */
.contact-aside dd { margin: 0 0 var(--space-3); }

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4);
  font-size: var(--fs-small);
  color: var(--color-text-soft);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.site-footer a { color: var(--color-text-soft); }
.site-footer a:hover { color: var(--color-brand); }

/* --- Responsive ------------------------------------------------------------ */
@media (min-width: 880px) {
  .container { padding-inline: var(--space-4); }
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
