/* Haja Engenharia — Design System v1.0 */
:root {
  --azul: #0D33FE;
  --azul-obra: #0A27C4;
  --azul-noturno: #06177A;
  --preto: #0A0A0B;
  --grafite: #2B2D33;
  --concreto: #5E626B;
  --linha: #D9DCE2;
  --base: #F3F4F6;
  --nevoa: #E8ECFF;
  --branco: #FFFFFF;
  --erro: #C32A2A;
  --radius: 2px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--azul); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografia */
h1, h2, h3 { margin: 0; }
.display, h1, h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--preto);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; }
h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--preto); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--azul); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--grafite); max-width: 620px; margin: 20px 0 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  background: var(--azul); color: var(--branco);
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 16px; letter-spacing: 0; text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--azul-obra); color: var(--branco); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--preto); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--branco { background: var(--branco); color: var(--azul); }
.btn--branco:hover { background: var(--nevoa); color: var(--azul-obra); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.dark :focus-visible { outline-color: var(--branco); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--branco); border-bottom: 1px solid var(--linha); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header img { height: 52px; width: auto; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0; background: var(--branco); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--azul); }
.hero .btn { margin-top: 32px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--concreto); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.hero-media::after { content: ''; position: absolute; left: -14px; bottom: -14px; width: 40%; height: 40%; border-left: 6px solid var(--azul); border-bottom: 6px solid var(--azul); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; background: var(--nevoa); color: var(--azul-noturno); font-size: 13px; font-weight: 600; border-radius: var(--radius); }

/* Seções */
section { padding: var(--sec) 0; }
.bg-base { background: var(--base); }
.dark { background: var(--azul-noturno); color: #D6DCFF; }
.dark h2, .dark h3 { color: var(--branco); }
.dark .eyebrow { color: var(--branco); }
.dark .eyebrow::before { background: var(--branco); }
.dark .lead { color: #D6DCFF; }
.sec-cta { margin-top: clamp(32px, 5vw, 56px); }

/* Dores */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--branco); border: 1px solid var(--linha); padding: 28px; border-radius: var(--radius); }
.card p { margin: 10px 0 0; color: var(--concreto); font-size: 16px; }
.icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--base); margin-bottom: 20px; }
.bg-base .icon { background: var(--branco); }
.icon svg { width: 26px; height: 26px; stroke: var(--preto); fill: none; stroke-width: 2; stroke-linecap: square; }
.icon--azul { background: var(--azul) !important; }
.icon--azul svg { stroke: var(--branco); }
.card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.card--dark p { color: #C4CCFF; }
.card--dark .icon { background: var(--azul); }
.card--dark .icon svg { stroke: var(--branco); }

/* Produtos */
.prod { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.prod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prod div { padding: 24px 28px 28px; }
.prod p { margin: 8px 0 0; font-size: 16px; color: var(--concreto); }
.more { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more strong { font-size: 14px; color: var(--preto); margin-right: 6px; }
.more span { padding: 8px 14px; border: 1px solid var(--linha); background: var(--branco); font-size: 14px; font-weight: 600; color: var(--grafite); }

/* Números */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.fact { padding: 28px 24px 0 0; }
.fact b { display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1; color: var(--branco); }
.fact span { display: block; margin-top: 10px; font-size: 15px; color: #C4CCFF; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* Público */
.who { border-top: 4px solid var(--azul); }

/* Quem somos */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.about-photo::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 40%; border-right: 6px solid var(--azul); border-bottom: 6px solid var(--azul); pointer-events: none; }
.about h2 { margin-bottom: 8px; }
.about .role { margin: 0 0 20px; font-weight: 600; color: var(--azul); }
.about p { margin: 0 0 16px; }
.about .chips { margin-top: 20px; }
.place { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 15px; color: var(--concreto); }
.place svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--azul); fill: none; stroke-width: 2; stroke-linecap: square; }

/* Passos */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--preto); }
.step::before { counter-increment: s; content: '0' counter(s); display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 40px; color: var(--azul); margin-bottom: 12px; }
.step p { margin: 8px 0 0; color: var(--concreto); }

/* Formulário */
.form-sec { background: var(--azul); color: var(--branco); }
.form-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.form-sec h2 { color: var(--branco); }
.form-sec .eyebrow { color: var(--branco); }
.form-sec .eyebrow::before { background: var(--branco); }
.form-sec .lead { color: #E8ECFF; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ticks svg { width: 22px; height: 22px; flex: none; stroke: var(--branco); fill: none; stroke-width: 2.5; stroke-linecap: square; }
form { background: var(--branco); color: var(--grafite); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); display: grid; gap: 18px; }
form h3 { font-size: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--preto); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--preto);
  background: var(--base); border: 1px solid var(--linha); border-radius: var(--radius);
}
.field input:focus { border-color: var(--azul); background: var(--branco); }
.field.erro input { border-color: var(--erro); }
.field .msg { display: none; margin-top: 6px; font-size: 13px; color: var(--erro); font-weight: 500; }
.field.erro .msg { display: block; }
.privacy { margin: 0; font-size: 13px; color: var(--concreto); text-align: center; }

/* Rodapé */
.footer { padding: 32px 0; background: var(--branco); border-top: 1px solid var(--linha); color: var(--concreto); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer img { height: 52px; width: auto; }

/* Barra fixa mobile */
.sticky-cta { display: none; }

@media (max-width: 960px) {
  .hero .wrap, .form-sec .wrap { grid-template-columns: 1fr; }
  .hero .wrap { display: flex; flex-direction: column; gap: 0; }
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero .lead { order: 3; }
  .hero-media { order: 4; margin-top: 28px; }
  .hero-media img { aspect-ratio: 4/3; }
  .hero .btn { order: 5; margin-top: 28px; }
  .hero-note { order: 6; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .grid-4 { grid-template-columns: 1fr; }
  .header .btn { display: none; }
  .header img { height: 46px; }
  .btn { width: 100%; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px var(--gutter); background: var(--branco); border-top: 1px solid var(--linha); }
  .sticky-cta.hide { display: none; }
  .hero-media::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
