/* ==========================================================================
   R/T MOTORS — Componentes
   Preloader, header, botões, cards, formulários, modais, rodapé
   ========================================================================== */

/* ---------------------------- Preloader --------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #14141b 0%, #08080a 62%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-inline: 1.5rem;
}

.preloader__logo {
  position: relative;
  width: min(340px, 74vw);
  animation: preLogo 1.5s var(--ease) both;
}

.preloader__logo img {
  width: 100%;
  filter: drop-shadow(0 12px 34px rgba(203, 162, 74, 0.35));
}

/* Varredura dourada sobre o logo */
.preloader__logo::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  width: 42%;
  height: 120%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    rgba(251, 240, 207, 0.15),
    transparent
  );
  animation: shimmer 2.4s var(--ease-in-out) 0.5s infinite;
  pointer-events: none;
}

@keyframes preLogo {
  0% { opacity: 0; transform: translateY(22px) scale(0.9); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* Anéis pulsantes atrás do logo */
.preloader__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.preloader__rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(226, 192, 118, 0.22);
  border-radius: 50%;
  animation: ring 3s var(--ease-in-out) infinite;
}

.preloader__rings span:nth-child(2) { animation-delay: 1s; }
.preloader__rings span:nth-child(3) { animation-delay: 2s; }

@keyframes ring {
  0% { transform: scale(0.55); opacity: 0; }
  35% { opacity: 0.85; }
  100% { transform: scale(1.25); opacity: 0; }
}

.preloader__bar {
  position: relative;
  width: min(300px, 68vw);
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: var(--gold-grad);
  box-shadow: 0 0 18px rgba(226, 192, 118, 0.7);
  transition: width 0.25s var(--ease);
}

.preloader__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
}

.preloader__pct { color: var(--gold-300); font-variant-numeric: tabular-nums; }

/* ------------------------------ Botões ---------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), opacity var(--t) var(--ease);
}

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

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn--gold {
  background: var(--gold-grad);
  background-size: 180% 100%;
  color: #17120a;
  box-shadow: var(--sh-gold);
}

.btn--gold:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 46px rgba(203, 162, 74, 0.42);
}

/* Brilho que atravessa o botão no hover */
.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.75s var(--ease);
}

.btn--gold:hover::after { transform: translateX(320%) skewX(-18deg); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-200);
  background: rgba(203, 162, 74, 0.09);
}

.btn--red {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 12px 32px rgba(224, 27, 36, 0.3);
}

.btn--red:hover { box-shadow: 0 16px 42px rgba(224, 27, 36, 0.45); }

.btn--wpp {
  background: linear-gradient(120deg, #25d366, #128c50);
  color: #05240f;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.28);
}

.btn--wpp:hover { box-shadow: 0 16px 42px rgba(37, 211, 102, 0.42); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.78rem; }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  transition: all var(--t) var(--ease);
}

.btn-icon:hover {
  border-color: var(--gold-400);
  color: var(--gold-200);
  background: rgba(203, 162, 74, 0.12);
  transform: translateY(-2px);
}

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

/* Link com sublinhado animado */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-300);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}

.link-arrow:hover { gap: 0.9rem; color: var(--gold-100); }
.link-arrow svg { width: 16px; height: 16px; }

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height var(--t) var(--ease), background-color var(--t) var(--ease),
    border-color var(--t) var(--ease), backdrop-filter var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  height: 68px;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  transition: transform var(--t) var(--ease);
}

.brand:hover { transform: scale(1.04); }

.brand img {
  width: auto;
  height: 44px;
  transition: height var(--t) var(--ease);
  filter: drop-shadow(0 4px 14px rgba(203, 162, 74, 0.25));
}

.header.is-stuck .brand img { height: 36px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: auto;
}

.nav__link {
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--gold-grad);
  transform: translateX(-50%);
  transition: width var(--t) var(--ease);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 32%; }

.nav__link.is-active {
  color: var(--gold-200);
  background: rgba(203, 162, 74, 0.1);
}

.nav__link.is-active::after { width: 32%; }

.header__actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

/* Botão hambúrguer */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-200);
  transform: translateX(-50%);
  transition: all var(--t) var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; width: 13px; }
.burger span:nth-child(3) { top: 27px; }

.burger.is-open span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.burger.is-open span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: linear-gradient(180deg, #0c0c11, #08080a);
  clip-path: circle(0% at calc(100% - 46px) 42px);
  transition: clip-path 0.7s var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); }

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateX(-24px);
  transition: color var(--t) var(--ease);
}

.mobile-menu.is-open .mobile-menu__link {
  animation: fadeUp 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 180ms);
}

.mobile-menu__link span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-500);
  letter-spacing: 0.1em;
}

.mobile-menu__link:hover { color: var(--gold-200); }
.mobile-menu__foot { margin-top: 2rem; display: grid; gap: 0.75rem; }

/* ----------------------- Card de veículo -------------------------------- */

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

.vcard:hover {
  transform: translateY(-8px);
  border-color: rgba(226, 192, 118, 0.4);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(226, 192, 118, 0.12);
}

.vcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-3);
}

.vcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.vcard:hover .vcard__media img { transform: scale(1.09); }

.vcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 10, 0.88));
  pointer-events: none;
}

.vcard__badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vcard__count {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-full);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  color: var(--text-2);
}

.vcard__count svg { width: 13px; height: 13px; }

.vcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
  padding: 1.25rem;
}

.vcard__brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.vcard__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.vcard__version {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-3);
  min-height: 2.4em;
}

.vcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-block: 0.15rem;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.73rem;
  color: var(--text-2);
  white-space: nowrap;
}

.spec-chip svg { width: 13px; height: 13px; color: var(--gold-500); flex: none; }

.vcard__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.vcard__price-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.vcard__price {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--gold-200);
  letter-spacing: -0.01em;
}

.vcard__cta {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #17120a;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.vcard__cta svg { width: 18px; height: 18px; }
.vcard:hover .vcard__cta { transform: rotate(-45deg) scale(1.08); box-shadow: var(--sh-gold); }

.vcard__link { position: absolute; inset: 0; z-index: 3; }

.vcard.is-sold .vcard__media img { filter: grayscale(1) brightness(0.55); }

/* -------------------------------- Badges -------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.badge--gold { background: var(--gold-grad); color: #17120a; }
.badge--red { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; }
.badge--dark { background: rgba(8, 8, 10, 0.72); border: 1px solid var(--line-strong); color: var(--text-2); }
.badge--ok { background: rgba(46, 204, 113, 0.16); border: 1px solid rgba(46, 204, 113, 0.4); color: #6ee7a5; }
.badge--warn { background: rgba(240, 169, 46, 0.16); border: 1px solid rgba(240, 169, 46, 0.4); color: #f5c46b; }

/* ---------------------------- Formulários ------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.45rem; }

.field__label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field__label span { color: var(--red); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--gold-400);
  background: rgba(203, 162, 74, 0.07);
  box-shadow: 0 0 0 4px rgba(203, 162, 74, 0.12);
  outline: none;
}

.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cba24a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px;
  cursor: pointer;
}

.select option { background: var(--surface-2); color: var(--text); }

.field--error .input,
.field--error .select,
.field--error .textarea { border-color: var(--err); background: rgba(239, 68, 68, 0.07); }

.field__msg { font-size: 0.76rem; color: var(--err); }

/* Checkbox / switch */
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--text-2);
  user-select: none;
}

.check input { position: absolute; opacity: 0; pointer-events: none; }

.check__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--t) var(--ease);
}

.check__box svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.5); transition: all var(--t) var(--ease); color: #17120a; }
.check input:checked + .check__box { background: var(--gold-grad); border-color: transparent; }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check:hover .check__box { border-color: var(--gold-400); }

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--sh-lg);
  transform: translateY(26px) scale(0.97);
  transition: transform 0.45s var(--ease);
}

.modal.is-open .modal__box { transform: none; }
.modal__box--wide { width: min(1080px, 100%); }

.modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 19, 25, 0.94);
  backdrop-filter: blur(12px);
}

.modal__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.modal__body { padding: 1.6rem; }
.modal__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--line);
  background: rgba(19, 19, 25, 0.94);
  backdrop-filter: blur(12px);
}

.modal__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: all var(--t) var(--ease);
}

.modal__close:hover { border-color: var(--red); color: var(--red); transform: rotate(90deg); }
.modal__close svg { width: 17px; height: 17px; }

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

.toasts {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(380px, calc(100vw - 2.5rem));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold-400);
  border-radius: var(--r-md);
  background: rgba(26, 26, 34, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-md);
  font-size: 0.86rem;
  animation: toastIn 0.45s var(--ease) both;
}

.toast.is-out { animation: toastOut 0.35s var(--ease) forwards; }
.toast--ok { border-left-color: var(--ok); }
.toast--err { border-left-color: var(--err); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold-300); }
.toast--ok svg { color: var(--ok); }
.toast--err svg { color: var(--err); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(60px) scale(0.95); }
}

/* --------------------------- Flutuantes --------------------------------- */

.float-wpp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 880;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c50);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
  transition: transform var(--t) var(--ease);
  animation: float 3.4s var(--ease-in-out) infinite;
}

.float-wpp:hover { transform: scale(1.1); }
.float-wpp svg { width: 30px; height: 30px; }

.float-wpp::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: ring 2.4s var(--ease-in-out) infinite;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.75rem;
  z-index: 880;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(19, 19, 25, 0.9);
  backdrop-filter: blur(10px);
  color: var(--gold-300);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--t) var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold-400); background: rgba(203, 162, 74, 0.16); }
.to-top svg { width: 18px; height: 18px; }

/* Barra de progresso de leitura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 901;
  height: 2px;
  width: 0;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(226, 192, 118, 0.6);
}

/* ------------------------------ Rodapé ---------------------------------- */

.footer {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 3rem;
}

.footer__logo { height: 52px; width: auto; margin-bottom: 1.15rem; }
.footer p { font-size: 0.88rem; line-height: 1.7; }

.footer__title {
  margin-bottom: 1.15rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.footer__list { display: grid; gap: 0.7rem; }

.footer__list a,
.footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.footer__list a:hover { color: var(--gold-200); transform: translateX(4px); }
.footer__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold-500); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer__bottom a { color: var(--gold-400); }
.footer__bottom a:hover { color: var(--gold-200); }

/* ---------------------------- Skeletons --------------------------------- */

.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 800px 100%;
  animation: skeleton 1.4s linear infinite;
}

.skeleton-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.skeleton-card__media { aspect-ratio: 4 / 3; }
.skeleton-card__body { display: grid; gap: 0.7rem; padding: 1.25rem; }
.skeleton-card__body .skeleton { height: 13px; }
.skeleton-card__body .skeleton:nth-child(1) { width: 40%; }
.skeleton-card__body .skeleton:nth-child(2) { width: 85%; height: 20px; }
.skeleton-card__body .skeleton:nth-child(3) { width: 60%; }

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

.empty {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.empty svg { width: 54px; height: 54px; color: var(--gold-600); }
.empty h3 { font-size: 1.2rem; }
.empty p { max-width: 420px; font-size: 0.9rem; }

/* --------------------------- Responsivo --------------------------------- */

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .toasts { right: 0.75rem; left: 0.75rem; bottom: 0.75rem; max-width: none; }
  .float-wpp { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .float-wpp svg { width: 26px; height: 26px; }
  .to-top { right: 1rem; bottom: 4.75rem; }
}
