:root {
  color-scheme: light;
  --ink: #1e2935;
  --body: #50545a;
  --paper: #f5f6f6;
  --white: #fff;
  --line: #cfd2d3;
  --rust: #a94d35;
  --navy: #17212c;
  --page: min(90%, 1440px);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.2rem;
  padding: 0 5.8%;
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 4vw, 4.5rem);
  background: rgba(247, 248, 247, .62);
  border-bottom: 1px solid rgba(30, 41, 53, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header::before {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: clamp(16rem, 32vw, 27rem);
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 62%, rgba(23, 33, 44, 0) 100%);
  content: "";
  pointer-events: none;
}
.site-header.is-scrolled { background: rgba(247, 248, 247, .96); box-shadow: 0 2px 14px rgba(30, 41, 53, .08); }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 10rem; height: auto; }
.primary-nav { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(1.3rem, 3vw, 2.7rem); margin-inline: auto; }
.nav-link { position: relative; padding: .55rem 0; font-size: .84rem; font-weight: 500; color: var(--ink); }
.nav-link:hover, .nav-link.is-active { color: var(--rust); }
.nav-link.is-active::after { position: absolute; content: ""; left: 0; right: 0; bottom: .22rem; height: 2px; background: var(--rust); }
.header-whatsapp { position: relative; z-index: 1; min-height: 2.55rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .55rem 1.25rem; border-radius: 2rem; background: #25d366; color: white; font-size: .84rem; white-space: nowrap; transition: background-color .2s ease, transform .2s ease; }
.header-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }
.header-whatsapp svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { position: relative; z-index: 1; display: none; }
.mobile-menu-whatsapp { display: none; }

.hero { position: relative; min-height: clamp(400px, 39.2vw, 650px); display: flex; align-items: center; overflow: hidden; background: #cdd0d0; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,248,247,.97) 0%, rgba(247,248,247,.91) 25%, rgba(247,248,247,.65) 38%, rgba(247,248,247,.08) 58%, transparent 75%); }
.hero-content { position: relative; z-index: 1; width: min(32rem, 42%); margin-left: 5.8%; padding-top: 3.6rem; }
.eyebrow { margin: 0 0 .65rem; color: #38424e; font-size: .58rem; font-weight: 600; letter-spacing: .24em; line-height: 1.4; }
.hero-eyebrow { margin-bottom: .75rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
.hero h1 { max-width: 29rem; color: var(--ink); font-size: clamp(2.65rem, 4.3vw, 4.5rem); font-weight: 800; line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--ink); }
.hero-description { max-width: 19rem; margin-top: .75rem; color: #454b52; font-size: .83rem; line-height: 1.55; }
.button { min-height: 2.55rem; display: inline-flex; justify-content: center; align-items: center; gap: .8rem; padding: .7rem 1.3rem; border: 0; border-radius: 0; background: var(--rust); color: white; font-size: .75rem; font-weight: 600; transition: background .2s ease, transform .2s ease; cursor: pointer; }
.button:hover { background: #873a28; transform: translateY(-1px); }

.section-container { width: var(--page); margin: 0 auto; }
.services-section { padding: 1.35rem 0 1.5rem; background: var(--paper); }
.services-heading, .portfolio-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.services-heading { margin-bottom: 1rem; }
.services-heading h2, .portfolio-heading h2 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.45rem); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.services-heading .eyebrow, .portfolio-heading .eyebrow, .contact-copy .eyebrow, .approach-copy .eyebrow { margin-bottom: .4rem; }
.service-intro-wrap { width: 47%; display: flex; align-items: center; gap: .7rem; }
.section-intro { max-width: 25rem; color: var(--body); font-size: .9rem; line-height: 1.5; }
.metal-thumb { width: 4.1rem; height: 2.7rem; flex: 0 0 auto; object-fit: cover; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.service-item img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; margin-bottom: .45rem; background: #ddd; }
.service-item h3 { color: var(--ink); font-size: .92rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.service-item p { margin-top: .25rem; color: var(--body); font-size: .72rem; line-height: 1.45; }


.portfolio-section { padding: 1.35rem 0 1.8rem; background: var(--paper); }
.portfolio-heading { align-items: center; margin-bottom: .8rem; }
.portfolio-heading h2 { font-size: clamp(1.55rem, 2.6vw, 2.5rem); }
.text-link { display: inline-flex; gap: .5rem; align-items: center; padding-bottom: .15rem; color: var(--rust); font-size: .78rem; border-bottom: 1px solid currentColor; }
.portfolio-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: .75rem; }
.portfolio-grid figure { overflow: hidden; background: #ddd; }
.portfolio-grid img { display: block; width: 100%; aspect-ratio: 1.8; object-fit: cover; transition: transform .4s ease; }
.portfolio-grid figcaption { margin-top: .4rem; color: var(--body); font-size: .72rem; font-weight: 600; line-height: 1.35; }
.portfolio-grid figure:hover img { transform: scale(1.025); }

.approach-section { display: grid; grid-template-columns: 42.3% 57.7%; min-height: 13.5rem; background: #eeefee; }
.approach-image { min-height: 13.5rem; background: #b8b8b5 url("assets/execucao-concreto.webp") center 48%/cover no-repeat; }
.approach-copy { align-self: center; max-width: 47rem; padding: 1.5rem clamp(2rem, 5vw, 5rem); }
.approach-copy h2 { color: var(--ink); font-size: clamp(1.55rem, 2.8vw, 2.65rem); font-weight: 700; line-height: 1.08; letter-spacing: -.05em; }
.approach-copy h2 span { color: inherit; }
.approach-copy > p:last-child { max-width: 38rem; margin-top: .6rem; color: var(--body); font-size: .76rem; line-height: 1.55; }

.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; width: var(--page); margin: 0 auto; padding: 1.35rem 0 1.5rem; background: var(--paper); }
.contact-copy h2 { color: var(--ink); font-size: clamp(1.55rem, 2.6vw, 2.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.contact-copy > p:not(.eyebrow) { max-width: 24rem; margin-top: .55rem; color: var(--body); font-size: .76rem; line-height: 1.55; }
.contact-form { display: grid; gap: .35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.contact-preference { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 0; margin: .1rem 0; padding: 0; border: 0; }
.contact-preference legend { width: 100%; margin-bottom: .15rem; color: var(--body); font-size: .8rem; }
.contact-preference label { position: relative; cursor: pointer; }
.contact-form .contact-preference input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.contact-preference label span { display: block; padding: .35rem .65rem; border: 1px solid #c7cbce; border-radius: .3rem; color: var(--ink); font-size: .8rem; }
.contact-preference input:checked + span { border-color: var(--rust); color: var(--rust); background: #f5eee9; }
.contact-preference input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.contact-email { margin-top: .7rem !important; font-size: .8rem; }
.contact-email a { color: var(--rust); text-underline-offset: .2em; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 2.4rem; padding: .45rem .65rem; border: 1px solid #c7cbce; border-radius: .25rem; background: transparent; color: var(--ink); font-size: .875rem; outline: none; transition: border-color .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rust); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #81858a; }
.contact-form textarea { min-height: 3.5rem; resize: vertical; }
.form-button { width: 100%; min-height: 2.4rem; padding: .4rem; border-radius: .25rem; font-size: .875rem; }
.form-status { min-height: .8rem; color: var(--rust); font-size: .8rem; line-height: 1.4; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-footer { padding: .9rem 5.8% .45rem; background: var(--navy); color: #f5f6f7; }
.footer-main { min-height: 3.3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand .brand-logo { width: 9.3rem; }
.footer-nav { display: flex; gap: clamp(1rem, 3vw, 2.8rem); font-size: .68rem; color: #eef0f2; }
.footer-nav a:hover { color: #edb9aa; }
.footer-note { color: #d9dde0; font-size: .63rem; line-height: 1.5; }
.footer-bottom { margin-top: .45rem; padding-top: .38rem; border-top: 1px solid #49515a; color: #d0d4d7; font-size: .57rem; }
.floating-whatsapp { position: fixed; z-index: 8; right: 1.25rem; bottom: 1.15rem; display: grid; width: 3rem; height: 3rem; place-items: center; border: 2px solid white; border-radius: 50%; background: #18b953; color: white; box-shadow: 0 5px 16px #0002; transition: transform .2s ease, background .2s ease; }
.floating-whatsapp:hover { transform: translateY(-2px); background: #0e9d45; }
.floating-whatsapp svg { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1500px) {
  :root { scroll-padding-top: 5.5rem; }
  .site-header { height: 5rem; }
  .hero-content { padding-top: 4.5rem; }
  .services-section, .portfolio-section { padding-block: 2rem; }
  .service-item h3 { font-size: 1rem; }
  .service-item p, .approach-copy > p:last-child, .contact-copy > p:last-child { font-size: .84rem; }
  .section-intro { font-size: .94rem; }
  .approach-section, .approach-image { min-height: 18rem; }
  .contact-section { padding-block: 2rem; }
  .footer-main { min-height: 4rem; }
}

@media (max-width: 760px) {
  :root { --page: 90%; }
  .site-header { height: 4.35rem; padding-inline: 5%; gap: 1rem; }
  .brand-logo { width: 9rem; }
  .menu-toggle { width: 2.5rem; height: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .28rem; margin-left: auto; border: 1px solid #ffffffb8; background: #ffffff8c; }
  .menu-toggle span { width: 1rem; height: 1px; background: var(--ink); }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: .7rem 5% 1rem; background: #f5f6f6; box-shadow: 0 12px 18px #00000013; }
  .primary-nav.is-open { display: grid; gap: 0; }
  .mobile-menu-whatsapp { display: block; }
  .nav-link { padding: .75rem 0; }
  .nav-link.is-active::after { bottom: .3rem; right: auto; width: 2rem; }
  .header-whatsapp { display: none; }
  .hero { min-height: 39rem; align-items: end; }
  .hero-image { object-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(247,248,247,.98) 0%, rgba(247,248,247,.88) 36%, rgba(247,248,247,.14) 72%, transparent 100%); }
  .hero-content { width: 90%; margin: 0 auto; padding: 0 0 2.5rem; }
  .hero-eyebrow { font-size: .54rem; }
  .hero h1 { max-width: 22rem; font-size: clamp(2.8rem, 12.4vw, 4rem); }
  .hero-description { max-width: 20rem; font-size: .83rem; }
  .services-section { padding: 2rem 0 1.6rem; }
  .services-heading { display: block; margin-bottom: 1rem; }
  .services-heading h2 { font-size: 2rem; }
  .service-intro-wrap { width: 100%; margin-top: .75rem; }
  .section-intro { font-size: .88rem; }
  .metal-thumb { width: 3.6rem; height: 2.5rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .7rem; }
  .service-item img { aspect-ratio: 1.35; margin-bottom: .45rem; }
  .service-item h3 { font-size: .84rem; }
  .service-item p { font-size: .69rem; }
  .portfolio-section { padding: 1.6rem 0 1.8rem; }
  .portfolio-heading { align-items: end; gap: 1rem; }
  .portfolio-heading h2 { font-size: 1.9rem; }
  .text-link { font-size: .68rem; white-space: nowrap; }
  .portfolio-grid { grid-template-columns: 1fr; gap: .55rem; }
  .portfolio-grid img { aspect-ratio: 1.65; }
  .approach-section { grid-template-columns: 1fr; }
  .approach-image { min-height: 15rem; }
  .approach-copy { padding: 1.7rem 5%; }
  .approach-copy h2 { font-size: 2rem; }
  .approach-copy > p:last-child { font-size: .78rem; }
  .contact-section { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.7rem 0; }
  .contact-copy h2 { font-size: 2rem; }
  .contact-copy > p:last-child { font-size: .77rem; }
  .contact-form { gap: .42rem; }
  .contact-form input, .contact-form textarea { min-height: 2.4rem; font-size: .875rem; }
  .contact-form textarea { min-height: 5rem; }
  .form-button { min-height: 2.4rem; font-size: .875rem; }
  .site-footer { padding: 1.1rem 5% .55rem; }
  .footer-main { align-items: flex-start; flex-wrap: wrap; gap: .9rem 1rem; }
  .footer-nav { order: 3; width: 100%; justify-content: space-between; gap: .6rem; font-size: .62rem; }
  .footer-note { margin-left: auto; text-align: right; font-size: .57rem; }
  .footer-bottom { font-size: .55rem; }
  .floating-whatsapp { width: 3rem; height: 3rem; right: .85rem; bottom: .8rem; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header { padding-inline: 3%; gap: .6rem; }
  .brand-logo { width: 8rem; }
  .primary-nav { gap: .8rem; }
  .nav-link { font-size: .75rem; }
  .header-whatsapp { padding-inline: .8rem; font-size: .75rem; }
}

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