﻿/*
 * main.css - Custom styles for the LEMO landing page.
 */

:root {
  --color-primary: #082351;
  --color-secondary: #67c3f6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.font-primary {
  font-family: "Poppins", sans-serif;
}

.hero {
  /* Replace the URL below with an official brand image when available. */
  background-image: url('../images/centro-distribuicao.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.section-alt {
  position: relative;
  background-color: rgba(8, 35, 81, 0.08);
  background-image:
    linear-gradient(120deg, rgba(8, 35, 81, 0.72), rgba(8, 35, 81, 0.48)),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Continuous marquee animation for client logos */
.logo-marquee {
  width: max-content;
  animation: logo-scroll 24s linear infinite;
}

.logo-marquee__group {
  align-items: center;
}

.logo-marquee__logo {
  height: 48px;
  width: auto;
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.8;
}

.logo-marquee__logo:hover,
.logo-marquee__logo:focus {
  filter: grayscale(0%);
  opacity: 1;
}

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

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

.floating-profile-card {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.4rem;
  border-radius: 1.0rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 35px rgba(8, 35, 81, 0.18);
  backdrop-filter: blur(10px);
}

.floating-profile-card p:first-child {
  margin: 0;
}

.floating-profile-card p:last-child {
  margin: 0;
  letter-spacing: 0.18em;
}

.site-logo {
  border: none;
  outline: none;
  box-shadow: none;
}

@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .floating-profile-card {
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .section-alt {
    background-attachment: scroll;
  }
}

@media (max-width: 1024px) {
  .floating-profile-card {
    position: static;
    margin-top: 1rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 24px rgba(8, 35, 81, 0.12);
  }
}


.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
  opacity: 1;
}
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 20px 45px rgba(8, 35, 81, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  z-index: 40;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-cta:hover,
.floating-cta:focus-visible {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(8, 35, 81, 0.26);
}

.floating-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 0.75rem 1.2rem;
  }
}

.shimmer-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(8, 35, 81, 0.9), rgba(8, 35, 81, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 22px 45px rgba(8, 35, 81, 0.28);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shimmer-button::before,
.shimmer-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.shimmer-button::before {
  background: radial-gradient(circle at top left, rgba(103, 195, 246, 0.45), transparent 55%);
  opacity: 0.9;
}

.shimmer-button::after {
  transform: translateX(-120%);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer-sweep 4.6s ease-in-out infinite;
}

.shimmer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(8, 35, 81, 0.36);
}

.shimmer-button:focus-visible {
  outline: 3px solid rgba(103, 195, 246, 0.7);
  outline-offset: 4px;
}

.shimmer-button:active {
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  right: 1.5rem;
  top: calc(100% + 0.75rem);
  width: min(18rem, 90vw);
  max-height: 0;
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(8, 35, 81, 0.18);
  z-index: 30;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.is-open {
  max-height: 24rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.animated-stats {
  background-color: #E1F3FD;
}

.animated-stats__grid {
  display: grid;
  gap: 2.5rem;
}

.animated-stats__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.animated-stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background-color: rgba(8, 35, 81, 0.12);
  color: #082351;
  margin-bottom: 0.25rem;
}

.animated-stats__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.animated-stats__value {
  font-size: clamp(2rem, 4.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: #082351;
  letter-spacing: 0.04em;
}

.animated-stats__label {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.7);
}

@media (min-width: 640px) {
  .animated-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .animated-stats__card {
    align-items: flex-start;
    text-align: left;
  }

  .mobile-nav {
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
  }
}

@media (min-width: 768px) {
  .animated-stats__card {
    align-items: center;
    text-align: center;
  }

  .mobile-nav {
    position: static;
    width: auto;
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
    box-shadow: none;
  }
}

@keyframes shimmer-sweep {
  0% {
    transform: translateX(-150%);
  }
  55% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(150%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-button {
    transition: none;
  }

  .shimmer-button::after {
    animation: none;
  }
}

.contact-section {
  position: relative;
  overflow: hidden;
  background-image: url("https://images.unsplash.com/photo-1556740749-887f6717d7e4?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 35, 81, 0.85), rgba(8, 35, 81, 0.7));
}

.contact-content {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  background: rgba(8, 35, 81, 0.75);
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .contact-section {
    background-attachment: scroll;
  }
}
