/* ============================================================
   LunaTarot — Tarot & Astrology
   Theme: Mystical purple + lavender
   ============================================================ */

:root {
  --bg: #1a0a2e;
  --bg-2: #220c3a;
  --bg-3: #2c0f48;
  --purple: #7b2cbf;
  --lavender: #e0aaff;
  --accent: #c77dff;
  --muted: #b794d4;
  --white: #f8f4ff;
  --line: rgba(199, 125, 255, 0.22);
  --card: rgba(199, 125, 255, 0.07);
  --card-hover: rgba(199, 125, 255, 0.14);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
  --maxw: 1180px;
  --rad: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.section-eyebrow {
  font-family: "Cinzel Decorative", serif; font-size: 0.8rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: "Cinzel Decorative", serif; font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.18; color: var(--white); margin-bottom: 16px;
}
.section-lead { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26, 10, 46, 0.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-logo { font-family: "Cinzel Decorative", serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.03em; color: var(--white); }
.nav-logo span { color: var(--accent); }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-size: 0.9rem; letter-spacing: 0.04em; color: var(--muted); transition: color 0.25s; font-weight: 500; }
.nav-menu a:hover { color: var(--lavender); }
.nav-menu .nav-cta { background: var(--purple); color: var(--white); padding: 9px 22px; border-radius: 30px; transition: all 0.25s; }
.nav-menu .nav-cta:hover { background: var(--accent); color: var(--bg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--lavender); transition: transform 0.3s, opacity 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 14px 32px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--lavender); border-color: var(--lavender); transform: translateY(-2px); }
.btn-ghost { border-color: var(--accent); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }
.btn-sm { padding: 10px 24px; font-size: 0.86rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; padding: 140px 24px 90px;
  background: url("files/hero.jpg") center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,10,46,0.5) 0%, rgba(26,10,46,0.8) 60%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow { font-family: "Cinzel Decorative", serif; color: var(--accent); letter-spacing: 0.3em; font-size: 0.85rem; margin-bottom: 20px; }
.hero-title { font-family: "Cinzel Decorative", serif; font-weight: 700; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1.1; color: var(--white); margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.16rem; color: rgba(248,244,255,0.85); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pick a Card ---------- */
.pick { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.card-deck { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.card-back {
  width: 180px; height: 270px; border-radius: 14px; cursor: pointer; position: relative;
  background: linear-gradient(145deg, var(--purple), var(--bg-3));
  border: 2px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  transition: transform 0.3s, box-shadow 0.3s; color: var(--lavender);
}
.card-back::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(224,170,255,0.3); border-radius: 10px;
}
.card-back:hover { transform: translateY(-12px) rotate(-2deg); box-shadow: 0 20px 40px rgba(123,44,191,0.5); }
.card-back.flipped { opacity: 0.3; pointer-events: none; transform: scale(0.9); }
.card-star { font-size: 2.4rem; }
.card-num { font-family: "Cinzel Decorative", serif; font-size: 1.1rem; letter-spacing: 0.1em; }

.card-reveal { text-align: center; animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal-card {
  max-width: 520px; margin: 0 auto 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--rad); padding: 40px 34px;
}
.reveal-num { font-family: "Cinzel Decorative", serif; font-size: 1rem; color: var(--accent); letter-spacing: 0.2em; }
.reveal-name { font-family: "Cinzel Decorative", serif; font-size: 1.9rem; color: var(--white); margin: 10px 0; }
.reveal-keyword { font-size: 1.05rem; color: var(--lavender); font-style: italic; margin-bottom: 14px; }
.reveal-meaning { color: var(--muted); margin-bottom: 16px; }
.reveal-astro { font-size: 0.9rem; color: var(--accent); letter-spacing: 0.04em; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 34px 26px; transition: all 0.35s;
}
.service-card:hover { transform: translateY(-6px); background: var(--card-hover); border-color: var(--accent); }
.service-emoji { font-size: 2.6rem; margin-bottom: 16px; }
.service-card h3 { font-family: "Cinzel Decorative", serif; font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.service-tag { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { border-radius: var(--rad); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(transparent, rgba(26,10,46,0.9));
  font-family: "Cinzel Decorative", serif; color: var(--lavender); letter-spacing: 0.08em;
}

/* ---------- Voices ---------- */
.voices { background: var(--bg); }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); padding: 32px 28px; }
.voice-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; }
.voice-card blockquote { font-style: italic; color: var(--white); margin-bottom: 20px; font-size: 1.04rem; }
.voice-card figcaption strong { display: block; color: var(--lavender); font-weight: 600; }
.voice-card figcaption span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: radial-gradient(ellipse at center, var(--bg-3) 0%, var(--bg) 70%); }
.newsletter-inner { text-align: center; max-width: 640px; }
.newsletter-text p { color: var(--muted); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.newsletter-form input {
  flex: 1; min-width: 240px; max-width: 360px; padding: 14px 20px;
  border-radius: 30px; border: 1px solid var(--line); background: rgba(255,255,255,0.06);
  color: var(--white); font-family: inherit; font-size: 1rem;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-note { color: var(--muted); font-size: 0.88rem; }
.newsletter-note.ok { color: var(--lavender); }

/* ---------- Footer ---------- */
.site-footer { background: #130520; border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer-nav h4, .footer-contact h4 { font-family: "Cinzel Decorative", serif; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: var(--muted); transition: color 0.25s; }
.footer-nav a:hover { color: var(--white); }
.footer-contact p { color: var(--muted); margin-bottom: 8px; }
.footer-place { color: var(--accent); font-style: italic; }
.footer-base { border-top: 1px solid var(--line); padding: 20px 0; text-align: center; }
.footer-base p { color: var(--muted); font-size: 0.86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0;
    padding: 12px 0; transform: translateY(-140%); transition: transform 0.35s ease; align-items: stretch;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 13px; }
  .nav-menu .nav-cta { display: inline-block; margin: 10px auto; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .card-deck { gap: 18px; }
  .card-back { width: 130px; height: 200px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
