/* ==========================================================================
   CSS Reset & Variáveis (Design Tokens)
   ========================================================================== */
:root {
  /* Cores Baseadas na Logo e Mercado de Seguros */
  --color-primary: #0A3D70;     /* Azul escuro da marca */
  --color-primary-light: #165b9e;
  --color-secondary: #00A651;   /* Verde para ações (WhatsApp, Confiança) */
  --color-secondary-hover: #008f45;
  --color-accent: #FCA311;      /* Laranja para destaque opcional */

  /* Tons Neutros */
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #E5E7EB;

  /* Espaçamentos e Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* Fontes (Inter & Roboto) */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Roboto', var(--font-sans);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

ul {
  list-style: none;
}


/* Acessibilidade: Focus States visíveis */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Utilitários e Tipografia (Mobile-First)
   ========================================================================== */
.container {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
}

.text-center { text-align: center; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
}

.btn-whatsapp {
  background-color: var(--color-secondary);
  color: var(--color-surface);
}

.btn-whatsapp:hover {
  background-color: var(--color-secondary-hover);
}

/* ==========================================================================
   Componentes Específicos (Header, Hero, etc.)
   ========================================================================== */

/* Header */
.header {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-desktop {
  display: none; /* Esconde no mobile por padrão */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  gap: 1.5rem;
}

.nav-desktop.active {
  display: flex;
}

.nav-desktop a {
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}

.nav-mobile-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-surface);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Seções Gerais */
.section {
  padding: 4rem 0;
}

.section-bg-white {
  background-color: var(--color-surface);
}

/* Grid de Parceiros / Planos */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.partner-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.partner-logo {
  height: 60px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.partner-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.partner-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Sobre Mim */
.about-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

/* Contato e Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 4rem 0 2rem;
  text-align: center;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.contact-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Botão Flutuante WPP */
.float-wpp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-secondary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 166, 81, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 166, 81, 0); }
}

/* ==========================================================================
   Media Queries (Tablet)
   ========================================================================== */
@media (min-width: 640px) {
  .container { max-width: 640px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { flex-direction: row; justify-content: center; }
  .hero h1 { font-size: 3rem; }
}

/* ==========================================================================
   Media Queries (Desktop)
   ========================================================================== */
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
  .section { padding: 6rem 0; }
  
  .nav-mobile-btn { display: none; }
  .nav-desktop { 
    display: flex; 
    flex-direction: row; 
    position: static; 
    background-color: transparent; 
    box-shadow: none; 
    padding: 0; 
    gap: 2rem; 
    align-items: center; 
    width: auto;
  }
  .nav-desktop a { font-weight: 500; color: var(--color-text); text-align: left; }
  .nav-desktop a:hover { color: var(--color-primary); }
  
  .hero { padding: 6rem 0; }
  .hero h1 { font-size: 3.5rem; }
  
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  
  .about-flex { display: flex; align-items: center; gap: 4rem; }
  .about-content { flex: 1; }
  .about-image { flex: 1; display: flex; justify-content: center; }
  .about-image img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-width: 400px;}
}

@media (min-width: 1280px) {
  .container { max-width: 1200px; }
}
