/* Saye Hope Healing — client redesign demo
   Mobile-first · WCAG 2.1 AA · brand: forest · cream · soft plum */

:root {
  --cream: #f6f0e6;
  --cream-deep: #ebe2d4;
  --ink: #1c2a26;
  --ink-soft: #3d4f48;
  --forest: #1f4038;
  --forest-mid: #2f5c50;
  --moss: #4a7a68;
  --plum: #6a4568;
  --plum-soft: #8b6a88;
  --rose: #b56a8a;
  --gold: #b8925a;
  --white: #fffcf7;
  --focus: #1a6b5a;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --space: clamp(1rem, 3vw, 2rem);
  --measure: 40rem;
  --wide: 68rem;
  --radius: 0.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest-mid);
}

a:hover {
  color: var(--plum);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

.demo-banner {
  position: relative;
  z-index: 60;
  padding: 0.55rem var(--space);
  background: var(--forest);
  color: var(--cream);
  font-size: 0.8125rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.demo-banner a {
  color: #d8efe6;
  font-weight: 600;
}

.demo-banner a:hover {
  color: var(--white);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem var(--space);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 12%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-top: 0.1rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--forest) 25%, transparent);
  background: var(--white);
  color: var(--forest);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--forest);
  color: var(--cream);
}

.site-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: var(--space);
  left: var(--space);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--forest) 15%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(28, 42, 38, 0.12);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--cream-deep);
  color: var(--forest);
}

@media (min-width: 52rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    min-height: auto;
    padding: 0.35rem 0;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: transparent;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 40, 36, 0.35) 0%, rgba(20, 40, 36, 0.15) 35%, rgba(18, 32, 30, 0.72) 72%, rgba(14, 26, 24, 0.92) 100%),
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(106, 69, 104, 0.28), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 7rem) var(--space) clamp(2rem, 5vw, 3.25rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 12ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  animation: rise-in 1s var(--ease) both;
}

.hero-line {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 28rem;
  margin: 0 0 0.85rem;
  color: color-mix(in srgb, var(--cream) 94%, white);
  animation: rise-in 1s var(--ease) 0.12s both;
}

.hero-support {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  animation: rise-in 1s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 1s var(--ease) 0.32s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cream);
  color: var(--forest);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 55%, transparent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  border-color: var(--cream);
  color: var(--cream);
}

.btn-solid {
  background: var(--forest);
  color: var(--cream);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--forest-mid);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: color-mix(in srgb, var(--forest) 40%, transparent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--forest);
  background: color-mix(in srgb, var(--forest) 6%, transparent);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--space);
}

.section-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--forest);
  max-width: 18ch;
}

.lede {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Story */
.story {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(181, 106, 138, 0.08), transparent 50%),
    var(--cream);
}

.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .story-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
  }
}

.story-visual {
  position: relative;
  border-radius: 1.5rem 1.5rem 0.4rem 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 36rem;
  box-shadow: 0 24px 60px rgba(28, 42, 38, 0.14);
}

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

.story-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(20, 40, 36, 0.45));
  pointer-events: none;
}

.story-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.story-copy p:last-of-type {
  margin-bottom: 1.5rem;
}

.pull-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--plum);
  max-width: 28rem;
}

/* Toolbox */
.toolbox {
  background: var(--forest);
  color: var(--cream);
}

.toolbox .eyebrow {
  color: color-mix(in srgb, var(--cream) 70%, var(--rose));
}

.toolbox h2 {
  color: var(--cream);
}

.toolbox .lede {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.tool-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .tool-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--cream) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  border-radius: 0.75rem;
  min-height: 100%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tool:hover,
.tool:focus-within {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  border-color: color-mix(in srgb, var(--cream) 28%, transparent);
  transform: translateY(-3px);
}

.tool-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
}

.tool h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.tool p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.tool a {
  margin-top: 0.5rem;
  color: #d8efe6;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tool a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Roots product */
.roots {
  background:
    linear-gradient(180deg, var(--cream-deep), var(--cream));
}

.roots-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .roots-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
  }

  .roots-grid .roots-copy {
    order: 2;
  }

  .roots-grid .roots-visual {
    order: 1;
  }
}

.roots-visual {
  border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(28, 42, 38, 0.12);
}

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

.roots-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--forest) 8%, var(--cream));
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Testimonials */
.voices {
  background: var(--ink);
  color: var(--cream);
}

.voices .eyebrow {
  color: var(--rose);
}

.voices h2 {
  color: var(--cream);
}

.quote-grid {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.quote-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--cream) 5%, transparent);
}

.quote-card p {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-style: italic;
  line-height: 1.4;
  color: color-mix(in srgb, var(--cream) 94%, white);
}

.quote-card footer {
  font-size: 0.88rem;
  font-style: normal;
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--cream) 65%, transparent);
  letter-spacing: 0.04em;
}

/* Booking CTA */
.book {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(181, 106, 138, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(47, 92, 80, 0.2), transparent 50%),
    var(--cream);
  text-align: center;
}

.book h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 16ch;
}

.book .lede {
  margin-left: auto;
  margin-right: auto;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.contact-line {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact-line a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem var(--space) 2.5rem;
  background: var(--forest);
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  font-size: 0.88rem;
}

.footer-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  margin: 0 0 0.35rem;
}

.footer-meta {
  margin: 0;
  line-height: 1.7;
}

.footer-meta a {
  color: #d8efe6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    transform: none;
  }

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