/* =============================================================================
   BERTOLODI RACING — styles.css
   Mobile first. Sem framework, sem build step.
   Ordem: tokens > base > utilitários > header > hero > marquee > produtos >
          onde comprar > frete > sobre > contato > footer > whatsapp > media
   ========================================================================== */

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root {
  --red:        #E8181B;
  --red-dark:   #B01012;
  --red-glow:   rgba(232, 24, 27, 0.18);

  --black:      #08080A;
  --dark:       #0E0E11;
  --dark2:      #15151A;
  --dark3:      #1D1D23;
  --line:       rgba(255, 255, 255, 0.08);
  --line-soft:  rgba(255, 255, 255, 0.05);

  --white:      #FFFFFF;
  --light:      #ECECEF;
  --gray:       #9A9AA5;
  --gray-dim:   #6E6E78;

  --gold:       #C9A84C;
  --gold-light: #E8C76A;

  /* Marketplaces — usar SOMENTE dentro dos componentes do respectivo canal */
  --ml-yellow:  #FFE600;
  --ml-blue:    #2968C8;
  --shopee:     #EE4D2D;
  --whatsapp:   #25D366;

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-cond:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;

  --header-h:   64px;
  --maxw:       1200px;
  --pad:        5vw;

  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--red);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── UTILITÁRIOS ──────────────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin-inline: auto; width: 100%; }

section { padding: 4.5rem var(--pad); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7rem;
}
.section-tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 9vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.section-title .accent { color: var(--red); }
.section-title .gold   { color: var(--gold); }

.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 56ch;
  line-height: 1.7;
}

/* Botões ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease);
  clip-path: polygon(11px 0%, 100% 0%, calc(100% - 11px) 100%, 0% 100%);
}
.btn svg { width: 19px; height: 19px; flex: none; }

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-whatsapp { background: var(--whatsapp); color: #05301A; }
.btn-whatsapp:hover { background: #1FBE5A; transform: translateY(-2px); }

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: var(--pad);
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(232, 24, 27, 0.25);
}

.header-logo { display: inline-flex; align-items: center; margin-right: auto; }
.header-logo img { height: 26px; width: auto; }

.nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-list a {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--white); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.62rem 1.25rem;
  clip-path: polygon(9px 0%, 100% 0%, calc(100% - 9px) 100%, 0% 100%);
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--red-dark); }

/* Botão hamburger ---------------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Painel mobile ------------------------------------------------------------ */
.nav-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 10, 12, 0.985);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block: 1px solid rgba(232, 24, 27, 0.25);
  padding: 0.6rem var(--pad) 1.4rem;
  display: none;
}
.nav-panel.is-open { display: block; animation: panelIn 0.24s var(--ease); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-panel ul { list-style: none; }
.nav-panel li + li { border-top: 1px solid var(--line-soft); }
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
}
.nav-panel a:hover { color: var(--red); }
.nav-panel .btn { width: 100%; margin-top: 1rem; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 3rem;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 70% 35%, var(--red-glow) 0%, transparent 68%),
    radial-gradient(ellipse 45% 70% at 5% 85%, rgba(201, 168, 76, 0.07) 0%, transparent 62%),
    linear-gradient(172deg, #0A0A0C 0%, #121214 45%, #0D0A0B 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -15deg,
    transparent, transparent 62px,
    rgba(232, 24, 27, 0.035) 62px, rgba(232, 24, 27, 0.035) 63px
  );
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

/* Conteúdo acima da dobra: anima no load, nunca depende de scroll.
   Assim o hero nunca aparece em branco esperando o IntersectionObserver. */
.hero-in {
  animation: heroIn 0.6s var(--ease) both;
}
.hero-in-1 { animation-delay: 0.08s; }
.hero-in-2 { animation-delay: 0.16s; }
.hero-in-3 { animation-delay: 0.24s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: 0.015em;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.hero h1 .accent { display: block; color: var(--red); }

.hero-desc {
  font-size: 1.02rem;
  color: var(--gray);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero-btns { display: flex; flex-direction: column; gap: 0.8rem; }
.hero-btns .btn { width: 100%; }

.hero-channels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dim);
}
.hero-channels b { color: var(--light); font-weight: 700; }
.hero-channels .sep { color: var(--red); }

/* Composição visual do hero ------------------------------------------------ */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* A arte do kart é a protagonista do hero. */
.hero-kart {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}

/* Faixa compacta com os produtos em destaque, abaixo do kart. */
.hero-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.hero-shot {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  overflow: hidden;
}
.hero-shot img { width: 100%; height: 100%; object-fit: contain; }
.hero-shot::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--red);
}
.hero-shot:nth-child(2)::after { background: var(--gold); }

/* ── MARQUEE ──────────────────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--dark2);
  padding: 0.85rem 0;
}
.marquee {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  color: var(--gray-dim);
  white-space: nowrap;
}
.marquee-item::after { content: '●'; color: var(--red); font-size: 0.42rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PRODUTOS ─────────────────────────────────────────────────────────────── */
.products { background: var(--dark); }

.products-head { margin-bottom: 1.8rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}
.filter {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.filter:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.filter[aria-pressed="true"] {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--dark2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(232, 24, 27, 0.4); }

.card-media {
  position: relative;
  background: var(--white);
  aspect-ratio: 1;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-cat {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--font-cond);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(8, 8, 10, 0.88);
  padding: 0.28rem 0.66rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.15rem 1.25rem;
}
.card-name {
  font-family: var(--font-cond);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.015em;
  color: var(--white);
  margin-bottom: 0.45rem;
}
.card-desc {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--gray);
  flex: 1;
  margin-bottom: 1.1rem;
}

.card-buy-label {
  font-family: var(--font-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 0.55rem;
}

.card-links { display: flex; flex-direction: column; gap: 0.5rem; }

.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-cond);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}
.buy svg { width: 15px; height: 15px; flex: none; }

/* Cores de marketplace: restritas ao próprio botão */
.buy-ml {
  color: #F0DA00;
  background: rgba(255, 230, 0, 0.09);
  border-color: rgba(255, 230, 0, 0.3);
}
.buy-ml:hover { background: var(--ml-yellow); color: #2D3277; border-color: var(--ml-yellow); }

.buy-shopee {
  color: #FF7A5C;
  background: rgba(238, 77, 45, 0.1);
  border-color: rgba(238, 77, 45, 0.32);
}
.buy-shopee:hover { background: var(--shopee); color: var(--white); border-color: var(--shopee); }

.buy-loja {
  color: #FF6B6D;
  background: rgba(232, 24, 27, 0.1);
  border-color: rgba(232, 24, 27, 0.32);
}
.buy-loja:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── ONDE COMPRAR ─────────────────────────────────────────────────────────── */
.where { background: var(--black); }
.where-head { margin-bottom: 2.2rem; }

.where-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.channel {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.5rem 1.6rem;
  background: var(--dark2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--chan, var(--red));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.channel:hover { transform: translateY(-4px); }

.channel-kicker {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 0.35rem;
}

.channel-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--chan, var(--red));
  margin-bottom: 0.7rem;
}

.channel-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.4rem;
}
.channel .btn { width: 100%; }

.channel-ml     { --chan: var(--ml-yellow); }
.channel-shopee { --chan: var(--shopee); }
.channel-loja   { --chan: var(--red); }

.btn-ml     { background: var(--ml-yellow); color: #2D3277; }
.btn-ml:hover     { background: #E6D000; transform: translateY(-2px); }
.btn-shopee { background: var(--shopee); color: var(--white); }
.btn-shopee:hover { background: #D63F20; transform: translateY(-2px); }

/* ── FRETE / LALAMOVE ─────────────────────────────────────────────────────── */
.shipping { background: var(--dark); position: relative; overflow: hidden; }
.shipping::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.shipping-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: start;
}

.lalamove-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  background: var(--dark2);
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.lalamove-badge img { width: 34px; height: 34px; }
.lalamove-badge span {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.3;
}
.lalamove-badge b { display: block; color: var(--white); font-size: 0.95rem; letter-spacing: 0.1em; }

.shipping-note {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.03));
  border: 1px solid rgba(201, 168, 76, 0.22);
}
.shipping-note svg { width: 20px; height: 20px; flex: none; fill: var(--gold); margin-top: 2px; }
.shipping-note p { font-size: 0.88rem; line-height: 1.6; color: var(--light); }
.shipping-note strong { color: var(--gold); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--dark2);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
}
.step { display: flex; gap: 1rem; padding: 0.9rem 0; }
.step + .step { border-top: 1px solid var(--line-soft); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.13);
  min-width: 34px;
  flex: none;
}
.step strong {
  display: block;
  font-family: var(--font-cond);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.step p { font-size: 0.86rem; color: var(--gray); line-height: 1.55; }

/* ── SOBRE ────────────────────────────────────────────────────────────────── */
.about { background: var(--black); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.about-copy p + p { margin-top: 1rem; }
.about-copy p { color: var(--gray); line-height: 1.75; }

.about-visual {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--line);
  padding: 2.4rem 1.8rem;
  overflow: hidden;
  text-align: center;
}
.about-visual img.logo { width: min(280px, 78%); margin-inline: auto; }
.about-visual .lines {
  position: absolute;
  right: -18%;
  bottom: -8%;
  width: 90%;
  opacity: 0.16;
  pointer-events: none;
}
.about-visual .tagline {
  position: relative;
  margin-top: 1.2rem;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CONTATO ──────────────────────────────────────────────────────────────── */
.contact { background: var(--dark); border-top: 1px solid var(--line-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: var(--dark2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s var(--ease);
}
.contact-item + .contact-item { margin-top: 0.7rem; }
.contact-item:hover { border-color: rgba(232, 24, 27, 0.35); }
.contact-item svg { width: 21px; height: 21px; flex: none; fill: var(--red); margin-top: 3px; }
.contact-label {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 0.15rem;
}
.contact-value { font-size: 0.98rem; font-weight: 600; color: var(--white); word-break: break-word; }
.contact-item:hover .contact-value { color: var(--red); }

.contact-panel {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  overflow: hidden;
}
.contact-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.contact-panel h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.contact-panel p { font-size: 0.92rem; color: var(--gray); line-height: 1.65; margin-bottom: 1.4rem; }
.contact-panel .btn { width: 100%; }
.contact-panel .btn + .btn { margin-top: 0.7rem; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--line-soft);
  padding: 2.4rem var(--pad) 6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.footer-logo img { height: 30px; width: auto; opacity: 0.85; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.footer-social img { width: 22px; height: 22px; }
.footer-social span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s var(--ease);
}
.footer-social:hover span { color: var(--white); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.24); line-height: 1.6; }

/* ── WHATSAPP FLUTUANTE ───────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), background 0.2s var(--ease);
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { background: #1FBE5A; }
.wa-float svg { width: 27px; height: 27px; fill: #05301A; }

/* ── SCROLL REVEAL ────────────────────────────────────────────────────────── */
/* Só esconde quando há JS para revelar de volta (a classe .js é adicionada
   por um script inline no <head>). Sem JS, o conteúdo aparece normalmente. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }

/* =============================================================================
   BREAKPOINTS
   ========================================================================== */

/* ≥ 560px — dois produtos por linha, botões do hero lado a lado */
@media (min-width: 560px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: row; flex-wrap: wrap; }
  .hero-btns .btn { width: auto; }
  .card-links { flex-direction: row; flex-wrap: wrap; }
  .card-links .buy { flex: 1 1 46%; }
}

/* ≥ 768px — tablet */
@media (min-width: 768px) {
  :root { --header-h: 72px; --pad: 4vw; }

  section { padding: 6rem var(--pad); }

  .header-logo img { height: 30px; }
  .footer-logo img { height: 36px; }

  .where-grid { grid-template-columns: repeat(3, 1fr); }
  .shipping-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
  }
  .footer-links { justify-content: flex-start; }

  .hero { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 4.5rem; }
  .hero-shots { gap: 0.8rem; }

  .wa-float { right: 24px; bottom: 24px; width: 58px; height: 58px; }
  .footer { padding-bottom: 2.4rem; }
}

/* ≥ 992px — desktop: nav horizontal, hero em duas colunas */
@media (min-width: 992px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    min-height: calc(100vh - var(--header-h) - 8rem);
  }
  .hero h1 { font-size: clamp(3.6rem, 5.6vw, 5.4rem); }

  .products-grid { grid-template-columns: repeat(3, 1fr); }

  .products-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
  }
}

/* ≥ 1280px */
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .card-links .buy { flex-basis: 100%; }
}

/* ── MOVIMENTO REDUZIDO ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee { animation: none; transform: none; }
  /* precisa da mesma especificidade de ".js .reveal" para vencer */
  .js .reveal { opacity: 1; transform: none; }
  .card:hover .card-media img { transform: none; }
}
