:root {
  color-scheme: light;
  --ink: #14252c;
  --muted: #4a5a60;
  --navy: #101e26;
  --navy-2: #172a34;
  --paper: #f6f5f0;
  --card: #fffefa;
  --accent: #f2ba69;
  --rust: #925321;
  --line: #d1d2c9;
  --line-dark: #ffffff2e;
  font-family: "Instrument Sans", "Aptos", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b6752d; outline-offset: 5px; }
.wrap { width: min(88%, 1232px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 12px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Cabeçalho */
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.nav nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); font-size: .9375rem; font-weight: 600; }
.nav nav a { white-space: nowrap; }
.nav nav a:hover, .footer > a:last-child:hover, .contact-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-size: 1.55rem; font-weight: 700; line-height: 1; letter-spacing: .055em; }
.brand small { display: block; font-size: .59em; letter-spacing: .11em; margin-top: .25rem; font-weight: 600; }
.mark { display: block; flex: none; width: 35px; height: 35px; background: #b36c31; clip-path: polygon(0 0,100% 0,100% 27%,28% 27%,28% 72%,100% 72%,100% 100%,0 100%); transform: skewY(-10deg); }

/* Botões */
.button { display: inline-flex; justify-content: center; align-items: center; width: fit-content; min-height: 48px; padding: .65rem 1.3rem; border: 1px solid currentColor; font-weight: 700; font-size: .9375rem; transition: background .15s, color .15s, border-color .15s; }
.header-button:hover { background: var(--navy); color: white; }
.primary { color: var(--navy); background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #ffd193; border-color: #ffd193; }
.ghost { color: #fff; border-color: #ffffff8c; }
.ghost:hover { background: #ffffff1f; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Capa */
.hero { background: linear-gradient(90deg,#101e26 0%,#101e26f0 30%,#101e2699 65%,#101e2644 100%), url("viaduto.webp") center 48% / cover no-repeat, var(--navy); color: #fff; }
.hero-content { min-height: clamp(460px, 48vw, 640px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 3.5rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; color: var(--rust); font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { background: currentColor; width: 22px; height: 2px; flex: none; }
.hero .eyebrow, .hero h1 span { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1, h2 { letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 15ch; }
h2 { font-size: clamp(2.1rem, 4vw, 3.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.2; }
.intro { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34rem; line-height: 1.55; margin: 1.45rem 0 1.8rem; color: #f1f0ec; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center; padding-block: 1.1rem; border-top: 1px solid #ffffff61; font-size: .875rem; }

/* Layout de seções */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 7vw, 6.5rem); }
.services, .about, .contact { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-intro > p:not(.eyebrow):not(.role), .about-text p, .contact p:not(.eyebrow), .team-body p { max-width: 36rem; font-size: 1.085rem; line-height: 1.65; color: var(--muted); }
.section-intro > p:not(.eyebrow) { margin-top: 1.4rem; }

/* Três frentes */
.pillars { padding-block: clamp(3.5rem, 8vw, 7rem) 0; }
.pillars .section-intro { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar { display: flex; flex-direction: column; gap: .9rem; padding: 1.75rem; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--rust); transition: transform .15s, box-shadow .15s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #14252c14; }
.pillar p { margin: 0; line-height: 1.55; color: var(--muted); flex: 1; }
.num { font-size: .875rem; font-weight: 700; color: var(--rust); letter-spacing: .1em; }
.more { font-weight: 700; font-size: .9375rem; }
.more::after { content: " →"; color: var(--rust); }

/* Listas de serviços */
.service-list { border-top: 1px solid var(--line); align-self: start; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.2rem; font-size: clamp(1.08rem, 1.8vw, 1.4rem); font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rust); font-weight: 400; font-size: 1.3em; }
details[open] summary::after { content: "−"; }
details p { max-width: 34rem; margin: 0 2rem 1.3rem 0; line-height: 1.6; color: var(--muted); }

/* Seção escura (perícias) */
.dark { background: var(--navy); color: #fff; margin-top: clamp(3.5rem, 8vw, 7rem); }
.dark .eyebrow, .about .eyebrow { color: var(--accent); }
.dark .section-intro > p:not(.eyebrow), .dark details p { color: #cfd7d8; }
.dark .service-list, .dark details { border-color: var(--line-dark); }
.dark summary::after { color: var(--accent); }

/* A empresa */
.about { background: var(--navy-2); color: #fff; }
.about .about-text p { color: #dfe5e5; }
.about-text p:first-child { margin-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0; }
.facts dt { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.facts dd { margin: .4rem 0 0; color: #cfd7d8; font-size: .9375rem; max-width: 14rem; }

/* Responsável técnico */
.team { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 7vw, 6.5rem); padding-block: clamp(3.5rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.team h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.role { margin: 1rem 0 0; font-weight: 600; color: var(--rust); line-height: 1.5; }
.team-body p:first-child { margin-top: 0; }
.credentials { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; border-top: 1px solid var(--line); }
.credentials li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .25rem; }
.credentials strong { font-weight: 600; line-height: 1.35; }
.credentials span { color: var(--muted); font-size: .9375rem; }

.experience { margin-top: 1.75rem; }
.team-body .exp-title { margin: 0 0 .75rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rust); }
.exp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.exp-list li { padding: .4rem .8rem; border: 1px solid var(--line); background: var(--card); font-size: .9375rem; font-weight: 600; }

/* Contato */
.contact .split { align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 7.5rem; flex: none; color: var(--muted); font-size: .9375rem; }

/* Rodapé */
footer { background: var(--navy); color: #dfe5e5; }
.footer { min-height: 110px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 1.6rem; gap: 1.2rem 2rem; font-size: .875rem; }
.footer .brand { color: #fff; }
.footer-info { display: flex; flex-direction: column; gap: .3rem; }

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .split, .team { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: grid; grid-template-columns: 1fr auto; gap: .75rem; padding-block: 1rem; }
  .nav nav { grid-row: 2; grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: .75rem; overflow-x: auto; gap: 1rem; font-size: .875rem; scrollbar-width: none; }
  .header-button { grid-row: 1; grid-column: 2; }
  .hero { background-position: 63% center; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .contact-list li { flex-direction: column; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pillar, .button { transition: none; }
  .pillar:hover { transform: none; }
}
