:root {
  --blue-950: #0c1f47;
  --blue-900: #14306b;
  --blue-800: #1e4a9e;
  --blue-700: #2563eb;
  --blue-500: #64748b;
  --blue-100: #f1f5f9;
  --blue-050: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --max: 1180px;
  --header: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-family: "Inter", Arial, sans-serif; letter-spacing: 0; line-height: 1.6; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--header); border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.header.scrolled { background: rgba(255,255,255,.97); border-color: var(--line); box-shadow: 0 5px 18px rgba(5,38,62,.05); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--white); }
.header.scrolled .brand { color: var(--blue-950); }
.brand-logo { width: 62px; height: 58px; display: block; object-fit: contain; background: transparent; border: 0; box-shadow: none; filter: none; }
.brand strong { display: block; font-family: "Montserrat", sans-serif; font-size: 15px; line-height: 1.05; text-transform: uppercase; }
.brand small { display: block; font-size: 10px; line-height: 1.2; letter-spacing: 1.7px; text-transform: uppercase; }
.nav { display: flex; gap: 25px; color: #cbd5e1; font-size: 14px; }
.header.scrolled .nav { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--white); }
.header.scrolled .nav a:hover, .header.scrolled .nav a.active { color: var(--blue-700); }
.lang-wrap { position: relative; display: flex; align-items: center; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 1px solid #94a3b8; border-radius: 6px; background: transparent; color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .5px; cursor: pointer; }
.header.scrolled .lang-btn { border-color: var(--line); color: var(--text); }
.lang-btn:hover { background: rgba(255,255,255,.1); }
.header.scrolled .lang-btn:hover { background: var(--blue-100); }
.lang-chevron { transition: transform .2s ease; }
.lang-wrap.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 150px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 40; }
.lang-wrap.open .lang-dropdown { display: block; }
.lang-dropdown button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.lang-dropdown button:hover { background: var(--blue-100); color: var(--blue-700); }
.menu { display: none; width: 44px; height: 44px; border: 1px solid #94a3b8; border-radius: 6px; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu span:not(.sr-only) { display: block; width: 19px; height: 2px; background: var(--white); }
.header.scrolled .menu { border-color: var(--line); }
.header.scrolled .menu span:not(.sr-only) { background: var(--blue-900); }
.hero { position: relative; min-height: min(870px, 100vh); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background-color: var(--blue-950); background-image: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 50%, #1a3f8a 100%), url("assets/hero-fundo.webp"); background-size: cover, cover; background-position: center, center right; color: var(--white); }
.blueprint { position: absolute; inset: 0; opacity: .33; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(108deg, transparent 0 60%, rgba(255,255,255,.14) 60% 60.1%, transparent 60.1%); background-size: 54px 54px, 54px 54px, 100% 100%; mask-image: linear-gradient(90deg, transparent, #000 48%, #000); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.04fr .76fr; align-items: center; gap: 66px; padding: calc(var(--header) + 48px) 0 72px; }
.overline, .label { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.overline { color: #cbd5e1; }
.hero h1 { max-width: 680px; font-family: "Montserrat", sans-serif; font-size: clamp(44px, 5.2vw, 67px); line-height: 1.08; margin-bottom: 25px; }
.hero-title-highlight { color: #d1d9e6; }
.hero-text { max-width: 600px; margin-bottom: 36px; color: #cbd5e1; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 6px; padding: 0 25px; font-size: 14px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--white); color: var(--blue-900); }
.primary:hover { background: #e2e8f0; }
.secondary { border: 1px solid #94a3b8; color: var(--white); }
.secondary:hover { background: rgba(255,255,255,.08); }
.hero-brand { display: flex; flex-direction: column; align-items: center; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; color: var(--white); }
.hero-brand img { display: block; width: min(100%, 470px); aspect-ratio: auto; object-fit: contain; background: transparent; border: 0; box-shadow: none; filter: none; }
.hero-strip { position: relative; border-top: 1px solid rgba(255,255,255,.15); background: rgba(12,31,71,.5); }
.stats { background: var(--blue-900); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats-item { display: flex; flex-direction: column; gap: 4px; }
.stats-item strong { font-family: "Montserrat", sans-serif; font-size: 32px; color: var(--white); }
.stats-item span { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
@media (max-width: 640px) { .stats { padding: 24px 0; } .stats-item strong { font-size: 26px; } .stats-item span { font-size: 11px; } }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid span { min-height: 72px; display: flex; align-items: center; font-size: 13px; font-weight: 500; text-transform: uppercase; color: #cbd5e1; }
.strip-grid span + span { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.2); }
.section { padding: 98px 0; scroll-margin-top: var(--header); }
.heading .label { color: var(--blue-700); }
.heading h2 { font-family: "Montserrat", sans-serif; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.18; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: start; }
.about-copy { color: var(--muted); font-size: 17px; }
.about-copy p + p { margin-top: 20px; }
.about-copy strong { color: var(--blue-900); }
.company-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 35px; }
.company-data span { padding: 14px; border-radius: 7px; background: var(--blue-050); border: 1px solid var(--line); color: var(--blue-900); font-size: 13px; font-weight: 500; }
.company-data small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.soft { background: var(--blue-050); border-block: 1px solid var(--line); }
.heading.center { margin-bottom: 46px; text-align: center; }
.heading.center h2 { margin: 0 auto; }
.intro { max-width: 580px; margin: 18px auto 0; color: var(--muted); }
.service-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work .heading { max-width: 700px; margin-bottom: 48px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.work-card { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.work-tag { color: var(--blue-700); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 13px; }
.work-card h3 { max-width: 430px; margin-bottom: 24px; font-size: 23px; line-height: 1.3; }
.work-card li { position: relative; padding: 11px 0 11px 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.work-card li::before { content: ""; position: absolute; top: 19px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-700); }
.mission { background: var(--blue-100); }
.mission-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 70px; }
.mission blockquote { border-left: 3px solid var(--blue-700); padding: 16px 0 16px 30px; color: var(--blue-900); font-size: clamp(19px, 2.3vw, 25px); font-weight: 500; line-height: 1.5; }
.contact { padding: 92px 0; scroll-margin-top: var(--header); background: var(--blue-950); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 76px; }
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact .label { color: #94a3b8; }
.contact-note { margin-top: 18px; color: #94a3b8; }
.contact-panel { display: grid; gap: 12px; }
.contact-item, .contact-address { display: flex; flex-direction: column; justify-content: center; min-height: 96px; padding: 18px 24px; border: 1px solid rgba(148,163,184,.3); border-radius: 8px; }
.contact-item small, .contact-address small { margin-bottom: 6px; color: #94a3b8; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.contact-item strong { font-size: 20px; font-weight: 600; }
.contact-item span { margin-top: 3px; color: #94a3b8; font-size: 13px; }
.contact-address p { color: #e2e8f0; font-size: 15px; }
.contact-item:hover { border-color: #64748b; background: rgba(255,255,255,.05); }
.contact-item.whatsapp { background: rgba(148,163,184,.12); }

.chatbot { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chatbot-btn { width: 56px; height: 56px; border: none; border-radius: 50%; background: #25D366; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .2s; position: relative; }
.chatbot-btn:hover { transform: scale(1.08); }
.chatbot-btn svg { width: 26px; height: 26px; position: absolute; transition: opacity .2s, transform .2s; }
.chatbot-btn .chatbot-close-icon { opacity: 0; transform: rotate(-90deg); }
.chatbot-btn.open .chatbot-icon { opacity: 0; transform: rotate(90deg); }
.chatbot-btn.open .chatbot-close-icon { opacity: 1; transform: rotate(0); }
.chatbot-box { display: none; flex-direction: column; width: 340px; max-height: 460px; background: var(--white); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18); overflow: hidden; animation: chatIn .25s ease; }
.chatbot-box.open { display: flex; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chatbot-header { background: var(--blue-900); color: var(--white); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.chatbot-header strong { font-size: 16px; }
.chatbot-header span { font-size: 12px; opacity: .8; }
.chatbot-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 360px; }

.backtotop { position: fixed; bottom: 24px; left: 24px; z-index: 999; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; pointer-events: none; }
.backtotop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.backtotop-btn { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: background .2s, transform .2s; }
.backtotop-btn:hover { background: var(--blue-700); color: var(--white); transform: scale(1.06); }
.backtotop-btn svg { width: 22px; height: 22px; }
.chatbot-messages { display: flex; flex-direction: column; gap: 8px; }
.chatbot-msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; max-width: 92%; animation: msgIn .2s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chatbot-msg.bot { background: #f1f5f9; color: #1e293b; align-self: flex-start; border-bottom-left-radius: 2px; }
.chatbot-msg.user { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chatbot-msg .msg-name { font-size: 11px; font-weight: 600; opacity: .7; margin-bottom: 2px; }
.chatbot-input { display: flex; flex-direction: column; gap: 8px; }
.chatbot-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chatbot-options button { padding: 8px 16px; border: 1.5px solid #2563eb; border-radius: 20px; background: transparent; color: #2563eb; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; font-family: "Inter", sans-serif; }
.chatbot-options button:hover { background: #2563eb; color: #fff; }
.chatbot-feedback { font-size: 13px; color: #2e7d32; min-height: 20px; }
.chatbot-input-group { display: flex; gap: 6px; }
.chatbot-rpa-input { flex: 1; padding: 10px 12px; border: 1px solid #d0d7e0; border-radius: 6px; font-family: "Inter", sans-serif; font-size: 14px; outline: none; background: #f8fafc; color: #1a2332; }
.chatbot-rpa-input:focus { border-color: #2563eb; }
.chatbot-rpa-send { padding: 10px 16px; border: none; border-radius: 6px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: "Inter", sans-serif; }
.chatbot-rpa-send:hover { background: #1d4ed8; }
@media (max-width: 480px) {
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot-box { width: calc(100vw - 32px); max-height: 70vh; }
  .chatbot-body { max-height: 55vh; }
}
.footer { padding: 26px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.footer-inner { display: flex; justify-content: center; gap: 18px; }
.footer a:hover { color: var(--blue-700); }
.team { background: var(--white); border-bottom: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 800px; margin: 0 auto; }
.team-card { text-align: center; padding: 20px; }
.team-photo { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; border: 4px solid var(--blue-100); box-shadow: 0 4px 20px rgba(5,11,30,.12); }
.team-initials { font-family: "Montserrat", sans-serif; font-size: 48px; font-weight: 800; color: var(--white); letter-spacing: 2px; }
.team-name { font-family: "Montserrat", sans-serif; font-size: 22px; margin-bottom: 4px; color: var(--blue-900); }
.team-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-700); margin-bottom: 16px; }
.team-desc { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 400px; margin: 0 auto; }
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-photo { width: 140px; height: 140px; }
  .team-initials { font-size: 38px; }
  .team-name { font-size: 19px; }
  .team-desc { font-size: 14px; }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1030px) {
  .menu { display: inline-flex; }
  .lang-btn { padding: 0 8px; font-size: 11px; min-height: 38px; }
  .lang-btn .lang-chevron { display: none; }
  .nav { display: none; position: fixed; top: var(--header); left: 24px; right: 24px; padding: 10px; background: var(--white); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a:hover, .nav a.active { color: var(--blue-800); }
  .hero-layout { grid-template-columns: 1fr .62fr; gap: 38px; }
  .about-grid, .mission-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .service-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header: 70px; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .brand strong { font-size: 13px; }
  .hero { min-height: 100svh; }
  .hero-layout { grid-template-columns: 1fr; gap: 36px; padding-top: calc(var(--header) + 30px); padding-bottom: 42px; }
  .hero-content { order: 2; }
  .hero-brand { order: 1; max-width: 278px; padding: 0; }
  .hero h1 { font-size: clamp(37px, 11vw, 47px); }
  .lang-btn { padding: 0 6px; font-size: 10px; min-height: 34px; }
  .lang-btn .lang-chevron { display: none; }
  .hero-text { font-size: 15px; }
  .strip-grid, .service-columns, .work-grid, .company-data { grid-template-columns: 1fr; }
  .strip-grid { padding: 12px 0; }
  .strip-grid span { min-height: 39px; }
  .strip-grid span + span { padding-left: 0; border: 0; }
  .section { padding: 68px 0; }
  .service { min-height: auto; }
  .work-card { padding: 25px 20px; }
  .mission blockquote { padding-left: 20px; }
  .contact-item strong { font-size: 17px; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Image-led institutional sections */
.soft {
  position: relative;
  isolation: isolate;
  background-image: linear-gradient(108deg, rgba(5, 11, 30, .94), rgba(8, 25, 80, .78)), url("assets/sistemas-conectados.webp");
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-block: 0;
}
.soft .label { color: #e3e9ee; }
.soft .intro { color: #d5dde5; }
.work {
  position: relative;
  background-color: var(--blue-950);
  background-image: linear-gradient(90deg, rgba(5, 11, 30, .95), rgba(5, 11, 30, .67)), url("assets/engenharia-civil.webp");
  background-size: cover;
  background-position: center, center right;
  color: var(--white);
}
.work .label,
.work-tag { color: #e3e9ee; }
.work-card {
  border-color: rgba(227, 233, 238, .2);
  background: rgba(10, 19, 43, .46);
  backdrop-filter: blur(10px);
}
.work-card li { border-color: rgba(227, 233, 238, .18); color: #d5dde5; }
.work-card li::before { background: #e3e9ee; }
.mission {
  position: relative;
  background-color: var(--blue-100);
  background-image: linear-gradient(90deg, rgba(233, 238, 242, .97), rgba(233, 238, 242, .78)), url("assets/automacao-inteligente.webp");
  background-size: cover;
  background-position: center, right center;
}
.mission blockquote {
  padding: 28px 30px;
  border: 1px solid rgba(8, 25, 80, .12);
  border-left: 3px solid var(--blue-700);
  border-radius: 8px;
  background: rgba(255, 255, 255, .46);
  backdrop-filter: blur(10px);
}
@media (max-width: 720px) {
  .soft,
  .work,
  .mission { background-position: center; }
  .service-panel,
  .work-card { backdrop-filter: blur(8px); }
  .mission blockquote { padding: 20px; }
}
.service-panel {
  padding: 30px;
  border: 1px solid rgba(227, 233, 238, .2);
  border-radius: 8px;
  background: rgba(10, 19, 43, .46);
  backdrop-filter: blur(10px);
}
.panel-label {
  margin-bottom: 13px;
  color: #e3e9ee;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.service-panel h3 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: 23px;
  line-height: 1.3;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr;
}
.service-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px solid rgba(227, 233, 238, .16);
  color: #d5dde5;
  font-size: 14px;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e3e9ee;
}
@media (max-width: 820px) {
  .service-columns { grid-template-columns: 1fr; }
  .service-panel { padding: 23px 20px; }
}
