/* ============================================================
   THE CONTACT CODE — sister site to
   themagicofmountshasta.com / theboujeehealer.com

   Motion values, easing curves, reveal classes and button
   behaviour are matched to the Mount Shasta stylesheet so the
   three sites feel like one hand. Palette is shifted darker —
   the Contact Code happens at night.
   ============================================================ */

:root {
  /* --- night palette, derived from the family --- */
  --void:        #08040C;   /* deepest — page background */
  --night:       #120616;   /* section alternate */
  --surface:     #1D0417;   /* card surface (Boujee primary) */
  --plum:        #451038;   /* Boujee accent */
  --orchid:      #5B2655;   /* THE connective colour — in both her sites */
  --mauve:       #9C6B96;   /* Shasta secondary — muted text on dark */
  --cream:       #F5F1EE;   /* Shasta background — becomes our text */
  --starlight:   #E8DFF0;

  --radius:      16px;
  --radius-pill: 30px;
  --unit:        4px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--cream);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

em { font-style: italic; color: var(--mauve); }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: clamp(80px, 12vh, 160px) 0; }
.section--alt { background: var(--night); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 18px;
}

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background 0.5s, box-shadow 0.5s, padding 0.4s;
}
.header.scrolled {
  background: rgba(8, 4, 12, 0.86);
  backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(155, 107, 150, 0.14);
}
.header-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo img { height: 44px; width: auto; transition: transform 0.5s var(--ease); }
.header-logo:hover img { transform: translateY(-2px); }
.header-logo span {
  font-family: 'Instrument Serif', serif; font-size: 19px;
  color: var(--cream); letter-spacing: 0.02em;
}
.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  color: var(--starlight); text-decoration: none; font-size: 14px;
  opacity: 0.82; transition: color 0.3s, opacity 0.3s;
}
.nav a:hover { opacity: 1; color: #fff; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  padding: 14px 30px; border-radius: var(--radius-pill);
  border: 1px solid var(--orchid);
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s, background 0.3s;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover {
  opacity: 0.88; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 38, 85, 0.45);
}
.btn-ghost { background: transparent; color: var(--cream); }
.btn-ghost:hover {
  transform: translateY(-2px); background: rgba(91, 38, 85, 0.22);
}

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
/* Slow lateral drift, lifted from themagicofmountshasta.com's .hero-cloud-layer.
   Two things make it work: scale() oversizes the layer so the ±% slide never
   exposes an edge, and `alternate` eases it back and forth rather than snapping.
   The scroll parallax writes --parallax-y (NOT transform) so it composes with
   this animation instead of clobbering it — same trick her site uses. */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
  animation: heroDrift 34s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: translateY(var(--parallax-y, 0px)) translateX(-2.2%) scale(1.07); }
  to   { transform: translateY(var(--parallax-y, 0px)) translateX(2.2%)  scale(1.07); }
}
/* Her mist, retuned from lavender to our orchid. */
.hero-mist {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 40% at 50% 82%, rgba(155,107,150,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 80% 30% at 28% 72%, rgba(91,38,85,0.20)   0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 72% 74%, rgba(69,16,56,0.18)   0%, transparent 60%);
  animation: mistPulse 11s ease-in-out infinite alternate;
}
@keyframes mistPulse {
  from { opacity: 0.55; transform: scaleX(1); }
  to   { opacity: 1;    transform: scaleX(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-mist { animation: none !important; }
  .hero-media { transform: none !important; }
}
/* Image is pre-graded to the night palette, so it carries more opacity than a
   raw source would. The scrim is weighted low-and-centre: the headline sits
   over the meditator, and she needs to stay readable behind it. */
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.9;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, rgba(8,4,12,0.56) 0%, rgba(8,4,12,0.22) 55%, transparent 78%),
    linear-gradient(180deg, rgba(8,4,12,0.46) 0%, rgba(8,4,12,0.10) 34%, rgba(8,4,12,0.44) 72%, var(--void) 100%);
}
/* The scrim is lighter now, so the headline earns its contrast from a shadow
   rather than from darkening the whole frame. */
.hero h1, .hero-sub, .hero-meta {
  text-shadow: 0 2px 26px rgba(8, 4, 12, 0.85), 0 1px 4px rgba(8, 4, 12, 0.6);
}
/* keep the headline off the ship on wide screens */
@media (min-width: 1100px) {
  .hero-inner { max-width: 900px; }
}
.hero-inner { position: relative; z-index: 2; padding: 140px 20px 90px; }
.hero-mark { width: clamp(74px, 9vw, 108px); margin: 0 auto 30px; display: block; }
.hero h1 {
  font-size: clamp(48px, 9vw, 132px);
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(15px, 1.7vw, 20px); color: var(--starlight);
  opacity: 0.9; max-width: 640px; margin: 0 auto 14px;
}
.hero-meta {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mauve); margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== TYPE BLOCKS ===================== */
.lead { font-size: clamp(17px, 2vw, 22px); color: var(--starlight); opacity: 0.9; }
h2.section-title {
  font-size: clamp(34px, 5.4vw, 68px); margin-bottom: 22px;
}
.measure { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }

/* ===================== CARDS ===================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid rgba(155, 107, 150, 0.16);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(155, 107, 150, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.card h3 { font-size: 27px; margin-bottom: 12px; }
.card p { color: var(--starlight); opacity: 0.78; font-size: 15px; }
.card .tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mauve); margin-bottom: 14px;
}

/* ===================== EVENT ===================== */
.event {
  border: 1px solid rgba(155, 107, 150, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 0%, var(--void) 100%);
  padding: clamp(34px, 5vw, 60px);
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}
.event-date {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(30px, 4vw, 52px); color: var(--cream);
}
.event-where { color: var(--mauve); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--night); padding: 72px 0 40px;
  border-top: 1px solid rgba(155, 107, 150, 0.12);
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer h4 { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 14px; }
.footer a { display: block; color: var(--starlight); opacity: 0.72; text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 0.25s, padding-left 0.25s; }
.footer a:hover { opacity: 1; padding-left: 6px; }
.footer-base { margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(155,107,150,0.1); font-size: 13px; color: var(--mauve); text-align: center; }

/* ===================== SCROLL REVEAL =====================
   Values matched to themagicofmountshasta.com/styles.css */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ===================== DRIFTING STARFIELD ===================== */
.stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--dur, 4s) ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.85; } }

@media (max-width: 860px) {
  .nav { display: none; }
  .section { padding: 72px 0; }
}

/* ===================== EMAIL CAPTURE ===================== */
.signup { display: flex; gap: 12px; max-width: 620px; flex-wrap: wrap; align-items: stretch; }
.signup input {
  flex: 1 1 300px; min-width: 260px;
  padding: 19px 26px; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--cream);
  border: 1px solid rgba(155, 107, 150, 0.28);
  font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.2;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.signup input::placeholder { color: var(--mauve); opacity: .75; }
.signup input:focus {
  outline: none; border-color: var(--orchid); background: #240727;
  box-shadow: 0 0 0 4px rgba(91, 38, 85, 0.22);
}
/* button matches the input's height so the pair reads as one control */
.signup .btn {
  flex: 0 0 auto; padding: 19px 34px; font-size: 15px; white-space: nowrap;
}
@media (max-width: 560px) {
  .signup input, .signup .btn { flex: 1 1 100%; width: 100%; text-align: center; }
}

/* ===================== INSTAGRAM =====================
   Floating mark, bottom-right, the way theboujeehealer.com carries it.
   Sits above the page but never over the booking CTA on small screens. */
.ig-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29, 4, 23, 0.82);
  border: 1px solid rgba(155, 107, 150, 0.32);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.ig-float svg { width: 21px; height: 21px; fill: var(--cream); opacity: 0.9; }
.ig-float:hover {
  transform: translateY(-3px);
  background: var(--plum);
  border-color: var(--orchid);
  box-shadow: 0 8px 28px rgba(91, 38, 85, 0.5);
}
.ig-float:hover svg { opacity: 1; }
@media (max-width: 560px) { .ig-float { right: 14px; bottom: 14px; width: 42px; height: 42px; } }

/* inline version, for the footer */
.ig-inline { display: inline-flex; align-items: center; gap: 9px; }
.ig-inline svg { width: 16px; height: 16px; fill: currentColor; }
