/* ==========================
   ROOT VARIABLES
========================== */
:root {
  --color-primary: #0077B6;
  --color-secondary: #CAF0F8;
  --blue-primary: rgba(43, 92, 158, 0.7);
  --blue-accent: rgba(0, 217, 255, 0.3);
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-light: #ffffff;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-md: rgba(0, 0, 0, 0.15);
  --transition-speed: 0.8s;
  --section-max-width: 768px;
}

/* ==========================
   GLOBAL STYLES
========================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ==========================
   HEADER
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: var(--color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 2vh;
  box-shadow: 0 2px 5px var(--color-shadow);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  box-sizing: border-box;
}

header.shrink {
  height: 7.5vh;
  padding: 0 1.5vh;
}

header img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-speed) ease;
}

/* ==========================
   NAVIGATION
========================== */
nav {
  display: flex;
  align-items: center;
  gap: 2vh;
}

nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

nav .btn {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 1vh 2.6vh;
  border-radius: 2vh;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* ==========================
   WELCOME SECTION LAYOUT
========================== */
/* ==========================
   WELCOME SECTION LAYOUT
========================== */
#welcome-section {
  margin-top: 15vh;
  background-image: url("imagens/bg_img.jpg");
  background-size: cover;
  background-position: center;
  height: 70vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

header.shrink + main #welcome-section {
  margin-top: 7.5vh;
  height: 77.5vh;
}

#welcome-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  height: 100%;
}

#welcome-content .person {
  max-height: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

.text-logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 5vh;
}

.text-logo-group .logo {
  height: 10vh;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5vh;
}

.text-logo-group h2 {
  font-size: 2.5rem;
  color: var(--color-text);
  font-weight: 700;
  margin: 0;
  max-width: 500px;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* ==========================
   SEÇÃO DE SERVIÇOS
========================== */
#servicos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 35vh;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.servico {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.servico-imagem {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.servico-imagem img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* ✅ shows full image */
}
.servico-reabilitacao .servico-imagem img {
  object-fit: cover;

  /* Add any other specific styles */
}

.servico-texto {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.servico:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px var(--color-shadow-md);
  z-index: 2;
}

.servico:hover .servico-texto {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Responsivo */
@media (max-width: 768px) {
  #servicos {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .servico-texto {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* ==========================
   SEÇÃO DE ATENDIMENTO DOMICILIAR
========================== */
#home-service {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 4vw;
  gap: 1.5rem;
}

#home-service .home-service-icon {
  width: 70px;
  height: auto;
  opacity: 0.8;
}

#home-service .home-service-text h2 {
  font-size: 2rem;
  color: var(--color-text);
  margin: 0;
  font-weight: 700;
}

#home-service .home-service-text p {
  max-width: 700px;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
  margin: 1rem auto 0 auto;
}

/* ==========================
   SEÇÃO DE EXPERIÊNCIA E SERVIÇOS
========================== */
#experience-section {
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7vh 4vw;
  gap: 1.5rem;
  color: var(--color-text);

}

#experience-section .experience-icon {
  width: 70px;
  height: auto;
  opacity: 0.9;
}

#experience-section .experience-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

#experience-section .experience-text p {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  color: var(--color-text);
}

/* ==========================
   SEÇÃO DO DR. HELTON BORGES
========================== */
#doctor-helton {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8vh 2vw;
  color: #000;
}

.doctor-container {
  max-width: 600px;
}

.doctor-photo {
  width: 220px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px var(--color-shadow);
}

#doctor-helton h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #111;
}

.doctor-role {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin: 0.3rem 0 0.8rem 0;
}

.doctor-specialty {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.doctor-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 500px;
  margin: 0 auto;
}

.doctor-social a {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

.doctor-social a:hover {
  text-decoration: underline;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 15vh;
    right: 0;
    background: var(--color-light);
    flex-direction: column;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 5px var(--color-shadow-md);
  }

  header.shrink nav {
    top: 7.5vh;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 1.5vh 0;
  }

  .menu-toggle {
    display: block;
  }

  #welcome-section {
    margin-top: 15vh;
    background-image: url("imagens/bg_img.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  header.shrink + main #welcome-section {
    margin-top: 7.5vh;
    height: 77.5vh;
  }

  #welcome-content {
    flex-direction: column; /* ✅ no celular, um embaixo do outro */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    width: 100%;
    padding: 0 0vw;
  }

  /* primeiro vem o texto, depois a pessoa */
  .text-logo-group {
    order: 1; /* ✅ aparece antes da pessoa */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
  }

#welcome-content .person {
  order: 2; /* ✅ fica abaixo */
  width: auto;
  height: 60%;
  display: flex;
  flex-direction: column;
  object-fit: cover;
  object-position: bottom;
  margin-top: 0;
}

  .text-logo-group .logo {
    height: 8vh;
    margin-bottom: 1vh;
    margin-top: 2vh;
  }

  .text-logo-group h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    max-width: 90%;
   margin-top: 1vh;
   margin-bottom: 0s;
  }
  #servicos {
    grid-template-columns: 1fr;
    grid-auto-rows: 40vh;
  }

  .servico .overlay {
    font-size: 1rem;
    padding: 0.8rem;
    background-size: contain;
  }

  #home-service {
    padding: 5vh 2vh;
  }

  #home-service .home-service-text h2 {
    font-size: 1.6rem;
  }

  #home-service .home-service-text p {
    font-size: 1rem;
  }

  #experience-section {
    padding: 5vh 2vh;
  }

  #experience-section .experience-text h2 {
    font-size: 1.6rem;
  }

  #experience-section .experience-text p {
    font-size: 1rem;
  }

  .doctor-photo {
    width: 180px;
  }
}
/* ==========================
   WELCOME FOOTER
========================== */
#welcome-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 4vw;
  gap: 1.5rem;
  background-color: var(--color-terceary);
}

#welcome-footer h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.schedule-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  transition: color 0.3s ease;
}

.schedule-link:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.phone-icon {
  font-size: 1.3rem;
  color: var(--color-primary);
}

.contact-info p {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

.footer-subtitle {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

@media (max-width: 768px) {
  #welcome-footer {
    padding: 5vh 2vh;
    gap: 1rem;
  }

  #welcome-footer h3 {
    font-size: 1.4rem;
  }

  .schedule-link {
    font-size: 1.1rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .footer-subtitle {
    font-size: 0.85rem;
  }
}

/* ==========================
   SEÇÃO DE DEPOIMENTOS
========================== */
#testimonials {
  background: linear-gradient(
  135deg,
  var(--blue-primary) 0%,
  var(--blue-accent) 100%
  ),
  url('imagens/testimonials-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 4vw;
}

.testimonials-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  width: 100%;
}

.testimonial-nav {
  background: rgba(43, 92, 158, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.testimonial-nav:hover {
  background: rgba(0, 217, 255, 0.9);
  transform: scale(1.1);
}

.testimonial-content {
  text-align: center;
  color: white;
  flex: 1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-text.slide-in-right {
  animation: slideInRight 0.6s ease-in-out;
}

.testimonial-text.slide-in-left {
  animation: slideInLeft 0.6s ease-in-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

@media (max-width: 768px) {
  #testimonials {
    padding: 5vh 2vh;
    min-height: 40vh;
  }

  .testimonials-container {
    flex-direction: column;
    gap: 2rem;
  }

  .testimonial-nav {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    order: 2;
  }

  .testimonial-nav.prev {
    order: 1;
    align-self: flex-start;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-nav.next {
    order: 3;
    align-self: flex-end;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-content {
    order: 2;
    min-height: 180px;
  }

  .testimonial-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .testimonial-name {
    font-size: 1.1rem;
  }
}


/* ==========================
   SEÇÃO DE LOCALIZAÇÃO
========================== */
#location-section {
  background-color: #f9f9f9;
  padding: 6vh 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-container {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  align-items: stretch;
}

.location-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
}

.location-info p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0.5rem 0;
}

.map-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: fit-content;
}

.map-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.map-container {
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--color-shadow-md);
}

@media (max-width: 768px) {
  .location-container {
    flex-direction: column;
    gap: 2rem;
  }

  .location-info h2 {
    font-size: 1.6rem;
  }

  .location-info p {
    font-size: 0.95rem;
  }

  .map-container iframe {
    height: 300px !important;
  }
}




/* ==========================
   WHATSAPP FLUTUANTE
========================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  background-image: url("imagens/whatsap.png");
  background-size: cover;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  bottom: 2.5rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================
   FOOTER
========================== */
#main-footer {
  background-color: #f5f5f5;
  padding: 5vh 4vw;
  border-top: 1px solid #ddd;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: center;
}

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

.footer-logo img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #999;
  margin: 0.3rem 0 0 0;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.footer-subtitle {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0.5rem 0;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0.3rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}


/* ==========================
   SEÇÃO DE ANTES E DEPOIS
========================== */
#before-after {
  background-color: #ffffff;
  padding: 8vh 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#before-after h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 3rem 0;
}

.before-after-container {
  max-width: 800px;
  width: 100%;
}

.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  cursor: ew-resize;
  user-select: none;
}

.before-after-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fit;
  pointer-events: none;
}


.after-image {
  z-index: 1;
}

.before-image {
  z-index: 2;
}

.slider-control {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.slider-button {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: left 0.1s ease;
}

.slider-button::before {
  content: '⬌';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2b5c9e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 1rem;
}

.label-before {
  color: #999;
}

.label-after {
  color: #2b5c9e;
}

/* Responsivo */
@media (max-width: 768px) {
  #before-after {
    padding: 6vh 2vh;
  }

  #before-after h2 {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

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

  .slider-button::before {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .labels {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}