:root {
  --bg-body: #f4f4f4;
  --text-dark: #111111;
  --text-light: #ffffff;
  --radius-xl: 32px;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --whatsapp-hover: #22c55e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.bg-soft {
  background-color: #f3f7f5;
}

/*=== HERO ===*/

.hero {
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  padding: clamp(20px, 5vw, 40px) 0 clamp(8px, 2vw, 10px) 0;
}

/* Camada do parallax */
.fixed-background {
  position: fixed;
  inset: 0;
  background-color: #506821;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(75, 97, 31, 0.55)),
    url("../imagens/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
  will-change: auto;
}

/* Overlay adicional */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.03),
    transparent 60%
  );
  z-index: -1;
}

/* Conteúdo */
.hero-content {
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: clamp(0.6rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin-bottom: 2rem;
}

/*=== BTN WHATSAPP ===*/

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  will-change: transform;
}

.btn-whatsapp--dark {
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp--soft {
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

/* ÍCONES */
.btn-whatsapp i {
  font-size: 1.2rem;
  line-height: 1;
}

/* HOVER */
.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn-whatsapp--dark:hover {
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp--soft:hover {
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.8);
}

/* ACTIVE */
.btn-whatsapp:active {
  transform: translateY(0);
}

/* FOCUS ACCESSÍVEL */
.btn-whatsapp:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

/* BOTÃO FLUTUANTE */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  will-change: transform;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.3);
}

/* Texto abaixo do botão */
.hero-contact-text {
  margin-top: 1rem;
  font-size: 0.92rem !important;
  line-height: 1.6;
}

.hero-contact-text strong {
  font-weight: 700;
}

.hero .hero-contact-text {
  color: rgba(255, 255, 255, 0.72) !important;
}

.hero .hero-contact-text > strong {
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .btn-hero {
    width: 100%;
    min-height: 58px;
    font-size: 0.96rem !important;
    padding-inline: 1.4rem;
  }

  .hero-contact-text {
    text-align: center;
  }
}

/* Scroll indicator */
.scroll-indicator {
  margin-bottom: 10px;
  transform: translateX(-50%);
  width: 32px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
  transform: translateX(-50%);
  animation: wheel 1.6s infinite;
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

/*=== MAIN SECTION ===*/

.section-first {
  position: relative;
  border-top: 10px solid #c0da8b;
  background-color: #fcfcfd;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.content-card {
  padding: 2rem;
  border-radius: 24px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: clamp(1rem, 1.5vw, 2rem);
  background-color: #f3f7f5;
  box-shadow: var(--token-elevation-sm, 0 2px 6px rgba(0, 0, 0, 0.08));
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.content-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-card p {
  color: #666;
  line-height: 1.7;
}

/*=== RESPONSIVO ===*/

@media (max-width: 991px) {
  .hero {
    min-height: 85vh;
  }

  .fixed-background {
    background-color: #506821;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.25), rgba(75, 97, 31, 0.55)),
      url("../imagens/background-sm.jpg");
  }

  .section-first {
    margin-top: -60px;
  }
}

/* Mobile: remove parallax pesado */
@media (max-width: 768px) {
  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    line-height: 1.02;
  }

  .hero p {
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .section-first {
    border-radius: 24px 24px 0 0;
  }
}

/*==== INITIATIVE SECTION ====*/

.initiative-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(to bottom, #f4f4f4, #ffffff);
}

/* Wrapper */
.initiative-wrapper {
  position: relative;
  padding: 4.5rem;
  border-radius: 36px;
  background-color: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Topbar verde */
.initiative-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d3b2f, #145240);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Espaço abaixo da topbar */
.initiative-wrapper .row {
  padding-top: 4rem;
}

/*=== IMAGENS ===*/

.brand-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.brand-img:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* Tamanhos refinados */
.brand-img-1 {
  width: min(110px, 50%);
}

.brand-img-2 {
  width: min(110px, 50%);
}

/* Logo principal */
.initiative-logo {
  width: min(260px, 100%);
}

/*=== CONTENT ===*/

.initiative-content {
  max-width: 620px;
}

.initiative-content h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #111111;
  margin-bottom: 1.5rem;
}

.initiative-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #5e5e5e;
  max-width: 560px;
}

/*=== RESPONSIVO  ===*/

@media (max-width: 991px) {
  .initiative-section {
    padding: 90px 0;
  }

  .initiative-wrapper {
    padding: 4rem 2rem 2.5rem;
  }

  .initiative-wrapper .row {
    padding-top: 3rem;
  }

  .initiative-logo {
    display: block;
    margin: 0 auto;
  }

  .initiative-content {
    text-align: center;
    margin: 1rem auto 0;
  }

  .initiative-content p {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .initiative-section {
    padding: 70px 0;
  }

  .initiative-wrapper {
    border-radius: 28px;
    padding: 4rem 1.5rem 2rem;
  }

  .initiative-topbar {
    height: 60px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .brand-img-1,
  .brand-img-2 {
    width: 85px;
  }

  .initiative-logo {
    width: 220px;
  }

  .initiative-content h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .initiative-content p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* ===== Logo Grid ===== */
.logo-grid {
  align-items: center;
}

/* Bootstrap columns */
.logo-grid > [class*="col"] {
  display: flex;
}

/* Card do logo */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: clamp(0.5rem, 1vw, 1rem);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  /* Performance */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: content;
}

/* Hover apenas desktop */
@media (hover: hover) {
  .logo-item:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 110, 253, 0.18);
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.08),
      0 4px 10px rgba(13, 110, 253, 0.08);
  }

  .logo-item:hover img {
    transform: scale(1.03);
    filter: saturate(1.05);
  }
}

/* Imagem */
.logo-grid img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
  image-rendering: auto;
}

/* sm ≥576px */
@media (min-width: 576px) {
  .logo-grid img {
    height: 80px;
  }
}

/* md ≥768px */
@media (min-width: 768px) {
  .logo-grid img {
    height: 80px;
  }
}

/* lg ≥992px */
@media (min-width: 992px) {
  .logo-grid img {
    height: 70px;
  }
}

/* xl ≥1200px */
@media (min-width: 1200px) {
  .logo-grid img {
    height: 90px;
  }
}

/* xxl ≥1400px */
@media (min-width: 1400px) {
  .logo-grid img {
    height: 110px;
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .logo-item,
  .logo-grid img {
    transition: none;
  }
}

.card-effect {
  border: 1px solid #dce7e1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  will-change: transform;
}

.card-effect:hover {
  transform: translateY(-4px);
  border-color: #c9d8d1;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.case-card {
  max-width: 320px;
  background-color: #fcfcfd;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: clamp(0.5rem, 1vw, 1rem);
  padding: 1rem;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--token-elevation-sm, 0 2px 6px rgba(0, 0, 0, 0.08));
  transition: all 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--token-elevation-card-hover, 0 8px 20px rgba(0, 0, 0, 0.12));
}

.case-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-media img {
  max-height: 42px;
  object-fit: contain;
}

.case-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.15);
}

.city-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.status {
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 6px;
}

.status.implantacao {
  color: #0d6efd;
}

.status.preparacao {
  color: #ffc107;
}

.status.ativo {
  color: #198754;
}

.animate {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.profile-img {
  width: clamp(80px, 20vw, 120px);
}

.phone {
  white-space: nowrap;
}
