/* ============================================================
   MJ FREIOS — Componentes
   ============================================================ */

/* ---------------- Header ---------------- */

/* Topo da página: barra cheia e quadrada. Ao rolar: pílula flutuante. */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  margin-inline: 0;
  transition:
    margin 0.32s var(--ease),
    border-radius 0.32s var(--ease),
    background 0.32s var(--ease),
    border-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}

.header.scrolled {
  margin-inline: 14px;
  margin-top: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--glass-2);
  box-shadow: var(--sh-md);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  transition: min-height 0.32s var(--ease);
}

.header.scrolled .wrap {
  min-height: 62px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

/* A logo oficial (img/logo.webp) ja vem com fundo preto e a marca laranja.
   Entao o mark e a propria imagem: sem gradiente, so o recorte e um fio
   de borda para o Preto nao "sumir" no fundo do header (#08090a). */
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 6px 18px -8px rgba(0, 0, 0, 0.9);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo-name em {
  font-style: normal;
  color: var(--brand);
}

.logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a.active {
  color: var(--text);
  background: var(--brand-soft);
}

.nav a.active::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: 3px auto -6px;
  border-radius: 50%;
  background: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  place-items: center;
}

.burger svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: inherit;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 10px 16px 18px;
  max-height: calc(100vh - var(--header-h) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.open {
  display: block;
  animation: navIn 0.24s var(--ease);
}

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

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s, background 0.18s;
}

.mobile-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}

.mobile-nav button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mobile-nav a svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex: none;
}

.mobile-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.mobile-nav a.active svg {
  opacity: 1;
}

.mobile-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mobile-nav .mobile-cta {
  margin-top: 10px;
  justify-content: center;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-2);
}

.mobile-nav-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 4px;
}

.mobile-nav-foot a {
  justify-content: flex-start;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ---------------- Menu de conta ---------------- */

.header-forum-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  transition: all 0.18s;
}

.header-forum-link:hover {
  color: var(--brand);
  border-color: var(--brand-soft-2);
}

.header-forum-link svg {
  width: 18px;
  height: 18px;
}

.usermenu {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.user-trigger:hover,
.usermenu.open .user-trigger {
  border-color: var(--brand-soft-2);
  background: var(--surface);
}

.user-trigger .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 12px;
  background: linear-gradient(
    140deg,
    hsl(var(--hue, 24) 92% 55%),
    hsl(calc(var(--hue, 24) + 26) 88% 46%)
  );
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.user-meta b {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta small {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.user-trigger > svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  transform: rotate(90deg);
}

.user-drop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: 268px;
  padding: 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0.18s;
}

.usermenu.open .user-drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.user-drop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.user-drop-head .avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 15px;
  background: linear-gradient(
    140deg,
    hsl(var(--hue, 24) 92% 55%),
    hsl(calc(var(--hue, 24) + 26) 88% 46%)
  );
}

.user-drop-head b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.user-drop-head small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-pill {
  margin-top: 6px;
  font-size: 10.5px;
}

.user-drop a,
.user-drop button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s, color 0.16s;
}

.user-drop a:hover,
.user-drop button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.user-drop svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.7;
}

.user-drop .user-logout {
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  color: #f87171;
}

.user-drop .user-logout:hover {
  background: rgba(239, 68, 68, 0.08);
}

.header-login svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-cta-label { display: none; }
  .header-forum-link,
  .header-user { display: none; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px);
}

.hero-grid {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-block: 20px 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* Cards flutuantes do hero */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.hero-disc {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--surface-3), var(--surface) 55%, var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 30px rgba(255, 255, 255, 0.04), var(--sh-lg);
}

.hero-disc::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    var(--brand) 0deg 4deg,
    transparent 4deg 22deg
  );
  mask-image: radial-gradient(circle, transparent 32%, #000 34%, #000 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 32%, #000 34%, #000 100%);
  opacity: 0.85;
}

.hero-disc::after {
  content: "";
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}

.hero-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--r-lg);
  background: var(--glass-4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  animation: float 5.5s ease-in-out infinite;
}

.hero-stat strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-stat span {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.hero-stat .stat-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  flex: none;
}

.hero-stat .stat-ico svg {
  width: 19px;
  height: 19px;
  color: var(--brand-2);
}

.s1 { top: 4%; left: -4%; animation-delay: 0s; }
.s2 { top: 42%; right: -8%; animation-delay: 1.4s; }
.s3 { bottom: 4%; left: 2%; animation-delay: 2.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; order: -1; }
}

@media (max-width: 940px) {
  .s1 { left: -2%; }
  .s2 { right: -2%; }
}

/* ---------------- Barra de busca do veículo ---------------- */

.vsearch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  max-width: 560px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vsearch:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.vsearch svg {
  width: 19px;
  height: 19px;
  color: var(--brand);
  flex: none;
}

.vsearch input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 15px;
}

.vsearch input::placeholder {
  color: var(--text-3);
}

/* ---------------- Cartão de produto ---------------- */

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  transition: border-color 0.22s, transform 0.22s var(--ease), box-shadow 0.22s;
}

.pcard:hover {
  border-color: var(--brand-soft-2);
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, var(--surface-2), var(--bg-2) 72%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s var(--ease);
}

.pcard:hover .pcard-media img {
  transform: scale(1.05);
}

.pcard-media svg {
  width: 46%;
  height: auto;
  color: var(--surface-3);
  transition: color 0.3s, transform 0.4s var(--ease);
}

.pcard:hover .pcard-media svg {
  color: var(--brand);
  transform: scale(1.07) rotate(-3deg);
}

.pcard-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px;
}

.pcard-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.pcard-title {
  font-family: "Sora", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pcard-sku {
  font-size: 12px;
  color: var(--text-3);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.pcard-add {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: all 0.18s;
}

.pcard-add:hover,
.pcard-add.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pcard-add svg {
  width: 17px;
  height: 17px;
}

.stock-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.stock-in { color: #4ade80; }
.stock-low { color: #fbbf24; }
.stock-out { color: #f87171; }

.stock-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------------- Card de categoria ---------------- */

.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.22s, transform 0.22s var(--ease);
}

.ccard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.ccard:hover {
  border-color: var(--brand-soft-2);
  transform: translateY(-4px);
}

.ccard:hover::before {
  transform: scaleX(1);
}

.ccard-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  flex: none;
}

.ccard-ico svg {
  width: 23px;
  height: 23px;
  color: var(--brand-2);
}

.ccard h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ccard p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}

.ccard-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.ccard-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.ccard:hover .ccard-more svg {
  transform: translateX(4px);
}

/* ---------------- Faixa de estatísticas ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  padding: 28px 22px;
  background: var(--bg-2);
  text-align: center;
  transition: background 0.22s;
}

.stat:hover {
  background: var(--surface);
}

.stat b {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- Passos ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  font-family: "Sora", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
  opacity: 0.9;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- Unidades ---------------- */

.ucard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  transition: border-color 0.22s, transform 0.22s var(--ease);
}

.ucard:hover {
  border-color: var(--brand-soft-2);
  transform: translateY(-4px);
}

.ucard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ucard h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ucard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ucard-line {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.ucard-line svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--brand);
  flex: none;
}

.ucard-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------- Depoimentos ---------------- */

.tcard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.tcard-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.tcard-quote::before {
  content: "\201C";
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.7;
  color: var(--brand);
  margin-bottom: 12px;
}

.tcard-who {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-3));
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex: none;
}

.tcard-who b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.tcard-who span {
  font-size: 12.5px;
  color: var(--text-3);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--brand);
}

.stars svg {
  width: 14px;
  height: 14px;
}

/* ---------------- FAQ ---------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--brand-soft-2);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.faq-q svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: none;
  transition: transform 0.25s var(--ease);
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}

.faq-a p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------------- CTA ---------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 60px);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 45%, var(--brand-2) 100%);
  text-align: center;
}

.cta-band::after {
  content: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  max-width: 20ch;
  margin-inline: auto;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
  margin: 18px auto 0;
  font-size: 16.5px;
}

.cta-band .btn-ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.16);
}

.cta-band .btn-white {
  --btn-bg: #fff;
  --btn-fg: var(--brand-3);
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

/* ---------------- Filtros do catálogo ---------------- */

.filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.18s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--surface-3);
}

.chip.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.results-count b {
  color: var(--brand);
}

/* ---------------- Tabela de especificações ---------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec-table tr {
  border-bottom: 1px solid var(--line-soft);
}

.spec-table tr:last-child {
  border-bottom: 0;
}

.spec-table th {
  padding: 13px 0;
  text-align: left;
  font-weight: 500;
  color: var(--text-2);
  width: 42%;
  vertical-align: top;
}

.spec-table td {
  padding: 13px 0;
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

/* ---------------- Carrinho lateral / barra ---------------- */

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  background: var(--glass-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.cart-bar.show {
  transform: none;
}

.cart-bar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.cart-bar-info {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

.cart-count {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

/* ---------------- Cabeçalho de painel ---------------- */

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.panel-head + .table,
.panel-head + .grid {
  margin-top: 0;
}

/* ---------------- Atalhos rápidos ---------------- */

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.quick-link:hover {
  border-color: var(--brand);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.quick-link b {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.quick-link small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.quick-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.quick-ico svg {
  width: 19px;
  height: 19px;
}

/* ---------------- Tabela admin ---------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  padding: 12px 14px;
  text-align: left;
  font-family: "Sora", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr {
  transition: background 0.15s;
}

.table tbody tr:hover {
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s;
}

.icon-btn:hover {
  border-color: var(--brand-soft-2);
  color: var(--brand);
}

.icon-btn.danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------------- Toast ---------------- */

.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 40px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toast-in 0.3s var(--ease);
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.toast.ok { border-color: rgba(34, 197, 94, 0.4); }
.toast.ok svg { color: var(--ok); }
.toast.err { border-color: rgba(239, 68, 68, 0.4); }
.toast.err svg { color: #f87171; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Estado vazio ---------------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 24px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line);
  background: var(--bg-2);
}

.empty-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.empty-ico svg {
  width: 26px;
  height: 26px;
  color: var(--text-3);
}

/* ---------------- Modal ---------------- */

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.modal-bg.open {
  display: grid;
}

.modal {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  animation: modal-in 0.28s var(--ease);
}

.modal-lg { max-width: 900px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}

.modal-body {
  padding: 26px;
}

/* ---------------- Breadcrumb ---------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 22px;
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

/* ---------------- Footer ---------------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 44px;
  padding-block: clamp(44px, 6vw, 68px) 40px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.18s, padding-left 0.18s;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--brand);
  padding-left: 5px;
}

.footer-about p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 18px;
  max-width: 38ch;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all 0.18s;
}

.socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom a:hover {
  color: var(--brand);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------------- Utilidades de página ---------------- */

.prose {
  max-width: 72ch;
}

.prose p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 21px;
  margin: 32px 0 12px;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.prose li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  line-height: 1.6;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.check-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.check-list svg {
  width: 19px;
  height: 19px;
  color: var(--brand);
  flex: none;
  margin-top: 2px;
}

/* Accordion de linha do tempo */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding-bottom: 34px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 137px;
  top: 16px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item:last-child::before {
  display: none;
}

.tl-year {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-align: right;
  padding-right: 8px;
}

.tl-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 7px;
  padding-left: 26px;
}

.tl-body p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 26px;
}

@media (max-width: 680px) {
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-item::before { display: none; }
  .tl-year { text-align: left; padding-right: 0; }
  .tl-body h3, .tl-body p { padding-left: 0; }
}

/* Mapa / unidades */
.map-embed {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  aspect-ratio: 16 / 10;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85) hue-rotate(180deg);
}

/* Barra de rolagem */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--r-pill);
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-3); }
