/*=============================================
=            CSS Variables                    =
=============================================*/
:root {
  /* Colors - Premium Medical/Fitness Palette */
  --primary-color: #55b7ba; /* Turquesa da logo - Confiança e Saúde */
  --primary-light: #a49fd1; /* Lilás da logo - Cuidado e Bem-estar */
  --secondary-color: #55b7ba; /* Mantendo o turquesa para CTAs */
  --secondary-hover: #45a4a7;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --fs-base: 16px;
  
  /* Spacing & Sizes */
  --section-padding: 5rem 0;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-float: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/*=============================================
=            Reset & Base                     =
=============================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--fs-base);
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*=============================================
=            Layout & Utility                 =
=============================================*/
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.py-section {
  padding: var(--section-padding);
}

.bg-light {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--bg-white);
}

.text-accent {
  color: var(--secondary-color);
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Images */
.rounded-img {
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.shadow-img {
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/*=============================================
=            Header & Navigation              =
=============================================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all var(--transition-fast);
  background-color: var(--primary-color);
}

/*=============================================
=            Hero Section                     =
=============================================*/
.hero {
  padding: 140px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f4ff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--secondary-color);
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--secondary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-blob {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 120%;
  height: 120%;
  background: var(--primary-light);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 0;
  opacity: 0.1;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.hero-img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  box-shadow: var(--shadow-float);
}

/*=============================================
=            Problems Section                 =
=============================================*/
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.problem-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: rgba(22, 91, 143, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.problem-card:hover .icon-wrapper {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.problem-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/*=============================================
=            Methodology Section              =
=============================================*/
.methodology-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.methodology-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.methodology-list li {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
}

/*=============================================
=            About Section                    =
=============================================*/
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.credential-item i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

/*=============================================
=            FAQ Section                      =
=============================================*/
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
  font-family: inherit;
}

.accordion-header:hover {
  background: var(--bg-light);
}

.accordion-header i {
  transition: transform var(--transition-normal);
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background: var(--bg-white);
}

.accordion-content p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/*=============================================
=            CTA & Footer                     =
=============================================*/
.cta-section {
  background: linear-gradient(135deg, #5d5891 0%, #7c76b5 100%);
}

.cta-section .section-title {
  color: var(--bg-white);
}

.cta-section .text-accent {
  color: #fff;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 2px;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 4rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand .logo-name {
  color: var(--bg-white);
  font-size: 1.5rem;
}

.footer-brand p {
  color: #9ca3af;
  margin-top: 1rem;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--bg-white);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer a {
  color: #9ca3af;
  transition: color var(--transition-fast);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
}

.footer-contact i {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.875rem;
}

/*=============================================
=            Floating WhatsApp                =
=============================================*/
.float-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: all var(--transition-normal);
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/*=============================================
=            Bento Gallery Section            =
=============================================*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Back to cover for grid, but we'll handle mobile differently */
  display: block;
  transition: transform var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    column-count: auto; /* reset masonry */
    scrollbar-width: none; /* hide scrollbar firefox */
  }
  
  .gallery-grid::-webkit-scrollbar {
    display: none; /* hide scrollbar chrome/safari */
  }
  
  .gallery-item {
    flex: 0 0 85%;
    height: 450px; /* Tall enough for portraits */
    scroll-snap-align: center;
  }
  
  .gallery-item img {
    object-fit: contain; /* DO NOT CROP ON MOBILE */
    background: #f8f9fa; /* light bg for the container */
  }
}

/*=============================================
=            Services Section                 =
=============================================*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/*=============================================
=            Testimonials Section             =
=============================================*/
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}

.author-info h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-weight: 600;
}

/*=============================================
=            Animations (JS classes)          =
=============================================*/
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/*=============================================
=            Responsive Design                =
=============================================*/
@media (max-width: 992px) {
  .hero-title { font-size: 2.75rem; }
  .section-title { font-size: 2.25rem; }
  .hero-container,
  .methodology-content,
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-image-wrapper, .methodology-image, .about-image {
    order: -1; /* Move images up on mobile */
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .navbar {
    position: fixed;
    left: -100%;
    top: 100px;
    gap: 0;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 2rem 0;
  }
  .navbar.active {
    left: 0;
  }
  .nav-menu {
    flex-direction: column;
    margin-bottom: 2rem;
  }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .hero-title { font-size: 2.25rem; }
  .section-padding { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .btn-large { width: 100%; justify-content: center; }
  .float-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 28px; }
}
