/* ==========================================================================
   Smart Change — Coaching and Training
   Static one-page site. Fonts self-hosted (no third-party requests).
   ========================================================================== */

@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/lora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/lora-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/lora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/nunito-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Brand colours taken from the Smart Change logo */
  --green: #70D549;          /* logo green: accents, lines, highlights */
  --green-deep: #2F7A1A;     /* accessible green for buttons and links */
  --slate: #5A7E96;          /* logo slate blue */
  --slate-deep: #2C4655;     /* headings, footer */
  --ink: #23303A;            /* body text */
  --paper: #FBFCF9;          /* page background */
  --mist: #EEF4F0;           /* alternate section background */
  --line: #DCE5DF;

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 80px;
  --header-h-mobile: 64px;
  --container-max: 1120px;
  --text-max: 680px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--slate-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--slate-deep); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Eyebrow above section titles */
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--green); vertical-align: middle; margin-right: 10px; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  padding: .85em 1.8em; border-radius: 999px; border: 2px solid var(--green-deep);
  background: var(--green-deep); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green-deep); }
.btn--ghost:hover { background: var(--green-deep); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 252, 249, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate-deep); }
.logo-img { height: 54px; width: auto; }
.logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.logo-text small { display: block; padding-left: 14px; border-left: 2px solid var(--green); line-height: 1.3; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--slate-deep); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--green); color: var(--slate-deep); }
.main-nav .nav-cta a { padding: .55em 1.3em; border: 2px solid var(--green-deep); border-radius: 999px; color: var(--green-deep); }
.main-nav .nav-cta a:hover { background: var(--green-deep); color: #fff; }

/* Language switch: prepared for the Spanish version (hidden until /es/ exists) */
.lang-switch-item[hidden] { display: none; }
.lang-switch { font-size: .85rem; font-weight: 700; color: var(--slate); }
.lang-switch a { padding: 2px 4px; }
.lang-switch .is-active { color: var(--green-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--slate-deep); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  html { scroll-padding-top: var(--header-h-mobile); }
  .site-header { height: var(--header-h-mobile); }
  .logo-img { height: 42px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h-mobile); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta a { margin-top: 14px; text-align: center; border-bottom: 2px solid var(--green-deep); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section-head { max-width: var(--text-max); margin-bottom: 2rem; }
.prose { max-width: var(--text-max); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 120px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 213, 73, .18), rgba(112, 213, 73, 0) 70%);
  pointer-events: none;
}
.hero-quote { margin: 0 0 2.4rem; max-width: 820px; }
.hero-quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.22; color: var(--slate-deep); margin: 0 0 .5em;
}
.hero-quote cite { font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--slate); }
.hero-quote cite::before { content: "— "; color: var(--green); }
.hero-intro { max-width: var(--text-max); font-size: 1.12rem; }
.hero-intro .lead { font-size: 1.22rem; color: var(--slate-deep); }
.hero-intro strong { color: var(--green-deep); font-weight: 700; }

/* Two-column cards for How Coaching Works / How I Work */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.tagline {
  margin: 1.4rem 0 0; padding-left: 18px; border-left: 3px solid var(--green);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--slate-deep);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.about-aside { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-aside { margin-top: 46px; position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 899px) { .about-aside { order: 2; } }
.aside-quote {
  margin: 0; position: relative; padding: clamp(28px, 4vw, 40px);
  background: #fff; border: 3px solid var(--green); border-radius: var(--radius);
}
.aside-quote::before {
  content: "“"; display: block; height: .5em; margin-bottom: .15em;
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--green);
}
.aside-quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.35; color: var(--slate-deep); }
.aside-quote em { color: var(--green-deep); font-weight: 600; }
.key-facts { list-style: none; margin: 0; padding: 0; background: var(--slate-deep); color: #E6EEF2; border-radius: var(--radius); overflow: hidden; }
.key-facts li { padding: 16px 22px 16px 52px; position: relative; border-top: 1px solid rgba(255,255,255,.12); }
.key-facts li:first-child { border-top: 0; }
.key-facts li::before {
  content: ""; position: absolute; left: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--green); box-shadow: inset 0 0 0 3px var(--slate-deep), 0 0 0 1px var(--green);
}
.key-facts strong { color: #fff; font-weight: 700; }

.credentials { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px 22px 22px; }
.credentials h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.credentials ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 32px; }

.credentials li { position: relative; padding-left: 22px; line-height: 1.5; }
.credentials li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--green);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.contact-form { background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-deep); margin-bottom: .4rem; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(112, 213, 73, .25); }
.form-privacy { font-size: .85rem; line-height: 1.55; color: var(--slate-deep); margin: .4rem 0 1.4rem; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.is-success { color: var(--green-deep); }
.form-status.is-error { color: #A33A2A; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--slate-deep); color: #DCE6EC; padding: 40px 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .prose { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal-meta { color: var(--slate); font-size: .95rem; margin-bottom: 2rem; }
.legal ul { padding-left: 1.2em; }
.pending {
  background: #FFF6D6; border: 1px dashed #C9A227; padding: 0 .3em; border-radius: 4px; font-weight: 700; color: #6B5300;
}
.back-link { display: inline-block; margin-top: 2.4rem; font-weight: 700; }

.nowrap { white-space: nowrap; }
