/* =========================================================
   BLESSED EXPRESS — design system
   Paleta: preto grafite + branco, botões pretos.
   Tema automático (prefers-color-scheme) + toggle manual.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* radius */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* spacing */
  --s-xs: 6px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-2xl: 24px;
  --s-3xl: 32px;
  --s-4xl: 48px;
  --s-5xl: 72px;

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;

  /* shadows */
  --sh-1: 0 4px 16px rgba(0, 0, 0, .12);
  --sh-2: 0 8px 30px rgba(0, 0, 0, .16);
  --sh-pill: 0 4px 14px rgba(0, 0, 0, .18);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- TEMA CLARO (default) ---------- */
:root,
:root[data-theme="light"] {
  --canvas: #ffffff;
  --surface: #ffffff;
  --soft: #f3f3f3;
  --softer: #efefef;
  --ink: #0a0a0a;
  --body: #5e5e5e;
  --mute: #6b6b6b;
  --hairline: #e7e7e7;

  --graphite: #141414;       /* bandas pretas / grafite */
  --on-graphite: #ffffff;

  /* botão de marca: preto no claro */
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-bg-hover: #262626;

  --glow: radial-gradient(60% 60% at 50% 0%, rgba(0,0,0,.06), transparent 70%);
}

/* ---------- TEMA ESCURO ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0d0d0d;        /* preto grafite */
    --surface: #161616;
    --soft: #1c1c1c;
    --softer: #202020;
    --ink: #f5f5f5;
    --body: #a8a8a8;
    --mute: #8c8c8c;
    --hairline: #262626;

    --graphite: #f5f5f5;      /* banda inverte para clara no escuro */
    --on-graphite: #0a0a0a;

    /* no escuro o botão de marca vira branco (legibilidade) */
    --btn-bg: #f5f5f5;
    --btn-fg: #0a0a0a;
    --btn-bg-hover: #dcdcdc;

    --glow: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.06), transparent 70%);
    --sh-1: 0 4px 16px rgba(0, 0, 0, .5);
    --sh-2: 0 8px 30px rgba(0, 0, 0, .6);
  }
}

/* override manual (toggle) */
:root[data-theme="dark"] {
  --canvas: #0d0d0d;
  --surface: #161616;
  --soft: #1c1c1c;
  --softer: #202020;
  --ink: #f5f5f5;
  --body: #a8a8a8;
  --mute: #8c8c8c;
  --hairline: #262626;
  --graphite: #f5f5f5;
  --on-graphite: #0a0a0a;
  --btn-bg: #f5f5f5;
  --btn-fg: #0a0a0a;
  --btn-bg-hover: #dcdcdc;
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.06), transparent 70%);
  --sh-1: 0 4px 16px rgba(0, 0, 0, .5);
  --sh-2: 0 8px 30px rgba(0, 0, 0, .6);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* foco visível para navegação por teclado (acessibilidade) */
:focus-visible { outline: 3px solid #2684ff; outline-offset: 2px; border-radius: 4px; }
/* não mostrar o anel ao clicar com o mouse em navegadores que respeitam :focus-visible */
:focus:not(:focus-visible) { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--s-lg); }
@media (min-width: 768px) { .container { padding-inline: var(--s-3xl); } }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- BOTÕES (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: var(--r-pill);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--sh-pill); }
.btn--primary:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--hairline); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* botão dentro de banda preta (inverte) */
.btn--invert { background: var(--on-graphite); color: var(--graphite); }
.btn--invert:hover { transform: translateY(-2px); opacity: .9; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav__logo { width: 36px; height: 36px; border-radius: 9px; }
.nav__name-accent { color: var(--body); font-weight: 600; }

.nav__links { display: none; gap: var(--s-2xl); }
.nav__link { font-weight: 500; font-size: 15px; color: var(--body); transition: color .2s; }
.nav__link:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--soft); color: var(--ink);
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { transform: rotate(15deg); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun,
:root:not([data-theme="light"]) .icon-sun { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

.nav__burger { display: flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--r-pill); }
.nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--s-lg) var(--s-lg) var(--s-2xl);
  border-top: 1px solid var(--hairline); background: var(--canvas);
  animation: slideDown .3s var(--ease);
}
/* o atributo [hidden] precisa vencer o display:flex acima */
.mobile-menu[hidden] { display: none; }
.mobile-menu__link { padding: 14px 8px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--hairline); }
.mobile-menu .btn { margin-top: var(--s-md); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: var(--s-4xl); overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero__inner { position: relative; text-align: center; padding-block: var(--s-3xl) var(--s-4xl); display: flex; flex-direction: column; align-items: center; }

.hero__logo-wrap { margin-bottom: var(--s-2xl); }
.hero__logo {
  width: 132px; height: 132px; border-radius: var(--r-2xl);
  box-shadow: var(--sh-2);
  animation: float 5s ease-in-out infinite;
}
@media (min-width: 768px) { .hero__logo { width: 160px; height: 160px; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--body); background: var(--soft); padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: var(--s-lg);
}
.hero__title { font-size: clamp(27px, 8vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.hero__title-accent { color: var(--body); }
.hero__sub { margin-top: var(--s-lg); max-width: 52ch; color: var(--body); font-size: clamp(16px, 2.4vw, 19px); }
.hero__actions { margin-top: var(--s-2xl); display: flex; flex-wrap: wrap; gap: var(--s-md); justify-content: center; }

.hero__trust { margin-top: var(--s-3xl); display: flex; flex-wrap: wrap; gap: var(--s-lg) var(--s-2xl); justify-content: center; color: var(--body); font-size: 14px; }
.hero__trust strong { color: var(--ink); }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust li:not(:last-child)::after { content: "·"; margin-left: var(--s-2xl); color: var(--mute); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--hairline); padding-block: 14px; background: var(--soft); }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-weight: 800; font-size: 14px; letter-spacing: .08em; color: var(--mute); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- STATS ---------- */
.stats { padding-block: var(--s-4xl); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-lg); }
.stat { text-align: center; padding: var(--s-lg); }
.stat__num { display: block; font-size: clamp(30px, 7vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.stat__label { color: var(--body); font-size: 14px; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(48px, 9vw, 72px); }
/* âncoras não ficam escondidas atrás da nav fixa ao navegar */
[id] { scroll-margin-top: 84px; }
.section__head { max-width: 720px; margin-bottom: var(--s-3xl); }
.section__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--body); margin-bottom: var(--s-md); }
.section__title { font-size: clamp(28px, 5.5vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.section__lead { margin-top: var(--s-lg); color: var(--body); font-size: clamp(16px, 2.2vw, 18px); }

/* ---------- GALLERY (fotos do dono na moto) ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: var(--s-lg); }
.gallery__item {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--soft); box-shadow: var(--sh-1);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.pin {
  display: inline-block; background: rgba(0,0,0,.7); color: #fff; backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill);
}
/* placeholder quando a foto ainda não foi adicionada */
.gallery__item.is-empty::after {
  content: "📷  Adicione: " attr(data-place);
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--mute); font-size: 14px; font-weight: 600;
  background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 12px, var(--softer) 12px, var(--softer) 24px);
}
.gallery__item.is-empty figcaption { display: none; }

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ---------- CARDS (serviços) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--s-lg); }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: var(--s-2xl);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-1); border-color: transparent; }
.card__icon { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--soft); border-radius: var(--r-lg); margin-bottom: var(--s-lg); }
.card__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.card__text { color: var(--body); font-size: 15px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- PROMO (banda preta) ---------- */
.promo { padding-block: var(--s-3xl); }
.promo__inner {
  background: var(--graphite); color: var(--on-graphite);
  border-radius: var(--r-2xl); padding: var(--s-4xl) var(--s-3xl);
  display: flex; flex-direction: column; gap: var(--s-2xl); align-items: flex-start;
}
.promo__title { font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.promo__sub { margin-top: 8px; opacity: .75; font-size: 17px; max-width: 46ch; }
@media (min-width: 768px) {
  .promo__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- AVALIAÇÕES (carrossel) ---------- */
.g-rating { display: inline-flex; align-items: center; gap: 8px; }
.g-rating strong { font-size: 22px; }
.stars { color: #f5b400; letter-spacing: 2px; }

.carousel { position: relative; display: flex; align-items: center; gap: var(--s-sm); margin-top: var(--s-2xl); }
.carousel__viewport { overflow: hidden; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-lg); -webkit-overflow-scrolling: touch; }
.carousel__track { display: flex; gap: var(--s-lg); transition: transform .5s var(--ease); }
.review-card {
  flex: 0 0 auto; width: min(340px, 80vw); aspect-ratio: 3 / 2;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-1);
}
.review-card img { width: 100%; height: 100%; object-fit: contain; }
.review-card.is-empty { position: relative; }
.review-card.is-empty::after {
  content: "⭐\A Print da\A avaliação"; white-space: pre; text-align: center;
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--mute); font-size: 14px; font-weight: 600; line-height: 1.6;
  background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 12px, var(--softer) 12px, var(--softer) 24px);
}

.carousel__btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--sh-1);
  font-size: 26px; line-height: 1; color: var(--ink); display: grid; place-items: center;
  transition: transform .2s, background .2s; z-index: 5;
}
.carousel__btn:hover { transform: scale(1.08); background: var(--soft); }
.carousel__btn--prev { margin-left: 6px; }
.carousel__btn--next { margin-right: 6px; }

/* em telas pequenas os botões viram sobreposição nas bordas
   para não roubar largura útil do carrossel */
@media (max-width: 600px) {
  .carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; }
  .carousel__btn:hover { transform: translateY(-50%) scale(1.08); }
  .carousel__btn--prev { left: 4px; }
  .carousel__btn--next { right: 4px; }
}

.reviews__cta { margin-top: var(--s-2xl); text-align: center; }

@media (min-width: 768px) { .review-card { width: min(460px, 70vw); } }

/* ---------- CONTATO ---------- */
.contato__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3xl); align-items: center; }
.contato__list { margin-top: var(--s-2xl); display: flex; flex-direction: column; gap: var(--s-md); }
.contato__list a { display: flex; align-items: center; gap: var(--s-lg); padding: var(--s-lg); border: 1px solid var(--hairline); border-radius: var(--r-xl); transition: border-color .2s, transform .2s, background .2s; }
.contato__list a:hover { border-color: var(--ink); transform: translateX(4px); }
.contato__ico { font-size: 24px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--soft); border-radius: var(--r-lg); }

.contato__card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-2xl); padding: var(--s-3xl); text-align: center; box-shadow: var(--sh-1); }
.contato__logo { width: 64px; height: 64px; border-radius: var(--r-lg); margin: 0 auto var(--s-lg); }
.contato__card-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.contato__card-text { color: var(--body); margin: 10px 0 var(--s-2xl); }
@media (min-width: 900px) { .contato__grid { grid-template-columns: 1.1fr .9fr; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--graphite); color: var(--on-graphite); padding-block: var(--s-4xl) var(--s-2xl); margin-top: var(--s-3xl); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: var(--s-3xl); }
.footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 36ch; }
.footer__logo { width: 40px; height: 40px; border-radius: 9px; }

/* Logo sem fundo (preto): inverte para branco no tema escuro para manter visível */
:root[data-theme="dark"] .nav__logo,
:root[data-theme="dark"] .hero__logo,
:root[data-theme="dark"] .contato__logo,
:root[data-theme="dark"] .footer__logo { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__logo,
  :root:not([data-theme="light"]) .hero__logo,
  :root:not([data-theme="light"]) .contato__logo,
  :root:not([data-theme="light"]) .footer__logo { filter: invert(1); }
}
.footer__name { font-weight: 800; font-size: 18px; }
.footer__tag { opacity: .7; font-size: 14px; }
.footer__cols { display: flex; gap: var(--s-2xl) var(--s-5xl); flex-wrap: wrap; }
.footer__col h4 { font-size: 14px; margin-bottom: var(--s-md); opacity: .6; text-transform: uppercase; letter-spacing: .1em; }
.footer__col a { display: block; padding: 6px 0; opacity: .85; font-size: 15px; transition: opacity .2s; }
.footer__col a:hover { opacity: 1; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: var(--s-3xl); padding-top: var(--s-lg); border-top: 1px solid color-mix(in srgb, var(--on-graphite) 15%, transparent); font-size: 13px; opacity: .6; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.2fr 1fr; } }

/* ---------- FAB WhatsApp ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: var(--r-pill);
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- REVEAL (scroll animations) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- AJUSTES RESPONSIVOS FINOS ---------- */

/* alvos de toque confortáveis (mín. ~44px) em links de menu/rodapé */
.mobile-menu__link { min-height: 48px; display: flex; align-items: center; }
.footer__col a { min-height: 40px; display: flex; align-items: center; }

/* telas bem pequenas (≤ 380px): reduz folgas e evita estouro horizontal */
@media (max-width: 380px) {
  .btn { padding: 12px 16px; font-size: 14px; }
  .btn--lg { padding: 14px 18px; font-size: 15px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .nav__inner { gap: var(--s-sm); }
  .nav__name { font-size: 17px; }
  .hero__trust { gap: var(--s-sm) var(--s-lg); }
  .hero__trust li:not(:last-child)::after { margin-left: var(--s-lg); }
}

/* celular deitado (baixa altura): hero mais compacto, sem float exagerado */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-top: var(--s-2xl); }
  .hero__inner { padding-block: var(--s-2xl); }
  .hero__logo { width: 96px; height: 96px; animation: none; }
  .fab { width: 50px; height: 50px; }
}
