/* ==========================================================================
   Attack Auto Parts - Design tokens
   ========================================================================== */
:root {
  --color-ink: #101114;
  --color-graphite: #171a20;
  --color-panel: #22262f;
  --color-muted: #606978;
  --color-line: #d9dde5;
  --color-paper: #f4f5f7;
  --color-white: #ffffff;
  --color-red: #d71920;
  --color-red-dark: #a60f18;
  --color-yellow: #ffc400;
  --color-yellow-dark: #d9a300;
  --shadow-soft: 0 18px 48px rgba(16, 17, 20, 0.12);
  --shadow-strong: 0 26px 80px rgba(0, 0, 0, 0.28);
  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(16, 17, 20, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--color-yellow);
}

/* ==========================================================================
   Buttons and shared elements
   ========================================================================== */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--color-white);
  background: var(--color-red);
  border: 2px solid var(--color-red);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  color: var(--color-ink);
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  font-size: 12px;
}

.btn-small:hover {
  color: var(--color-ink);
  background: var(--color-yellow-dark);
  border-color: var(--color-yellow-dark);
}

.btn-ghost {
  color: var(--color-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-ghost:hover {
  color: var(--color-ink);
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}

.eyebrow {
  display: inline-flex;
  color: var(--color-yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 78px);
  min-height: calc(100vh - 66px);
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 80px);
  color: var(--color-white);
  background:
    linear-gradient(118deg, rgba(11, 12, 15, 0.98) 0%, rgba(23, 26, 32, 0.93) 50%, rgba(215, 25, 32, 0.72) 100%),
    url("imagens/hero-attack-motor-oficina.jpg") center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(38vw, 460px);
  background: linear-gradient(135deg, transparent 0 34%, rgba(255, 196, 0, 0.2) 34% 44%, transparent 44%);
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 5.7vw, 72px);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.trust-list li {
  padding: 10px 14px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.hero-panel {
  overflow: hidden;
  border: 2px solid rgba(255, 196, 0, 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  transform: skewX(-2deg);
}

.hero-panel > * {
  transform: skewX(2deg);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
}

/* ==========================================================================
   Proof strip and sections
   ========================================================================== */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.service-strip article {
  padding: 30px;
  background: var(--color-white);
}

.service-strip span {
  color: var(--color-red);
  font-weight: 900;
}

.service-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.service-strip p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section {
  padding: clamp(58px, 8vw, 98px) clamp(18px, 5vw, 80px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.split-section h2,
.cta-section h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-heading p,
.split-section p,
.cta-section p {
  margin: 0;
  color: var(--color-muted);
}

/* ==========================================================================
   Benefits and product catalog
   ========================================================================== */
.benefit-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}

.benefit-card,
.product-card,
.faq-list details,
.contact-grid article,
blockquote {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.benefit-card {
  padding: 28px;
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.benefit-card h3,
.product-card h3 {
  margin: 0 0 8px;
}

.benefit-card p {
  margin: 0;
  color: var(--color-muted);
}

.products-section {
  background: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.catalog-subheading {
  margin: 50px 0 22px;
  text-align: center;
}

.catalog-subheading h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
}

.product-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: linear-gradient(135deg, #f7f8fa, #e8ebf0);
}

.product-card div {
  padding: 18px;
}

.product-card span {
  color: var(--color-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-whatsapp {
  display: inline-flex;
  margin-top: 6px;
  color: var(--color-red);
  font-weight: 900;
}

.product-whatsapp:hover {
  color: var(--color-red-dark);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ==========================================================================
   Process, testimonials, FAQ and contact
   ========================================================================== */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-ink), var(--color-panel) 58%, var(--color-red-dark));
}

.split-section p {
  color: rgba(255, 255, 255, 0.74);
}

.step-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  padding: 18px 18px 18px 70px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}

.step-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--color-ink);
  background: var(--color-yellow);
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.step-list strong,
.step-list span {
  display: block;
}

.step-list span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

blockquote {
  margin: 0;
  padding: 28px;
}

blockquote p {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 17px;
}

cite {
  display: block;
  color: var(--color-ink);
  font-style: normal;
  font-weight: 900;
}

cite span {
  display: block;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
}

.faq-section,
.contact-section {
  background: var(--color-white);
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
  box-shadow: none;
}

.faq-list details + details {
  margin-top: 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.cta-section {
  padding: clamp(58px, 8vw, 92px) clamp(18px, 5vw, 80px);
  text-align: center;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-ink), var(--color-red) 72%);
}

.cta-section .eyebrow,
.cta-section p {
  color: rgba(255, 255, 255, 0.84);
}

.cta-section .btn {
  margin-top: 26px;
  color: var(--color-ink);
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}

.cta-section .btn:hover {
  background: var(--color-yellow-dark);
  border-color: var(--color-yellow-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}

.contact-grid article {
  padding: 22px;
  background: var(--color-paper);
  box-shadow: none;
}

.contact-grid strong,
.contact-grid a,
.contact-grid span {
  display: block;
}

.contact-grid strong {
  margin-bottom: 6px;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid a,
.contact-grid span {
  color: var(--color-ink);
  font-weight: 800;
}

.contact-grid a:hover,
.footer-links a:hover {
  color: var(--color-red);
}

/* ==========================================================================
   Legal pages and footer
   ========================================================================== */
.legal-page {
  max-width: 920px;
  margin: 0 auto;
  background: var(--color-white);
  border-top: 4px solid var(--color-yellow);
}

.legal-page h1 {
  margin: 8px 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.legal-page p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.legal-page a {
  color: var(--color-red);
  font-weight: 900;
}

.legal-update {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--color-ink);
  background: var(--color-yellow);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(16, 17, 20, 0.22);
}

.site-footer {
  padding: 24px;
  color: var(--color-muted);
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

/* ==========================================================================
   Responsive behavior
   ========================================================================== */
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel img {
    aspect-ratio: 16 / 10;
  }

  .service-strip,
  .benefit-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .site-header .btn-small {
    display: none;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .trust-list,
  .service-strip,
  .benefit-grid,
  .testimonial-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-strip article,
  .benefit-card,
  blockquote,
  .contact-grid article {
    padding: 22px;
  }

  .hero-panel {
    transform: none;
  }

  .hero-panel > * {
    transform: none;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }
}
