/* ============================================================
   HOME.CSS — Ducarelli Pneus
   Estilos das 11 seções + responsivo
   ============================================================ */

/* ── Utilitário: cabeçalho de seção ───────────────────────── */
.sec-head {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.sec-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.sec-head p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('../images/hero.webp') center right / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.80) 40%,
    rgba(10, 10, 10, 0.10) 70%,
    transparent 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: clamp(2rem, 8vw, 8rem);
  padding-right: 1rem;
}
.hero-inner { max-width: 580px; }

.hero-badge {
  display: inline-block;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   3. BARRA DE CONFIANÇA
   ============================================================ */
.trust-bar {
  background: var(--color-primary);
  padding: 0.875rem 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; }

/* ============================================================
   4. SERVIÇOS
   ============================================================ */
.services {
  background: var(--color-surface);
  padding: 5rem 0;
}
.services .sec-head h2 { color: var(--color-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.svc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.svc-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(204, 0, 0, 0.15);
}
.svc-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.6rem;
}
.svc-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.svc-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  display: inline-block;
}
.svc-link:hover { text-decoration: underline; }

/* ============================================================
   5. SOBRE
   ============================================================ */
.about {
  background: #ffffff;
  padding: 5rem 0;
}

/* Bloco 1 — Título */
.sobre-head {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.sobre-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.sobre-head p {
  font-size: 1rem;
  color: #555555;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Bloco 2 — Grid imagem + texto */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.sobre-img-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
}
.sobre-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sobre-text p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-cta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: text-decoration 0.1s;
}
.about-cta:hover { text-decoration: underline; }

/* Bloco 3 — Números */
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid #eeeeee;
  text-align: center;
}
.sobre-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}
.sobre-stat-label {
  font-size: 0.875rem;
  color: #555555;
}

/* ============================================================
   6. PARALLAX
   ============================================================ */
.parallax-sec {
  position: relative;
  height: 420px;
  background: url('../images/paralax1.webp') center / cover no-repeat fixed;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
}
.parallax-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.parallax-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  max-width: 680px;
}
.parallax-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  line-height: 1.65;
}

/* ============================================================
   7. DIFERENCIAIS
   ============================================================ */
.differentials {
  background: var(--color-white);
  padding: 5rem 0;
}
.differentials .sec-head h2 { color: var(--color-black); }
.differentials .sec-head p  { color: #555; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.diff-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin: 0 auto;
}
.diff-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}
.diff-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* ============================================================
   8. MARCAS
   ============================================================ */
.brands {
  background: var(--color-surface);
  padding: 5rem 0;
}
.brands .sec-head h2 { color: var(--color-white); }

.brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.brand-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}
.brand-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(204, 0, 0, 0.15);
}
a.brand-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.brand-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(204, 0, 0, 0.15);
}
.brand-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.brand-card-body {
  padding: 2rem;
  margin-top: 0;
}
.brand-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.brand-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   9. FAQ
   ============================================================ */
.faq {
  background: var(--color-black);
  padding: 5rem 0;
}
.faq .sec-head h2 { color: var(--color-white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.faq-list details {
  border-bottom: 1px solid var(--color-border);
}
.faq-list details:first-child {
  border-top: 1px solid var(--color-border);
}
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  user-select: none;
  gap: 1rem;
  transition: color 0.2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { color: var(--color-primary); }
.faq-list summary:hover { color: var(--color-primary); }
.faq-list summary:focus-visible { outline-offset: 4px; }
.faq-answer {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 0 0 1.25rem;
}

/* ============================================================
   10. AVALIAÇÕES
   ============================================================ */
.reviews {
  background: var(--color-surface);
  padding: 5rem 0;
}
.reviews .sec-head h2 { color: var(--color-white); }

.reviews-google-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: opacity 0.2s;
}
.reviews-google-link:hover { opacity: 0.8; text-decoration: underline; }

#reviews-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.rv-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.rv-stars {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-style: normal;
}
.rv-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
  flex: 1;
}
.rv-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  font-style: normal;
}
.rv-source {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
  font-style: normal;
}

/* ============================================================
   11. CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--color-primary);
  padding: 5rem 0;
}
.cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.cta-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.cta-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Formulário */
.cta-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: box-shadow 0.2s ease;
}
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.cta-form textarea { resize: vertical; }
.cta-form-btn {
  width: 100%;
  padding: 1rem;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-main);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cta-form-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* ============================================================
   RESPONSIVO — TABLET (768–1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  #reviews-container { grid-template-columns: repeat(2, 1fr); }
  .cta-final-grid { gap: 2rem; }
  .sobre-grid { gap: 2.5rem; }
}

/* ============================================================
   RESPONSIVO — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* Hero */
  .hero {
    height: 90vh;
    background-position: center center;
  }
  .hero-overlay { background: rgba(10, 10, 10, 0.88); }
  .hero-content {
    padding: 6rem 1.5rem 2rem;
    align-items: center;
  }
  .hero-inner {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-sub { max-width: 40ch; }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Trust bar — grade 2×2 */
  .trust-bar { padding: 1rem; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    justify-items: center;
    padding: 0;
  }
  .trust-item {
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  /* Serviços */
  .services-grid { grid-template-columns: 1fr; }

  /* Sobre */
  .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre-img-wrapper { height: 280px; }
  .sobre-stats { grid-template-columns: repeat(2, 1fr); }

  /* Parallax — desabilita fixed no mobile */
  .parallax-sec {
    background-attachment: scroll;
    height: 320px;
  }

  /* Diferenciais */
  .diff-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Marcas */
  .brands-grid { grid-template-columns: 1fr; }

  /* Avaliações */
  #reviews-container { grid-template-columns: 1fr; }

  /* CTA Final */
  .cta-final-grid { grid-template-columns: 1fr; gap: 2rem; }

}

