/* ===== Base ===== */
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; overflow-x: hidden; }
::selection { background: #D4AF37; color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F1E8; }
::-webkit-scrollbar-thumb { background: #2A5D66; border-radius: 4px; }

/* ===== Gradient blob background (replaces 3D scene) ===== */
.blob-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob-sage  { width: 520px; height: 520px; background: #8FA8A4; top: -8%;  right: -10%; animation: blob-drift-a 22s ease-in-out infinite; }
.blob-gold  { width: 420px; height: 420px; background: #D4AF37; bottom: 5%; left: -8%;  animation: blob-drift-b 26s ease-in-out infinite; opacity: 0.35; }
.blob-cream { width: 620px; height: 620px; background: #F5F1E8; top: 35%;  left: 25%;  animation: blob-drift-c 30s ease-in-out infinite; opacity: 0.55; }

@keyframes blob-drift-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-60px) scale(1.08); }
  66%      { transform: translate(-30px,30px) scale(0.95); }
}
@keyframes blob-drift-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(50px,-40px) scale(1.1); }
}
@keyframes blob-drift-c {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-40px,20px) scale(1.04); }
  66%      { transform: translate(30px,-30px) scale(0.97); }
}

/* Readability veil over the blobs */
.blob-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.45), transparent 40%, rgba(255,255,255,0.55)),
    rgba(245,241,232,0.25);
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ===== Fade-in on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Print styles (intake forms) ===== */
@media print {
  body { background: #fff !important; }
  .blob-bg, nav, footer, .print\:hidden { display: none !important; }
  main { padding: 0 !important; }
  .print-form { box-shadow: none !important; border: none !important; }
  .print-form-header { background: #fff !important; color: #000 !important; padding: 0 !important; margin-bottom: 1rem !important; border-bottom: 1px solid #000 !important; }
  input[type="text"], input[type="tel"], input[type="email"], input[type="date"], textarea {
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
  }
}

/* ===== Mobile menu open state (toggled by JS) ===== */
#mobile-menu.is-open { display: flex; }

/* ===== Email field smooth reveal (lead form) ===== */
.email-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.email-reveal.is-shown {
  max-height: 200px;
  opacity: 1;
}
