/* 
 * ==========================================
 * PLANO DE SAÚDE BH - DESIGN SYSTEM & STYLES
 * ==========================================
 * Cliente: planodesaudebh.com.br
 * Versão: 1.0 (Etapa 1 - Alta Performance & Conversão)
 * Tecnologia: CSS3 Puro
 */

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

/* --- VARIÁVEIS DO SISTEMA DE DESIGN (SOPHISTICATED LIGHT) --- */
:root {
  /* Cores Principais (Tons executivos e profissionais) */
  --primary-navy: #0d2137;       /* Azul Escuro Prussian - Autoridade */
  --primary-blue: #1f4068;       /* Azul Clássico Prussian - Confiança */
  --accent-gold: #c9a054;        /* Dourado Ocre Suave - Premium, Conversão */
  --accent-gold-hover: #b08a45;  /* Dourado mais escuro para hover */
  --accent-teal: #0a9396;        /* Teal para detalhes médicos */
  --whatsapp-green: #128c7e;     /* Verde Oficial WhatsApp */
  --whatsapp-green-hover: #0b665c;
  
  /* Escala de Neutros */
  --bg-light: #f8fafc;           /* Cinza Neutro Macio */
  --bg-warm: #faf9f6;            /* Off-white quente e refinado */
  --bg-white: #ffffff;
  --text-dark: #0f172a;          /* Quase Preto */
  --text-medium: #334155;        /* Cinza Escuro para Leitura */
  --text-muted: #64748b;         /* Cinza Suave */
  --border-light: #e2e8f0;       /* Divisores Suaves */
  
  /* Sombras Matemáticas */
  --shadow-sm: 0 1px 3px rgba(13, 33, 55, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(13, 33, 55, 0.08), 0 2px 4px -1px rgba(13, 33, 55, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(13, 33, 55, 0.1), 0 8px 10px -6px rgba(13, 33, 55, 0.05);
  --shadow-hover: 0 20px 35px -5px rgba(13, 33, 55, 0.15);
  
  /* Arredondamento Elegante (Borders) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transições Fluídas */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & CONFIGURAÇÕES BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

/* --- TIPOGRAFIA & HIERARQUIA MATEMÁTICA --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-navy);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-medium);
  font-size: 1rem;
}

.text-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-medium);
  line-height: 1.7;
}

/* --- COMPONENTES GLOBAIS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Seções com Espaçamento Generoso */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

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

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

/* Títulos das Seções */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(31, 64, 104, 0.08);
  color: var(--primary-blue);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Botões Modernos e de Alta Conversão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  margin-left: 0.5rem;
  width: 20px;
  height: 20px;
}

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

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

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

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

.btn-outline {
  background-color: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

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

/* --- CABEÇALHO (STICKY HEADER) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-navy);
  color: var(--accent-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navegação Principal Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

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

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

/* Dropdowns elegantes no menu */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 240px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1010;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
}

.nav-dropdown-item a:hover {
  background-color: var(--bg-light);
  color: var(--primary-blue);
  padding-left: 1.15rem;
}

/* --- HERO SECTION COM FORMULÁRIO ACOPLADO --- */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background: radial-gradient(circle at top right, rgba(31, 64, 104, 0.05), transparent), var(--bg-warm);
  position: relative;
}

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

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Benefícios Rápidos no Hero */
.hero-benefits {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.hero-benefit-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(10, 147, 150, 0.1);
  color: var(--accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- ESTILO DO FORMULÁRIO DE CONVERSÃO EXCLUSIVO --- */
.form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background-color: var(--bg-light);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(31, 64, 104, 0.15);
}

/* Checkbox ou Grid para Idades */
.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.age-btn {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.age-btn.selected {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border-color: var(--primary-blue);
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* --- INFINITE OPERATORS SLIDER / MARQUEE --- */
.slider-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-white);
  overflow: hidden;
}

.slider-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  user-select: none;
  min-width: 160px;
  height: 60px;
  text-align: center;
  transition: var(--transition-smooth);
}

.marquee-item:hover {
  color: var(--primary-blue);
  border-color: var(--accent-gold);
  background-color: var(--bg-white);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* --- CARDS DOS TIPOS DE PLANOS --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.plan-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(31, 64, 104, 0.15);
}

.plan-card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(31, 64, 104, 0.05);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

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

.plan-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.plan-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-card-link:hover {
  color: var(--accent-gold);
}

/* --- SEÇÃO DE HOSPITAIS (REDE CREDENCIADA) --- */
.hospitals-section {
  position: relative;
}

.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.hospital-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.hospital-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hospital-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.hospital-region {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hospital-plans {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hospital-disclaimer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --- ACORDEÃO DE PERGUNTAS FREQUENTES (FAQ) --- */
.faq-section {
  position: relative;
}

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

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

.faq-item:hover {
  border-color: var(--primary-blue);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  font-size: 1.1rem;
  color: var(--primary-navy);
  transition: var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-medium);
  font-size: 0.95rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

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

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Grande o suficiente */
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
  padding-top: 0.5rem;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: var(--bg-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: pulseFloat 2s infinite;
}

/* --- FOOTER COMPLETO --- */
.footer {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-contact-icon {
  color: var(--accent-gold);
  width: 20px;
  height: 20px;
}

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

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

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

/* --- ANIMAÇÕES DE SCROLL MARQUEE --- */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1.75rem));
  }
}

@keyframes pulseFloat {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
