/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ===== Variáveis ===== */
:root {
  --color-white: #ffffff;
  --color-black: #121212;
  --color-black-soft: #1c1c1c;
  --color-red: #c8161d;
  --color-red-dark: #a01218;
  --color-gray-50: #f6f6f7;
  --color-gray-100: #e8e8ea;
  --color-gray-500: #6b7280;
  --color-gray-700: #3d3d40;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-height: 84px;
  --radius: 12px;
  --transition: 0.25s ease;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-black);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn--accent:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
}

.btn--outline-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-dark:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn--outline-primary {
  background: rgba(18, 18, 18, 0.05);
  color: var(--color-black);
  border-color: rgba(18, 18, 18, 0.6);
}

.btn--outline-primary:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-black);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo {
  height: 72px;
  width: auto;
  border-radius: 8px;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 2px;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.header__cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  background: #0a0a0a;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(200, 22, 29, 0.35), transparent 55%),
    linear-gradient(115deg, rgba(8, 8, 8, 0.94) 0%, rgba(10, 10, 10, 0.85) 45%, rgba(20, 4, 4, 0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__title {
  color: var(--color-white);
  font-family: 'Racing Sans One', var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__subtitle {
  color: var(--color-red);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Seções gerais ===== */
.section {
  padding: 96px 0;
  position: relative;
}

.section--dark {
  background: var(--color-black);
  overflow: hidden;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.section__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  will-change: transform;
}

.section__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.92) 0%, rgba(18, 18, 18, 0.88) 60%, var(--color-black) 100%);
}

.section--gray {
  background: var(--color-gray-50);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 12px;
}

.section__eyebrow--light {
  color: var(--color-red);
}

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  max-width: 720px;
  margin-bottom: 18px;
}

.section__title--light {
  color: var(--color-white);
}

.section__lead {
  color: var(--color-gray-700);
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.section__lead--light {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Sobre ===== */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 64px;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.18);
}

.about__badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 12px 30px rgba(200, 22, 29, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}

.about__badge-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
}

.about__badge-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.about__subtitle {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.about__text p {
  color: var(--color-gray-700);
  margin-bottom: 16px;
}

.about__cards {
  margin-top: 0;
}

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(18, 18, 18, 0.08);
}

.card--bordered {
  box-shadow: none;
  border: 1px solid var(--color-gray-100);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.08);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__icon--accent {
  background: rgba(200, 22, 29, 0.1);
  color: var(--color-red);
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-gray-700);
  font-size: 0.95rem;
}

/* ===== Grids ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Serviços ===== */
.service {
  background: var(--color-black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform var(--transition), border-color var(--transition);
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 22, 29, 0.5);
}

.service__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(200, 22, 29, 0.15);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service__icon svg {
  width: 22px;
  height: 22px;
}

.service__title {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

/* ===== Contato ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__list {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.contact__item {
  display: flex;
  gap: 16px;
}

.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(200, 22, 29, 0.1);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__label {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact__item p {
  color: var(--color-gray-700);
  font-size: 0.95rem;
}

.link {
  color: var(--color-red);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.contact__whatsapp {
  margin-right: 16px;
  margin-bottom: 16px;
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 6px 24px rgba(18, 18, 18, 0.1);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ===== Produtos ===== */
.products__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.products__banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.18);
  min-height: 260px;
}

.products__banner img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.products__banner:hover img {
  transform: scale(1.06);
}

.products__cards {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: #0a0a0a;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 22, 29, 0.3), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.88) 100%);
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  color: var(--color-white);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ===== Rodapé ===== */
.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.footer__top {
  padding: 72px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 40px;
}

.footer__logo {
  height: 72px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.footer__slogan {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__social:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer__heading {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer__text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.footer__text-link {
  color: rgba(255, 255, 255, 0.65);
}

.footer__text-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer__cta {
  margin-top: 8px;
  padding: 11px 22px;
  font-size: 0.86rem;
}

.footer__bottom-inner {
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.back-to-top {
  position: absolute;
  right: 24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  border: 3px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: background var(--transition), transform var(--transition);
}

.back-to-top:hover {
  background: var(--color-red-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== Botão flutuante do WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: filter var(--transition);
}

.whatsapp-float:hover {
  filter: brightness(0.92);
}

/* ===== Barra de progresso de leitura ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-red), #ff5b52);
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ===== Animações de entrada ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

.service__icon,
.card__icon {
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.service:hover .service__icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--color-red);
  color: var(--color-white);
}

.card:hover .card__icon,
.card--bordered:hover .card__icon {
  transform: scale(1.1) rotate(-6deg);
}

.card--bordered:hover {
  border-color: rgba(200, 22, 29, 0.4);
  transform: translateY(-4px);
  transition: transform var(--transition), border-color var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__bg,
  .section__bg,
  .cta__bg {
    transform: none !important;
  }

  .btn:hover,
  .service:hover,
  .card--bordered:hover,
  .footer__social:hover,
  .back-to-top:hover,
  .products__banner:hover img {
    transform: none;
  }
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .about__grid,
  .contact__grid,
  .products__grid {
    grid-template-columns: 1fr;
  }

  .about__media img {
    height: 280px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .header__logo {
    height: 56px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-black);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
  }

  .header__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 64px 0;
  }

  .cta {
    padding: 72px 0;
  }

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .about__badge {
    right: 12px;
    bottom: -18px;
    padding: 14px 18px;
  }

  .about__badge-number {
    font-size: 1.9rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .back-to-top {
    right: 16px;
    top: -22px;
    width: 44px;
    height: 44px;
  }
}
