/* ============================================================
   TECMOTOS – index.css
   Estilos exclusivos da página principal (index.html).
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Para trocar a imagem da fachada: altere o url() abaixo */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/fachada.png') center center / cover no-repeat;
  background-color: #111;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.88) 50%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 70px;
}

/* ── Serviços ─────────────────────────────────────────── */
#servicos {
  padding: 96px 0;
  background: var(--cinza);
  overflow: hidden;
}
.servicos-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 12px;
}
.servicos-wrapper {
  position: relative;
  margin-top: 40px;
  padding: 0 12px;
}

/* ── Grid / carrossel ─────────────────────────────────── */
.servicos-grid {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.servicos-grid::-webkit-scrollbar { display: none; }

/* ── Card de serviço ──────────────────────────────────── */
.card-servico {
  min-width: 280px;
  max-width: 280px;
  background: var(--preto);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  flex-shrink: 0;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    transform    0.35s ease,
    box-shadow   0.35s ease;
}
.card-servico:hover {
  border-color: rgba(204,0,0,0.7);
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(204,0,0,0.25),
    0 8px 32px rgba(204,0,0,0.18),
    0 2px 12px rgba(0,0,0,0.5);
}
.card-servico::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(204,0,0,0.07) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-servico:hover::before { opacity: 1; }

/* ── Ícone SVG ────────────────────────────────────────── */
.card-servico-icone {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(204,0,0,0.08);
  border: 1px solid rgba(204,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.card-servico-icone svg {
  width: 24px;
  height: 24px;
  color: var(--vermelho);
  transition: transform 0.35s ease;
}
.card-servico:hover .card-servico-icone {
  background: rgba(204,0,0,0.16);
  border-color: rgba(204,0,0,0.45);
  transform: translateY(-2px);
}
.card-servico:hover .card-servico-icone svg { transform: scale(1.1); }
.card-servico h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.35s ease;
}
.card-servico:hover h3 { color: #fff; }
.card-servico p {
  color: var(--texto-suave);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ── Botões prev / next ───────────────────────────────── */
.btn-servico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--vermelho);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(204,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-servico:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(204,0,0,0.6);
  background: #e00000;
}
.btn-servico svg { flex-shrink: 0; }
.prev { left: -16px; }
.next { right: -16px; }

/* ── Por que Tecmotos ─────────────────────────────────── */
.porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card-porque-v2 {
  background: var(--cinza);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.card-porque-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.porque-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--vermelho);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}
.card-porque-v2:hover .porque-bar { transform: scaleY(1); }
.card-porque-v2 h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card-porque-v2 p  { font-size: 0.86rem; color: var(--texto-suave); line-height: 1.6; }

/* ── Banner Curso (seção na home) ─────────────────────── */
.curso-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.curso-banner-visual {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}
.curso-fotos {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(204,0,0,.35);
  background: #111;
  box-shadow: 0 0 30px rgba(204,0,0,.15);
  display: flex;
  flex-direction: column-reverse;

}
.foto-principal {
  position: relative;
  overflow: hidden;
  height: 360px;
}
.foto-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.foto-principal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.80), rgba(0,0,0,.80));
  z-index: 1;
  pointer-events: none;
}
.curso-overlay {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-top: 2px solid rgba(204,0,0,.7);
  border-bottom: 2px solid rgba(204,0,0,.7);
}
.curso-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.curso-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.80), rgba(0,0,0,.80));
  z-index: 1;
}
.curso-overlay-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}
.curso-overlay-content svg {
  width: 58px;
  height: 58px;
  color: var(--vermelho);
  margin-bottom: 12px;
}
.curso-overlay-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.curso-overlay-content p { color: rgba(255,255,255,.85); }
.curso-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 36px;
}
.curso-info-item {
  background: var(--preto);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.curso-info-item strong { font-size: 1rem; display: block; margin-bottom: 2px; }
.curso-info-item span   { font-size: 0.78rem; color: var(--texto-suave); }

/* ── Localização ──────────────────────────────────────── */
.localizacao-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.mapa-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--sombra);
}
.mapa-wrapper iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
}
.localizacao-info { padding: 8px 0; }
.info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.info-item:last-child { border-bottom: none; }
.info-item-icon {
  width: 44px; height: 44px;
  background: rgba(204,0,0,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item-icon svg { width: 20px; height: 20px; color: var(--vermelho); }
.info-item h4 { font-size: 0.85rem; color: var(--texto-suave); margin-bottom: 4px; font-weight: 500; }
.info-item p  { font-size: 0.95rem; font-weight: 600; }
.info-item a  { color: var(--branco); transition: color var(--transicao); }
.info-item a:hover { color: var(--vermelho); }

/* ── CTA Final ────────────────────────────────────────── */
#cta-final {
  padding: 96px 0;
  background: var(--cinza);
  text-align: center;
}
#cta-final .section-title   { color: #fff; }
#cta-final .section-subtitle { color: rgba(255,255,255,0.85); margin: 0 auto 40px; }
.btn-cta-final {
  background: #fff;
  color: var(--cinza-claro);
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.btn-cta-final:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

/* ── Responsivo Index ─────────────────────────────────── */
@media (max-width: 992px) {
  .curso-banner-inner,
  .localizacao-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .card-servico { min-width: 250px; max-width: 250px; }
  .prev { left: 4px; }
  .next { right: 4px; }
  .curso-overlay-content h3 { font-size: 1.5rem; }
  .foto-principal { height: 260px; }
  .curso-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .curso-info-grid { grid-template-columns: 1fr; }
}
