/* ═══════════════════════════════════════════
   PEDRO LUPION — DESIGN SYSTEM CSS V3
   Tone: Editorial / Refined Institutional
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --azul-primario: #1E4FA3;
  --azul-profundo: #163D80;
  --azul-claro: #E7EFFA;
  --off-white: #F6F8FB;
  --branco: #FFFFFF;
  --preto-suave: #1C1F24;
  --cinza-medio: #6B7280;
  --cinza-claro: #D9E0EC;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --shadow-card: 0 2px 8px rgba(30, 79, 163, 0.06), 0 8px 24px rgba(30, 79, 163, 0.08);
  --shadow-elevated: 0 4px 12px rgba(30, 79, 163, 0.08), 0 16px 40px rgba(30, 79, 163, 0.12);
  --shadow-floating: 0 8px 24px rgba(30, 79, 163, 0.1), 0 24px 60px rgba(30, 79, 163, 0.15);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: 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;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--preto-suave);
  background: var(--off-white);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--preto-suave);
}

h1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azul-primario);
  margin-bottom: 0.75rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── SPACING FIX: 72px desktop, 56px mobile ─── */
section {
  padding: 72px 0;
  position: relative;
}

.bg-white {
  background: var(--branco);
}

.bg-off-white {
  background: var(--off-white);
}

.bg-azul-claro {
  background: var(--azul-claro);
}

.bg-azul {
  background: var(--azul-primario);
  color: var(--branco);
}

.bg-azul-profundo {
  background: var(--azul-profundo);
  color: var(--branco);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-60-40 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(246, 248, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--cinza-claro);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 34px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cinza-medio);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--azul-primario);
}

/* ─── NAV CTA FIX: solid blue, white text ─── */
.nav-cta {
  background: var(--azul-primario);
  color: var(--branco) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--azul-profundo);
  transform: translateY(-1px);
  color: var(--branco) !important;
}

/* ─── Hero V3: Closer to nav, gradient, stronger ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #F6F8FB 0%, #EDF3FF 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 79, 163, 0.08);
  color: var(--azul-primario);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: 0.4rem;
  line-height: 0.92;
}

.hero h1 span {
  color: var(--azul-primario);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--preto-suave);
  margin-bottom: 0.4rem;
  font-style: italic;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--azul-primario);
  margin: 0.75rem 0;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--cinza-medio);
  max-width: 460px;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  border-radius: 14px;
  object-fit: cover;
  object-position: center 15%;
  width: 100%;
  height: 580px;
  box-shadow: var(--shadow-floating);
}

.hero-photo::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  background: var(--azul-primario);
  opacity: 0.08;
  border-radius: 16px;
  z-index: -1;
}

.hero-photo::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: -20px;
  left: -20px;
  background: var(--azul-primario);
  opacity: 0.04;
  border-radius: 16px;
  z-index: -2;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--azul-primario);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.95rem 2.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-primary:hover {
  background: var(--azul-profundo);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 79, 163, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--preto-suave);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  border: 2px solid var(--cinza-claro);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--azul-primario);
  color: var(--azul-primario);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ─── Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--branco);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--azul-primario);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--cinza-medio);
  font-weight: 500;
}

/* ─── Radial Chart ─── */
.radial-chart {
  width: 240px;
  height: 240px;
  position: relative;
  margin: 0 auto;
}

.radial-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-track {
  fill: none;
  stroke: var(--cinza-claro);
  stroke-width: 20;
}

.radial-fill {
  fill: none;
  stroke: var(--azul-primario);
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 0 999;
  transition: stroke-dasharray 2s var(--ease-smooth);
}

.radial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--azul-primario);
  line-height: 1;
}

.radial-label {
  font-size: 0.75rem;
  color: var(--cinza-medio);
  margin-top: 4px;
}

/* ─── Progress Bars ─── */
.progress-row {
  margin-bottom: 1rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.progress-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.progress-value {
  font-weight: 700;
  color: var(--azul-primario);
  font-size: 0.85rem;
}

.progress-track {
  height: 8px;
  background: var(--cinza-claro);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul-primario), var(--azul-profundo));
  border-radius: 100px;
  width: 0%;
  transition: width 1.5s var(--ease-smooth);
}

/* ─── TIMELINE V2: Visual, animated ─── */
.timeline {
  position: relative;
  padding: 1.5rem 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--azul-primario) var(--cinza-claro);
}

.timeline::-webkit-scrollbar {
  height: 4px;
}

.timeline::-webkit-scrollbar-track {
  background: var(--cinza-claro);
  border-radius: 10px;
}

.timeline::-webkit-scrollbar-thumb {
  background: var(--azul-primario);
  border-radius: 10px;
}

.timeline-track {
  display: flex;
  min-width: max-content;
  padding: 2rem 1rem;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: calc(2rem + 8px);
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--cinza-claro);
}

.timeline-item {
  flex: 0 0 170px;
  text-align: center;
  position: relative;
  padding-top: 32px;
  opacity: 0.4;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: var(--cinza-claro);
  border: 3px solid var(--branco);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: all 0.4s var(--ease-spring);
}

.timeline-item.active .timeline-dot {
  background: var(--azul-primario);
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 4px var(--azul-claro);
}

.timeline-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul-primario);
  line-height: 1;
}

.timeline-text {
  font-size: 0.75rem;
  color: var(--cinza-medio);
  max-width: 140px;
  margin: 0.2rem auto 0;
  line-height: 1.35;
}

/* ─── Social Feed ─── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.social-post {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cinza-claro);
  cursor: pointer;
}

.social-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.social-post:hover img {
  transform: scale(1.05);
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid var(--cinza-claro);
  background: var(--branco);
  color: var(--preto-suave);
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--azul-primario);
  color: var(--azul-primario);
  transform: translateX(4px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── FORM ─── */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cinza-medio);
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--cinza-claro);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: var(--off-white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--azul-primario);
  box-shadow: 0 0 0 3px var(--azul-claro);
}

.btn-form {
  width: 100%;
  padding: 0.85rem;
  background: var(--azul-primario);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.btn-form:hover {
  background: var(--azul-profundo);
  transform: translateY(-1px);
}

/* ─── CTA Card ─── */
.cta-card {
  background: var(--branco);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-floating);
}

/* ─── Contact Block ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--azul-claro);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-primario);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--cinza-medio);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ─── Quote ─── */
.quote-block {
  border-left: 3px solid var(--azul-primario);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--azul-claro);
  border-radius: 0 8px 8px 0;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--preto-suave);
  line-height: 1.5;
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--azul-primario);
  margin-top: 0.4rem;
}

/* ─── FOOTER V3: Compact, 5 columns ─── */
.site-footer {
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-top: 0.4rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  transition: color 0.2s;
  line-height: 1.3;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--branco);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─── Image consistency ─── */
.img-cover {
  border-radius: 10px;
  box-shadow: var(--shadow-elevated);
  object-fit: cover;
  object-position: center 25%;
  width: 100%;
}

.img-rounded {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--branco);
  box-shadow: var(--shadow-card);
}

/* ─── Republicanos Section ─── */
.republicanos-video {
  border-radius: 10px;
  overflow: hidden;
  max-width: 280px;
}

.republicanos-video video {
  width: 100%;
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .split,
  .split-60-40 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 56px;
  }

  .hero-photo img {
    height: 360px;
  }

  .header-nav {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    flex: 0 0 140px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}