/*
 * Style sheet for the Hora Saúde website.
 *
 * Este arquivo define variáveis de cores, tipografia e layouts para todas as
 * páginas do site. O design foi inspirado em uma paleta de cores que remete
 * à saúde e bem‑estar, com tons de verde e azul, além de elementos com
 * bordas arredondadas e sombras suaves.
 */

:root {
  --color-primary: #04968f;
  /* tom principal em verde‑água */
  --color-secondary: #055b87;
  /* azul profundo para contrastes */
  --color-accent: #00a789;
  /* verde médio para destaques */
  --color-text: #1f2933;
  /* cinza escuro legível */
  --font-family: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: #f6f9fc;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(90%, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style-type: none;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: var(--color-secondary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-emoji {
  display: inline-block;
  line-height: 1;
  margin-right: 0.4rem;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  padding-top: 10rem;
  padding-bottom: 10rem;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  width: 100%;
/*   margin-left: 0;
  margin-right: auto;
  border-top-left-radius: 0;
  border-top-right-radius: 3rem;
  border-bottom-right-radius: 6rem;
  border-bottom-left-radius: 0; */
}

.hero-decor {
  display: none;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  line-height: normal;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

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

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--color-secondary);
}

.section-gap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.services-preview {
  background-color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background-color: #f3f9fb;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.service-item.highlight {
  background: linear-gradient(135deg, rgba(4, 150, 143, 0.15) 0%, rgba(5, 91, 135, 0.15) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  border-left: 4px solid var(--color-primary);
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item .icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-cta {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-block;
  margin-top: 0.5rem;
}

.service-cta:hover {
  text-decoration: underline;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .services-cta {
    margin-top: 2rem;
  }
}

/* === Carrossel de Serviços === */
.services-carousel-container {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 0 1rem;
}

.services-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.services-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 1rem;
}

.services-track .service-item {
  flex: 0 0 calc(25% - 0.75rem); /* 4 cards - 1/4 do gap */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-track .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(4, 150, 143, 0.15);
}

@media (max-width: 1200px) {
  .services-track .service-item {
    flex: 0 0 calc(33.333% - 0.667rem); /* 3 cards - 1/3 do gap */
  }
}

@media (max-width: 768px) {
  .services-carousel-container {
    padding: 0 0.5rem;
  }

  .services-track .service-item {
    flex: 0 0 calc(50% - 0.5rem); /* 2 cards - 1/2 do gap */
  }
}

@media (max-width: 480px) {
  .services-carousel-container {
    padding: 0 0.5rem;
  }

  .services-track .service-item {
    flex: 0 0 calc(100% - 0rem); /* 1 card - sem redução */
  }
}

/* Remover estilos antigos do carrossel de slides */
.services-slide {
  display: none;
}

.services-carousel-indicators {
  display: none;
}

.about-preview {
  background-color: #fdfdfd;
}

.about-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-preview p {
  margin-bottom: 2rem;
  line-height: 1.5;
  font-size: 1rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-section .btn {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 25px rgba(0, 167, 137, 0.3);
  transform: translateY(0);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

.cta-section .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-section .btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 167, 137, 0.4);
  animation: none;
}

.cta-section .btn:hover::before {
  left: 100%;
}

.cta-section .btn:active {
  transform: translateY(-1px);
}

/* Animação pulsante para o botão Agendar agora */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(0, 167, 137, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(0, 167, 137, 0.5), 0 0 20px rgba(0, 167, 137, 0.3);
  }
  100% {
    box-shadow: 0 8px 25px rgba(0, 167, 137, 0.3);
  }
}

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

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* === Seção de Depoimentos === */
.testimonials-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonials-section .section-title {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-carousel-container {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 0 1rem;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 1rem;
}

.testimonial-item {
  flex: 0 0 calc(33.333% - 0.667rem); /* 3 cards - 1/3 do gap */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 150, 143, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-overlay i {
  font-size: 1.5rem;
  color: #ffffff;
}

.testimonial-item:hover .testimonial-overlay {
  opacity: 1;
}

.testimonial-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-author strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsividade dos depoimentos */
@media (max-width: 1200px) {
  .testimonial-item {
    flex: 0 0 calc(50% - 0.5rem); /* 2 cards - 1/2 do gap */
  }
}

@media (max-width: 768px) {
  .testimonials-carousel-container {
    padding: 0 0.5rem;
  }

  .testimonial-item {
    flex: 0 0 calc(100% - 0rem); /* 1 card - sem redução */
  }
  
  .testimonials-section .section-title {
    font-size: 2rem;
  }
  
  .testimonials-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .testimonial-item {
    padding: 1rem;
  }
  
  .testimonial-image {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .testimonial-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
}

.blog-preview {
  background-color: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-item {
  background-color: #f3f9fb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.blog-item:hover {
  transform: translateY(-4px);
}

.blog-item img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.blog-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem;
  margin-bottom: 0.5rem;
}

.blog-item p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.read-more {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 1rem 1.5rem;
  display: block;
}

.read-more:hover {
  text-decoration: underline;
}

/* === Carrossel de Blog (Mobile e Tablet) === */
.blog-carousel-container {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 0 1rem;
}

.blog-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Transformar em carrossel em tablets e mobile */
@media (max-width: 1024px) {
  .blog-carousel-container {
    padding: 0 1rem;
  }

  .blog-grid {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    gap: 1rem;
  }

  .blog-item {
    flex: 0 0 calc(50% - 0.5rem); /* 2 cards - 1/2 do gap */
  }
}

@media (max-width: 768px) {
  .blog-carousel-container {
    padding: 0 0.5rem;
  }

  .blog-grid {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    gap: 1rem;
  }

  .blog-item {
    flex: 0 0 calc(100% - 0rem); /* 1 card - sem redução */
  }
}

.footer {
  background-color: #0a3d5e;
  color: #ffffff;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ffffff;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-logo {
  width: 150px;
  height: auto;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  font-size: 1.5rem;
  display: inline-block;
  padding: 0.25rem;
  color: #ffffff;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--color-accent);
}

.newsletter-form {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 1rem;
}

.newsletter-form input {
  padding: 0.5rem 0.75rem;
  flex: 1;
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 0.9rem;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal.open {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-secondary);
  cursor: pointer;
}

.modal h2 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.modal .form-group {
  margin-bottom: 1rem;
}

.modal label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background-color: #f9f9f9;
}

.modal button[type="submit"] {
  margin-top: 1rem;
}

/* === Modal de Seleção de Serviços === */
.services-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem;
}

.service-modal-item {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
  border: 2px solid rgba(4, 150, 143, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-modal-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-modal-item:hover::before {
  opacity: 1;
}

.service-modal-item:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 150, 143, 0.2);
}

.service-modal-item:hover * {
  color: white;
  position: relative;
  z-index: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-modal-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
  position: relative;
  z-index: 1;
}

.service-modal-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .services-grid-modal {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    max-height: 50vh;
  }
  
  .service-modal-item {
    padding: 1rem;
  }
  
  .service-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .service-modal-item h3 {
    font-size: 1rem;
  }
  
  .service-modal-item p {
    font-size: 0.8rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    width: 70%;
    height: calc(100% - 60px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    margin-bottom: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
  }

  .nav-cta {
    display: inline-block;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    width: 100%;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 6rem;
  }

  .cta-section {
    width: 100%;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 6rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form button {
    border-radius: 30px;
    margin: 0 0 0.5rem 0;
    width: 100%;
  }
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  padding: 8rem 0 4rem;
  /* border-bottom-right-radius: 6rem; */
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.page-hero p {
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.services-list .service-block {
  background-color: #fdfdfd;
  border-radius: 1rem;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 2px solid var(--color-secondary);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-list .service-block::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 1rem;
  background: linear-gradient(45deg, var(--color-secondary), var(--color-primary), var(--color-accent), var(--color-primary), var(--color-secondary));
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradientShift 3s ease-in-out infinite;
}

.services-list .service-block:hover {
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(4, 150, 143, 0.2);
  transform: translateY(-3px);
}

.services-list .service-block:hover::before {
  opacity: 1;
}

.services-list .service-block:hover .btn-primary {
  background-color: #ffffff;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.services-list .service-block:hover h2,
.services-list .service-block:hover p,
.services-list .service-block:hover li {
  color: #ffffff;
}

.services-list .service-block:hover ul li::before {
  color: #ffffff;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.service-content {
  display: flex;
  align-items: stretch;
  min-height: 300px;
}

.service-text {
  flex: 1;
  padding: 2rem;
}

.service-gallery {
  flex: 0 0 250px;
  position: relative;
}

.service-mini-carousel {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-mini-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.service-mini-carousel img:first-child {
  opacity: 1;
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }
  
  .service-gallery {
    flex: none;
    height: 200px;
  }
  
  .service-text {
    padding: 1.5rem;
  }
}

.services-list .service-block h2 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.services-list .service-block p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.services-list .service-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.services-list .service-block ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.services-list .service-block ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
  border-radius: 1.5rem;
  padding: 0;
  text-align: center;
  box-shadow: 0 8px 25px rgba(4, 150, 143, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(4, 150, 143, 0.1);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(4, 150, 143, 0.2);
}

.team-photo-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
}

.team-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Padrão: mostra a parte superior (cabeça) */
  transition: transform 0.3s ease;
}

/* Posicionamentos específicos para diferentes tipos de foto */
.team-photo.position-center {
  object-position: center center;
}

.team-photo.position-top {
  object-position: center top;
}

.team-photo.position-upper {
  object-position: center 25%; /* Ligeiramente abaixo do topo */
}

.team-photo.position-face {
  object-position: center 15%; /* Focado no rosto */
}

.team-photo.position-portrait {
  object-position: center 20%; /* Para fotos de corpo inteiro */
}

.team-photo.position-bottom {
  object-position: center bottom;
}

.team-photo.position-left {
  object-position: left center;
}

.team-photo.position-right {
  object-position: right center;
}

/* Classes para ajuste fino de posicionamento vertical */
.team-photo.position-10 { object-position: center 10%; }
.team-photo.position-30 { object-position: center 30%; }
.team-photo.position-40 { object-position: center 40%; }

.team-card:hover .team-photo {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4, 150, 143, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 10;
}

.team-photo-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-btn:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.team-info {
  padding: 2rem;
}

.team-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.team-profession {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.team-registration {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.team-specialties {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
}

.lightbox-name {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.lightbox-profession {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
  background: rgba(4, 150, 143, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 18px;
  pointer-events: all;
  transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.lightbox-prev {
  margin-left: -70px;
}

.lightbox-next {
  margin-right: -70px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-photo-container {
    height: 250px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .lightbox-content {
    max-width: 95%;
  }
  
  .lightbox-prev {
    margin-left: -50px;
  }
  
  .lightbox-next {
    margin-right: -50px;
  }
}

.blog-list .blog-post {
  margin-bottom: 3rem;
  background: #fdfdfd;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.blog-post h2 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.blog-post .post-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.blog-post img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.blog-post p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.blog-post-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto 20px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-details ul li .icon-emoji {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.contact-details,
.contact-form {
  flex: 1 1 300px;
}

.contact-details ul {
  list-style: none;
  padding-left: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-details li i {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  color: var(--color-primary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  font-family: var(--font-family);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}

.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.pagination-link {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.pagination-item.active .pagination-link {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  cursor: default;
}

.main-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .main-content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.sidebar .widget {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.sidebar .widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.search-form {
  display: flex;
}

.search-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li {
  margin-bottom: 0.5rem;
}

.widget-list a {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.widget-list a:hover {
  color: var(--color-primary);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
  transform: translateY(0) !important;
  box-shadow: 0 4px 15px rgba(240, 148, 51, 0.3) !important;
}

.btn-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 15%, #dc2743 35%, #cc2366 60%, #bc1888 85%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(240, 148, 51, 0.4) !important;
  color: white !important;
}

.btn-instagram:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 15px rgba(240, 148, 51, 0.3) !important;
}

/* Instagram Feed Customizado */
.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.instagram-post {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.instagram-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.instagram-post-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.instagram-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instagram-post:hover .instagram-post-image img {
  transform: scale(1.05);
}

.instagram-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.8), rgba(188, 24, 136, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.instagram-post:hover .instagram-post-overlay {
  opacity: 1;
}

.instagram-post-content {
  padding: 1.5rem;
}

.instagram-post-caption {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.instagram-post-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instagram-post-likes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e4405f;
}

.instagram-post-hashtags {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.instagram-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.instagram-post-link:hover {
  color: var(--color-secondary);
}

/* Responsividade do Instagram Feed */
@media (max-width: 768px) {
  .instagram-feed {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .instagram-post-image {
    height: 250px;
  }
  
  .instagram-post-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .instagram-feed {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .instagram-post-image {
    height: 220px;
  }
  
  .instagram-post-content {
    padding: 1rem;
  }
}

/* === Botão Flutuante WhatsApp === */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
}

/* === Botão Back to Top com Progresso Circular === */
.back-to-top {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  height: 55px;
  width: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(4, 150, 143, 0.25);
  cursor: pointer;
  z-index: 998;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(4, 150, 143, 0.35);
}

.back-to-top:active {
  transform: translateY(-50%) scale(0.95);
}

.back-to-top i {
  height: calc(100% - 10px);
  width: calc(100% - 10px);
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-primary);
  transition: color 0.3s ease;
  pointer-events: none;
}

.back-to-top:hover i {
  color: var(--color-secondary);
}

/* Responsivo */
@media (max-width: 768px) {
  .back-to-top {
    top: auto;
    bottom: 90px;
    right: 20px;
    transform: none;
    height: 48px;
    width: 48px;
  }
  
  .back-to-top:hover {
    transform: scale(1.1);
  }
  
  .back-to-top:active {
    transform: scale(0.95);
  }
  
  .back-to-top i {
    font-size: 18px;
  }
}

/* === Seção de Ambientes === */
.ambiente-categories {
  margin-top: 3rem;
}

.ambiente-category {
  margin-bottom: 4rem;
}

.ambiente-category h3 {
  color: var(--color-secondary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.ambiente-category > p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ambiente-gallery {
  margin-top: 2rem;
}

.ambiente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ambiente-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #ffffff;
}

.ambiente-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(4, 150, 143, 0.15);
}

.ambiente-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ambiente-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .ambiente-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .ambiente-item img {
    height: 220px;
  }
  
  .ambiente-category {
    margin-bottom: 3rem;
  }
  
  .ambiente-category h3 {
    font-size: 1.5rem;
  }
}
