/* Header */
.navbar {
  background-color: #8b121b;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px;
  height: 130px;
}

.logo img {
  margin-top: 20px;
  height: 110px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background-color: white;
  transition: width 0.4s ease-in-out;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: #ffdddd;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Off-canvas styles */
@media (max-width: 999px) {
  .navbar {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    height: 80px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 80%;
    background-color: #8b121b;
    flex-direction: column;
    padding-top: 4rem;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 2000;
    overflow-x: hidden; /* previne scroll horizontal */
    touch-action: none; /* desabilita gestos de toque como drag */
    user-select: none;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
  }

  .hamburger {
    display: block;
  }
  .logo img {
    height: 70px;
  }
}
/* Fim Header */

/* Main */
.logo-geriatra img {
  max-height: 151px;
}
.hero {
  position: relative; /* para o overlay */
  display: flex;
  min-height: calc(100vh - 80px); /* ajusta conforme sua navbar+top-bar */
  background-image: url("./wp-content/uploads/2025/04/gabrielasss.png");
  background-size: cover;
  background-position: center;
  background-position-y: 20%;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem;
}

.content-section {
  display: flex;
  flex-direction: column;
  padding-left: 50px;
}

.agenda-whatsapp {
  margin-top: 20px;
}

.desktop-text-main {
  display: block;
  font-size: 1.7em;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  max-width: 500px;
}

.logo {
  width: 200px;
  margin-bottom: 1.5rem;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #14ab30;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.whatsapp-button img {
  width: 20px;
  margin-right: 8px;
}

.whatsapp-button:hover {
  background-color: #1ebe5d;
}

.mobile-text-main {
  display: none !important;
}

@media (max-width: 855px) {
  .content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    flex: 1;
  }
  .container-mobile-text-main {
    display: flex;
    width: 100%;
  }

  .mobile-text-main {
    display: block !important;
    font-size: 1.7em;
    width: 100%;
  }

  .content-section .desktop-text-main {
    display: none !important;
  }
  .content-section {
    display: flex;
    margin-top: 60px;
    width: 100%;
    justify-content: center;
    padding: 1rem;
    align-items: center;
  }
  .hero {
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-image: url("./wp-content/uploads/2025/04/outros1.png");
    z-index: 1000;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 200px;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(
      to top,
      #ffffff 20%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  .logo-geriatra img {
    margin-top: 60px;
    width: 100%;
    height: auto;
  }
}
/* Fim Main */

/* Space */

.space {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.scape-imagens {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  padding-bottom: 20px;
}

.scape-imagens img {
  width: 350px;
  height: 250px;
  object-fit: cover;
  padding-right: 20px;
}

.carrousel-img .pagelayer-slider-item {
  width: 600px;
  height: 700px;
}

@media (max-width: 1060px) {
  .scape-imagens {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .scape-imagens img {
    width: 80%;
    margin-bottom: 20px;
  }
  .pagelayer-owl-theme {
    width: 100% !important;
    display: flex;
  }
  .carrousel-img .pagelayer-slider-item {
    width: 100% !important;
    height: 850px;
  }
}

/* Fim Space */

/* Card */
.container-cards {
  width: 100%;
  height: 100%;
  padding: 10px;
}

.title-section {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  padding: 20px;
}

.title-section p {
  color: #1f2732;
  font-family: Poppins !important;
  font-size: 30px !important;
  font-style: Normal !important;
  font-weight: 800 !important;
  font-variant: Normal !important;
  text-decoration-line: None !important;
  text-decoration-style: Solid !important;
  line-height: 1em !important;
  text-transform: Uppercase !important;
  letter-spacing: 0px !important;
  word-spacing: 0px !important;
}

.title-section span {
  color: #1f2732;
  font-family: Poppins !important;
  font-size: 15px !important;
  font-style: Normal !important;
  font-weight: 400 !important;
  font-variant: Normal !important;
  text-decoration-line: None !important;
  text-decoration-style: Solid !important;
  line-height: 1.65em !important;
  letter-spacing: 0px !important;
  word-spacing: 0px !important;
}

.title-section p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  width: 360px;
  height: auto;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.toggle-btn {
  background-color: #a62e1c;
  color: #fff;
  padding: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: bold;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.toggle-btn:hover {
  background-color: #8f2818;
}

.toggle-btn span {
  margin-right: 8px;
  font-size: 18px;
}

.card-content {
  max-height: 0;
  overflow: hidden;
  padding-left: 10px !important;
  padding-right: 10px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  transition: max-height 0.6s ease, padding 0.6s ease;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card-content.open {
  max-height: 1000px;
  padding: 16px;
}

.card-content p,
.card-content ul {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #333;
}

.card-content ul {
  padding-left: 20px;
}

.card-content li {
  margin-bottom: 8px;
}

.cards-section {
  display: flex;
  flex-direction: row;
  padding-left: 50px;
  padding-right: 50px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 855px) {
  .cards-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .title-section p {
    margin-top: 50px;
  }
}

/* Fim Card */

/* Icone Zap */

.whatsapp-button-main {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 28px;
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Responsivo: pode ajustar tamanho no mobile se quiser */
@media (max-width: 480px) {
  .whatsapp-button-main {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Fim Zap Icone */
