/* ==================== LANDING PAGE STYLES ==================== */
/* Professional, Human-Centric Aesthetic */

/* Reset global layout for landing page */
body {
  display: block;
  padding: 0;
  grid-template-columns: none;
  gap: 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80dvh; /* Dynamic viewport height for mobile */
  padding: 80px 0 140px;
  color: white;
  overflow: hidden;
  background-color: var(--blue-900);
  display: flex;
  align-items: center;
}

/* Hero Background Image with Parallax/Zoom Effect */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--blue-900);
  /* Fallback color */
  z-index: 0;
}

/* Professional Dark Overlay for Readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 47, 92, 0.7) 0%,
    rgba(25, 35, 59, 0.6) 50%,
    rgba(15, 23, 42, 0.9) 100%
  );
  z-index: 1;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  /* Above overlay */
}

.hero-content {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animations for Content Entrance */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 {
  animation-delay: 0.2s;
}

.delay-200 {
  animation-delay: 0.4s;
}

.delay-300 {
  animation-delay: 0.6s;
}

.delay-400 {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  color: white;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: white;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  color: var(--orange-300);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  max-width: 680px;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Actions */
.hero-actions {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  color: white;
  padding: 20px 48px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(229, 158, 61, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary-hero:hover::before {
  left: 100%;
}

.btn-primary-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 40px rgba(229, 158, 61, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(
    135deg,
    var(--orange-400, #e5a33d) 0%,
    var(--orange-600) 100%
  );
  color: white;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: white;
  padding: 20px 48px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-secondary-hero:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  color: white;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-300);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item span {
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==================== TYPING EFFECT ==================== */
.typing-text {
  position: relative;
  font-weight: 800;
  display: inline-block;
  min-width: 200px;
}

.typing-text::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 10%;
  height: 80%;
  width: 4px;
  background-color: var(--orange-300);
  border-radius: 2px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ==================== STATS SECTION ==================== */
.stats-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0 32px;
  margin-bottom: 100px;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gray-200);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =================== CATEGORIES SECTION ==================== */
.categories-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 100px 32px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-title {
  line-height: 1.2;
  margin-bottom: 16px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.category-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 420px;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.category-image {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

/* Category Specific Images */
/* Category Specific Images */
.category-image.construction {
  background-image: url("/assets/images/banners/construcao.webp");
}

.category-image.tools {
  background-image: url("/assets/images/banners/bricolage.webp");
}

.category-image.hvac {
  background-image: url("/assets/images/banners/climatizacao.webp");
}

.category-image.lighting {
  background-image: url("/assets/images/banners/iluminacao e eletrica.webp");
}

/* Image Zoom on Hover */
.category-card:hover .category-image {
  transform: scale(1.1);
}

/* Overlay */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.category-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.category-image svg {
  display: none;
}

.category-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 40px 32px;
  color: white;
}

.category-content h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-content p {
  opacity: 1;
}

.category-btn {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-btn:hover {
  background: white;
  color: var(--blue-900);
  padding-right: 28px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  min-height: 60vh;
  min-height: 60dvh;
  padding: 100px 32px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-content {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  border-radius: 32px;
  padding: 80px 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.cta-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: white;
  position: relative;
  font-weight: 800;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--blue-100);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.cta-btn-primary {
  background: white;
  color: var(--blue-900);
  padding: 18px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: var(--gray-50);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  padding: 18px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* ==================== SCROLL REVEAL ANIMATION ==================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.category-card:nth-child(1) {
  transition-delay: 0s;
}

.category-card:nth-child(2) {
  transition-delay: 0.1s;
}

.category-card:nth-child(3) {
  transition-delay: 0.2s;
}

.category-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-indicators {
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 0 60px;
  }

  .hero-content {
    padding: 0 8px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 24px;
    margin-bottom: 32px;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .btn-primary-hero {
    border-radius: 14px;
  }

  .btn-secondary-hero {
    border-radius: 14px;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
  }

  .trust-item {
    justify-content: center;
  }

  .stats-section {
    margin-top: -40px;
    margin-bottom: 60px;
    padding: 0 16px;
  }

  .stats-container {
    padding: 24px 16px;
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .categories-section {
    min-height: auto;
    padding: 60px 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .cta-section {
    min-height: auto;
    padding: 60px 16px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-content {
    padding: 48px 24px;
    border-radius: 24px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 0 40px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 14px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding: 0 8px;
  }

  .hero-container {
    padding: 0 12px;
  }

  .hero-actions {
    padding: 0 12px;
    gap: 10px;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .trust-indicators {
    gap: 16px;
    margin-top: 12px;
  }

  .trust-item {
    gap: 12px;
  }

  .trust-icon-box {
    width: 40px;
    height: 40px;
  }

  .trust-item span {
    font-size: 0.9rem;
  }

  .stats-section {
    margin-top: -30px;
    margin-bottom: 40px;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 12px;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-item::after {
    display: none !important;
  }

  .categories-section {
    padding: 40px 12px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    height: auto;
    min-height: 280px;
  }

  .promo-section {
    padding: 40px 16px;
  }

  .promo-content h3 {
    font-size: 1.5rem;
  }

  .promo-content p {
    font-size: 1rem;
  }

  .cta-section {
    padding: 40px 12px;
  }

  .cta-content {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    padding: 14px 24px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
}

/* ==================== PROMO BANNER ==================== */
.promo-section {
  padding: 80px 32px;
  background: linear-gradient(135deg, #ff6b35 0%, #f97316 100%);
  /* Full width orange gradient */
  position: relative;
  overflow: hidden;
}

.promo-section::before {
  /* Optional: Overlay texture or shape if needed, effectively moving the ::before form .promo-banner to here if we want the effect on the full width, or keep it inner */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
  transform: skewX(-20deg) translateX(50px);
  pointer-events: none;
}

.promo-banner {
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  /* Transparent container */
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.promo-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.promo-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.5;
}

.promo-btn {
  background: white;
  color: #ff6b35;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: var(--gray-50);
}

@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 40px 24px;
  }

  .promo-content h3 {
    font-size: 2rem;
  }
}
