/* Reset e Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
}

h2 {
  font-size: 2rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container e Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* Header */
.header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-top {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 0.9rem;
}

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

.contact-info {
  display: flex;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.8;
}

.header-main {
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.nav {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #B8295A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/banners/hero-bg.jpg') center/cover;
  opacity: 0.1;
  z-index: -1;
}

.hero h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.4s both;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: var(--bg-primary);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-alpha-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 20px;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

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

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
  color: #CCCCCC;
  margin-bottom: 10px;
  display: block;       /* Faz cada link ocupar uma linha */
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary-color);
  text-decoration: underline; /* efeito ao passar o mouse */
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #999;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }


/* Procedures Section */
.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.procedure-category h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-alpha-light);
}

.procedure-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.procedure-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.procedure-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.procedure-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.procedure-content h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.procedure-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background-color: var(--bg-primary);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 15px 10px;
  border-radius: 8px;
  min-width: 60px;
  height: fit-content;
}

.news-date .day {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.news-date .month {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.news-content {
  flex: 1;
}

.news-content h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--primary-dark);
}

.featured-article {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 40px;
  border-radius: 15px;
  margin-top: 30px;
}

.featured-content h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.featured-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Team Section */
.team-intro {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.doctor-card {
  background-color: var(--bg-primary);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.doctor-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-alpha-light);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--primary-alpha-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
}

.doctor-info h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.doctor-crm {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.doctor-specialty {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
}

.contact-card {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
}

.contact-card h4 {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Location Section */
.location-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.location-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.location-features {
  margin-top: 30px;
}

.location-features h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.feature-content h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-info-card {
  background-color: var(--bg-primary);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  height: fit-content;
}

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.contact-item a {
  color: var(--primary-color);
  font-weight: 500;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.map-container {
  margin-top: 40px;
}

.map-placeholder {
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border-medium);
  border-radius: 10px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.map-placeholder p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.map-placeholder small {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Interactive Elements and Final Optimizations */

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: var(--shadow-strong);
}

.whatsapp-float.pulse {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Header Scroll Effects */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
}

.header.hidden {
  transform: translateY(-100%);
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--bg-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
  z-index: 10000;
  transform: translateX(450px);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left-color: var(--success-color);
}

.notification-error {
  border-left-color: var(--error-color);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.notification-content i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.notification-success .notification-content i {
  color: var(--success-color);
}

.notification-error .notification-content i {
  color: var(--error-color);
}

.notification-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: var(--text-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-alpha-light);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--error-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-alpha-light);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus,
.card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F0F0F0;
    --primary-color: #0066CC;
    --primary-dark: #004499;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Optimizations */
@media print {
  .header-top,
  .scroll-to-top,
  .whatsapp-float,
  .notification,
  .btn {
    display: none !important;
  }
  
  .hero {
    background: none !important;
    color: #000 !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .card,
  .doctor-card,
  .news-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* Performance Optimizations */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Image optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth scrolling for supported browsers */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

/* CSS Grid fallback for older browsers */
@supports not (display: grid) {
  .cards-grid,
  .team-grid,
  .news-grid,
  .procedures-grid,
  .insurance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .card,
  .doctor-card,
  .news-card,
  .procedure-category,
  .insurance-category {
    flex: 1 1 300px;
  }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
  .header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-dark);
  }
  
  .card,
  .doctor-card,
  .news-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-dark);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .card,
  .doctor-card {
    min-height: 44px; /* Minimum touch target size */
  }
  
  .nav a {
    padding: 15px 10px; /* Larger touch targets */
  }
}

/* Large screen optimizations */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
  
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .section-title h2 {
    font-size: 3.5rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 2000px) {
  .container {
    max-width: 1600px;
  }
}

/* Hover effects for desktop */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .card:hover,
  .doctor-card:hover,
  .news-card:hover {
    transform: translateY(-5px);
  }
  
  .nav a:hover::after {
    width: 100%;
  }
}

/* Animation performance optimization */
.animate-on-scroll,
.reveal,
.stagger-item {
  will-change: transform, opacity;
}

/* Ensure proper stacking context */
.header {
  z-index: 1000;
}

.modal {
  z-index: 9999;
}

.notification {
  z-index: 10000;
}

.whatsapp-float,
.scroll-to-top {
  z-index: 1000;
}

.phone-link {
  color: var(--text-light); /* ou var(--primary-color), conforme o fundo */
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: var(--accent-color); /* muda levemente no hover */
}

.map-container { margin-top: 20px; }

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-actions {
  margin-top: 12px;
  text-align: right;
}

/* Layout só deste hero: texto | imagem no desktop (mobile continua empilhado) */
.hero .container {
  display: grid;
  grid-template-columns: 1fr;            /* mobile */
  gap: 32px;
}
@media (min-width: 992px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;  /* texto | imagem */
    align-items: center;
  }
}

/* Imagem com fade/transparência lateral como na referência */
.hero .hero-image { position: relative; }
.hero .hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;

  /* máscara que “some” para a esquerda (efeito de fade) */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to left, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);

  opacity: 0.96; /* leve suavização; ajuste se quiser mais/menos */
}

/* Fallback para navegadores sem suporte a mask-image */
@supports not ((-webkit-mask-image: linear-gradient(#000,#000)) or (mask-image: linear-gradient(#000,#000))) {
  .hero .hero-image::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to left, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 28%);
    pointer-events: none;
  }
}

/* ======================
   Ajuste dos botões do Hero
====================== */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* afasta os botões */
  margin-top: 20px;
}

/* Botão principal (Agende sua Consulta) */
.hero-buttons .cta-button {
  background-color: #ffffff; /* fundo branco */
  color: #000000; /* texto preto */
  border: 2px solid #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-buttons .cta-button:hover {
  background-color: transparent;
  color: #ffffff; /* inverte ao passar o mouse */
  border-color: #ffffff;
}

/* Botão secundário (Conheça Nossos Serviços) */
.hero-buttons .secondary-button {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-buttons .secondary-button:hover {
  background-color: #ffffff;
  color: #000000;
}

/* .logo img {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
} */

/* Tamanho e alinhamento da logo no header */
.logo img {
  height: 60px;          /* ajuste fino do tamanho da logo */
  width: auto;
  display: block;
}

/* Garante espaçamento e alinhamento do header */
.header-main .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Em telas menores, dá um respiro extra */
@media (max-width: 768px) {
  .logo img { height: 42px; }
}

/* Dropdown */
.nav .dropdown {
    position: relative;
}

.nav .dropbtn {
    cursor: pointer;
}

.nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
}

.nav .dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.nav .dropdown-content a:hover {
    background-color: #f1f1f1;
}

.nav .dropdown:hover .dropdown-content {
    display: block;
}

/* Sub-dropdown dentro do dropdown principal */
.nav .dropdown-content .sub-dropdown {
    position: relative;
}

.nav .dropdown-content .sub-dropdown .dropdown-content {
    left: 100%;
    top: 0;
    display: none;
    position: absolute;
}

.nav .dropdown-content .sub-dropdown:hover .dropdown-content {
    display: block;
}

/* Card com imagem de fundo */
.card.bg-card {
    position: relative;
    background-size: cover;       /* cobre todo o card */
    background-position: center;  /* centraliza a imagem */
    color: #fff;                  /* texto branco */
    overflow: hidden;
}

/* Overlay para deixar o texto legível */
.card.bg-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(238, 236, 236, 0.4); /* escurece levemente a imagem */
    z-index: 0;
}

/* Conteúdo do card sobre a imagem */
.card.bg-card h3,
.card.bg-card p,
.card.bg-card a {
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.card.bg-card p {
    color: #000000; /* texto preto */
    font-weight: 500; /* opcional: deixa mais destacado */
}

/* Ajustes visuais do botão sobre a imagem */
.card.bg-card a.btn-outline {
    border-color: #fff;
    color: #fff;
}
.card.bg-card a.btn-outline:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: #fff;
}

.service-detail h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-detail .section-content {
    margin-left: 20px; /* recuo do conteúdo */
    margin-bottom: 1.5rem;
}

.service-detail .section-content ul {
    padding-left: 20px; /* bullets alinhados com o recuo */
}

/* =================================== */
/* Insurance Section (Planos de Saúde) */
/* =================================== */

.insurance-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Duas colunas em desktop */
    gap: 40px;
    margin-bottom: 40px;
}

.insurance-category h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-alpha-light);
}

.insurance-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.insurance-item i {
    color: var(--success-color, #28a745); /* Cor de sucesso para o ícone */
    font-size: 1.2rem;
}

.insurance-contact {
    display: flex;
    justify-content: center;
    text-align: center;
}

.insurance-contact .contact-card {
    max-width: 600px; /* Um pouco maior */
    padding: 30px 40px;
}

/* =================================== */
/* Insurance Section (Planos de Saúde) */
/* =================================== */

.insurance-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ESTILO DO "RETÂNGULO FLUTUANTE" */
.insurance-category {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.insurance-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.insurance-category h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary);
}

.insurance-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.insurance-item i {
    color: var(--success-color, #28a745);
    font-size: 1.2rem;
}

.insurance-contact {
    display: flex;
    justify-content: center;
    text-align: center;
}

.insurance-contact .contact-card {
    max-width: 600px;
    padding: 30px 40px;
}
