/* =========================================================
   BASE.CSS - Reset, variáveis, tipografia global
   Site: planodesaudesulamerica.com (corretora FortPlanos)
   Paleta inspirada na logo SulAmérica (azul + amarelo)
   ========================================================= */

:root {
  /* Paleta SulAmérica */
  --su-blue-dark: #003C71;
  --su-blue:      #00529C;
  --su-blue-light:#3B82F6;
  --su-yellow:    #FFB81C;
  --su-yellow-dark:#E5A100;
  --su-red:       #E1251B;
  --su-red-dark:  #B91C16;

  /* Neutros */
  --su-white:     #FFFFFF;
  --su-bg:        #F5F9FC;
  --su-bg-alt:    #EEF2F7;
  --su-text:      #1A2533;
  --su-text-muted:#5A6C7D;
  --su-border:    #E2E8F0;
  --su-divider:   #CBD5E1;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 60, 113, 0.06);
  --shadow:    0 4px 12px rgba(0, 60, 113, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 60, 113, 0.12);
  --shadow-lg: 0 20px 48px rgba(0, 60, 113, 0.18);

  /* Raios */
  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Espaçamentos */
  --container: 1200px;
  --gap: 24px;

  /* Transições */
  --t-fast: 150ms ease;
  --t:      250ms ease;
  --t-slow: 400ms ease;

  /* Fontes */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset moderno */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--su-text);
  background: var(--su-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--su-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--su-blue-dark); text-decoration: underline; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--su-blue-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 700; color: var(--su-blue-dark); }

small { font-size: 0.85em; color: var(--su-text-muted); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Seções */
.section {
  padding: 80px 0;
}
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }
.section-alt { background: var(--su-bg); }
.section-dark {
  background: linear-gradient(135deg, var(--su-blue-dark), var(--su-blue));
  color: var(--su-white);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--su-white); }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 80px 0; }
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--su-blue-dark);
  color: white;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--su-yellow);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lucide icons base */
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: fadeInUp 0.8s ease-out both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .no-print, header, footer, .chat-widget { display: none !important; }
  body { color: #000; background: #fff; }
}
