/* =========================================================
   Odontoclinic Londrina — Global Styles & Custom Utilities
   ========================================================= */

:root {
  --primary: #0E4C5C;      /* azul-petróleo */
  --primary-light: #7FC4C6;/* verde-água */
  --secondary: #F7F4EF;    /* off-white quente */
  --accent: #E8935E;       /* coral dourado */
  --ink: #2B2F33;          /* grafite */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--secondary);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-serif { font-family: 'Fraunces', 'Playfair Display', Georgia, serif; }

/* ---------- Layered premium shadow ---------- */
.shadow-layered {
  box-shadow:
    rgba(14, 63, 126, 0.04) 0px 0px 0px 1px,
    rgba(42, 51, 69,  0.04) 0px 1px 1px -0.5px,
    rgba(42, 51, 70,  0.04) 0px 3px 3px -1.5px,
    rgba(42, 51, 70,  0.04) 0px 6px 6px -3px,
    rgba(14, 63, 126, 0.04) 0px 12px 12px -6px,
    rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}
.shadow-layered-strong {
  box-shadow:
    rgba(14, 63, 126, 0.06) 0px 0px 0px 1px,
    rgba(42, 51, 70,  0.06) 0px 3px 3px -1.5px,
    rgba(42, 51, 70,  0.06) 0px 6px 6px -3px,
    rgba(14, 63, 126, 0.08) 0px 12px 12px -6px,
    rgba(14, 63, 126, 0.10) 0px 24px 24px -12px,
    rgba(14, 63, 126, 0.10) 0px 48px 48px -24px;
}

/* ---------- Text blur-in ---------- */
@keyframes blur-in {
  0%   { filter: blur(12px); opacity: 0; transform: translateY(8px); }
  100% { filter: blur(0);    opacity: 1; transform: translateY(0);   }
}
.animate-blur-in {
  opacity: 0;
  animation: blur-in 0.8s ease-out forwards;
}

/* Hero runs immediately (above the fold) */
.hero-blur { opacity: 0; animation: blur-in 0.9s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ---------- Scroll reveal (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.8s ease-out;
  filter: blur(6px);
}
.reveal.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* ---------- Navbar entry ---------- */
@keyframes nav-in {
  0%   { opacity: 0; transform: translate(-50%, -12px) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.nav-enter { animation: nav-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ---------- Testimonial auto-scroll ---------- */
@keyframes scroll-down {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
@keyframes scroll-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.animate-scroll-down { animation: scroll-down 34s linear infinite; }
.animate-scroll-up   { animation: scroll-up 34s linear infinite; }
.testi-col:hover .animate-scroll-down,
.testi-col:hover .animate-scroll-up { animation-play-state: paused; }

/* ---------- Scroll indicator ---------- */
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0.3; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}
.animate-scroll-line { animation: scroll-line 2.2s ease-in-out infinite; }

/* ---------- Utility ---------- */
.text-balance { text-wrap: balance; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Fade for treatment card crossfade */
.grid-fade { transition: opacity 0.3s ease-out; }
.grid-fade.fading { opacity: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   Navbar Fixes for Production Build compatibility
   ========================================================= */

.nav-scrolled {
  background-color: rgba(247, 244, 239, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.nav-not-scrolled {
  background-color: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

.bg-navbar-mobile {
  background-color: rgba(247, 244, 239, 0.92) !important;
}
