/* ==========================================================================
   Domingos Filho 55555 - Deputado Estadual
   ========================================================================== */

:root {
  --azul: #0e86ab;
  --azul-escuro: #142c5e;
  --verde: #6cc417;
  --verde-escuro: #4a8c0c;
  --amarelo: #f5a623;
  --branco: #ffffff;
  --texto: #142c5e;

  --container: 1200px;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--verde);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   LOADER
   ========================================================================== */

body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding-bottom: 16vh;
  overflow: hidden;
  background: url("../assets/img/bg-verde.png") center/cover repeat, var(--verde);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.loader.loader--hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.loader__mascot {
  position: absolute;
  top: 38%;
  left: 0;
  width: min(240px, 50vw);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.25));
  animation: loader-fly 2.8s linear infinite;
}

.loader__bar {
  width: min(220px, 60vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 44, 94, 0.15);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: var(--azul-escuro);
  animation: loader-bar 1.2s ease-in-out infinite;
}

.loader__text {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--azul-escuro);
  font-family: var(--font-display);
}

@keyframes loader-fly {
  0% { transform: translate(-35vw, -50%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(135vw, -50%); opacity: 0; }
}

@keyframes loader-bar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: url("../assets/img/bg-azul.png") center/cover no-repeat, var(--azul);
  padding: 56px 24px 0;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.hero__photo-wrap {
  flex: 0 0 auto;
  height: min(380px, 36vw);
  overflow: hidden;
  animation: rise-in 0.8s ease both;
}

.hero__photo {
  display: block;
  width: min(480px, 46vw);
  min-width: 220px;
  position: relative;
  z-index: 2;
}

.hero__brand {
  flex: 1 1 320px;
  align-self: flex-start;
  margin-top: 90px;
  margin-left: -28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: rise-in 0.8s ease 0.15s both;
}

.hero__logo {
  width: min(720px, 100%);
}

.hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-btn {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-btn img {
  width: 190px;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.06);
}

.social-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.content {
  position: relative;
  background: url("../assets/img/bg-verde.png") center/cover repeat, var(--verde);
  padding: 64px 24px 80px;
}

.content__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.content__text {
  animation: fade-up 0.8s ease both;
}

.content__text h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: var(--azul-escuro);
  letter-spacing: 0.5px;
}

.content__text .subtitle {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--azul-escuro);
  letter-spacing: 0.4px;
}

.content__text p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #14284a;
}

.content__text p:last-child {
  margin-bottom: 0;
}

.content__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  animation: fade-up 0.8s ease 0.15s both;
}

.content__mascot {
  width: min(320px, 100%);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.content__mascot:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.content__cta-label {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--azul-escuro);
  letter-spacing: 0.3px;
}

.content__side .social-btn img {
  width: 220px;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */

.site-footer {
  background: var(--azul-escuro);
  border-top: 3px solid var(--amarelo);
  padding: 36px 20px;
  text-align: center;
}

.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
}

.site-footer__legal {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.7;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.site-footer__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.site-footer__dot {
  color: var(--amarelo);
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--amarelo);
}

@media (max-width: 480px) {
  .site-footer__dot {
    display: none;
  }

  .site-footer__meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */

.whats-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  border-radius: 50px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  animation: whats-pulse 2.4s ease-in-out infinite;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whats-float.whats-float--hidden {
  opacity: 0;
  transform: scale(0.85) translateY(12px);
  pointer-events: none;
}

.whats-float:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

@keyframes whats-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 900px) {
  .content__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px 48px;
    text-align: center;
  }

  .hero__inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero__photo-wrap {
    height: min(235px, 53vw);
  }

  .hero__photo {
    width: min(300px, 68vw);
  }

  .hero__brand {
    align-items: center;
    align-self: auto;
    margin-left: 0;
    margin-top: 0;
  }

  .hero__socials {
    justify-content: center;
  }

  .content {
    padding: 48px 20px 64px;
  }
}

@media (max-width: 420px) {
  .social-btn img {
    width: 160px;
  }

  .content__side .social-btn img {
    width: 190px;
  }
}
