:root {
  --black: #090909;
  --graphite: #171717;
  --surface: #222222;
  --copper: #c65a24;
  --copper-light: #e67a3c;
  --concrete: #e7e2d8;
  --steel: #a6a6a6;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--black); color: var(--white); font-family: Arial, Helvetica, sans-serif; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { background: var(--copper); color: var(--white); }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--white); color: var(--black); padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 80; width: 0; height: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-light)); box-shadow: 0 0 18px rgba(230,122,60,.65); pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(24px, 6vw, 92px); background: rgba(9,9,9,.88); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(18px); transition: height .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { height: 76px; background: rgba(9,9,9,.96); box-shadow: 0 14px 38px rgba(0,0,0,.28); }
.brand { position: relative; z-index: 32; width: max-content; }
.brand img { display: block; width: 124px; height: 64px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; gap: 34px; color: var(--concrete); font-size: 14px; }
.desktop-nav a, .site-footer nav a { position: relative; transition: color .2s ease; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--copper-light); }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--copper-light); transition: right .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { right: 0; }
.desktop-nav a.is-active { color: var(--white); }
.header-cta { justify-self: end; border: 1px solid var(--copper); padding: 13px 18px; font-size: 13px; font-weight: 700; transition: background .2s ease; }
.header-cta:hover { background: var(--copper); }
.menu-button, .mobile-nav { display: none; }

.eyebrow { color: var(--copper-light); font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dark { color: #9c3f18; }
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.06fr .94fr; padding-top: 88px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(32px, 7vw, 110px); }
.hero h1 { max-width: 760px; margin: 24px 0 22px; font-size: clamp(48px, 5.2vw, 80px); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--concrete); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; font-size: 14px; font-weight: 700; transition: .2s ease; }
.button-primary { background: var(--copper); }
.button-primary:hover { background: var(--copper-light); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(198,90,36,.26); }
.button span, .service-card a span, .form-submit span, .floating-whatsapp span { display: inline-block; transition: transform .2s ease; }
.button:hover span, .service-card a:hover span, .form-submit:hover span, .floating-whatsapp:hover span { transform: translate(3px,-3px); }
.button-ghost { border: 1px solid rgba(255,255,255,.22); }
.button-ghost:hover { border-color: var(--white); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 46px; color: var(--steel); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hero-proof span + span::before { content: '•'; margin-right: 24px; color: var(--copper); }
.hero-media { position: relative; min-height: 660px; overflow: hidden; background: linear-gradient(90deg, rgba(9,9,9,.52), transparent 30%), url('assets/painel-eletrico.png') center/cover no-repeat; background-position: center calc(50% + var(--hero-shift, 0px)); border-left: 18px solid var(--copper); will-change: background-position; }
.hero-media::before { content: ''; position: absolute; inset: -40% 0 auto; height: 32%; background: linear-gradient(180deg, transparent, rgba(230,122,60,.15), transparent); transform: skewY(-8deg); animation: energy-scan 8s ease-in-out infinite; pointer-events: none; }
.hero-media-label { position: absolute; right: 38px; bottom: 38px; display: flex; flex-direction: column; align-items: flex-end; text-transform: uppercase; }
.hero-media-label span { color: var(--steel); font-size: 13px; letter-spacing: .18em; }
.hero-media-label strong { margin-top: 6px; font-size: 22px; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--concrete); color: var(--black); }
.service-strip a { display: flex; align-items: center; gap: 20px; padding: 28px clamp(20px,4vw,64px); border-right: 1px solid rgba(10,10,10,.18); font-size: 15px; font-weight: 700; transition: background .2s ease; }
.service-strip a:hover { background: #d9d2c5; }
.service-strip span { color: var(--copper); font-size: 13px; }

.section { padding: clamp(90px,10vw,150px) clamp(24px,7vw,110px); }
.section-heading { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 30px 70px; align-items: end; margin-bottom: 70px; }
.section-heading .eyebrow { grid-column: 1/-1; }
.section-heading h2, .standards-copy h2, .deliverables-section h2, .contact-copy h2 { margin: 0; max-width: 900px; font-size: clamp(40px,4.4vw,68px); line-height: 1.04; letter-spacing: -.035em; }
.section-heading > p { margin: 0; color: var(--steel); font-size: 18px; line-height: 1.7; }
.compact-heading { grid-template-columns: 1fr; }
.compact-heading h2 { max-width: 980px; }

.services-section { background: var(--black); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #393939; border-left: 1px solid #393939; }
.service-card { position: relative; min-height: 310px; display: flex; flex-direction: column; overflow: hidden; padding: 36px; border-right: 1px solid #393939; border-bottom: 1px solid #393939; transition: background .25s ease, transform .25s ease; }
.service-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--copper); transform: scaleY(0); transform-origin: bottom; transition: transform .3s ease; }
.service-card:hover { background: var(--graphite); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleY(1); }
.service-number { color: var(--copper-light); font-size: 14px; font-weight: 700; }
.service-card h3 { margin: 42px 0 16px; font-size: 26px; line-height: 1.15; }
.service-card p { margin: 0; color: var(--steel); line-height: 1.6; }
.service-card a { margin-top: auto; padding-top: 28px; color: var(--concrete); font-size: 13px; font-weight: 700; }
.service-card-bim { grid-column: 1/-1; display: grid; grid-template-columns: 80px minmax(0,1fr) auto; align-items: center; gap: 32px; min-height: 240px; background: linear-gradient(110deg, var(--graphite), #28160f); border-left: 4px solid var(--copper); }
.service-card-bim > .service-number { align-self: center; font-size: 34px; }
.service-card-bim h3 { margin: 12px 0; font-size: clamp(30px,3.5vw,48px); }
.service-card-bim p { max-width: 720px; }
.service-card-bim > a { align-self: center; margin-top: 0; padding: 16px 18px; border: 1px solid rgba(230,122,60,.55); white-space: nowrap; }
.service-card-bim > a:hover { background: var(--copper); color: var(--white); }
.service-tag { color: var(--copper-light); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.standards-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; background: var(--concrete); color: var(--black); }
.standards-media { background: linear-gradient(0deg,rgba(9,9,9,.18),rgba(9,9,9,.18)), url('assets/projeto-eletrico.png') center/cover no-repeat; }
.standards-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px,8vw,120px); }
.standards-copy h2 { margin-top: 22px; }
.standards-copy > p { max-width: 660px; margin: 28px 0 32px; color: #333; font-size: 18px; line-height: 1.65; }
.standards-copy ul { margin: 0; padding: 0; list-style: none; }
.standards-copy li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid rgba(10,10,10,.16); font-size: 18px; font-weight: 700; }
.standards-copy li::before { content: ''; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; background: var(--copper); border-radius: 2px; }
.standards-copy small { margin-top: 30px; color: #555; line-height: 1.5; }

.benefits-section { background: var(--graphite); }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #444; }
.benefit { display: grid; grid-template-columns: 84px 1fr; gap: 24px; min-height: 210px; padding: 42px 36px 42px 0; border-bottom: 1px solid #444; }
.benefit:nth-child(odd) { border-right: 1px solid #444; margin-right: 42px; }
.benefit:nth-child(even) { padding-left: 42px; }
.benefit > span { color: var(--copper-light); font-size: 42px; font-weight: 700; }
.benefit h3 { margin: 2px 0 14px; font-size: 27px; }
.benefit p { margin: 0; color: var(--concrete); font-size: 17px; line-height: 1.55; }

.deliverables-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; padding: clamp(90px,10vw,150px) clamp(24px,7vw,110px); background: var(--concrete); color: var(--black); }
.deliverables-section h2 { margin-top: 22px; }
.deliverables-list { display: grid; grid-template-columns: 1fr 1fr; align-content: center; }
.deliverables-list span { position: relative; padding: 24px 20px 24px 30px; border-bottom: 1px solid rgba(10,10,10,.18); font-weight: 700; }
.deliverables-list span::before { content: ''; position: absolute; left: 0; top: 28px; width: 8px; height: 22px; background: var(--copper); }
.deliverables-list span:last-child { grid-column: 1/-1; }

.team-section { background: var(--black); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.profile { display: grid; grid-template-columns: minmax(220px,.8fr) 1.2fr; min-height: 520px; overflow: hidden; background: var(--graphite); border-left: 7px solid var(--copper); transition: transform .3s ease, box-shadow .3s ease; }
.profile:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.profile img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.05); transition: transform .65s ease, filter .4s ease; }
.profile:hover img { transform: scale(1.025); filter: saturate(.95) contrast(1.05); }
.profile-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px; }
.profile-copy > span { color: var(--copper-light); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-copy h3 { margin: 16px 0 24px; font-size: clamp(30px,3vw,44px); line-height: 1.04; }
.profile-copy strong { font-size: 18px; }
.profile-copy p { margin: 14px 0 0; color: var(--concrete); font-weight: 700; }
.profile-copy small { margin-top: 32px; color: var(--steel); font-size: 15px; line-height: 1.6; }

.faq-section { background: var(--graphite); }
.faq-list { max-width: 1060px; margin-left: auto; }
.faq-list details { border-top: 1px solid #4a4a4a; }
.faq-list details:last-child { border-bottom: 1px solid #4a4a4a; }
.faq-list summary { position: relative; cursor: pointer; list-style: none; padding: 30px 60px 30px 0; font-size: 21px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 8px; top: 22px; color: var(--copper-light); font-size: 36px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { max-width: 820px; margin: -6px 0 30px; color: var(--concrete); line-height: 1.65; }
.faq-list details[open] p { animation: faq-reveal .28s ease both; }

.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px,8vw,130px); padding: clamp(90px,10vw,150px) clamp(24px,7vw,110px); background: var(--copper); color: var(--black); }
.contact-section .eyebrow, .contact-section .eyebrow-dark, .contact-copy, .contact-copy h2, .contact-copy p, .contact-links a, .contact-links span { color: var(--black); }
.contact-copy h2 { margin-top: 22px; }
.contact-copy > p { max-width: 650px; margin: 28px 0 42px; font-size: 18px; line-height: 1.6; }
.contact-links { display: grid; gap: 18px; }
.contact-links a { width: max-content; max-width: 100%; font-size: 18px; font-weight: 700; word-break: break-word; transition: transform .2s ease, opacity .2s ease; }
.contact-links a:hover { transform: translateX(6px); opacity: .72; }
.contact-links span { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.budget-form { display: grid; gap: 20px; padding: clamp(30px,4vw,58px); background: var(--black); color: var(--white); }
.budget-form label { display: grid; gap: 9px; color: var(--concrete); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.budget-form input, .budget-form select, .budget-form textarea { width: 100%; border: 1px solid #444; border-radius: 0; background: var(--graphite); color: var(--white); padding: 15px 16px; font-size: 16px; text-transform: none; outline: none; }
.budget-form input:focus, .budget-form select:focus, .budget-form textarea:focus { border-color: var(--copper-light); }
.budget-form textarea { resize: vertical; }
.form-submit { min-height: 56px; border: 0; background: var(--copper); color: var(--white); font-weight: 700; cursor: pointer; transition: .2s ease; }
.form-submit:hover { background: var(--copper-light); }
.budget-form > small { color: var(--steel); line-height: 1.45; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 50px; padding: 60px clamp(24px,7vw,110px); background: var(--black); border-top: 1px solid #333; }
.footer-brand img { width: 145px; height: 92px; object-fit: contain; object-position: left center; }
.footer-brand p { margin: 12px 0 0; color: var(--copper-light); font-weight: 700; }
.site-footer nav { display: flex; gap: 28px; color: var(--steel); font-size: 13px; }
.footer-address { display: grid; justify-items: end; gap: 12px; color: var(--steel); font-size: 13px; }
.footer-address a:hover { color: var(--white); }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 25; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; background: var(--copper); box-shadow: 0 12px 35px rgba(0,0,0,.3); font-size: 13px; font-weight: 700; transition: .2s ease; }
.floating-whatsapp:hover { background: var(--copper-light); transform: translateY(-2px); }

.js-ready .reveal-item { opacity: 0; transform: translateY(34px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0ms); }
.js-ready .reveal-item.reveal-scale { transform: translateY(24px) scale(.975); }
.js-ready .reveal-item.is-visible { opacity: 1; transform: none; }

@keyframes energy-scan {
  0%, 18% { transform: translateY(-20%) skewY(-8deg); opacity: 0; }
  35%, 65% { opacity: 1; }
  82%, 100% { transform: translateY(520%) skewY(-8deg); opacity: 0; }
}

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card-bim { grid-template-columns: 58px 1fr; }
  .service-card-bim > a { grid-column: 1/-1; justify-self: start; }
  .standards-section, .deliverables-section, .contact-section { grid-template-columns: 1fr; }
  .standards-media { min-height: 520px; }
  .team-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { justify-self: end; }
  .footer-address { grid-column: 1/-1; justify-items: start; padding-top: 28px; border-top: 1px solid #333; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 76px; padding: 0 22px; }
  body.menu-open .site-header { height: 100dvh; min-height: 100vh; background: var(--black); backdrop-filter: none; box-shadow: none; }
  .desktop-nav, .header-cta { display: none; }
  .brand img { width: 108px; height: 58px; }
  .menu-button { position: relative; z-index: 34; display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; border: 1px solid #4a4a4a; background: var(--graphite); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
  .menu-button:hover, .menu-button.is-open { border-color: var(--copper); background: #202020; }
  .menu-button span { display: block; width: 21px; height: 2px; background: var(--white); transition: .2s ease; }
  .menu-button.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-button.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-nav { position: absolute; inset: 76px 0 0; z-index: 33; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; overflow-y: auto; overscroll-behavior: contain; padding: 30px 22px max(32px, env(safe-area-inset-bottom)); background: var(--black); border-top: 1px solid #303030; opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility .22s ease; }
  .mobile-nav::before { content: 'Navegação'; display: block; margin-bottom: 12px; color: var(--steel); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .mobile-nav a { display: flex; min-height: 58px; align-items: center; justify-content: space-between; border-bottom: 1px solid #303030; color: var(--white); font-size: clamp(20px, 5.5vw, 26px); font-weight: 700; line-height: 1.15; }
  .mobile-nav a::after { content: '↗'; color: var(--copper-light); font-size: 17px; font-weight: 400; }
  .mobile-nav a.is-active { color: var(--copper-light); }
  .mobile-nav .mobile-whatsapp { min-height: 54px; justify-content: center; margin-top: 26px; padding: 0 18px; border: 0; background: var(--copper); color: var(--white); font-size: 15px; text-align: center; }
  .mobile-nav .mobile-whatsapp::after { margin-left: 10px; color: var(--white); }
  .hero { grid-template-columns: 1fr; padding-top: 76px; }
  .hero-copy { min-height: 720px; }
  .hero-media { min-height: 560px; border-left: 0; border-top: 12px solid var(--copper); }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip a { border-right: 0; border-bottom: 1px solid rgba(10,10,10,.18); }
  .section-heading { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit:nth-child(odd) { margin-right: 0; border-right: 0; }
  .benefit:nth-child(even) { padding-left: 0; }
  .deliverables-list { grid-template-columns: 1fr; }
  .profile { grid-template-columns: .85fr 1.15fr; }
}

@media (max-width: 640px) {
  .hero-copy { min-height: 680px; padding: 64px 22px 46px; }
  .hero h1 { font-size: clamp(42px,13vw,58px); }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-proof { flex-direction: column; gap: 12px; }
  .hero-proof span + span::before { display: none; }
  .hero-media { min-height: 480px; }
  .section { padding: 82px 22px; }
  .section-heading { margin-bottom: 44px; }
  .section-heading h2, .standards-copy h2, .deliverables-section h2, .contact-copy h2 { font-size: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; padding: 30px; }
  .service-card-bim { grid-template-columns: 1fr; gap: 16px; min-height: auto; }
  .service-card-bim > .service-number { justify-self: start; font-size: 20px; }
  .service-card-bim > a { grid-column: auto; justify-self: stretch; text-align: center; white-space: normal; }
  .standards-media { min-height: 400px; }
  .standards-copy { padding: 72px 22px; }
  .benefit { grid-template-columns: 58px 1fr; gap: 14px; padding: 32px 0; }
  .benefit > span { font-size: 30px; }
  .deliverables-section, .contact-section { padding: 82px 22px; gap: 48px; }
  .profile { grid-template-columns: 1fr; }
  .profile img { min-height: 430px; max-height: 520px; object-position: center 20%; }
  .profile-copy { padding: 34px 28px 40px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 34px; padding: 54px 22px 90px; }
  .site-footer nav { justify-self: start; flex-wrap: wrap; }
  .footer-address { grid-column: auto; }
  .floating-whatsapp { right: 14px; bottom: 14px; }
}

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