:root {
  --primary-color: #0c4a6e; /* Sky 900 */
  --secondary-color: #0284c7; /* Sky 600 */
  --accent-color: #38bdf8; /* Sky 400 */
  --text-primary: #1e293b; /* Slate 800 */
  --text-secondary: #475569; /* Slate 600 */
  --bg-light: #f8fafc; /* Slate 50 */
  --bg-dark: #0f172a; /* Slate 900 */
  --white: #ffffff;
  --whatsapp-color: #25d366;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.bg-dark .section-title h2, 
.bg-dark .section-title p {
  color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

/* Typography & Titles */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-title h2 span {
  color: var(--secondary-color);
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Top Bar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emergency-contact strong {
  font-size: 1rem;
  color: var(--accent-color);
}

.no-insurance {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  transition: var(--transition);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1; /* Pushes menu to center */
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  gap: 32px;
  flex: 2; /* takes more space to center */
  justify-content: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.fab-text {
  display: none;
}

.fab-whatsapp:hover {
  color: var(--secondary-color);
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

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

.header .btn-sm {
  flex: 1;
  max-width: fit-content;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px; /* Increased to account for taller header + top-bar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
}

.hero-content {
  max-width: 650px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--secondary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  background: rgba(2, 132, 199, 0.1);
  padding: 16px;
  border-radius: 50%;
}

.stat-item div {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.125rem;
  color: var(--text-primary);
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.alert-stat i {
  color: #ef4444; /* Red 500 */
  background: rgba(239, 68, 68, 0.1);
}

/* Grids */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-feature {
  padding: 40px 32px;
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 32px;
  flex: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon, .treatment-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
}

.card-treatment .treatment-icon {
  background: rgba(2, 132, 199, 0.1);
  color: var(--secondary-color);
  box-shadow: none;
}
.card-treatment:hover .treatment-icon {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--white);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: 30px;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 30px;
  background: var(--white);
  color: var(--text-primary);
  padding: 24px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}

.experience-badge strong {
  font-size: 3rem;
  color: var(--secondary-color);
  line-height: 1;
}

.experience-badge span {
  font-weight: 600;
  max-width: 100px;
  line-height: 1.2;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-content h2 span {
  color: var(--accent-color);
}

.about-content p {
  margin-bottom: 16px;
  font-size: 1.125rem;
  color: #94a3b8; /* Slate 400 */
}
.about-content strong {
  color: var(--white);
}

.about-content .btn {
  margin-top: 24px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-light);
  padding: 24px;
  border-radius: 20px;
}

.info-box i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 4px;
}

.info-box h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.info-box p {
  color: var(--text-secondary);
}

.map-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-align: right;
}

.footer-links a {
  color: var(--accent-color);
}

.footer-links a:hover {
  text-decoration: underline;
}

.mj-sites {
  margin-top: 10px;
  font-weight: bold;
}

/* LGPD Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--text-primary);
  color: var(--white);
  padding: 16px 0;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-container p {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0;
  flex: 1;
}

.cookie-container a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-banner .btn {
  white-space: nowrap;
}

/* FAB WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-color);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0) scale(1);
}

.fade-up { transform: translateY(50px); }
.fade-in { transform: scale(0.95); }
.slide-up { transform: translateY(80px); }
.slide-left { transform: translateX(50px); }
.slide-right { transform: translateX(-50px); }

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 3.5rem; }
  .overlay { background: rgba(255,255,255,0.85); }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; } /* Add padding for fixed bottom bar */
  .top-bar-container { flex-direction: column; gap: 8px; text-align: center; }
  .no-insurance { font-size: 0.75rem; text-align: center; }
  .nav-menu { display: none; }
  .logo, .header .btn-sm { flex: initial; }
  .header .btn-sm { padding: 10px 12px; font-size: 0.8rem; }
  .header-container { padding: 12px 16px; gap: 8px; }
  
  .hero { padding-top: 180px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.1rem; }
  
  .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  
  .card-feature { padding: 32px 24px; }
  .card-content { padding: 24px; }
  .section-title h2 { font-size: 2rem; }
  
  .about-content h2 { font-size: 2rem; }
  .experience-badge { padding: 16px 24px; bottom: 10px; right: 10px; }
  .experience-badge strong { font-size: 2rem; }
  
  .footer-content { flex-direction: column; text-align: center; gap: 24px; }
  .footer-links p { text-align: center; }
  
  .gallery-grid { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 70px; } /* Above the sticky WhatsApp bar */
  .cookie-container { flex-direction: column; text-align: center; gap: 16px; }
  
  .map-container { min-height: 300px; }

  /* Mobile Sticky Button */
  .fab-whatsapp {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 70px;
    border-radius: 0;
    font-size: 1.25rem;
    gap: 12px;
  }
  .fab-text {
    display: inline;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.25rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; width: 100%; justify-content: center; }
}
