/* ==========================================================================
   NICOLA MOSLEY — nicolamosley.earth
   Design System & Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */

:root {
  /* Brand Colors */
  --color-stone:        #8B8578;
  --color-deep-forest:  #2E4A3E;
  --color-river:        #5B7F7E;
  --color-clay:         #C4A882;
  --color-mist:         #F0EDE8;
  --color-bark:         #3D2E1E;
  --color-lichen:       #7A8B6F;
  --color-snow:         #FAFAF8;
  --color-charcoal:     #2C2C2C;

  /* Semantic Aliases */
  --color-bg:           var(--color-mist);
  --color-bg-alt:       var(--color-snow);
  --color-heading:      var(--color-deep-forest);
  --color-text:         var(--color-charcoal);
  --color-text-muted:   var(--color-stone);
  --color-accent:       var(--color-clay);
  --color-link:         var(--color-river);

  /* Typography Scale (fluid) */
  --font-display:       'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:          'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:            'Jost', 'Segoe UI', system-ui, sans-serif;

  --text-xs:            clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm:            clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base:          clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:            clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  --text-xl:            clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl:           clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-3xl:           clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-4xl:           clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --text-hero:          clamp(2.75rem, 2rem + 3.5vw, 5.5rem);

  /* Spacing */
  --space-xs:           0.5rem;
  --space-sm:           1rem;
  --space-md:           1.5rem;
  --space-lg:           2rem;
  --space-xl:           3rem;
  --space-2xl:          clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container-max:      72rem;
  --container-narrow:   48rem;
  --container-wide:     90rem;

  /* Animation */
  --ease-out:           cubic-bezier(0.22, 1, 0.36, 1);
  --duration:           700ms;
  --duration-fast:      300ms;

  /* Shadows */
  --shadow-sm:          0 2px 8px rgba(61, 46, 30, 0.06);
  --shadow-md:          0 4px 16px rgba(61, 46, 30, 0.08);
  --shadow-lg:          0 8px 32px rgba(61, 46, 30, 0.1);

  /* Borders */
  --radius-sm:          4px;
  --radius-md:          8px;
  --radius-lg:          12px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

a:hover {
  opacity: 0.75;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-river);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-deep-forest);
  color: var(--color-mist);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  z-index: 10001;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-sm);
  opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--text-xl);  margin-bottom: var(--space-sm); }

p {
  max-width: 65ch;
  margin-bottom: var(--space-md);
}

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

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-stone);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-deep-forest);
  font-style: italic;
  border-left: 3px solid var(--color-clay);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  max-width: 55ch;
}

/* Organic horizontal rule */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-clay) 25%,
    var(--color-stone) 50%,
    var(--color-clay) 75%,
    transparent
  );
  margin: var(--space-xl) auto;
  max-width: 20rem;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

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

.section--values {
  background: var(--color-mist) url('../images/about/values-background.webp') center / cover no-repeat;
  position: relative;
}

.section--values::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 237, 232, 0.8);
}

.section--values > * {
  position: relative;
  z-index: 1;
}

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

.section--forest {
  background-color: var(--color-deep-forest);
  color: var(--color-mist);
}

.section--forest h2,
.section--forest h3,
.section--forest h4 {
  color: var(--color-mist);
}

.section--forest .eyebrow {
  color: var(--color-clay);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

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

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              padding var(--duration-fast) var(--ease-out);
}

.nav--transparent {
  background-color: transparent;
}

.nav--solid,
.nav--scrolled {
  background-color: var(--color-snow);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-deep-forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav--transparent .nav__logo {
  color: var(--color-snow);
}

.nav--scrolled .nav__logo {
  color: var(--color-deep-forest);
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-deep-forest);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.nav--transparent .nav__links a {
  color: var(--color-snow);
}

.nav--transparent .nav__booking {
  background-color: rgba(250, 250, 248, 0.2);
  border-color: rgba(250, 250, 248, 0.4);
  color: var(--color-snow);
}

.nav--transparent .nav__booking:hover {
  background-color: rgba(250, 250, 248, 0.35);
}

.nav--scrolled .nav__links a {
  color: var(--color-deep-forest);
}

.nav--scrolled .nav__booking {
  background-color: var(--color-deep-forest);
  border-color: var(--color-deep-forest);
  color: var(--color-snow);
}

.nav--scrolled .nav__booking:hover {
  opacity: 0.85;
}

.nav__links a:hover {
  opacity: 0.7;
}

.nav__links a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Booking button in nav */
.nav__booking {
  display: none;
}

@media (min-width: 48rem) {
  .nav__links {
    display: flex;
  }

  .nav__booking {
    display: inline-flex;
    margin-left: var(--space-md);
  }

  .nav__toggle {
    display: none;
  }
}

/* On mobile, show booking button next to hamburger */
@media (max-width: 47.999rem) {
  .nav__booking {
    display: inline-flex;
    font-size: 0.7rem;
    padding: 0.45rem 1rem;
    margin-right: var(--space-xs);
  }
}

/* Hamburger toggle */
.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1002;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-deep-forest);
  margin: 5px 0;
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.nav--transparent .nav__toggle span {
  background-color: var(--color-snow);
}

.nav--scrolled .nav__toggle span {
  background-color: var(--color-deep-forest);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-snow);
  z-index: 1001;
  padding: 6rem var(--space-lg) var(--space-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-deep-forest);
  text-decoration: none;
}

.nav__mobile a:hover {
  opacity: 0.7;
}

/* Body scroll lock */
body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.hero--short {
  min-height: 60vh;
  align-items: center;
}

.hero--mini {
  min-height: 40vh;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(46, 74, 62, 0.85) 0%,
    rgba(46, 74, 62, 0.4) 40%,
    rgba(46, 74, 62, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.hero__title {
  font-size: var(--text-hero);
  color: var(--color-snow);
  margin-bottom: var(--space-sm);
  line-height: 1.05;
}

.hero__subtitle {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  color: var(--color-clay);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(250, 250, 248, 0.85);
  margin-top: var(--space-md);
  max-width: 45ch;
  font-style: italic;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(250, 250, 248, 0.5);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250, 250, 248, 0.5), transparent);
  animation: scrollPulse 2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* Hero for interior pages — centered text */
.hero--short .hero__content,
.hero--mini .hero__content {
  text-align: center;
}

.hero--short .hero__subtitle,
.hero--mini .hero__subtitle {
  margin: var(--space-sm) auto 0;
}

/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */

/* Base card */
.card {
  background: var(--color-snow);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.card__meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

/* Pillar card — centered with image */
.card--pillar {
  text-align: center;
  padding: 0;
  background: var(--color-snow);
  overflow: hidden;
}

.card--pillar .card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card--pillar .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card--pillar:hover .card__image img {
  transform: scale(1.05);
}

.card--pillar .card__title,
.card--pillar .card__text {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.card--pillar .card__text {
  padding-bottom: var(--space-xl);
}

.card--pillar .card__title {
  font-size: var(--text-2xl);
  margin-top: var(--space-md);
}

.card--pillar a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Post card */
.card--post {
  display: grid;
  grid-template-columns: 1fr;
}

.card--post .card__image {
  aspect-ratio: 16 / 9;
}

@media (min-width: 48rem) {
  .card--post.card--featured {
    grid-template-columns: 1fr 1fr;
  }

  .card--post.card--featured .card__image {
    aspect-ratio: auto;
    height: 100%;
  }

  .card--post.card--featured .card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
  }
}

/* Offering card — colored top border, with image */
.card--offering {
  border-top: 3px solid var(--color-river);
  padding: 0;
  overflow: hidden;
}

.card--offering .card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card--offering .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card--offering:hover .card__image img {
  transform: scale(1.05);
}

.card--offering .card__title,
.card--offering .card__text {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.card--offering .card__text {
  padding-bottom: var(--space-lg);
}

.card--offering:nth-child(2) {
  border-top-color: var(--color-lichen);
}

.card--offering:nth-child(3) {
  border-top-color: var(--color-clay);
}

.card--offering .card__title {
  margin-bottom: var(--space-sm);
}

/* Testimonial card */
.card--testimonial {
  background: transparent;
  box-shadow: none;
  padding: var(--space-lg);
  text-align: left;
}

.card--testimonial:hover {
  transform: none;
  box-shadow: none;
}

.card--testimonial blockquote {
  border-left: none;
  padding-left: 0;
  font-size: var(--text-lg);
  position: relative;
  margin: 0 0 var(--space-md);
}

.card--testimonial blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-clay);
  position: absolute;
  top: -1.5rem;
  left: -0.25rem;
  line-height: 1;
  opacity: 0.5;
}

.card--testimonial .card__attribution {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-stone);
  font-style: normal;
}

/* Content pillar grid (5 cards: 3 top, 2 bottom centered) */
.grid--pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .grid--pillars {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid--pillars > :nth-child(1),
  .grid--pillars > :nth-child(2),
  .grid--pillars > :nth-child(3) {
    grid-column: span 2;
  }

  .grid--pillars > :nth-child(4) {
    grid-column: 2 / span 2;
  }

  .grid--pillars > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* Content pillar card (Embodied Justice page) */
.card--content-pillar {
  border-top: 3px solid var(--color-river);
  padding: 0;
  overflow: hidden;
}

.card--content-pillar .card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card--content-pillar .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card--content-pillar:hover .card__image img {
  transform: scale(1.05);
}

.card--content-pillar .card__title,
.card--content-pillar .card__text {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.card--content-pillar .card__title {
  margin-top: var(--space-md);
}

.card--content-pillar .card__text {
  padding-bottom: var(--space-lg);
}

.card--content-pillar:nth-child(1) { border-top-color: var(--color-river); }
.card--content-pillar:nth-child(2) { border-top-color: var(--color-lichen); }
.card--content-pillar:nth-child(3) { border-top-color: var(--color-clay); }
.card--content-pillar:nth-child(4) { border-top-color: var(--color-deep-forest); }
.card--content-pillar:nth-child(5) { border-top-color: var(--color-bark); }

/* Pricing tier cards */
.card--tier {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.card--tier .card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.card--tier ul {
  list-style: none;
  text-align: left;
  margin: var(--space-md) 0;
}

.card--tier ul li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(139, 133, 120, 0.15);
  font-size: var(--text-sm);
  padding-left: 1.5em;
  position: relative;
}

.card--tier ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-lichen);
  transform: translateY(-50%);
}

.card--tier-featured {
  background: var(--color-deep-forest);
  color: var(--color-mist);
}

.card--tier-featured .card__price,
.card--tier-featured .card__title {
  color: var(--color-mist);
}

.card--tier-featured ul li {
  border-bottom-color: rgba(240, 237, 232, 0.15);
}

.card--tier-featured ul li::before {
  background-color: var(--color-clay);
}

/* Format card (speaking page) */
.card--format {
  padding: var(--space-md);
  text-align: center;
  background: var(--color-snow);
}

.card--format .card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  line-height: 1;
}

.btn--primary {
  background-color: var(--color-deep-forest);
  color: var(--color-mist);
  border-color: var(--color-deep-forest);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-deep-forest);
  border-color: var(--color-deep-forest);
}

.btn--secondary:hover {
  background-color: var(--color-deep-forest);
  color: var(--color-mist);
  opacity: 1;
}

/* Light variants for dark backgrounds */
.section--forest .btn--primary {
  background-color: var(--color-clay);
  border-color: var(--color-clay);
  color: var(--color-bark);
}

.section--forest .btn--secondary {
  border-color: var(--color-mist);
  color: var(--color-mist);
}

.section--forest .btn--secondary:hover {
  background-color: var(--color-mist);
  color: var(--color-deep-forest);
}

/* Pill button (nav booking CTA) */
.btn--pill {
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  font-size: var(--text-xs);
  background-color: var(--color-river);
  color: var(--color-snow);
  border-color: var(--color-river);
  white-space: nowrap;
}

.btn--pill:hover {
  opacity: 0.85;
}

/* Large button variant */
.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-sm);
}

/* Small button variant */
.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   9. FORMS
   -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-stone);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-stone);
  padding: var(--space-sm) 0;
  transition: border-color var(--duration-fast) var(--ease-out);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--color-deep-forest);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238B8578' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Newsletter form inline */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 32rem;
}

.newsletter-form .form-input {
  border-bottom-color: var(--color-stone);
}

@media (min-width: 48rem) {
  .newsletter-form {
    flex-direction: row;
    align-items: flex-end;
  }

  .newsletter-form .form-input {
    flex: 1;
  }
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}

.form-success.is-visible {
  display: block;
}

.form-success p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-deep-forest);
  max-width: none;
}

/* --------------------------------------------------------------------------
   10. MANIFESTO / QUOTE STRIP
   -------------------------------------------------------------------------- */

.quote-strip {
  padding: var(--space-2xl) 0;
  background: var(--color-deep-forest) url('../images/home/quote-strip.webp') center / cover no-repeat;
  text-align: center;
  position: relative;
}

.quote-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 74, 62, 0.75);
}

.quote-strip > * {
  position: relative;
  z-index: 1;
}

.quote-strip__mark {
  font-family: var(--font-display);
  font-size: clamp(6rem, 5rem + 5vw, 12rem);
  color: var(--color-clay);
  opacity: 0.2;
  line-height: 0.5;
  display: block;
  margin-bottom: var(--space-md);
}

.quote-strip__text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-mist);
  line-height: 1.4;
  max-width: 50ch;
  margin: 0 auto;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   11. PHOTO STRIP
   -------------------------------------------------------------------------- */

.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.photo-strip img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .photo-strip {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .photo-strip img {
    height: 400px;
  }
}

/* --------------------------------------------------------------------------
   12. ABOUT PAGE SPECIFICS
   -------------------------------------------------------------------------- */

.about-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-header__photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  width: 100%;
}

@media (min-width: 48rem) {
  .about-header {
    grid-template-columns: 2fr 3fr;
  }
}

/* Values — staggered blockquotes */
.values-list {
  list-style: none;
}

.values-list li {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-deep-forest);
  font-style: italic;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(139, 133, 120, 0.2);
  max-width: 50ch;
}

.values-list li:last-child {
  border-bottom: none;
}

@media (min-width: 48rem) {
  .values-list li:nth-child(even) {
    margin-left: auto;
    text-align: right;
  }
}

/* Credentials */
.credentials dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.credentials dt {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-stone);
  font-weight: 500;
}

.credentials dd {
  font-size: var(--text-base);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-lichen);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   13. HEALING PAGE
   -------------------------------------------------------------------------- */

.who-for-list {
  list-style: none;
  max-width: 45ch;
}

.who-for-list li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: var(--space-sm);
}

.who-for-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-river);
}

.practicalities {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 48rem) {
  .practicalities {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.cta-card {
  background: var(--color-snow);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. SPEAKING PAGE
   -------------------------------------------------------------------------- */

.topics-list {
  list-style: none;
  counter-reset: topic;
}

.topics-list li {
  counter-increment: topic;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(139, 133, 120, 0.2);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  align-items: start;
}

@media (min-width: 48rem) {
  .topics-list li {
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
  }
}

.topics-list li::before {
  content: counter(topic, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-clay);
  opacity: 0.5;
  line-height: 1;
}

.topics-list h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.topics-list p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Full-bleed image before footer */
.full-bleed-image {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   15. CONTACT PAGE
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 48rem) {
  .contact-layout {
    grid-template-columns: 3fr 2fr;
  }
}

.contact-aside {
  padding-top: var(--space-lg);
}

.contact-aside h3 {
  margin-bottom: var(--space-sm);
}

.contact-aside a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-river);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin-top: var(--space-lg);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-deep-forest);
  transition: color var(--duration-fast) var(--ease-out);
}

.social-links a:hover {
  color: var(--color-river);
  opacity: 1;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Social links for contact page — centered */
.social-links--centered {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   16. NEWSLETTER SECTION
   -------------------------------------------------------------------------- */

.newsletter {
  text-align: center;
}

.newsletter p {
  margin: 0 auto var(--space-lg);
}

.newsletter .newsletter-form {
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */

.footer {
  background-color: var(--color-deep-forest);
  color: var(--color-mist);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

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

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-mist);
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(240, 237, 232, 0.65);
  max-width: 30ch;
}

.footer__heading {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-mist);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(240, 237, 232, 0.75);
}

.footer__links a:hover {
  color: var(--color-mist);
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(240, 237, 232, 0.75);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  color: var(--color-clay);
  opacity: 1;
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  border-top: 1px solid rgba(240, 237, 232, 0.15);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer__bottom p {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(240, 237, 232, 0.7);
  max-width: none;
}

@media (min-width: 48rem) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   18. ANIMATIONS
   -------------------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.fade-in-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   19. LISTEN / WATCH SECTION (Embodied Justice)
   -------------------------------------------------------------------------- */

.listen-watch {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

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

.mock-player {
  background: var(--color-snow);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.mock-player__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.mock-player__bar {
  width: 100%;
  height: 4px;
  background: rgba(139, 133, 120, 0.2);
  border-radius: 2px;
  margin: var(--space-md) 0;
  position: relative;
}

.mock-player__bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 35%;
  background: var(--color-river);
  border-radius: 2px;
}

.mock-player__links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.mock-player__links a {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 74, 62, 0.3);
  transition: background var(--duration-fast) var(--ease-out);
}

.video-thumb__play:hover {
  background: rgba(46, 74, 62, 0.5);
}

.video-thumb__play svg {
  width: 64px;
  height: 64px;
  fill: var(--color-snow);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   20. UTILITY CLASSES
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.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;
}

/* --------------------------------------------------------------------------
   21. SKELETON LOADING
   -------------------------------------------------------------------------- */

.skeleton {
  background: linear-gradient(90deg, var(--color-mist) 25%, rgba(139, 133, 120, 0.08) 50%, var(--color-mist) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton--image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.skeleton--text-sm {
  height: 0.75rem;
  width: 40%;
  margin-bottom: var(--space-sm);
}

.skeleton--text-lg {
  height: 1.25rem;
  width: 80%;
  margin-bottom: var(--space-sm);
}

.skeleton--text {
  height: 0.85rem;
  width: 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card--skeleton {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   22. PODCAST LINKS
   -------------------------------------------------------------------------- */

.podcast-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   23. DYNAMIC POST CARD (from RSS)
   -------------------------------------------------------------------------- */

.card--rss .card__image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.card--rss a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card--rss a:hover {
  opacity: 1;
}

/* Episode card (podcast/video) */
.card--episode {
  border-left: 3px solid var(--color-river);
  padding: var(--space-md);
  background: var(--color-snow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card--episode .card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.card--episode .episode-listen {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-river);
  margin-top: var(--space-sm);
}

.card--episode .episode-listen svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Fallback message when RSS fails */
.substack-fallback {
  text-align: center;
  padding: var(--space-xl);
}

.substack-fallback a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-deep-forest);
}
