/* =========================================================================
   SaaS-Style Reset & Variables
   ========================================================================= */
:root {
  /* Colors */
  --primary: #0041A2;
  --secondary: #19B8DD;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5c;

  --bg-white: #ffffff;
  --bg-offwhite: #f8fafc;
  /* Lighter, cleaner gray */
  --bg-dark: #0f172a;

  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border-light: #e2e8f0;

  /* Typography */
  --font-main: "museo", serif;

  /* Shadows & Borders */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 30, 80, 0.08);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
strong {
  font-weight: 700;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

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

.tag {
  display: inline-block;
  background-color: rgba(25, 184, 221, 0.1);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: #003388;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 65, 162, 0.2);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--bg-white);
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-offwhite);
  border-color: var(--primary);
  color: var(--primary);
}

.block-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: transparent;
}

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

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.desktop-nav ul {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  font-weight: 700;
  color: var(--text-gray);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}

/* =========================================================================
   Hero Slider Section
   ========================================================================= */
.hero {
  padding: 140px 0 80px 0;
  /* offset header plus breathing room */
}

.hero-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.hero-header h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-header h1 span {
  color: var(--secondary);
}

.hero-header p {
  font-size: 1.25rem;
  color: var(--text-gray);
}

.slider-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.slider-container {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 500px;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-white);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.slider-btn:hover {
  background: var(--white);
  color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 24px;
}

.next-btn {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: var(--bg-white);
  transform: scale(1.2);
}

/* =========================================================================
   About
   ========================================================================= */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-gray);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.about-text .lead-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-features i {
  color: var(--secondary);
  font-size: 1.5rem;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

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

.experience-badge .text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* =========================================================================
   Staff
   ========================================================================= */
.staff-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.doctor-card-horizontal {
  display: flex;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.doctor-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 184, 221, 0.3);
}

.doc-image {
  width: 320px;
  flex-shrink: 0;
  position: relative;
}

.doc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.doc-header h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.doc-header .role {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.1rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.badge {
  background-color: var(--bg-offwhite);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
}

.doc-content .bio {
  color: var(--text-gray);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 24px;
  flex: 1;
}

.doc-content .specialties {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.doc-content .specialties strong {
  color: var(--primary);
}

/* =========================================================================
   Services / Exams
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 16px;
  font-weight: 200;
  transition: var(--transition);
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card .subtext {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 184, 221, 0.4);
}

.service-card:hover i {
  transform: scale(1.1);
  color: var(--primary);
}

.highlight-card {
  background-color: var(--primary);
  border-color: var(--primary);
}

.highlight-card h4 {
  color: var(--bg-white);
}

.highlight-card i {
  color: var(--secondary);
}

.highlight-card:hover {
  background-color: #003388;
}

/* =========================================================================
   Contact & Location
   ========================================================================= */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.contact-info-block h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-info-block .subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.icon-box {
  background-color: var(--bg-white);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-item span {
  color: var(--text-gray);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-map-block {
  height: 600px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-white);
}

/* =========================================================================
   Footer
   ========================================================================= */
.main-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}
.footer-logo-82 {
  height: 22px; /* Reduz consideravelmente o tamanho da logo */
  width: auto;
  filter: brightness(0) invert(1);
  display: inline-block; /* Permite que a imagem fique na mesma linha do texto */
  vertical-align: middle; /* Centraliza a logo com a altura do texto */
  margin-bottom: 0; /* Remove a margem inferior de 24px que existia antes */
  margin-left: 8px; /* Adiciona um pequeno respiro entre a palavra "por" e a logo */
  margin-top: -3px; /* Ajuste fino opcional para alinhar o centro visual da logo com a fonte */
}

.footer-brand p {
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.8;
}

.footer-nav h4,
.footer-contact-info h4 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-info i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
}

.agency-link {
  color: var(--bg-white);
}

.agency-link:hover {
  color: var(--secondary);
}

/* =========================================================================
   Floating WhatsApp
   ========================================================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background-color: var(--whatsapp);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-hover);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {

  .about-container,
  .contact-split {
    gap: 40px;
  }

  .experience-badge {
    left: -10px;
    bottom: -10px;
    padding: 20px;
  }

  .doctor-card-horizontal {
    flex-direction: column;
  }

  .doc-image {
    width: 100%;
    height: 350px;
  }

  .doc-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .credentials {
    align-items: flex-start;
    flex-direction: row;
  }
}

@media (max-width: 900px) {
  .hero-header h1 {
    font-size: 2.8rem;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 40px;
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-map-block {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .header-btn,
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 60px 0;
  }

  .slider-container {
    aspect-ratio: 16 / 9;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-header h1 {
    font-size: 2.2rem;
  }

  .hero-header p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .slider-container {
    aspect-ratio: 4 / 3;
  }

  .doc-content {
    padding: 24px;
  }

  .doc-header h3 {
    font-size: 1.5rem;
  }
}