/**
 * Portal Terezinha Dybas 5550 - Deputada Federal (PSD SC)
 * Arquivo Principal de Estilos: Design System, Reset, Layout & Navbar
 */

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

:root {
  /* Cores Oficiais e Identidade Visual */
  --navy-900: #0E295E;
  --navy-800: #14336E;
  --navy-700: #183B7E;
  --navy-600: #214C9C;
  --navy-500: #2E65CF;
  
  --yellow-500: #FFD100;
  --yellow-600: #F5A623;
  --yellow-700: #D98C0B;

  --green-600: #00843D;
  --green-700: #00662F;
  --green-800: #004D23;

  --red-sc: #D52B1E;

  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Tipografia */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(14, 41, 94, 0.1), 0 2px 4px -2px rgba(14, 41, 94, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(14, 41, 94, 0.12), 0 4px 6px -4px rgba(14, 41, 94, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(14, 41, 94, 0.15), 0 8px 10px -6px rgba(14, 41, 94, 0.08);
  --shadow-glow: 0 0 25px rgba(255, 209, 0, 0.35);

  /* Dimensões */
  --container-max: 1240px;
  --navbar-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Skip link de acessibilidade */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--yellow-500);
  color: var(--navy-900);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 99999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 15px;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container de Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   STICKY NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(14, 41, 94, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(14, 41, 94, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(255, 209, 0, 0.2);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-logo img {
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: height var(--transition-fast);
}

.site-header.scrolled .brand-logo img {
  height: 44px;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.3px;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow-500);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow-500);
}

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

/* Ações da Navbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-600);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 132, 61, 0.3);
  transition: all var(--transition-fast);
}

.btn-whatsapp-nav:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 132, 61, 0.45);
}

.btn-whatsapp-nav .pulse-dot {
  width: 9px;
  height: 9px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Botão Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--yellow-500);
}
.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--yellow-500);
}

/* ==========================================================================
   BANNER LGPD / COOKIES
   ========================================================================== */
.lgpd-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--navy-900);
  border: 1px solid rgba(255, 209, 0, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  padding: 20px 24px;
  color: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideInUp 0.5s ease-out;
}

.lgpd-banner.hidden {
  display: none !important;
}

.lgpd-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow-500);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lgpd-content p {
  font-size: 0.85rem;
  color: var(--slate-300);
  line-height: 1.45;
}

.lgpd-content a {
  color: var(--yellow-500);
  text-decoration: underline;
}

.lgpd-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-lgpd-accept {
  background: var(--yellow-500);
  color: var(--navy-900);
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lgpd-accept:hover {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(255, 209, 0, 0.4);
}

.btn-lgpd-close {
  background: transparent;
  color: var(--slate-400);
  border: 1px solid var(--slate-600);
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lgpd-close:hover {
  color: var(--white);
  border-color: var(--slate-400);
}

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