/* ============================================================
   Bahia Games — Assistência Técnica · landing
   site.css  (mobile-first; usa os tokens de colors_and_type.css)
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--ink-900); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--layout-page-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }

.dot { color: var(--ink-900); }

.overline {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--ink-500);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 0; border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-15);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-default) var(--ease-out),
              transform var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-default) var(--ease-out);
}
.btn :where(svg, [data-lucide]) { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }

.btn--primary { --btn-bg: var(--bg-yellow); --btn-fg: var(--ink-900); }
.btn--primary:hover { background: var(--bg-yellow-deep); box-shadow: var(--shadow-glow-yellow); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--ink-300);
}
.btn--ghost:hover { background: var(--ink-100); }

.btn--lg { min-height: 56px; padding: 0 var(--space-6); font-size: var(--fs-16); }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-14); }
.btn--sm :where(svg, [data-lucide]) { width: 18px; height: 18px; }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink-200);
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: var(--fs-14); color: var(--ink-700);
}
.chip--accent {
  font-family: var(--font-accent);
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wide);
  background: var(--ink-900); color: #fff;
  box-shadow: none;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--dur-default) var(--ease-out),
              box-shadow var(--dur-default) var(--ease-out);
}
.topbar.is-scrolled {
  background: rgba(246,246,244,.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--ink-100);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 64px;
}
.topbar__brand img { height: 40px; width: auto; }
.topbar__nav { display: none; gap: var(--space-6); }
.topbar__nav a {
  font-weight: var(--fw-semibold); font-size: var(--fs-15);
  text-decoration: none; color: var(--ink-700);
  transition: color var(--dur-default) var(--ease-out);
}
.topbar__nav a:hover { color: var(--ink-900); }
.topbar__nav a[aria-current="page"] { color: var(--ink-900); font-weight: var(--fw-bold); }
.topbar__cta span { display: none; }

/* Hambúrguer (mobile) */
.topbar__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ink-900);
  border-radius: var(--r-md); cursor: pointer;
}
.topbar__toggle :where(svg, [data-lucide]) { width: 26px; height: 26px; }
.topbar__toggle-close { display: none; }
.topbar.is-open .topbar__toggle-open { display: none; }
.topbar.is-open .topbar__toggle-close { display: inline; }

@media (min-width: 768px) {
  .topbar__brand img { height: 48px; }
}
@media (min-width: 980px) {
  .topbar__nav { display: flex; }
  .topbar__toggle { display: none; }
  .topbar__cta span { display: inline; }
}

/* Layout do topo no mobile: hambúrguer (esq) · logo (centro) · WhatsApp (dir) */
@media (max-width: 979px) {
  .topbar__inner { position: relative; }
  .topbar__toggle { order: 0; }
  .topbar__cta    { order: 2; }
  .topbar__brand {
    order: 1;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}

/* Drawer do menu no mobile (< 980px) */
@media (max-width: 979px) {
  .topbar.is-open .topbar__nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    padding: var(--space-2) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--ink-100);
  }
  .topbar.is-open .topbar__nav a {
    padding: var(--space-4) 0; font-size: var(--fs-18);
    border-bottom: 1px solid var(--ink-100);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: var(--space-8) 0 var(--space-10); background: #F0EBE3; }
.hero__inner { display: grid; gap: var(--space-8); align-items: center; }

.hero__index { margin-bottom: var(--space-4); }

.hero__loc {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--ink-900);
}
.hero__loc :where(svg, [data-lucide]) { width: 15px; height: 15px; color: var(--bg-yellow); }
.hero__loc-word {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #fff;
  line-height: 1;
}

.hero__title { margin: 0; }
.hero__eyebrow {
  display: block;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  color: var(--ink-700); letter-spacing: var(--tracking-tight);
}
.hero__word {
  display: block;
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: clamp(2.4rem, 11vw, 5rem);
  line-height: .95; letter-spacing: -0.045em;
  color: var(--bg-yellow);
  overflow-wrap: anywhere;
}
.hero__lead {
  margin-top: var(--space-5);
  max-width: 46ch;
  font-size: var(--fs-18); line-height: var(--lh-relaxed);
  color: var(--ink-700);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero__seal {
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-full);
  background: var(--bg-yellow-soft);
}
.hero__seal strong {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: var(--fs-20); color: var(--ink-900);
}
.hero__seal span { font-size: var(--fs-13); color: var(--ink-700); }

/* stage */
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px; width: 100%;
  margin-inline: auto;
  display: grid; place-items: center;
}
.hero__disc {
  position: absolute; inset: 8%;
  border-radius: var(--r-full);
  background: var(--bg-yellow);
  box-shadow: 0 32px 80px -20px rgba(255,184,0,.5);
}
.hero__stage picture { display: block; width: 100%; }
.hero__art {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  will-change: transform;
}

/* Flutuar suave em loop (movimento até o vídeo entrar) */
@media (prefers-reduced-motion: no-preference) {
  .hero__art { animation: heroFloat 6s var(--ease-out) infinite; }
}
@keyframes heroFloat {
  0%, 100% { translate: 0 -10px; }
  50%      { translate: 0 10px; }
}
.hero__chip { position: absolute; z-index: 3; box-shadow: var(--shadow-md); }
.hero__chip--1 { top: 6%; left: -2%; }
.hero__chip--2 { top: 38%; right: -4%; }
.hero__chip--3 { bottom: 8%; left: 6%; }

@media (min-width: 980px) {
  .hero { padding: var(--space-16) 0; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--space-12); }
  .hero__stage { max-width: none; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { padding: var(--space-5) 0; border-block: 1px solid var(--ink-100); background: var(--paper); }
.trust__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.trust__item {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--fs-13); letter-spacing: var(--tracking-wide);
  color: var(--ink-700);
}
.trust__item :where(svg,[data-lucide]) { width: 20px; height: 20px; color: var(--bg-yellow-deep); }
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--space-16) 0; }
.section--alt { background: var(--paper); }
.section--brand { background: var(--bg-yellow); }
.section--brand .overline { color: var(--ink-700); }
.section--brand .feature__text { color: var(--ink-900); }
.section__head { max-width: 60ch; margin-bottom: var(--space-10); }
.section__head .overline { margin-bottom: var(--space-3); }
.section__title {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: var(--lh-tight); letter-spacing: var(--tracking-tight);
  margin: 0;
}
.section__sub { margin-top: var(--space-4); font-size: var(--fs-18); color: var(--ink-500); }

.group-label {
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--fs-12); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--ink-400);
  margin: var(--space-8) 0 var(--space-4);
}
.group-label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Faixa de logomarcas (entre seções) ---------- */
.logo-band {
  background: #fff;
  border-block: 1px solid var(--ink-100);
  padding-block: var(--space-4);
}

/* ---------- Faixa rotativa de logomarcas ---------- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track { display: flex; width: max-content; }
.logo-marquee__group {
  display: flex; align-items: center; flex: none;
  gap: var(--space-8); padding-right: var(--space-8);
}
.logo-marquee .logo {
  flex: none;
  width: 200px; height: 80px;
  background-color: var(--ink-900);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(17,20,24,.14));
  opacity: .68;
  transition: filter var(--dur-default) var(--ease-out), opacity var(--dur-default) var(--ease-out);
}
.logo-marquee .logo:hover {
  opacity: 1;
  filter: drop-shadow(0 6px 16px rgba(17,20,24,.22));
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
@media (min-width: 768px) { .logo-marquee .logo { width: 280px; height: 104px; } }

@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-marquee__track { animation: logo-scroll 28s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .logo-marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0; gap: var(--space-8); }
  .logo-marquee__group[aria-hidden="true"] { display: none; }
}

/* ---------- Cards (serviços) ---------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: box-shadow var(--dur-default) var(--ease-out),
              transform var(--dur-default) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--bg-yellow-soft); color: var(--ink-900);
  margin-bottom: var(--space-4);
}
.card__icon :where(svg,[data-lucide]) { width: 28px; height: 28px; }
.card__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-20); margin-bottom: var(--space-2); }
.card__text { color: var(--ink-700); font-size: var(--fs-15); line-height: var(--lh-normal); }
.card__meta {
  margin-top: var(--space-4);
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: .02em; color: var(--ink-500);
}
.card__btn { margin-top: var(--space-5); }

.card--hero { background: var(--bg-yellow); border-color: transparent; }
.card--hero .card__icon { background: rgba(17,20,24,.1); }
.card--hero .card__text { color: var(--ink-900); }
.card--hero .card__meta { color: var(--ink-700); }
.card--hero:hover { box-shadow: var(--shadow-glow-yellow); }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-5); grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--canvas);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}
.section--alt .step { background: var(--canvas); }
.step__num {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--fs-14); color: var(--ink-900);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-sm);
  background: var(--bg-yellow);
  margin-bottom: var(--space-4);
}
.step__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-18); margin-bottom: var(--space-2); }
.step__text { color: var(--ink-700); font-size: var(--fs-14); line-height: var(--lh-normal); }

/* ---------- Features ---------- */
.feature { padding: var(--space-2); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-full);
  background: var(--ink-900); color: var(--bg-yellow);
  margin-bottom: var(--space-4);
}
.feature__icon :where(svg,[data-lucide]) { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-18); margin-bottom: var(--space-2); }
.feature__text { color: var(--ink-700); font-size: var(--fs-14); line-height: var(--lh-normal); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; gap: var(--space-8); }
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; } }

.contact__list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.contact__list li { display: flex; gap: var(--space-4); }
.contact__list :where(svg,[data-lucide]) { width: 22px; height: 22px; color: var(--bg-yellow-deep); flex: none; margin-top: 2px; }
.contact__list div { display: flex; flex-direction: column; gap: 2px; }
.contact__list strong { font-weight: var(--fw-bold); font-size: var(--fs-16); }
.contact__list span { color: var(--ink-700); font-size: var(--fs-15); }
.contact__list a { color: var(--ink-900); font-weight: var(--fw-semibold); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__hint { color: var(--ink-500) !important; font-size: var(--fs-13) !important; }

.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.contact__media { display: grid; gap: var(--space-4); }
.contact__photo { margin: 0; }
.contact__photo img {
  width: 100%; height: 280px; object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
}
.contact__photo figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-body); font-size: var(--fs-13);
  color: var(--ink-500);
}

.contact__map {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  min-height: 280px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-900); color: #fff; padding: var(--space-12) 0; }
.footer__inner { display: grid; gap: var(--space-6); }
.footer__brand { display: flex; align-items: center; gap: var(--space-3); }
.footer__brand img { border-radius: var(--r-md); }
.footer__brand strong { display: block; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-18); }
.footer__brand span { color: var(--ink-300); font-size: var(--fs-13); }
.footer__contacts { display: grid; gap: var(--space-2); }
.footer__contacts a { color: #fff; text-decoration: none; font-weight: var(--fw-semibold); }
.footer__contacts a:hover { color: var(--bg-yellow); }
.footer__contacts span { color: var(--ink-300); font-size: var(--fs-14); }
.footer__legal { color: var(--ink-400); font-size: var(--fs-13); }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .footer__legal { grid-column: 1 / -1; padding-top: var(--space-4); border-top: 1px solid var(--ink-700); }
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.fab {
  position: fixed; z-index: 60;
  right: var(--space-4); bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 56px; padding: 0 var(--space-5);
  border-radius: var(--r-full);
  background: var(--bg-yellow); color: var(--ink-900);
  box-shadow: var(--shadow-glow-yellow), var(--shadow-lg);
  text-decoration: none; font-weight: var(--fw-bold);
  transition: background var(--dur-default) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.fab:hover { background: var(--bg-yellow-deep); }
.fab:active { transform: scale(.97); }
.fab :where(svg,[data-lucide]) { width: 24px; height: 24px; }
.fab__label { display: inline; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .fab { transition: none; }
}
