/*
Theme Name: Betterlife Astrology
Theme URI: https://betterlife.example
Author: Betterlife
Author URI: https://betterlife.example
Description: A custom-coded dark celestial theme for Betterlife's astrology conference & horoscope site.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: betterlife-astrology
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root{
  --bg-deep:      #0b0518;
  --bg-panel:     #170b30;
  --bg-panel-2:   #1f1040;
  --line:         rgba(232, 219, 255, 0.12);
  --accent:       #a875ff;   /* orchid */
  --accent-soft:  rgba(168, 117, 255, 0.16);
  --gold:         #e8c073;   /* celestial gold */
  --text:         #f4eefc;
  --text-muted:   #b6a6d9;
  --text-faint:   #8577a8;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Jost', 'Segoe UI', sans-serif;

  --radius: 2px;
  --container: 1180px;
  --gap: clamp(1.5rem, 3vw, 3rem);
}

/* ==========================================================================
   1. Reset / base
   ========================================================================== */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg-deep);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  color:var(--text);
}
p{ margin:0 0 1em; color:var(--text-muted); }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 1.5rem;
}

.screen-reader-text{
  position:absolute !important;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

/* Starfield ambient background, layered behind panels */
.stars{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.55) 0, transparent 60%),
    radial-gradient(1px 1px at 70% 65%, rgba(255,255,255,.4) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.5) 0, transparent 60%),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,.45) 0, transparent 60%),
    radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,.35) 0, transparent 60%),
    var(--bg-deep);
  background-repeat:repeat;
  background-size:600px 600px;
}

/* ==========================================================================
   2. Eyebrow / section labels (glyph trail — not a numbered sequence)
   ========================================================================== */
.eyebrow{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-family:var(--font-body);
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.9rem;
}
.eyebrow::before{
  content:"✦";
  font-size:.8rem;
}
.section-head{
  max-width:640px;
  margin:0 0 3rem;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size:clamp(2rem, 3.4vw, 2.8rem); }

.section{
  padding:clamp(4rem,8vw,7rem) 0;
  position:relative;
}
.section-alt{ background:var(--bg-panel); }

.divider{
  height:1px;
  background:var(--line);
  border:0;
  margin:0;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.9rem 2rem;
  border-radius:var(--radius);
  font-size:.85rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:500;
  border:1px solid transparent;
  transition:transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary{
  background:var(--accent);
  color:#140828;
}
.btn-primary:hover{ background:#bd97ff; transform:translateY(-2px); }
.btn-outline{
  border-color:rgba(244,238,252,.4);
  color:var(--text);
  background:transparent;
}
.btn-outline:hover{
  border-color:var(--gold);
  color:var(--gold);
  transform:translateY(-2px);
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:1.2rem 0;
  transition:background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled{
  background:rgba(11,5,24,.85);
  backdrop-filter:blur(10px);
  padding:.8rem 0;
  border-color:var(--line);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
}
.site-branding{
  font-family:var(--font-display);
  font-size:1.5rem;
  font-weight:600;
  letter-spacing:.02em;
}
.site-branding span{ color:var(--gold); }

.primary-nav ul{
  display:flex;
  gap:2.2rem;
}
.primary-nav a{
  font-size:.85rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--text-muted);
  transition:color .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a{ color:var(--gold); }

.header-actions{ display:flex; align-items:center; gap:1.2rem; }
.menu-toggle{
  display:none;
  background:none; border:0; color:var(--text);
  font-size:1.6rem; line-height:1;
}

@media (max-width: 880px){
  .primary-nav{
    position:fixed;
    inset:0 0 0 30%;
    background:var(--bg-panel);
    padding:6rem 2rem 2rem;
    transform:translateX(100%);
    transition:transform .35s ease;
    border-left:1px solid var(--line);
  }
  .primary-nav.is-open{ transform:translateX(0); }
  .primary-nav ul{ flex-direction:column; gap:1.5rem; }
  .menu-toggle{ display:block; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:8rem 1.5rem 6rem;
  background-size:cover;
  background-position:center;
  isolation:isolate;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,5,24,.55) 0%, rgba(11,5,24,.72) 55%, var(--bg-deep) 100%);
  z-index:-1;
}
.hero-inner{ max-width:760px; }
.hero .eyebrow{ justify-content:center; }
.hero h1{
  font-size:clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom:1.2rem;
}
.hero-meta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1.8rem;
  color:var(--text-muted);
  font-size:.95rem;
  margin-bottom:2.2rem;
}
.hero-meta span{ display:inline-flex; align-items:center; gap:.5rem; }
.hero-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1rem;
}
.hero-scroll{
  position:absolute;
  bottom:2rem; left:50%;
  transform:translateX(-50%);
  width:1px; height:50px;
  background:linear-gradient(var(--gold), transparent);
  animation:scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine{
  0%,100%{ opacity:.2; }
  50%{ opacity:1; }
}

/* ==========================================================================
   5. About / Discover section (zodiac wheel + when/where)
   ========================================================================== */
.discover{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:var(--gap);
  align-items:center;
}
.discover-wheel{
  display:flex;
  justify-content:center;
}
.discover-wheel svg{
  width:100%;
  max-width:420px;
  animation:spin 120s linear infinite;
}
@media (prefers-reduced-motion:reduce){
  .discover-wheel svg{ animation:none; }
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.info-row{
  display:flex;
  gap:1.2rem;
  padding:1.5rem 0;
  border-top:1px solid var(--line);
}
.info-row:last-child{ border-bottom:1px solid var(--line); }
.info-row .glyph{
  font-family:var(--font-display);
  color:var(--gold);
  font-size:1.4rem;
  flex-shrink:0;
}
.info-row h3{ font-size:1.15rem; margin-bottom:.35rem; text-transform:uppercase; letter-spacing:.05em; }
.info-row p{ margin:0; }

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

/* ==========================================================================
   6. Zodiac grid (What's your sign)
   ========================================================================== */
.zodiac-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.zodiac-card{
  background:var(--bg-panel);
  padding:2.2rem 1rem;
  text-align:center;
  transition:background .25s ease, transform .25s ease;
}
.zodiac-card:hover{
  background:var(--bg-panel-2);
  transform:translateY(-4px);
}
.zodiac-card .symbol{
  font-family:var(--font-display);
  font-size:2.1rem;
  color:var(--gold);
  margin-bottom:.9rem;
  display:block;
}
.zodiac-card h4{ font-size:1.05rem; margin-bottom:.3rem; }
.zodiac-card .planet{
  font-size:.75rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--text-faint);
}
@media (max-width: 900px){ .zodiac-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width: 520px){ .zodiac-grid{ grid-template-columns:repeat(2,1fr); } }

/* ==========================================================================
   7. Astrologers / speakers ("We Are Welcome")
   ========================================================================== */
.astrologer{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:2rem;
  align-items:flex-start;
  padding:2.2rem 0;
  border-top:1px solid var(--line);
}
.astrologer:last-of-type{ border-bottom:1px solid var(--line); }
.astrologer.reverse{ direction:rtl; }
.astrologer.reverse > *{ direction:ltr; }
.astrologer-photo{
  width:180px; height:180px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid var(--accent-soft);
  box-shadow:0 0 0 6px var(--accent-soft);
}
.astrologer-photo img{ width:100%; height:100%; object-fit:cover; }
.astrologer h3{ font-size:1.5rem; margin-bottom:.6rem; }

@media (max-width:640px){
  .astrologer, .astrologer.reverse{ grid-template-columns:1fr; text-align:left; direction:ltr; }
  .astrologer-photo{ width:120px; height:120px; }
}

/* ==========================================================================
   8. Horoscope / blog articles
   ========================================================================== */
.article-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
.article-card{
  background:var(--bg-panel);
  border:1px solid var(--line);
}
.article-card .thumb{
  aspect-ratio:4/5;
  overflow:hidden;
}
.article-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.article-card:hover .thumb img{ transform:scale(1.05); }
.article-card .body{ padding:1.5rem; }
.article-card .date{
  font-size:.72rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.6rem;
  display:block;
}
.article-card h3{ font-size:1.2rem; margin-bottom:.6rem; }
.article-card p{ font-size:.92rem; }
.article-card .social{
  display:flex; gap:.6rem;
  margin-top:1rem;
}
.article-card .social a{
  width:30px; height:30px;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:.75rem;
  transition:border-color .2s ease, color .2s ease;
}
.article-card .social a:hover{ border-color:var(--gold); color:var(--gold); }

@media (max-width:900px){ .article-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .article-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   9. Schedule / pricing
   ========================================================================== */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:var(--gap);
}
.price-card{
  background:var(--bg-panel);
  border:1px solid var(--line);
  padding:2.5rem;
}
.price-card.featured{
  border-color:var(--gold);
  position:relative;
}
.price-card .amount{
  font-family:var(--font-display);
  font-size:3rem;
  color:var(--gold);
  margin-bottom:.2rem;
}
.price-card .label{
  color:var(--text-faint);
  font-size:.85rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-bottom:1.8rem;
  display:block;
}
.price-card ul{ margin-bottom:2rem; }
.price-card li{
  padding:.7rem 0;
  border-top:1px solid var(--line);
  color:var(--text-muted);
  font-size:.95rem;
}
@media (max-width:720px){ .pricing-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer{
  background:var(--bg-panel);
  border-top:1px solid var(--line);
  padding:3.5rem 0 1.6rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:var(--gap);
  padding-bottom:2.4rem;
}
.footer-brand .site-branding{ display:inline-block; margin-bottom:1rem; }
.footer-brand p{ max-width:320px; }
.footer-col h4{
  font-size:.8rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1.2rem;
}
.footer-col ul li{ margin-bottom:.7rem; }
.footer-col a{ color:var(--text-muted); transition:color .2s ease; }
.footer-col a:hover{ color:var(--gold); }
.footer-social{ display:flex; gap:.7rem; margin-top:1.2rem; }
.footer-social a{
  width:34px; height:34px;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s ease, color .2s ease;
}
.footer-social a:hover{ border-color:var(--gold); color:var(--gold); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
  padding-top:1.6rem;
  border-top:1px solid var(--line);
  font-size:.82rem;
  color:var(--text-faint);
}
.footer-legal{ display:flex; gap:1.6rem; flex-wrap:wrap; }
.footer-legal a:hover{ color:var(--gold); }

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