/* =====================================================================
   WiseChapter — Executive Coaching & Advisory
   Design language: mature, prestigious, restrained.
   Palette: deep navy, gold accent, warm neutrals/grey.
   Type: Fraunces (serif, headings) + Inter (sans, body).
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #14224d;
  --navy-deep:   #0e1833;
  --navy-800:    #1b2c5a;
  --gold:        #a98a4e;
  --gold-soft:   #c0a668;
  --ink:         #1c2230;   /* body text on light */
  --ink-soft:    #4a5163;
  --paper:       #fbfaf7;   /* warm neutral background */
  --paper-2:     #f3f0ea;   /* warm card / alt section */
  --line:        #e4dfd5;   /* warm hairline */
  --white:       #ffffff;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --narrow: 760px;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(19, 31, 66, 0.06), 0 1px 2px rgba(19, 31, 66, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(19, 31, 66, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 144px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--navy); line-height: 1.14; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
a  { color: var(--navy); text-decoration: none; }
em { font-style: italic; }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: var(--narrow); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.narrow { margin-inline: auto; text-align: center; }
.hide-mobile { display: none; }

.eyebrow, .section-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.section-eyebrow { color: #8f7440; }

.lede { font-size: 1rem; line-height: 1.7; font-weight: 500; color: var(--navy); margin-top: 0.9rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: 0.95rem 1.9rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  line-height: 1; text-align: center;
}
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2.3rem; font-size: 1.075rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 24px -10px rgba(169,138,78,.6); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 128px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 110px; width: auto; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.01em; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.nav-menu a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-menu a:hover { color: var(--navy); }
.nav-cta a { color: #fff; }
/* Language switch: a single button showing the OTHER language.
   The active language's button is hidden; clicking swaps them. */
.lang-item { display: flex; align-items: center; }
.lang-switch { display: inline-flex; }
.lang-btn { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); padding: 0.42rem 0.7rem; cursor: pointer; line-height: 1; transition: border-color .2s var(--ease), color .2s var(--ease); }
.lang-btn[aria-pressed="true"] { display: none; }
.lang-btn:hover { color: var(--navy); border-color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(169,138,78,0.07), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero::after {
  /* subtle hairline rule at base */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.hero-inner { max-width: 900px; }
.eyebrow { color: #8f7440; }
.hero .eyebrow { font-size: 0.98rem; }
.hero h1 { margin-bottom: 1.5rem; font-size: clamp(1.9rem, 4.2vw, 3.15rem); line-height: 1.22; }

/* Hero headline: the three lines appear one after another and all stay on screen.
   Hidden only under html.js; re-runs on language switch (innerHTML swap). */
.hero-line { display: block; }
.js .hero h1 .hero-line { opacity: 0; transform: translateY(14px); }
.js .hero h1.is-visible .hero-line { animation: heroLine .65s var(--ease) forwards; }
.js .hero h1.is-visible .hero-line:nth-child(1) { animation-delay: .05s; }
.js .hero h1.is-visible .hero-line:nth-child(2) { animation-delay: .7s; }
.js .hero h1.is-visible .hero-line:nth-child(3) { animation-delay: 1.35s; }
@keyframes heroLine { to { opacity: 1; transform: none; } }
.hero-sub { font-size: 1.15rem; max-width: 680px; margin-bottom: 2.25rem; color: var(--ink-soft); }
.hero-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-cta-note { font-size: 0.92rem; color: var(--ink-soft); }

.credibility-strip {
  list-style: none; margin: 3.5rem 0 0; padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.credibility-strip li { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 600; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.01em; }

/* ---------- Services at a glance (feature cards) ---------- */
.help { background: var(--paper-2); }
.help .section-head { text-align: center; margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; position: relative; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 1.75rem; width: 34px; height: 3px; background: var(--gold); border-radius: 0 0 2px 2px; }
.feature-num { display: block; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; font-weight: 500; color: var(--gold); letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.feature-card h3 { margin: 0 0 0.5rem; color: var(--navy); }
.feature-card p { margin: 0 0 0.85rem; font-size: 0.98rem; }
.feature-card p:last-child { margin-bottom: 0; }
.practice-hook { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 500; color: var(--navy); line-height: 1.4; }

/* ---------- Service detail sections (growth / coaching) ---------- */
.growth { background: var(--white); }
.coaching { background: var(--white); }
.service-points { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.service-points li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.65; }
.service-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.service-points strong { color: var(--navy); font-weight: 600; }

/* ---------- Strategic growth projects (navy) ---------- */
.services { background: var(--navy); color: #eaecf3; }
.services h2 { color: #fff; }
.services .section-eyebrow { color: var(--gold-soft); }
.services .lede { color: #c4c9d8; }
.services .section-head { text-align: center; margin-inline: auto; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column;
}
.project-card h3 { color: #fff; margin-bottom: 0.75rem; }
.project-card > p { color: #dde1eb; font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* ---------- LinkedIn link ---------- */
.about-linkedin { margin-top: 1.5rem; }
.linkedin-link { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: color .2s var(--ease); }
.linkedin-link:hover { color: #8f7440; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
/* Founder portrait: frameless transparent cutout sitting on the page. */
.portrait-img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-content h2 { margin-bottom: 1.25rem; }
.about-creds { list-style: none; margin: 1.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; }
.about-creds li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; color: var(--ink); }
.about-creds li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

/* ---------- Closing statement ---------- */
.closing { background: var(--white); text-align: center; }
.closing .statement { font-size: clamp(1.55rem, 3.2vw, 2.35rem); line-height: 1.3; max-width: 820px; margin-inline: auto; }

/* ---------- Contact (schedule + form) ---------- */
.final-cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.cta-head { text-align: center; margin-inline: auto; }
.final-cta .cta-head h2 { color: #fff; margin-bottom: 1.25rem; }
.final-cta .cta-head p { color: #cdd3e2; font-size: 1.12rem; max-width: 620px; margin-inline: auto; }
.final-cta .section-eyebrow { color: var(--gold-soft); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 620px; margin: 3rem auto 0; align-items: stretch; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; text-align: left; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.contact-card h3 { color: var(--navy); margin-bottom: 0.6rem; }
.contact-card > p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.5rem; }
.contact-card .btn { align-self: flex-start; }
.contact-card .cta-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.9rem; display: block; }

.contact-form .field { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,138,78,0.28); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form button { width: 100%; margin-top: 0.25rem; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0.85rem 0 0; }
.form-status { margin: 0.85rem 0 0; font-size: 0.9rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1f7a4d; }
.form-status.is-error { color: #b4423a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c0d2; padding-block: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 0.25rem 0 0; font-size: 0.9rem; color: #9aa2b8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: #c4c9d8; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: #8891a8; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--gold); color: var(--navy-deep); font-weight: 600;
  text-align: center; padding: 1rem; border-radius: var(--radius);
  box-shadow: 0 10px 30px -8px rgba(19,31,66,0.5);
}

/* ---------- Scroll reveal ----------
   Content is only hidden when JS is active (html.js). With JS off — or if the
   observer never fires — everything stays visible. Never gate content on JS. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 720px) { .hide-mobile { display: inline; } }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .credibility-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 128px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.5rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .32s var(--ease);
    max-height: calc(100vh - 128px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-menu .lang-item { padding: 0.9rem 0; }
  .lang-btn { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
  .nav-cta { margin-top: 0.75rem; }
  .nav-cta a { text-align: center; padding: 0.9rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Sticky mobile CTA, keep clear of footer */
  .mobile-cta { display: block; }
  .site-footer { padding-bottom: 6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
