@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #333;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: center; /* Center logo */
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: relative; /* For menu toggle */
}
.logo-area span {
  font-size: 18px;
  color: #8e2556;
  font-weight: bold;
  
  display: flex;
  align-items: center;
  padding-left: 30px;
  border-left: 1px solid #651c39;

  height: 70px;
}


.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  height: 70px;
    padding-right: 25px;

}

.logo-area #typed-text {
  font-size: 25px;
  color: #651c39;
  font-weight: bold;
  display: inline-block; /* Ensure it behaves like text */
  padding-left: 30px;
  border-left: 1px solid #651c39;
  height: 70px; /* Restore height for consistent alignment */
  line-height: 70px; /* Vertically align text if height is applied */
}

#cursor {
  font-size: 25px;
  color: #651c39;
  font-weight: bold;
  animation: blink 0.7s infinite;
  display: inline-block; /* Ensure it stays with the text */
  height: 70px; /* Match height for consistent alignment */
  line-height: 70px; /* Vertically align cursor if height is applied */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


.menu-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
}

nav {
  position: fixed;
  top: 0;
  width: 280px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  color: #444;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 1000;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

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


.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: #444;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: black;
}

nav a {
  color: #444;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #8e2556;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #8e2556;
}

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


nav a.rsul:hover {
  color: #2EA64C;
}

nav a.rsul::after {
  background: #2EA64C;
}

.clinicas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
}

.clinica {
  flex: 1 1 calc(33.333%);
  height: 600px;
  background-size: 300% auto;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
}

.clinica-1 { background-position: 0% 15%; }
.clinica-2 { background-position: 50% 15%; }
.clinica-3 { background-position: 100% 15%; }

.clinica-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  transition: background 0.6s ease;
}

/* Animação do card ativo */
.clinica.card-active .clinica-overlay {
  background: rgba(0,0,0,0.15);
}

.clinica.card-active {
  animation: card-pulse 0.6s ease-out;
}

@keyframes card-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.clinica {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.clinica.card-active .clinica-content h2 {
  animation: text-glow 1.5s ease-in-out infinite alternate;
}

@keyframes text-glow {
  0% { text-shadow: 0 0 5px rgba(255,255,255,0.3); }
  100% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(142,37,86,0.4); }
}

.clinica-content {
  position: relative;
  z-index: 2;
}

.clinica h2 {
  margin-bottom: 100px;
  font-size: 34px;
  text-transform: uppercase;
}

.clinica {
  border-left: 1px solid #fff;
}

.btn {
  display: block;
  margin: 10px auto;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  width: 200px;
  text-align: center;
  transition: 0.3s;
}

.btn-transparent {
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 10px 20px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.btn-transparent::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background:rgba(255,255,255,0.2);
  transition: top 0.4s ease;
  z-index: 0;
}

.btn-transparent:hover::before {
  top: 0;
}

.btn-transparent i,
.btn-transparent span,
.btn-transparent {
  position: relative;
  z-index: 1;
}

.btn-roxo {
  background: #8e2556;
  color: #fff;
  border: none;
}

.btn-roxo:hover {
  opacity: 0.8;
}

.btn-verde {
background-color: #2EA64C;
color: #fff;
  border: none;
}
.btn-verde:hover {
  opacity: 0.8;
}

.footer {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  white-space: nowrap;
}


/* Styles for the container holding rotating items */
.footer-items-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin: 0 10px; /* Small margin left and right to provide "respiro" */
  flex-grow: 0; /* Do not allow it to take available space */
  white-space: nowrap;
}

.footer-item {
  display: none; /* Hidden by default */
  font-size: 18px;
  flex-direction: row; 
  align-items: center; /* Center items horizontally within the column */
  gap: 15px; /* Small gap between lines like address, phone, whatsapp */
  text-align: center; /* Ensure text itself is centered if it wraps */
  padding: 5px 10px; /* Add padding around the entire content block */
  white-space: nowrap; /* Prevent the entire item from wrapping. Individual links might still wrap if too long. */
}

.footer-item a {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit color from parent */
    white-space: nowrap;
}

.footer-item a:hover {
    text-decoration: underline; /* Add underline on hover for links */
}

.footer-item.active {
  display: flex; /* Only active item is displayed as flex */
  width: auto; /* Allow content to define width */
  min-width: 250px; /* Give it a minimum width to look good */
  white-space: nowrap;
}

.arrow {
  position: static; /* Remove absolute positioning, respect flex flow */
  transform: none; /* Remove transform */
  flex-shrink: 0; /* Prevent arrows from shrinking */
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  color: #444;
  background: rgba(255,255,255,0.7);
  padding: 5px 10px;
  border-radius: 50%;
  z-index: 10;
}

.arrow.left {
  margin-right: 5px; /* Add margin to the left arrow for "respiro" */
}
.arrow.right {
  margin-left: 5px; /* Add margin to the right arrow for "respiro" */
}

.footer-bottom {
  background-color: #e0e0e0; /* Light gray background */
  margin-top: auto;
  color: #ffffff; /* Vinho text color */
font-family: "Roboto", sans-serif !important;
}

.footer-bottom a {
  text-decoration: none; /* Remove text decoration from links */
  color: #ffffff; /* Ensure links are also vinho */
}



/* Custom styling for footer-bottom content layout */

.footer-bottom .row {

  display: flex;

  align-items: center; /* Vertically center content */

  justify-content: space-between; /* Push content to edges */

  width: 100%; /* Ensure row takes full width */

  padding: 10px 15px; /* Add some padding to the row itself */
font-family: "Roboto", sans-serif !important;
}



.footer-bottom .row > div {

  flex-basis: auto; /* Allow content to dictate size initially */

  flex-grow: 0; /* Prevent items from growing unnecessarily */

  flex-shrink: 0; /* Prevent items from shrinking */

  white-space: nowrap; /* Keep content on one line if possible */

  /* Remove default Bootstrap padding if any from .col classes */

}



.footer-bottom .row > div:first-child {

  text-align: left;

}



.footer-bottom .row > div:last-child {







  text-align: right;







  margin-left: auto; /* Explicitly push to the right */







}















/* Media queries for arrows (if needed for responsiveness) */



@media (max-width: 768px) {



  .logo-area {



    flex-direction: column; /* Stack logo and text vertically */



    gap: 8px; /* Reduced gap */



  }







  .logo-area img {



    padding-right: 0; /* Remove padding for column layout */



  }







  .logo-area span,



  .logo-area #typed-text,



  #cursor {



    border-left: none; /* Remove border for column layout */



    padding-left: 0; /* Remove padding for column layout */



    text-align: center; /* Center text in column layout */



  }







  .clinicas {



    flex-direction: column; /* Stack clinic containers vertically */



  }







  body {
    padding-top: 10px;
  }

  header {
    padding: 10px 15px;
    border-bottom: none;
  }

  .clinica {
    flex: 1 1 100%;
    margin-bottom: 0;
    min-height: 300px;
    background-size: auto 300% !important;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .clinica-1 { background-position: 35% 0% !important; }
  .clinica-2 { background-position: 35% 50% !important; }
  .clinica-3 { background-position: 35% 100% !important; }







  .clinica-content {



    display: flex;



    flex-direction: column;



    justify-content: center;



    align-items: center;



  }







  .clinica h2 {



    font-size: 22px; /* Reduced H2 font size in clinic containers */



    margin-bottom: 20px; /* Space between H2 and buttons */



  }







  .footer {



    gap: 5px; /* Adjust gap on smaller screens */



  }







  .footer-item {



    font-size: 14px; /* Reduced footer item font size */



    gap: 15px;



    white-space: normal; /* Allow text to wrap */



  }







  .footer-item strong {



    font-size: 16px; /* Reduced footer item strong font size */



  }







  .footer-item a {



    white-space: normal; /* Allow text in links to wrap */



  }







  .footer-item.active {



    flex-direction: column; /* Stack items vertically */



    white-space: normal; /* Allow text to wrap */



  }







  .footer i {



    font-size: 20px;



  }







  .footer-bottom {



    font-size: 12px; /* Increased footer bottom text font size */



  }







  .footer-bottom img {



    height: 15px;



  }



}







@media (max-width: 480px) {



  .clinica h2 {



    font-size: 20px; /* Even further reduced H2 font size in clinic containers */



  }







  .footer-item {



    font-size: 12px; /* Further reduced footer item font size */



  }







  .footer-item strong {



    font-size: 14px; /* Further reduced footer item strong font size */



  }







  .footer-item.active {



    gap: 10px;



  }







  .footer-bottom {



    font-size: 10px; /* Increased footer bottom text font size */



  }







  .footer-bottom img {



    height: 12px;



  }



}






















