:root {
  --navy: #0a1f4d;
  --navy-2: #0f2d6e;
  --blue: #1552c9;
  --blue-2: #2f7bf0;
  --sky: #e8f1ff;
  --ice: #f5f8fd;
  --ink: #0e1726;
  --muted: #5a6780;
  --line: #dde5f2;
  --white: #fff;
  --green: #1faa55;
  --green-2: #15914a;
  --danger: #c9372c;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 31, 77, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 77, 0.18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--ice); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(21, 82, 201, .3); }
.btn-primary:hover { background: #1047b3; }
.btn-whats { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31, 170, 85, .3); }
.btn-whats:hover { background: var(--green-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 38px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo-text span { color: var(--blue); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #dbe8ff 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--ice) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; padding-top: clamp(40px, 6vw, 80px); }
.hero-copy { padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 1.18rem; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-tags li { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy-2); }
.hero-photo { position: relative; align-self: end; }
.hero-photo::before { content: ''; position: absolute; inset: 12% 6% 0 6%; background: linear-gradient(160deg, var(--blue-2), var(--navy)); border-radius: 28px 28px 0 0; }
.hero-photo img { position: relative; width: 100%; height: auto; max-width: 470px; margin-inline: auto; border-radius: 28px 28px 0 0; mask-image: linear-gradient(180deg, #000 85%, transparent); }
.hero-badge { position: absolute; left: -24px; bottom: 28px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 250px; }
.hero-badge strong { display: block; color: var(--navy); font-size: .98rem; line-height: 1.25; }
.hero-badge small { color: var(--muted); font-size: .8rem; }
.hero-badge .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; color: var(--blue); flex: none; }

/* Faixa de confiança */
.trust { background: var(--navy); color: #cfe0ff; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { display: flex; gap: 12px; align-items: center; font-size: .93rem; }
.trust-item strong { color: #fff; display: block; font-size: 1rem; }
.trust-item svg { color: #7fb2ff; width: 28px; height: 28px; flex: none; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c6d6f2; }
.service .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.2rem; color: var(--navy); }
.service p { color: var(--muted); font-size: .96rem; }
.service a { font-weight: 700; text-decoration: none; font-size: .93rem; }
.service.feature { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #d8e5ff; border: 0; }
.service.feature h3 { color: #fff; }
.service.feature p { color: #b9ccf2; }
.service.feature .ico { background: rgba(255, 255, 255, .1); color: #8dbbff; }
.service.feature a { color: #8dbbff; }

/* Orçamento */
.quote { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); margin: 0 0 14px; font-size: 1.05rem; }
.step-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.step + .step { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy-2); transition: all .15s; }
.chip:hover { border-color: var(--blue-2); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-opt { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.product-opt input { position: absolute; opacity: 0; }
.product-opt strong { display: block; color: var(--navy); font-size: .98rem; }
.product-opt span { color: var(--muted); font-size: .85rem; line-height: 1.4; display: block; margin-top: 2px; }
.product-opt:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.product-opt:has(input:focus-visible) { outline: 3px solid rgba(21, 82, 201, .35); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .86rem; color: var(--navy-2); }
.field small { color: var(--muted); font-size: .78rem; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; font-size: 16px; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 82, 201, .12); }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.input-suffix .input { padding-right: 42px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; font-size: .88rem; font-weight: 600; }
.swatch input { position: absolute; opacity: 0; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.swatch:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.item-preview { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--ice); }
.item-preview .val { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.item-preview .hint { font-size: .82rem; color: var(--muted); }
.form-error { color: var(--danger); font-size: .88rem; font-weight: 600; margin-top: 10px; min-height: 1.2em; }

.summary { position: sticky; top: 92px; }
.summary h3 { color: var(--navy); font-size: 1.2rem; }
.summary-empty { color: var(--muted); font-size: .95rem; padding: 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: 14px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.summary-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.summary-list .nm { font-weight: 700; color: var(--navy); font-size: .95rem; }
.summary-list .dt { color: var(--muted); font-size: .8rem; grid-column: 1; line-height: 1.4; }
.summary-list .pr { font-weight: 800; color: var(--navy); text-align: right; }
.summary-list .rm { grid-column: 2; background: none; border: 0; color: var(--danger); cursor: pointer; font-size: .8rem; font-weight: 600; padding: 0; text-align: right; }
.total-box { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #cfe0ff; border-radius: 16px; padding: 20px; margin: 16px 0; }
.total-box .range { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2; }
.total-box small { display: block; font-size: .8rem; color: #a9c2f0; margin-top: 8px; line-height: 1.45; }
.total-lines { font-size: .85rem; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.total-lines div { display: flex; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.ok-msg { background: #e7f7ee; color: #146b3a; border-radius: 12px; padding: 14px; font-size: .92rem; font-weight: 600; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: passo; }
.how { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.how::before { counter-increment: passo; content: counter(passo, decimal-leading-zero); font-weight: 800; font-size: 2rem; color: #c7d8f7; display: block; margin-bottom: 8px; }
.how h3 { font-size: 1.05rem; color: var(--navy); }
.how-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.how p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Galeria */
.lightbox { position: fixed; inset: 0; background: rgba(4, 10, 25, .9); display: none; place-items: center; z-index: 100; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.client { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.client strong { display: block; color: var(--navy); }
.client span { color: var(--muted); font-size: .86rem; }

/* Sobre */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos img { border-radius: 18px; width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.about-photos img:first-child { grid-column: span 2; aspect-ratio: 4 / 3.4; object-position: center 20%; }
.about ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.about li { display: flex; gap: 10px; align-items: flex-start; }
.about li svg { color: var(--green); width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* Região */
.region { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bairros { display: flex; flex-wrap: wrap; gap: 8px; }
.bairros span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .86rem; color: var(--navy-2); font-weight: 600; }
.region-check { display: flex; gap: 10px; margin-top: 20px; }
.region-result { margin-top: 12px; font-weight: 600; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 1.04rem; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA final + footer */
.cta { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #cfe0ff; }
.footer { background: var(--navy); color: #a9bde6; padding: 56px 0 28px; margin-top: 80px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer h4 { color: #fff; margin: 0 0 12px; }
.footer a { color: #cfe0ff; text-decoration: none; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Botão flutuante WhatsApp + Chat */
.fab-whats { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(31, 170, 85, .45); }
.fab-whats svg { width: 30px; height: 30px; }
.chat-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 8px 20px 8px 8px; cursor: pointer; box-shadow: var(--shadow-lg); font-weight: 700; }
.chat-toggle img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.chat-toggle .pulse { position: absolute; left: 40px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--navy); }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 40px)); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.chat.open { display: flex; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.chat-head { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); }
.chat-head strong { display: block; line-height: 1.2; }
.chat-head small { color: #9fc0ff; font-size: .78rem; }
.chat-head button { margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ice); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.45; white-space: pre-line; animation: fadeUp .2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg.agent { background: #fff; border: 1px solid #bfe8cf; border-left: 3px solid var(--green); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.agent b { display: block; font-size: .75rem; color: var(--green-2); margin-bottom: 2px; }
.msg.sys { align-self: center; max-width: 92%; background: transparent; color: var(--muted); font-size: .8rem; text-align: center; padding: 4px 8px; }
.msg.user.falhou { opacity: .55; }
.chat.live .chat-head { background: linear-gradient(135deg, #12753b, #0b4d27); }
.chat.live .chat-head small { color: #b9f0cd; }
.chat-head .chat-end { width: auto; border-radius: 999px; padding: 0 12px; font-size: .78rem; font-weight: 700; }
.chat-toggle.has-new .pulse { background: #ff4d4f; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { transform: scale(1.35); } }
.chat-head .chat-end + button { margin-left: 6px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-options button, .chat-options a { background: #fff; border: 1.5px solid #c9d8f3; color: var(--blue); border-radius: 999px; padding: 7px 13px; font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.chat-options button:hover, .chat-options a:hover { background: var(--sky); }
.chat-options .primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.chat-options .wa { background: var(--green); border-color: var(--green); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-form button { background: var(--blue); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat.open, .msg, .chat-toggle.has-new .pulse { animation: none; }
}

/* Responsivo */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--ice); }
  .menu-btn { display: block; }
  .header .hdr-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-photo img { max-width: 360px; }
  .hero-badge { left: 0; bottom: 30px; }
  .about, .region { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .services, .steps, .products { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 12px; }
  .chat-toggle span.lbl { display: none; }
  .chat-toggle { padding: 6px; }
  .region-check { flex-direction: column; }
  .cta { text-align: center; justify-content: center; }
}

/* Acessibilidade: pular para o conteúdo */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(21, 82, 201, .45); outline-offset: 2px; }

/* Depoimentos (só aparecem quando cadastrados no painel) */
.depoimentos { columns: 3 300px; column-gap: 20px; }
.dep { break-inside: avoid; margin: 0 0 20px; padding: 26px 26px 22px; background: var(--ice); border-radius: 18px; }
.dep blockquote { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.dep figcaption strong { display: block; color: var(--navy); }
.dep figcaption span { font-size: .86rem; color: var(--muted); }

.anos { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.anos strong { font-size: 2.4rem; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.lgpd { font-size: .78rem; color: var(--muted); margin: 0; }
.lgpd a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }

/* Links, pagamentos e Pix no chat */
.lk-inline { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.msg.agent.cartao { padding: 8px; max-width: 92%; }
.msg.agent.cartao > b { padding: 2px 6px 6px; }
.lk-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; min-width: 220px; }
.lk-top { display: flex; gap: 10px; align-items: center; }
.lk-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); font-size: 1.05rem; flex: none; }
.lk-pagamento .lk-ico { background: #e5f6ec; }
.lk-pix .lk-ico { background: #e0f5f1; color: #0f8a78; font-size: 1.2rem; }
.lk-top strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.2; }
.lk-top small { color: var(--muted); font-size: .78rem; word-break: break-all; }
.lk-valor { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.lk-desc { margin: 0; color: var(--ink); font-size: .9rem; }
.lk-chave { display: block; padding: 8px 10px; border-radius: 8px; background: var(--ice); border: 1px dashed #c3d3ee; font-size: .85rem; word-break: break-all; user-select: all; }
.lk-btn { display: flex; justify-content: center; align-items: center; padding: 11px 14px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; background: var(--blue); color: #fff; transition: background .2s, transform .15s; }
.lk-btn:hover { background: #1047b3; }
.lk-btn:active { transform: scale(.98); }
.lk-pagamento .lk-btn { background: var(--green); }
.lk-pagamento .lk-btn:hover { background: var(--green-2); }
.lk-pix .lk-btn { background: #0f8a78; }

/* ---------- Galeria (home + página Trabalhos) ---------- */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 14px; }
.galeria.bento .g-tile:first-child { grid-column: span 2; grid-row: span 2; }
.galeria.linha { grid-auto-rows: auto; }
.galeria.linha .g-tile { aspect-ratio: 4 / 5; }
.galeria.carregando { opacity: .45; transition: opacity .2s; }
.g-tile { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #e3ebf7, #cfdcf0); box-shadow: 0 1px 2px rgba(10, 31, 77, .06); isolation: isolate; }
.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.g-tile.is-video .g-btn { cursor: pointer; }
.g-btn img, .g-btn video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.g-tile:hover img, .g-tile:hover video { transform: scale(1.05); }
.g-btn:focus-visible { outline: 3px solid #7fb2ff; outline-offset: -3px; border-radius: 18px; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 16px; background: linear-gradient(180deg, transparent, rgba(6, 18, 45, .55) 45%, rgba(6, 18, 45, .88)); color: #fff; pointer-events: none; }
.g-tipo { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #bcd6ff; margin-bottom: 4px; }
.g-cap strong { display: block; font-size: 1.02rem; line-height: 1.25; text-wrap: balance; }
.galeria.bento .g-tile:first-child .g-cap strong { font-size: 1.35rem; }
.g-sub { display: block; font-size: .82rem; color: #d6e3fb; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.g-tile:hover .g-sub, .g-btn:focus-visible .g-sub { max-height: 3em; opacity: 1; margin-top: 4px; }
.g-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.g-play svg { width: 26px; height: 26px; fill: var(--navy); margin-left: 4px; }
.g-tile:hover .g-play { transform: translate(-50%, -50%) scale(1.08); }
.ver-todos { display: flex; justify-content: center; margin-top: 28px; }
.ver-todos:has([hidden]:only-child) { display: none; }

/* Visualizador (lightbox) com setas */
.lightbox { flex-direction: column; gap: 14px; background: rgba(4, 10, 25, .94); }
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lb-conteudo img, .lb-conteudo video { max-width: min(1100px, 88vw); max-height: 78vh; border-radius: 14px; display: block; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-legenda { color: #e4ecff; margin: 0; font-weight: 600; text-align: center; padding: 0 16px; }
.lb-legenda small { display: block; color: #8fa6cf; font-weight: 600; margin-top: 2px; }
.lightbox .lb-fechar, .lightbox .lb-nav { position: absolute; border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; background: rgba(255, 255, 255, .95); color: var(--navy); transition: transform .15s, background .15s; }
.lightbox .lb-fechar { top: 18px; right: 18px; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox .lb-ant { left: 18px; }
.lightbox .lb-prox { right: 18px; }
.lightbox .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Página Trabalhos ---------- */
.pg-trabalhos .nav a[aria-current='page'] { color: var(--blue); }
.migalhas { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.migalhas a { color: var(--muted); }
.tp-hero { position: relative; overflow: hidden; background: radial-gradient(1000px 520px at 90% -10%, #d6e5ff 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--ice) 100%); }
.tp-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.tp-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); color: var(--navy); font-weight: 800; line-height: 1.05; }
.tp-hero h1 em { font-style: normal; color: var(--blue); }
.tp-hero .lead { margin-bottom: 26px; }
.tp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.tp-trust { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 18px; flex-wrap: wrap; color: var(--navy-2); font-size: .9rem; font-weight: 600; }
.tp-trust li { display: flex; align-items: center; gap: 8px; }
.tp-trust li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231552c9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; flex: none; }

.tp-tabs { position: sticky; top: 72px; z-index: 20; background: rgba(245, 248, 253, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.tp-tabs-in { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tp-tabs-in::-webkit-scrollbar { display: none; }
.tp-tab { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy-2); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.tp-tab:hover { border-color: #9dbcf0; }
.tp-tab:active { transform: scale(.97); }
.tp-tab svg { width: 30px; height: 24px; flex: none; }
.tp-tab b { font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: var(--sky); color: var(--navy-2); font-variant-numeric: tabular-nums; }
.tp-tab[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tp-tab[aria-pressed='true'] b { background: rgba(255, 255, 255, .18); color: #fff; }
.tp-tab[aria-pressed='true'] .il-vidro { fill: rgba(127, 178, 255, .25); }
.tp-tab[aria-pressed='true'] .il-linha { stroke: #cfe0ff; }

.tp-corpo { padding: 32px 0 clamp(56px, 8vw, 96px); background: var(--ice); }
.tp-servico { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; margin-bottom: 22px; }
.tp-servico .ilus { width: 120px; height: 90px; border-radius: 16px; background: var(--sky); display: grid; place-items: center; }
.tp-servico .ilus svg { width: 104px; height: 78px; }
.tp-servico h2 { font-size: 1.5rem; color: var(--navy); margin: 0 0 4px; }
.tp-servico p { margin: 0 0 10px; color: var(--muted); max-width: 62ch; }
.tp-opcoes { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-opcoes span { font-size: .8rem; font-weight: 700; color: var(--navy-2); background: var(--ice); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }
.tp-servico-a { display: flex; flex-direction: column; gap: 8px; }
.tp-vazio { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding: 52px 20px; background: #fff; border: 1.5px dashed #c9d8f3; border-radius: 22px; }
.tp-vazio svg { width: 160px; height: 120px; }
.tp-vazio strong { color: var(--navy); font-size: 1.1rem; }
.tp-vazio p { color: var(--muted); margin: 0; max-width: 46ch; }
.tp-erro { color: var(--danger); font-weight: 600; }

.tp-servicos { padding: clamp(56px, 8vw, 96px) 0 0; }
.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tp-card { display: grid; grid-template-rows: auto 1fr auto; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.tp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bcd2fb; }
.tp-card .ilus { background: linear-gradient(160deg, #eef4ff, #dde9fc); display: grid; place-items: center; padding: 22px 0; }
.tp-card .ilus svg { width: 132px; height: 99px; }
.tp-card .tx { display: block; padding: 16px 18px 6px; }
.tp-card .t { display: block; font-size: 1.08rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; letter-spacing: -0.01em; }
.tp-card .d { display: block; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.tp-card .rod { padding: 10px 18px 16px; display: flex; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 700; color: var(--blue); }
.tp-card .rod span:first-child { color: var(--muted); font-weight: 600; }

/* Ilustrações dos serviços */
.il-linha { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.il-fina { fill: none; stroke: var(--blue-2); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.il-vidro { fill: rgba(47, 123, 240, .16); }

.cta-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; }

@media (max-width: 1000px) {
  .tp-hero-in { grid-template-columns: 1fr; }
  .tp-servico { grid-template-columns: auto 1fr; }
  .tp-servico-a { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .tp-cards { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 560px) {
  .galeria { gap: 10px; grid-auto-rows: 170px; }
  .galeria.linha { grid-template-columns: repeat(2, 1fr); }
  .g-cap { padding: 40px 12px 10px; }
  .g-cap strong { font-size: .9rem; }
  .galeria.bento .g-tile:first-child .g-cap strong { font-size: 1.1rem; }
  .g-tipo { font-size: .6rem; }
  .tp-tabs { top: 64px; }
  .tp-servico { grid-template-columns: 1fr; padding: 18px; }
  .tp-servico .ilus { width: 100%; height: 110px; }
  .tp-cards { grid-template-columns: 1fr; }
  .lightbox .lb-nav { top: auto; bottom: 22px; transform: none; }
  .lightbox .lb-nav:hover { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .g-btn img, .g-btn video, .g-sub, .tp-card { transition: none; }
}


/* Topo da página Trabalhos: fotos em leque */
.tp-fan { position: relative; height: 470px; }
.tp-fan img { position: absolute; width: 56%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: 0 24px 60px rgba(10, 31, 77, .22); background: #dfe7f4; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tp-fan img:nth-child(1) { left: 0; top: 56px; transform: rotate(-7deg); }
.tp-fan img:nth-child(2) { left: 22%; top: 0; transform: rotate(1.5deg); z-index: 2; }
.tp-fan img:nth-child(3) { right: 0; top: 74px; transform: rotate(8deg); }
.tp-fan:hover img:nth-child(1) { transform: rotate(-9deg) translateX(-10px); }
.tp-fan:hover img:nth-child(3) { transform: rotate(10deg) translateX(10px); }
#galeriaSec { scroll-margin-top: 110px; }
@media (max-width: 1000px) {
  .tp-fan { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .tp-fan { height: 300px; }
  .tp-fan img { border-width: 4px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tp-fan img { transition: none; } }

/* Reserva o espaço da galeria da home antes de ela carregar (evita a página "pular") */
.galeria.linha:empty { aspect-ratio: 3.2 / 1; }
@media (max-width: 1000px) { .galeria.linha:empty { aspect-ratio: 4 / 5; } }

/* Cartões de visita agendada e orçamento final no chat */
.lk-linha { margin: 0; display: flex; gap: 8px; font-size: .88rem; color: var(--ink); line-height: 1.4; }
.lk-linha span { flex: none; }
.lk-visita .lk-ico { background: #e6efff; }
.lk-pag { background: var(--ice); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.lk-pag-rot { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lk-obs { color: var(--muted); font-size: .78rem; display: block; }
.lk-btn-pix { background: #0f8a78; }
.lk-btn-pagar { background: var(--green); }
.lk-orc .lk-ico { background: #efe9fd; }
.lk-cobranca .lk-ico { background: #e0f5f1; }
.lk-pixcode { font-size: .72rem; max-height: 4.6em; overflow: hidden; }
.lk-btn-sec { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.lk-btn-sec:hover { background: var(--ice); border-color: var(--blue); }
.lk-itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lk-itens li { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.lk-itens li b { display: block; color: var(--navy); }
.lk-itens li small { color: var(--muted); font-size: .76rem; }
.lk-itens li > span { font-weight: 800; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lk-itens li.desc > span { color: var(--green-2); }
.lk-total { display: flex; justify-content: space-between; align-items: baseline; }
.lk-total span { font-weight: 700; color: var(--muted); }

/* Consentimento de publicidade. Só aparece até a pessoa decidir; pode ser reaberto no rodapé. */
.cookie-banner { position: fixed; z-index: 1100; left: 18px; right: 18px; bottom: 18px; max-width: 1030px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border: 1px solid #cbd9f1; border-radius: 18px; color: var(--navy); background: #fff; box-shadow: 0 18px 55px rgba(10,31,77,.2); }
.cookie-banner strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.cookie-banner p { margin: 0; max-width: 650px; font-size: .85rem; line-height: 1.55; color: #4c5a75; }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-acoes { display: flex; flex: none; gap: 9px; }
.cookie-acoes .btn { min-height: 42px; white-space: nowrap; }
@media (max-width: 760px) { .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 17px; } .cookie-acoes { display: grid; grid-template-columns: 1fr 1fr; } .cookie-acoes .btn { white-space: normal; padding: 9px; font-size: .79rem; } }
