/* AstroForecast — One-page, dark premium palette from logo */
:root{
  --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --bg: #0F090F;
  --text: #F3E7F4;
  --muted: rgba(243,231,244,0.74);

  --violet: #5D1AE0;
  --violet2: #7F3EEB;
  --lavender: #C5A1FC;
  --orange: #EE6D41;

  --border: rgba(197,161,252,0.16);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);

  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
  --header-h: 96px;
}

*{ box-sizing: border-box; }
html, body{
  margin: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(15,9,15,0.30), rgba(15,9,15,0.48)),
    image-set(
      url("../images/night-sky.webp") type("image/webp"),
      url("../images/night-sky.jpg") type("image/jpeg")
    ) center / cover fixed,
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
.container{ width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Accessibility */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px; width:auto; height:auto;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(0,0,0,0.85); border: 1px solid var(--border);
  z-index: 9999;
}

/* Header */
.header{
  position: sticky; top: 0; z-index: 2000;
  height: var(--header-h);
  backdrop-filter: blur(10px);
  background: rgba(15,9,15,0.62);
  border-bottom: 1px solid rgba(197,161,252,0.12);
}
.header-inner{
  height: var(--header-h);
  display:flex; align-items:center; justify-content: space-between;
  gap: 16px;
}
.brand{
  display:inline-flex; align-items:center; gap: 12px;
  letter-spacing: 0.5px;
}
.brand img{ height: 72px; width: auto; max-width: 220px; border-radius: 14px; object-fit: contain; }
.brand-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.brand-sub{ font-size: 12px; color: rgba(243,231,244,0.68); margin-top: -2px; }

.nav{ display:flex; gap: 10px; align-items:center; }
.nav a{
  font-size: 16px;
  color: rgba(243,231,244,0.86);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197,161,252,0.10);
  background: rgba(15,9,15,0.12);
  position: relative;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.nav a:hover{
  border-color: rgba(238,109,65,0.38);
  background: linear-gradient(135deg, rgba(238,109,65,0.76), rgba(127,62,235,0.42));
  box-shadow: 0 12px 30px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(243,231,244,0.10);
  transform: translateY(-1px);
  color: rgba(255,255,255,0.96);
}
.nav a.active{
  border-color: rgba(197,161,252,0.14);
  background: rgba(15,9,15,0.12);
  box-shadow: none;
  transform: none;
  color: rgba(243,231,244,0.86);
}

.menu-btn{
  display:none;
  border: 1px solid rgba(197,161,252,0.18);
  background: rgba(62,29,85,0.18);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.menu{
  display:none;
  margin-top: 10px;
  border: 1px solid rgba(197,161,252,0.14);
  background: rgba(15,9,15,0.82);
  border-radius: 16px;
  padding: 8px;
}
.menu a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.menu a:hover{ border-color: rgba(197,161,252,0.18); background: rgba(62,29,85,0.18); }

@media (max-width: 780px){
  .nav{ display:none; }
  .menu-btn{ display:inline-flex; align-items:center; gap:8px; }
  .menu.open{ display:block; }
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(197,161,252,0.18);
  background: rgba(62,29,85,0.22);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(197,161,252,0.28); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.btn:focus{ outline: 2px solid rgba(197,161,252,0.38); outline-offset: 2px; }
.btn-primary{
  border-color: rgba(127,62,235,0.35);
  background: linear-gradient(135deg, rgba(93,26,224,0.92), rgba(127,62,235,0.78));
}
.btn-accent{
  border-color: rgba(238,109,65,0.42);
  background: linear-gradient(135deg, rgba(238,109,65,0.90), rgba(127,62,235,0.55));
}

/* Sections */
.section{ padding: 56px 0; scroll-margin-top: calc(var(--header-h) - 75px); }
.section.tight{ padding: 42px 0; scroll-margin-top: calc(var(--header-h) - 70px); }
.section-head{
  display:flex; align-items:flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.kicker{
  color: rgba(197,161,252,0.90);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.h1{
  font-family: var(--font-display);
  letter-spacing: 0.02em;

  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  font-weight: 800;
}
.h2{
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.018em;

  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
}
.lead{
  font-size: 16px;
  color: rgba(243,231,244,0.80);
  max-width: 62ch;
}
.small{
  letter-spacing: 0.01em;
 color: rgba(243,231,244,0.68); font-size: 13px; }
.spacer{ height: 24px; }

.panel{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197,161,252,0.16);
  background: linear-gradient(180deg, rgba(62,29,85,0.22), rgba(62,29,85,0.10));
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Hero with photo background */
.hero{
  position: relative;
  z-index: 0;
  padding: 76px 0 64px;
}
.hero::before{
  content:"";
  position:absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,9,15,0.06), rgba(15,9,15,0.46)),
    radial-gradient(900px 520px at 18% 12%, rgba(127,62,235,0.18), transparent 60%),
    radial-gradient(900px 520px at 86% 18%, rgba(238,109,65,0.14), transparent 60%),
    image-set(
      url("../images/hero-galaxy.webp") type("image/webp"),
      url("../images/hero-galaxy.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center top;
  filter: saturate(1.05) contrast(1.04);
  z-index: -1;
}
.hero::after{
  content:"";
  position:absolute; inset: 0;
  background: radial-gradient(1200px 700px at 70% 0%, rgba(127,62,235,0.12), transparent 60%);
  z-index: -1;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 980px){ .hero-grid{ grid-template-columns: 1fr; } }
.hero-portrait{
  height: 100%;
  min-height: 520px;
  display: flex;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197,161,252,0.16);
  background: rgba(15,9,15,0.48);
  backdrop-filter: blur(10px);
  padding: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(197,161,252,0.12);
}

.hero-card{
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197,161,252,0.16);
  background: rgba(15,9,15,0.62);
  backdrop-filter: blur(10px);
}
.hero-actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(197,161,252,0.16);
  background: rgba(15,9,15,0.36);
  font-size: 12px;
  color: rgba(243,231,244,0.78);
}

/* Grids */
.grid{ display:grid; gap: 14px; }
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px){
  .grid.cols-3, .grid.cols-2{ grid-template-columns: 1fr; }
}

/* Service cards with themed backgrounds + cursor glow */
.card{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(197,161,252,0.14);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  padding: 16px 16px 14px;
  transition: transform .18s ease, border-color .18s ease;
}

.card.service{
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background-size: cover;
  background-position: var(--bgx, 50%) var(--bgy, 50%);
}


.card::before{
  content:"";
  position:absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
      rgba(197,161,252,0.22),
      rgba(127,62,235,0.16) 22%,
      rgba(238,109,65,0.12) 42%,
      transparent 62%);
  opacity: 0;
  transition: opacity .16s ease;
  pointer-events: none;
}
.card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
      rgba(238,109,65,0.10),
      transparent 60%);
  opacity: 0;
  transition: opacity .16s ease;
  pointer-events: none;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(197,161,252,0.24);
}
.card:hover::before, .card:hover::after{ opacity: 1; }

.card-title{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.card-text{
  margin: 0;
  color: rgba(243,231,244,0.78);
  font-size: 16px;
  max-width: 70ch;
}
.card-actions{
  margin-top: auto;
  padding-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: stretch;
}
.card-actions .btn{ flex: 1; justify-content: center; }

/* How it works */
.steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){ .steps{ grid-template-columns: 1fr; } }
.step{
  border-radius: var(--radius);
  border: 1px solid rgba(197,161,252,0.14);
  background: rgba(62,29,85,0.16);
  padding: 16px;
}
.step b{ display:block; margin-bottom: 6px; font-size: 18px; font-weight: 950; letter-spacing: -0.01em; }
.step p{ margin: 0; color: rgba(243,231,244,0.74); font-size: 16px; }

/* Forms */
.form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }
label{ font-size: 13px; color: rgba(243,231,244,0.78); }
input, select, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(197,161,252,0.16);
  background: rgba(15,9,15,0.52);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
}
textarea{ min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  outline: 2px solid rgba(197,161,252,0.34);
  outline-offset: 2px;
  border-color: rgba(197,161,252,0.28);
}
.inline{ display:flex; gap: 12px; }
@media (max-width: 780px){ .inline{ flex-direction: column; } }
.checkbox{ display:flex; gap: 10px; align-items:flex-start; }
.checkbox input{ width: 18px; height: 18px; margin-top: 2px; }

.notice{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(197,161,252,0.14);
  background: rgba(62,29,85,0.14);
  color: rgba(243,231,244,0.78);
  font-size: 16px;
}

/* Footer */
.footer{
  padding: 34px 0 48px;
  border-top: 1px solid rgba(197,161,252,0.12);
  color: rgba(243,231,244,0.70);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}
@media (max-width: 980px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer a{ color: rgba(243,231,244,0.82); }
.footer a:hover{ color: var(--lavender); }
details{
  border: 1px solid rgba(197,161,252,0.14);
  border-radius: 16px;
  background: rgba(62,29,85,0.14);
  padding: 12px 14px;
}
summary{
  cursor: pointer;
  font-weight: 900;
  color: rgba(243,231,244,0.86);
}
details p{ margin: 10px 0 0; color: rgba(243,231,244,0.74); font-size: 13px; }


/* Service image overlay for readability (does not affect cursor glow) */
.card.service .svc-overlay{
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15,9,15,0.34), rgba(15,9,15,0.72));
  pointer-events:none;
  z-index: 0;
}
.card > *{ position: relative; z-index: 1; }

/* Motion prefs */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto !important; }
  .btn, .card, .card::before, .card::after{ transition: none !important; }
}

@media (max-width: 980px){
  .hero-card, .hero-portrait{ min-height: 0; }
  .hero-portrait{ height: auto; }
  .hero-portrait img{ height: auto; }
}

html{ text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Lux service card finish */
.card.service{
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-position .18s ease;
}
.card.service:hover{
  transform: translateY(-2px);
  border-color: rgba(197,161,252,0.22);
  box-shadow: 0 18px 42px rgba(0,0,0,0.52);
}
.card.service .lux-sparkle,
.card.service .lux-shimmer{
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  z-index: 0;
  opacity: 0;
}
.card.service .lux-sparkle{
  background-image: url("../images/sparkle-tile.svg");
  background-size: 320px 320px;
  filter: blur(0.1px);
  transition: opacity .18s ease;
}
.card.service:hover .lux-sparkle{ opacity: 0.55; }

.card.service .lux-shimmer{
  inset:-2px;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(243,231,244,0.06) 22%,
    rgba(197,161,252,0.12) 38%,
    rgba(238,109,65,0.10) 50%,
    rgba(243,231,244,0.06) 62%,
    transparent 78%);
  transform: translateX(-60%);
  mix-blend-mode: screen;
}
.card.service:hover .lux-shimmer{
  opacity: 1;
  animation: shimmer-sweep 1.25s ease forwards;
}
@keyframes shimmer-sweep{
  0%{ transform: translateX(-65%); }
  100%{ transform: translateX(65%); }
}


/* Focus: show only for keyboard, not mouse */
.nav a:focus{ outline: none; }
.nav a:focus-visible{
  outline: 2px solid rgba(197,161,252,0.45);
  outline-offset: 4px;
}


html{ scroll-padding-top: calc(var(--header-h) - 34px); }

#contact .small{ font-size: 16px; color: rgba(243,231,244,0.74); }

/* Form control font reset (ensures buttons match .btn links) */
button, input, textarea, select{ font: inherit; }

#contact .notice b{ font-size: 18px; font-weight: 950; letter-spacing: -0.01em; }

#about .step p{ font-size: 16px; color: rgba(243,231,244,0.80); }

.nav a.active:hover{
  border-color: rgba(238,109,65,0.38);
  background: linear-gradient(135deg, rgba(238,109,65,0.76), rgba(127,62,235,0.42));
  box-shadow: 0 12px 30px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(243,231,244,0.10);
  transform: translateY(-1px);
  color: rgba(255,255,255,0.96);
}


/* SERVICE CARD PHOTO BACKGROUNDS (optimized) */
.card.service{
  /* Ensure photos are used everywhere, even if inline background-image exists */
  background: rgba(22, 16, 35, 0.38) !important;
  background-image: none !important;

  /* Smoother hover + stronger depth */
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 16px 44px rgba(0,0,0,0.42);
}

/* Photo layer */
.card.service::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-size: cover;
  background-position: var(--bgx, 50%) var(--bgy, 50%);
  background-repeat: no-repeat;

  /* Make photo more transparent / lighter on resources */
  opacity: 0.36;
  filter: saturate(1.05) contrast(1.05) brightness(0.90);

  transform: scale(1.06);
  transition: transform .28s ease, opacity .28s ease, filter .28s ease;
  pointer-events:none;
}

/* Readability scrim */
.card.service::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg,
    rgba(10,8,16,0.72) 0%,
    rgba(10,8,16,0.38) 45%,
    rgba(10,8,16,0.82) 100%
  );
  transition: opacity .28s ease;
  pointer-events:none;
}

/* Keep content above photo+scrim */
.card.service > *{ position: relative; z-index: 2; }

/* Resource saving: disable extra decorative overlays inside cards */
.card.service .svc-overlay,
.card.service .lux-sparkle,
.card.service .lux-shimmer{ display:none !important; }

/* Make card copy and buttons stand out on photos */
.card.service .card-title,
.card.service .card-text{
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}


/* Service card buttons: match v20 stable */
.card.service .btn-accent{
  border-color: rgba(238, 109, 65, 0.42);
  background: linear-gradient(135deg, rgba(238, 109, 65, 0.90), rgba(127, 62, 235, 0.55));
}

/* Restore hover effects for service cards */
.card.service:hover{
  transform: translateY(-4px);
  border-color: rgba(197,161,252,0.30);
  box-shadow: 0 26px 70px rgba(0,0,0,0.55);
}
.card.service:hover::before{
  opacity: 0.44;
  transform: scale(1.10);
  filter: saturate(1.08) contrast(1.08) brightness(0.98);
}
.card.service:hover::after{
  opacity: 0.92;
}

/* Per-service photo mapping */
.card.service.svc-astro::before{ background-image:url("../images/service-photos-webp/private-astrology-consultation.webp"); }
.card.service.svc-tarot::before{ background-image:url("../images/service-photos-webp/tarot-guidance-session.webp"); }
.card.service.svc-annual::before{ background-image:url("../images/service-photos-webp/year-ahead-forecast.webp"); }
.card.service.svc-love::before{ background-image:url("../images/service-photos-webp/love-partnership-insight.webp"); }
.card.service.svc-career::before{ background-image:url("../images/service-photos-webp/career-purpose-alignment.webp"); }
.card.service.svc-property::before{ background-image:url("../images/service-photos-webp/property-real-estate.webp"); }
.card.service.svc-health::before{ background-image:url("../images/service-photos-webp/health-vitality.webp"); }
.card.service.svc-relocation::before{ background-image:url("../images/service-photos-webp/relocation-new-horizons.webp"); }
.card.service.svc-fertility::before{ background-image:url("../images/service-photos-webp/fertility-family-planning.webp"); }
.card.service.svc-legal::before{ background-image:url("../images/service-photos-webp/legal-conflict-timing.webp"); }
.card.service.svc-education::before{ background-image:url("../images/service-photos-webp/education-academic-path.webp"); }

/* SECTION BLOCK BACKGROUNDS */
:root{
  --orange-wash-1: rgba(238,109,65,0.16);
  --orange-wash-2: rgba(238,109,65,0.08);
  --orange-border: rgba(238,109,65,0.22);

  --danger-wash-1: rgba(220,38,38,0.22);
  --danger-wash-2: rgba(220,38,38,0.12);
  --danger-border: rgba(248,113,113,0.28);
}

/* About + How it works blocks: transparent orange */
#about .step,
#how .step{
  background: linear-gradient(180deg, var(--orange-wash-1), var(--orange-wash-2));
  border-color: var(--orange-border);
}

/* What happens next blocks (Session format / Details you may need): transparent orange */
#contact .panel .step{
  background: linear-gradient(180deg, var(--orange-wash-1), var(--orange-wash-2));
  border-color: var(--orange-border);
}

/* Disclaimer: red background + higher contrast text */
#contact .notice{
  background: linear-gradient(180deg, var(--danger-wash-1), var(--danger-wash-2));
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  padding: 14px 14px;
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.55);
}
#contact .notice b{
  color: rgba(255,255,255,0.96) !important;
  font-weight: 950;
}
#contact .notice a{
  color: rgba(255,255,255,0.95) !important;
}

/* LIFT HOVER FOR INFO BLOCKS */
/* Apply the same "lift" hover feel used by service cards to About / How it works / What happens next blocks */
#about .step,
#how .step,
#contact .panel .step,
#contact .notice{
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

#about .step:hover,
#how .step:hover,
#contact .panel .step:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.55);
  border-color: rgba(238,109,65,0.34);
}

#contact .notice:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.55);
  border-color: rgba(248,113,113,0.40);
}

/* Keyboard accessibility: lift when focusing inside */
#about .step:focus-within,
#how .step:focus-within,
#contact .panel .step:focus-within,
#contact .notice:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.55);
}
