/* ==========================================================================
   CLÍNICA DE ODONTOLOGIA SILVA — HOSTINGER PRODUCTION CORE STYLESHEET
   100% Responsivo: Computadores, Notebooks, Tablets e Smartphones
   ========================================================================== */

:root {
  --bg-clear-canvas: #FAF8F5;
  --bg-secondary: #EFE7DD;
  --slate-text: #141414;
  --slate-subtle: #4A5568;
  --teal-accent: #0F3D3E;
  --teal-hover: #175354;
  --teal-dark: #0A2627;
  --gold-accent: #C9A227;
  --gold-subtle: #D4AF37;
  --whatsapp-green: #25D366;
  --surface-white: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --border-light: rgba(239, 231, 221, 0.9);
  --border-subtle: #E2E8F0;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1440px) {
  html {
    font-size: 17px;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-clear-canvas);
  color: var(--slate-text);
  overflow-x: hidden;
  line-height: 1.65;
}

::selection {
  background-color: var(--teal-accent);
  color: #FFFFFF;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, .font-serif, .bento-title {
  font-family: var(--font-serif);
  color: var(--slate-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.8rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.4rem, 2rem);
}

/* WebGL Shader Background */
#caustics-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
}

/* Scroll Progress Line */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-accent), var(--gold-accent), var(--teal-accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.05s ease-out;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #F8FAFC;
  color: var(--slate-text);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (min-width: 640px) {
  #preloader {
    padding: 2.5rem;
  }
}

.preloader-logo-img {
  width: 13rem;
  height: 13rem;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(15, 61, 62, 0.15));
}

@media (min-width: 640px) {
  .preloader-logo-img {
    width: 17rem;
    height: 17rem;
  }
}

/* Header & Navigation */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: padding 0.3s ease, background 0.3s ease;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  header.site-header {
    padding: 0.9rem 1.5rem;
  }
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 2.4rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 61, 62, 0.12));
}

@media (min-width: 640px) {
  .brand-logo-img {
    height: 2.75rem;
  }
}

.brand-text-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-text);
  line-height: 1;
}

.brand-text-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-accent);
  font-weight: 700;
  margin-left: 0.3rem;
}

.brand-prestige-sub {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-accent);
  display: none;
  margin-top: 0.2rem;
}

@media (min-width: 640px) {
  .brand-prestige-sub {
    display: block;
  }
}

/* Desktop Nav Links */
nav.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1200px) {
  nav.desktop-nav {
    display: flex;
  }
}

nav.desktop-nav a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.8);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

nav.desktop-nav a:hover {
  color: var(--teal-accent);
}

nav.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--teal-accent);
  transition: width 0.25s ease;
}

nav.desktop-nav a:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--slate-text);
  cursor: pointer;
  padding: 0.4rem;
}

@media (min-width: 1200px) {
  .hamburger-btn {
    display: none;
  }
}

/* Fullscreen Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-clear-canvas);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  padding-top: 5rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--slate-text);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-links a:hover {
  color: var(--teal-accent);
}

/* Buttons */
.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal-accent);
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 61, 62, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .btn-whatsapp-header {
    padding: 0.65rem 1.25rem;
    font-size: 0.78rem;
  }
}

.btn-whatsapp-header:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--teal-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 61, 62, 0.2);
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  box-shadow: 0 8px 24px rgba(15, 61, 62, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--slate-text);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--teal-accent);
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Responsive Grid System */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

.grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.75rem;
  }
  .col-span-8 { grid-column: span 8; }
  .col-span-4 { grid-column: span 4; }
  .col-span-6 { grid-column: span 6; }
  .col-span-12 { grid-column: span 12; }
}

/* Glass Bento Cards */
.glass-bento {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
  .glass-bento {
    padding: 2.25rem;
  }
}

.glass-bento:hover {
  border-color: rgba(15, 61, 62, 0.3);
  box-shadow: 0 12px 30px rgba(15, 61, 62, 0.08);
  transform: translateY(-2px);
}

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

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

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

/* Before / After Slider */
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.25rem;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
  .slider-container {
    aspect-ratio: 16 / 10;
    border-radius: 1.5rem;
  }
}

.slider-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-before-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #FFFFFF;
  left: 50%;
  z-index: 20;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--teal-accent);
  color: white;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  background-color: #FFFFFF;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.faq-header {
  width: 100%;
  padding: 1.15rem 1.25rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--slate-text);
}

.faq-body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(20, 20, 20, 0.8);
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.faq-item.active .faq-body {
  display: block;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.floating-whatsapp-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform 0.2s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
}
