/* ══════════════════════════════════════════════════════════
   SIEMETRAFO — Estilos específicos da Home (index.html)
   Extraído do inline para melhorar Core Web Vitals
   ══════════════════════════════════════════════════════════ */

/* ── BADGES DO HERO ──────────────────────────────────────── */
.hero-badge-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  font-size: .75rem;
  color: rgba(255,255,255,.75);
}
.hero-badge i { color: #f59e0b; font-size: .7rem; }



/* ── PRODUCTS GRID ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

/* ── NORMAS STRIP ────────────────────────────────────────── */
.normas-strip {
  background: var(--blue-dark);
  padding: 20px 0;
  overflow: hidden;
}
.normas-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: scrollNormas 20s linear infinite;
  width: max-content;
}
.normas-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}
.normas-item i { color: var(--red); font-size: .7rem; }
@keyframes scrollNormas {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── PARTNERS STRIP ──────────────────────────────────────── */
.partners-strip { background: var(--white); padding: 40px 0; border-top: 1px solid var(--gray-200); }
.partners-label {
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 24px;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-name {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: var(--transition);
}
.partner-name:hover { color: var(--gray-500); }

/* ── WHY SECTION ──────────────────────────────────────────── */
.why-section { background: var(--blue-dark); padding: 80px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-content { color: var(--white); }
.why-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  font-family: var(--font-cond);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}
.why-desc {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.why-items { display: flex; flex-direction: column; gap: 16px; }
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.why-item-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #f59e0b;
  flex-shrink: 0;
  font-size: .9rem;
}
.why-item-text { color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.6; }
.why-item-text strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 3px; }
.why-img-side { position: relative; }
.why-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.why-img-box {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-img-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: brightness(.9);
  transition: filter .3s;
}
.why-img-box:hover img { filter: brightness(1); }
.why-img-box.tall { grid-row: span 2; }
.why-counter-wrap {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--red);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
}
.why-counter-val { font-size: 2.4rem; font-weight: 900; font-family: var(--font-cond); line-height: 1; }
.why-counter-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 4px; }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-img-side { display: none; }
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0d0e12 0%, #1a1d27 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  font-family: var(--font-cond);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-desc { color: rgba(255,255,255,.55); font-size: 1rem; max-width: 480px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── SHINE BUTTON ─────────────────────────────────────────── */
@keyframes shine {
  0%   { left: -100%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}

/* ── CARROSSEL HERO ───────────────────────────────────────── */
#hero-carousel-wrap { position: relative; }
.hero-slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.4));
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  transform: scale(.95);
}
.hero-slide-img.active {
  opacity: 1;
  transform: scale(1);
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: none;
  cursor: pointer; transition: all .3s; padding: 0;
}
.hero-dot.active {
  background: #fff; width: 22px; border-radius: 4px;
}
/* hero maior */
.hero { min-height: 620px; }
.hero-inner { padding: 80px 0 90px; }
.hero-img-bg { width: 440px !important; height: 440px !important; }
.hero-img-bg img, .hero-slide-img { width: 380px; height: 380px; }
@media(max-width:900px) {
  .hero-img-bg { width: 300px !important; height: 300px !important; }
}

/* ── FAIXA DE PROMOÇÕES (layout horizontal) ───────────────── */
.promo-carousel { position: relative; width: 100%; }

/* wrapper dos slides — exibe até 3 cards por vez */
#promo-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transition: opacity .4s;
}
@media(max-width:900px)  { #promo-slides { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px)  { #promo-slides { grid-template-columns: 1fr; } }

/* cada card de promoção */
.promo-slide {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .25s, box-shadow .25s;
  animation: promo-fadein .5s ease both;
}
.promo-slide:nth-child(2) { animation-delay: .08s; }
.promo-slide:nth-child(3) { animation-delay: .16s; }
.promo-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.2);
}
@keyframes promo-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* imagem */
.promo-slide-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,.06);
  border-radius: 14px 14px 0 0;
  padding: 8px;
}
/* corpo do card */
.promo-card-body {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.promo-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red); color: #fff;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 7px;
}
.promo-name {
  font-size: .9rem; font-weight: 800; color: #fff;
  line-height: 1.3; margin-bottom: 3px;
  font-family: var(--font-cond);
}
.promo-specs { font-size: .68rem; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.promo-price-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.promo-price-old { font-size: .72rem; color: rgba(255,255,255,.3); text-decoration: line-through; }
.promo-price-new {
  font-size: 1.25rem; font-weight: 900; color: #4ade80;
  line-height: 1; font-family: var(--font-cond);
}
.promo-discount-badge {
  background: #4ade80; color: #052e16;
  font-size: .6rem; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; margin-left: 3px;
}
/* Contagem regressiva */
.promo-countdown-label {
  font-size: .6rem; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 5px; display: flex; align-items: center; gap: 4px;
}
.promo-countdown-label i { color: var(--red); }
.promo-countdown { display: flex; gap: 5px; margin-bottom: 12px; }
.promo-cd-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px; padding: 5px 7px;
  text-align: center; min-width: 38px;
}
.promo-cd-num {
  font-size: 1rem; font-weight: 900; color: #fff;
  font-family: var(--font-cond); line-height: 1; display: block;
}
.promo-cd-unit { font-size: .52rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .05em; }
.promo-cd-box.expiring .promo-cd-num { color: var(--red); animation: promo-blink 1s step-end infinite; }
@keyframes promo-blink { 0%,100%{opacity:1} 50%{opacity:.35} }
/* barra de progresso */
.promo-timebar-wrap { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.promo-timebar { height: 100%; border-radius: 2px; transition: width 1s linear; }
/* botão */
.promo-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 9px;
  background: linear-gradient(135deg, var(--red), #9a151f);
  color: #fff; font-weight: 800; font-size: .8rem;
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: opacity .2s;
}
.promo-btn:hover { opacity: .85; color: #fff; }
/* expirado */
.promo-expired-banner {
  display: none; position: absolute; inset: 0;
  background: rgba(10,22,40,.88); border-radius: 16px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; z-index: 5;
}
.promo-expired-banner.show { display: flex; }
.promo-expired-text {
  font-size: 1rem; font-weight: 900; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-cond);
}
/* dots — ocultos no modo grid, só aparecem em mobile 1-coluna */
.promo-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.promo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; cursor: pointer; transition: all .3s; padding: 0;
}
.promo-dot.active { background: var(--red); width: 22px; border-radius: 4px; }
/* setas — ocultas no grid */
.promo-nav {
  display: none;
}
/* sem promoções */
.promo-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 24px;
  background: rgba(255,255,255,.03);
  border: 2px dashed rgba(255,255,255,.1); border-radius: 16px;
  color: rgba(255,255,255,.3); font-size: .85rem; text-align: center;
}
.promo-empty i { font-size: 2rem; opacity: .25; }

/* ── Mobile responsivo para promoções ── */
@media (max-width: 480px) {
  #secao-promocoes { overflow: visible !important; }
  .promo-carousel { overflow: visible !important; }
  #promo-slides {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 12px !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
  }
  #promo-slides::-webkit-scrollbar { display: none !important; }
  .promo-slide {
    min-width: 78vw !important;
    max-width: 78vw !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  #promo-slides {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow: visible !important;
  }
}
