:root {
  --navy: #062a5e;
  --navy-strong: #021936;
  --blue: #0c4a9a;
  --green: #10852c;
  --green-dark: #076122;
  --yellow: #f7b500;
  --ink: #16202d;
  --muted: #657287;
  --line: #dce4ee;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --shadow: 0 22px 55px rgba(2, 25, 54, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 64px);
  color: #ffffff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(2, 25, 54, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 4px;
}

.brand span {
  max-width: 230px;
  font-size: 0.82rem;
  line-height: 1.08;
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a:focus-visible,
.site-header.is-open .main-nav a:hover,
.site-header.is-open .main-nav a:focus-visible {
  background: rgba(12, 74, 154, 0.09);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  margin: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 86svh;
  padding: 136px clamp(18px, 5vw, 84px) 48px;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-energia-terraplanagem-logistica-fullhd.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 15, 32, 0.9) 0%, rgba(2, 25, 54, 0.74) 34%, rgba(2, 25, 54, 0.3) 68%, rgba(2, 25, 54, 0.1) 100%),
    linear-gradient(180deg, rgba(2, 15, 32, 0.74) 0%, rgba(2, 15, 32, 0.22) 46%, rgba(2, 15, 32, 0.82) 100%);
}

.hero-content {
  min-width: 0;
  max-width: 820px;
  padding-bottom: clamp(24px, 4vh, 58px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow-line {
  flex: 0 0 34px;
  width: 34px;
  height: 3px;
  background: var(--yellow);
}

.eyebrow strong {
  min-width: 0;
  font: inherit;
  overflow-wrap: break-word;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-width: 188px;
  padding: 0 20px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 18px 36px rgba(16, 133, 44, 0.28);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

section {
  scroll-margin-top: 94px;
}

.intro,
.products,
.company,
.process,
.contact {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 84px);
}

.intro {
  background: var(--surface);
}

.section-heading {
  max-width: 850px;
}

.section-heading > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-strong);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.intro-grid article,
.process-steps article {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(6, 42, 94, 0.06);
}

.intro-grid svg {
  width: 46px;
  height: 46px;
  color: var(--blue);
}

.intro-grid h3,
.process-steps h3,
.product-list h3,
.product-feature h3 {
  margin: 22px 0 10px;
  color: var(--navy-strong);
  font-size: 1.24rem;
  line-height: 1.18;
}

.intro-grid p,
.process-steps p,
.product-list p,
.product-feature p,
.company-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.products {
  background: var(--soft);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
  margin-top: 44px;
}

.product-feature {
  position: sticky;
  top: 98px;
  padding: 34px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 42, 94, 0.96), rgba(4, 70, 54, 0.94)),
    var(--navy);
  box-shadow: var(--shadow);
}

.product-feature h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.product-feature p {
  color: rgba(255, 255, 255, 0.8);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: #ffffff;
  font-weight: 900;
}

.inline-link::after {
  width: 34px;
  height: 2px;
  margin-left: 12px;
  background: var(--yellow);
  content: "";
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-list article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.product-list article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #eef4fb;
  font-weight: 900;
}

.product-list h3 {
  margin-top: 0;
}

.company {
  display: block;
  background: #ffffff;
}

.company-copy {
  max-width: 1120px;
}

.company-copy > p {
  max-width: 850px;
  margin-top: 28px;
  font-size: 1.05rem;
}

.company-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.company-points div {
  padding: 20px;
  border-left: 4px solid var(--yellow);
  background: var(--soft);
}

.company-points strong,
.company-points span {
  display: block;
}

.company-points strong {
  color: var(--navy-strong);
  font-size: 0.98rem;
}

.company-points span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.process {
  background:
    linear-gradient(180deg, rgba(2, 25, 54, 0.92), rgba(6, 42, 94, 0.95)),
    var(--navy);
  color: #ffffff;
}

.process .section-heading h2,
.process .section-heading > span {
  color: #ffffff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.process-steps article {
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.process-steps span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-strong);
  background: var(--yellow);
  font-weight: 900;
}

.process-steps h3 {
  color: #ffffff;
}

.process-steps p {
  color: rgba(255, 255, 255, 0.74);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  gap: 36px;
  align-items: start;
  background: var(--soft);
}

.contact-copy p {
  max-width: 650px;
  margin-top: 22px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-methods a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.contact-methods svg,
.contact-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
}

.contact-icon {
  display: grid;
  place-items: center;
}

.contact-icon img {
  width: 24px;
  height: 24px;
}

.contact-icon-whatsapp {
  background: var(--green);
}

.contact-methods strong,
.contact-methods span {
  display: block;
}

.contact-methods strong {
  margin-bottom: 4px;
  color: var(--navy-strong);
}

.contact-methods span {
  min-width: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quote-form .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(12, 74, 154, 0.12);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 84px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-strong);
}

.site-footer img {
  width: 88px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 8px;
}

.site-footer p,
.site-footer address,
.site-footer span {
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 16px 34px rgba(16, 133, 44, 0.34);
}

.floating-whatsapp img {
  width: 31px;
  height: 31px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .brand span {
    max-width: 160px;
  }

  .hero,
  .contact,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-feature {
    position: static;
    max-width: none;
  }

  .company-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 70px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand span {
    max-width: 190px;
    font-size: 0.76rem;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header.is-scrolled .nav-toggle,
  .site-header.is-open .nav-toggle {
    border-color: rgba(6, 42, 94, 0.14);
    background: #ffffff;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    width: 100%;
    justify-self: stretch;
    display: none;
    grid-auto-rows: min-content;
    gap: 0;
    padding: 10px 18px 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 34px rgba(2, 25, 54, 0.12);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    border-radius: var(--radius);
    padding: 15px 4px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 116px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 15vw, 4.2rem);
  }

  .eyebrow {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .product-list article {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-content,
  .hero-actions,
  .eyebrow {
    width: 100%;
    max-width: 358px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 14vw, 3.9rem);
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 12vw, 2.55rem);
  }

  .intro-grid article,
  .process-steps article,
  .product-feature,
  .product-list article {
    padding: 22px;
  }

  .contact-methods a {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .contact-methods svg {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
