@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #171816;
  --ink-soft: #242521;
  --paper: #eeeae1;
  --paper-light: #f7f4ed;
  --white: #fffdf8;
  --rust: #d65325;
  --rust-dark: #a73716;
  --olive: #31362e;
  --muted: #686a63;
  --line: rgba(23, 24, 22, .22);
  --display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 1000; top: 0; left: 1rem; padding: .75rem 1rem; background: var(--rust); color: var(--white); font-weight: 700; transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; display: flex; min-height: 88px; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: var(--paper-light); }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: inherit; line-height: 1; text-decoration: none; }
.brand-mark { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--rust); color: var(--ink); font: 700 1.1rem/1 var(--display); letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.12rem/1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.brand small { margin-top: .22rem; color: var(--rust-dark); font-size: .68rem; font-weight: 600; letter-spacing: .29em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.6rem); }
nav a { position: relative; color: #3e403b; font-size: .82rem; font-weight: 600; text-decoration: none; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -.4rem; left: 0; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: .7rem 1rem; border: 1px solid var(--ink); color: var(--ink); }
.nav-cta:hover { background: var(--ink); color: var(--white); }
.menu-button { display: none; width: 2.8rem; height: 2.8rem; border: 1px solid var(--ink); background: transparent; }
.menu-button span { display: block; width: 1.2rem; height: 2px; margin: .25rem auto; background: var(--ink); }

.hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); border-bottom: 1px solid var(--line); background: var(--paper-light); }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.eyebrow { margin: 0 0 1.4rem; color: var(--rust-dark); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 1.8rem; height: 2px; margin-right: .65rem; vertical-align: middle; background: currentColor; }
.eyebrow.dark { color: var(--rust-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); }
h1 { max-width: 650px; margin-bottom: 1.6rem; font-size: clamp(3.6rem, 6vw, 6.5rem); font-weight: 600; line-height: .91; letter-spacing: -.045em; }
h1 em { display: block; color: var(--rust); font-style: normal; }
.hero-copy { max-width: 490px; margin-bottom: 0; color: #555750; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero-note { max-width: 420px; margin: 3.5rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.hero-photo { position: relative; min-height: 680px; margin: 0; overflow: hidden; background: var(--ink); }
.hero-photo::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 10px; background: var(--rust); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: 1.2rem; bottom: 1.2rem; padding: .65rem .8rem; background: rgba(23, 24, 22, .9); color: rgba(255,255,255,.78); font-size: .69rem; }
.hero-photo figcaption span { margin-right: .65rem; color: #f1906d; font-weight: 600; text-transform: uppercase; }

.button { display: inline-flex; min-height: 3.35rem; align-items: center; justify-content: center; padding: .85rem 1.35rem; border: 1px solid transparent; border-radius: 0; cursor: pointer; font-size: .84rem; font-weight: 600; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .upload:focus-within, a:focus-visible, button:focus-visible { outline: 3px solid rgba(214, 83, 37, .38); outline-offset: 3px; }
.button-primary { background: var(--rust); color: var(--white); }
.button-primary:hover { background: var(--rust-dark); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; padding: .45rem 0; border-bottom: 1px solid currentColor; color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; }
.text-link span { color: var(--rust); font-size: 1rem; }
.text-link:hover { color: var(--rust-dark); }
.text-link.light { align-self: flex-start; margin-top: 2.2rem; color: var(--white); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: var(--olive); color: rgba(255,255,255,.68); }
.trust-strip p { min-height: 106px; margin: 0; padding: 1.55rem clamp(1rem, 2.4vw, 2.8rem); border-left: 1px solid rgba(255,255,255,.14); font-size: .78rem; line-height: 1.45; }
.trust-strip p:last-child { border-right: 1px solid rgba(255,255,255,.14); }
.trust-strip span { display: block; margin-bottom: .35rem; color: var(--white); font: 600 1.1rem/1.2 var(--display); text-transform: uppercase; }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.services { max-width: 1500px; margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: 1.25fr .6fr; gap: 5rem; align-items: end; }
.section-heading h2, .process h2, .quote-aside h2, .projects h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 600; line-height: .95; letter-spacing: -.035em; }
.section-heading > p { max-width: 420px; margin-bottom: .3rem; color: var(--muted); }
.service-grid { margin-top: 5rem; border-top: 2px solid var(--ink); }
.service-grid article { display: grid; grid-template-columns: 70px .5fr 1fr; gap: 1.2rem; align-items: baseline; padding: 1.55rem .2rem; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.service-grid article:hover { padding-right: 1rem; padding-left: 1rem; background: rgba(255,255,255,.42); }
.service-grid article > span { color: var(--rust-dark); font: 600 .77rem/1 var(--display); }
.service-grid h3 { margin: 0; font-size: clamp(1.7rem, 2.5vw, 2.5rem); font-weight: 600; line-height: 1; }
.service-grid p { max-width: 560px; margin: 0; color: var(--muted); font-size: .9rem; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: clamp(1rem, 2.5vw, 2.5rem); gap: clamp(1rem, 2.5vw, 2.5rem); background: var(--ink); color: var(--white); }
.projects-intro { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); min-height: 360px; align-content: center; column-gap: clamp(3rem, 9vw, 9rem); padding: clamp(2rem, 5vw, 5.5rem); }
.projects-intro .eyebrow { grid-column: 1 / -1; }
.projects-intro > p:nth-of-type(2) { max-width: 450px; margin: 2rem 0 0; color: rgba(255,255,255,.58); }
.projects .eyebrow { color: #f1906d; }
.project { position: relative; min-height: 0; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: #2e302d; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.project:hover img { transform: scale(1.02); }
.project::after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.project figcaption { position: absolute; z-index: 1; right: 1.4rem; bottom: 1.35rem; left: 1.4rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.project figcaption strong { font: 600 clamp(1.4rem, 2.4vw, 2.5rem)/1 var(--display); }
.project figcaption span { max-width: 150px; color: rgba(255,255,255,.65); font-size: .68rem; text-align: right; }

.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 9rem); max-width: 1500px; margin: 0 auto; }
.process-copy { position: relative; }
.process-copy::after { content: ""; display: block; width: 90px; height: 8px; margin-top: 3rem; background: repeating-linear-gradient(90deg, var(--rust) 0 6px, transparent 6px 10px); }
.process-copy > p:last-of-type { max-width: 480px; margin-top: 2rem; color: var(--muted); }
.steps { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.steps li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; padding: 2.1rem 0; border-bottom: 1px solid var(--line); }
.steps li > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 1px solid var(--rust); color: var(--rust-dark); font: 600 .75rem/1 var(--display); }
.steps h3 { margin-bottom: .35rem; font-size: 1.45rem; font-weight: 600; }
.steps p { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: .88rem; }

.quote-section { display: grid; grid-template-columns: .83fr 1.17fr; }
.quote-aside { position: relative; padding: clamp(4rem, 7vw, 7rem); overflow: hidden; background: var(--olive); color: var(--white); }
.quote-aside::after { content: "MEDIR  •  CORTAR  •  SOLDAR  •  INSTALAR"; position: absolute; right: -1rem; bottom: 1rem; color: rgba(255,255,255,.08); font: 600 clamp(2rem, 4vw, 4.5rem)/1 var(--display); white-space: nowrap; }
.quote-aside .eyebrow { color: #f1906d; }
.quote-aside > p:nth-of-type(2) { max-width: 520px; margin-top: 2rem; color: rgba(255,255,255,.6); }
.address-card { position: relative; z-index: 1; display: flex; gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.65); text-decoration: none; }
.address-card:hover strong { color: #f1906d; }
.address-card svg { width: 1.6rem; height: 1.6rem; fill: #f1906d; flex: 0 0 auto; }
.address-card small, .address-card strong { display: block; }
.address-card small { margin-bottom: .25rem; color: rgba(255,255,255,.42); font-size: .67rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.address-card strong { color: var(--white); transition: color .2s ease; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; align-content: center; padding: clamp(3rem, 7vw, 7rem); background: #ddd7cb; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.field label span { color: #74756f; font-weight: 400; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem 0; border: 0; border-bottom: 1px solid #888982; border-radius: 0; background: transparent; color: var(--ink); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #777871; }
.upload { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px dashed #7f817a; cursor: pointer; text-transform: none !important; transition: border-color .2s ease, background .2s ease; }
.upload:hover { border-color: var(--rust-dark); background: rgba(255,255,255,.3); }
.upload svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: var(--rust-dark); stroke-width: 1.8; }
.upload strong, .upload small { display: block; }
.upload small { margin-top: .15rem; color: #6f716a; font-size: .7rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.file-preview { margin-top: .5rem; padding: .65rem .8rem; background: rgba(255,255,255,.5); font-size: .78rem; }
.file-preview img { display: inline-block; width: 64px; height: 48px; margin-right: .75rem; object-fit: cover; vertical-align: middle; }
.consent { display: flex; align-items: flex-start; gap: .7rem; color: #555750; font-size: .76rem; }
.consent input { width: 1rem; height: 1rem; margin-top: .25rem; accent-color: var(--rust-dark); }
.consent a, footer a { color: inherit; text-underline-offset: .18em; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.submit-button { width: 100%; border: 0; }
.form-status { min-height: 1.5rem; margin: -.4rem 0 0; font-size: .8rem; font-weight: 600; }
.form-status.success { color: #276337; }
.form-status.error { color: #9b251a; }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: center; padding: 3rem clamp(1.25rem, 6vw, 7rem); background: #11120f; color: rgba(255,255,255,.58); }
.brand-footer { color: var(--white); }
.brand-footer .brand-mark { border-color: var(--white); color: var(--white); }
footer p, footer address { margin: 0; font-size: .76rem; font-style: normal; }
footer address, .copyright { text-align: right; }

.privacy-page { min-height: 100vh; padding: clamp(7rem, 12vw, 11rem) clamp(1.25rem, 8vw, 10rem); background: var(--paper-light); }
.privacy-content { max-width: 820px; }
.privacy-content h1 { max-width: 760px; font-size: clamp(3.4rem, 8vw, 7rem); }
.privacy-content h2 { margin-top: 3rem; font-size: 1.7rem; }
.privacy-content p, .privacy-content li { color: #555750; }
.privacy-content a { color: var(--rust-dark); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-photo { min-height: 620px; }
  .hero-content { padding-right: 2.5rem; }
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { min-height: 76px; }
  .menu-button { position: relative; z-index: 2; display: block; }
  nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 3rem; background: rgba(247,244,237,.99); transform: translateX(100%); transition: transform .25s ease; }
  nav.open { transform: translateX(0); }
  nav a { font: 600 2rem/1 var(--display); }
  .hero { grid-template-columns: 1fr; }
  .hero-content { min-height: 570px; padding-right: 1.25rem; }
  .hero-photo { min-height: 62vw; }
  .trust-strip { padding: 0; }
  .section-heading, .process, .quote-section { grid-template-columns: 1fr; }
  .section-heading { gap: 1.5rem; }
  .service-grid article { grid-template-columns: 55px .7fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects-intro { grid-column: 1 / -1; grid-template-columns: 1fr; min-height: 440px; }
  .project:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .quote-form { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (max-width: 600px) {
  .hero-content { min-height: 610px; padding-top: 4.5rem; padding-bottom: 3rem; }
  h1 { font-size: clamp(3.5rem, 16vw, 5.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-note { margin-top: 2.5rem; }
  .hero-photo { min-height: 70vw; }
  .hero-photo figcaption { right: .7rem; bottom: .7rem; left: .7rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip p { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .trust-strip p:last-child { border-right: 0; border-bottom: 0; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-heading h2, .process h2, .quote-aside h2, .projects h2 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .service-grid { margin-top: 3rem; }
  .service-grid article { grid-template-columns: 40px 1fr; gap: .65rem; }
  .service-grid p { grid-column: 2; }
  .projects { padding: .75rem; gap: .75rem; }
  .projects-intro { min-height: 490px; padding: 2rem 1.25rem; }
  .projects { grid-template-columns: 1fr; }
  .project, .project:last-child { grid-column: 1; aspect-ratio: 3 / 4; }
  .project figcaption { align-items: flex-start; flex-direction: column; }
  .project figcaption span { text-align: left; }
  .steps li { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .quote-form { grid-template-columns: 1fr; padding-right: 1.25rem; padding-left: 1.25rem; }
  .field { grid-column: 1; }
  footer { grid-template-columns: 1fr; }
  footer address, .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
