* {
  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);
}

/* ─── INTRO ─── */

.intro-text-section {
  margin-top: 54px;
}

.intro-text-container {
  max-width: 768px;
}

.intro-text {
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.2px;
}

/* ─── ESPECIALIDADES ─── */

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

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

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

/* 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: 464px;

    color: #000;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.72px;
}

/* ─── PARTNERS SECTION ─── */

.partners-section {
  margin-top: 56px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* CARD */
.partner-card {
  aspect-ratio: 1 / 1;
  background: #F2F2F2;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* IMAGE */
.partner-card img {
  width: 72%;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* HOVER */
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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



/* ─── 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: 768px) {

  /* ─── BASE ─── */

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

  /* ─── HEADER ─── */

  .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 ─── */

  .hero-video {
    height: 320px;
  }

  /* ─── INTRO TEXTO ─── */

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

  /* ─── ESPECIALIDADES (SCROLL HORIZONTAL) ─── */

  .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;
  }

  /* ─── AGENDAMENTO ─── */

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

  .agendamento-image {
    height: 320px;
  }

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

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

  /* ─── CONSULTAS INFO ─── */

  .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;
  }

@media (max-width: 768px) {

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partner-card img {
    width: 78%;
  }
}


/* ─── 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;
}
