/* ============================================
   ASHA & SATYA — Design Tokens
   ============================================ */
:root {
  --sage: #A7B09A;
  --sage-deep: #8A9580;
  --sand: #E7DDD1;
  --cream: #F8F5F0;
  --ocean: #7E9BA6;
  --charcoal: #3B3A36;
  --charcoal-soft: #5C5A54;
  --white-warm: #FFFDFB;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Hanken Grotesk', 'Source Sans Pro', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-xxl: 10rem;

  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;

  --max-width: 1240px;
  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  font-feature-settings: "liga" 1, "dlig" 1;
}

h1 {
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3, h4 {
  font-weight: 500;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

/* Skip-to-content — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--charcoal);
  color: var(--white-warm);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: clamp(18px, 2vw, 28px) 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(59, 58, 54, 0.06);
  padding: 16px 0;
}

/* While the mobile menu is open, drop the header's backdrop-filter/background.
   backdrop-filter makes the header a containing block for its fixed-position
   descendants (the .nav-links overlay), which would otherwise pin the overlay
   to the short header bar instead of the viewport on reopen after scrolling. */
body.nav-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  transition: filter var(--transition);
}

/* Homepage hero header is dark — render the logo in cream until the user scrolls */
.nav-header-light .logo img {
  filter: brightness(0) invert(1);
}
.site-header.is-scrolled .logo img {
  filter: none;
}

.logo .amp {
  color: var(--sage-deep);
  font-style: italic;
  padding: 0 2px;
}

.nav-header-light .logo,
.nav-header-light .nav-links a,
.nav-header-light .nav-toggle span {
  color: var(--white-warm);
}
.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav-links a,
.site-header.is-scrolled .nav-toggle span {
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links a:not(.btn) {
  padding-bottom: 4px;
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links .btn::after {
  display: none;
}

.nav-links .btn-primary {
  box-shadow: 0 0 0 0px rgba(255, 253, 251, 0);
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), background var(--transition);
}

.nav-links .btn-primary:hover {
  background: var(--sage);
  box-shadow: 0 0 0 2px #000;
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--sage);
  color: var(--white-warm);
  box-shadow: 0 0 0 0px rgba(255, 253, 251, 0);
}

.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--white-warm), 0 12px 24px rgba(167, 176, 154, 0.35);
}

.btn-outline {
  border: 1.5px solid currentColor;
  background: transparent;
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white-warm);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--charcoal);
  transition: background var(--transition);
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--charcoal) !important;
    gap: 12px;
  }

  .nav-links a .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-links .btn-primary {
    color: var(--white-warm) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: var(--space-xl) 0 var(--space-md);
}

/* Pairs with the mobile .final-cta trim — both are charcoal, so halve the
   footer's top padding on small screens to close the dead dark band. */
@media (max-width: 700px) {
  .site-footer { padding-top: var(--space-lg); }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(231, 221, 209, 0.15);
}

.footer-brand .logo {
  color: var(--white-warm);
}

.footer-brand .logo img {
  height: 64px;
  filter: brightness(0) invert(1);
}

.footer-brand .logo .amp {
  color: var(--sage);
}

.footer-tagline {
  margin-top: var(--space-sm);
  color: rgba(231, 221, 209, 0.65);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(231, 221, 209, 0.8);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white-warm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: rgba(231, 221, 209, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ============================================
   SCROLL REVEAL UTILITY
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* --- Custom cursor (trailing ring) --- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-visible { opacity: 0.85; }
.cursor-ring.is-hover {
  width: 46px;
  height: 46px;
  background: rgba(167, 176, 154, 0.16);
  border-color: var(--sage-deep);
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring { display: none; }
}

/* --- Ambient sound toggle --- */
.ambient-toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(248, 245, 240, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(59, 58, 54, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  color: var(--charcoal-soft);
  transition: transform 0.3s ease, color 0.3s ease;
}
.ambient-toggle:hover { transform: translateY(-2px); }
.ambient-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ambient-toggle .spk { fill: currentColor; stroke: currentColor; }
.ambient-toggle .wave1,
.ambient-toggle .wave2 { opacity: 0; transition: opacity 0.3s ease; }
.ambient-toggle .mute { opacity: 0; }
.ambient-toggle.is-on { color: var(--sage-deep); }
.ambient-toggle.is-on .wave1,
.ambient-toggle.is-on .wave2 { opacity: 1; }

/* ============================================
   SHARED PAGE PATTERNS
   ============================================ */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Editorial label lockup — a short sage rule precedes the eyebrow */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--sage);
  border-radius: 2px;
  transform: translateY(-2px);
}

/* Centered headers get a matching rule on the right so the wording sits
   between two lines. Left-aligned headers (their heading/body isn't
   centered) keep just the single leading rule. */
.eyebrow.center::after,
.page-hero.center .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--sage);
  border-radius: 2px;
  transform: translateY(-2px);
}

/* Signature phrases set in the display italic */
.accent-italic {
  font-family: var(--font-display);
  font-style: italic;
}

.section {
  padding: var(--space-xl) 0;
}

.page-hero {
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: var(--space-xl);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  max-width: 14ch;
}

.page-hero h1.center {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--charcoal-soft);
  max-width: 640px;
  margin-top: var(--space-sm);
  text-wrap: pretty;
}

.divider-rule {
  width: 60px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  margin: var(--space-sm) 0;
}

@media (max-width: 700px) {
  .section { padding: var(--space-lg) 0; }
}

/* ============================================
   FLOATING "JOIN THE CIRCLE" CTA
   ============================================ */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  background: var(--sage);
  color: var(--white-warm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(138, 149, 128, 0.38);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background var(--transition),
              box-shadow var(--transition);
}

.float-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-cta:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(138, 149, 128, 0.42);
}

@media (max-width: 560px) {
  .float-cta {
    bottom: 20px;
    right: 16px;
    font-size: 0.8rem;
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-cta { transition: opacity 0.01ms; }
}

/* ============================================
   BACK-TO-TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white-warm);
  border: 1.5px solid var(--sand);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow var(--transition),
              background var(--transition);
  box-shadow: 0 4px 16px rgba(59, 58, 54, 0.1);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--sand);
  box-shadow: 0 8px 24px rgba(59, 58, 54, 0.14);
  transform: translateY(-2px);
}

.back-to-top::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--charcoal);
  border-right: 2px solid var(--charcoal);
  transform: rotate(-45deg) translate(1px, 2px);
}

@media (max-width: 560px) {
  .back-to-top { right: 16px; bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.01ms; }
}
