/* styles.css - Ondivan US & Canada Website */

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --color-bg-warm: #FAF7F2;      /* Warm Sand/Cream */
  --color-text-dark: #2B2825;    /* Charcoal/Deep Brown */
  --color-text-muted: #6A645F;   /* Soft warm gray for body text */
  --color-primary: #93291E;      /* Ondivan Red */
  --color-primary-hover: #7A1E14;/* Darker Red */
  --color-primary-light: #FBECEB;/* Very soft red background tint */
  --color-white: #FFFFFF;
  --color-border: #E8E2D9;       /* Delicate warm border */
  --color-accent-gold: #D4AF37;  /* Accent color for ratings/stars */
  
  --font-title: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions & Animations */
  --transition-smooth: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  --transition-bounce: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --spring-easing: linear(0, 0.016 0.5%, 0.06 1%, 0.226 2%, 1.116 5.4%, 1.375 6.6%, 1.527 7.7%, 1.565 8.2%, 1.585 8.8%, 1.581 9.3%, 1.559 9.8%, 1.458 10.9%, 0.937 14.3%, 0.784 15.5%, 0.693 16.6%, 0.67 17.1%, 0.657 17.7%, 0.671 18.7%, 0.729 19.8%, 1.042 23.3%, 1.13 24.5%, 1.182 25.6%, 1.201 26.7%, 1.192 27.7%, 1.156 28.8%, 0.977 32.2%, 0.925 33.4%, 0.894 34.5%, 0.882 35.6%, 0.887 36.6%, 0.907 37.7%, 1.045 42.4%, 1.069 44.5%, 1.059 46.3%, 0.979 50.9%, 0.96 53.4%, 0.966 55.3%, 1.013 59.9%, 1.024 62.3%, 0.986 71.2%, 1.008 79.9%, 0.995 88.9%, 1);
  
  /* Elevation / Shadows */
  --shadow-soft: 0 4px 20px rgba(43, 40, 37, 0.03);
  --shadow-medium: 0 12px 30px rgba(43, 40, 37, 0.06);
  --shadow-large: 0 20px 50px rgba(43, 40, 37, 0.1);
  
  /* Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --max-width-container: 1200px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-warm);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-warm);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--color-bg-warm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  line-height: 1.6;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

/* Text balance utility */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: clamp(60px, 10vw, 120px) 0;
}

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

.text-primary {
  color: var(--color-primary);
}

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

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(147, 41, 30, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 41, 30, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  border-color: var(--color-text-dark);
  transform: scale(1.04) translateY(-2px);
}

.btn-text {
  padding: 8px 16px;
  color: var(--color-text-dark);
  font-weight: 600;
}

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

/* ==========================================================================
   NAVBAR (HEADER)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 247, 242, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 226, 217, 0.4);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

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

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

.logo-img {
  height: 32px;
  width: auto;
}

.logo-icon {
  height: 30px;
  width: auto;
  fill: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-item {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-text-dark);
  position: relative;
  white-space: nowrap;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 4px;
  background-color: rgba(147, 41, 30, 0.04);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(147, 41, 30, 0.1);
}

.lang-switcher a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.lang-switcher a:hover {
  color: var(--color-primary);
}

.lang-switcher .active {
  color: var(--color-primary);
}

.lang-switcher .divider {
  color: rgba(147, 41, 30, 0.2);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background-color: rgba(147, 41, 30, 0.05);
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  border-radius: 2px;
}

.mobile-menu-ctas {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 95px;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-warm);
  position: relative;
  overflow: hidden;
}

/* Abstract shapes to add visual interest */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(147, 41, 30, 0.03) 0%, rgba(250, 247, 242, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #D97706;
  font-size: 0.95rem;
}

.hero-stars strong {
  margin-left: 4px;
  color: var(--color-text-dark);
  font-size: 0.85rem;
}

.hero-trust-divider {
  color: var(--color-border);
  font-weight: 300;
}

.hero-trust-tag {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  color: var(--color-text-dark);
  margin-bottom: 24px;
  width: 100%;
}

.hero-description {
  margin-bottom: 32px;
  max-width: 580px;
  width: 100%;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  width: 100%;
}

/* ==========================================================================
   HERO TICKER MARQUEE (BARRA HORIZONTAL ANIMADA)
   ========================================================================== */
.hero-ticker-container {
  width: 100%;
  max-width: 580px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
  padding: 6px 0;
  contain: paint;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.hero-ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: heroTicker 20s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.hero-ticker-container:hover .hero-ticker-track,
.hero-ticker-container:active .hero-ticker-track {
  animation-play-state: paused;
}

.hero-ticker-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-dark);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(43, 40, 37, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  cursor: default;
}

.hero-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.hero-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-primary);
}

@keyframes heroTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 6px));
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-large);
  border: 8px solid var(--color-white);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 2/3;
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.hero-img-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating element badge to match OurRitual visual style */
.hero-floating-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  transform: rotate(-2deg);
  z-index: 2;
}

.floating-badge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-avatar svg {
  width: 22px;
  height: 22px;
  fill: var(--color-primary);
}

.floating-badge-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.floating-badge-info p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.25;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ==========================================================================
   SPECIALTIES (ESPECIALIDADES)
   ========================================================================== */
.specialties {
  background-color: var(--color-white);
  position: relative;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  margin-bottom: 20px;
}

.specialties-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

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

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
}

.specialties-content {
  position: relative;
  min-height: 450px;
}

.specialty-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.specialty-pane.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.specialty-info h3 {
  margin-bottom: 16px;
}

.specialty-info p {
  margin-bottom: 24px;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.specialty-tag {
  padding: 8px 16px;
  background: var(--color-bg-warm);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.specialty-illustration {
  background-color: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.illustration-icon {
  width: 120px;
  height: auto;
  fill: var(--color-primary);
  opacity: 0.85;
  filter: drop-shadow(0 8px 16px rgba(147, 41, 30, 0.15));
  transition: var(--transition-bounce);
}

.specialty-pane:hover .illustration-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   BELONGING MANIFESTO (MANIFESTO DE PERTENCIMENTO)
   ========================================================================== */
.belonging-manifesto {
  background-color: #F5EFEB; /* Very soft warm sand/cream */
  color: var(--color-text-dark);
  padding: clamp(100px, 10vw, 140px) 0; /* Increased section height */
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.belonging-manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1775547754264-8c7f455d1b85?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.09; /* Subtle watermark opacity */
  filter: saturate(0.4) brightness(1.03) contrast(0.95); /* Soft desaturated pastel look */
  pointer-events: none;
  z-index: 1;
}

.belonging-manifesto .container {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.manifesto-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.manifesto-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55); /* Transparent white */
  border: 1px solid rgba(255, 255, 255, 0.85); /* Semi-transparent white border */
  backdrop-filter: blur(4px); /* Premium glassmorphism effect */
  box-shadow: 0 4px 16px rgba(43, 40, 37, 0.02);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.belonging-manifesto:hover .manifesto-icon-wrapper {
  border-color: rgba(147, 41, 30, 0.25);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(147, 41, 30, 0.05);
}

.manifesto-lotus {
  width: 36px;
  height: 36px;
  fill: var(--color-primary); /* Brand Red */
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.belonging-manifesto:hover .manifesto-lotus {
  transform: scale(1.15);
}

.manifesto-quote {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.6;
  color: var(--color-text-dark);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.highlight-gold {
  color: var(--color-accent-gold);
  font-weight: inherit;
}

.belonging-manifesto .highlight-gold {
  color: var(--color-primary); /* Overrides highlighted text to brand red */
}

@media (max-width: 768px) {
  .belonging-manifesto {
    padding: 60px 0;
  }
}

/* ==========================================================================
   HOW IT WORKS (COMO FUNCIONA)
   ========================================================================== */
.how-it-works {
  background-color: var(--color-bg-warm);
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.hiw-card {
  background-color: var(--color-white);
  padding: 48px 32px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 226, 217, 0.6);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.hiw-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary-light);
}

.hiw-num {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.hiw-card:hover .hiw-num {
  color: var(--color-primary);
}

.hiw-card h4 {
  margin-bottom: 12px;
}

.hiw-card p {
  font-size: 0.95rem;
}

/* ==========================================================================
   PRICING & PAYMENT TRANSPARENCY (TRANSPARÊNCIA DE VALORES E PAGAMENTO)
   ========================================================================== */
.pricing-transparency {
  background-color: var(--color-bg-warm);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto 48px auto;
}

.pricing-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(232, 226, 217, 0.7);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(147, 41, 30, 0.3);
}

.pricing-card.highlighted {
  border: 2px solid var(--color-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 100%);
  box-shadow: 0 10px 30px rgba(147, 41, 30, 0.08);
}

.pricing-highlight-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pricing-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.pricing-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.pricing-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(232, 226, 217, 0.6);
  padding-top: 20px;
}

.pricing-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-dark);
}

.pricing-card-list li svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

/* Pricing Bottom Banner */
.pricing-banner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-soft);
  max-width: 920px;
  margin: 0 auto;
}

.pricing-banner-text {
  flex: 1;
  max-width: 600px;
}

.pricing-banner-text h5 {
  font-size: 1.25rem;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pricing-banner-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 100%;
}

.pricing-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   INTERACTIVE SCREENING (TRIAGEM INTERATIVA)
   ========================================================================== */
.screening {
  background-color: var(--color-white);
}

.screening-card {
  background-color: var(--color-bg-warm);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
  padding: 64px 48px;
  max-width: 800px;
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Progress bar */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  margin-bottom: 40px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  width: 33.33%;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.step-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.step-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 32px;
  text-align: center;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  background-color: rgba(147, 41, 30, 0.01);
}

.option-card.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(147, 41, 30, 0.05);
}

.option-card h5 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.option-card p {
  font-size: 0.875rem;
}

/* Screening Actions */
.screening-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

/* Results Step Styling */
.results-pane {
  text-align: center;
}

.results-avatar-group {
  display: flex;
  justify-content: center;
  gap: -12px;
  margin-bottom: 24px;
}

.result-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  margin: 0 -8px;
  overflow: hidden;
}

.result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-percentage {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Results Step Double Actions */
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.results-actions .btn {
  width: 100%;
  justify-content: center;
}

.btn-whatsapp-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
}

.btn-whatsapp-result:hover {
  background-color: #1EBE5A;
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-result:active {
  transform: scale(0.98);
}

/* ==========================================================================
   MOBILE STICKY CONVERSION BAR
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(43, 40, 37, 0.12);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

.mobile-sticky-bar.visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.btn-sticky-primary {
  flex: 1.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(147, 41, 30, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  min-height: 48px;
}

.btn-sticky-primary:active {
  transform: scale(0.97);
  background-color: var(--color-primary-hover);
}

.btn-sticky-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #25D366;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  min-height: 48px;
}

.btn-sticky-whatsapp:active {
  transform: scale(0.97);
  background-color: #1EBE5A;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   BENEFITS (POR QUE ONDIVAN)
   ========================================================================== */
.benefits {
  background-color: var(--color-bg-warm);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.benefit-card {
  display: flex;
  gap: 24px;
  background-color: var(--color-white);
  padding: 32px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 226, 217, 0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.benefit-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-medium);
}

.benefit-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

.benefit-info h4 {
  margin-bottom: 8px;
}

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

/* ==========================================================================
   TESTIMONIALS (DEPOIMENTOS)
   ========================================================================== */
.testimonials {
  background-color: var(--color-white);
  overflow: hidden;
}

.testimonials .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.testimonials .section-header {
  padding: 0 24px;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.testimonial-carousel-container {
  position: relative;
  margin-top: 48px;
}

.testimonials-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  padding-left: max(24px, calc((100vw - var(--max-width-container)) / 2));
  padding-right: max(24px, calc((100vw - var(--max-width-container)) / 2));
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE */
}

.testimonials-wrapper::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.testimonial-card {
  flex: 0 0 450px;
  scroll-snap-align: center;
  background-color: var(--color-bg-warm);
  padding: 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: scale(1.01);
  border-color: var(--color-primary);
}

.rating {
  color: var(--color-accent-gold);
  margin-bottom: 16px;
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-text-dark);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
}

.author-info p {
  font-size: 0.8rem;
  margin: 0;
}

/* Slider Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background-color: var(--color-white);
}

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

/* Testimonial More Button & Modal */
.testimonial-more-btn {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.testimonial-more-btn:hover {
  color: var(--color-primary-hover);
  gap: 10px;
}

/* Modal Overlay */
.testimonial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(43, 40, 37, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.testimonial-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.testimonial-modal-card {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-modal-overlay.active .testimonial-modal-card {
  transform: translateY(0) scale(1);
}

/* Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

/* Modal Header & Badge */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-right: 30px;
}

.modal-badge {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-quote-icon {
  color: var(--color-primary);
  opacity: 0.2;
  margin-bottom: 12px;
}

/* Modal Quote Content */
.modal-quote-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  font-style: italic;
}

.modal-quote-content p:last-child {
  margin-bottom: 0;
}

/* Modal Footer */
.modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   LEGAL PAGES (POLÍTICA DE PRIVACIDADE & TERMOS DE USO)
   ========================================================================== */
.legal-hero {
  background-color: var(--color-bg-warm);
  padding: 140px 0 50px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.legal-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.legal-hero .legal-badge {
  font-size: 0.85rem;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-hero .legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: block;
}

.legal-content-section {
  padding: 60px 0 100px 0;
  background-color: var(--color-white);
}

.legal-box {
  max-width: 920px;
  margin: 0 auto;
  background: var(--color-bg-warm);
  padding: 56px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.legal-article {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--color-border);
}

.legal-article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-article h3 .num {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.legal-article p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-text-dark);
  margin-bottom: 14px;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-article ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.legal-article ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.legal-article a {
  color: var(--color-primary);
  text-decoration: underline;
  word-break: break-word;
}

.legal-article a:hover {
  color: var(--color-primary-hover);
}

.legal-subitem {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary-light);
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 110px 0 40px 0;
  }
  .legal-box {
    padding: 28px 20px;
  }
  .legal-article h3 {
    font-size: 1.1rem;
  }
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background-color: var(--color-bg-warm);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-soft);
}

.faq-header {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.faq-icon-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-bg-warm);
  transition: var(--transition-smooth);
}

.faq-icon-wrapper svg {
  width: 14px;
  height: 14px;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon-wrapper {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.faq-item.active .faq-icon-wrapper svg {
  transform: rotate(180deg);
  fill: var(--color-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-content {
  padding: 0 32px 28px 32px;
  font-size: 1rem;
}

.faq-content p {
  margin-bottom: 0.8em;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content ul {
  margin: 0.4em 0 1em 1.2em;
  padding: 0;
  list-style: disc;
}

.faq-content ul li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.3em;
}

.faq-content strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-text-dark);
  color: #E8E2D9; /* Off-white for footer text readability */
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1.15fr);
  gap: 48px;
  border-bottom: 1px solid rgba(232, 226, 217, 0.1);
  padding-bottom: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  color: #B2AAA2;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  align-self: flex-start;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(232, 226, 217, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-column h5 {
  font-family: var(--font-title);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: #B2AAA2;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

/* Mandatory warning section in footer */
.footer-disclaimer {
  background-color: rgba(232, 226, 217, 0.03);
  border: 1px solid rgba(232, 226, 217, 0.08);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.footer-disclaimer h6 {
  font-family: var(--font-title);
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-disclaimer p {
  font-size: 0.85rem;
  color: #B2AAA2;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8C847D;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: #B2AAA2;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Intermediate Desktop Screens (Ensure navbar stays strictly on 1 line) */
@media (max-width: 1200px) {
  .nav-links {
    gap: 14px;
  }
  .nav-item {
    font-size: 0.84rem;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1060px) {
  .nav-links {
    gap: 10px;
  }
  .nav-item {
    font-size: 0.8rem;
  }
  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Tablet & Smaller Screens */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  
  .hero-trust-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    width: 100%;
    text-align: center;
  }

  .hero-description {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .hero-ctas {
    justify-content: center;
    width: 100%;
  }
  
  .hero-ticker-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 8px auto 0 auto;
    overflow: hidden;
  }
  
  .hero-visual {
    display: none !important;
  }
  
  .specialty-pane {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .specialty-illustration {
    display: none !important;
  }
  
  .specialties-tabs {
    flex-wrap: wrap;
  }
  
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pricing-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 32px;
    gap: 20px;
  }

  .pricing-banner-text {
    max-width: 100%;
    padding: 0 16px;
  }

  .pricing-banner-text h5 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .pricing-banner-text p {
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 0 12px;
  }

  .pricing-banner-actions {
    width: 100%;
  }

  .pricing-banner-actions .btn {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    justify-content: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile & Smaller Screens */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none; /* Main links and CTAs hidden, shown in mobile drawer */
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-container {
    height: 70px;
  }
  
  .section-padding {
    padding: 50px 0;
  }

  .hero {
    padding-top: 85px;
    padding-bottom: 36px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-trust-badge {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 16px;
    width: 100%;
    text-align: center;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 22px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .hero-ticker-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 6px auto 0 auto;
    overflow: hidden;
  }

  .hero-ticker-track {
    animation-duration: 16s;
  }

  .hero-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .specialty-pane {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .specialty-illustration {
    display: none !important;
  }

  .specialty-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .specialty-tags {
    justify-content: center;
    margin-bottom: 24px;
  }

  .specialty-info .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    margin: 0 auto;
  }
  
  .option-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .option-card {
    padding: 18px 20px;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
  }
  
  .screening-card {
    padding: 28px 20px;
  }
  
  .benefit-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .testimonials-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    gap: 16px;
  }
  
  .testimonial-card {
    flex: 0 0 calc(100vw - 44px);
    max-width: calc(100vw - 44px);
    min-height: auto;
    padding: 28px 20px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Sticky bar display on mobile and take over floating button */
  .mobile-sticky-bar {
    display: block !important;
  }

  .ondivan-wa-float {
    display: none !important;
  }
  
  /* Mobile Menu Open State - JS will toggle class 'mobile-nav-active' on body */
  body.mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .header {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(232, 226, 217, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  }

  .mobile-nav-active .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: var(--color-white);
    padding: 32px 24px 48px 24px;
    gap: 18px;
    z-index: 1001;
    overflow-y: auto;
    animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-nav-active .nav-item {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(232, 226, 217, 0.5);
    transition: color 0.2s ease;
  }

  .mobile-nav-active .nav-item:hover {
    color: var(--color-primary);
  }

  /* Keep top bar clean: .nav-actions .btn must remain hidden in the header */
  .mobile-nav-active .nav-actions .btn {
    display: none !important;
  }

  .mobile-nav-active .mobile-menu-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
  }

  .mobile-nav-active .mobile-menu-ctas .btn {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    border-bottom: none !important;
    padding: 14px 24px;
  }

  /* Smooth Hamburger to 'X' animation */
  .mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter {
  background-color: var(--color-white);
  padding: 80px 0 100px 0;
}

.newsletter-card {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 56px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-card h2 {
  margin-bottom: 12px;
}

.newsletter-card p {
  margin-bottom: 32px;
  max-width: 540px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(147, 41, 30, 0.04);
}

@media (max-width: 576px) {
  .newsletter-card {
    padding: 40px 24px;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 16px;
  }
  
  .newsletter-btn {
    width: 100%;
  }
}

/* ==========================================================================
   BLOG SECTION (PALAVRAS ON DIVAN)
   ========================================================================== */
.blog {
  background-color: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.blog-card {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  will-change: transform;
}

.blog-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary-light);
}

.blog-card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 12px;
}

.blog-card-title {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.3;
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card-text {
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

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

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

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

/* Staggered transition delays for grid cards */
.hiw-card:nth-child(2) { transition-delay: 0.1s; }
.hiw-card:nth-child(3) { transition-delay: 0.2s; }

.benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefit-card:nth-child(3) { transition-delay: 0.15s; }
.benefit-card:nth-child(4) { transition-delay: 0.2s; }

.blog-card:nth-child(2) { transition-delay: 0.1s; }
.blog-card:nth-child(3) { transition-delay: 0.2s; }

/* ==========================================================================
   NATIVE ONDIVAN WHATSAPP LEAD MODAL & FLOATING BUTTON
   ========================================================================== */

/* Suppress default wts.chat iframe modal elements */
.h-widget-modal, .h-widget-float {
  display: none !important;
}

/* Ondivan Floating WhatsApp Button */
.ondivan-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  cursor: pointer;
  border: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: waPulse 2.5s infinite;
}

.ondivan-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.ondivan-wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ondivan WhatsApp Modal Overlay */
.ondivan-wa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(43, 40, 37, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ondivan-wa-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.ondivan-wa-modal-card {
  background: var(--color-bg-warm);
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(43, 40, 37, 0.22);
  padding: 36px 32px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ondivan-wa-modal-overlay.active .ondivan-wa-modal-card {
  transform: translateY(0) scale(1);
}

.ondivan-wa-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(147, 41, 30, 0.08);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ondivan-wa-close:hover {
  background: var(--color-primary);
  color: #FFF;
  transform: rotate(90deg);
}

.ondivan-wa-header {
  text-align: center;
  margin-bottom: 24px;
}

.ondivan-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F8EE;
  color: #128C7E;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ondivan-wa-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ondivan-wa-header h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.ondivan-wa-header p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Form Controls */
.ondivan-wa-form .form-group {
  margin-bottom: 18px;
  text-align: left;
}

.ondivan-wa-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.ondivan-wa-form input[type="text"],
.ondivan-wa-form input[type="tel"],
.ondivan-wa-form input[type="email"],
.ondivan-wa-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: var(--color-text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.ondivan-wa-form input:focus,
.ondivan-wa-form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.ondivan-wa-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.ondivan-wa-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  margin-top: 2px;
  cursor: pointer;
}

.ondivan-wa-consent label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  font-weight: 400;
  cursor: pointer;
}

.ondivan-wa-submit {
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ondivan-wa-submit:hover {
  background: #1EBE5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.ondivan-wa-submit:active {
  transform: translateY(0);
}

.ondivan-wa-submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero-trust-badge {
    font-size: 0.76rem;
    padding: 5px 12px;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
  }
  .hero-stars {
    font-size: 0.85rem;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.8vw, 1.95rem);
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .hero-description {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .hero-pill {
    font-size: 0.78rem;
    padding: 5px 11px;
  }
  .pricing-banner {
    padding: 28px 16px;
  }
  .pricing-banner-text {
    padding: 0 4px;
  }
  .pricing-banner-text p {
    padding: 0 2px;
  }
  .btn-sticky-primary {
    font-size: 0.86rem;
    padding: 10px 12px;
  }
  .btn-sticky-whatsapp {
    font-size: 0.86rem;
    padding: 10px 10px;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }
  .hero-trust-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    gap: 4px;
  }
  .hero-title {
    font-size: 1.48rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .hero-description {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 16px;
  }
  .hero-ctas .btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}
