/* ============================================ */
/* HOME.CSS — Transfé Transportes               */
/* Exclusivo: index.html                        */
/* ============================================ */

/* Override: hero home tem padding maior para o card overlapping */
/* overflow: visible permite que o #frota-badge-section (margin-top negativo) renderize sem corte */
/* padding-bottom 120px: calculado para o badge aparecer completo em Full HD (1920x1080) */
.hero { padding: 80px 24px 120px; overflow: visible; }

/* ============================================ */
/* HERO FORM (card do lado direito)             */
/* ============================================ */
.hero-form-group { margin-bottom: 14px; }
.hero-form-group label {
  font-family: var(--font-data); font-size: 11px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-500); display: block; margin-bottom: 6px;
}
.hero-form-group input, .hero-form-group select, .hero-form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--white); font-family: var(--font-body); font-size: 14px;
  transition: border-color 0.3s; outline: none;
}
.hero-form-group input::placeholder, .hero-form-group textarea::placeholder {
  color: var(--gray-500);
}
.hero-form-group input:focus, .hero-form-group textarea:focus {
  border-color: var(--orange);
}
.hero-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-form-submit {
  width: 100%; padding: 16px; border-radius: 12px;
  background: var(--orange); color: #fff; border: none;
  font-family: var(--font-cta); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.3s, transform 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(249,115,22,0.3); margin-top: 8px;
}
.hero-form-submit:hover { background: var(--orange-hover); transform: translateY(-2px); }
.hero-form-submit svg { width: 20px; height: 20px; }
.hero-form-trust {
  display: flex; align-items: center; gap: 6px; margin-top: 12px;
  justify-content: center;
}
.hero-form-trust svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.hero-form-trust span {
  font-family: var(--font-data); font-size: 11px; color: var(--gray-500);
}

/* ============================================ */
/* SCROLL INDICATOR                             */
/* ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 50;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.scroll-indicator:hover {
  transform: translateX(-50%) translateY(5px);
}
.scroll-text {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInOut 2s ease-in-out infinite;
}
.scroll-indicator-mobile {
  position: absolute;
  bottom: 740px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  z-index: 50;
  text-align: center;
  animation: fadeInOut 2s ease-in-out infinite;
  pointer-events: none;
}
.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(18px); }
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================ */
/* MEDIA QUERIES — HOME ONLY                    */
/* ============================================ */
@media (max-width: 768px) {
  .hero { padding: 48px 24px 120px; }
  .scroll-indicator { display: none !important; }
  .scroll-indicator-mobile { display: block !important; position: relative; bottom: auto; left: auto; transform: none; margin: 20px 0; }
  .hero-form-row { grid-template-columns: 1fr; }
}


/* ============================================ */
/* PARALLAX HERO BACKGROUND (desktop only)      */
/* ============================================ */
@media (min-width: 1024px) {
  .hero::before {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform 0.9s ease-out;
    will-change: transform;
  }
}

@media (max-width: 640px) {
  #frota-badge {
    flex-direction: column !important;
    padding: 24px 20px !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }
  #frota-badge > div:first-child {
    width: 100%;
  }
  #frota-badge-stats {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
  }
  #frota-badge-stats > div {
    border-left: none !important;
    padding: 0 !important;
    text-align: center;
  }
  #frota-badge-stats > div:not(:first-child) {
    border-left: 1px solid rgba(255,255,255,0.15) !important;
  }
  #frota-badge-section {
    margin-top: 16px !important;
  }
}
