:root {
  /* Paleta de Cores */
  --color-primary: #530276;
  --color-secondary: #580279;
  --color-dark: #220333;
  --color-intermediate: #3F214D;
  --color-green-soft: #A4BF84;
  --color-sage: #849772;
  --color-gray-light: #F5F4F4;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;

  /* Espaçamentos e Layout */
  --header-height: 80px;
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Tipografia */
  --font-family-header: 'Plus Jakarta Sans', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  --font-family: var(--font-family-body);
  --font-size-base: 16px;
  --font-size-h1: clamp(2.5rem, 6vw, 4rem);
  --font-size-h2: clamp(2rem, 5vw, 3rem);
  --font-size-h3: clamp(1.5rem, 4vw, 2rem);
}

/* Reset e Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  background-color: var(--color-gray-light);
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* Utilitários e Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-family-header);
  font-size: var(--font-size-h2);
  color: var(--color-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--color-green-soft);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-img {
  height: 70px;
  width: auto;
}

.nav-menu {
  display: none;
  /* Mobile First: oculto por padrão no mobile */
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  gap: 0.5rem;
}

.btn:focus-visible {
  outline: 3px solid var(--color-green-soft);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
}

/* Camada Parallax */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* Maior que o container para permitir movimento */
  background-image: url("avulsa/hero-bg-medical.jpg");
  /* Fallback ou imagem abstrata */
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  /* Aceleração de hardware */
  will-change: transform;
  /* O JS irá controlar o transform: translateY() desta camada se necessário, ou usamos apenas position fixed para efeito simples */
}

/* Gradiente Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(164, 191, 132, 0.2), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text-box {
  max-width: 650px;
}

.hero-title {
  font-family: var(--font-family-header);
  font-size: var(--font-size-h1);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Services */
.services-section {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-gray-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
  border-color: var(--color-green-soft);
}

.service-icon {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(83, 2, 118, 0.05);
  border-radius: 50%;
  width: fit-content;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Steps (Como Funciona) */
.steps-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--color-gray-light), #fff);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
  position: relative;
}

.step-item {
  position: relative;
  padding: 1rem;
}

.step-circle {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px rgba(83, 2, 118, 0.1);
}

.step-item h4 {
  color: var(--color-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Why Us */
.why-us-section {
  padding: 5rem 0;
  background-color: var(--color-dark);
  color: white;
  background-image: linear-gradient(rgba(34, 3, 51, 0.9), rgba(34, 3, 51, 0.9)), url('avulsa/why-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  /* Parallax simples via CSS */
}

.why-us-section .section-title {
  color: white;
}

.why-us-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.metric-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-green-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-icon {
  color: var(--color-green-soft);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.metric-item:hover .metric-icon {
  transform: scale(1.1);
}

.metric-val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.metric-val {
  background: linear-gradient(to right, #fff, #A4BF84);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Area Section */
.area-section {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.area-card {
  background: var(--color-intermediate);
  color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.cities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.cities-list li {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--color-gray-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1rem;
  line-height: 1;
}

.testimonial-card p {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-card cite {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  font-style: normal;
}

/* FAQ */
.faq-section {
  padding: 5rem 0;
  background-color: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-green-soft);
}

.faq-item summary {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-dark);
  list-style: none;
  /* Remove seta padrão */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-light);
}

/* Contact */
.contact-section {
  padding: 5rem 0;
  background-color: var(--color-gray-light);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.info-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.info-block {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.address-box {
  margin-top: 2rem;
  max-width: 500px;
}

.info-blocks {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

/* Form styles removed */

/* Footer */
.main-footer {
  background-color: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-logo {
  max-width: 140px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-links h4,
.footer-legal h4 {
  color: var(--color-green-soft);
  margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover,
.footer-legal a:hover {
  text-decoration: underline;
  color: var(--color-green-soft);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Entradas e Animações */
.reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.21, 1.02, 0.73, 1), transform 1s cubic-bezier(0.21, 1.02, 0.73, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Delay staggered */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Micro-interactions */
.service-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-green-soft);
  transition: width 0.1s linear;
  z-index: 1001;
}

/* Active Nav Links */
.nav-list a {
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-list a.active::after {
  width: 100%;
}


/* Mobile Sticky CTA */
/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(150%);
  /* Start hidden */
  opacity: 0;
}

.floating-whatsapp-btn.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-5px) scale(1.05);
  /* Slight lift and scale */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .nav-menu {
    display: block;
  }

  .nav-list {
    display: flex;
    gap: 2rem;
  }

  .nav-list a {
    font-weight: 500;
    color: var(--color-dark);
  }

  .nav-list a:hover {
    color: var(--color-primary);
  }

  .mobile-toggle {
    display: none;
    /* Removed mobile menu button per request */
  }

  .mobile-sticky-cta {
    display: none;
  }
}

/* Prefer Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero::before,
  .hero-content {
    transform: none !important;
    animation: none !important;
  }
}

/* Modal Legais */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 3, 51, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1.5rem;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--color-white);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--border-radius);
  position: relative;
  padding: 3rem 2rem;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.is-open .modal-container {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-gray-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(90deg);
}

.modal-content {
  text-align: left;
}

.modal-content .section-title {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.modal-content .title-underline {
  margin: 0 0 2rem 0;
  width: 60px;
}

.modal-text {
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

.modal-text h4 {
  color: var(--color-primary);
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.modal-text p {
  margin-bottom: 1rem;
}

.modal-text ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-text ul li {
  margin-bottom: 0.5rem;
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: var(--color-gray-light);
  border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

@media (max-width: 768px) {
  .modal-container {
    padding: 2.5rem 1.5rem;
  }

  .modal-content .section-title {
    font-size: 1.5rem;
  }
}