/* ==========================================================================
   Charlie Lamont — facilitator & executive coach
   Hand-written CSS. No framework, no build step, no external requests.
   Sections: 1 Tokens · 2 Reset · 3 Layout · 4 Header/nav · 5 Hero
             6 Typography · 7 Components · 8 Form · 9 Footer · 10 Print
   ========================================================================== */

/* 1 ── Tokens ─────────────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  /* Warm paper + deep teal */
  --ink:         #23211e;
  --ink-soft:    #5c574f;
  --ink-faint:   #857e72;
  --paper:       #faf8f4;
  --paper-alt:   #f4f0e8;
  --card:        #ffffff;
  --accent:      #1f5f5b;
  --accent-hover:#16443f;
  --accent-wash: #ecf3f2;
  --on-accent:   #ffffff;
  --rule:        #e5e0d6;
  --rule-strong: #d5cec0;
  --danger:      #9a3b2f;
  --success:     #1f5f3f;

  --shadow-sm: 0 1px 2px rgba(35, 33, 30, .05);
  --shadow-md: 0 1px 2px rgba(35, 33, 30, .04), 0 10px 28px rgba(35, 33, 30, .06);

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 43rem;          /* comfortable reading width */
  --shell:   66rem;          /* outer container */
  --gutter:  clamp(20px, 5vw, 32px);
  --radius:  10px;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:         #ece7dd;
    --ink-soft:    #b2aa9c;
    --ink-faint:   #8b8376;
    --paper:       #171614;
    --paper-alt:   #1e1c19;
    --card:        #211f1c;
    --accent:      #74bab2;
    --accent-hover:#93d0c9;
    --accent-wash: #1d2b29;
    --on-accent:   #10201f;
    --rule:        #322e29;
    --rule-strong: #423d36;
    --danger:      #e39182;
    --success:     #8ccfa8;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
  }
}

/* 2 ── Reset ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* The UA rule [hidden]{display:none} loses to any author display rule
   (.btn sets inline-flex), so hidden elements would still render. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* 3 ── Layout ─────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: calc(var(--measure) + var(--gutter) * 2); }
.shell.measure { margin-inline: auto; }

section { padding-block: clamp(44px, 7vw, 72px); }
.band { background: var(--paper-alt); }

/* hairline between same-coloured neighbours */
section + section:not(.band) { border-top: 1px solid var(--rule); }
.band + section:not(.band) { border-top: none; }

/* 4 ── Header / nav ───────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}
.brand:hover { color: var(--ink); }
.brand-name { font-size: 18px; letter-spacing: .01em; }
.brand-role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 15px;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-wash); }
.site-nav a[aria-current="true"] { color: var(--accent); font-weight: 600; }

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  padding: 8px 16px;
}
.site-nav .nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  padding: 11px 16px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 16px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* 5 ── Hero ───────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(52px, 9vw, 96px) clamp(44px, 7vw, 72px); }

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.015em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-role {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.hero-lede {
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.creds {
  display: flex;
  flex-wrap: wrap;
  /* Spacing, not separator dots: a middot between flex items dangles at the
     end of a line whenever the list wraps. Gap alone is right at every width. */
  gap: 10px 32px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-faint);
}

/* 6 ── Typography ─────────────────────────────────────────────────────── */

h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1.35;
}

p { text-wrap: pretty; }
p + p { margin-top: 16px; }

.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; }

/* 7 ── Components ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent-hover); }

/* Testimonial */
.quote {
  margin: 34px 0 0;
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  box-shadow: var(--shadow-sm);
}
.quote blockquote p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }
.quote figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-faint);
}
.quote figcaption::before { content: "— "; }

/* Client pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 15px;
}
.pills li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--ink-soft);
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Recent rooms */
.rooms { list-style: none; padding: 0; }
.rooms li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px dashed var(--rule);
}
.rooms li:last-child { border-bottom: none; }
.rooms li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* How I work */
.principles > div { padding-block: 16px; }
.principles > div + div { border-top: 1px solid var(--rule); }
.principles dt {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 5px;
}
.principles dd { margin: 0; color: var(--ink-soft); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 56px;
  min-height: 32px;
}
.steps li + li { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

/* 8 ── Contact & form ─────────────────────────────────────────────────── */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 38px 0 26px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-faint);
}
.contact-or::before, .contact-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.enquiry {
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow-sm);
}

.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.req { color: var(--accent); }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
}
.field-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.field-check label { font-weight: 400; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { justify-self: start; }

.form-status {
  font-family: var(--sans);
  font-size: 15px;
  margin: 0;
}
.form-status:empty { display: none; }
.form-status[data-state="error"]   { color: var(--danger); }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="sending"] { color: var(--ink-faint); }

.contact-details {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* 9 ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 30px 46px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-faint);
}
.site-footer .footer-links { margin-top: 6px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* Standalone content pages (privacy, 404) */
.page { padding-block: clamp(44px, 7vw, 76px); }
.page h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.page h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 32px 0 10px;
}
.page ul { margin: 12px 0 0 20px; }
.page li + li { margin-top: 6px; }
.page .updated { font-family: var(--sans); font-size: 14px; color: var(--ink-faint); margin-bottom: 28px; }

/* 10 ── Print ─────────────────────────────────────────────────────────── */

@media print {
  .site-header, .hero-actions, .contact-actions, .contact-or,
  .enquiry, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  section { padding-block: 12pt; border-top: none; }
  .band { background: #fff; }
  .card, .quote, .pills li { box-shadow: none; border-color: #ccc; }
  a { color: #000; text-decoration: none; }
  .contact-details a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
