/* cores */
:root {
  --primary: #1c1950;
  --primary-dark: #0f0d29;
  --accent: #d77700;
  --accent-text: #a35500;   /* laranja escuro, para texto pequeno */
  --accent-soft: #fdf0dd;
  --ink: #17152e;
  --muted: #5d5b70;
  --bg: #ffffff;
  --bg-alt: #f6f5f9;
  --line: #e7e5ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 13, 41, .12);
  --header-h: 76px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(15, 13, 41, .28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark-outline { border-color: var(--primary); color: var(--primary); }
.btn-dark-outline:hover { background: var(--primary); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: height .3s, box-shadow .3s; }
.site-header.scrolled { --header-h: 64px; height: 64px; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 21px; color: var(--primary); letter-spacing: -.3px; }
.logo img { height: 58px; width: auto; transition: height .3s; }
.site-header.scrolled .logo img { height: 46px; }
.site-footer .logo img { height: 64px; }
.logo span em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-alt); }
.nav a.active { color: var(--primary); background: var(--accent-soft); }
.header-cta { padding: 10px 22px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle span { top: 21px; } .menu-toggle span::before { top: -7px; left: 0; } .menu-toggle span::after { top: 7px; left: 0; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
main { padding-top: var(--header-h); }

/* hero / carrossel */
.hero { position: relative; height: min(640px, 80vh); min-height: 460px; overflow: hidden; background: var(--primary-dark); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; background-size: cover; background-position: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide:not(.active) { transition-duration: .35s; } /* o slide que sai some mais rápido */
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,13,41,.82) 0%, rgba(15,13,41,.42) 70%, rgba(15,13,41,.18) 100%); }
.slide::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.06); }
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.slide-content .eyebrow { display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #ffc47a; margin-bottom: 14px; }
.slide-content h1, .slide-content h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; margin-bottom: 16px; letter-spacing: -.5px; }
.slide-content p { font-size: clamp(16px, 2vw, 19px); opacity: .92; margin-bottom: 28px; max-width: 540px; }
.slide-content .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slide.active .slide-content > * { animation: rise .8s both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: .12s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .24s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px; }
.hero-controls .container { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 10px; }
.dot { width: 34px; height: 5px; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; position: relative; overflow: hidden; }
.dot.active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: progress var(--autoplay, 6s) linear both; }
.hero.paused .dot.active::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 18px; transition: background .2s; }
.arrow:hover { background: rgba(255,255,255,.25); }

/* topo das páginas internas */
.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -100px; top: -160px; background: rgba(255,255,255,.07); }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -.4px; }
.page-hero p { opacity: .9; max-width: 620px; margin-top: 10px; font-size: 18px; }
.breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 10px; }
.breadcrumb a { text-decoration: none; }

/* seções */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-alt + .section-alt { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow-dark { display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--accent-text); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -.4px; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }

/* números */
.stats { background: var(--primary); color: #fff; padding: 46px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -1px; }
.stat span { font-size: 14px; opacity: .85; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* bloco de imagem, até entrarem as fotos */
.visual { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--accent)); position: relative; overflow: hidden; box-shadow: var(--shadow); display: grid; place-items: center; color: rgba(255,255,255,.85); font-weight: 600; background-size: cover; background-position: center; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255,255,255,.25); border-radius: 10px; }
.check-list { margin-top: 20px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.check-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; display: grid; place-items: center; margin-top: 2px; }

/* clientes */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scroll 32s linear infinite; }
.client-logo { display: flex; align-items: center; justify-content: center; width: 240px; height: 130px; padding: 18px 24px; }
.client img { display: block; width: auto; height: auto; max-width: 100%; max-height: 80px; object-fit: contain; }
.marquee.static { mask-image: none; }
.marquee.static .marquee-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client { flex: none; min-width: 170px; text-align: center; padding: 20px 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-weight: 700; letter-spacing: .5px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* cta */
.cta { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 22px; padding: 54px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(24px, 3.2vw, 32px); max-width: 560px; line-height: 1.25; }
.cta p { opacity: .9; margin-top: 8px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-size: 16.5px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-family: inherit; color: var(--ink); }
.faq-q::after { content: "+"; font-size: 24px; line-height: 1; color: var(--primary); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* serviços detalhe */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.service-row:nth-child(even) .visual { order: 2; }
.service-row h3 { font-size: 26px; margin-bottom: 10px; letter-spacing: -.3px; }
.service-row p { color: var(--muted); font-size: 17px; }

/* formulário / contato */
.contact-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 4px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15.5px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(215,119,0,.20); outline: none; }
.field.error input, .field.error select, .field.error textarea { border-color: #d64545; }
/* reserva o espaço do erro para o layout não pular */
.field .msg { display: block; min-height: 20px; visibility: hidden; color: #d64545; font-size: 13px; margin-top: 4px; line-height: 1.4; }
.field.error .msg { visibility: visible; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.consent.error { color: #d64545; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent a { color: var(--primary); }
.form-success { display: none; margin-top: 16px; background: #dcf5e9; color: #146c49; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-success.show { display: block; animation: rise .5s both; }
.form-error { display: none; margin-top: 16px; background: #fde8e8; color: #9b1c1c; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-error.show { display: block; }
.form-error a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .65; cursor: progress; }
.info-card { background: var(--primary); color: #fff; border-radius: 18px; padding: 34px; }
.info-card h3 { font-size: 22px; margin-bottom: 18px; }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.info-item .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 19px; }
.info-item small { display: block; opacity: .75; font-size: 13px; }
.info-item a { text-decoration: none; }

/* footer */
.site-footer { background: #0f0d29; color: #c4c2d6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.footer-brand p { margin-top: 12px; max-width: 340px; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* whatsapp + cookies */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); text-decoration: none; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.4s infinite; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.cookie { position: fixed; left: 20px; right: 90px; bottom: 20px; z-index: 160; max-width: 620px; background: #0f0d29; color: #e6edf4; border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); transform: translateY(160%); transition: transform .5s ease; font-size: 14px; }
.cookie.show { transform: none; }
.cookie p { flex: 1 1 260px; }
.cookie a { color: #ffc47a; }
.cookie .btn { padding: 9px 20px; font-size: 14px; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* página legal */
.legal { max-width: 800px; }
.legal h2 { font-size: 22px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.notice { background: #fff4d6; border: 1px solid #f0d58a; color: #6b4e00; padding: 14px 18px; border-radius: 10px; font-size: 14.5px; }

/* responsivo */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .service-row, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .service-row:nth-child(even) .visual { order: 0; }
  .stats .grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* no celular a entrada é de baixo para cima, sem rolagem lateral */
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(32px); }
  .js [data-reveal].in { transform: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 24px; gap: 2px; box-shadow: 0 18px 30px rgba(0,0,0,.1); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .hero { min-height: 520px; }
  .arrows { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .grid-3, .row, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .form-card { padding: 24px 20px; }
  .cookie { right: 20px; bottom: 92px; }
}
/* celular estreito e tela ultrawide */
.contact-wrap > *, .row > *, .field, .grid-2 > *, .grid-3 > *, .service-row > *, .footer-grid > * { min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; }
.info-card, .info-card * { overflow-wrap: anywhere; }
@media (min-width: 1920px) {
  .container { width: min(1360px, 100% - 80px); }
  .hero { height: min(760px, 70vh); }
  .slide-content { max-width: 720px; }
}
@media (min-width: 2560px) {
  .container { width: min(1600px, 100% - 160px); }
  .hero { height: min(880px, 65vh); }
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
