/* ==========================================================================
   1. TOKENS
   Palette is the iColorPalette set: #068cdf, #8ec0e0, #185e55, #063937,
   #d9cec4. Edit here and the whole site changes. Do not hardcode colors or
   sizes anywhere below this block.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink:   #063937;  /* deep teal. body text and dark sections */
  --teal:  #185e55;
  --sand:  #d9cec4;  /* warm band background */
  --sky:   #8ec0e0;  /* light blue. text on dark backgrounds */
  --blue:  #068cdf;  /* bright accent. rules, numbers, markers */

  /* Darker blue for anything that carries text. #068cdf only hits 3.6:1 on
     white, which fails for body copy. This one is 7.7:1. */
  --blue-deep:  #03578b;
  --blue-press: #02456f;

  --muted: #4d7a75;
  --line:  #c7d0cd;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.3125rem;
  --step-2:  1.75rem;
  --step-3:  2.375rem;
  --step-4:  clamp(2.6rem, 7vw, 5rem);

  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --wrap:      72rem;
  --prose:     34rem;
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius:    4px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; }

a { color: var(--blue-deep); }

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

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

.skip {
  position: absolute;
  left: -9999px;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ink);
}
.skip:focus { left: 0; top: 0; }

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


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* Warm band. Redefining --line here means borders inside it pick up a warm
   tone automatically instead of needing their own rules. */
.section--band {
  background: var(--sand);
  --line: #c3b5a7;
  --muted: #4a5f52;
}

.prose { max-width: var(--prose); }

.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

@media (min-width: 48rem) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.rule { height: 6px; background: var(--blue); }


/* ==========================================================================
   4. SCROLL BEHAVIOUR
   Reveals only apply when JavaScript is running. Without it everything is
   visible immediately, which is the correct fallback.
   ========================================================================== */

.js .reveal { opacity: 0; transform: translateY(1.75rem); }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   5. HEADER
   ========================================================================== */

.masthead {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.brand {
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.nav { display: flex; gap: 1.75rem; }

.nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }

/* Marks the page you are currently on. Set aria-current="page" in the HTML. */
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 51.9375rem) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.9rem;
    padding-bottom: 0.5rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { border-bottom: none; }
  .nav a[aria-current="page"] { color: var(--blue-deep); }
}


/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(78vh, 44rem);
  overflow: clip;
  color: #fff;
  background: var(--ink);
}

.hero--short { min-height: min(46vh, 24rem); }

.hero__media { position: absolute; inset: 0; overflow: clip; }

.hero__media img {
  position: absolute;
  inset: -9% 0 auto 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
}

/* Scrim. Without this, white text on a photo is a coin flip. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 57, 55, 0.92) 0%,
    rgba(6, 57, 55, 0.62) 45%,
    rgba(6, 57, 55, 0.28) 100%
  );
}

.hero .wrap { position: relative; padding-block: clamp(3rem, 8vw, 5.5rem); }

.hero h1 { max-width: 17ch; }

/* "Build. Recover. Perform." sits above the headline. Only used on the
   hero, where the sky blue has enough contrast against the scrim. */
.kicker {
  margin-bottom: 1.1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}

.hero .lede { color: var(--sky); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* The photo drifts as you scroll. Native CSS, no JavaScript, and browsers
   without support simply show a still image. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media img {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
  }
}

@keyframes hero-drift { to { transform: translateY(6%); } }

.lede {
  max-width: var(--prose);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}


/* ==========================================================================
   7. PINNED STORY SECTION
   The image holds still while the text blocks scroll past it.
   ========================================================================== */

.pin__inner { display: grid; gap: 2.5rem; align-items: start; }

.pin__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pin__blocks { display: grid; gap: 3rem; }
.pin__blocks h3 { margin-bottom: 0.4em; }
.pin__blocks p { margin: 0; max-width: var(--prose); }

@media (min-width: 52rem) {
  .pin__inner { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .pin__media { position: sticky; top: 8vh; }

  /* The large gap gives the pinned image something to hold for. */
  .pin__blocks {
    gap: clamp(6rem, 22vh, 13rem);
    padding-block: clamp(3rem, 10vh, 7rem);
  }
}


/* ==========================================================================
   8. GALLERY
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.gallery figure { margin: 0; }

.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.gallery figcaption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--muted);
}


/* ==========================================================================
   9. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  color: #fff;
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--blue-press); border-color: var(--blue-press); }
.btn:focus-visible { outline-color: var(--sky); }

.btn--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }

.btn--outline { color: var(--blue-deep); background: transparent; }
.btn--outline:hover { color: #fff; background: var(--blue-deep); }

/* --- Facts --- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.75rem;
  margin: 0;
}
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-size: var(--step-1); font-weight: 700; }

/* --- Focus areas. What he specializes in. --- */
.focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 2.5rem;
}

.focus > div { padding-top: 1rem; border-top: 3px solid var(--blue); }
.focus h3 { margin-bottom: 0.4em; }
.focus p { margin: 0; color: var(--muted); }

/* --- Steps --- */
.steps {
  display: grid;
  gap: 2.25rem;
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.steps h3 { margin-bottom: 0.35em; }
.steps p { max-width: var(--prose); margin: 0; }

/* --- Session and plan rows --- */
.plans { display: grid; gap: 0; }

.plan {
  display: grid;
  gap: 1rem 2rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}
.plan:last-child { border-bottom: 1px solid var(--line); }

.plan h3 { margin-bottom: 0.3em; }
.plan__blurb { max-width: var(--prose); color: var(--muted); }

.plan__price { font-size: var(--step-2); font-weight: 800; white-space: nowrap; }
.plan__price span {
  display: block;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}

.plan__includes { margin: 0; padding: 0; list-style: none; }
.plan__includes li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
}
.plan__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 2px;
  background: var(--blue);
}

.plan__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

@media (min-width: 46rem) {
  .plan { grid-template-columns: 1fr auto; align-items: start; }
  .plan__price { text-align: right; }
}

/* --- FAQ --- */
.faq { max-width: 46rem; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  padding-block: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--blue-deep); }
.faq details[open] summary::after { content: " \2212"; }

.faq details p { max-width: var(--prose); color: var(--muted); }

/* --- Booking embed --- */
.embed {
  display: grid;
  place-items: center;
  min-height: 40rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  background: var(--sand);
  border: 1px dashed var(--line);
}
.embed iframe { width: 100%; min-height: 44rem; border: 0; background: var(--paper); }
.embed--live { padding: 0; border-style: solid; background: var(--paper); }
.embed__fallback { max-width: var(--prose); }
.embed__fallback p { margin: 0 0 0.75rem; }
.embed__fallback strong { color: var(--ink); font-size: var(--step-1); }

/* Placeholder sits shorter than a live calendar so the page does not have
   a big empty block before booking is turned on. */
.embed:not(.embed--live) { min-height: 16rem; }

/* --- Quote --- */
.quote { max-width: 30rem; margin: 0; }
.quote blockquote { margin: 0; }
.quote p {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quote figcaption { font-size: var(--step--1); color: var(--muted); }

/* --- CTA band --- */
.cta { color: #fff; background: var(--ink); }
.cta h2 { max-width: 18ch; }
.cta p { max-width: var(--prose); color: var(--sky); }

/* --- Forms --- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }

label { font-size: var(--step--1); font-weight: 600; }

input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--blue-deep); }

.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; }

.form-status { margin: 1rem 0 0; font-size: var(--step--1); }
.form-status[data-state="error"] { color: #a3231c; }
.form-status[data-state="ok"] { color: #146b4a; }

/* --- Footer --- */
.footer {
  padding-block: 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ==========================================================================
   10. ADDITIONS (Micah's feedback, Oct 2026)
   ========================================================================== */

/* --- Brand lockup. Tagline sits under the name everywhere it appears. --- */
.brand { display: grid; line-height: 1.1; }
.brand__tag {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero__brand {
  margin-bottom: 1.5rem;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.hero__brand span {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sky);
}

.footer__brand {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Tick list for "who this is for" --- */
.ticks { margin: 0; padding: 0; list-style: none; max-width: var(--prose); }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.8rem;
  height: 3px;
  background: var(--blue);
}

/* --- Credentials with ISSA badge --- */
.creds { display: grid; gap: 2rem; align-items: center; }
.badge { width: clamp(7rem, 18vw, 10rem); }

@media (min-width: 46rem) {
  .creds { grid-template-columns: auto 1fr; gap: 3rem; }
}

/* --- How it works --- */
.promises { margin-top: var(--section-y); }
.steps__cta { margin-top: 2.5rem; margin-bottom: 0; }

/* --- Forms --- */
.optional { font-weight: 400; color: var(--muted); }

/* --- Privacy page and form note --- */
.privacy h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.privacy h2:first-child { margin-top: 0; }
.privacy__updated { font-size: var(--step--1); color: var(--muted); }
.form-note { margin: 0 0 1.25rem; font-size: var(--step--1); color: var(--muted); }
