/* ============================================================
   James Davidson — Embodied Wisdom Practice
   css/style.css
   ============================================================

   Fonts loaded via <link> in each HTML file:
     Libre Baskerville — 400, 700, 400 italic
     Ysabeau Office    — 500, 600, 700
   ============================================================ */

/* ============================================================
   Design Tokens
   ============================================================ */

:root {
  /* Colours */
  --parchment:  #F8F2EA;
  --plaster:    #D1C7B5;
  --sage:       #9FA791;
  --gold:       #CCAF67;
  --clay:       #AA7A5D;
  --smoke:      #5D5751;
  --deep-earth: #463D2F;
  --charcoal:   #2A2D28;

  /* Typography */
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Ysabeau Office', system-ui, sans-serif;

  /* Layout */
  --max-w:      680px;
  --max-w-wide: 960px;
  --side:       clamp(1.5rem, 6vw, 5rem);
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  background-color: var(--parchment);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Typography
   ============================================================ */

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* ============================================================
   Eyebrow Labels
   ============================================================ */

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}

.section--charcoal .eyebrow,
.section--deep-earth .eyebrow {
  color: rgba(248, 242, 234, 0.5);
}

/* ============================================================
   Kintsugi Rule
   ============================================================ */

.kintsugi-rule {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ============================================================
   Dividers
   ============================================================ */

.divider--accent {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 2rem 0;
}

.divider--subtle {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--plaster);
  border: none;
  margin: 2rem 0;
}

.divider--soft {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px dashed rgba(209, 199, 181, 0.5);
  margin: 2rem 0;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  background: var(--charcoal);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--deep-earth);
}

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

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--gold:hover {
  background: var(--clay);
  color: var(--parchment);
}

/* ============================================================
   Text Link
   ============================================================ */

.text-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.7;
}

.text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--side);
  background: transparent;
  transition: background 0.35s ease;
}

.nav--visible {
  background: var(--charcoal);
}

.nav__logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--parchment);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.3rem;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 0.75;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav__links a.active::after {
  width: 100%;
}

.nav__links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--parchment);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

/* Mobile full-screen overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--charcoal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav__overlay.open {
  display: flex;
}

.nav__overlay a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--parchment);
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: center;
}

.nav__overlay a:hover {
  color: var(--gold);
}

.nav__overlay a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: clamp(4rem, 12vw, 8rem) var(--side);
  background: var(--parchment);
}

.section--plaster {
  background: var(--plaster);
}

.section--charcoal {
  background: var(--charcoal);
  color: var(--parchment);
}

.section--deep-earth {
  background: var(--deep-earth);
  color: var(--parchment);
}

.section__inner {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section__inner--wide {
  max-width: var(--max-w-wide);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 6vw, 4rem) var(--side);
  padding-top: 7rem;
  background: var(--deep-earth);
  color: var(--parchment);
  overflow: hidden;
}

.hero--charcoal {
  background: var(--charcoal);
}

.hero--plaster {
  background: var(--plaster);
  color: var(--charcoal);
  min-height: 60svh;
}

.hero--medium {
  min-height: 70svh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
}

.hero__content .eyebrow {
  color: rgba(248, 242, 234, 0.5);
}

.hero--plaster .hero__content .eyebrow {
  color: var(--smoke);
}

.hero__content h1 {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.hero__content p {
  max-width: 540px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero--plaster .hero__content p {
  opacity: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--side);
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  z-index: 1;
  user-select: none;
}

/* ============================================================
   Pull Quote
   ============================================================ */

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.55;
  color: var(--deep-earth);
  margin: 1.5rem 0 2rem;
}

.section--plaster .pull-quote {
  color: var(--charcoal);
}

.section--charcoal .pull-quote,
.section--deep-earth .pull-quote {
  color: var(--parchment);
}

/* ============================================================
   Positioning Line
   ============================================================ */

.positioning-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--deep-earth);
  margin-top: 2rem;
}

/* ============================================================
   Two Pathway Cards
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--deep-earth);
  color: var(--parchment);
  padding: 2.5rem 2.25rem;
}

.card .eyebrow {
  color: rgba(248, 242, 234, 0.45);
}

.card h3 {
  margin: 1rem 0;
}

.card p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  opacity: 0.88;
}

.card .text-link {
  color: var(--parchment);
}

/* ============================================================
   Week Cards (3-col grid)
   ============================================================ */

.week-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.week-card {
  border-top: 1px solid var(--plaster);
  padding-top: 1.5rem;
}

.section--plaster .week-card {
  border-top-color: rgba(70, 61, 47, 0.2);
}

.week-label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.week-card h3 {
  margin-bottom: 0.75rem;
}

.week-card p {
  font-size: clamp(0.9rem, 2vw, 0.975rem);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   Outcomes Grid
   ============================================================ */

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 3rem;
  margin-top: 2rem;
}

.outcome-item {
  padding-top: 1rem;
  border-top: 1px solid var(--gold);
}

.section--deep-earth .outcome-item {
  border-top-color: rgba(204, 175, 103, 0.35);
}

.outcome-item p {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ============================================================
   Styled List (who it is for)
   ============================================================ */

.styled-list {
  margin: 1.75rem 0;
}

.styled-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.75rem;
  border-bottom: 1px dashed rgba(209, 199, 181, 0.5);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.5;
}

.styled-list li:first-child {
  border-top: 1px dashed rgba(209, 199, 181, 0.5);
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.625rem;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   Practicalities Grid
   ============================================================ */

.practical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.practical-item dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.4rem;
}

.practical-item dd {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.55;
}

/* ============================================================
   About — Two Column Story Layout
   ============================================================ */

.about-story {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4.5rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 7rem;
}

.about-portrait figcaption {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   Credentials List
   ============================================================ */

.credentials-list {
  margin-top: 1.75rem;
}

.credentials-list li {
  position: relative;
  padding: 1rem 0 1rem 1.75rem;
  border-bottom: 1px solid rgba(93, 87, 81, 0.2);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.5;
}

.credentials-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.625rem;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   Contact Form
   ============================================================ */

.contact-form {
  max-width: 520px;
  margin: 2.5rem auto 0;
}

.form-group {
  margin-bottom: 2.25rem;
}

.form-label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.6rem;
}

.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--plaster);
  padding: 0.6rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  line-height: 1.6;
}

.form-field:focus {
  border-color: var(--gold);
}

.form-field::placeholder {
  color: var(--smoke);
  opacity: 0.45;
}

select.form-field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpolyline points='1,1 6,6 11,1' stroke='%235D5751' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

textarea.form-field {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.form-note {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--smoke);
  line-height: 1.6;
}

/* ============================================================
   Image Placeholders
   ============================================================ */

.img-placeholder {
  background: var(--deep-earth);
  width: 100%;
  display: block;
}

.img-placeholder--texture {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.img-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.img-placeholder--wide {
  aspect-ratio: 16 / 9;
}

/* ============================================================
   Section Intro Text
   ============================================================ */

.section-intro {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--smoke);
  margin-bottom: 0;
  margin-top: 1rem;
}

.section--charcoal .section-intro,
.section--deep-earth .section-intro {
  color: rgba(248, 242, 234, 0.65);
}

/* ============================================================
   Scroll Reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Visually Hidden (accessible to screen readers)
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Focus States
   ============================================================ */

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

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--charcoal);
  color: var(--parchment);
  padding: 2rem var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--parchment);
  text-decoration: none;
}

.footer__tagline {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

.footer__copy {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

/* ============================================================
   Responsive — Tablet (768px and below)
   ============================================================ */

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .week-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait {
    position: static;
    max-width: 260px;
  }

  .practical-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ============================================================
   Responsive — Mobile (480px and below)
   ============================================================ */

@media (max-width: 480px) {
  .week-cards {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
