/* ============================================================
   ANADI — Prototype A: Sacred Geometry
   ============================================================
   Aesthetic: sacred geometry, slow rotation, breathing field,
   thin lavender lines, gold accents on royal purple.
   ============================================================ */

:root {
  /* Brand palette — from logo */
  --bg-deep: #1A0E33;
  --bg: #241640;
  --bg-soft: #2A1B47;
  --bg-elev: #34234F;
  --line: #6B5B9B;
  --lavender: #B8A3D6;
  --lavender-soft: #8E78B5;
  --gold: #D4A84A;
  --gold-soft: #B68E32;
  --gold-deep: #8B6E2A;
  --ink: #F5F0E8;
  --ink-mute: #C8BEB0;
  --ink-faint: #8A8175;

  /* Typography */
  --font-display: "Cormorant Garamond", "EB Garamond", serif;
  --font-body: "Crimson Pro", "Crimson Text", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --max-w: 1200px;
  --max-text: 64ch;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Decorative field (background sacred geometry) ---------- */

.field {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.field svg { width: 100%; height: 100%; display: block; }
.field circle, .field path, .field polygon {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.5;
  opacity: 0.4;
}

.field .rotating-slow { transform-origin: center; animation: rotate-slow 240s linear infinite; }
.field .rotating-medium { transform-origin: center; animation: rotate-medium 180s linear infinite reverse; }
.field .rotating-fast { transform-origin: center; animation: rotate-fast 120s linear infinite; }

@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-medium { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-fast { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .field .rotating-slow, .field .rotating-medium, .field .rotating-fast {
    animation: none;
  }
}

/* ---------- Page layout ---------- */

main, header, footer { position: relative; z-index: 1; }

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 880px) {
  .page { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Header / nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  position: sticky; top: 0;
  background: linear-gradient(180deg, rgba(26,14,51,0.88) 0%, rgba(26,14,51,0.4) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(184, 163, 214, 0.08);
}

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.nav-brand-mark {
  width: 36px; height: 36px;
  background: url('../../../docs/branding/anadi-logo.png') center/cover no-repeat;
  border-radius: 50%;
  filter: brightness(1.05);
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.nav-brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 36px; list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.7,.1,.3,1);
  z-index: -1;
}
.nav-cta:hover { color: var(--bg-deep); }
.nav-cta:hover::before { transform: translateY(0); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav { padding: 18px 20px; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 32px 120px;
  position: relative;
}

.hero-mark {
  width: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  margin: 0 auto 48px;
  position: relative;
}
.hero-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe { 0%, 100% { opacity: 0.92; transform: scale(1); } 50% { opacity: 1; transform: scale(1.025); } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--lavender);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0 auto 48px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-meta::before, .hero-meta::after {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--gold-deep);
  vertical-align: middle;
  margin: 0 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  border: 1px solid;
  position: relative;
  overflow: hidden;
  transition: all .35s ease;
  cursor: pointer;
  z-index: 1;
}
.btn--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-deep);
}
.btn--primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn--ghost {
  border-color: var(--lavender);
  color: var(--lavender);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--lavender);
  color: var(--bg-deep);
}
.btn-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 110px 0; position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-deep);
  vertical-align: middle;
  margin-right: 16px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
h2 em { color: var(--lavender); font-style: italic; }

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  margin-bottom: 16px;
}

h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

p { color: var(--ink-mute); margin-bottom: 18px; max-width: var(--max-text); }
p.lead { font-size: 21px; color: var(--ink); max-width: 52ch; line-height: 1.55; }
p strong { color: var(--ink); font-weight: 600; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--lavender); }

ul, ol { color: var(--ink-mute); padding-left: 0; list-style: none; max-width: var(--max-text); }
ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(184, 163, 214, 0.08);
}
ul li::before {
  content: "◇";
  position: absolute; left: 0; top: 10px;
  color: var(--gold);
  font-size: 12px;
}
ul li:last-child { border-bottom: none; }

hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 50%, transparent 100%);
  margin: 90px auto;
  max-width: 360px;
  opacity: 0.4;
}

.section-head {
  text-align: center;
  margin-bottom: 70px;
}
.section-head .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-deep);
  vertical-align: middle;
  margin-left: 16px;
}

/* ---------- Three paths grid (home) ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.path {
  position: relative;
  padding: 56px 36px 44px;
  border: 1px solid rgba(184, 163, 214, 0.18);
  background: linear-gradient(180deg, rgba(53, 35, 79, 0.6) 0%, rgba(36, 22, 64, 0.4) 100%);
  text-decoration: none;
  color: var(--ink);
  transition: all .5s ease;
  overflow: hidden;
}
.path::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, transparent 0%, rgba(212,168,74,0.0) 40%, rgba(212,168,74,0.5) 100%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.path:hover::before { opacity: 1; }
.path:hover { transform: translateY(-4px); border-color: var(--gold-deep); }

.path-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 18px;
}
.path-glyph {
  width: 64px; height: 64px;
  margin: 0 auto 32px;
  opacity: 0.85;
  transition: transform .8s ease, opacity .5s ease;
}
.path:hover .path-glyph { transform: rotate(60deg); opacity: 1; }
.path-glyph svg { width: 100%; height: 100%; }
.path-glyph circle, .path-glyph path, .path-glyph polygon { fill: none; stroke: var(--lavender); stroke-width: 0.8; }

.path h3 { color: var(--ink); margin-bottom: 14px; }
.path p { color: var(--ink-mute); font-size: 16px; margin-bottom: 22px; max-width: none; }
.path-link {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 4px;
}

@media (max-width: 880px) {
  .paths { grid-template-columns: 1fr; gap: 18px; }
  .path { padding: 38px 26px 32px; text-align: center; }
}

/* ---------- About block ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.1) saturate(0.85);
}
.about-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,14,51,0.65) 100%);
  pointer-events: none;
}
.about-text p { margin-bottom: 22px; }
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  color: var(--lavender);
  border-left: 1px solid var(--gold-deep);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  max-width: 30ch;
}

@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.testimonial {
  padding: 40px 30px;
  background: linear-gradient(180deg, rgba(53,35,79,0.4) 0%, rgba(36,22,64,0.2) 100%);
  border: 1px solid rgba(184,163,214,0.1);
  position: relative;
}
.testimonial::before {
  content: "";
  display: block;
  width: 24px; height: 24px;
  margin-bottom: 22px;
  background: radial-gradient(circle at center, var(--gold) 0%, var(--gold) 18%, transparent 22%, transparent 50%, var(--gold-deep) 52%, transparent 56%);
  border-radius: 50%;
}
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 22px;
}
.testimonial-by {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ---------- Online stripe ---------- */

.stripe {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(184,163,214,0.12);
  border-bottom: 1px solid rgba(184,163,214,0.12);
}
.stripe-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}
.stripe h3 { margin-bottom: 12px; }
.stripe p { margin-bottom: 0; max-width: 50ch; }

@media (max-width: 880px) {
  .stripe-inner { grid-template-columns: 1fr; }
}

/* ---------- Service page ---------- */

.service-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(184,163,214,0.12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.service-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.service-hero .lead { font-size: clamp(18px, 1.5vw, 22px); }

.service-meta {
  border-left: 1px solid var(--gold-deep);
  padding: 8px 0 8px 28px;
  font-size: 15px;
}
.service-meta dt {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.service-meta dd {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 22px;
}
.service-meta dd:last-child { margin-bottom: 0; }

@media (max-width: 880px) {
  .service-hero { grid-template-columns: 1fr; gap: 32px; }
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(184,163,214,0.1);
}
.support-grid li {
  border-bottom: 1px solid rgba(184,163,214,0.1);
  border-right: 1px solid rgba(184,163,214,0.1);
  padding: 22px 22px 22px 44px;
  font-size: 16px;
  color: var(--ink-mute);
}
.support-grid li::before {
  left: 18px; top: 24px;
}
.support-grid li:nth-child(2n) { border-right: none; }
@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-grid li { border-right: none; }
}

.modalities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
}
.modality {
  padding: 36px 28px;
  background: rgba(53,35,79,0.3);
  border: 1px solid rgba(184,163,214,0.1);
  position: relative;
  transition: border-color .4s ease;
}
.modality:hover { border-color: var(--gold-deep); }
.modality h4 { color: var(--gold); }
.modality p { font-size: 16px; margin-bottom: 0; }

@media (max-width: 880px) {
  .modalities { grid-template-columns: 1fr; }
}

/* ---------- Mystical hub specifics ---------- */

.callout {
  border: 1px solid var(--gold-deep);
  background: rgba(212,168,74,0.05);
  padding: 32px 36px;
  margin: 60px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}
.callout strong { color: var(--gold); font-style: normal; font-weight: 500; }

.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.offering {
  padding: 44px 32px;
  border: 1px solid rgba(184,163,214,0.15);
  background: linear-gradient(180deg, rgba(53,35,79,0.4) 0%, rgba(36,22,64,0.3) 100%);
  text-decoration: none;
  color: var(--ink);
  transition: all .4s ease;
  position: relative;
}
.offering:hover { border-color: var(--gold); transform: translateY(-4px); }
.offering-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.offering h3 { color: var(--ink); margin-bottom: 14px; }
.offering p { font-size: 15px; margin-bottom: 22px; color: var(--ink-mute); max-width: none; }
.offering-meta {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.offering[data-status="soon"] { opacity: 0.65; }
.offering[data-status="soon"] .offering-tag { color: var(--lavender); }

@media (max-width: 880px) {
  .offerings { grid-template-columns: 1fr; }
}

/* ---------- Retreat day-by-day ---------- */

.week {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  margin-top: 40px;
}
.day {
  display: contents;
}
.day-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 36px 0;
  border-top: 1px solid rgba(184,163,214,0.15);
}
.day-body {
  padding: 36px 0 36px 36px;
  border-top: 1px solid rgba(184,163,214,0.15);
  border-left: 1px solid var(--gold-deep);
}
.day-body h4 { color: var(--ink); margin-bottom: 10px; }
.day-body p { margin-bottom: 0; color: var(--ink-mute); }

@media (max-width: 720px) {
  .week { grid-template-columns: 1fr; }
  .day-body { padding-left: 22px; }
}

/* ---------- Stub page ---------- */

.stub {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 32px;
}
.stub .eyebrow { margin: 0 auto 22px; display: inline-block; }
.stub h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 22px;
}
.stub p { max-width: 50ch; margin: 0 auto 32px; }
.stub-mark {
  width: 96px; height: 96px;
  margin: 0 auto 40px;
  opacity: 0.6;
  animation: rotate-slow 60s linear infinite;
}
.stub-mark svg { width: 100%; height: 100%; }
.stub-mark circle, .stub-mark path, .stub-mark polygon { fill: none; stroke: var(--lavender); stroke-width: 0.6; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(184,163,214,0.1);
  padding: 60px 32px 32px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
footer .footer-mark {
  width: 36px; height: 36px;
  background: url('../../../docs/branding/anadi-logo.png') center/cover no-repeat;
  border-radius: 50%;
  margin: 0 0 18px;
  opacity: 0.7;
}
footer p {
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  max-width: none;
}
footer .footer-links {
  display: flex; justify-content: center; gap: 24px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: none;
}
footer .footer-links li { padding: 0; border: none; }
footer .footer-links li::before { display: none; }
footer .footer-links a { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
footer .footer-links a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark img, .hero-mark::before, .hero-mark::after,
  .stub-mark { animation: none; }
}
