/* ─── Google Fonts loaded via HTML ─────────────────────────────── */

/* ─── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'DM Sans', Inter, system-ui, sans-serif; color: #2D2D2D;
        background: #FAF8F5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
a    { text-decoration: none; }
img  { max-width: 100%; display: block; }

/* ─── Keyframes ─────────────────────────────────────────────────── */
@keyframes float      { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-14px)} }
@keyframes floatSlow  { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-10px)} }
@keyframes floatBadge { 0%,100%{transform:translateY(0) translateX(0)} 50%{transform:translateY(-8px) translateX(4px)} }
@keyframes shimmer    { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes fadeInUp   { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }

/* ─── Scroll Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px);
          transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .10s; }
.reveal-d2 { transition-delay: .20s; }
.reveal-d3 { transition-delay: .30s; }
.reveal-d4 { transition-delay: .40s; }
.reveal-d5 { transition-delay: .50s; }

/* ─── Hero entrance (runs on page load) ─────────────────────────── */
.hero-in              { animation: fadeInUp .72s cubic-bezier(.22,1,.36,1) both; }
.hero-in.d1           { animation-delay: .10s; }
.hero-in.d2           { animation-delay: .22s; }
.hero-in.d3           { animation-delay: .34s; }
.hero-in.d4           { animation-delay: .46s; }
.hero-in.d5           { animation-delay: .58s; }

/* ─── Floating ──────────────────────────────────────────────────── */
.float        { animation: float      6s ease-in-out infinite; }
.float-slow   { animation: floatSlow  9s ease-in-out infinite; }
.float-b1     { animation: floatBadge 4s ease-in-out infinite; animation-delay:.5s; }
.float-b2     { animation: floatBadge 5s ease-in-out infinite reverse; animation-delay:1s; }

/* ─── Orbs ──────────────────────────────────────────────────────── */
.orb { border-radius: 50%; filter: blur(72px); position: absolute; pointer-events: none; z-index: 0; }

/* ─── Gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #9B5EAD 0%, #C9A8D4 60%, #9B5EAD 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ─── Glass card ────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(216,191,216,.45);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: 9999px;
  background: linear-gradient(135deg,#9B5EAD,#7B3F8A);
  color: #fff; font-weight: 500; letter-spacing: .02em; font-size: .9rem;
  box-shadow: 0 8px 40px rgba(176,134,192,.28);
  transition: all .3s ease; cursor: pointer; border: none; font-family: inherit;
}
.btn-primary:hover { box-shadow: 0 20px 60px rgba(176,134,192,.38); transform: translateY(-2px) scale(1.04); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: 9999px;
  border: 2px solid #9B5EAD; color: #7B3F8A; font-weight: 500; font-size: .9rem;
  background: transparent; transition: all .3s ease; font-family: inherit; cursor: pointer;
}
.btn-outline:hover { background: #9B5EAD; color: #fff; box-shadow: 0 8px 40px rgba(176,134,192,.28); transform: translateY(-2px) scale(1.04); }

.btn-white {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.5rem; border-radius: 9999px;
  background: #fff; color: #7B3F8A; font-weight: 500; font-size: .9rem;
  box-shadow: 0 8px 40px rgba(176,134,192,.28);
  transition: all .3s ease; font-family: inherit;
}
.btn-white:hover { box-shadow: 0 20px 60px rgba(176,134,192,.38); transform: translateY(-2px) scale(1.04); }

/* ─── Navbar ────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
  padding: 1.2rem 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(176,134,192,.14);
  padding: .7rem 0;
}
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo  { display: flex; align-items: center; gap: .65rem; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#F0EBF8,#D8BFD8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(176,134,192,.25);
  flex-shrink: 0;
}
.nav-logo-text-top   { font-family:'Playfair Display',Georgia,serif; font-size:1.1rem; color:#2D2D2D; display:block; line-height:1.2; }
.nav-logo-text-sub   { font-size:10px; color:#9CA3AF; letter-spacing:.2em; text-transform:uppercase; font-family:'DM Sans',sans-serif; }
.nav-logo-accent     { color:#9B5EAD; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link  { padding: .45rem 1rem; border-radius: 9999px; font-size: .875rem; font-weight: 500;
             transition: all .2s; color: #4B5563; }
.nav-link:hover,.nav-link.active { background: rgba(230,230,250,.75); color: #7B3F8A; }

.nav-cta { }

/* Mobile nav toggle */
.hamburger { display: none; padding: .5rem; border-radius: .5rem; background: none; border: none; cursor: pointer; }
.hamburger:hover { background: rgba(230,230,250,.7); }
.hamburger svg { display: block; }
.icon-open,.icon-close { transition: opacity .2s; }
.icon-close { display: none; }
.menu-open .icon-open  { display: none; }
.menu-open .icon-close { display: block; }

/* Mobile menu */
#mobile-menu {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(216,191,216,.35);
}
#mobile-menu.open { max-height: 500px; }
.mobile-menu-inner { max-width: 1280px; margin: 0 auto; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: .5rem; }
.mobile-nav-link { display: block; padding: .75rem 1rem; border-radius: .75rem; font-weight: 500; color: #4B5563; transition: all .2s; }
.mobile-nav-link:hover,.mobile-nav-link.active { background: rgba(230,230,250,.75); color: #7B3F8A; }

/* ─── Wave divider ──────────────────────────────────────────────── */
.wave { overflow: hidden; line-height: 0; }

/* ─── Section helpers ───────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ─── Eyebrow ───────────────────────────────────────────────────── */
.eyebrow { color: #9B5EAD; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; }

/* ─── Section title ─────────────────────────────────────────────── */
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: #2D2D2D; }
.hero-title    { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.08; color: #2D2D2D; }
.section-sub   { color: #6B7280; font-size: 1.05rem; line-height: 1.75; max-width: 38rem; }

/* ─── Service card ──────────────────────────────────────────────── */
.service-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 48px rgba(176,134,192,.22); border-color: rgba(201,168,212,.7); }

/* ─── Check icon accent ─────────────────────────────────────────── */
.check-icon { color: #9B5EAD; flex-shrink: 0; margin-top: 2px; }

/* ─── Testimonial stars ─────────────────────────────────────────── */
.stars { color: #FBBF24; letter-spacing: 1px; }

/* ─── Timeline ──────────────────────────────────────────────────── */
.timeline-line { position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: rgba(155,94,173,.25); }
.timeline-dot  { width: 15px; height: 15px; border-radius: 50%; background: #9B5EAD;
                 border: 3px solid #F0EBF8; box-shadow: 0 2px 8px rgba(155,94,173,.4);
                 flex-shrink: 0; margin-top: 4px; }

/* ─── FAQ ───────────────────────────────────────────────────────── */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s ease; padding: 0 1.75rem; }
.faq-answer.open { max-height: 250px; padding-bottom: 1.25rem; }
.faq-icon { transition: transform .3s ease; display: inline-flex; line-height: 1; font-size: 1.4rem; color: #9B5EAD; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ─── Hero card ─────────────────────────────────────────────────── */
.hero-card {
  width: 380px; height: 480px; border-radius: 2.5rem;
  background: linear-gradient(160deg,#e8dfef 0%,#d4b8d8 50%,#c9a8d4 100%);
  box-shadow: 0 24px 72px rgba(176,134,192,.38);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-card-inner { text-align: center; color: rgba(91,46,105,.35); padding: 2rem; }
.hero-card-ring-1 { position:absolute; top:2rem; right:2rem; width:80px; height:80px; border-radius:50%; border:2px solid rgba(155,94,173,.25); }
.hero-card-ring-2 { position:absolute; bottom:3rem; left:2.5rem; width:55px; height:55px; border-radius:50%; border:1px solid rgba(155,94,173,.18); }
.hero-card-dot    { position:absolute; top:38%; left:1.5rem; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.22); }

/* ─── Floating badge ────────────────────────────────────────────── */
.floating-badge { position: absolute; z-index: 10; }

/* ─── CTA gradient bg ───────────────────────────────────────────── */
.cta-bg { background: linear-gradient(135deg,#9B5EAD,#7B3F8A); }

/* ─── Footer ────────────────────────────────────────────────────── */
footer { background: #2D2D2D; }
.footer-link { color: rgba(255,255,255,.5); font-size: .875rem; transition: color .2s; }
.footer-link:hover { color: #D8BFD8; }
.footer-social { width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.2);
                 display:flex; align-items:center; justify-content:center;
                 color:rgba(255,255,255,.55); transition:all .2s; }
.footer-social:hover { border-color:#D8BFD8; color:#D8BFD8; }

/* ─── Page hero ─────────────────────────────────────────────────── */
.page-hero { background: linear-gradient(180deg,#fefcff 0%,#f4eef9 100%); }
.lavender-grad-bg { background: linear-gradient(135deg,#F0EBF8 0%,#E6E6FA 50%,#D8BFD8 100%); }

/* ─── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f9f7ff; }
::-webkit-scrollbar-thumb { background: #D8BFD8; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #B086C0; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }

  /* Spacing */
  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }

  /* Typography */
  .hero-title    { font-size: 2.1rem; line-height: 1.12; }
  .section-title { font-size: 1.75rem; }
  .section-sub   { font-size: .92rem; max-width: 100%; }

  /* Hide desktop hero image column */
  .hero-card-wrap { display: none; }

  /* Hero section — don't force full viewport height on mobile */
  .hero-main { min-height: auto !important; padding-top: 5.5rem !important; padding-bottom: 2.5rem !important; }

  /* Stack any 1fr 1fr or 3fr 2fr grid to single column */
  .mob-stack {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Hero stat strip — remove left borders when items wrap */
  .hero-stat { border-left: none !important; padding-left: 0 !important; padding-right: 0 !important; }

  /* Page hero sections — tighten padding */
  .page-hero { padding-top: 7rem !important; padding-bottom: 3rem !important; }

  /* Calendly widget — reduce height on mobile */
  .calendly-inline-widget { height: 580px !important; }

  /* Services page standalone card — remove fixed max-width */
  .services-solo { max-width: 100% !important; }

  /* About page CTA banner */
  .about-cta { padding: 2.5rem 1.5rem !important; }
}

@media (max-width: 640px) {
  .btn-primary, .btn-outline, .btn-white { padding: .8rem 1.4rem; font-size: .85rem; }

  /* Footer bottom bar — stack on very small screens */
  .footer-bottom { flex-direction: column; text-align: center; gap: .75rem; }
}
