@font-face {
  font-family: "Raleway";
  src: url("/assets/Raleway-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("/assets/Raleway-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #2a406d;
  --blue-2: #354f83;
  --blue-3: #142746;
  --orange: #fa940f;
  --orange-dark: #df7900;
  --ink: #263044;
  --muted: #687083;
  --mist: #f4f6f9;
  --line: #dfe4ec;
  --white: #fff;
  --radius: 26px;
  --shadow: 0 24px 60px rgba(24, 43, 78, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Lato", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 108px 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; z-index: 100; left: 16px; top: 12px; transform: translateY(-150%); padding: 10px 16px; background: var(--orange); color: #17233c; border-radius: 10px; font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 88px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(42,64,109,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: 0 0 auto; }
.brand img { width: 112px; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 28px); }
.main-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; color: #62697a; font: 700 .76rem/1 "Raleway", sans-serif; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange-dark); }
.main-nav .nav-app { padding: 13px 17px; color: var(--white); background: var(--blue); border-radius: 999px; letter-spacing: .03em; }
.main-nav .nav-app:hover { color: var(--white); background: var(--orange-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--blue); padding: 11px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; border-radius: 2px; }

.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero-grid { min-height: 650px; padding-block: 72px 74px; display: grid; grid-template-columns: .75fr 1.25fr; grid-template-areas: "copy top" "bottom proof"; gap: 28px 40px; align-items: center; }
.hero-copy { grid-area: copy; padding-right: 8px; }
.eyebrow { margin: 0 0 10px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .16em; font: 700 .77rem/1.3 "Raleway", sans-serif; }
.eyebrow.light { color: #ffc261; }
.hero h1 { margin: 0 0 24px; font: 700 clamp(2.7rem, 5vw, 4.75rem)/1.02 "Raleway", sans-serif; letter-spacing: -.045em; }
.hero-copy > p:last-child { max-width: 500px; margin: 0; font-size: 1.13rem; line-height: 1.55; color: #f0f3f8; }
.hero-art { width: 100%; height: 250px; object-fit: cover; border-radius: 26px; box-shadow: 0 26px 70px rgba(7,16,34,.22); }
.hero-art-top { grid-area: top; }
.hero-art-bottom { grid-area: bottom; }
.hero-proof { grid-area: proof; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-proof strong { display: flex; align-items: center; margin-bottom: 26px; font: 700 clamp(2rem, 3.5vw, 3.5rem)/1.03 "Raleway", sans-serif; letter-spacing: -.035em; }
.hero-proof strong span { margin-right: 12px; color: var(--white); font-size: 2em; font-weight: 400; line-height: .5; }
.hero-actions { display: flex; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 25px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; cursor: pointer; font: 700 .94rem/1.2 "Raleway", sans-serif; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, select:focus-visible, .menu-toggle:focus-visible, a:focus-visible { outline: 3px solid rgba(250,148,15,.45); outline-offset: 3px; }
.button-primary { background: var(--orange); color: #17233c; box-shadow: 0 10px 24px rgba(250,148,15,.18); }
.button-primary:hover { background: #ffab34; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.72); background: transparent; }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.08); }

.about { position: relative; overflow: hidden; }
.about::after { content: "ENGENHARIA • ENERGIA • FUTURO"; position: absolute; left: -16px; bottom: -32px; color: transparent; -webkit-text-stroke: 1px rgba(42,64,109,.09); white-space: nowrap; font: 700 clamp(3.8rem, 8vw, 8rem)/1 "Raleway", sans-serif; }
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: center; }
.about-mark img { width: min(390px, 100%); margin: 0 auto 36px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-row span { padding: 15px 10px; color: var(--muted); text-align: center; font-size: .84rem; background: var(--mist); border-radius: 16px; }
.metric-row strong { display: block; color: var(--blue); font: 700 1.4rem/1.2 "Raleway", sans-serif; }
.about-card { padding: 46px 48px; border: 1px solid var(--line); border-radius: 44px 10px 44px 44px; background: white; box-shadow: var(--shadow); }
.about-card h2, .section-heading h2, .solarcheck h2, .contact-cta h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.1rem)/1.08 "Raleway", sans-serif; letter-spacing: -.035em; }
.about-card > p:not(.eyebrow) { color: #60697a; }
.social-links { display: flex; gap: 24px; margin-top: 28px; }
.social-links a { color: var(--orange-dark); font-family: "Raleway", sans-serif; font-weight: 700; text-underline-offset: 4px; }

.principles { padding: 92px 0; background: var(--blue); color: var(--white); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 58px; }
.principles article { text-align: center; }
.principles article > span { display: block; width: 35px; height: 4px; margin: 0 auto 24px; background: var(--orange); border-radius: 99px; }
.principles h3 { margin: 0 0 18px; font: 700 1.55rem/1.2 "Raleway", sans-serif; }
.principles p { max-width: 310px; margin: auto; color: #eef1f6; }

.section-heading { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { min-height: 270px; display: grid; grid-template-columns: .72fr 1fr; overflow: hidden; background: var(--blue); color: white; border-radius: 28px; }
.service-card img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.service-card div { padding: 32px 30px; align-self: center; }
.service-card h3 { margin: 0 0 14px; font: 700 1.35rem/1.22 "Raleway", sans-serif; }
.service-card p { margin: 0; color: #eef2f8; line-height: 1.55; }

.partners { padding: 76px 0; background: var(--mist); border-block: 1px solid #eaedf2; }
.partners-title { margin: 0 0 34px; color: var(--ink); text-align: center; font: 700 clamp(1.8rem, 3vw, 2.55rem)/1.1 "Raleway", sans-serif; letter-spacing: -.025em; }
.partner-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.partner-card { width: 190px; height: 100px; display: grid; place-items: center; padding: 20px 24px; background: white; border: 1px solid rgba(42,64,109,.1); border-radius: 18px; box-shadow: 0 10px 30px rgba(32,49,83,.06); }
.partner-card img { width: auto; height: auto; max-width: 140px; max-height: 48px; object-fit: contain; mix-blend-mode: multiply; }

.solarcheck { padding: 108px 0; color: white; background: var(--blue-3); overflow: hidden; }
.solarcheck-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 80px; align-items: center; }
.solarcheck-copy > p:not(.eyebrow) { margin: 22px 0; color: #cbd5e5; font-size: 1.08rem; }
.feature-list { margin: 28px 0 34px; padding: 0; list-style: none; }
.feature-list li { position: relative; margin: 12px 0; padding-left: 30px; color: #e6ecf5; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 700; }
.solarcheck-visual { margin: 0; padding: 14px; background: white; border-radius: 30px; box-shadow: 0 35px 80px rgba(0,0,0,.23); }
.solarcheck-visual img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 20px; }
.solarcheck-visual figcaption { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 4px 2px; color: var(--ink); }
.solarcheck-visual figcaption span { display: flex; align-items: center; gap: 7px; font: 700 .75rem/1.3 "Raleway", sans-serif; }
.solarcheck-visual figcaption b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #17233c; background: var(--orange); border-radius: 50%; }

.simulator { background: #fff; }
.simulator-shell { max-width: 1000px; }
.simulator-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: #525b6d; font: 700 .85rem/1.3 "Raleway", sans-serif; }
.field input, .field select { width: 100%; height: 56px; padding: 0 17px; color: var(--ink); border: 1px solid #cfd5df; border-radius: 14px; background: white; }
.field input::placeholder { color: #9aa1ae; }
.input-unit { position: relative; }
.input-unit input { padding-right: 64px; }
.input-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .84rem; }
.submit-button { grid-column: 2; margin-top: 12px; border: 0; }
.simulation-result { margin-top: 34px; padding: 28px; background: var(--blue); color: white; border-radius: 24px; }
.simulation-result h3 { margin: 0 0 20px; font: 700 1.5rem/1.2 "Raleway", sans-serif; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.result-grid span { display: block; padding: 17px; background: rgba(255,255,255,.08); border-radius: 14px; color: #d9e2f0; font-size: .86rem; }
.result-grid strong { display: block; color: white; font: 700 1.25rem/1.2 "Raleway", sans-serif; }
.simulation-result p { margin: 0; color: #cbd5e5; font-size: .88rem; }
.simulation-result a { color: #ffbd54; font-weight: 700; }

.contact-cta { padding: 72px 0; background: var(--mist); }
.contact-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-cta .eyebrow { margin-bottom: 8px; }
.contact-cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.site-footer { padding: 70px 0 28px; color: white; background: var(--blue); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 70px; }
.footer-grid img { width: 150px; height: auto; margin-bottom: 16px; }
.footer-grid p { margin: 0; color: #dbe2ee; }
.footer-grid h2 { margin: 7px 0 18px; font: 700 1rem/1.2 "Raleway", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { display: block; margin: 9px 0; color: #eef2f8; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.16); color: #bfc9d9; font-size: .84rem; }
.whatsapp-float { position: fixed; z-index: 40; right: 22px; bottom: 20px; width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; box-shadow: 0 12px 30px rgba(16,38,67,.25); }
.whatsapp-float img { width: 100%; height: 100%; }
.cookie-banner { position: fixed; z-index: 60; left: 50%; bottom: 18px; width: min(760px, calc(100% - 32px)); transform: translateX(-50%); display: flex; align-items: center; gap: 26px; padding: 18px 20px 18px 24px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 55px rgba(20,34,61,.22); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1; margin: 0; color: var(--muted); font-size: .92rem; }
.cookie-banner .button { min-height: 44px; padding: 10px 22px; border: 0; }

@media (max-width: 980px) {
  .shell { width: min(100% - 32px, 760px); }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 88px 0 auto; max-height: calc(100vh - 88px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px 28px; background: white; border-top: 1px solid var(--line); box-shadow: 0 18px 40px rgba(23,40,70,.12); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 17px 6px; border-bottom: 1px solid #edf0f4; }
  .main-nav .nav-app { margin-top: 14px; padding: 17px; text-align: center; border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "top top" "bottom proof"; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4.2rem); }
  .hero-proof strong { font-size: clamp(1.8rem, 4vw, 2.7rem); }
  .about-grid, .solarcheck-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-mark { order: 2; }
  .about-card { order: 1; }
  .principles-grid { gap: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .simulator-form { grid-template-columns: repeat(2, 1fr); }
  .submit-button { grid-column: 1 / -1; width: min(360px, 100%); justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 75px; }
  .shell { width: min(100% - 28px, 520px); }
  .section { padding: 76px 0; }
  .site-header, .header-inner { min-height: 74px; }
  .brand img { width: 92px; }
  .main-nav { inset-block-start: 74px; max-height: calc(100vh - 74px); }
  .hero-grid { min-height: auto; padding-block: 58px 62px; grid-template-columns: 1fr; grid-template-areas: "copy" "top" "bottom" "proof"; gap: 20px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-art { height: auto; border-radius: 18px; }
  .hero-proof { padding-top: 14px; }
  .hero-proof strong { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .about-card { padding: 32px 24px; border-radius: 30px 8px 30px 30px; }
  .metric-row { grid-template-columns: 1fr; }
  .principles { padding: 74px 0; }
  .principles-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-card { grid-template-columns: 1fr; }
  .service-card img { height: 210px; min-height: 0; }
  .partners { padding: 60px 0; }
  .partners-title { margin-bottom: 28px; }
  .partner-strip { gap: 12px; }
  .partner-card { width: calc(50% - 6px); height: 88px; padding: 18px; }
  .partner-card img { max-width: 110px; max-height: 40px; }
  .solarcheck { padding: 80px 0; }
  .solarcheck-visual { padding: 9px; border-radius: 22px; }
  .solarcheck-visual img { border-radius: 15px; }
  .solarcheck-visual figcaption { grid-template-columns: repeat(2, 1fr); gap: 10px 6px; padding: 14px 4px 5px; }
  .simulator-form { grid-template-columns: 1fr; }
  .submit-button { grid-column: auto; width: 100%; }
  .result-grid { grid-template-columns: 1fr; }
  .contact-cta-inner { align-items: stretch; flex-direction: column; }
  .contact-cta .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 14px; }
  .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

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