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

:root {
  --color-primary: #0047BA;       /* Azul PSDB */
  --color-primary-dark: #002D7A;
  --color-primary-light: #EBF2FC;
  --color-navy: #0A1931;          /* Azul Profundo */
  --color-navy-dark: #060F1E;
  --color-green: #00843D;         /* Verde Bandeira */
  --color-green-light: #E6F5EC;
  --color-yellow: #FED100;        /* Amarelo Ouro */
  --color-yellow-dark: #D4AF37;
  --color-text-main: #1F2937;
  --color-text-muted: #6B7280;
  --color-bg-light: #F8FAFC;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  
  --font-heading: 'Outfit', 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-blue: 0 10px 25px -5px rgba(0, 71, 186, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --container-max: 1600px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   HEADER PRINCIPAL — BARRA AZUL COM FITA AMARELA EMBAIXO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #07509a;
  border-bottom: 6px solid #fed100;
  box-shadow: 0 4px 12px rgba(0, 45, 122, 0.25);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  height: 78px;
  gap: 1.5rem;
}

.header-identity {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.header-candidate-logo {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.header-candidate-number {
  width: 180px;
  height: auto;
  margin: 0 1rem;
  flex: 0 0 auto;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.btn-menu-drawer {
  background: transparent;
  color: #FFFFFF;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0 0.4rem 1rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-menu-drawer:hover {
  color: #fed100;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 31px;
}

.hamburger-lines span {
  display: block;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.menu-label {
  font-style: italic;
  text-transform: lowercase;
}

.btn-header-faca-parte {
  background: #FED100;
  color: #0A1931;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.64rem 1.35rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: var(--transition);
}

.btn-header-faca-parte:hover {
  background: #FFFFFF;
  color: #0047BA;
  transform: translateY(-2px);
}

.social-links-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: #FED100;
  color: #0A1931;
  border-color: #FED100;
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
}

.header-party-brand {
  width: 150px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-party-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .header-candidate-number {
    width: 165px;
    margin: 0 1rem;
  }

  .header-party-brand {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-container {
    height: 72px;
  }

  .header-candidate-logo {
    height: 48px;
  }

  .header-candidate-number {
    width: 138px;
    margin: 0 0.8rem;
  }

  .social-links-header {
    display: none;
  }
}

@media (max-width: 700px) {
  .header-container {
    height: 66px;
    padding-left: 0;
    gap: 0.6rem;
  }

  .header-candidate-logo {
    height: 42px;
  }

  .btn-header-faca-parte {
    display: none;
  }

  .header-candidate-number {
    width: 110px;
    margin: 0 0.55rem;
  }

  .btn-menu-drawer {
    border-left: 0;
    padding-left: 0.65rem;
  }

  .hamburger-lines {
    width: 27px;
  }
}

@media (max-width: 380px) {
  .header-candidate-logo {
    height: 38px;
  }

  .header-candidate-number {
    width: 84px;
    margin: 0 0.4rem;
  }

  .menu-label {
    display: none;
  }
}

/* ==========================================================================
   MENU DRAWER FULLSCREEN (ESTILO PSDB)
   ========================================================================== */
.menu-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 30, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 560px;
  height: 100vh;
  background: linear-gradient(180deg, #0047BA 0%, #061A40 100%);
  color: var(--color-white);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-drawer-overlay.active .menu-drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.drawer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-yellow);
}

.btn-drawer-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-drawer-close:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.drawer-nav {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.drawer-block-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.drawer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}

.drawer-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: var(--transition);
}

.drawer-link:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.drawer-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.drawer-footer-cta {
  background: var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  display: block;
  transition: var(--transition);
}

.drawer-footer-cta:hover {
  background: var(--color-white);
  transform: translateY(-2px);
}

/* Logos brancas no topo do drawer */
.drawer-brand-logos {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.drawer-logo-glaycon {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.drawer-logo-numero {
  height: 30px;
  width: auto;
  object-fit: contain;
}

/* Desktop: painel abre ancorado no início do menu sanduíche, indo pra frente */
@media (min-width: 901px) {
  .menu-drawer-content {
    top: 78px;
    left: var(--drawer-left, 260px);
    right: auto;
    width: min(760px, calc(100vw - var(--drawer-left, 260px) - 24px));
    height: auto;
    max-height: calc(100vh - 102px);
    padding: 1.9rem 2rem 2.1rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 60px rgba(3, 20, 50, 0.45);
    transform: translateY(-16px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .menu-drawer-overlay.active .menu-drawer-content {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .drawer-brand-logos {
    gap: 0.7rem;
  }

  .drawer-logo-glaycon {
    height: 36px;
  }

  .drawer-logo-numero {
    height: 24px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-brand h3 span {
  color: var(--color-yellow);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-yellow);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.footer-links a:hover {
  color: var(--color-white);
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.footer-legal a:hover {
  color: var(--color-yellow);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .social-links-header {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .drawer-links-grid {
    grid-template-columns: 1fr;
  }
}
