:root {
  --ink: #16222f;
  --muted: #5d6a75;
  --paper: #ffffff;
  --cloud: #f3f6f8;
  --line: #dbe3ea;
  --blue: #0d4b76;
  --blue-dark: #092f4b;
  --green: #22a966;
  --green-dark: #158451;
  --rust: #b65b2a;
  --gold: #d7a947;
  --shadow: 0 18px 45px rgba(14, 33, 51, .12);
  --shadow-strong: 0 24px 70px rgba(14, 33, 51, .18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.ui-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: currentColor;
  vertical-align: middle;
}

.icon-check { clip-path: polygon(14% 48%, 0 62%, 38% 100%, 100% 16%, 84% 4%, 35% 70%); }
.icon-tools { clip-path: polygon(10% 3%, 28% 0, 54% 26%, 46% 34%, 100% 88%, 88% 100%, 34% 46%, 26% 54%, 0 28%); }
.icon-clock { clip-path: circle(48% at 50% 50%); }
.icon-whatsapp { clip-path: path("M11 1 C5.5 1 1 5.1 1 10.3 C1 12.1 1.5 13.8 2.5 15.3 L1 21 L6.9 19.5 C8.2 20.1 9.6 20.4 11 20.4 C16.5 20.4 21 16.2 21 10.8 C21 5.4 16.5 1 11 1 Z"); }
.icon-layers { clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%); }
.icon-shield { clip-path: polygon(50% 0, 94% 16%, 88% 62%, 50% 100%, 12% 62%, 6% 16%); }
.icon-chat { clip-path: polygon(0 5%, 100% 5%, 100% 70%, 62% 70%, 42% 94%, 42% 70%, 0 70%); }
.icon-search { clip-path: path("M9 1 C4.6 1 1 4.6 1 9 C1 13.4 4.6 17 9 17 C10.7 17 12.2 16.5 13.5 15.6 L18.8 21 L21 18.8 L15.7 13.5 C16.5 12.2 17 10.7 17 9 C17 4.6 13.4 1 9 1 Z"); }
.icon-doc { clip-path: polygon(16% 0, 70% 0, 100% 30%, 100% 100%, 16% 100%); }
.icon-building { clip-path: polygon(16% 100%, 16% 12%, 72% 0, 72% 100%, 58% 100%, 58% 78%, 36% 78%, 36% 100%); }
.icon-gate { clip-path: polygon(6% 100%, 6% 8%, 42% 8%, 42% 100%, 34% 100%, 34% 22%, 14% 22%, 14% 100%, 58% 100%, 58% 8%, 94% 8%, 94% 100%, 86% 100%, 86% 22%, 66% 22%, 66% 100%); }
.icon-leaf { clip-path: ellipse(44% 50% at 56% 50%); }
.icon-roof { clip-path: polygon(50% 0, 100% 42%, 88% 42%, 88% 100%, 12% 100%, 12% 42%, 0 42%); }
.icon-phone { clip-path: polygon(18% 0, 38% 0, 48% 26%, 36% 34%, 54% 64%, 70% 56%, 100% 74%, 100% 96%, 82% 100%, 54% 88%, 26% 60%, 6% 22%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .9)),
    url("../img/construction.jpg") center 42% / cover;
  border-bottom: 1px solid rgba(219, 227, 234, .86);
  backdrop-filter: blur(14px);
  animation: fadeUp .5s ease both;
}

.brand img {
  width: 156px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: .95rem;
  font-weight: 700;
}

.main-nav a,
.header-cta,
.btn {
  text-decoration: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  color: var(--blue-dark);
  transition: color .2s ease, transform .2s ease;
}

.main-nav a[aria-current="page"] {
  color: var(--green-dark);
}

.main-nav a:hover {
  color: var(--green-dark);
  transform: translateY(-2px);
}

.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: currentColor;
  transition: transform .22s ease;
}

.main-nav a:hover .nav-icon {
  transform: scale(1.12) rotate(-4deg);
}

.nav-home {
  clip-path: path("M8.5 1 L16 7.2 L14.4 7.2 L14.4 16 L10.2 16 L10.2 11 L6.8 11 L6.8 16 L2.6 16 L2.6 7.2 L1 7.2 Z");
}

.nav-services {
  clip-path: polygon(54% 0, 70% 8%, 58% 35%, 100% 77%, 83% 94%, 42% 52%, 15% 64%, 0 47%, 35% 35%);
}

.nav-portfolio {
  clip-path: polygon(0 16%, 100% 16%, 100% 86%, 0 86%);
}

.nav-budget {
  clip-path: polygon(12% 0, 88% 0, 88% 100%, 12% 100%);
}

.nav-contact {
  clip-path: path("M4 1 C3 1 2 2 2 3 C2 10 7 15 14 15 C15 15 16 14 16 13 L16 10 L12 9 L10.5 11 C8.5 10 6 7.5 5 5.5 L7 4 L6 1 Z");
}

.header-cta {
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-overlay,
.page-hero-bg,
.page-hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg,
.page-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  filter: brightness(.82) saturate(.82) contrast(.94);
  transform-origin: center;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 36, .78), rgba(7, 22, 36, .48) 50%, rgba(7, 22, 36, .18)),
    linear-gradient(0deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .06));
}

.page-hero-overlay {
  background: linear-gradient(90deg, rgba(7, 22, 36, .9), rgba(7, 22, 36, .58));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin-left: clamp(16px, 7vw, 86px);
  padding: 80px 0 120px;
  color: #fff;
  animation: fadeUp .7s .12s ease both;
}

.page-hero-content {
  position: relative;
  width: min(880px, calc(100% - 32px));
  margin-left: clamp(16px, 7vw, 86px);
  padding: 84px 0;
  color: #fff;
  animation: fadeUp .7s .12s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.contact-section .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: .98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.18rem;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 24px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero-chips .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn.primary {
  color: #fff;
  background: var(--green);
}

.btn.primary:hover,
.header-cta:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 26px rgba(34, 169, 102, .24);
  transform: translateY(-2px);
}

.btn.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .12);
}

.btn.secondary.dark {
  border-color: rgba(255, 255, 255, .38);
}

.btn.muted {
  color: var(--blue-dark);
  background: #e7eef4;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-band div {
  padding: 22px clamp(16px, 4vw, 46px);
  background: var(--paper);
}

.trust-band .ui-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--green);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  color: var(--blue-dark);
  font-size: 1.06rem;
}

.trust-band span {
  color: var(--muted);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-band div {
  padding: 24px clamp(16px, 4vw, 42px);
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

.metrics-band strong {
  display: block;
  color: var(--blue);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1;
}

.metrics-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(16px, 5vw, 70px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.section-copy p,
.contact-section p {
  color: var(--muted);
}

.link-section {
  background: var(--cloud);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: grid;
  min-height: 330px;
  align-content: end;
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.link-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 22, 36, .84), rgba(7, 22, 36, .18));
}

.link-card:hover img {
  transform: scale(1.04);
}

.service-card,
.portfolio-grid figure,
.contact-card,
.steps article,
.trust-band div {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover,
.contact-card:hover,
.steps article:hover,
.trust-band div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.portfolio-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.link-card span,
.link-card strong {
  position: relative;
  z-index: 1;
}

.link-card span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.link-card strong {
  max-width: 540px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 78px);
  align-items: center;
}

.section-copy {
  max-width: 640px;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-stack img:last-child {
  height: 300px;
  margin-bottom: -34px;
}

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

.service-card {
  overflow: hidden;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 45, 70, .08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card > .ui-icon {
  width: 42px;
  height: 42px;
  margin: -21px 18px 0;
  padding: 10px;
  position: relative;
  color: #fff;
  background: var(--green);
  border: 9px solid #fff;
  border-radius: 10px;
  box-sizing: content-box;
  box-shadow: 0 12px 24px rgba(14, 33, 51, .16);
}

.service-card h3,
.service-card p {
  padding: 0 18px;
}

.service-card h3 {
  margin-top: 18px;
}

.service-card p {
  min-height: 96px;
  color: var(--muted);
}

.portfolio-band {
  background: var(--cloud);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-grid figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform .28s ease;
}

.portfolio-grid figure:hover img {
  transform: scale(1.04);
}

.portfolio-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 14px 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(0deg, rgba(0, 0, 0, .76), transparent);
}

.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps article {
  position: relative;
  padding: 26px;
  border-top: 4px solid var(--rust);
  background: var(--cloud);
  border-radius: 8px;
}

.steps article .ui-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 26px;
  height: 26px;
  color: rgba(13, 75, 118, .26);
}

.steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 900;
}

.steps p {
  color: var(--muted);
}

.widget-section {
  padding: clamp(52px, 8vw, 86px) clamp(16px, 5vw, 70px);
  background: var(--cloud);
}

.widget-intro {
  max-width: 760px;
  margin-bottom: 26px;
}

.widget-intro p:not(.eyebrow) {
  color: var(--muted);
}

.widget-shell {
  min-height: 360px;
  padding: clamp(14px, 3vw, 24px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#jm-platform-servicos {
  min-height: 260px;
}

.contact-page {
  background: var(--cloud);
}

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

.contact-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 45, 70, .08);
}

.contact-card > .ui-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--green);
}

.contact-card span {
  margin-bottom: 16px;
  color: var(--rust);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-card p {
  color: var(--muted);
}

.contact-card .btn {
  margin-top: auto;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(46px, 7vw, 76px) clamp(16px, 5vw, 70px);
  color: #fff;
  background: linear-gradient(90deg, var(--blue), #1d2934);
}

.cta-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(46px, 7vw, 76px) clamp(16px, 5vw, 70px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 47, 75, .96), rgba(13, 75, 118, .84)),
    url("../img/hero-alt.jpg") center / cover;
}

.cta-strip h2 {
  margin-bottom: 10px;
}

.cta-strip p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
}

.cta-strip .eyebrow {
  color: var(--gold);
}

.contact-section h2 {
  margin-bottom: 8px;
}

.contact-section p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
}

.site-footer {
  background: #0d1720;
  color: rgba(255, 255, 255, .74);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .7fr) minmax(240px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(38px, 7vw, 64px) clamp(16px, 5vw, 70px);
}

.footer-main strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-about strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.footer-main p,
.footer-main span {
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-main a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}

.footer-main a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 70px);
  color: rgba(255, 255, 255, .46);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .86rem;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-header.nav-open .main-nav a {
    padding: 13px 0;
  }

  .hero {
    min-height: 600px;
  }

  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: 132px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 82px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 22, 36, .78), rgba(7, 22, 36, .5));
  }

  .trust-band,
  .metrics-band,
  .link-grid,
  .service-grid,
  .portfolio-grid,
  .steps,
  .image-stack {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:last-child {
    height: 260px;
    margin-bottom: 0;
  }

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

  .btn {
    width: 100%;
  }
}

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