:root {
  --jm-navy: #071827;
  --jm-navy-2: #0b2e3f;
  --jm-blue: #2d9cdb;
  --jm-green: #72be44;
  --jm-teal: #00a6a6;
  --jm-cyan: #52d6ff;
  --jm-mist: #eaf3f5;
  --jm-slate: #6d8793;
  --jm-white: #ffffff;
  --content-width: 1220px;
  --header-height: 88px;
  --font-display: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--jm-navy);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--jm-navy);
  background: var(--jm-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--jm-blue);
  outline-offset: 4px;
}

.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;
}

.content-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.site-frame {
  min-height: 100vh;
  background: var(--jm-white);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(7, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--content-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand-button,
.footer-brand {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: 255px;
  height: auto;
}

.main-navigation {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 46px;
}

.main-navigation button {
  position: relative;
  padding: 4px 0 0;
  color: var(--jm-navy);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.main-navigation button::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--jm-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-navigation button:hover,
.main-navigation button.is-active {
  color: #3d8e2c;
}

.main-navigation button.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--jm-navy);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: var(--jm-white);
  background-color: var(--jm-navy);
  background-position: center;
  background-size: cover;
}

.hero-home {
  background-image: url("../assets/banners/hero-main-1920x800.webp");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 39, 0.97) 0%,
      rgba(7, 24, 39, 0.83) 29%,
      rgba(7, 24, 39, 0.28) 61%,
      rgba(7, 24, 39, 0.04) 100%
    ),
    linear-gradient(0deg, rgba(7, 24, 39, 0.12), rgba(7, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 610px;
  padding-block: 74px 42px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--jm-green);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero h1,
.construction-view h1 {
  max-width: 720px;
  margin: 0;
  color: var(--jm-white);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.3vw, 5.35rem);
  font-weight: 420;
  letter-spacing: -0.045em;
  line-height: 1.09;
  text-wrap: balance;
}

.hero-summary {
  max-width: 470px;
  margin: 28px 0 31px;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.5;
}

.outline-button {
  display: inline-flex;
  min-width: 190px;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--jm-white);
  background: rgba(7, 24, 39, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.outline-button:hover {
  color: var(--jm-navy);
  background: var(--jm-white);
  border-color: var(--jm-white);
}

.outline-button span {
  font-size: 1.35rem;
  font-weight: 400;
}

.hero-indicator {
  display: flex;
  width: 160px;
  margin-top: 44px;
  gap: 8px;
}

.hero-indicator span {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-indicator .active {
  background: var(--jm-green);
}

.services-section {
  padding: 47px 0 51px;
  background:
    radial-gradient(circle at 50% -30%, rgba(45, 156, 219, 0.07), transparent 40%),
    var(--jm-white);
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-heading h2 {
  margin: 0;
  color: var(--jm-navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  position: relative;
  padding: 0 31px;
  text-align: center;
}

.service-card + .service-card {
  border-left: 1px solid rgba(7, 24, 39, 0.15);
}

.service-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 12px;
  object-fit: contain;
}

.service-card h3 {
  min-height: 2.4em;
  margin: 0 0 7px;
  color: var(--jm-navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: #4f5d64;
  font-size: 0.86rem;
  line-height: 1.45;
}

.positioning-strip {
  position: relative;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 150px;
  margin: 0 auto 36px;
  overflow: hidden;
  color: var(--jm-white);
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.88), rgba(7, 24, 39, 0.49)),
    url("../assets/patterns/pattern-data-contours-1200x700.png") center 63% / cover;
  border-radius: 10px;
}

.strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 39, 0.35), transparent 75%);
}

.strip-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 150px;
  padding: 25px 39px;
  grid-template-columns: 34px minmax(300px, 1.3fr) 1fr;
  align-items: center;
  gap: 15px;
}

.quote-mark {
  align-self: start;
  color: var(--jm-green);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 0.9;
}

.strip-content p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.strip-pillars {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.strip-pillars span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.construction-view {
  position: relative;
  display: flex;
  min-height: calc(100vh - var(--header-height) - 132px);
  color: var(--jm-white);
  background-color: var(--jm-navy);
  background-image: var(--construction-image);
  background-position: center;
  background-size: cover;
  align-items: center;
}

.construction-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 39, 0.97) 0%,
      rgba(7, 24, 39, 0.79) 44%,
      rgba(7, 24, 39, 0.3) 80%
    ),
    linear-gradient(0deg, rgba(7, 24, 39, 0.23), rgba(7, 24, 39, 0.23));
}

.construction-content {
  position: relative;
  z-index: 1;
  padding-block: 100px;
}

.construction-content h1 {
  max-width: 760px;
}

.construction-content > p:not(.eyebrow) {
  max-width: 570px;
  margin: 28px 0 33px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(110deg, var(--jm-navy), #0a2850);
}

.footer-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.footer-brand img {
  display: block;
  width: 220px;
  height: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 1020px) {
  :root {
    --header-height: 78px;
  }

  .brand-logo {
    width: 220px;
  }

  .main-navigation {
    gap: 26px;
  }

  .hero,
  .hero-content {
    min-height: 570px;
  }

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

  .service-card:nth-child(3) {
    border-left: 0;
  }

  .strip-content {
    grid-template-columns: 34px 1fr;
  }

  .strip-pillars {
    display: none;
  }
}

@media (max-width: 760px) {
  .content-shell,
  .header-inner,
  .positioning-strip {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .site-header {
    height: 72px;
  }

  .header-inner {
    gap: 18px;
  }

  .brand-logo {
    width: 190px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    padding: 18px 16px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid rgba(7, 24, 39, 0.12);
    box-shadow: 0 18px 35px rgba(7, 24, 39, 0.12);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation button {
    min-height: 47px;
    padding: 0 12px;
    text-align: left;
  }

  .main-navigation button::after {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }

  .main-navigation button.is-active::after {
    transform: scaleY(1);
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-home {
    background-image: url("../assets/banners/hero-main-mobile-1080x1350.webp");
    background-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 24, 39, 0.97) 0%, rgba(7, 24, 39, 0.44) 80%),
      linear-gradient(90deg, rgba(7, 24, 39, 0.62), rgba(7, 24, 39, 0.1));
  }

  .hero-content {
    padding-block: 88px 36px;
    justify-content: flex-end;
  }

  .hero h1,
  .construction-view h1 {
    font-size: clamp(2.55rem, 11vw, 4.2rem);
  }

  .hero-summary {
    margin-block: 22px 26px;
  }

  .hero-indicator {
    margin-top: 35px;
  }

  .services-section {
    padding-block: 42px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-card {
    display: grid;
    padding: 24px 0;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    text-align: left;
    align-items: center;
  }

  .service-card + .service-card,
  .service-card:nth-child(3) {
    border-top: 1px solid rgba(7, 24, 39, 0.12);
    border-left: 0;
  }

  .service-card img {
    grid-row: 1 / 3;
    margin: 0;
  }

  .service-card h3 {
    min-height: 0;
    margin-bottom: 5px;
  }

  .positioning-strip {
    margin-bottom: 24px;
  }

  .strip-content {
    min-height: 180px;
    padding: 25px 24px;
    grid-template-columns: 26px 1fr;
    gap: 9px;
  }

  .quote-mark {
    font-size: 3.5rem;
  }

  .construction-view {
    min-height: calc(100vh - 72px - 145px);
    background-image: var(--construction-mobile-image);
  }

  .construction-overlay {
    background:
      linear-gradient(0deg, rgba(7, 24, 39, 0.97), rgba(7, 24, 39, 0.53)),
      linear-gradient(90deg, rgba(7, 24, 39, 0.48), transparent);
  }

  .construction-content {
    padding-block: 120px 90px;
  }

  .footer-inner {
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .footer-brand img {
    width: 195px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
