/* SCH Engenharia — estilos */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --teal: #0E3A45;
  --teal-2: #23505C;
  --teal-deep: #092B34;
  --orange: #A65C0D;        /* botões com texto branco (contraste 5:1) */
  --orange-hover: #8C4D0A;
  --orange-label: #9E560B;  /* textos laranja sobre fundo claro */
  --orange-light: #F0A85E;  /* botões sobre fundo escuro, texto teal */
  --bg: #FAF9F6;
  --bg-alt: #F3F1EA;
  --line: #E5E2D9;
  --text: #2A3238;
  --muted: #535D63;
  --on-dark: #C6D6DA;
  --on-dark-muted: #A3BCC3;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 7vw, 96px);
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; }
::selection { background: #F2DFC6; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--teal); color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--teal); text-wrap: balance; max-width: 22ch; }
.section--dark h2 { color: #fff; }
.lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 58ch; text-wrap: pretty; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2; transition: background-color .15s, border-color .15s; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-hover); color: #fff; }
.btn--light { background: var(--orange-light); color: var(--teal); }
.btn--light:hover { background: #F5B877; color: var(--teal); }
.btn--ghost { border: 1.5px solid #4A7380; color: #fff; }
.btn--ghost:hover { border-color: var(--orange-light); color: #fff; }
.btn--lg { min-height: 60px; padding: 18px 34px; font-size: 17px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250,249,246,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__bar { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 52px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 600; color: #414B52; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--orange-label); }
.nav .btn { min-height: 46px; padding: 11px 20px; font-size: 15px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid #DDD9CE; border-radius: 999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 19px; height: 2px; background: var(--teal); position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-mobile { border-top: 1px solid var(--line); padding: 6px var(--pad) 22px; background: var(--bg); }
.menu-mobile a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1px solid #EDEBE3; }
.menu-mobile .btn { width: 100%; margin-top: 18px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .menu-mobile { display: none; } }

/* Hero */
.hero { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 6vw, 84px); }
.hero__kicker { font-size: 15px; font-weight: 600; color: var(--orange-light); margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.hero__text { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--on-dark); max-width: 50ch; text-wrap: pretty; }
.hero__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--teal-2); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--on-dark-muted); }
.hero__proof strong { color: #fff; font-weight: 700; }
.hero__img { border-radius: 8px; overflow: hidden; border: 1px solid #2C5866; aspect-ratio: 4 / 5; background: #17424E; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4 / 3; }
  .hero__img img { object-position: 50% 8%; }
}

/* Problemas */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.callout { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--orange-light); font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; color: var(--teal); letter-spacing: -0.02em; line-height: 1.3; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg-alt); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--bg); color: var(--teal); font-size: 14px; font-weight: 700; padding: 4px 9px; border-radius: 4px; }

/* Serviços */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; }
.card h3 { font-size: 19px; font-weight: 800; color: var(--teal); letter-spacing: -0.01em; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.card--accent { background: var(--teal); border-color: var(--teal); }
.card--accent h3 { color: var(--orange-light); }
.card--accent p { color: var(--on-dark); }

/* Quando contratar */
.checklist { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; color: #3C464D; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--orange-label); background: radial-gradient(circle, var(--orange-label) 0 3px, transparent 4px); }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-row p { font-size: clamp(18px, 2vw, 21px); font-weight: 700; color: var(--teal); max-width: 42ch; letter-spacing: -0.01em; }

/* Como funciona */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--teal); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.steps h3 { font-size: 18px; font-weight: 800; color: var(--teal); }
.steps p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* Sobre */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p { margin-top: 20px; font-size: 17px; color: var(--on-dark); max-width: 54ch; }
.about p strong { color: #fff; }
.signature { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--teal-2); font-size: 15px; color: var(--on-dark-muted); }
.signature strong { display: block; font-size: 19px; color: #fff; }
.pillars li { padding: 20px 0; border-bottom: 1px solid var(--teal-2); }
.pillars li:first-child { padding-top: 0; }
.pillars h3 { font-size: 17px; font-weight: 800; color: var(--orange-light); }
.pillars p { margin-top: 4px; font-size: 15.5px; color: var(--on-dark); }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 17.5px; font-weight: 700; color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 500; color: var(--orange-label); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; font-size: 16px; color: var(--muted); max-width: 64ch; }

/* CTA final */
.final { position: relative; overflow: hidden; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.final .wrap { position: relative; max-width: 820px; }
.final h2 { margin: 0 auto; font-size: clamp(30px, 4.4vw, 50px); max-width: 20ch; }
.final p { margin: 20px auto 0; font-size: 17px; color: var(--on-dark); max-width: 54ch; }
.final .btn { margin-top: 32px; }
.final small { display: block; margin-top: 16px; font-size: 14.5px; color: var(--on-dark-muted); }

/* Rodapé */
.footer { background: var(--teal-deep); color: #B2C7CD; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-block: clamp(44px, 6vw, 64px); }
.footer h2 { font-size: 13px; font-weight: 700; color: #8FAAB2; letter-spacing: .04em; margin-bottom: 10px; max-width: none; }
.footer .brand-name { font-size: 21px; font-weight: 800; color: #fff; }
.footer a, .footer .linklike { color: #B2C7CD; }
.footer a:hover, .footer .linklike:hover { color: var(--orange-light); }
.footer li + li { margin-top: 6px; }
.footer__legal { border-top: 1px solid #10404C; padding-block: 18px 28px; font-size: 13.5px; color: #8FAAB2; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* WhatsApp flutuante (desktop) e barra fixa (mobile) */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -12px rgba(0,0,0,.55); }
.wa-float:hover { background: var(--orange-hover); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .wa-float { display: none; }
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(250,249,246,.97); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-bar .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

/* Aviso de cookies */
.cookie { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(14,58,69,.5); padding: 20px; font-size: 15px; }
.cookie p { margin-bottom: 14px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--outline { border: 1.5px solid var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--bg-alt); }
.cookie[hidden] { display: none; }

/* Página de texto (política de privacidade) */
.doc { max-width: 760px; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 7vw, 96px); margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--teal); }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.01em; max-width: none; }
.doc p, .doc ul { margin-top: 14px; font-size: 16.5px; }
.doc ul { padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--bg-alt); color: var(--teal); }
.table-scroll { overflow-x: auto; }
