/* ==========================================================================
   LANDING PAGE INSTITUCIONAL — DEPUTADO ESTADUAL NATANAEL VIDA BOA
   Stack: HTML5 + CSS3 + Vanilla JS
   Tipografia: Montserrat Exclusiva
   Design: Editorial Clean & Sofisticado
   ========================================================================== */

/* --- VARIÁVEIS & DESIGN TOKENS --- */
:root {
  --color-primary: #0a2a5e;
  --color-primary-dark: #061738;
  --color-accent: #f2ac00;
  
  --color-text-title: #0a2a5e;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  
  --color-bg-white: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-border: #e2e8f0;

  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-editorial: 1040px;
  --transition-fast: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  line-height: 1.1;
}

.brand-role {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-body);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-fast);
}

/* --- HERO SECTION COM TEXTO SOBRE A ÁREA BRANCA --- */
.hero-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-media-wrapper {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  justify-content: flex-end;
  line-height: 0;
}

.hero-banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Texto sobre a área branca do Hero (Desktop) */
.hero-text-overlay {
  position: absolute;
  left: clamp(24px, 4vw, 60px);
  top: clamp(24px, 5vh, 50px);
  transform: none;
  width: min(520px, 36%);
  max-width: 520px;
  z-index: 2;
  padding: 0;
}

.hero-story-heading {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-accent);
  padding-left: 14px;
  letter-spacing: -0.01em;
}

.hero-story-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-story-paragraphs p {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.68;
  color: var(--color-text-body);
  font-weight: 500;
}

/* --- CONTEÚDO EDITORIAL --- */
.editorial-section {
  padding: 80px 24px 100px;
  background-color: #ffffff;
}

.editorial-container {
  max-width: var(--container-editorial);
  margin: 0 auto;
}

/* Blocos Editoriais */
.editorial-block {
  margin-bottom: 56px;
}

.editorial-block:last-child {
  margin-bottom: 0;
}

.block-with-photo {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.editorial-heading {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--color-primary);
  padding-left: 14px;
}

.editorial-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
}

.editorial-paragraphs p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-text-body);
  font-weight: 400;
}

/* Coluna de Fotografia Editorial */
.editorial-image-col {
  width: 100%;
}

.photo-frame {
  width: 100%;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.editorial-portrait {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Destaque Final */
.editorial-highlight {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-bg-subtle);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  margin-top: 16px;
  line-height: 1.7;
}

/* --- FOOTER MINIMALISTA --- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.footer-role {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1140px) {
  .hero-container {
    flex-direction: column;
    min-height: auto;
  }

  .hero-text-overlay {
    position: relative;
    width: 100%;
    max-width: 100%;
    left: auto;
    top: auto;
    transform: none;
    padding: 40px 24px 20px;
  }

  .hero-story-heading {
    font-size: 1.375rem;
  }

  .hero-story-paragraphs p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .block-with-photo {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .editorial-image-col {
    max-width: 440px;
  }
}

@media (max-width: 768px) {
  .editorial-section {
    padding: 48px 20px 64px;
  }

  .editorial-block {
    margin-bottom: 44px;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }

  .nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
