/* Onda 1. Aplicado somente à página institucional, sem alterar o portal demo. */
:root {
  --paper: #f7f5f0;
  --white: #fffefa;
  --ink: #202b33;
  --muted: #46545d;
  --line: #c7cdd0;
  --accent: #a62632;
  --sage: #edf0f2;
  --navy: #14364b;
}
html {scroll-padding-top: 2rem; scroll-behavior: auto;}
body {font-family: Arial, Helvetica, sans-serif; font-size: 1.25rem; line-height: 1.65;}
.wrap {width: min(1280px, calc(100% - 96px));}
main, .hero-copy, .section-head > div {min-width: 0;}
p, h1, h2, h3, dd, a, button {overflow-wrap: break-word;}
strong, b {font-weight: 700;}
.prototype {padding: 10px 24px; font-size: 1rem; letter-spacing: .04em; background: var(--navy); flex-wrap: wrap;}
.prototype-note {opacity: 1; font-size: 1rem;}
header {padding: 24px max(48px, calc((100vw - 1280px)/2)); gap: 32px; background: var(--white);}
header .site-logo {width: 180px;}
nav {font-size: 1.125rem; gap: 24px; flex-wrap: wrap;}
nav a {min-height: 48px; display: inline-flex; align-items: center; padding: 6px 4px; text-underline-offset: 6px;}
nav a:hover {text-decoration-thickness: 2px;}
.button, .button.small, .crm-toolbar .button, .lead-controls button {
  min-height: 56px; padding: 14px 24px; gap: 22px;
  font-size: 1.125rem; line-height: 1.4; font-weight: 700;
  border: 2px solid var(--navy); border-radius: 8px;
  background: var(--navy); color: #fff;
  text-align: left; max-width: 100%; white-space: normal;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover {background: #0b2638; border-color: #0b2638;}
.button:active {background: #071c29; border-color: #071c29;}
.button.outline {background: var(--white); color: var(--navy); border-color: var(--navy);}
.button.outline:hover {background: #e5ebef;}
.button span {flex-shrink: 0; font-size: 1.4rem;}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--navy);
}
main p a {text-decoration: underline; text-underline-offset: .2em;}
.hero-shell {background: linear-gradient(#f7f5f08c, #f7f5f08c), var(--paper) url('./papel-tecnico.webp') center/cover no-repeat;}
.hero-shell .micro {color: var(--ink);}
.hero {grid-template-columns: 1fr 1fr; padding-top: 80px; padding-bottom: 80px; gap: 64px;}
.eyebrow {font-size: 1rem; letter-spacing: .07em; font-weight: 700; line-height: 1.6; margin-bottom: 24px;}
h1 {font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; margin-bottom: 28px;}
h1 em {font-family: inherit; font-style: normal; font-weight: inherit; color: var(--navy);}
h2 {font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em;}
h3 {font-weight: 600; line-height: 1.35;}
.intro {font-size: 1.25rem; line-height: 1.7; max-width: 56ch; color: var(--ink); margin-bottom: 24px;}
.service-region {font-size: 1.125rem; margin: 0 0 28px; line-height: 1.6;}
.micro {font-size: 1rem; line-height: 1.65; margin-top: 16px; max-width: 65ch;}
.hero-visual {background: #fffefa; border-color: var(--line);}
.drawing-head, .drawing-foot {font-size: 1rem; letter-spacing: 0; padding: 20px 24px; border-color: var(--line);}
.drawing-head {flex-wrap: wrap;}
.drawing-foot b {font-size: 1.125rem; font-weight: 700;}
.drawing-foot .cross {display: none;}
.principles {
  background: linear-gradient(#f7f5f0d9, #f7f5f0d9), url('./concreto-fino.webp') center/cover;
  padding: 28px 0;
}
.principles > .wrap {gap: 24px; font-size: 1.125rem; flex-wrap: wrap;}
.principles b {font-size: 1rem; font-weight: 700; color: var(--navy); margin-right: 12px;}
.section {padding-top: 88px; padding-bottom: 88px;}
.section-head {gap: 48px; align-items: flex-start; margin-bottom: 36px;}
.section-head > p {font-size: 1.125rem; max-width: 38ch; line-height: 1.7;}
.services {grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--white);}
.service {padding: 32px; min-height: 0;}
.service > * {max-width: 100%; min-width: 0;}
.service .service-index {font-family: inherit; font-size: 1rem; color: var(--navy); margin-bottom: 16px;}
.service h3 {font-size: 1.5rem; letter-spacing: -.02em;}
.service p {font-size: 1.25rem; max-width: min(100%, 50ch); margin-bottom: 20px;}
.service a {font-size: 1.125rem; min-height: 48px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: .22em; border: 0; color: var(--navy); font-weight: 700;}
.process {background: linear-gradient(#14364b66, #14364b66), var(--navy) url('./azul-profundo.webp') center/cover; color: #fff;}
.process .eyebrow {color: #fff;}
.steps {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px;}
.steps article {border-top: 1px solid #a5bccd; padding-top: 24px;}
.steps article > span {font-size: 1rem; color: #fff; letter-spacing: .04em;}
.steps h3 {font-size: 1.5rem; margin-top: 16px;}
.steps p {font-size: 1.25rem; color: #fff; max-width: 48ch;}
.engineer-profile {
  background: linear-gradient(#f7f5f08c, #f7f5f08c), var(--paper) url('./papel-tecnico.webp') center/cover no-repeat;
  padding-bottom: 0; border-bottom-color: var(--line);
}
.engineer-layout {grid-template-columns: minmax(300px, 520px) minmax(0, 1fr); align-items: end; gap: 48px;}
.engineer-portrait {width: 100%; background: transparent; border: 0; overflow: visible; align-self: end;}
.engineer-portrait img {display: block; width: 100%; height: auto;}
.engineer-copy {padding-bottom: 80px;}
.engineer-heading {gap: 16px 24px; margin-bottom: 20px;}
.engineer-heading h2 {font-size: clamp(2rem, 2.8vw, 2.5rem); line-height: 1.2;}
.engineer-experience {font-size: 1.125rem; line-height: 1.4; padding: 10px 14px; color: var(--navy); background: var(--white); border-color: #9babb7; border-left: 3px solid var(--accent); white-space: normal; max-width: 100%; flex-shrink: 1;}
.engineer-role {font-size: 1.125rem; color: var(--ink); font-weight: 700;}
.engineer-bio {font-size: 1.25rem; color: var(--ink); line-height: 1.7; max-width: 65ch;}
.engineer-credentials {gap: 24px 40px; margin-top: 32px;}
.engineer-credentials dt {font-size: 1rem; letter-spacing: .02em; font-weight: 700; color: var(--ink);}
.engineer-credentials dd {font-size: 1.125rem; color: var(--ink);}
.engineer-contact {gap: 16px 24px; margin-top: 32px;}
.engineer-contact > span {font-size: 1.125rem; color: var(--ink);}
.tabs {gap: 16px 32px; flex-wrap: wrap;}
.tab {min-height: 56px; font-size: 1.125rem; padding: 12px 4px; line-height: 1.5; font-weight: 600;}
.tab.active {border-bottom-width: 3px;}
.portfolio-content {background: var(--white); padding: 36px;}
.portfolio-content h3 {font-size: 1.5rem;}
.portfolio-content p {font-size: 1.25rem; max-width: 65ch;}
.muted {font-size: 1rem; max-width: 32ch;}
.articles {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;}
.articles summary > span:first-child {font-size: 1rem; letter-spacing: .03em;}
.articles h3 {font-size: 1.5rem; max-width: none; letter-spacing: -.02em;}
.articles details > p {font-size: 1.25rem; line-height: 1.7;}
.articles summary {min-height: 48px;}
.diagnostic {background: #edf0f2;}
.diagnostic-grid {grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 64px;}
.diagnostic-grid > div > p:not(.eyebrow), .notice, .notice p {font-size: 1.125rem; color: var(--ink); max-width: 60ch;}
.notice {border-color: var(--navy);}
label, .checkbox, #form-message {font-size: 1.125rem;}
input, select, textarea {font-size: 1.125rem; min-height: 56px; padding: 12px; background: var(--white); border: 1px solid #74838e; border-radius: 6px; line-height: 1.5;}
input::placeholder, textarea::placeholder {color: var(--muted); opacity: 1;}
.checkbox {align-items: center; min-height: 48px; gap: 16px;}
.checkbox input {width: 28px; height: 28px; min-height: 0; margin: 0; accent-color: var(--navy);}
.crm-toolbar, .lead-controls {gap: 20px;}
.crm-count, .empty, .empty p, .lead .meta, .lead > p, .lead details {font-size: 1.125rem;}
.badge {font-size: 1rem; letter-spacing: 0;}
.text-button {min-height: 48px; font-size: 1.125rem;}
.toast {font-size: 1.125rem; background: var(--navy);}
footer {background: linear-gradient(#14364b66, #14364b66), var(--navy) url('./azul-profundo.webp') center/cover; color: #fff; padding: 56px 0;}
footer > .wrap {align-items: flex-start; gap: 40px; flex-wrap: wrap;}
.footer-brand .site-logo {filter: brightness(0) invert(1); width: 180px;}
.footer-brand span {font-size: 1rem; letter-spacing: .03em; margin-top: 16px;}
footer p {font-size: 1rem; line-height: 1.7; color: #fff; max-width: 38ch;}
footer > .wrap > a:last-child {font-size: 1.125rem; min-height: 56px; text-decoration: underline; text-underline-offset: 5px;}
.skip {font-size: 1.125rem; min-height: 48px; top: -200px;}
@media (max-width: 1100px) {
  .wrap {width: calc(100% - 64px);}
  header {padding: 24px 32px; gap: 24px; flex-wrap: wrap;}
  nav {gap: 16px;}
  .hero {gap: 40px;}
  .engineer-layout {grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: 40px;}
  .engineer-portrait {align-self: center;}
  .engineer-copy {padding-bottom: 64px;}
}
@media (max-width: 760px) {
  .wrap {width: calc(100% - 40px);}
  .prototype {padding: 10px 20px; font-size: 1rem; letter-spacing: 0;}
  header {padding: 20px; gap: 20px;}
  header > .brand .site-logo {width: 152px;}
  header > .button {font-size: 1.125rem; padding: 14px 18px;}
  nav {order: 3; width: 100%; overflow: visible; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-start; white-space: normal; font-size: 1.125rem;}
  .hero {grid-template-columns: minmax(0, 1fr); padding: 48px 0; gap: 40px;}
  .hero .eyebrow {font-size: 1rem; letter-spacing: .04em;}
  h1 {font-size: 2.5rem; letter-spacing: -.025em;}
  h2 {font-size: 2rem; letter-spacing: -.02em;}
  .intro {font-size: 1.25rem;}
  .hero-visual {width: 100%;}
  .drawing-head, .drawing-foot {padding: 18px;}
  .principles > .wrap {display: grid; gap: 16px; font-size: 1.125rem;}
  .section {padding: 56px 0;}
  .section-head {display: block;}
  .section-head > p {margin-top: 24px;}
  .services, .steps, .articles {grid-template-columns: minmax(0, 1fr);}
  .service {padding: 28px 24px;}
  .service h3, .steps h3, .articles h3 {font-size: 1.5rem;}
  .service p, .steps p {font-size: 1.25rem;}
  .steps {gap: 32px;}
  .engineer-profile {padding-bottom: 0;}
  .engineer-layout {grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 56px;}
  .engineer-portrait {width: min(100%, 400px); justify-self: center; align-self: end; grid-row: 3;}
  .engineer-copy {display: contents;}
  .engineer-copy > .eyebrow, .engineer-heading, .engineer-role, .engineer-bio {margin-bottom: 0;}
  .engineer-heading h2 {font-size: 2rem;}
  .engineer-credentials {gap: 24px;}
  .tabs {gap: 8px 20px;}
  .tab {font-size: 1.125rem;}
  .portfolio-content {padding: 28px 24px;}
  .diagnostic-grid, .form-grid, .lead-controls {grid-template-columns: minmax(0, 1fr); gap: 24px;}
  .crm-toolbar {align-items: stretch;}
  .crm-toolbar label, .crm-toolbar .button {flex-basis: 100%; min-width: 0;}
  .lead-top {flex-wrap: wrap;}
  footer > .wrap {flex-direction: column; align-items: flex-start;}
}
@media (max-width: 380px) {
  header > .button {width: 100%;}
  .hero-copy > .button, .engineer-contact > .button {width: 100%;}
}
@media (prefers-reduced-motion: reduce) {
  html {scroll-behavior: auto;}
  .button {transition: none;}
}
