:root {
  --red: #e4232b;
  --red-600: #c8161e;
  --red-glow: rgba(228, 35, 43, .35);
  --wa: #25d366;
  --bg: #0b0b0d;
  --bg-2: #121216;
  --bg-3: #1a1a20;
  --line: rgba(255, 255, 255, .08);
  --text: #f4f4f6;
  --text-2: #d8d8de;
  --muted: #a3a3ad;
  --star-off: #4a4a52;
  --input-bg: #0b0b0d;
  --map-filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  /* topo (sobre a foto), menu e rodapé ficam escuros nos dois temas por causa do logo */
  --dark: #0b0b0d;
  --dark-line: rgba(255, 255, 255, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--font);
  /* tamanhos (sobrescritos pelo painel → Aparência) */
  --fs-hero-title: 56px;
  --fs-hero-subtitle: 19px;
  --fs-section-title: 40px;
  --fs-card-title: 20px;
  --fs-body: 16px;
  --fs-stat: 42px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 48px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn--primary:hover { background: var(--red-600); box-shadow: 0 14px 34px -10px var(--red-glow); }
.btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #fff; }
.btn--wa { background: var(--wa); color: #06210f; }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--red); border-color: var(--red); }

/* ---------- Navegação ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.nav--solid { background: rgba(11, 11, 13, .88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--dark-line); padding: 8px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { width: 130px; height: auto; transition: width .3s; }
.nav--solid .nav__logo img { width: 110px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn) { position: relative; color: #d8d8de; transition: color .2s; }
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--red); transition: width .25s;
}
.nav__links a:not(.btn):hover, .nav__links a.active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav__toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { color: #f4f4f6; --line: var(--dark-line); position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(228, 35, 43, .22), transparent 55%),
    linear-gradient(90deg, rgba(11, 11, 13, .95) 0%, rgba(11, 11, 13, .75) 45%, rgba(11, 11, 13, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero__content { max-width: 1200px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #ffb3b6; padding: 6px 14px; border-radius: 999px;
  background: rgba(228, 35, 43, .12); border: 1px solid rgba(228, 35, 43, .35);
}
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(228, 35, 43, .25); }
.hero__title { font-size: min(var(--fs-hero-title), 11vw); font-weight: 800; margin: 22px 0 18px; max-width: 14ch; }
.hero__subtitle { font-size: min(var(--fs-hero-subtitle), 4.6vw); color: #d4d4da; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badges { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges li {
  padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  backdrop-filter: blur(8px); color: var(--muted); font-size: .92rem;
}
.hero__badges strong { color: #fff; font-family: var(--display); font-size: 1.15rem; margin-right: 4px; }

/* ---------- Seções ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--dark { background: var(--bg-2); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2 { font-size: min(var(--fs-section-title), 9vw); }
.section__head p { color: var(--muted); font-size: 1.08em; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; text-align: left; max-width: none; gap: 24px; }
.section__head--row h2 { margin: 0; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.service {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s, background .3s;
}
.service::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at 0 0, rgba(228, 35, 43, .18), transparent 60%);
}
.service:hover { transform: translateY(-6px); border-color: rgba(228, 35, 43, .5); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--red), #8f0f14); color: #fff; box-shadow: 0 10px 24px -10px var(--red-glow);
}
.service__icon .icon { width: 28px; height: 28px; }
.service h3 { font-size: var(--fs-card-title); }
.service p { color: var(--muted); margin: 0; }

/* ---------- Carrossel ---------- */
.carousel__nav { display: flex; gap: 10px; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 720px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; aspect-ratio: 16 / 10; background: var(--bg-3); }
.carousel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carousel__item:hover img { transform: scale(1.04); }
.carousel__item figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 24px 20px; font-weight: 500;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent);
}
.carousel--cards { grid-auto-columns: min(88%, 380px); }

/* ---------- Depoimentos ---------- */
.testimonial {
  margin: 0; padding: 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  scroll-snap-align: start; display: flex; flex-direction: column;
}
.testimonial p { color: var(--text-2); flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.testimonial cite { font-style: normal; font-weight: 600; font-family: var(--display); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: linear-gradient(135deg, var(--red), #8f0f14); color: #fff;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.star { width: 18px; height: 18px; color: var(--star-off); }
.star.on { color: #fbbf24; fill: #fbbf24; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 24px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__media::before {
  content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid rgba(228, 35, 43, .5); border-radius: 26px; z-index: -1;
}
.about__badge {
  position: absolute; right: -10px; bottom: 28px; padding: 18px 24px; border-radius: 18px; background: var(--red); color: #fff;
  box-shadow: 0 20px 40px -12px var(--red-glow); display: flex; flex-direction: column; line-height: 1.1;
}
.about__badge strong { font-family: var(--display); font-size: 2.2rem; }
.about__badge span { font-size: .85rem; opacity: .9; }
.about__text h2 { font-size: min(var(--fs-section-title), 9vw); }
.about__text p { color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 32px 20px; text-align: center; background: var(--bg-2); }
.stat strong { display: block; font-family: var(--display); font-size: min(var(--fs-stat), 10vw); color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Contato ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.contact__form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.contact__form label { display: grid; gap: 8px; font-weight: 500; font-size: .92rem; color: var(--text-2); }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg);
  color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(228, 35, 43, .15); }
.contact__form textarea { resize: vertical; }
.contact__form small { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__info { display: grid; gap: 16px; }
.info { display: flex; align-items: center; gap: 18px; padding: 22px; transition: border-color .2s, transform .2s; }
.info:hover { border-color: rgba(228, 35, 43, .5); transform: translateY(-2px); }
.info h3 { font-size: 1.05rem; margin: 0 0 2px; }
.info p { margin: 0; color: var(--muted); }
.info__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(228, 35, 43, .14); color: var(--red); flex-shrink: 0; }
.info__icon--wa { background: rgba(37, 211, 102, .14); color: var(--wa); }
.info__icon .icon { width: 26px; height: 26px; }
.map { overflow: hidden; height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); }

/* ---------- Rodapé ---------- */
.footer { background: #070709; color: #f4f4f6; border-top: 1px solid var(--dark-line); padding: 64px 0 0; --muted: #a3a3ad; --line: var(--dark-line); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer img { width: 150px; height: auto; margin-bottom: 16px; }
.footer h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.footer h3 .icon { color: var(--red); }
.hours { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.hours li { padding: 4px 0; }
.social { display: flex; gap: 12px; }
.social a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-3);
  border: 1px solid var(--line); transition: background .2s, transform .2s;
}
.social a:hover { background: var(--red); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 32px; height: 32px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animações ao rolar ----------
   O JS adiciona .anim no <html> quando as animações estão ativas;
   sem JS (ou desativadas no painel) tudo aparece normalmente. */
.anim .reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.anim .reveal--left  { transform: translateX(-80px); }
.anim .reveal--right { transform: translateX(80px); }
.anim .reveal--zoom  { transform: translateY(40px) scale(.9); }
.anim .reveal.in { opacity: 1; transform: none; }
/* depois de aparecer, devolve o hover normal dos cartões */
.anim .service.reveal.in { transition: opacity .9s, transform .3s, border-color .3s, background .3s; transition-delay: 0s; }
.anim .section__head h2::after, .about__text h2::after {
  content: ''; display: block; height: 3px; width: 0; background: var(--red); border-radius: 3px;
  margin: 14px auto 0; transition: width 1s .4s ease;
}
.about__text h2::after { margin-left: 0; }
.section__head--row h2::after { margin-left: 0; }
.anim .reveal.in h2::after { width: 64px; }
html:not(.anim) .section__head h2::after, html:not(.anim) .about__text h2::after { width: 64px; }
.hero__bg { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html.anim-soft .reveal, html.anim-soft .reveal--left, html.anim-soft .reveal--right, html.anim-soft .reveal--zoom { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .about, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; font-size: 1.3rem;
    background: rgba(11, 11, 13, .97); backdrop-filter: blur(12px);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav__links.open { opacity: 1; pointer-events: auto; }
  .services { grid-template-columns: 1fr; }
  .section__head--row { align-items: start; }
  .carousel { grid-auto-columns: 88%; }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .hero__actions .btn { width: 100%; }
  .hero__badges li { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__badge { right: 10px; }
  .about__media::before { display: none; }
  .carousel__nav { display: none; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

/* ---------- Modo claro ---------- */
html[data-theme="light"] {
  --bg: #f6f6f8;
  --bg-2: #ffffff;
  --bg-3: #eeeef2;
  --line: rgba(15, 15, 20, .1);
  --text: #16161a;
  --text-2: #3f3f46;
  --muted: #62626c;
  --star-off: #d4d4d8;
  --input-bg: #f6f6f8;
  --map-filter: none;
  --shadow: 0 20px 50px -24px rgba(20, 20, 30, .25);
  color-scheme: light;
}
html[data-theme="light"] .section--dark { background: #ececf0; }
html[data-theme="light"] .service,
html[data-theme="light"] .testimonial,
html[data-theme="light"] .card { box-shadow: 0 10px 30px -18px rgba(20, 20, 30, .25); }
html[data-theme="light"] .icon-btn { background: #fff; }
html[data-theme="light"] .icon-btn:hover { color: #fff; }
html[data-theme="light"] .carousel__item figcaption { color: #fff; }
html[data-theme="light"] .stats { background: var(--line); }
html[data-theme="dark"] { color-scheme: dark; }

/* Botão de tema (fica no menu, que é sempre escuro) */
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; transition: background .2s, transform .3s;
}
.theme-btn:hover { background: rgba(255, 255, 255, .16); transform: rotate(20deg); }
.theme-btn .icon { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
html.theme-anim body, html.theme-anim .service, html.theme-anim .testimonial, html.theme-anim .card, html.theme-anim .section {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
