/* Direção: escritório digital. Tinta escura e verde-azulado do logotipo, traços de circuito animados no topo,
   lista e grade de áreas, faixas de destaque inspiradas em sites de escritórios maiores, siglas em fonte monoespaçada. */
:root {
  --ink: #0E1A24;
  --ink-2: #162B3B;
  --paper: #F2F5F3;
  --card: #FFFFFF;
  --text: #0E1A24;
  --muted: #4D5E6B;
  --line: #CBD6D3;
  --teal: #12786B;
  --teal-bright: #3CC2AE;
  --on-ink: #EAF2F0;
  --on-ink-muted: #A9BDB8;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1218; --card: #101C25; --text: #E6EFED; --muted: #9FB2AD; --line: #233541; --teal: #3CC2AE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1218; --card: #101C25; --text: #E6EFED; --muted: #9FB2AD; --line: #233541; --teal: #3CC2AE;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--teal-bright); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- barra fixa ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(14, 26, 36, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-2); color: var(--on-ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; line-height: 1.1; }
.brand small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--on-ink-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; color: var(--on-ink-muted); padding-block: 6px; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--on-ink); border-color: var(--teal-bright); }
nav a.pill { color: var(--ink); background: var(--teal-bright); border: 0; border-radius: 6px; padding: 9px 16px; font-weight: 600; }
nav a.pill:hover { background: #63D6C4; }

/* ---------- hero ---------- */
.hero { color: var(--on-ink); position: relative; overflow: hidden; min-height: calc(100vh - 63px); display: grid; grid-template-rows: 1fr auto;
  background: linear-gradient(180deg, rgba(14,26,36,.62) 0%, rgba(14,26,36,.78) 60%, rgba(14,26,36,.94) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Ponte_Herc%C3%ADlio_Luz%2C_Florian%C3%B3polis.jpg/1920px-Ponte_Herc%C3%ADlio_Luz%2C_Florian%C3%B3polis.jpg") center 40% / cover no-repeat, var(--ink); }
.hero > .wrap { display: grid; align-items: center; }
.hero-body { position: relative; padding-block: 72px; display: grid; gap: 26px; max-width: 900px; margin-inline: auto; text-align: center; justify-items: center; }
.hero-body .lead { color: #D3E2DE; }
.hero h1 em { display: block; font-size: .8em; margin-top: 6px; }
.hero .cta { justify-content: center; }
.photo-credit { position: absolute; right: 12px; top: 8px; font-size: 11px; color: rgba(234,242,240,.6); }
.photo-credit a { color: inherit; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 700; }
h1 em { font-style: normal; color: var(--teal-bright); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--on-ink-muted); max-width: 41em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid var(--teal-bright); }
.btn.primary { background: var(--teal-bright); color: var(--ink); }
.btn.primary:hover { background: #63D6C4; border-color: #63D6C4; }
.btn.ghost { color: var(--on-ink); }
.btn.ghost:hover { background: rgba(60, 194, 174, 0.14); }

.stats { position: relative; border-top: 1px solid var(--ink-2); background: rgba(14, 26, 36, 0.6); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px 24px 24px 0; display: grid; gap: 2px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--ink-2); }
.stat b { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--on-ink); }
.stat b span { color: var(--teal-bright); }
.stat small { font-size: 13.5px; color: var(--on-ink-muted); line-height: 1.4; }

/* ---------- faixa de destaque ---------- */
.band { background: var(--ink-2); color: var(--on-ink); padding-block: 64px; border-block: 1px solid var(--ink); }
.band p { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.8vw, 42px); line-height: 1.2; letter-spacing: -0.015em; max-width: 24em; text-wrap: balance; }
.band p em { font-style: normal; color: var(--teal-bright); }

/* ---------- seções ---------- */
section { padding-block: 84px; }
.head { display: grid; grid-template-columns: 220px 1fr; gap: 20px 40px; margin-bottom: 40px; align-items: baseline; }
.head .tag { color: var(--teal); }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; max-width: 18em; }

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--text); border-left: 1px solid var(--line); }
.areas li { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background .15s; }
.areas li:hover { background: var(--card); }
.areas svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.areas h3 { font-size: 21px; font-weight: 600; margin-top: 6px; }
.areas p { color: var(--muted); font-size: 15.5px; }
.note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.note b { color: var(--text); font-weight: 600; }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border-top: 2px solid var(--text); }
.who div { padding: 26px 28px 0 0; display: grid; gap: 8px; align-content: start; }
.who div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.who .tag { color: var(--teal); }
.who h3 { font-size: 24px; font-weight: 600; }
.who p { color: var(--muted); }

.about { background: var(--card); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.about-main { display: grid; gap: 36px; align-content: start; }
.about-text { display: grid; gap: 18px; max-width: 38em; align-content: start; }
.about-side { display: grid; gap: 28px; align-content: start; }
.portrait { margin: 0; max-width: 420px; width: 100%; justify-self: end; align-self: start; border-top: 4px solid var(--teal-bright); background: var(--ink); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.facts { margin: 0; display: grid; align-content: start; border-top: 2px solid var(--text); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.facts dd { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--text); }
.steps li { padding: 26px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .num { font-family: var(--mono); color: var(--teal); font-size: 14px; }
.steps h3 { font-size: 22px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 16px; }

.faq { border-top: 2px solid var(--text); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--display); font-size: 21px; font-weight: 600; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 24px; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 44em; }

.contact { background: var(--ink); color: var(--on-ink); }
.contact .head .tag { color: var(--teal-bright); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { max-width: 14em; }
.contact .lead { margin-top: 20px; }
.channels { margin: 0; display: grid; border-top: 2px solid var(--teal-bright); }
.channels div { padding: 18px 0; border-bottom: 1px solid var(--ink-2); display: grid; gap: 2px; }
.channels dt { font-family: var(--mono); font-size: 12px; color: var(--teal-bright); text-transform: uppercase; letter-spacing: 0.08em; }
.channels dd { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.channels a { text-decoration: none; border-bottom: 1px solid var(--teal-bright); }
.channels a:hover { color: var(--teal-bright); }
.alert { margin-top: 44px; border: 1px solid var(--ink-2); border-left: 4px solid var(--teal-bright); border-radius: 4px; padding: 18px 22px; font-size: 15px; color: var(--on-ink-muted); max-width: 62em; }
.alert b { color: var(--on-ink); }

footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-2); font-size: 14px; }
footer .wrap { padding-block: 28px 36px; display: grid; gap: 12px; }
footer b { color: var(--on-ink); font-weight: 600; }
footer .legal { max-width: 62em; font-size: 13px; line-height: 1.55; }

/* ---------- WhatsApp flutuante e assistente ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.bot { position: fixed; left: 20px; bottom: 20px; z-index: 40; font-family: var(--body); }
.bot-open { display: flex; align-items: flex-end; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.bot-avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--teal-bright); display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.bot-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #25D366; border: 2px solid #fff; }
.bot-teaser { background: #fff; color: #1C2B36; border: 1px solid #D5DEDB; border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.4; max-width: 250px; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.bot-teaser[hidden] { display: none; }
.bot-panel { position: absolute; left: 0; bottom: 70px; width: min(360px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; color: #1C2B36; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.bot-panel[hidden] { display: none; }
.bot-head { background: var(--ink); color: var(--on-ink); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.bot-head b { display: block; font-size: 15px; }
.bot-head small { display: block; font-size: 12px; color: var(--on-ink-muted); }
.bot-close { margin-left: auto; background: none; border: 0; color: var(--on-ink); font-size: 24px; line-height: 1; cursor: pointer; width: 40px; height: 40px; border-radius: 6px; }
.bot-close:hover { background: rgba(255,255,255,.1); }
.bot-msgs { padding: 14px; overflow-y: auto; display: grid; gap: 10px; align-content: start; flex: 1; background: #F2F5F3; }
.bot-msg { background: #fff; border: 1px solid #DCE4E1; border-radius: 10px 10px 10px 2px; padding: 9px 12px; font-size: 14.5px; line-height: 1.45; max-width: 88%; }
.bot-msg.me { justify-self: end; background: #12786B; color: #fff; border-color: #12786B; border-radius: 10px 10px 2px 10px; }
.bot-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-opts button, .bot-opts a { font: inherit; font-size: 14px; background: #fff; color: #12786B; border: 1.5px solid #12786B; border-radius: 999px; padding: 8px 14px; cursor: pointer; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.bot-opts button:hover, .bot-opts a:hover { background: #E3F4F0; }
.bot-opts .forte { background: #25D366; border-color: #25D366; color: #0B3A1E; font-weight: 600; }
.bot-foot { font-size: 11.5px; color: #5A6A75; padding: 8px 14px; border-top: 1px solid #E3E9E7; background: #fff; }
@media (max-width: 560px) {
  .bot-teaser { max-width: 190px; font-size: 13px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .bot { left: 16px; bottom: 16px; }
}

/* ---------- serviços (faixa escura) ---------- */
.services { background: var(--ink); color: var(--on-ink); background-image: radial-gradient(rgba(60,194,174,.10) 1px, transparent 1px); background-size: 26px 26px; }
.services-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.services-lead { color: var(--on-ink-muted); max-width: 44em; margin-top: 14px; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.svc li { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.25; }
.svc svg { width: 52px; height: 52px; flex: none; fill: none; stroke: var(--teal-bright); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- artigo ---------- */
.article { max-width: 760px; display: grid; gap: 18px; }
.article h3 { font-size: 24px; font-weight: 600; margin-top: 18px; }
.article p, .article li { color: var(--muted); }
.article ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- trânsito ---------- */
.fronts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--text); }
.fronts article { padding: 28px 30px 30px 0; display: grid; gap: 12px; align-content: start; }
.fronts article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.fronts h3 { font-size: 25px; font-weight: 600; }
.fronts p, .fronts li { color: var(--muted); font-size: 16px; }
.fronts ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.where { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.where div { padding: 18px 22px; display: grid; gap: 4px; }
.where div + div { border-left: 1px solid var(--line); }
.where dt { font-family: var(--mono); font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; }
.where dd { margin: 0; font-size: 15.5px; }

/* ---------- formulário ---------- */
.form { margin-top: 48px; background: var(--ink-2); border: 1px solid var(--ink-2); border-top: 4px solid var(--teal-bright); border-radius: 6px; padding: 28px; display: grid; gap: 18px; }
.form h3 { font-size: 26px; font-weight: 600; }
.form .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--on-ink-muted); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--on-ink); background: var(--ink); border: 1px solid #2D4757; border-radius: 6px; padding: 12px 13px; min-height: 46px; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal-bright); outline-offset: 1px; }
.form fieldset { border: 1px solid #2D4757; border-radius: 6px; padding: 16px; margin: 0; }
.form fieldset[hidden] { display: none; }
.form legend { font-family: var(--mono); font-size: 12px; color: var(--teal-bright); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 6px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal-bright); }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 6px; border: 2px solid var(--teal-bright); background: var(--teal-bright); color: var(--ink); }
.form button:hover { background: #63D6C4; border-color: #63D6C4; }
.form .small { font-size: 13px; color: var(--on-ink-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
  .svc li { font-size: 18px; }
  .svc svg { width: 42px; height: 42px; }
  .fronts, .where { grid-template-columns: 1fr; }
  .fronts article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .where div + div { border-left: 0; border-top: 1px solid var(--line); }
  .form .grid { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
@media (max-width: 900px) {
  .head, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .head { gap: 8px; }
  .areas { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps li, .steps li + li { padding: 22px 16px 0 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  nav a:not(.pill) { display: none; }
  .portrait { order: -1; max-width: 340px; justify-self: start; }
  section { padding-block: 60px; }
  .hero-body { padding-block: 56px 48px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ink-2); }
}
@media (max-width: 560px) {
  .svc { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .who div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .btn { width: 100%; justify-content: center; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
