/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - CLÍNICA PROIMUNE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - HSL tailored colors */
  --primary-hue: 172;
  --primary-sat: 60%;
  --primary-light: 40%;
  
  --primary: hsl(var(--primary-hue), var(--primary-sat), 22%);      /* Deep Teal (#0f514d) */
  --primary-medium: hsl(var(--primary-hue), var(--primary-sat), 32%);/* Medium Teal (#187d77) */
  --primary-light: hsl(var(--primary-hue), var(--primary-sat), 45%); /* Light Teal (#29aba1) */
  --primary-ultra-light: hsl(var(--primary-hue), var(--primary-sat), 96%); /* Background Tint */
  
  --secondary: hsl(150, 40%, 97%);     /* Soft Mint Background */
  --accent: hsl(36, 65%, 48%);         /* Elegant Gold Accent (#cd8226) */
  --accent-hover: hsl(36, 65%, 40%);   /* Darker Gold Accent */
  
  --neutral-dark: hsl(215, 28%, 17%);  /* Slate Dark for titles */
  --neutral-body: hsl(215, 15%, 32%);  /* Charcoal for body text */
  --neutral-light: hsl(210, 20%, 98%); /* Soft Off-White for sections */
  --border-color: hsl(210, 14%, 90%);  /* Soft borders */
  --white: #ffffff;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 81, 77, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 81, 77, 0.08), 0 8px 10px -6px rgba(15, 81, 77, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(15, 81, 77, 0.12), 0 10px 15px -8px rgba(15, 81, 77, 0.08);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 9999px;
  
  /* Container Widths */
  --container-max-width: 1200px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-body);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--neutral-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  position: relative;
}

.section-alt {
  background-color: var(--neutral-light);
}

.section-secondary {
  background-color: var(--secondary);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header .nav-link,
.header .logo {
  transition: color 0.4s ease, filter 0.4s ease;
}

/* Tema 1: Fundo Transparente na Hero (Topo da Página) */
.header.header-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.header.header-transparent .nav-link {
  color: #ffffff;
}

.header.header-transparent .nav-link:hover {
  color: var(--accent);
}

/* Tema 2: Fundo Claro sobre Seções Claras (Branco/Cinza) */
.header.header-light {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header.header-light .nav-link {
  color: var(--neutral-dark);
}

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

/* Tema 3: Fundo Verde Esmeralda sobre Seções Escuras (#165A51) */
.header.header-teal {
  background-color: rgba(22, 90, 81, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.header.header-teal .nav-link {
  color: #ffffff;
}

.header.header-teal .nav-link:hover {
  color: var(--accent);
}

/* Hamburger icon: always visible over any header background */
.header.header-teal .nav-toggle-icon,
.header.header-teal .nav-toggle-icon::before,
.header.header-teal .nav-toggle-icon::after,
.header.header-transparent .nav-toggle-icon,
.header.header-transparent .nav-toggle-icon::before,
.header.header-transparent .nav-toggle-icon::after {
  background-color: #ffffff;
}

/* Mobile nav drawer always has white bg + dark text, regardless of header theme */
@media (max-width: 768px) {
  .nav {
    background-color: var(--white) !important;
  }

  .nav .nav-link {
    color: var(--neutral-dark) !important;
  }

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

.header.scrolled {
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

.header.scrolled .header-container {
  height: 70px;
}

@media (max-width: 768px) {
  .header-container {
    height: 64px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2.5rem;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.nav-cta-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Menu Toggle Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--neutral-dark);
  position: relative;
  transition: var(--transition-fast);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--neutral-dark);
  left: 0;
  transition: var(--transition-fast);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle.open .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle.open .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.open .nav-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  border: none;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Sticky Mobile Bottom CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
}

.sticky-mobile-cta .btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 50px;
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 80px;
  }

  .hero-grid {
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 40px;
  }
}

/* Background Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3b37 0%, #165A51 50%, #0a2926 100%);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  will-change: transform;
}

.hero-slide:nth-child(1) {
  animation: heroSlideLeft1 12s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.hero-slide:nth-child(2) {
  animation: heroSlideLeft2 12s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 59, 55, 0.82) 0%, rgba(22, 90, 81, 0.72) 50%, rgba(10, 41, 38, 0.88) 100%);
  z-index: 2;
}

@keyframes heroSlideLeft1 {
  0%, 45% {
    transform: translateX(0);
  }
  50%, 95% {
    transform: translateX(-100%);
  }
  96% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes heroSlideLeft2 {
  0%, 45% {
    transform: translateX(100%);
  }
  50%, 95% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

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

/* ==========================================================================
   AUTHORITY BAR
   ========================================================================== */

.authority-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.authority-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.authority-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.authority-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw + 0.5rem, 3.25rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.authority-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ==========================================================================
   PROBLEMA SECTION
   ========================================================================== */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.problem-header {
  max-width: 550px;
}

.problem-header h2 {
  color: var(--primary);
}

.problem-intro {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--neutral-dark);
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.problem-item {
  display: flex;
  gap: 1.25rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.problem-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.problem-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background-color: hsl(36, 65%, 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

.problem-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--neutral-dark);
  margin-bottom: 0.35rem;
}

.problem-text p {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   ABORDAGEM / MECANISMO ÚNICO
   ========================================================================== */

.approach-intro-text {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
  font-size: 1.15rem;
}

.approach-bullets-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0;
}

.approach-bullet-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.approach-bullet-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.approach-bullet-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  background-color: var(--primary-ultra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.approach-bullet-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
}

.approach-bullet-card p {
  font-size: 0.95rem;
  color: var(--neutral-body);
  line-height: 1.6;
  margin: 0;
}

#abordagem {
  background-color: #165A51;
  color: var(--white);
}

#abordagem h2 {
  color: var(--white);
}

#abordagem .approach-intro-text {
  color: hsl(var(--primary-hue), var(--primary-sat), 90%);
}

#abordagem .approach-bullet-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}

#abordagem .approach-bullet-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

#abordagem .approach-bullet-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

#abordagem .approach-bullet-card h4 {
  color: var(--white);
}

#abordagem .approach-bullet-card p {
  color: hsl(var(--primary-hue), var(--primary-sat), 88%);
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title-wrapper h2 {
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-ultra-light);
  color: var(--primary-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

.service-card h3 {
  color: var(--neutral-dark);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--neutral-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-medium);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.service-card-link svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   COMO FUNCIONA (PROCESS)
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

/* Conectores entre os passos */
.process-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-ultra-light) 0%, var(--primary-light) 50%, var(--primary-ultra-light) 100%);
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  background-color: var(--white);
  border: 3px solid var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.process-step:hover .process-number {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.process-step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--neutral-dark);
}

.process-step p {
  font-size: 0.9rem;
  max-width: 250px;
  color: var(--neutral-body);
}

#como-funciona {
  background-color: #165A51;
  color: var(--white);
}

#como-funciona .section-title-wrapper h2 {
  color: var(--white);
}

#como-funciona .section-title-wrapper p {
  color: hsl(var(--primary-hue), var(--primary-sat), 90%);
}

#como-funciona .process-grid::before {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 100%);
}

#como-funciona .process-number {
  background-color: #165A51;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#como-funciona .process-step:hover .process-number {
  background-color: var(--white);
  border-color: var(--white);
  color: #165A51;
}

#como-funciona .process-step h4 {
  color: var(--white);
}

#como-funciona .process-step p {
  color: hsl(var(--primary-hue), var(--primary-sat), 88%);
}

/* ==========================================================================
   EQUIPE
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.team-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--primary-ultra-light);
}

.team-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-ultra-light);
  color: var(--primary);
  border: 2px dashed var(--primary-light);
  padding: 2rem;
  text-align: center;
}

.team-image-placeholder h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-image-placeholder p {
  font-size: 0.85rem;
}

.team-bio h2 {
  color: var(--primary);
}

.team-role {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.team-experience {
  font-weight: 500;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}

.team-bullets {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.team-bullet-item::before {
  content: "✓";
  color: var(--primary-light);
  font-weight: 900;
}

/* ==========================================================================
   PROVAS SOCIAIS (TESTIMONIALS)
   ========================================================================== */

.testimonials-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--white);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  max-width: max-content;
}

.google-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.google-rating-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.google-rating-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.google-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--neutral-dark);
}

.stars {
  color: #ffb300;
  font-size: 1rem;
  letter-spacing: 1px;
}

.score {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neutral-dark);
}

.google-subtitle {
  font-size: 0.825rem;
  color: var(--neutral-body);
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .google-rating {
    padding: 0.65rem 1rem;
    gap: 0.65rem;
  }

  .google-icon {
    width: 22px;
    height: 22px;
  }

  .google-title {
    font-size: 0.875rem;
  }

  .score {
    font-size: 0.85rem;
  }

  .google-subtitle {
    font-size: 0.75rem;
    white-space: normal;
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  object-fit: cover;
  background-color: var(--primary-ultra-light);
}

.testimonial-author-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  color: var(--neutral-dark);
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--neutral-body);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
}

.testimonial-rating {
  color: #ffb300;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--neutral-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--primary-ultra-light);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background-color: var(--white);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ==========================================================================
   CTA FINAL SECTION
   ========================================================================== */

.cta-final {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background-color: var(--primary-medium);
  filter: blur(150px);
  border-radius: var(--radius-round);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.cta-final-container {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-final p {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 2.5rem;
}

.cta-final-ctas {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--neutral-dark);
  color: var(--secondary);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 55px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-links-list a {
  color: var(--secondary);
  font-size: 0.9rem;
}

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

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

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: hsl(215, 10%, 65%);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: hsl(215, 10%, 65%);
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   SERVICOS OVERVIEW PAGE & INDIVIDUAL SERVICE PAGES
   ========================================================================== */

.page-header {
  padding-top: 160px;
  padding-bottom: 60px;
  background-color: var(--secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--neutral-body);
}

.breadcrumbs a {
  color: var(--primary-medium);
}

.breadcrumbs span {
  color: var(--neutral-body);
}

/* Service Detail Layout */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-detail-content h2,
.service-detail-content h3 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-detail-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.service-detail-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-detail-content li {
  font-size: 1.05rem;
}

/* Sidebar Contact Widget */
.sidebar-widget {
  background-color: var(--neutral-light);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: sticky;
  top: 110px;
}

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

.sidebar-widget p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTATO PAGE (FORMULÁRIO)
   ========================================================================== */

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.contact-card-info {
  background-color: var(--primary-ultra-light);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-md);
  height: 100%;
}

.contact-card-info h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form-wrapper {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 171, 161, 0.15);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-tag {
    justify-content: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .problem-grid,
  .approach-bullets-horizontal,
  .team-grid,
  .service-detail-grid,
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .process-grid::before {
    display: none; /* remove connectors on multi-line layout */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 2.5rem 3rem 2.5rem;
    gap: 3rem;
    transition: right var(--transition-normal);
    z-index: 1000;
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    display: block;
  }
  
  .nav-cta-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1.5rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .btn-header-cta {
    display: none; /* Hide header agenda button on mobile navigation header */
  }
  
  .sticky-mobile-cta {
    display: block; /* Show sticky bar on mobile */
  }
  
  body {
    padding-bottom: 70px; /* offset sticky cta */
  }
  
  .section {
    padding: 3.5rem 0;
  }
}

/* ==========================================================================
   TESTIMONIALS CAROUSEL (BASE RULES)
   ========================================================================== */
.testimonials-carousel-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 1rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

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

.testimonials-carousel-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: continuousMarquee 30s linear infinite;
  will-change: transform;
}

.testimonials-carousel-wrapper:hover .testimonials-carousel-track {
  animation-play-state: paused;
}

.testimonials-carousel-track .carousel-slide {
  flex: 0 0 290px;
  width: 290px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  will-change: transform;
}

.testimonial-image-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.testimonial-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.testimonials-carousel-track .carousel-slide:hover {
  transform: scale(1.02);
  z-index: 10;
}

@keyframes continuousMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.875rem));
  }
}

/* ==========================================================================
   TESTIMONIALS CAROUSEL (RESPONSIVE MOBILE OVERRIDES)
   ========================================================================== */
@media (max-width: 768px) {
  .testimonials-carousel-wrapper {
    padding: 0.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }

  .testimonials-carousel-track {
    gap: 1.25rem;
    animation-duration: 25s;
  }

  .testimonials-carousel-track .carousel-slide {
    flex: 0 0 220px !important;
    width: 220px !important;
  }

  .testimonials-carousel-wrapper:active .testimonials-carousel-track,
  .testimonials-carousel-wrapper:focus-within .testimonials-carousel-track {
    animation-play-state: paused;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .authority-grid {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .contact-form-wrapper,
  .contact-card-info {
    padding: 1.75rem;
  }

  .testimonials-carousel-track .carousel-slide {
    flex: 0 0 190px !important;
    width: 190px !important;
  }
}

/* Control Buttons */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-control:hover {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.carousel-indicators .indicator.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .testimonials-carousel-track .carousel-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 600px) {
  .testimonials-carousel-wrapper {
    padding: 0 1.5rem;
  }
  .testimonials-carousel-track .carousel-slide {
    flex: 0 0 100%;
  }
  .carousel-control {
    display: none; /* Hide buttons on mobile, rely on dots */
  }
}

/* ==========================================================================
   EFEITOS INTERATIVOS E ANIMAÇÕES
   ========================================================================== */

/* 1. Micro-interações de Botão (Hover SVG Translate) */
.btn svg {
  transition: transform var(--transition-fast) ease;
}
.btn:hover svg {
  transform: scale(1.1) translateX(2px);
}

/* 2. Animação de Pulso no Botão WhatsApp */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-whatsapp {
  animation: whatsapp-pulse 2s infinite;
}

/* 3. Scroll Reveal CSS setup */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 4. Sombra Dinâmica / Glow nos Cards no Hover */
.service-card, .problem-item, .approach-bullet-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 81, 77, 0.12), 0 5px 15px rgba(15, 81, 77, 0.08);
}

.problem-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(15, 81, 77, 0.1);
}
