/* ==========================================================================
   Dr. Odonto Integrada — High Conversion & Clinical Craft CSS
   Design System: Clinical Opulence Clean (Hand Design 4.0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand-navy: #1F366D;
  --brand-navy-dark: #14244B;
  --brand-navy-light: #2D4C93;
  --brand-safira: #2188C8;
  --brand-cyan: #0284C7;
  --brand-cyan-light: #38BDF8;
  --brand-ice: #F0F7FF;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-light: #E2E8F0;
  --border-brand: rgba(33, 136, 200, 0.2);
  --shadow-sm: 0 2px 8px -2px rgba(31, 54, 109, 0.06);
  --shadow-md: 0 10px 30px -5px rgba(31, 54, 109, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(31, 54, 109, 0.12);
  --shadow-glow: 0 0 25px rgba(33, 136, 200, 0.35);
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

/* ==========================================================================
   01. Refined Liquid Glass Floating Navbar
   ========================================================================== */
.liquid-glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 0 0 1px rgba(226, 232, 240, 0.7),
    0 12px 36px -8px rgba(31, 54, 109, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.liquid-glass-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 
    0 0 0 1px rgba(33, 136, 200, 0.25),
    0 16px 40px -6px rgba(31, 54, 109, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.04);
}

.navbar-hidden {
  transform: translateY(-130%) !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.nav-link:hover {
  color: var(--brand-navy);
  background: rgba(33, 136, 200, 0.08);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-link.nav-link-active {
  color: var(--brand-navy);
  background: #F0F7FF;
  box-shadow: inset 0 0 0 1px rgba(33, 136, 200, 0.25);
  font-weight: 700;
}

.nav-link.nav-link-active i {
  color: var(--brand-safira);
}

/* ==========================================================================
   02. Touch Targets & Accessibility
   ========================================================================== */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

input, select, textarea {
  font-size: 16px !important; /* Prevents iOS auto-zoom */
}

/* ==========================================================================
   03. Continuous Marquee Ticker
   ========================================================================== */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   04. Modern Craft Cards & Hover Elevate
   ========================================================================== */
.craft-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.craft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 136, 200, 0.3);
}

.craft-card-glow:hover {
  box-shadow: 0 20px 40px -10px rgba(33, 136, 200, 0.18), 0 0 0 1px rgba(33, 136, 200, 0.3);
}

/* ==========================================================================
   05. Custom Pills & Badges
   ========================================================================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-brand {
  background: rgba(33, 136, 200, 0.1);
  color: var(--brand-navy);
  border: 1px solid rgba(33, 136, 200, 0.25);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   06. Accordion (FAQ)
   ========================================================================== */
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: rgba(33, 136, 200, 0.4);
  box-shadow: 0 4px 15px rgba(31, 54, 109, 0.05);
}

.faq-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 700;
  color: var(--brand-navy);
  min-height: 48px;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-body {
  max-height: 250px;
  padding-bottom: 1.25rem;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-safira);
}

/* ==========================================================================
   07. Floating Radar Pulse for WhatsApp
   ========================================================================== */
.whatsapp-radar {
  position: relative;
}

.whatsapp-radar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.35);
  animation: radar-pulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
