:root {
  --ink: #04182c;
  --ink-soft: #0a2a47;
  --paper: #f2f7fc;
  --paper-deep: #e3edf8;
  --white: #fff;
  --blue: #0f62a8;
  --blue-light: #58a9e6;
  --accent: #3fa2ef;
  --accent-soft: #7cc4f5;
  --muted: #5a7285;
  --line: rgba(4, 24, 44, 0.14);
  --container: 1180px;
  --display: "Barlow Condensed", sans-serif;
  --body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 120px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; background: var(--accent); color: var(--ink); padding: 10px 14px; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--white); transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(4, 24, 44, .96); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-roof { width: 38px; height: 27px; display: block; position: relative; border: 4px solid var(--blue-light); border-top: 0; transform: skewY(-1deg); }
.brand-roof::before { content: ""; position: absolute; width: 27px; height: 27px; border-left: 4px solid var(--accent); border-top: 4px solid var(--accent); transform: rotate(45deg); left: 2px; top: -16px; }
.brand-roof::after { content: ""; position: absolute; width: 8px; height: 13px; background: var(--blue-light); bottom: 0; left: 12px; }
.brand-copy { font: 800 28px/1 var(--display); letter-spacing: .5px; }
.brand-copy strong { color: var(--blue-light); font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.main-nav > a:not(.nav-cta) { position: relative; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--accent); transition: right .25s; }
.main-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { background: var(--accent); color: var(--ink); padding: 13px 19px; transition: transform .2s, background .2s; }
.nav-cta:hover { transform: translateY(-2px); background: var(--accent-soft); }
.menu-toggle { display: none; width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.25); background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

.hero { min-height: 820px; height: 100svh; max-height: 980px; color: var(--white); position: relative; display: grid; align-items: center; overflow: hidden; background: var(--ink); }
.hero-image { position: absolute; inset: 0; background: url('/assets/images/telhado-metalico.jpeg') center 48% / cover no-repeat; transform: scale(1.035); animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,20,36,.96) 0%, rgba(4,20,36,.87) 43%, rgba(4,20,36,.26) 77%, rgba(4,20,36,.55) 100%), linear-gradient(0deg, rgba(4,20,36,.78), transparent 45%); }
.hero-lines { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(90deg, transparent calc(100% - 1px), #fff 1px); background-size: calc(100% / 6) 100%; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 790px) 1fr; align-items: center; gap: 70px; padding-top: 75px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 25px; }
.eyebrow span { width: 34px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--blue); }
.hero h1, .section-heading h2, .work h2, .about h2, .contact-section h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: -.035em; margin: 0; }
.hero h1 { max-width: 790px; font-size: clamp(38px, 4.5vw, 64px); line-height: .95; font-weight: 900; }
h1 em, h2 em { color: var(--blue-light); font-style: normal; }
.hero-lead { color: #cddff0; font-size: 17px; max-width: 630px; margin: 29px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button { min-height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 24px; border: 1px solid transparent; font-size: 13px; font-weight: 800; letter-spacing: .025em; transition: transform .2s, background .2s, border-color .2s; }
.button svg { width: 19px; fill: currentColor; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: var(--ink); box-shadow: 0 14px 34px rgba(63, 162, 239, .28); }
.button-primary:hover { background: var(--accent-soft); }
.button-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.09); border-color: #fff; }
.hero-stamp { justify-self: end; width: 210px; height: 210px; border-radius: 50%; position: relative; padding: 5px; background: rgba(4,24,44,.62); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.hero-stamp::before { content: ""; position: absolute; inset: -11px; border: 1px dashed rgba(255,255,255,.3); border-radius: inherit; animation: spin 28s linear infinite; }
.hero-stamp img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-bottom { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; }
.hero-proof { display: flex; gap: 0; color: #b2c6d8; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-proof span { padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(255,255,255,.24); }
.hero-proof span:last-child { border: 0; }
.scroll-cue { display: flex; align-items: center; gap: 10px; color: #b2c6d8; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.scroll-cue svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: bob 1.8s ease-in-out infinite; }

.services { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, .8fr); gap: 80px; align-items: end; margin-bottom: 75px; }
.section-heading h2, .about h2 { font-size: clamp(50px, 6vw, 76px); line-height: .92; }
.section-heading h2 em, .about h2 em { color: var(--blue); }
.section-heading > p { color: var(--muted); margin: 0 0 4px; font-size: 14px; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 50px 78px minmax(0, 1fr) 135px; align-items: center; gap: 30px; min-height: 158px; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s; }
.service-item:hover { background: var(--paper-deep); padding-inline: 20px; }
.service-index { color: #7d93a8; font: 700 12px/1 var(--display); letter-spacing: .12em; }
.service-icon { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid var(--line); background: #e5eff8; }
.service-icon svg { width: 39px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.service-item h3 { font: 800 38px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.service-item p { color: var(--muted); font-size: 13px; margin: 0; max-width: 590px; }
.service-item > a { justify-self: end; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.service-item > a span { color: var(--blue); font-size: 18px; margin-left: 6px; }

.work { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.work::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(100% - 1px), rgba(255,255,255,.04) 1px); background-size: calc(100% / 6) 100%; }
.work-intro { max-width: 760px; margin-bottom: 60px; position: relative; }
.work h2 { font-size: clamp(58px, 7vw, 92px); line-height: .88; }
.work-intro > p:last-child { color: #95afc6; max-width: 480px; margin: 25px 0 0; font-size: 14px; }
.project-grid { display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: 500px 420px; gap: 18px; position: relative; }
.project { min-height: 0; position: relative; overflow: hidden; background: var(--ink-soft); }
.project img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,20,36,.91), transparent 57%); pointer-events: none; }
.project:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.02); }
.project-wide img { object-position: center 35%; }
.project-tall img { object-position: center 45%; }
.project-label { position: absolute; z-index: 2; inset: auto 30px 25px; display: flex; align-items: flex-end; gap: 15px; }
.project-label > span { color: var(--accent); font: 800 12px/1 var(--display); padding-bottom: 5px; }
.project-label h3 { font: 800 38px/1 var(--display); text-transform: uppercase; margin: 0; }
.project-label p { color: #b0c4d6; font-size: 11px; margin: 5px 0 0; text-transform: uppercase; letter-spacing: .1em; }
.work-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 35px; color: #95afc6; font-size: 13px; }
.work-footer p { margin: 0; }
.work-footer a { color: #fff; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.work-footer a span { color: var(--accent); font-size: 20px; margin-left: 9px; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(55px, 8vw, 110px); align-items: center; }
.about-collage { position: relative; height: 675px; }
.about-main { width: 75%; height: 88%; object-fit: cover; object-position: center; margin-left: auto; filter: saturate(.75); }
.about-small { position: absolute; left: 0; bottom: 0; width: 42%; height: 44%; object-fit: cover; border: 10px solid var(--paper); filter: saturate(.72); }
.about-badge { position: absolute; top: 48px; left: 0; width: 154px; height: 154px; padding: 22px; background: var(--blue); display: flex; flex-direction: column; justify-content: center; color: var(--white); }
.about-badge strong { font: 900 50px/.8 var(--display); }
.about-badge span { font: 800 10px/1.2 var(--body); text-transform: uppercase; letter-spacing: .11em; margin-top: 11px; }
.about-copy { padding-bottom: 10px; }
.about-lead { color: var(--muted); font-size: 15px; margin: 30px 0 35px; max-width: 600px; }
.about-points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.about-points > div { display: grid; grid-template-columns: 165px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-points strong { font: 800 18px/1.05 var(--display); text-transform: uppercase; }
.about-points p { color: var(--muted); font-size: 12px; margin: 0; }
.text-link { display: inline-block; margin-top: 32px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.text-link span { color: var(--blue); font-size: 20px; margin-left: 9px; }

.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); height: 300px; background: var(--ink); }
.gallery-strip figure { margin: 0; min-width: 0; overflow: hidden; position: relative; }
.gallery-strip figure::after { content: ""; position: absolute; inset: 0; background: rgba(4,24,44,.12); transition: background .3s; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) saturate(.8); transition: transform .5s, filter .4s; }
.gallery-strip figure:hover img { transform: scale(1.05); filter: grayscale(0) saturate(1); }
.gallery-strip figure:hover::after { background: transparent; }

.contact-section { position: relative; overflow: hidden; background: #072744; color: #fff; padding: 115px 0; }
.contact-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 80%, rgba(63,162,239,.3), transparent 32%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; align-items: center; }
.contact-section h2 { font-size: clamp(58px, 7vw, 90px); line-height: .88; max-width: 690px; }
.contact-copy > p:not(.eyebrow) { max-width: 570px; color: #a9c0d3; font-size: 14px; margin: 28px 0 34px; }
.contact-card { border-top: 1px solid rgba(255,255,255,.18); }
.contact-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-row > span { color: #7d97ad; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-row a, .contact-row p, .contact-row address { font: 700 17px/1.45 var(--display); font-style: normal; margin: 0; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--accent); }
.google-link { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.google-link span { font-size: 20px; }
.contact-ring { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.ring-one { width: 520px; height: 520px; left: -250px; top: -180px; }
.ring-two { width: 700px; height: 700px; right: -390px; bottom: -390px; }

.site-footer { background: #031524; color: #9bb0c2; padding: 70px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 50px; padding-bottom: 55px; }
.footer-brand { color: #fff; }
.footer-info p { font-size: 12px; margin: 2px 0 0; }
.footer-info address { font-style: normal; font-size: 12px; line-height: 1.55; margin-top: 12px; }
.footer-grid nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 25px; justify-self: end; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 14px 35px rgba(0,0,0,.3); transition: transform .2s; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { width: 27px; fill: currentColor; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.service-item.reveal:nth-child(2), .project.reveal:nth-child(2) { transition-delay: .08s; }
.service-item.reveal:nth-child(3), .project.reveal:nth-child(3) { transition-delay: .16s; }
.service-item.reveal:nth-child(4), .project.reveal:nth-child(4) { transition-delay: .24s; }

@keyframes heroIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.035); } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .main-nav { position: fixed; inset: 0; background: rgba(4,24,44,.99); display: flex; flex-direction: column; justify-content: center; gap: 28px; font: 800 30px/1 var(--display); text-transform: uppercase; transform: translateX(100%); transition: transform .35s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-cta { font: 800 13px/1 var(--body); padding: 17px 22px; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stamp { display: none; }
  .hero-proof span:last-child { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .section-heading > p { max-width: 600px; }
  .service-item { grid-template-columns: 42px 70px 1fr; }
  .service-item > a { display: none; }
  .project-grid { grid-template-rows: 440px 360px; }
  .about-grid { grid-template-columns: .8fr 1fr; gap: 50px; }
  .about-collage { height: 590px; }
  .contact-grid { gap: 55px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 34px), var(--container)); }
  .header-inner { min-height: 74px; }
  .brand-copy { font-size: 23px; }
  .brand-roof { transform: scale(.82); margin-right: -5px; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-image { background-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,20,36,.95), rgba(4,20,36,.58)), linear-gradient(0deg, rgba(4,20,36,.9), transparent 60%); }
  .hero-grid { padding-top: 30px; }
  .hero h1 { font-size: clamp(30px, 7.6vw, 42px); }
  .hero-lead { font-size: 14px; margin: 24px 0 28px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 320px; }
  .button { width: 100%; }
  .hero-bottom { bottom: 18px; }
  .hero-proof { display: none; }
  .scroll-cue { margin-left: auto; }
  .section { padding: 75px 0; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .about h2 { font-size: 50px; }
  .service-item { grid-template-columns: 42px 58px 1fr; gap: 14px; min-height: 145px; }
  .service-icon { width: 52px; height: 52px; }
  .service-icon svg { width: 32px; }
  .service-item h3 { font-size: 30px; }
  .service-item p { font-size: 11px; line-height: 1.55; }
  .service-item:hover { padding-inline: 8px; }
  .work h2, .contact-section h2 { font-size: 54px; }
  .project-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, 420px); }
  .project-label { inset: auto 20px 20px; }
  .project-label h3 { font-size: 33px; }
  .work-footer { align-items: flex-start; flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; }
  .about-collage { height: 520px; max-width: 470px; }
  .about-main { width: 78%; }
  .about-badge { width: 130px; height: 130px; top: 35px; }
  .about-badge strong { font-size: 42px; }
  .about-points > div { grid-template-columns: 130px 1fr; gap: 18px; }
  .gallery-strip { height: 420px; grid-template-columns: 1fr 1fr; }
  .contact-section { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { margin-top: 5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid nav { justify-self: start; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 430px) {
  .service-item { grid-template-columns: 30px 1fr; padding: 22px 0; }
  .service-icon { display: none; }
  .about-points > div { grid-template-columns: 1fr; gap: 8px; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-row a, .contact-row p, .contact-row address { font-size: 15px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

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