/* ============================================================
   EMPOWERED BY TANYA — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Cinzel:wght@400;500;600&family=Raleway:wght@300;400;500;600&display=swap');

/* ── Nebula Canvas Background ── */
#nebulaCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* ── Variables ── */
:root {
  --cosmic-midnight: rgba(7,8,15,0.55);
  --deep-cosmic:     #0D0F1E;
  --card-bg:         #0F1120;
  --card-border:     rgba(217,164,65,0.25);
  --gold:            #C9973A;
  --gold-light:      #DFB55A;
  --gold-dark:       #A67A28;
  --gold-glow:       rgba(201,151,58,0.15);
  --starlight:       #F0EDE6;
  --violet:          #2E1F5E;
  --white:           #FFFFFF;
  --text-muted:      rgba(240,237,230,0.65);

  --font-heading:    'Cinzel', serif;
  --font-body:       'Cormorant Garamond', serif;
  --font-ui:         'Raleway', sans-serif;

  --max-width:       1200px;
  --section-pad:     100px 24px;
  --radius:          8px;
  --transition:      0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: transparent;
  color: var(--starlight);
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.8;
  overflow-x: hidden;
}

/* subtle grain texture over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Gold divider ── */
.gold-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto;
}
.gold-divider.wide { width: 200px; }

/* ── Om symbol ── */
.om-symbol {
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
  text-align: center;
  margin-bottom: 8px;
  opacity: 0.8;
}
.om-symbol-wrap {
  display: block;
  text-align: center;
  margin-bottom: 8px;
}
.om-symbol-img {
  width: 80px;
  height: auto;
  display: inline-block;
  opacity: 0.88;
  filter: drop-shadow(0 0 10px rgba(201,151,58,0.35));
  animation: goldSparkle 5s ease-in-out infinite;
}

/* ── Sticky Om ── */
.sticky-om {
  position: fixed;
  right: 18px;
  top: 100px;       /* sits just below the navbar */
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sticky-om.visible {
  opacity: 1;
  transform: translateX(0);
}
.sticky-om img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(201,151,58,0.5));
  animation: goldSparkle 5s ease-in-out infinite, stickyOmFloat 7s ease-in-out infinite;
}
@keyframes stickyOmFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
/* Tablet: shrink it down so it doesn't eat content */
@media (max-width: 1100px) {
  .sticky-om img { width: 140px; }
  .sticky-om { right: 10px; }
}
/* Mobile: hide entirely — too small to show without obscuring content */
@media (max-width: 700px) {
  .sticky-om { display: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(7,8,15,0.97) 0%, rgba(7,8,15,0.0) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,151,58,0.12);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(7,8,15,0.98);
  border-bottom-color: rgba(201,151,58,0.28);
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.nav-logo img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--starlight);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--cosmic-midnight);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--starlight);
  transition: all var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--cosmic-midnight);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--cosmic-midnight);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,164,65,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(217,164,65,0.1);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--deep-cosmic);
  color: var(--starlight);
  border: 1px solid rgba(217,164,65,0.3);
}
.btn-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION LAYOUTS
   ============================================================ */
.section {
  padding: var(--section-pad);
  position: relative;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  font-style: italic;
}

/* ── Cosmic background ── */
.bg-cosmic {
  background: radial-gradient(ellipse at 20% 50%, rgba(46,31,94,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,151,58,0.04) 0%, transparent 50%),
              var(--cosmic-midnight);
}
.bg-deep {
  background: var(--deep-cosmic);
}
.bg-dark {
  background: rgba(4,5,11,0.70);
}

/* ── Star particle overlay ── */
.bg-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 45%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(15,17,32,0.75);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: rgba(201,151,58,0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 40px rgba(201,151,58,0.05);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  background: transparent;
  animation: goldSparkle 4s ease-in-out infinite, iconFloat 6s ease-in-out infinite;
  animation-delay: var(--icon-delay, 0s);
}
/* stagger sparkle timing per card */
.card:nth-child(2) .card-icon { --icon-delay: 0.7s; }
.card:nth-child(3) .card-icon { --icon-delay: 1.4s; }
.card:nth-child(4) .card-icon { --icon-delay: 2.1s; }
.card:nth-child(5) .card-icon { --icon-delay: 0.3s; }
.card:nth-child(6) .card-icon { --icon-delay: 1.1s; }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.card-text {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(3,4,8,0.80);
  border-top: 1px solid rgba(217,164,65,0.2);
  padding: 60px 24px 32px;
  text-align: center;
}
.footer-logo img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 32px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217,164,65,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: rgba(217,164,65,0.15);
  border-color: var(--gold);
}
.footer-address {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(240,237,230,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(245,245,245,0.35);
  letter-spacing: 0.05em;
}
.footer-copy span {
  color: rgba(217,164,65,0.5);
}

/* ============================================================
   PAGE HERO (non-home pages)
   ============================================================ */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 100%, rgba(46,31,94,0.3) 0%, transparent 65%),
              radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.04) 0%, transparent 50%),
              var(--cosmic-midnight);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--starlight);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--gold);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.12em; }
}

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .navbar.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(12,15,63,0.98);
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.1rem;
    z-index: 999;
  }
  .navbar.mobile-open .nav-cta { display: block; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }

  .navbar { padding: 14px 20px; }

  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-hero { padding: 130px 20px 60px; }
}

/* ============================================================
   GOLD SPARKLE & FLOAT ANIMATIONS
   ============================================================ */
@keyframes goldSparkle {
  0%,  100% { filter: drop-shadow(0 0 4px rgba(168,135,96,0.3)); }
  50%        { filter: drop-shadow(0 0 9px rgba(185,153,105,0.55)); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}
/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .card-icon { animation: none !important; filter: drop-shadow(0 0 10px rgba(201,151,58,0.5)); }
}

/* ============================================================
   PHOTO BACKGROUND SECTIONS  (cinematic dark + yoga image)
   ============================================================ */
.section-photo-bg {
  position: relative;
  overflow: hidden;
}
/* the actual background photo — Ken Burns slow zoom */
.section-photo-bg .photo-layer {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 24s ease-in-out infinite alternate;
  z-index: 0;
}
/* dark cinematic overlay */
.section-photo-bg .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7,8,15,0.78) 0%,
    rgba(7,8,15,0.70) 50%,
    rgba(7,8,15,0.85) 100%);
  z-index: 1;
}
/* all direct children sit above overlay */
.section-photo-bg > :not(.photo-layer):not(.photo-overlay) {
  position: relative;
  z-index: 2;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0%)    translateY(0%); }
  33%  { transform: scale(1.06) translateX(-1%)   translateY(-1%); }
  66%  { transform: scale(1.04) translateX(1%)    translateY(1%); }
  100% { transform: scale(1.08) translateX(-0.5%) translateY(0.5%); }
}

/* ============================================================
   PAGE HERO — with photo background variant
   ============================================================ */
.page-hero-photo {
  padding: 180px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-photo .photo-layer {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center top;
  animation: kenBurns 28s ease-in-out infinite alternate;
  z-index: 0;
}
.page-hero-photo .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7,8,15,0.65) 0%,
    rgba(7,8,15,0.55) 40%,
    rgba(7,8,15,0.90) 100%);
  z-index: 1;
}
.page-hero-photo > :not(.photo-layer):not(.photo-overlay) {
  position: relative;
  z-index: 2;
}
.page-hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 3;
}
