/* =========================================================
   Carlos Pneus - estilos
   Mobile first, responsivo
   ========================================================= */

:root {
  --red: #e30613;
  --red-dark: #b8040e;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --line: #e6e6e8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --container: 1200px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font: 700 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #ffb3b8; outline-offset: 2px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 6, 19, .3); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost-dark { color: var(--ink); border-color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: #f1f1f1; }
.btn--small { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; background: var(--ink); color: #fff; }
.btn--small:hover { background: #000; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: .8rem;
}
.eyebrow--light { color: #ffd1d4; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.brand span { font-size: 1.1rem; letter-spacing: -.01em; }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width .25s;
}
.nav a:hover::after { width: 100%; }

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

.menu-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(227, 6, 19, .18), transparent 60%),
    linear-gradient(135deg, #0d0d0d 0%, #1d1d1d 60%, #2a0306 100%);
  color: #d9d9d9; padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #ff5a64; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #cfcfcf; max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.badges li {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  padding: .45rem .9rem; border-radius: 999px; font-size: .88rem;
}
.badges strong { color: #fff; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .45); border: 4px solid rgba(255, 255, 255, .06);
}

/* ---------- Faixa de destaque ---------- */
.strip { background: var(--red); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.strip__grid > div { text-align: center; padding: 1.2rem .5rem; border-right: 1px solid rgba(255, 255, 255, .2); }
.strip__grid > div:last-child { border-right: 0; }
.strip strong { display: block; font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 800; line-height: 1.1; }
.strip span { font-size: .8rem; opacity: .9; }

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #cfcfcf; }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section__head h2 { margin-bottom: .5rem; }

/* ---------- Cards de serviços ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.6rem; }
.card__body p { font-size: .95rem; margin: 0; color: var(--muted); }
.card__body h3 { margin-bottom: .4rem; }

/* ---------- Sobre ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 2rem; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .6rem; color: var(--ink-soft); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---------- Galeria ---------- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.gallery__item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: #eee; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- Avaliações ---------- */
.reviews { display: grid; gap: 2.5rem; align-items: center; text-align: center; }
.reviews__score {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px; padding: 2.5rem 2rem; justify-self: center; min-width: min(100%, 300px);
}
.reviews__number { font-size: clamp(3.2rem, 9vw, 5rem); font-weight: 800; color: #fff; line-height: 1; margin: 0 0 .4rem; }
.reviews__score p:last-child { margin: 0; color: #bdbdbd; font-weight: 600; }
.reviews__text h2 { color: #fff; }
.reviews__text p { max-width: 38rem; margin-inline: auto; }

/* ---------- Contato ---------- */
.contact { display: grid; gap: 2.5rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; flex-direction: column; gap: .2rem; }
.contact__list a { color: var(--ink); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.contact__list a:hover { color: var(--red); }
.contact__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.contact__map {
  width: 100%; height: 380px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); background: #eee;
}

/* ---------- Rodapé ---------- */
.footer { background: #0b0b0b; color: #a8a8a8; padding: 3rem 0 2rem; font-size: .92rem; }
.footer a { color: #fff; text-decoration: none; }
.footer__inner { display: grid; gap: 1.4rem; }
.footer__brand { display: flex; gap: .9rem; align-items: center; }
.footer__brand img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.footer__brand strong { color: #fff; font-size: 1.1rem; }
.footer__brand p { margin: 0; }
.footer__copy { font-size: .8rem; color: #6f6f6f; border-top: 1px solid #222; padding-top: 1.2rem; margin: 0; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .8rem 1.2rem; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  animation: fab-pulse 2.4s ease-in-out infinite;
}
.fab-whatsapp svg { width: 26px; height: 26px; flex: none; }
.fab-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Popup de saída ---------- */
.exit-popup {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
}
.exit-popup.is-open { display: flex; animation: fade-in .25s ease; }
.exit-popup__box {
  position: relative; width: min(100%, 460px); background: #fff; border-radius: 20px;
  padding: 2.2rem 1.8rem 1.6rem; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  animation: pop-in .3s ease;
}
.exit-popup__box h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: .6rem; }
.exit-popup__box p { color: var(--muted); }
.exit-popup__close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%;
}
.exit-popup__close:hover { background: var(--bg-alt); color: var(--ink); }
.exit-popup__actions { display: grid; gap: .7rem; margin: 1.4rem 0 .8rem; }
.exit-popup__actions .btn { width: 100%; }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: #1ebe5a; }
.exit-popup__skip {
  background: none; border: 0; color: var(--muted); font: 600 .88rem var(--font);
  text-decoration: underline; cursor: pointer; padding: .4rem;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   RESPONSIVO
   ========================================================= */

/* Tablet e acima */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .strip__grid { grid-template-columns: repeat(4, 1fr); }
  .strip__grid > div { border-right: 1px solid rgba(255, 255, 255, .2); }
  .strip__grid > div:last-child { border-right: 0; }
}

/* Desktop pequeno */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--reverse .split__media { order: 2; }
  .reviews { grid-template-columns: auto 1fr; text-align: left; gap: 4rem; }
  .reviews__text p { margin-inline: 0; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .contact__map { height: 100%; min-height: 420px; }
  .footer__inner { grid-template-columns: 1.2fr 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop */
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

/* Menu mobile */
@media (max-width: 960px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .header__actions .btn--small { display: none; }
}

/* Celular */
@media (max-width: 640px) {
  .header__inner { min-height: 64px; }
  .brand span { font-size: 1rem; }
  .brand img { width: 40px; height: 40px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__media img { aspect-ratio: 4 / 4.2; }
  .fab-whatsapp { right: 14px; bottom: 14px; padding: .75rem; }
  .fab-whatsapp span { display: none; }
  .fab-whatsapp svg { width: 30px; height: 30px; }
  .contact__map { height: 300px; }
  .btn { white-space: normal; }
  .strip__grid > div { padding: 1rem .3rem; }
  .strip span { font-size: .72rem; }
}

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