/* ============================================
   SPIRITUAL COSMIC THEME — SHARED STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Deep spiritual palette */
  --bg-deep: #0a0618;
  --bg-mid: #120a2a;
  --bg-card: #1a1140;
  --bg-soft: #231659;
  --bg-glow: #2d1b6e;

  --text-light: #f3ecff;
  --text-soft: #d6cbff;
  --text-muted: #9d8fc9;

  --accent: #c084fc;         /* soft lavender */
  --accent-glow: #a855f7;    /* amethyst glow */
  --accent-soft: rgba(192, 132, 252, 0.12);
  --gold: #fbbf24;           /* celestial gold */
  --gold-soft: rgba(251, 191, 36, 0.12);
  --rose: #f472b6;
  --teal: #5eead4;

  --border-light: #2e2261;
  --border-glow: #4c2f9c;

  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px -10px rgba(168, 85, 247, 0.35);
}

body {
  background:
    radial-gradient(ellipse at 15% 5%, #2a1a5e 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, #1e1149 0%, transparent 50%),
    linear-gradient(180deg, #0a0618 0%, #120a2a 100%);
  color: var(--text-light);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Decorative star field */
.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #c084fc, transparent),
    radial-gradient(1.5px 1.5px at 80% 15%, #fff, transparent),
    radial-gradient(1px 1px at 35% 85%, #fbbf24, transparent),
    radial-gradient(1px 1px at 90% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 65%, #c084fc, transparent),
    radial-gradient(1px 1px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 75% 90%, #5eead4, transparent);
  background-size: 100% 100%;
  opacity: 0.55;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.4; }
  100% { opacity: 0.7; }
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  width: 100%;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(26, 17, 64, 0.7) 0%, rgba(10, 6, 24, 0.9) 100%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #f3ecff 0%, var(--accent) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-light);
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: center;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.btn-group {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  color: #0a0618;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 60px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
  box-shadow: 0 10px 28px -10px rgba(168, 85, 247, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(168, 85, 247, 0.75);
  background: linear-gradient(135deg, #cf9dff 0%, #b46ef7 100%);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: #1a1140;
  box-shadow: 0 10px 28px -10px rgba(251, 191, 36, 0.55);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fcd34d 0%, var(--gold) 100%);
  box-shadow: 0 14px 34px -8px rgba(251, 191, 36, 0.7);
}

.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

/* ============================================
   HERO CARD (Sun transit)
   ============================================ */

.hero-card {
  background: linear-gradient(155deg, var(--bg-card) 0%, #120a2a 100%);
  border-radius: var(--radius);
  padding: 1.9rem;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.25), transparent 70%);
  pointer-events: none;
}

.sun-transit {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.badge {
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: #1a1140;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 60px;
  display: inline-block;
  align-self: flex-start;
  text-transform: uppercase;
}

.transit-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-light);
}

.transit-title i {
  font-style: normal;
  font-size: 2.4rem;
  color: var(--accent);
  text-shadow: 0 0 25px var(--accent-glow);
}

.transit-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.transit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.transit-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-title h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-title a,
.section-note {
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}

.section-title a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================
   HOROSCOPE CARDS
   ============================================ */

.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin-bottom: 3.5rem;
}

.horoscope-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, #130b2e 100%);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.horoscope-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(168, 85, 247, 0.5);
}

.sign {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.sign-emoji {
  font-size: 1.7rem;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.4));
}

.horoscope-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.card-link {
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--gold);
}

/* ============================================
   WORKSHOP BANNER
   ============================================ */

.workshop-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  padding: 2.25rem 2rem;
  margin: 2rem 0 3rem;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 15% 50%, rgba(192, 132, 252, 0.2), transparent 60%),
    linear-gradient(145deg, #1f1448 0%, #120a2a 100%);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.workshop-banner h3 {
  font-size: 1.8rem;
  margin: 0.4rem 0 0.5rem;
}

.workshop-banner p {
  color: var(--text-muted);
  max-width: 540px;
}

.workshop-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 60px;
  padding: 0.35rem 0.95rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ============================================
   NEWS / RETROGRADE
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  margin: 2rem 0;
}

.news-item {
  background: linear-gradient(160deg, var(--bg-card) 0%, #130b2e 100%);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.news-item:hover {
  border-color: var(--gold);
  border-left-color: var(--accent);
  transform: translateY(-3px);
}

.news-item .date {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.news-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
/* ============================================
   PROGRAMS PAGE — HERO
   ============================================ */

.programs-hero {
  text-align: center;
  margin: 1.5rem auto 3.5rem;
  max-width: 760px;
  padding: 0 0.5rem;
}

.programs-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f3ecff 0%, var(--accent) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.programs-hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ============================================
   PROGRAMS GRID & CARDS
   ============================================ */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(192, 132, 252, 0.12), transparent 55%),
    linear-gradient(160deg, var(--bg-card) 0%, #110a29 100%);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem 1.6rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(192, 132, 252, 0.5), transparent 40%, rgba(251, 191, 36, 0.35));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 26px 55px -22px rgba(168, 85, 247, 0.55), var(--shadow-glow);
}

.program-card:hover::before {
  opacity: 1;
}

.program-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.55));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.program-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 0.28rem 0.75rem;
  border-radius: 60px;
  margin-bottom: 0.9rem;
}

.program-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.program-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 1.15rem;
}

.program-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  padding: 0.9rem 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
}

.program-meta li {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.program-price {
  font-family: Tahoma, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.4);
}

/* ============================================
   PROGRAM CTA BAND
   ============================================ */

.program-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  padding: 2.4rem 2.2rem;
  margin: 3rem 0 2.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.16), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(192, 132, 252, 0.18), transparent 55%),
    linear-gradient(145deg, #1e1349 0%, #110a29 100%);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.program-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
  color: var(--text-light);
}

.program-cta p {
  color: var(--text-muted);
  max-width: 560px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

@media (min-width: 640px) {
  body { padding: 1.5rem 1.25rem; }
  .page-wrap { padding: 2.25rem 2.25rem 2rem; }
  .programs-grid { gap: 2rem; }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
  .workshop-banner { padding: 2.5rem 2.5rem; }
}

@media (min-width: 1024px) {
  body { padding: 2.25rem 2rem; }
  .page-wrap { padding: 2.75rem 2.75rem 2.25rem; }
  .hero-grid { grid-template-columns: 1fr 0.85fr; gap: 3.5rem; }
  .horoscope-grid { grid-template-columns: repeat(3, 1fr); }
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .page-wrap {
    padding: 1.4rem 1.1rem 1.6rem;
    border-radius: 28px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .nav-links {
    gap: 1.1rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: space-between;
  }
  .logo { font-size: 1.55rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.88rem; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1; justify-content: center; }
  .hero-card { padding: 1.5rem; }
  .transit-title { font-size: 1.8rem; }
  .transit-title i { font-size: 2rem; }
  .workshop-banner,
  .program-cta {
    padding: 1.75rem 1.4rem;
  }
  .workshop-banner h3,
  .program-cta h3 { font-size: 1.5rem; }
  .program-card { padding: 1.6rem 1.4rem 1.35rem; }
  .program-footer { flex-wrap: wrap; }
  footer { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .stars-bg { animation: none; opacity: 0.6; }
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}