/* ==========================================================================
   Ellie Avancy — Design tokens (Purple / White)
   Violet spans the visible spectrum's highest vibration — read as intuition,
   transformation, and the crown chakra across breathwork, Huna, hypnotherapy,
   and Light Language alike. Deep violet bookends the page (hero + footer) as
   the "grounded to elevated" arc; the body opens into white/lilac for clarity.
   ========================================================================== */

:root {
  /* Base surfaces */
  --bg: #FBF9FC;              /* soft white, faint violet undertone */
  --bg-panel: #F1E8F8;        /* pale lilac — alternating panel sections */
  --bg-panel-alt: #FFFFFF;    /* pure white — cards, elevated surfaces */
  --line: rgba(59, 30, 92, 0.14);   /* soft violet-tinted hairline */

  /* Text on light surfaces */
  --ink: #241633;             /* near-black violet — primary text */
  --ink-dim: rgba(36, 22, 51, 0.66); /* secondary / muted text */

  /* Violet family */
  --violet-deep: #2B1943;     /* deep aubergine — hero / band / footer bg */
  --violet-deep-2: #3E2361;   /* lighter deep-violet, for gradients */
  --violet: #5B2E8C;          /* primary brand violet — borders, headings */
  --accent: #7C3FBF;          /* amethyst — primary CTA / links */
  --accent-bright: #9B5CDE;   /* brighter amethyst — hover states */
  --lilac: #C9A8E0;           /* soft lilac — accents on dark backgrounds */
  --mist: #EDE1F7;            /* pale lilac tint — tags, quote fill */

  /* Text on dark violet surfaces (.hero, .band, .site-footer) */
  --onviolet: #F5EEFB;        /* near-white lilac — primary text on violet-deep */
  --onviolet-dim: rgba(245, 238, 251, 0.72); /* secondary text on violet-deep */
  --line-onviolet: rgba(245, 238, 251, 0.18);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --step-1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step-2: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --step-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-4: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  --step-5: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem);
  --step-6: clamp(3rem, 2.1rem + 3.8vw, 5rem);

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}
/* Eyebrow on dark violet sections needs a lighter tone to stay legible */
.hero .eyebrow, .band .eyebrow, .site-footer .eyebrow { color: var(--lilac); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.nav__logo em { color: var(--accent); font-style: normal; }
.nav__links {
  display: flex;
  gap: 2.1rem;
  align-items: center;
}
.nav__links a {
  text-decoration: none;
  font-size: var(--step-1);
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__cta {
  border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  color: var(--accent) !important;
}
.nav__cta:hover { background: var(--accent); color: #fff !important; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.4rem;
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 780px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg-panel-alt);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open { max-height: 22rem; }
  .nav__links a { padding: 1rem var(--gutter); width: 100%; border-top: 1px solid var(--line); }
  .nav__cta { margin: 1rem var(--gutter); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--step-1);
  letter-spacing: 0.03em;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-bright); }
.btn--ghost { border-color: var(--violet); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
/* Ghost buttons inside deep-violet sections need light styling */
.hero .btn--ghost, .band .btn--ghost {
  border-color: var(--line-onviolet);
  color: var(--onviolet);
}
.hero .btn--ghost:hover, .band .btn--ghost:hover { border-color: var(--lilac); color: var(--lilac); }

/* ---------- Hero + breath ring signature ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  background: radial-gradient(120% 130% at 15% 0%, var(--violet-deep-2) 0%, var(--violet-deep) 55%, #1C1130 100%);
  color: var(--onviolet);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: var(--step-6);
  line-height: 1.05;
  margin-block: 1.1rem 1.4rem;
  color: var(--onviolet);
}
.hero h1 em { color: var(--lilac); font-style: normal; }
.hero p.lede {
  font-size: var(--step-3);
  color: var(--onviolet-dim);
  max-width: 46ch;
  margin-bottom: 2.1rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.breath {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.breath__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--lilac);
  opacity: 0.55;
}
.breath__ring--1 { inset: 18%; animation: breathe 16s ease-in-out infinite; }
.breath__ring--2 { inset: 8%; animation: breathe 16s ease-in-out infinite; animation-delay: -4s; opacity: 0.32; }
.breath__ring--3 { inset: 0%; animation: breathe 16s ease-in-out infinite; animation-delay: -8s; opacity: 0.18; }
.breath__core {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F5EEFB, var(--accent-bright) 55%, var(--accent) 100%);
  opacity: 0.95;
  filter: blur(0.5px);
  box-shadow: 0 0 60px 10px rgba(155, 92, 222, 0.35);
}
@keyframes breathe {
  0%   { transform: scale(0.86); }
  25%  { transform: scale(1);    }
  50%  { transform: scale(1);    }
  75%  { transform: scale(0.86); }
  100% { transform: scale(0.86); }
}
.breath__caption {
  position: absolute;
  bottom: -2.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--step-1);
  color: var(--onviolet-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--step-5); margin-top: 0.6rem; color: var(--ink); }
.section-head p { color: var(--ink-dim); font-size: var(--step-3); margin-top: 1rem; }

.panel { background: var(--bg-panel); }

/* Path / offering cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(91, 46, 140, 0.35); }
.card h3 { font-size: var(--step-4); color: var(--ink); }
.card p { color: var(--ink-dim); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Modalities tag list */
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tag {
  border: 1px solid var(--line);
  background: var(--mist);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--step-1);
  color: var(--violet);
  letter-spacing: 0.02em;
}

/* About teaser / split layout */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split--reverse .split-media { order: 2; }
.split-media {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--mist), var(--bg-panel-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Events */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel-alt);
}
.event-card + .event-card { margin-top: 1rem; }
@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; text-align: left; }
}
.event-date {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--accent);
  line-height: 1.1;
  min-width: 5.5rem;
}
.event-date span { display: block; font-family: var(--font-body); font-size: var(--step-1); color: var(--ink-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.event-title { font-size: var(--step-3); font-family: var(--font-display); margin-bottom: 0.3rem; color: var(--ink); }
.event-meta { color: var(--ink-dim); font-size: var(--step-1); }

/* For-sale cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* Testimonials / pull quotes (placeholder-ready) */
.quote {
  border-left: 2px solid var(--accent);
  background: var(--mist);
  padding: 1.6rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.4;
  color: var(--violet);
}
.quote cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-style: normal; font-size: var(--step-1); color: var(--ink-dim); letter-spacing: 0.04em; }

/* Newsletter / CTA band — bookends the hero in deep violet */
.band {
  background: radial-gradient(120% 160% at 85% 100%, var(--violet-deep-2) 0%, var(--violet-deep) 60%, #1C1130 100%);
  color: var(--onviolet);
  text-align: center;
}
.band h2 { font-size: var(--step-4); max-width: 30ch; margin-inline: auto; color: var(--onviolet); }
.band p { color: var(--onviolet-dim); margin-top: 0.8rem; }
.form-inline {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.form-inline input[type="email"] {
  background: rgba(245, 238, 251, 0.08);
  border: 1px solid var(--line-onviolet);
  color: var(--onviolet);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--step-2);
  min-width: 260px;
}
.form-inline input[type="email"]::placeholder { color: var(--onviolet-dim); }
.form-inline input[type="email"]:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

/* Contact form */
.contact-form { display: grid; gap: 1.1rem; max-width: 640px; }
.contact-form label { display: block; font-size: var(--step-1); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  background: var(--bg-panel-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--step-2);
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible {
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* Simple page header for inner pages */
.page-head { padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-5); margin-top: 0.6rem; color: var(--ink); }
.page-head p { color: var(--ink-dim); font-size: var(--step-3); max-width: 55ch; margin-top: 1rem; }

/* Footer — closes the arc back into deep violet, bookending the hero */
.site-footer {
  background: var(--violet-deep);
  color: var(--onviolet-dim);
  padding-block: 3rem 2rem;
  font-size: var(--step-1);
}
.site-footer .nav__logo { color: var(--onviolet); }
.site-footer .nav__logo em { color: var(--lilac); }
.site-footer p { color: var(--onviolet-dim); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--lilac); margin-bottom: 1rem; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid a { text-decoration: none; color: var(--onviolet-dim); }
.footer-grid a:hover { color: var(--lilac); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-onviolet);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Edge-to-Edge Footer Image Gallery Grid Layout */
.footer-gallery {
  padding-block: 0;
  background: var(--violet-deep);
  overflow: hidden;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
}
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--violet-deep-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}