/*
Theme Name: Lunagram Astro
Theme URI: https://lunagramastro.hu
Author: Lunagram Studio
Author URI: https://lunagramstudio.hu
Description: Custom theme for Lunagram Astro — Chinese astrology consulting.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: lunagram-astro
*/

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {
  --paper:       #fbe7e3;
  --paper-soft:  #fdeeeb;
  --blush:       #f3b6ab;
  --coral:       #cf6a5c;
  --wine:        #9c2b39;
  --wine-deep:   #7d2230;
  --gold:        #e0b84c;
  --gold-soft:   #f0d48a;
  --ink:         #3a2e2e;
  --ink-soft:    #6e5552;
  --white:       #ffffff;

  --display: "Fraunces", Georgia, serif;
  --body:    "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  32px;
  --radius-pill: 50px;

  --shadow-sm: 0 4px 16px -8px rgba(58,46,46,.18);
  --shadow-md: 0 12px 36px -16px rgba(156,43,57,.28);
  --shadow-lg: 0 24px 60px -24px rgba(156,43,57,.35);

  --max-w: 1100px;
  --pad-x: clamp(20px, 5vw, 60px);
  --section-py: clamp(70px, 10vw, 130px);
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--body);
  font-size: clamp(.97rem, 1.3vw, 1.08rem);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img, video { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
ul { list-style: none }

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 300 }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 330 }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 350 }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 400 }

h1 em, h2 em, h3 em { font-style: italic; color: var(--wine) }

p { margin-bottom: 1.1em; color: var(--ink-soft) }
p:last-child { margin-bottom: 0 }
p strong { color: var(--ink); font-weight: 700 }
p em { color: var(--wine); font-style: italic; font-weight: 500 }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.75;
}

/* =====================================================================
   LAYOUT HELPERS
   ===================================================================== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-py) var(--pad-x) }
.section-inner { max-width: var(--max-w); margin: 0 auto }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.two.flip .figure { order: -1 }

/* =====================================================================
   SECTION LABEL (same system as Studio)
   ===================================================================== */
.section-label {
  font-family: var(--body);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
  flex-shrink: 0;
}
.section-label .num { color: var(--coral); opacity: 1; font-variant-numeric: tabular-nums }
.section-label--dark  { color: var(--white) }
.section-label--center { justify-content: center }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: .97rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--wine-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  color: var(--wine);
  border: 1.5px solid var(--coral);
  background: transparent;
}
.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
}
.btn-ghost {
  color: var(--wine);
  font-weight: 600;
  gap: 6px;
}
.btn-ghost:hover { color: var(--wine-deep) }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad-x);
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-header.scrolled {
  background: rgba(251,231,227,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(156,43,57,.1);
  padding: 14px var(--pad-x);
}
/* Logo: white on hero, ink after scroll */
.site-logo {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: color .4s ease;
}
.site-logo em { font-style: italic; color: rgba(251,231,227,.85); transition: color .4s ease; }
.site-logo .logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.site-header.scrolled .site-logo { color: var(--ink); }
.site-header.scrolled .site-logo em { color: var(--wine); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
/* WP nav_menu generates ul > li > a — flatten into flex row */
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; padding: 0; }
/* Nav links: white on hero, ink after scroll */
.site-nav a,
.nav-list a {
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .02em;
  color: rgba(251,231,227,.9);
  transition: color .2s;
  text-decoration: none;
}
.site-nav a:hover,
.nav-list a:hover { color: var(--white); }
.site-header.scrolled .site-nav a,
.site-header.scrolled .nav-list a { color: var(--ink); }
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .nav-list a:hover { color: var(--wine); }
.site-nav .nav-cta,
.nav-list .nav-cta {
  background: var(--wine);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: .86rem;
  transition: background .25s ease, transform .25s ease;
}
.site-nav .nav-cta:hover,
.nav-list .nav-cta:hover { background: var(--wine-deep); transform: translateY(-2px); }

/* ── Mobile nav toggle ─────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 92;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);   /* white on transparent hero */
  transition: transform .3s ease, opacity .3s ease, background .4s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span { background: var(--ink); }
/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 91;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list a {
    display: block;
    padding: 18px 24px;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(156,43,57,.08);
  }
  .site-nav .nav-cta,
  .nav-list .nav-cta {
    margin-top: 28px;
    font-size: 1rem;
    padding: 14px 36px;
  }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2 }
.hero h1 { margin: .1em 0 .2em }
.hero h1 .line { display: block; overflow: hidden }
.hero h1 .line > span { display: block }
.hero .tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--wine);
  font-weight: 400;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center }

/* Hero fullwidth */
.hero--full {
  padding: 0;
  min-height: 100vh;
  position: relative;
}
.hero-fullbg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-fullbg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 55%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(29,14,14,.82) 0%,
    rgba(29,14,14,.75) 30%,
    rgba(29,14,14,.35) 55%,
    transparent 75%
  );
}
.hero--full .hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad-x) 80px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.hero--full .hero-text {
  max-width: 560px;
  margin-left: clamp(20px, 6vw, 100px);
}
.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(251,231,227,.88);
  line-height: 1.75;
  margin: 20px 0 36px;
  max-width: 52ch;
}
.hero--full h1 { color: var(--white) }
.hero--full .tagline { color: rgba(251,231,227,.85) }
.btn-hero-outline {
  color: var(--white);
  border: 1.5px solid rgba(251,231,227,.6);
  background: transparent;
  font-family: var(--body);
  font-weight: 600;
  font-size: .97rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .25s ease, border-color .25s ease;
}
.btn-hero-outline:hover {
  background: rgba(251,231,227,.15);
  border-color: rgba(251,231,227,.9);
}
@media (max-width: 760px) {
  .hero--full .hero-text { max-width: 100% }
}

/* Hero bg blobs */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}
.blob-1 {
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at 35% 35%, var(--blush), var(--coral));
  bottom: -20vw; right: -10vw;
  opacity: .7;
}
.blob-2 {
  width: 22vw; height: 22vw;
  max-width: 260px; max-height: 260px;
  background: radial-gradient(circle at 40% 40%, var(--gold), #d9a93f);
  top: -6vw; left: -4vw;
  opacity: .55;
}
.blob-3 {
  width: 32vw; height: 32vw;
  max-width: 380px; max-height: 380px;
  background: var(--wine);
  bottom: -14vw; left: -8vw;
  opacity: .4;
}

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonial {
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  font-family: var(--dis