/* assets/css/style.css — Medeiros & Urioste Engenharia
   Linguagem visual: fotografia real em duotone verde-petróleo, títulos condensados em caixa-alta,
   filetes finos, cantos retos, listas numeradas (nada de cards arredondados com sombra).
   Seções: 1 fontes/tokens · 2 base · 3 header · 4 hero · 5 blocos · 6 formulário · 7 footer · 8 desktop */

/* 1. Fontes (auto-hospedadas, sem chamadas a terceiros) e tokens */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/BarlowCondensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/BarlowCondensed-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(../fonts/Inter-400.woff2) format("woff2"); }
:root {
  --ink: #101514; --teal: #123C3A; --teal-d: #0A2321; --ox: #C8512B; --ox-l: #E2754D;
  --bone: #F1EFEA; --stone: #DEDBD3; --muted: #5C6663; --on-dark: #B7C4C1;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --hh: 72px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.7 var(--sans); color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(3rem, 11vw, 7.5rem); }
h2 { font-size: clamp(2.3rem, 6vw, 4rem); }
h3 { font-size: 1.7rem; line-height: 1; }
p { margin: 0 0 1.1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ox); color: #fff; padding: .6rem 1rem; z-index: 200; } .skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ox-l); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.label { display: flex; align-items: center; gap: .9rem; font: 600 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ox); margin-bottom: 1.4rem; }
.label::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.dark .label, .hero .label, .page-head .label { color: var(--ox-l); }
.lead { font-size: 1.2rem; max-width: 38rem; }
.small { font-size: .88rem; } .muted { color: var(--muted); }

/* botões: retangulares */
.btn { display: inline-flex; align-items: center; gap: .8rem; font: 600 .9rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 1.15rem 1.7rem; border: 1.5px solid var(--ox); background: var(--ox); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn::after { content: "→"; transition: transform .2s; } .btn:hover::after { transform: translateX(5px); }
.btn:hover { background: var(--ox-l); border-color: var(--ox-l); }
.btn.line { background: transparent; border-color: rgba(255,255,255,.7); } .btn.line:hover { background: #fff; color: var(--teal); border-color: #fff; }
.btn.ink { background: transparent; color: var(--ink); border-color: var(--ink); } .btn.ink:hover { background: var(--ink); color: #fff; }

/* 3. Header (transparente sobre a foto; sólido ao rolar) */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hh); color: #fff; border-bottom: 1px solid rgba(255,255,255,.28); transition: background .3s; }
.site-header.solid, .site-header.open { background: var(--teal-d); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 36px; width: auto; }
.burger { background: none; border: 0; color: #fff; padding: .7rem 0 .7rem .7rem; cursor: pointer; display: grid; gap: 6px; }
.burger span { display: block; width: 28px; height: 2px; background: #fff; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: fixed; inset: var(--hh) 0 0 0; background: var(--teal-d); display: none; flex-direction: column; justify-content: center; gap: .4rem; padding: 2rem 1.25rem 4rem; }
.menu.open { display: flex; }
.menu a { text-decoration: none; font: 700 clamp(2.4rem, 11vw, 3.4rem)/1.05 var(--cond); text-transform: uppercase; }
.menu a[aria-current="page"] { color: var(--ox-l); }
.menu .tel { font: 600 1rem var(--sans); margin-top: 1.5rem; color: var(--on-dark); letter-spacing: .04em; }

/* 4. Hero e cabeçalhos de página */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--teal-d); overflow: hidden; }
.hero picture, .page-head picture { position: absolute; inset: 0; }
.hero img, .page-head img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .page-head.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,35,33,.55) 0%, rgba(10,35,33,.35) 40%, rgba(10,35,33,.92) 100%); mix-blend-mode: normal; }
.hero picture::after, .page-head picture::after { content: ""; position: absolute; inset: 0; background: var(--teal); mix-blend-mode: color; opacity: .75; }
.hero-body { position: relative; z-index: 2; padding: calc(var(--hh) + 3rem) 0 4.5rem; width: 100%; }
.hero h1 { font-size: clamp(3rem, 9.5vw, 6.6rem); max-width: 13ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--ox-l); }
.hero .lead { color: #E6EEEC; margin-bottom: 2rem; }
.actions { display: grid; gap: .8rem; }
.hero-facts { position: relative; z-index: 2; width: 100%; border-top: 1px solid rgba(255,255,255,.28); background: rgba(10,35,33,.55); backdrop-filter: blur(6px); }
.hero-facts .wrap { display: grid; }
.hero-facts div { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--on-dark); }
.hero-facts div:first-child { border-top: 0; } .hero-facts b { font: 700 1.25rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.hero-in { display: flex; flex-direction: column; width: 100%; }

.page-head { position: relative; background: var(--teal-d); color: #fff; padding: calc(var(--hh) + 4.5rem) 0 4rem; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.8rem, 9vw, 6rem); max-width: 14ch; }
.page-head .lead { color: #D6E1DF; margin: 0; }

/* 5. Blocos */
.section { padding: 5rem 0; } .dark { background: var(--teal-d); color: #fff; }
.dark p { color: var(--on-dark); } .stone { background: var(--stone); }
.split { display: grid; gap: 2.5rem; align-items: start; }
.photo-frame { position: relative; } .photo-frame img { width: 100%; filter: grayscale(.25) contrast(1.03); }
.photo-frame::after { content: ""; position: absolute; width: 38%; height: 14px; background: var(--ox); left: 0; bottom: -14px; }
.link { font: 600 .85rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--ox); padding-bottom: .3rem; }

/* lista numerada de serviços */
.rows { border-top: 1px solid var(--ink); margin-top: 2.5rem; }
.row { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: .4rem 1rem; padding: 1.8rem 0; border-bottom: 1px solid rgba(16,21,20,.35); text-decoration: none; transition: padding .25s, background .25s; }
.row .n { font: 600 1rem var(--cond); letter-spacing: .1em; color: var(--ox); padding-top: .5rem; }
.row h3 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.row p { grid-column: 2; margin: 0; color: var(--muted); max-width: 40rem; }
.row .go { display: none; }
.row .thumb { display: none; }

/* metodologia */
.steps { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.3); }
.step { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.step .num { font: 700 clamp(4rem, 14vw, 7rem)/.85 var(--cond); color: transparent; -webkit-text-stroke: 1.5px var(--ox-l); margin-bottom: 1rem; }
.step h3 { color: #fff; } .step p { margin: 0; }

/* áreas de atuação: grade de filetes */
.areas { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.areas div { padding: 1.5rem 1.4rem 1.6rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.areas b { display: block; font: 700 1.6rem/1 var(--cond); text-transform: uppercase; margin-bottom: .5rem; }
.areas span { color: var(--muted); font-size: .95rem; display: block; line-height: 1.5; }

/* faixa de CTA sobre textura de concreto */
.cta { position: relative; color: #fff; padding: 6rem 0; overflow: hidden; background: var(--teal-d); }
.cta picture { position: absolute; inset: 0; } .cta img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta picture::after { content: ""; position: absolute; inset: 0; background: var(--teal-d); mix-blend-mode: multiply; opacity: .8; }
.cta .wrap { position: relative; z-index: 2; } .cta h2 { max-width: 14ch; } .cta p { color: #D6E1DF; max-width: 32rem; }

/* serviços (página) */
.svc { display: grid; gap: 2rem; padding: 3.5rem 0; border-top: 1px solid var(--ink); }
.svc h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); } .svc .n { font: 600 1rem var(--cond); letter-spacing: .1em; color: var(--ox); display: block; margin-bottom: .8rem; }
.svc ul { padding: 0; list-style: none; margin: 1.2rem 0 1.6rem; } .svc li { padding: .55rem 0; border-top: 1px solid rgba(16,21,20,.2); }
.note { border-left: 3px solid var(--ox); padding: .4rem 0 .4rem 1.2rem; color: var(--muted); max-width: 46rem; }

/* dados cadastrais */
.data { display: grid; margin: 2rem 0 1rem; border-top: 1px solid var(--ink); }
.data div { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid rgba(16,21,20,.3); }
.data dt { font: 600 .72rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ox); }
.data dd { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.prose { max-width: 50rem; } .prose h2 { font-size: 2.1rem; margin-top: 2.6rem; } .prose li { margin-bottom: .45rem; }

/* animação de entrada */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 6. Formulário: campos com linha inferior */
.form { display: grid; gap: 1.4rem; }
.form label { display: grid; gap: .3rem; font: 600 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea { font: 400 1.05rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); padding: .7rem 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--ox); box-shadow: 0 2px 0 var(--ox); }
.form .check { display: block; font: 400 .88rem/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); } .form .check input { margin-right: .6rem; accent-color: var(--ox); }
.form .btn { justify-self: start; }
.two { display: grid; gap: 1.4rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 4px solid; } .alert ul { margin: 0; padding-left: 1.1rem; }
.alert.ok { background: #E1EEE6; border-color: #2F7A4D; } .alert.err { background: #F6E3DC; border-color: var(--ox); }

/* 7. Footer + cookies */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 4.5rem 0 0; overflow: hidden; font-size: .95rem; }
.site-footer .grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h2 { font: 600 .75rem var(--sans); letter-spacing: .2em; color: var(--ox-l); margin-bottom: 1rem; }
.site-footer a { text-decoration: none; color: #fff; } .site-footer a:hover { color: var(--ox-l); }
address { font-style: normal; } .site-footer .foot-logo { height: 40px; width: auto; margin-bottom: 1.2rem; }
.bigword { font: 700 clamp(3rem, 14.2vw, 13rem)/.8 var(--cond); text-transform: uppercase; color: rgba(255,255,255,.07); white-space: nowrap; margin: 0 -.3rem -.08em; user-select: none; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; font-size: .8rem; }
.cookie { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; background: var(--bone); border-top: 3px solid var(--ox); padding: 1.1rem 1.25rem; display: grid; gap: .8rem; font-size: .9rem; }
.cookie[hidden] { display: none; } .cookie p { margin: 0; } .cookie div { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie .btn { padding: .8rem 1.1rem; font-size: .78rem; } .cookie .btn::after { content: none; }

/* 8. Telas maiores */
@media (min-width: 760px) {
  .actions { display: flex; gap: .9rem; }
  .hero-facts .wrap { grid-template-columns: repeat(3, 1fr); }
  .hero-facts div { flex-direction: column; border-top: 0; border-left: 1px solid rgba(255,255,255,.16); padding: 1.3rem 1.5rem; gap: .35rem; }
  .hero-facts div:first-child { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; } .split.wide-l { grid-template-columns: 1.15fr .85fr; }
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 0; } .step { padding: 2.2rem 2rem 2.4rem 0; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.2); } .step + .step { padding-left: 2rem; } .step:last-child { border-right: 0; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } .svc.flip > :first-child { order: 2; }
  .data div { grid-template-columns: 14rem 1fr; gap: 2rem; align-items: baseline; }
  .two { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer .grid { grid-template-columns: 1.4fr 1.4fr 1fr; }
  .cookie { grid-template-columns: 1fr auto; align-items: center; padding-inline: max(1.25rem, calc((100% - 1240px) / 2)); }
}
@media (min-width: 1000px) {
  :root { --hh: 84px; }
  .brand img { height: 42px; }
  .burger { display: none; }
  .menu { position: static; display: flex; flex-direction: row; align-items: center; background: none; padding: 0; gap: 2.2rem; }
  .menu a { font: 600 .85rem var(--sans); letter-spacing: .14em; position: relative; padding: .4rem 0; }
  .menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--ox-l); transition: width .25s; }
  .menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }
  .menu .tel { margin: 0 0 0 .6rem; padding: .85rem 1.2rem; border: 1px solid rgba(255,255,255,.6); color: #fff; letter-spacing: .06em; }
  .menu .tel::after { content: none; } .menu .tel:hover { background: #fff; color: var(--teal-d); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  /* linhas de serviço: ao passar o mouse, mostra a foto à direita */
  .row { grid-template-columns: 4rem 1fr 3rem; align-items: center; padding: 2.2rem 0; }
  .row .n { grid-row: 1 / span 2; padding: 0; align-self: center; }
  .row h3 { grid-column: 2; } .row p { grid-column: 2; max-width: 34rem; }
  .row .go { display: block; grid-column: 3; grid-row: 1 / span 2; font-size: 1.6rem; color: var(--ox); transition: transform .25s; text-align: right; }
  .row .thumb { display: block; position: absolute; right: 5rem; top: 50%; width: 10rem; aspect-ratio: 4/5; overflow: hidden; opacity: 0; transform: translateY(-46%) scale(.96); pointer-events: none; transition: .3s; z-index: 3; box-shadow: 0 0 0 1px var(--ink); }
  .row .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row:hover { background: var(--bone); padding-left: 1rem; } .rows:hover .row:not(:hover) { opacity: .45; }
  .row:hover .go { transform: translateX(6px); } .row:hover .thumb { opacity: 1; transform: translateY(-50%) scale(1); }
}
