/* ============================================================
   IBM Autopeças | página institucional (demonstração IDM)
   Duas dobras: hero (picape em traço) + o que tem / onde estamos
   ============================================================ */

:root {
  --red: #D3121A;
  --red-deep: #8A0A0F;
  --red-ink: #4E0508;
  --yellow: #FFD200;
  --yellow-deep: #F2B600;
  --ink: #121214;
  --ink-2: #1C1C20;
  --paper: #F4F1EA;
  --paper-2: #E9E4D8;
  --muted: #6B6660;
  --white: #fff;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill, .wa-float .fill { fill: currentColor; stroke: none; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 26px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent;
  transition: translate .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn .ico { width: 22px; height: 22px; }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 210, 0, .6); }
.btn--primary:hover { background: #FFE14D; translate: 0 -2px; }
.btn--line { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--ghost { background: rgba(0,0,0,.22); color: var(--white); border-color: rgba(255,255,255,.18); }
.btn--ghost:hover { background: rgba(0,0,0,.4); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn--sm .ico { width: 18px; height: 18px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; transform: skewX(-20deg); }
.eyebrow--red { color: var(--red); }

/* ============================================================
   DOBRA 1: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 78% 40%, #C3121A 0%, rgba(195,18,26,0) 60%),
    linear-gradient(160deg, #A50D14 0%, var(--red-deep) 48%, var(--red-ink) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* malha de prancheta técnica */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(90% 80% at 70% 45%, #000 30%, transparent 85%);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 6px;
}
.logo svg { width: clamp(150px, 16vw, 200px); height: auto; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.logo__ibm { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 31px; letter-spacing: .5px; fill: var(--yellow); }
.logo__sub { font-family: var(--f-body); font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .3px; fill: var(--white); }

.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__addr { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: rgba(255,255,255,.82); }
.topbar__addr .ico { color: var(--yellow); }

.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(12px, 3vh, 40px);
  padding-bottom: clamp(84px, 11vh, 120px);
}

.hero__title {
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: .9; letter-spacing: -.005em; text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .08em .04em 0; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__title em { font-style: inherit; color: var(--yellow); }

.hero__sub {
  margin-top: 22px; max-width: 34em;
  font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(255,255,255,.86);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.chips li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23121214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Picape em traço ---------- */
.hero__art { margin: 0; position: relative; }
.truck { width: 100%; height: auto; overflow: visible; }
.truck .draw { fill: none; stroke: rgba(255,255,255,.92); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.truck .draw.thin { stroke-width: 1.4; stroke: rgba(255,255,255,.55); }
.truck__ground { stroke-dasharray: .006 .01 !important; stroke: rgba(255,255,255,.35) !important; stroke-width: 1.4 !important; }
.truck__shadow { fill: rgba(0,0,0,.28); filter: blur(6px); }

.spot__lead { fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .85; }
.spot__dot { fill: var(--yellow); stroke: var(--red-deep); stroke-width: 3; }
.spot__pulse { fill: none; stroke: var(--yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; animation-delay: calc(var(--d) * .4s); }
.spot__label {
  font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: 2px;
  fill: var(--white); text-anchor: middle;
  paint-order: stroke; stroke: rgba(78,5,8,.65); stroke-width: 5px; stroke-linejoin: round;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Faixa amarela (fim da dobra 1) ---------- */
.ribbon {
  position: absolute; left: -2%; right: -2%; bottom: 26px;
  background: var(--yellow); color: var(--ink);
  transform: rotate(-1.4deg);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5);
  overflow: hidden;
}
.ribbon__track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  padding: 12px 0;
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.ribbon__track i { font-style: normal; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   DOBRA 2: O QUE TEM + ONDE ESTAMOS
   ============================================================ */
.loja { padding: clamp(56px, 8vh, 96px) 0 clamp(48px, 7vh, 80px); }
.loja__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.loja__title {
  margin-top: 12px;
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .95; text-transform: uppercase;
}
.loja__title span { color: var(--red); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.card {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(18,18,20,.07);
  box-shadow: 0 1px 0 rgba(18,18,20,.04), 0 18px 40px -28px rgba(80,10,10,.35);
  overflow: hidden;
  transition: translate .25s ease, box-shadow .25s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--red), var(--red-deep));
  transform: scaleY(.35); transform-origin: top; transition: transform .3s ease;
}
.card:hover { translate: 0 -3px; box-shadow: 0 1px 0 rgba(18,18,20,.04), 0 24px 46px -26px rgba(80,10,10,.45); }
.card:hover::after { transform: scaleY(1); }
.card__ico { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 {
  margin-top: 12px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; line-height: 1; text-transform: uppercase;
}
.card p { margin-top: 6px; color: #3B3733; font-size: .98rem; }
.card small {
  display: block; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(18,18,20,.15);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}

.linhas {
  margin-top: 14px; padding: 18px 22px;
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 22px;
}
.linhas__label {
  font-family: var(--f-display); font-weight: 800; font-size: .95rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); max-width: 9em; line-height: 1.1;
}
.linhas ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.linhas li { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.35; padding-left: 14px; border-left: 2px solid var(--red); }
.linhas b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: var(--white); text-transform: uppercase; letter-spacing: .02em; }

.marcas { margin-top: 16px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: #8C857C; }
.marcas span { color: var(--ink); margin-right: 6px; }

/* ---------- Cartão de contato ---------- */
.contato {
  background: var(--ink); color: var(--white);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(40,4,6,.55);
}
.contato__map { position: relative; aspect-ratio: 16 / 8.5; background: var(--ink-2); }
.contato__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.contato__map::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--ink) 12px 24px); }
.contato__body { padding: 24px 26px 26px; }
.contato__title {
  font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; text-transform: uppercase; color: var(--yellow);
}
.contato__addr { display: flex; gap: 10px; margin-top: 12px; text-decoration: none; color: rgba(255,255,255,.88); line-height: 1.4; }
.contato__addr .ico { margin-top: 2px; color: var(--yellow); }
.contato__addr em { display: block; margin-top: 4px; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--yellow); }
.contato__addr:hover em { text-decoration: underline; }

.fones { margin: 18px 0 18px; border-top: 1px solid rgba(255,255,255,.1); }
.fones li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.fones__tag { font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.fones a { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; text-decoration: none; }
.fones a:hover { color: var(--yellow); }

.contato__hint { margin-top: 10px; font-size: .88rem; color: rgba(255,255,255,.6); text-align: center; }

.redes { display: flex; justify-content: center; gap: 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.redes a { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; text-decoration: none; color: rgba(255,255,255,.8); }
.redes a:hover { color: var(--yellow); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--paper-2); color: var(--muted); font-size: .85rem; }
.rodape__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 18px; }
.rodape a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rodape a:hover { color: var(--red); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.wa-float svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1100px) {
  .topbar__addr { display: none; }
}

@media (max-width: 960px) {
  .hero__body { grid-template-columns: 1fr; gap: 8px; padding-bottom: 96px; }
  .hero__art { margin-inline: -8px; }
  .loja__grid { grid-template-columns: 1fr; }
  .linhas { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { padding-top: 14px; }
  .topbar .btn--sm { padding: 0 12px; font-size: .95rem; }
  .hero__title { font-size: clamp(3.1rem, 15vw, 4.2rem); }
  .hero__ctas .btn { width: 100%; }
  .chips { gap: 8px 14px; }
  .chips li { font-size: .9rem; }
  .spot__label { font-size: 24px; }
  .cards { gap: 10px; margin-top: 22px; }
  .card { padding: 16px 14px 16px 16px; }
  .card__ico { width: 28px; height: 28px; }
  .card h3 { margin-top: 10px; font-size: 1.3rem; }
  .card p { font-size: .88rem; line-height: 1.4; }
  .card small { display: none; }
  .linhas ul { grid-template-columns: 1fr; gap: 12px; }
  .contato__body { padding: 22px 20px 24px; }
  .fones a { font-size: 1.2rem; }
  .rodape__in { flex-direction: column; }
}


@media (prefers-reduced-motion: reduce) {
  .ribbon__track, .spot__pulse { animation: none; }
  .btn, .card, .wa-float { transition: none; }
}
