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

html, body {
  height: 100%;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
}

body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* ─── LAYOUT BASE ─── */

.page-wrapper {
  margin: 0 56px;
  padding-top: 32px;
  min-height: 100vh;
}

.lang-bar {
  width: 100%;
  text-align: right;
  padding: 8px 20px;
  font-size: 14px;
}

.lang-link {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.lang-link:hover {
  opacity: 0.6;
}


/* ─── HEADER ─── */

.header-bar {
  height: 64px;
  background: #F2F2F2;
  border-radius: 16px;
  width: 100%;
  padding: 0 16px;
  margin-bottom: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-link {
  color: #000;
  font-size: 16px;
  letter-spacing: -0.48px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.logo {
  height: 42px;
  max-width: 220px;
  display: block;
}

.btn-consulta {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 16px;
  background: #329154;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.48px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-consulta:hover {
  background: #2a7a45;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 145, 84, 0.25);
}

/* ─── PAGE LABEL ─── */

.page-label {
  margin-top: 32px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid #329154;
  background: #FFFFFF;
  color: #329154;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.48px;
}

/* ─── TITLE ─── */

.cpi-title {
  margin-top: 24px;
  margin-bottom: 0;
  color: #000;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -1.2px;
}

/* ─── SUBTITLE ─── */

.cpi-subtitle {
  margin-top: 16px;
  width: 575px;
  color: #000;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.72px;
}

/* ─── TEAM SECTION ─── */

.team-section {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.team-section .column {
  flex: 1;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
}

.team-section .text-column {
  background-color: #f2f2f2;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  color: #000;
}

.team-section .text-column p {
  margin: 0;
}

.team-section .highlight-column {
  background-color: #329154;
  color: #ffffff;
}

.team-section .text-col-1 p {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
}

.team-section .text-col-2 p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.team-section .text-col-2 .semibold {
  font-weight: 600;
  display: inline-block;
  font-size: 24px;
}

.team-section .image-column {
  background-size: cover;
  background-position: center;
}

/* ─── MAP ─── */

.map-column iframe {
  width: 100%;
  height: 100%;
}

/* ─── CONTACT SECTION ─── */

.contact-title {
  font-family: "DM Sans";
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.contact-description {
  font-family: "DM Sans";
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.72px;
}

/* ─── ESPECIALIDADES ─── */

.especialidades-bar {
  height: 64px;
  background: #f2f2f2;
  border-radius: 16px;
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.especialidades-text {
  color: #329154;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.cpi-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── FOOTER ─── */

.footer {
  height: 160px;
  background-color: #329154;
  border-radius: 16px 16px 0 0;
  margin-top: 56px;
  position: relative;
  display: flex;
}

.footer-column {
  flex: 1;
}

.footer-column p {
  position: absolute;
  bottom: 24px;
  color: #FFF;
    font-size: 12px;
}

.footer-column.left p {
  left: 24px;
  text-align: left;
}

.footer-column.right p {
  right: 24px;
  text-align: right;
}

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

.footer-column.center img {
  width: 100px;
}

/* ────────────────────────────────────────── RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 900px) {
  .team-section {
    flex-direction: column;
  }

  .team-section .column {
    height: auto;
    min-height: 280px;
  }

  .contact-section {
    flex-direction: column;
  }

  .contact-section .column {
    height: auto;
    min-height: 280px;
  }

  .map-column iframe {
    height: auto;
  }
}

@media (max-width: 768px) {

  .page-wrapper {
    margin: 0 16px;
    padding-top: 16px;
  }

  .header-bar {
    height: 56px;
    border-radius: 12px;
    padding: 0 12px;
  }

  .logo-center {
    position: static;
    transform: none;
    pointer-events: auto;
  }

  .logo {
    height: 36px;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

  .btn-consulta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #F2F2F2;
    border-radius: 16px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 12px;
    font-size: 16px;
  }

  .hero-video {
    height: 320px;
  }

  .intro-text {
    font-size: 28px;
    line-height: 36px;
  }

  .especialidades-bar {
    padding: 0 16px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .especialidades-text {
    font-size: 16px;
    white-space: nowrap;
  }

  .especialidades-bar::-webkit-scrollbar {
    display: none;
  }

  .especialidades-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .stats-container {
    flex-direction: column;
    gap: 16px;
  }

  .stat-card {
    width: 100%;
    height: 200px;
  }

  .stat-number {
    font-size: 72px;
  }

  .stat-label {
    font-size: 18px;
  }

  .agendamento-container {
    flex-direction: column;
    gap: 24px;
  }

  .agendamento-image {
    height: 320px;
  }

  .agendamento-box {
    width: 100%;
    padding: 24px;
    height: 200px;
  }

  .agendamento-line1,
  .consulta-link,
  .agendamento-arrow {
    font-size: 28px;
    line-height: 32px;
  }

  .consultas-container {
    flex-direction: column;
    gap: 24px;
  }

  .consultas-text-left,
  .consultas-text-right {
    width: 100%;
    margin-left: 0;
  }

  .consultas-paragraph {
    font-size: 18px;
    line-height: 30px;
  }

  /* ─── FOOTER (MOBILE) ─── */

.footer {
  margin: 32px 16px;
  height: auto;
  padding: 32px 16px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Cada coluna */
.footer-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Texto */
.footer-column p {
  position: static;
  text-align: center;
  width: 100%;
  font-size: 12px;
  line-height: 16px;
}

/* ORDEM NO MOBILE */
.footer-column:nth-child(2) {
  order: 1;
}
.footer-column:nth-child(1) {
  order: 2;
}
.footer-column:nth-child(3) {
  order: 3;
}