/* Exceptional Coaching — Susan Costello
   Fonts: Alegreya (headings) and Lexend (body), both SIL Open Font License, self-hosted.
   Palette drawn from Susan's headshot: evergreen (the cedar behind her), plum (her top), lilac, sage. */

@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #1d3a33;          /* evergreen: headings, dark band, footer */
  --text: #2b3a35;         /* body copy */
  --slate: #56685f;        /* secondary text */
  --page: #f6f8f4;         /* page background */
  --mist: #e7eee5;         /* alternate sections (sage) */
  --plum: #6b2580;         /* buttons, markers */
  --plum-bright: #7f3896;  /* hover */
  --lilac: #d8bde4;        /* accent on the dark band */
  --lilac-wash: #e3cfeb;   /* testimonial highlights */
  --line: #cbd8cc;
  --white: #ffffff;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --prose: 38rem;
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

b, strong { font-weight: 600; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 2.85rem); font-style: italic; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--ink); text-decoration-color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--prose); }
.lead { font-size: 1.2em; color: var(--ink); }
.muted { color: var(--slate); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 0.6rem; border: 2px solid transparent;
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--plum); color: var(--white); border-color: var(--plum); }
.btn-primary:hover { background: var(--plum-bright); border-color: var(--plum-bright); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(246, 248, 244, 0.85); backdrop-filter: blur(6px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { text-decoration: none; line-height: 1.15; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--ink); }
.brand-sub { display: block; font-size: 0.85rem; color: var(--slate); }

.nav-toggle {
  display: none;
  font: 600 1rem var(--sans); color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: 0.5rem;
  padding: 0.45rem 0.9rem; min-height: 2.75rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.5rem; }
.site-nav a { text-decoration: none; font-size: 1rem; color: var(--ink); padding: 0.4rem 0; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--plum); }
.site-nav .nav-cta { background: var(--plum); color: var(--white); padding: 0.55rem 1rem; border-radius: 0.5rem; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--plum-bright); text-decoration: none; }

/* The full menu needs about 1020px; below that it collapses behind the Menu button */
@media (max-width: 66rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--page); border-bottom: 1px solid var(--line); }
  .site-header.open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem; gap: 0; }
  .site-nav a { display: block; padding: 0.8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav .nav-cta { margin-top: 0.9rem; text-align: center; padding: 0.8rem 1rem; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #e3ebe5; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink a { color: var(--white); }
.section-ink :focus-visible { outline-color: var(--lilac); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) var(--section); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 54rem) { .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.75fr); } }

.hero-title { font-size: clamp(2.85rem, 8vw, 5.75rem); font-weight: 500; line-height: 0.98; margin-bottom: 0.5em; letter-spacing: -0.01em; }
.hero-title span { display: block; }
.hero-title .reply {
  font-style: italic; font-weight: 400;
  margin-left: clamp(1.25rem, 6vw, 5rem);
  margin-top: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title .reply { animation: reply-in 700ms cubic-bezier(.2,.7,.2,1) 650ms both; }
  @keyframes reply-in { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
}
.hero-intro { max-width: 36rem; }
.hero-intro p:first-child { font-size: 1.2em; color: var(--ink); }

.portrait {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%; max-width: 20rem; justify-self: center;
  border-radius: 1.5rem 1.5rem 1.5rem 0.25rem;  /* one tighter corner: a nod to a speech bubble */
  overflow: hidden;
  background: var(--mist);
}
@media (min-width: 54rem) { .portrait { max-width: 24rem; } }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* How I help */
.help-list {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 0 3rem;
}
@media (min-width: 48rem) { .help-list { grid-template-columns: 1fr 1fr; } }
.help-list li {
  position: relative; padding: 1.05rem 0 1.05rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.12em; color: var(--ink);
}
.help-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 1.62rem;
  width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--plum);
}

/* Working together */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 54rem) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; } }

.expect { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.expect h3 { margin-bottom: 0.9rem; }
.expect ul { list-style: none; margin: 0; padding: 0; }
.expect li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.expect li:first-child { border-top: 0; padding-top: 0; }
.expect strong { display: block; color: var(--ink); }


/* Been there (dark band) */
.been-there-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 54rem) { .been-there-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr); } }
.been-there .prose { max-width: 40rem; }
.been-there .portrait { background: rgba(255, 255, 255, 0.06); }
.been-there .kicker { font-size: 1.2em; color: var(--white); }
.been-there .big {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.05;
  color: var(--lilac); margin: 2rem 0 0;
}


/* Testimonials: full quotes in balanced columns, one line from each highlighted */
.quotes { columns: 2 24rem; column-gap: clamp(2.5rem, 5vw, 4rem); margin-top: 2.5rem; }
.quotes figure { break-inside: avoid; margin: 0 0 2.75rem; position: relative; padding-left: 2.1rem; }
.quotes figure::before {
  content: "\201C"; position: absolute; left: -0.15rem; top: -0.6rem;
  font: 500 3.75rem/1 var(--serif); color: var(--plum);
}
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 1.16em; line-height: 1.55; color: var(--ink); }
.quotes blockquote p { margin: 0; }
.quotes mark {
  color: inherit; font-weight: 500;
  background: linear-gradient(transparent 55%, var(--lilac-wash) 55%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Rates */
.rates-grid { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); margin-top: 2rem; }
@media (min-width: 54rem) { .rates-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.rate-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rate-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); font-size: 1.1em; color: var(--ink); }
.rate-list .price { font-family: var(--serif); font-weight: 500; font-size: 1.55em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.rates-notes { margin: 0; padding-left: 1.2rem; }
.rates-notes li { margin-bottom: 0.6rem; }
.rates-notes li::marker { color: var(--plum); }

.pay {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--mist); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.25rem 3rem; align-items: center;
}
@media (min-width: 60rem) { .pay { grid-template-columns: minmax(0, 1fr) auto; } }
.pay h3 { margin-bottom: 0.35rem; }
.pay p { margin: 0; max-width: 34rem; }
.pay-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 30rem) { .pay-buttons .btn { width: 100%; } }

/* FAQ */
.faq { max-width: 46rem; margin-top: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font: 400 1.75rem/1 var(--sans); color: var(--plum);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.25rem; max-width: 40rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 54rem) { .contact-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.helpers-line { font-size: 1.2em; color: var(--ink); margin-bottom: 0.5rem; }
.direct { margin: 2rem 0 0; padding: 0; list-style: none; }
.direct li { margin-bottom: 1rem; }
.direct .label { display: block; font-size: 0.95rem; color: var(--slate); }
.direct a { font-size: clamp(1rem, 5vw, 1.3rem); font-weight: 600; overflow-wrap: anywhere; }
.crisis { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--slate); }

.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; padding: 0; }
.field .hint { display: block; font-weight: 400; font-size: 0.92rem; color: var(--slate); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 0.75rem 0.9rem; border: 2px solid var(--line); border-radius: 0.5rem; background: var(--page);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(107, 37, 128, 0.3); }
.field textarea { min-height: 8.5rem; resize: vertical; }
fieldset.field { border: 0; margin: 0 0 1.25rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; margin: 0; cursor: pointer; }
.choices input { width: 1.2rem; height: 1.2rem; accent-color: var(--plum); }
.req { color: var(--plum); }
.hidden { position: absolute; left: -9999px; }
.contact-form .btn { width: 100%; margin-top: 0.5rem; }
.form-privacy { font-size: 0.9rem; color: var(--slate); margin: 1rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c8d6cd; padding-block: 3.5rem 2.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--white); text-decoration-color: var(--lilac); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 0.35rem; }
.site-footer h2 { font-family: var(--sans); font-style: normal; font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.15); }
.site-footer :focus-visible { outline-color: var(--lilac); }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; display: grid; align-content: center; padding-block: var(--section); }
.simple h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
