/* ============================================================
   COACH WEBSITE TEMPLATE: STYLES
   Look: a well-set essay. Ivory paper, dark ink, deep teal.
   Big Spectral headlines, narrow prose, plenty of quiet.
   Change your brand in one place: the accent values below.
   Fonts: Spectral (display) + Work Sans (body),
   loaded in each page's <head>.
   ============================================================ */

:root {
  /* EDIT these two to re-colour the whole site */
  --accent: oklch(46% 0.085 210);       /* deep teal */
  --accent-deep: oklch(38% 0.08 210);

  /* Paper and ink. Tinted, never pure white or black. */
  --paper: oklch(97% 0.008 95);
  --paper-deep: oklch(94.5% 0.012 95);
  --ink: oklch(24% 0.02 260);
  --ink-soft: oklch(45% 0.015 260);
  --line: oklch(87% 0.015 95);

  --measure: 68ch;
  --max: 1060px;
}

/* Fallback for older browsers that don't know oklch */
@supports not (color: oklch(50% 0 0)) {
  :root {
    --accent: #1d6a7b;
    --accent-deep: #14525f;
    --paper: #f7f5ef;
    --paper-deep: #efece3;
    --ink: #23262f;
    --ink-soft: #5b5f68;
    --line: #ddd7c9;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, .m-num, .price, .pullquote blockquote {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 500;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }

img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.icon { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; }

/* Real text links: underlined in teal, not dressed as buttons */
.prose a, .textlink, footer.site a, .contact-lines a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose a:hover, .textlink:hover, footer.site a:hover, .contact-lines a:hover {
  color: var(--accent-deep);
}

/* ============================================================
   INTRO ANIMATION: rise, sharpen, fade, element by element.
   fill-mode "both" holds the start state, so no static opacity 0.
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero .kicker  { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.hero h1       { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.14s both; }
.hero .lead    { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.26s both; }
.hero .actions { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.38s both; }
.hero .proof   { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.50s both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header / nav ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 16px;
}
.wordmark {
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark em { font-style: italic; }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main > a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
}
nav.main > a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* ============================================================
   THE ONE BUTTON: a quiet teal pill for the primary call to
   action, with a 1px border beam that orbits while hovered.
   Everything else on the site is a text link.
   ============================================================ */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent);
  color: var(--paper);
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  isolation: isolate;
  transition: background 0.2s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn::before {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 300deg, var(--accent) 332deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: -1;
}
.btn:hover::before { opacity: 1; animation: beam 1.3s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.btn.big { padding: 15px 32px; font-size: 16.5px; }

/* ---------- Hero: a statement, not a pitch deck ---------- */
.hero { padding: 104px 0 84px; }
.kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 17ch;
}
.hero .lead {
  margin: 26px 0 34px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero .actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero .proof {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.sec-note { font-size: 15px; color: var(--ink-soft); margin-top: 14px; }

/* ============================================================
   THE METHOD: numbered essay sections. An oversized Spectral
   numeral set beside prose. No circles, no cards, no icons.
   ============================================================ */
.method-step {
  display: grid;
  grid-template-columns: 130px minmax(0, var(--measure));
  gap: 12px 36px;
  align-items: start;
  padding: 44px 0;
}
.method-step + .method-step { border-top: 1px solid var(--line); }
.m-num {
  font-size: clamp(72px, 9vw, 116px);
  font-style: italic;
  line-height: 0.85;
  color: var(--accent);
}
.method-step h3 { font-size: 26px; margin-bottom: 10px; }
.method-step p { color: var(--ink-soft); }
.method-step p + p { margin-top: 0.9em; }

/* ---------- Featured pull quote: one voice, set large ---------- */
.pullquote { padding: 96px 0; }
.pullquote blockquote {
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 26ch;
  text-wrap: balance;
}
.pullquote cite {
  display: block;
  margin-top: 24px;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.pullquote cite::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: 4px;
  margin-right: 12px;
}

/* ---------- Results: numbers in prose, not stat cards ---------- */
.results .prose strong {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: 1.06em;
}

/* ---------- About: one honest rectangle of a photo ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.photo-ph {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

/* Photo slots: click one in edit mode and your photo fills the frame. */
[data-photo] { position: relative; overflow: hidden; }
[data-photo] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
[data-photo].has-img { background: none; }

/* ---------- Offers (work-with-me page): ruled essay entries ---------- */
.offer {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) auto;
  gap: 16px 48px;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.offer:last-of-type { border-bottom: 1px solid var(--line); }
.offer h3 { font-size: 28px; margin-bottom: 12px; }
.offer .price {
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  color: var(--accent-deep);
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
}
.offer .price small {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.offer p { color: var(--ink-soft); }
.offer p + p { margin-top: 0.9em; }
.offer ul { margin: 14px 0 0 1.2em; color: var(--ink-soft); }
.offer ul li { margin-top: 6px; }
.offer ul li::marker { color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-lines { max-width: var(--measure); }
.contact-lines .cline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.contact-lines .cline:last-child { border-bottom: 1px solid var(--line); }
.contact-lines .icon { color: var(--accent-deep); }

form.enquiry { max-width: 560px; }
form.enquiry label { display: block; font-weight: 600; margin: 22px 0 7px; font-size: 15px; }
form.enquiry input, form.enquiry textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
form.enquiry input:focus, form.enquiry textarea:focus {
  outline: none;
  border-color: var(--accent);
}
form.enquiry textarea { min-height: 130px; resize: vertical; }
form.enquiry .hint { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
form.enquiry button { margin-top: 30px; }

/* ---------- Closing call to action ---------- */
.cta-close h2 { max-width: 20ch; }
.cta-close .actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.cta-close p { color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 52px 0 36px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
footer.site .cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 30px;
}
footer.site h4 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 10px;
}
footer.site .legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
}

/* ---------- Mobile ---------- */
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo-ph { max-width: 420px; }
  .offer { grid-template-columns: 1fr; }
  .offer .price { text-align: left; }
  .method-step { grid-template-columns: 1fr; gap: 8px; }
  .m-num { font-size: 64px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 16px;
  }
  nav.main.open { display: flex; }
  header.site .container { position: relative; }
  .hero { padding: 64px 0 56px; }
  section { padding: 60px 0; }
  .pullquote { padding: 68px 0; }
}

/* ---------- Sticky mobile booking button ---------- */
.book-sticky { display: none; }
@media (max-width: 720px) {
  .book-sticky {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: var(--accent);
    color: var(--paper);
    font-weight: 600; font-size: 16.5px;
    padding: 15px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 18px oklch(24% 0.02 260 / 0.22);
    z-index: 60;
  }
  body { padding-bottom: 84px; }
}

/* ---------- Edit kit: appears only when opened from your computer ---------- */
.edit-kit {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 100;
}
.edit-kit button {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}
.edit-kit button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.edit-kit #edit-save { background: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) {
  .edit-kit { bottom: 84px; }
}
