/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Simple fade-up animation used in Hero */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Soft moving blobs (replaces Framer Motion rotating/scaling gradients) */
@keyframes blobA {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

@keyframes blobB {
  0% {
    transform: scale(1.2) rotate(360deg);
  }
  50% {
    transform: scale(1) rotate(180deg);
  }
  100% {
    transform: scale(1.2) rotate(0deg);
  }
}

.hero-blob-a {
  animation: blobA 20s linear infinite;
}

.hero-blob-b {
  animation: blobB 25s linear infinite;
}

/* Scroll indicator bob */
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes bobInner {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

.animate-bob {
  animation: bob 2s ease-in-out infinite;
}

.animate-bob-inner {
  animation: bobInner 2s ease-in-out infinite;
}

/* Reveal-on-scroll (replaces framer-motion whileInView) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Slight hover lift for service cards (optional) */
.service-card:hover {
  transform: translateY(-4px);
}

/* Toast animation */
.toast-card {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast-card.toast-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-card.toast-out {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

/* Date input: make the calendar icon white (Chrome/Edge/Safari) */
#intake-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.9;
  cursor: pointer;
}

/* Date input: hint browser to use a light (white) picker UI where supported */
#intake-form input[type="date"] {
  color-scheme: light;
}

.lumryx-logo-tint {
  filter: brightness(0) saturate(100%) invert(58%) sepia(29%) saturate(1934%)
    hue-rotate(222deg) brightness(101%) contrast(97%);
  opacity: 0.98;
}

/* Legal pages shared styles */
.legal-page {
  min-height: 100vh;
  background: black;
  color: white;
}

.legal-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.legal-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.legal-bg-orb-cyan {
  position: absolute;
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: rgb(6 182 212 / 0.1);
  filter: blur(64px);
}

.legal-bg-orb-purple {
  position: absolute;
  right: 25%;
  bottom: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: rgb(168 85 247 / 0.1);
  filter: blur(64px);
}

.legal-bg-orb-pink {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: rgb(236 72 153 / 0.05);
  filter: blur(64px);
  transform: translate(-50%, -50%);
}

.legal-container {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.legal-kicker {
  color: rgb(34 211 238);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.legal-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.125rem;
  background: linear-gradient(to right, #22d3ee, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .legal-title {
    font-size: 3rem;
  }
}

.legal-subtitle {
  color: rgb(156 163 175);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.legal-effective-date {
  color: rgb(107 114 128);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.legal-card {
  background: linear-gradient(to bottom right, rgb(17 24 39 / 0.9), rgb(0 0 0 / 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgb(31 41 55);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  padding: 2rem;
}

@media (min-width: 768px) {
  .legal-card {
    padding: 2.5rem;
  }
}

.legal-stack > * + * {
  margin-top: 2.5rem;
}

.legal-section-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.legal-text {
  color: rgb(209 213 219);
  line-height: 1.75rem;
}

.legal-list {
  color: rgb(209 213 219);
  line-height: 1.75rem;
  padding-left: 1.5rem;
}

.legal-list > * + * {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .nav-book-btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: nowrap;
  }
}

/* =========================
   Homepage mobile fixes
   ========================= */
@media (max-width: 767px) {
  /* NAVBAR */
  #site-nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  #site-nav .grid {
    grid-template-columns: 1fr auto;
    column-gap: 0.75rem;
  }

  #site-nav .hidden.md\:flex {
    display: none !important;
  }

  #site-nav a[aria-label="Go to home"] {
    gap: 0.5rem;
    min-width: 0;
  }

  #site-nav a[aria-label="Go to home"] img {
    width: 2.25rem;
    height: 2.25rem;
    transform: translateY(1px);
  }

  #site-nav a[aria-label="Go to home"] span {
    font-size: 1.25rem;
    line-height: 1;
  }

  #site-nav .justify-self-end a {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
  }

  /* HERO */
  section.relative.h-screen {
    min-height: 100svh;
    height: auto;
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  section.relative.h-screen .relative.z-10.max-w-5xl {
    padding-left: 1rem;
    padding-right: 1rem;
    transform: none;
  }

  section.relative.h-screen .animate-fade-up > div.flex.items-center {
    padding: 0.625rem 0.875rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  section.relative.h-screen .animate-fade-up > div.flex.items-center span {
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: center;
  }

  section.relative.h-screen h1 {
    font-size: 2.75rem;
    line-height: 1.05;
    margin-bottom: 1rem;
  }

  section.relative.h-screen h1 span.text-white {
    font-size: 2rem;
    line-height: 1.1;
  }

  section.relative.h-screen p.text-xl {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  section.relative.h-screen .flex.flex-col.sm\:flex-row {
    gap: 0.875rem;
    width: 100%;
  }

  section.relative.h-screen .flex.flex-col.sm\:flex-row > a,
  section.relative.h-screen .flex.flex-col.sm\:flex-row > button {
    width: 100%;
    max-width: 22rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  section.relative.h-screen .absolute.bottom-8 {
    bottom: 1rem;
  }
}

@media (max-width: 767px) {
  section.relative.h-screen .animate-bob {
    display: none;
  }
}