/* ==========================================================================
   Shine Again Coaching site styles
   Design tokens taken from the original design canvas.
   Change a colour or font here and it updates across every page.
   ========================================================================== */

:root {
  /* Brand palette */
  --cream:        #FAF3E8;  /* page background */
  --cream-deep:   #F1E8D9;  /* alternating band */
  --periwinkle:   #EBEDF5;  /* alternating band / cards */
  --navy:         #2E3350;  /* dark call-to-action bands */
  --navy-soft:    #C7CBE0;  /* body text on navy */
  --blue:         #545E86;  /* links, buttons, accents */
  --blue-dark:    #454D70;  /* button hover */
  --ink:          #2B2620;  /* headings */
  --ink-soft:     #57514A;  /* body copy */
  --line:         #E7DEC9;  /* hairline on cream */
  --line-blue:    #DEE1EE;  /* hairline on periwinkle */

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 4px;
  --band: clamp(56px, 7vw, 88px);
  --gutter: clamp(20px, 5vw, 32px);
}

/* --------------------------------------------------------------- Reset -- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 20px;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 32px); }
h3 { font-size: 24px; line-height: 1.25; }

p { margin: 0 0 16px; color: var(--ink-soft); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

/* Visible focus for keyboard users on every interactive element. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Anchor links must clear the sticky header, or the heading they jump to
   ends up hidden behind it. */
:where(section, article, main, h1, h2, h3)[id] { scroll-margin-top: 92px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 500;
  background: var(--navy); color: var(--cream);
  padding: 12px 20px; border-radius: 0 0 var(--radius) var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: var(--cream); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- Layout -- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.band { padding-block: var(--band); }
.band--cream-deep { background: var(--cream-deep); }
.band--periwinkle { background: var(--periwinkle); }
.band--navy { background: var(--navy); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--cream); }
.band--navy p { color: var(--navy-soft); }

.band--tight { padding-block: clamp(40px, 5vw, 60px); }

.split {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 5vw, 56px);
}
.split--reverse { flex-wrap: wrap-reverse; }
.split__text { flex: 1 1 420px; min-width: 280px; }
.split__media { flex: 1 1 300px; min-width: 260px; max-width: 400px; }

.centered { text-align: center; }
.section-intro { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 44px); text-align: center; }

.lede { font-size: 19px; color: var(--blue); font-weight: 500; margin-bottom: 24px; }
.quote-line { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--blue); margin: 0; }

/* ------------------------------------------------------------ Buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  line-height: 1; text-decoration: none; text-align: center;
  padding: 17px 32px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  min-height: 48px; /* comfortable tap target */
}
.btn--primary { background: var(--blue); color: var(--cream); }
.btn--primary:hover { background: var(--blue-dark); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 13px 24px; font-size: 14px; min-height: 44px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
/* Full-width, easy-to-hit buttons on small screens. */
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--blue);
  padding: 6px 0;
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }

.cta-note { font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; }
.band--navy .cta-note { color: var(--navy-soft); }

/* ------------------------------------------------------------- Header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px 0; }
.brand img { height: 40px; width: auto; position: relative; top: -2px; }
.brand__name, .brand__sub { display: block; font-family: var(--display); text-transform: uppercase; }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: .1em; color: var(--ink); }
.brand__sub  { font-weight: 500; font-size: 11px; letter-spacing: .28em; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 4px; }
/* :not(.btn) throughout, so these never out-specify the button styles. */
.nav a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 2px; white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:not(.btn)[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 10px; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 12px; margin: -12px -8px -12px 0;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); }
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 999px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 200;
    background: var(--cream);
    flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 30px; font-weight: 600; padding: 12px 20px; }
  .nav .btn { margin: 20px 0 0; font-size: 16px; padding: 17px 36px; }
  .nav__close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none; cursor: pointer;
    font-size: 34px; line-height: 1; color: var(--ink); padding: 8px 14px;
  }
}
@media (min-width: 1000px) {
  .nav__close { display: none; }
}

/* -------------------------------------------------------------- Cards -- */

.grid { display: grid; gap: 20px; }
.grid--shine { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 32px; }
@media (max-width: 640px) {
  .grid--shine { grid-template-columns: 1fr; }
}

.card {
  background: var(--periwinkle); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
}
.card__icon { color: var(--blue); display: block; margin: 0 auto 12px; }
.card__title { font-weight: 600; font-size: 15px; letter-spacing: .04em; margin-bottom: 8px; color: var(--ink); }
.card__body { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.quote-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
}
.quote-card p { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.quote-card cite { font-style: normal; font-size: 14px; color: var(--blue); font-weight: 600; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--periwinkle); color: var(--ink);
  border-radius: 20px; padding: 8px 16px 8px 12px; font-size: 13.5px;
}
.pill svg { color: var(--blue); flex-shrink: 0; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink); line-height: 1.6; }
.tick-list svg { color: var(--blue); flex-shrink: 0; margin-top: 4px; }

/* Two even columns that fill row by row, so an odd number of points sits
   naturally rather than needing to be split into two hand-balanced lists. */
.tick-list--split {
  max-width: 900px; margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px; row-gap: 16px;
}
@media (max-width: 700px) {
  .tick-list--split { grid-template-columns: 1fr; }
}

.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.dot-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); margin-top: 11px; flex-shrink: 0;
}

/* ------------------------------------------------- Photo placeholders -- */
/* Drop a real image into /assets/photos/ using the filename in the src and
   it replaces the placeholder automatically. Until then, a labelled
   placeholder is shown (see the img error handler in site.js). */

.photo {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--periwinkle) 0 14px, #E0E3F0 14px 28px);
  border: 1px solid var(--line-blue);
  display: flex; align-items: center; justify-content: center;
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square   { aspect-ratio: 1 / 1; }
.photo--round    { aspect-ratio: 1 / 1; border-radius: 50%; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
/* Keeps the top of the frame intact, so a portrait loses height from the
   bottom rather than having the top of someone's head cropped off. */
.photo--top img { object-position: center top; }
.photo::after {
  content: attr(data-label);
  position: absolute; z-index: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); text-align: center;
  background: var(--cream); border: 1px solid var(--line-blue);
  padding: 8px 14px; border-radius: 2px; max-width: 80%;
}
.photo--round::after { font-size: 8px; padding: 4px 8px; border: none; background: none; }

.avatar { width: 96px; height: 96px; flex-shrink: 0; }

/* ---------------------------------------------------------- Steps/FAQ -- */

.stage {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 32px);
  align-items: flex-start; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.stage:last-child { border-bottom: none; }
.stage__mark { flex: 0 0 110px; display: flex; justify-content: center; }
.stage__badge {
  width: 72px; height: 72px; border-radius: 50%; background: var(--periwinkle);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.stage__body { flex: 1 1 380px; min-width: 260px; }
.stage__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--blue); margin-bottom: 6px; }
.stage__title { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.key-question {
  display: inline-block; background: var(--cream); border: 1px solid var(--line-blue);
  border-radius: 20px; padding: 8px 16px; font-size: 14px; font-style: italic; color: var(--blue);
}
@media (max-width: 560px) {
  .stage__mark { flex-basis: auto; }
  .stage__badge { width: 56px; height: 56px; }
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 24px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; line-height: 1;
}
.steps h3 { font-family: var(--body); font-size: 16px; font-weight: 600; margin: 6px 0 4px; }
.steps p { font-size: 15.5px; margin: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 17.5px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 0 24px; }
.faq p { font-size: 16.5px; }

/* --------------------------------------------------------------- Form -- */

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line-blue);
  border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: #C3C8DE; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--blue); }

.form-status { font-size: 15px; padding: 14px 16px; border-radius: var(--radius); margin: 0; }
.form-status[data-state="error"] { background: #F6E4E4; color: #7A2E2E; border: 1px solid #E3C0C0; }
.form-status[data-state="working"] { background: var(--periwinkle); color: var(--ink-soft); }
.form-status:empty { display: none; }

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

.panel {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 36px);
}

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.contact-list svg { color: var(--blue); flex-shrink: 0; margin-top: 3px; }

/* ------------------------------------------------------------- Footer -- */

.site-footer { background: var(--navy); color: var(--navy-soft); padding: clamp(48px, 6vw, 64px) 0 28px; }
.site-footer a { color: #E8EAF2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  padding-bottom: 32px; border-bottom: 1px solid #454B6E;
}
.footer-brand { flex: 1 1 300px; max-width: 380px; }
.footer-brand .brand__name { color: var(--cream); }
.footer-brand .brand__sub { color: #9AA0C4; }
.footer-brand p { color: var(--navy-soft); font-size: 15.5px; margin: 16px 0 0; }
.footer-tag { font-family: var(--display); font-style: italic; font-size: 18px; color: #fff !important; margin-top: 14px !important; }
.footer-col { flex: 0 1 auto; }
.footer-col h2 {
  font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #9AA0C4; margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 24px; font-size: 14px; color: #9AA0C4;
}
.footer-bottom a { color: #9AA0C4; }

/* --------------------------------------------------------------- Misc -- */

.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--body); font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.prose ul { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose .todo {
  background: #FBF0CE; border: 1px solid #E4CE87; border-radius: 3px;
  padding: 1px 7px; font-family: var(--mono); font-size: 13px; color: #6B5310;
}
