/* Per-section styles, in page order. */

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  color: hsl(var(--primary-foreground));
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 3rem;
}

.hero__inner {
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero__logo {
  height: clamp(6rem, 3rem + 12vw, 11rem);
  width: auto;
}

.hero__note {
  font-size: var(--text-sm);
  color: hsl(var(--primary-foreground) / 0.9);
  max-width: 36rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: var(--text-sm);
  color: hsl(var(--primary-foreground) / 0.9);
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__proof .icon {
  color: hsl(var(--secondary));
}

/* Service tiles float above the photo — light cards on a dark overlay. */
.service-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 9rem;
  height: 7rem;
  padding: 1rem;
  text-align: center;
  color: hsl(var(--foreground));
}

.service-tile .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.service-tile span {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

/* --- Brand marquee ------------------------------------------------------ */

.marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding-block: 1rem;
  /* Fade the edges so logos don't get chopped mid-glyph. */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee img {
  height: 2rem;
  width: auto;
  margin-inline: 1.5rem;
  opacity: 0.7;
  /* simple-icons ship black glyphs; invert them onto the dark hero. */
  filter: brightness(0) invert(1);
}

@media (min-width: 48rem) {
  .marquee img {
    height: 2.5rem;
    margin-inline: 2.5rem;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* The track holds the list twice; halfway is a seamless loop point. */
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* --- Sobre -------------------------------------------------------------- */

.about {
  text-align: center;
}

.about__inner {
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about p {
  font-size: var(--text-lg);
  color: hsl(var(--primary-foreground) / 0.85);
}

.about .icon {
  width: 2.25rem;
  height: 2.25rem;
}

/* --- Serviços ----------------------------------------------------------- */

.services {
  position: relative;
}

.services__bg {
  position: absolute;
  inset: 0;
}

.services__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.85);
}

.services > .container {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
}

.service-card {
  padding: 1.5rem;
  background: hsl(var(--card) / 0.9);
  backdrop-filter: blur(4px);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  transition: background-color var(--duration-normal);
}

.service-card:hover .service-card__icon {
  background: hsl(var(--primary) / 0.2);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: var(--text-sm);
  color: hsl(var(--muted-foreground));
}

.section__cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Parceiros ---------------------------------------------------------- */

.partner-group + .partner-group {
  margin-top: 3rem;
}

.partner-group__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: var(--text-lg);
  font-weight: 600;
}

.partner-group__title .icon {
  color: hsl(var(--primary));
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.partner-card {
  display: grid;
  place-items: center;
  width: 12rem;
  height: 9rem;
  padding: 1.5rem;
}

.partner-card img {
  max-height: 6rem;
  width: auto;
  object-fit: contain;
}

/* --- Porquê nós --------------------------------------------------------- */

.why {
  text-align: center;
}

.why__inner {
  max-width: 48rem;
  margin-inline: auto;
}

.why__list {
  max-width: 26rem;
  margin: 2rem auto;
  text-align: left;
}

.why__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-lg);
}

.why__list li + li {
  margin-top: 1rem;
}

.why__list .icon {
  margin-top: 0.3rem;
  color: hsl(var(--secondary));
}

.why__closer {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: hsl(var(--primary));
}

/* --- Como funciona ------------------------------------------------------ */

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 52rem;
  margin-inline: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
  text-align: center;
}

.step__badge {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 24px hsl(var(--primary) / 0.25);
}

.step__badge .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.step__number {
  font-size: var(--text-sm);
  font-weight: 600;
  color: hsl(var(--primary));
}

.step__text {
  font-size: var(--text-lg);
  font-weight: 500;
}

@media (min-width: 48rem) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Dashed connector between the three badges. */
  .step {
    position: relative;
  }

  .step + .step::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    right: calc(50% + 3rem);
    width: calc(100% - 6rem);
    border-top: 2px dashed hsl(var(--primary) / 0.35);
  }
}

/* --- Testemunhos -------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  max-width: 60rem;
  margin-inline: auto;
}

.testimonial {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__stars {
  display: flex;
  gap: 0.25rem;
  color: hsl(var(--accent));
}

.testimonial__stars .icon {
  width: 1rem;
  height: 1rem;
}

.testimonial__quote {
  font-style: italic;
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-top: auto;
}

/* --- Contacto ----------------------------------------------------------- */

.contact {
  text-align: center;
}

.contact__inner {
  max-width: 44rem;
  margin-inline: auto;
}

.contact__list {
  max-width: 28rem;
  margin: 2rem auto;
  text-align: left;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact__list li + li {
  margin-top: 1rem;
}

.contact__list .icon {
  margin-top: 0.2rem;
  color: hsl(var(--primary));
}

.contact__list a,
.contact__list span {
  color: hsl(var(--primary));
}

.contact__list a:hover {
  text-decoration: underline;
}

/* --- Galeria ------------------------------------------------------------ */

/* Two columns, never three: the store photos are landscape and need the width. */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin-inline: auto;
}

@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.gallery img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

@media (min-width: 48rem) {
  .gallery img {
    height: 20rem;
  }
}

/* --- Grupo -------------------------------------------------------------- */

.group-band {
  padding-block: 2.5rem;
  background: hsl(var(--muted) / 0.5);
}

.group-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.group-band__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

.group-band img {
  height: 3.5rem;
  width: auto;
}

@media (min-width: 48rem) {
  .group-band img {
    height: 5rem;
  }
}

/* --- CTA final ---------------------------------------------------------- */

.final-cta {
  text-align: center;
}

.final-cta__inner {
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.final-cta p {
  font-size: var(--text-lg);
  color: hsl(var(--primary-foreground) / 0.85);
}
