/* ═══════════════════════════════════════════════════════════════
   index.css — Homepage (hero, ticker, why, estoque, financing, contact)
   Inspirado no Semler Premium: hero full-screen, pill flutuante, scroll reveal
   ═══════════════════════════════════════════════════════════════ */

:root {
  --light:  #f4f4f5;
  --mid:    #71717a;
  --border: #e4e4e7;
}

.hp * { font-family: 'Barlow', sans-serif; }

/* ── HERO — Full-screen cinematográfico ──────────────────────── */
/* Sobe o bloco .hp para cobrir a nav sticky (60px) */
.hp { margin-top: -60px; }

.hp-hero {
  position: relative; background: var(--brand);
  min-height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hp-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  opacity: .32;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
/* Leve paralaxe no carregamento */
.hp-hero-bg.loaded { transform: scale(1); }

.hp-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55) 0%,      /* faixa da nav — legibilidade garantida */
    rgba(0,0,0,.10) 18%,     /* transição suave */
    transparent 38%,
    rgba(0,0,0,.2) 55%,
    rgba(0,0,0,.75) 85%,
    var(--brand) 100%
  );
}
.hp-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 2rem 7rem; /* espaço para a pill */
}
.hp-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem;
  animation: fadeSlideUp .8s ease both;
}
.hp-hero-eyebrow::before { content: ''; display: block; width: 2.5rem; height: 2px; background: var(--accent); }

.hp-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900; line-height: .95; color: white;
  text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 1.5rem;
  animation: fadeSlideUp .9s .1s ease both;
}
.hp-hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); }

.hp-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.55); font-weight: 400;
  max-width: 480px; line-height: 1.7; margin-bottom: 2.5rem;
  animation: fadeSlideUp 1s .2s ease both;
}
.hp-hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  animation: fadeSlideUp 1s .3s ease both;
}

.hp-btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: white; color: var(--brand);
  padding: .9rem 2rem; border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: all .2s;
}
.hp-btn-primary:hover { background: var(--light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hp-btn-wa {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: rgba(255,255,255,.7);
  padding: .9rem 1.5rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: all .2s;
}
.hp-btn-wa:hover { border-color: rgba(255,255,255,.5); color: white; }

/* ── Scroll indicator ────────────────────────────────────────── */
.hp-scroll-hint {
  position: absolute; bottom: 5.5rem; left: 2.5rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: fadeIn 1.5s 1s ease both;
}
.hp-scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,.2);
  position: relative; overflow: hidden;
}
.hp-scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,.6);
  animation: scrollLine 2s 1.5s ease infinite;
}
.hp-scroll-hint span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .6rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  writing-mode: vertical-rl;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 200%; }
}
@media (max-width: 640px) { .hp-scroll-hint { display: none; } }

/* ── Pill flutuante (inspirado no Semler) ────────────────────── */
.hp-hero-pill {
  position: absolute; bottom: 6.5rem;
  right: max(2rem, calc((100% - 1200px) / 2 + 2rem));
  z-index: 3;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 0;
  white-space: nowrap;
  animation: fadeSlideUp .9s .5s ease both;
  max-width: calc(100vw - 3rem);
}
.hp-hero-pill-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .85rem 1.75rem; text-align: center;
}
.hp-hero-pill-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem; font-weight: 900; color: white; line-height: 1;
}
.hp-hero-pill-lbl {
  font-size: .58rem; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .12em; margin-top: .2rem;
}
.hp-hero-pill-sep {
  width: 1px; background: rgba(255,255,255,.12); margin: .6rem 0; flex-shrink: 0;
}
.hp-hero-pill-cta {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: white; text-decoration: none;
  background: rgba(255,255,255,.1); border-radius: 0 100px 100px 0;
  transition: background .2s; border-left: 1px solid rgba(255,255,255,.12);
}
.hp-hero-pill-cta:hover { background: rgba(255,255,255,.18); }
.hp-hero-pill-cta i { color: #4ade80; }

/* Esconde cta e último sep em mobile */
@media (max-width: 768px) {
  .hp-hero-pill-sep--md,
  .hp-hero-pill-cta--md { display: none; }

  /* Pill ocupa largura total e itens dividem igualmente */
  .hp-hero-pill {
    bottom: 1.75rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
    max-width: none;
    white-space: normal;
  }
  .hp-hero-pill-item {
    flex: 1;
    padding: .75rem .5rem;
  }
  .hp-hero-pill-num { font-size: 1.2rem; }
  .hp-hero-pill-lbl { font-size: .55rem; }
}

/* Fix pill cortada em telas muito pequenas */
@media (max-width: 360px) {
  .hp-hero-pill { white-space: normal; flex-wrap: wrap; border-radius: 16px; justify-content: center; }
  .hp-hero-pill-item { padding: .6rem .9rem; }
  .hp-hero-pill-num { font-size: 1.1rem; }
  .hp-hero-pill-lbl { font-size: .52rem; }
  .hp-hero-pill-sep { display: none; }
}

/* ── Animações de entrada ────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── TICKER ──────────────────────────────────────────────────── */
.hp-ticker { position: relative; z-index: 10; background: var(--accent); overflow: hidden; white-space: nowrap; padding: .65rem 0; }
.hp-ticker-inner { display: inline-flex; gap: 3rem; animation: ticker 20s linear infinite; }
.hp-ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: white; display: flex; align-items: center; gap: .75rem;
}
.hp-ticker-item i { opacity: .6; font-size: .65rem; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── SECTION HEADERS ─────────────────────────────────────────── */
.hp-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
}
.hp-section-label::before { content: ''; display: block; width: 1.5rem; height: 2px; background: var(--accent); }
.hp-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  text-transform: uppercase; line-height: 1; color: var(--brand);
}

/* ── WHY ─────────────────────────────────────────────────────── */
.hp-why { background: var(--light); padding: 6rem 2rem; }
.hp-why-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 768px) { .hp-why-inner { grid-template-columns: 1fr; gap: 3rem; } }
.hp-why-img { position: relative; }
.hp-why-img img { width: 100%; height: 480px; object-fit: cover; }
.hp-why-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--brand); color: white; padding: 1.5rem 2rem;
  font-family: 'Barlow Condensed', sans-serif; text-align: center;
}
.hp-why-badge-num { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.hp-why-badge-lbl { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; opacity: .6; margin-top: .25rem; }
@media (max-width: 900px) { .hp-why-img img { height: 300px; } .hp-why-badge { bottom: 0; right: 0; } }

.hp-pillars { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; }
.hp-pillar { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.hp-pillar:first-child { border-top: 1px solid var(--border); }
.hp-pillar-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; color: var(--border); line-height: 1; flex-shrink: 0; width: 2.5rem; }
.hp-pillar-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-bottom: .3rem; }
.hp-pillar-desc { font-size: .88rem; color: var(--mid); line-height: 1.6; }

/* ── ESTOQUE ─────────────────────────────────────────────────── */
.hp-stock { padding: 6rem 2rem; background: #f8f8fb; }
.hp-stock-inner { max-width: 1260px; margin: 0 auto; }
.hp-stock-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.hp-see-all {
  font-family: 'Barlow Condensed', sans-serif; font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--brand); padding-bottom: .1rem; transition: opacity .2s;
}
.hp-see-all:hover { opacity: .5; }

/* Carrossel */
.hp-carousel-wrap { position: relative; padding: 0 8px; }
.hp-cards {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth; padding: 8px 4px 20px;
}
.hp-cards::-webkit-scrollbar { display: none; }
.hp-card {
  background: white; border-radius: 16px; border: 1px solid #ebebef;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
  flex: 0 0 calc(33.333% - 16px); scroll-snap-align: start; min-width: 280px;
  transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.hp-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.06); }
@media (max-width: 960px) { .hp-card { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 580px) { .hp-card { flex: 0 0 88%; } }

.hp-carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 42px; height: 42px; background: white; border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; font-size: .85rem; color: var(--brand);
  box-shadow: 0 2px 12px rgba(0,0,0,.12); transition: all .15s;
}
.hp-carousel-btn:hover { background: var(--brand); color: white; border-color: var(--brand); }
.hp-carousel-btn.prev { left: -14px; }
.hp-carousel-btn.next { right: -14px; }
.hp-carousel-btn:disabled { opacity: .25; cursor: not-allowed; }
.hp-carousel-btn:disabled:hover { background: white; color: var(--brand); border-color: var(--border); }
@media (max-width: 580px) { .hp-carousel-btn { display: none; } }

.hp-card-img { height: 210px; overflow: hidden; background: var(--light); position: relative; }
.hp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hp-card:hover .hp-card-img img { transform: scale(1.07); }
.hp-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #d4d4d8; font-size: 3rem; background: #f4f4f6; }

.hp-card-badge {
  position: absolute; top: 14px; left: -2px;
  background: var(--accent); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .9rem .3rem .7rem; border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hp-card-badge::before {
  content: ''; position: absolute; bottom: -5px; left: 0;
  border-width: 0 5px 5px 0; border-style: solid;
  border-color: transparent color-mix(in srgb, var(--accent) 60%, black) transparent transparent;
}

.hp-card-version { display: inline-block; font-size: .68rem; font-weight: 600; color: var(--mid); background: #f4f4f6; border-radius: 4px; padding: .15rem .5rem; margin-top: .2rem; text-transform: uppercase; letter-spacing: .04em; }
.hp-card-body { padding: 1.4rem 1.5rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.hp-card-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; color: var(--brand); line-height: 1.1; }
.hp-card-meta { font-size: .75rem; color: var(--mid); margin: .4rem 0 .8rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.hp-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.hp-card-price-wrap { margin-top: auto; padding-top: .75rem; border-top: 1px solid #f0f0f4; }
.hp-card-price-label { font-size: .68rem; font-weight: 600; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.hp-card-price { font-family: 'Barlow Condensed', sans-serif; font-size: 1.75rem; font-weight: 900; color: var(--brand); line-height: 1; }
.hp-card-price-promo { font-size: .85rem; color: var(--mid); text-decoration: line-through; margin-left: .4rem; font-family: 'Barlow', sans-serif; font-weight: 400; }
.hp-card-fin { font-size: .72rem; color: var(--mid); margin-top: .25rem; }
.hp-card-footer { padding: 1rem 1.5rem 1.4rem; display: flex; gap: .6rem; }
.hp-card-btn {
  flex: 1; text-align: center; padding: .65rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: var(--brand); color: white; border-radius: 8px; transition: all .15s; border: none;
}
.hp-card-btn:hover { opacity: .85; }
.hp-card-btn-wa {
  padding: .65rem .85rem; background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  border-radius: 8px; font-size: 1rem; transition: all .15s; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.hp-card-btn-wa:hover { background: #22c55e; color: white; border-color: #22c55e; }
.hp-card-btn-share {
  width: 2.6rem; border-radius: .5rem; border: 1.5px solid rgba(99,102,241,.35);
  background: none; color: #a5b4fc; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.hp-card-btn-share:hover { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.6); }

/* ── FINANCING STRIP ─────────────────────────────────────────── */
.hp-fin { background: var(--brand); padding: 5rem 2rem; display: flex; align-items: center; }
.hp-fin-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
@media (max-width: 700px) { .hp-fin-inner { grid-template-columns: 1fr; gap: 2rem; } }
.hp-fin-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-transform: uppercase; color: white; line-height: 1; }
.hp-fin-title span { color: var(--accent); }
.hp-fin-sub { font-size: .95rem; color: rgba(255,255,255,.45); margin-top: 1rem; line-height: 1.7; max-width: 420px; }
.hp-fin-steps { display: flex; gap: 2.5rem; margin-top: 2rem; }
.hp-fin-step { display: flex; align-items: center; gap: .75rem; }
.hp-fin-step-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; color: rgba(255,255,255,.15); line-height: 1; }
.hp-fin-step-txt { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.hp-btn-accent {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: white;
  padding: 1.1rem 2.5rem; border-radius: 4px; white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .2s;
}
.hp-btn-accent:hover { opacity: .88; transform: translateY(-2px); }

/* ── CONTACT STRIP ───────────────────────────────────────────── */
.hp-contact { background: var(--light); padding: 4rem 2rem; border-top: 1px solid var(--border); }
.hp-contact-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hp-contact-text .label { font-family: 'Barlow Condensed', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mid); margin-bottom: .4rem; }
.hp-contact-text .headline { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 800; text-transform: uppercase; color: var(--brand); }
.hp-contact-info { display: flex; gap: 3rem; flex-wrap: wrap; }
.hp-contact-item { display: flex; align-items: flex-start; gap: .75rem; }
.hp-contact-item-icon { width: 38px; height: 38px; background: var(--brand); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: white; font-size: .85rem; flex-shrink: 0; }
.hp-contact-item-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid); margin-bottom: .2rem; }
.hp-contact-item-val { font-size: .95rem; font-weight: 600; color: var(--brand); }
.hp-btn-wa-dark {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #16a34a; color: white; padding: 1rem 2rem; border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .2s;
}
.hp-btn-wa-dark:hover { background: #15803d; transform: translateY(-2px); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
/* hero */
  .hp-hero { min-height: 100svh; }
  .hp-hero-content { padding: 0 1.25rem 6.5rem; }
  .hp-hero-title { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hp-hero-sub { font-size: .95rem; margin-bottom: 1.75rem; }
  .hp-hero-ctas { flex-direction: column; gap: .65rem; }
  .hp-btn-primary, .hp-btn-wa { width: 100%; justify-content: center; padding: .85rem 1.25rem; font-size: .9rem; }

  /* pill mobile */
  .hp-hero-pill { bottom: 1rem; padding: 0; border-radius: 80px; }

  /* why */
  .hp-why { padding: 3.5rem 1.25rem; }
  .hp-why-inner { gap: 2rem; }
  .hp-why-img img { height: 220px; }
  .hp-why-badge { padding: 1rem 1.25rem; bottom: 0; right: 0; }
  .hp-why-badge-num { font-size: 1.8rem; }
  .hp-section-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hp-pillar { padding: 1.1rem 0; gap: .9rem; }

  /* estoque */
  .hp-stock { padding: 3.5rem 1.25rem; }
  .hp-stock-head { margin-bottom: 1.75rem; }
  .hp-carousel-wrap { padding: 0 2px; }
  .hp-card { flex: 0 0 82vw; min-width: 0; border-radius: 12px; }
  .hp-card-img { height: 170px; }
  .hp-card-body { padding: 1rem 1.1rem .75rem; }
  .hp-card-footer { padding: .75rem 1.1rem 1rem; }

  /* financing */
  .hp-fin { padding: 3rem 1.25rem; }
  .hp-fin-steps { gap: 1.25rem; }
  .hp-fin-step-num { font-size: 1.5rem; }
  .hp-btn-accent { width: 100%; justify-content: center; padding: .9rem 1.5rem; }

  /* contact */
  .hp-contact { padding: 2.5rem 1.25rem; }
  .hp-contact-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hp-contact-info { flex-direction: column; gap: 1rem; }
  .hp-contact-text .headline { font-size: 1.5rem; }
  .hp-btn-wa-dark { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .hp-card { flex: 0 0 90vw; }
}