/* =========================================================
   ENGEVIAS | Engenharia e Consultoria
   Para trocar as cores do site, edite apenas as variáveis abaixo.
   ========================================================= */
:root {
  /* Paleta monocromática: branco, preto e cinza, com o verde-azulado do logo como único tom */
  --teal: #75A6B4;        /* cor do logo (faixa do topo, do rodapé e detalhes) */
  --brand: #14191B;       /* preto: botões e linhas */
  --brand-deep: #0B0F10;  /* preto mais profundo: textos sobre a faixa do topo e do rodapé */
  --brand-soft: #2C3437;  /* cinza escuro: hover e imagens provisórias */
  --teal-dark: #2E6B77;   /* ícones */
  --sand: #75A6B4;        /* detalhes (bordas e sublinhados): verde-azulado do logo */
  --accent: #75A6B4;      /* destaque */
  --ink: #111111;         /* texto */
  --steel: #4B5154;       /* texto secundário */
  --line: #DADDDE;        /* linhas e divisórias */
  --paper: #F2F4F4;       /* fundo cinza-claro alternado */
  --white: #FFFFFF;
  --on-dark: #D9DEDF;     /* texto sobre fundo escuro */
  --focus: #1D7487;

  /* Pista do hero (cores reais de rodovia) */
  --asphalt: #70777D;     /* asfalto */
  --road-yellow: #F2B705; /* sinalização central */

  /* escala de condição do pavimento (mesmas cores do sistema de monitoramento) */
  --c-good: #16A34A;
  --c-fair: #D97706;
  --c-bad: #DC2626;

  --font-display: "Archivo", system-ui, "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, "Segoe UI", Arial, sans-serif;

  --header-h: 80px;
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--brand-deep); }
.contact .form :focus-visible { outline-color: var(--focus); }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--accent); color: var(--brand-deep);
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-stretch: 105%;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--dark { background: var(--brand); color: var(--white); }
.btn--dark:hover { background: var(--brand-soft); }
.btn--road { background: var(--accent); color: var(--brand-deep); }
.btn--road:hover { background: #E6C29C; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--paper); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1.5rem;
}

.brand { display: flex; align-items: center; color: var(--brand-deep); text-decoration: none; }
.brand__img { height: 68px; width: auto; }
.brand__text {
  display: none;
  font-family: var(--font-display); font-stretch: 118%;
  font-weight: 800; font-size: 1.4rem; letter-spacing: .02em;
}
.brand--text .brand__text { display: inline; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  padding: .4rem 0; font-weight: 600; text-decoration: none; color: var(--brand-deep);
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--brand-deep); }
.nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--brand-deep); }

.nav-toggle {
  display: none; min-height: 44px; padding: .5rem 1rem;
  border: 1.5px solid var(--brand-deep); border-radius: var(--radius);
  background: transparent; color: var(--brand-deep);
  font: 600 1rem var(--font-display); cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--teal); box-shadow: 0 8px 12px rgba(0, 0, 0, .15);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(0, 0, 0, .25); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--white); color: var(--ink); overflow: hidden; }

.hero__grid {
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: min(680px, calc(100vh - var(--header-h)));
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.02em;
}
.hero__lead { max-width: 34rem; margin-top: 1.5rem; font-size: 1.2rem; color: var(--steel); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

/* Traçado viário (ilustração do hero) */
.route { width: 100%; height: auto; }
.route-gridline { fill: none; stroke: rgba(0, 0, 0, .06); stroke-width: 1; }
.route-edge     { fill: none; stroke: #C5CBCD; stroke-width: 45; }
.route-pavement { fill: none; stroke: var(--asphalt); stroke-width: 40; }
.route-center   { fill: none; stroke: var(--road-yellow); stroke-width: 3; stroke-dasharray: 16 14; }
.route-mask     { fill: none; stroke: #fff; stroke-width: 80; stroke-dasharray: 1 2; stroke-dashoffset: 0; }

.tick line { stroke: #6F777A; stroke-width: 1.5; }
.tick text {
  fill: #4B5154; font: 500 13px var(--font-display);
  font-variant-numeric: tabular-nums; text-anchor: middle;
}

/* Animação única de entrada: o traçado é desenhado e as estacas aparecem em sequência */
.is-animating .route-mask {
  stroke-dashoffset: 1;
  animation: route-draw 2.8s linear .4s forwards;
}
.is-animating .tick {
  opacity: 0;
  animation: tick-in .35s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes tick-in { to { opacity: 1; } }

/* ---------- Cabeçalho das páginas internas ---------- */
.page-head {
  position: relative; background: var(--white); color: var(--ink);
  padding-block: clamp(3.25rem, 7vw, 5.25rem) clamp(3.5rem, 7vw, 5.5rem);
}
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; font-stretch: 115%;
  line-height: 1.05; letter-spacing: -0.02em;
}
.page-head__lead { max-width: 40rem; margin-top: 1rem; font-size: 1.15rem; color: var(--steel); }

/* ---------- Marca d'água: foto da rodovia, bem clara, atrás do título de cada página ----------
   Para ajustar: --wm-opacity (força da foto) e --wm-filter (grayscale(1) = preto e branco; none = colorida). */
.wm { --wm-opacity: .32; --wm-filter: grayscale(1); isolation: isolate; }
.wm::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: var(--wm-opacity); filter: var(--wm-filter);
  /* mais fraca onde fica o texto (esquerda), um pouco mais visível à direita */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .7) 45%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .7) 45%, #000 100%);
}
.wm--inicio::before        { background-image: url('../assets/fundos/inicio.jpg');        background-position: center 55%; }
.wm--servicos::before      { background-image: url('../assets/fundos/servicos.jpg');      background-position: center 60%; }
.wm--sobre::before         { background-image: url('../assets/fundos/sobre.jpg');         background-position: center 40%; }
.wm--equipe::before        { background-image: url('../assets/fundos/equipe.jpg');        background-position: center 55%; }
.wm--experiencia::before   { background-image: url('../assets/fundos/experiencia.jpg');   background-position: center 25%; }
.wm--area-restrita::before { background-image: url('../assets/fundos/area-restrita.jpg'); background-position: center 70%; }
.wm--contato::before       { background-image: url('../assets/fundos/contato.jpg');       background-position: center 60%; }
.hero.wm { --wm-opacity: .22; }
@media (max-width: 700px) { .wm { --wm-opacity: .25; } .hero.wm { --wm-opacity: .17; } }

/* faixa de rodovia (asfalto com tracejado amarelo) na base do hero e do cabeçalho de página */
.hero::after, .page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: linear-gradient(90deg, var(--road-yellow) 0 22px, transparent 22px 42px) 0 50% / 42px 2px repeat-x, var(--asphalt);
}
/* a faixa já separa o bloco: a primeira seção não precisa da orla */
.hero + .section, .page-head + .section { border-top: 0; }
.hero + .section::before, .page-head + .section::before { display: none; }

/* ---------- Seções (estrutura comum) ---------- */
.section {
  position: relative; padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 6px solid var(--teal); /* orla: marca a entrada em um novo módulo */
}
/* marcador de areia sobre a orla, alinhado ao início do conteúdo (como um marco de quilometragem) */
.section::before {
  content: ""; position: absolute; top: -6px;
  left: calc((100% - min(1160px, 100% - 2.5rem)) / 2);
  width: 88px; height: 6px; background: var(--ink);
}
.section--paper { background: var(--paper); }
.section--dark { background: var(--brand); color: var(--white); }

.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.section__intro { max-width: 36rem; margin-top: 1.1rem; color: var(--steel); }
.section--dark .section__intro { color: var(--on-dark); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .split__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Serviços ---------- */
.services {
  display: grid; gap: 2.75rem 2rem; margin: 3.5rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
a.service__more { display: inline-block; }
.services--flush { margin-top: 0; }
.home-more { margin-top: 2.5rem; }
.service__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--brand-soft); border-bottom: 4px solid var(--sand); border-radius: 4px 4px 0 0;
}
.service__media > svg, .service__media > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.service__media > img { object-fit: cover; }
.service { display: flex; flex-direction: column; }
.service h3 { margin-top: 1.1rem; font-size: 1.2rem; font-weight: 700; font-stretch: 105%; }
.service p { margin: .5rem 0 .8rem; color: var(--steel); }
.service__more {
  margin-top: auto; align-self: flex-start; padding: .35rem 0; border: 0; background: none; cursor: pointer;
  color: var(--brand); font: 700 .95rem var(--font-display);
  text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.service__more:hover { color: var(--brand-deep); text-decoration-color: var(--brand-deep); }

/* Ilustrações dos serviços */
.ill .g { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.ill .l { fill: none; stroke: #DCEAED; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .f { fill: #DCEAED; }
.ill .win { fill: var(--brand-soft); }
.ill .soft { fill: rgba(255, 255, 255, .1); }
.ill .road { fill: var(--asphalt); }
.ill .y { fill: none; stroke: var(--road-yellow); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .yf { fill: var(--road-yellow); }
.ill .a { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .dash { stroke-dasharray: 7 7; }

/* ---------- Sistema de monitoramento ---------- */
.system { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .system { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4rem; } }
.system .btn { margin-top: 2rem; }

.condition {
  padding: clamp(1.25rem, 3vw, 2rem); background: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
}
.condition__title { font-size: 1.05rem; font-weight: 700; font-stretch: 105%; }
.condition__bar {
  display: flex; gap: 3px; height: 44px; margin-top: 1.25rem;
  padding: 0; list-style: none;
}
.condition__bar li { flex: 1; border-radius: 2px; }
.condition__bar .is-good { background: var(--c-good); }
.condition__bar .is-fair { background: var(--c-fair); }
.condition__bar .is-bad  { background: var(--c-bad); }
.condition__legend { display: grid; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.condition__legend li { display: flex; align-items: center; gap: .6rem; }
.condition__legend i { flex: none; width: 14px; height: 14px; border-radius: 3px; }
.condition__note { margin-top: 1rem; font-size: .85rem; color: var(--steel); }

/* ---------- Sobre ---------- */
.about .lead { font-size: 1.25rem; line-height: 1.5; max-width: 38rem; }
.about .btn { margin-top: 1.75rem; }
.about p + p { margin-top: 1rem; max-width: 38rem; color: var(--steel); }

.about-block { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.about-block h3 { font-size: 1.5rem; font-weight: 800; }
.areas { display: grid; gap: 1.1rem 2.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.areas li { padding-left: 1rem; border-left: 3px solid var(--sand); font-weight: 500; }

.pillars { display: grid; gap: 2rem; margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.pillars > div { padding-top: 1rem; border-top: 3px solid var(--teal); }
.pillars dt { font-family: var(--font-display); font-stretch: 105%; font-weight: 800; font-size: 1.25rem; }
.pillars dd { margin: .6rem 0 0; color: var(--steel); }

.process { margin: 0; padding: 0; }
.process h2 { margin-bottom: 0; }

/* Etapas: o desenho lembra o traçado de uma via com paradas */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 2rem 3.75rem; }
.steps li::before {
  content: ""; position: absolute; z-index: 0;
  left: calc(1.25rem - 1.5px); top: 0; bottom: 0; width: 3px;
  background: var(--brand);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }

.step__num {
  position: absolute; z-index: 1; left: 0; top: 0;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--accent); color: var(--brand-deep);
  font: 800 1.05rem var(--font-display);
}
.step__title { padding-top: .3rem; font-size: 1.15rem; font-weight: 700; font-stretch: 105%; }
.steps p { margin-top: .4rem; max-width: 22rem; color: var(--steel); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps li { padding: 3.75rem 0 0; }
  .steps li::before {
    left: 0; right: -2rem; top: calc(1.25rem - 1.5px);
    bottom: auto; width: auto; height: 3px;
  }
  .step__title { padding-top: 0; }
}

/* ---------- Projetos ---------- */
.projects { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 760px) {
  .projects { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 1.75rem; }
  .project--lead { grid-row: span 2; display: flex; flex-direction: column; }
  .project--lead .project__media { flex: 1; aspect-ratio: auto; min-height: 340px; }
}

.project__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 4px; background-color: #E3E7E8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='200' viewBox='0 0 320 200' fill='none' stroke='%23000000' stroke-opacity='.1'%3E%3Cpath d='M-10 150C60 120 90 170 160 140S260 90 330 120'/%3E%3Cpath d='M-10 120C60 90 90 140 160 110S260 60 330 90'/%3E%3Cpath d='M-10 90C60 60 90 110 160 80S260 30 330 60'/%3E%3Cpath d='M-10 60C60 30 90 80 160 50S260 0 330 30'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.project__media::before {
  content: "Foto do projeto"; position: absolute; left: 1rem; bottom: .9rem;
  font-size: .9rem; color: rgba(0, 0, 0, .55);
}
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.project h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; font-stretch: 105%; }
.project__meta { margin-top: .25rem; font-size: .95rem; color: var(--steel); }

/* ---------- Equipe ---------- */
.team {
  display: grid; gap: 2.5rem 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.team-group { margin-top: 3rem; font-size: 1.3rem; font-weight: 800; }
.team-group ~ .team-group { margin-top: 3.5rem; }
.member__photo {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
  background: #E3E7E8; border-bottom: 4px solid var(--sand); border-radius: 4px 4px 0 0;
}
.member__photo::before {
  content: attr(data-initials);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: 3rem; color: rgba(0, 0, 0, .35);
}
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-top: 1rem; font-size: 1.2rem; font-weight: 700; font-stretch: 105%; }
.member__role { margin-top: .2rem; font-weight: 600; color: var(--ink); }
.member__reg { margin-top: .35rem; font-size: .9rem; color: var(--steel); }

/* ---------- Clientes ---------- */
.clients {
  display: grid; gap: 1rem; margin: 3rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
}
.client {
  position: relative; display: grid; place-items: center; min-height: 104px; padding: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.client img {
  max-width: 80%; max-height: 56px; object-fit: contain;
  filter: grayscale(1); opacity: .85; transition: filter .15s ease, opacity .15s ease;
}
.client:hover img { filter: none; opacity: 1; }
.client__name { font-size: .95rem; color: var(--steel); }
.client.has-logo .client__name {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Certificações ---------- */
.creds { display: grid; gap: 2rem 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cred { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.cred svg { margin-top: .1rem; color: var(--teal-dark); }
.cred h3 { font-size: 1.1rem; font-weight: 700; font-stretch: 105%; }
.cred p { margin-top: .3rem; font-size: .98rem; color: var(--steel); }

/* ---------- Experiência em números ---------- */
.facts {
  display: grid; gap: 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.facts--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.fact { padding-top: 1rem; border-top: 3px solid var(--teal); }
.fact__num {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em;
}
.fact__txt { margin-top: .6rem; color: var(--steel); }

/* ---------- Linha do tempo dos contratos ---------- */
.timeline { margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.timeline li { display: grid; gap: .5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 11rem minmax(0, 1fr); } }
.timeline__when { font-family: var(--font-display); font-weight: 800; font-stretch: 105%; font-size: 1.1rem; }
.timeline__who { display: block; margin-top: .15rem; font: 500 .9rem var(--font-body); color: var(--steel); }
.timeline h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 105%; }
.timeline p + p, .timeline h3 + p { margin-top: .5rem; color: var(--steel); max-width: 46rem; }

/* ---------- Dados da empresa ---------- */
.company-data { display: grid; gap: 1.5rem 3rem; margin: 2rem 0 0; }
@media (min-width: 760px) { .company-data { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.company-data dt { font-size: .9rem; color: var(--steel); }
.company-data dd { margin: .2rem 0 0; font-size: 1.05rem; }
@media (min-width: 760px) { .company-data .wide { grid-column: 1 / -1; } }

/* clientes em texto e nota */
.clients--text { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.clients--text .client { min-height: 96px; }
.clients--text .client__name { font-weight: 600; color: var(--ink); }
.clients__note { margin-top: 1.5rem; font-size: .95rem; color: var(--steel); }
.creds__note { margin-top: 2rem; font-size: .95rem; color: var(--steel); }
.creds__note a { text-underline-offset: 3px; }

/* ---------- Chamada para contato (início) ---------- */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { max-width: 30rem; }

/* ---------- Pop-up de detalhes do serviço ---------- */
.modal.modal--service { width: min(calc(100% - 2rem), 66rem); }
.servico-detail { display: grid; }
@media (min-width: 900px) { .servico-detail--photos { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.servico-detail__gallery { display: grid; gap: .75rem; align-content: start; padding: 1rem; background: var(--paper); }
.servico-detail__figure { margin: 0; }
.servico-detail__figure img {
  display: block; width: 100%; max-height: 60vh; object-fit: contain;
  background: #E3E7E8; border-radius: 4px;
}
.servico-detail__figure video {
  display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 4px;
}
.servico-detail__figure figcaption { margin-top: .6rem; font-size: .9rem; color: var(--steel); }
.servico-detail__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.servico-detail__thumbs button {
  width: 76px; height: 52px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: 4px; background: #E3E7E8; opacity: .65;
}
.servico-detail__thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.servico-detail__thumbs button:hover { opacity: 1; }
.servico-detail__thumbs button { position: relative; }
.servico-detail__thumbs .is-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: rgba(17, 17, 17, .72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M10 7.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.servico-detail__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.modal--service :focus-visible { outline-color: var(--focus); }
.servico-detail__text { padding: clamp(1.5rem, 3vw, 2.25rem); }
.servico-detail__text h2 { padding-right: 2.75rem; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; }
.servico-detail__intro { margin-top: .9rem; }
.servico-detail__points { display: grid; gap: .85rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.servico-detail__points li { padding-left: 1rem; border-left: 3px solid var(--sand); color: var(--steel); }
.servico-detail__text .btn { margin-top: 1.75rem; }

/* ---------- Área restrita (acessos) ---------- */
.access { display: grid; gap: 1.5rem; margin-top: 0; max-width: 34rem; }
@media (min-width: 800px) { .access { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.access-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 8px;
}
.access-card h3 { font-size: 1.8rem; font-weight: 800; }
.access-card__full { margin-top: .35rem; font-weight: 600; color: var(--brand); }
.access-card__desc { flex: 1; max-width: 30rem; margin-top: .9rem; color: var(--steel); }
.access-card .btn { margin-top: 1.75rem; }

/* ---------- Pop-up do colaborador ---------- */
.modal {
  width: min(calc(100% - 2rem), 30rem); max-height: calc(100vh - 2rem); padding: 0;
  border: 0; border-radius: 8px; background: var(--white); color: var(--ink); overflow: hidden;
}
.modal--wide { width: min(calc(100% - 2rem), 60rem); }
.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal__body { max-height: calc(100vh - 2rem); overflow-y: auto; }
.modal__close {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--brand-deep); cursor: pointer;
}
.modal__close:hover { background: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Área do colaborador ---------- */
.portal-login { display: block; }

.login-card {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white); border-top: 4px solid var(--teal);
}
.login-card h2 { display: flex; align-items: center; gap: .6rem; padding-right: 2.75rem; font-size: 1.5rem; font-weight: 800; }
.login-card h2 svg { flex: none; }
.login-card .btn { justify-self: start; min-width: 9rem; }
.login-help { font-size: .9rem; color: var(--steel); }
.login-error {
  padding: .7rem .9rem; border: 1px solid #F3B8B8; border-radius: var(--radius);
  background: #FDECEC; color: #8E1B1B; font-size: .95rem;
}

.field__control { position: relative; }
.field__control input { padding-right: 5.5rem; }
.pw-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: .25rem .65rem; border: 0; background: transparent;
  color: var(--brand); font: 600 .9rem var(--font-display);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.portal-app { background: var(--white); }
.portal-top {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1.25rem 4.25rem 1.25rem clamp(1.25rem, 3vw, 2rem); background: var(--teal); color: var(--brand-deep);
}
.portal-top .btn--ghost { border-color: var(--brand-deep); color: var(--brand-deep); }
.portal-top .btn--ghost:hover { background: rgba(0, 0, 0, .08); }
.portal-hello { font-size: 1.5rem; font-weight: 800; }
.portal-hello:focus { outline: none; }
.portal-sub { margin-top: .2rem; font-size: .95rem; color: var(--brand-deep); }

.tabs {
  display: flex; gap: .25rem; padding: 0 clamp(1.25rem, 3vw, 2rem);
  background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto;
}
.tab {
  min-height: 52px; padding: .75rem 1.1rem; border: 0; border-bottom: 3px solid transparent;
  background: transparent; color: var(--steel); font: 600 1rem var(--font-display);
  white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--brand-deep); }
.tab[aria-selected="true"] { color: var(--brand-deep); border-bottom-color: var(--sand); }

.tabpanel { padding: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 520px) {
  .tabs { padding: 0; }
  .tab { flex: 1 1 0; padding-inline: .5rem; font-size: .95rem; white-space: normal; text-align: center; }
}

.punch { display: grid; gap: 1.5rem; align-items: center; padding: 1.5rem; background: var(--paper); border-radius: 8px; }
@media (min-width: 760px) { .punch { grid-template-columns: 1fr auto; } }
.punch__time {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.punch__date { margin-top: .5rem; color: var(--ink); }
.punch__hint { margin-top: .25rem; font-size: .85rem; color: var(--steel); }
.punch .btn { min-height: 56px; padding-inline: 2rem; font-size: 1.1rem; }
.punch .btn:disabled { background: var(--steel); cursor: not-allowed; }
.punch__status { min-height: 1.5em; margin-top: .75rem; font-size: .95rem; color: var(--steel); }

.panel-title { margin: 2rem 0 .9rem; font-size: 1.15rem; font-weight: 700; font-stretch: 105%; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.toolbar .panel-title { margin-block: 2rem .9rem; }
.toolbar--first .panel-title { margin-top: 0; }
.select {
  min-height: 44px; padding: .5rem .8rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #B5C4C8; border-radius: var(--radius);
}

.today { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.today li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); }
.today time { font-weight: 600; font-variant-numeric: tabular-nums; }
.today .empty { padding: 0; border: 0; color: var(--steel); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td {
  padding: .7rem .9rem; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.data-table thead th { background: var(--paper); font-size: .9rem; font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.btn--small { min-height: 40px; padding: .4rem 1rem; font-size: .95rem; }
.data-table--pay { min-width: 0; }
.pay-type { display: none; font-size: .85rem; color: var(--steel); }
@media (max-width: 520px) {
  .data-table--pay th:nth-child(2), .data-table--pay td:nth-child(2) { display: none; }
  .pay-type { display: block; }
  .data-table--pay td:first-child { white-space: normal; }
  .data-table--pay th, .data-table--pay td { padding-inline: .5rem; }
}

.portal-privacy { padding: 0 clamp(1.25rem, 3vw, 2rem) 1.5rem; font-size: .85rem; color: var(--steel); }

/* ---------- Contato ---------- */
.contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
}

.contact-info { display: grid; gap: 1.25rem; margin: 2.25rem 0 0; }
.contact-info dt { font-size: .9rem; color: var(--steel); }
.contact-info dd { margin: .15rem 0 0; font-size: 1.1rem; }
.contact-info a { text-decoration-color: var(--sand); text-underline-offset: 4px; }

.form {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white); color: var(--ink); border-radius: 8px;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #B5C4C8; border-radius: var(--radius);
}
.field input:hover, .field textarea:hover { border-color: var(--steel); }
.field textarea { resize: vertical; min-height: 8rem; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-size: .95rem; color: var(--steel); }
.form__status a { color: var(--brand); }

/* ---------- Rodapé ---------- */
.site-footer { padding-block: 2rem; background: var(--teal); color: var(--brand-deep); font-size: .95rem; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.footer-logo { height: 64px; width: auto; }
.footer-brand {
  display: none; font-family: var(--font-display); font-stretch: 118%;
  font-weight: 800; font-size: 1.3rem;
}
.site-footer--text .footer-brand { display: block; }

/* ---------- Preferências de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
