/* 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: 32px;
}

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

.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;
  gap: 6px;
  width: 30px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* ==========================================================================
   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;
}

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

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

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

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Tags/Pills list styling */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pill {
  display: 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.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  animation: float 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.hero-pill:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-medium);
  cursor: default;
}

.hero-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.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;
}

/* ==========================================================================
   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;
}

@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)
   ========================================================================== */

/* Tablet & Smaller Screens */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-pills {
    justify-content: center;
  }
  
  .hero-img-wrapper {
    max-width: 320px;
    aspect-ratio: 1 / 1;
    transform: rotate(0deg);
    margin: 0 auto;
  }

  .hero-img-wrapper img {
    object-position: 85% 90%;
  }
  
  .hero-floating-badge {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    bottom: -20px;
    width: 90%;
    max-width: 290px;
  }
  
  .specialty-pane {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .specialties-tabs {
    flex-wrap: wrap;
  }
  
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .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: 60px 0;
  }
  
  .option-grid {
    grid-template-columns: 1fr;
  }
  
  .screening-card {
    padding: 32px 24px;
  }
  
  .benefit-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  
  .testimonial-card {
    flex: 0 0 100%;
    min-height: auto;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* Mobile Menu Open State - JS will toggle class 'mobile-nav-active' on body */
  .mobile-nav-active .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    padding: 40px 24px;
    gap: 24px;
    z-index: 999;
    animation: slideIn 0.3s ease forwards;
  }
  
  .mobile-nav-active .nav-actions .btn {
    display: inline-flex;
    width: 100%;
  }
  
  .mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-8px) 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%;
  height: 200px;
  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; }
