/* Smart Communication Systems — prototype design system */

:root {
  --navy-dark: #020d1d;
  --navy: #061a33;
  --navy-light: #0b2849;
  --blue: #0668df;
  --blue-bright: #0787ff;
  --blue-electric: #169dff;
  --blue-metric: #095dbf;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --text-light: #d7e1eb;
  --text-muted: #94a8bc;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-light: #d8e0e8;
  --divider: #d9e0e7;
  --display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--navy-dark);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: min(1280px, calc(100% - 120px));
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.btn-primary,
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #086bdc;
  color: #fff !important;
  padding: 15px 25px;
  border: 0;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.button:hover,
button.button:hover {
  background: #0985ff;
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--navy) !important;
}

.button--ghost:hover {
  background: #f4f8fc;
  border-color: var(--blue);
  color: var(--blue) !important;
  transform: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  height: 94px;
  background: var(--navy-dark);
}

body.is-home .site-header:has(.site-nav.is-open) {
  background: var(--navy-dark);
}

.header-inner {
  height: 94px;
  display: flex;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: auto;
  height: 78px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 28px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

@media (max-width: 1320px) {
  .site-nav {
    gap: 18px;
    font-size: 12px;
  }
}

.site-nav > a,
.site-nav .nav-trigger {
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.site-nav > a:hover,
.site-nav .nav-trigger:hover,
.site-nav .nav-item.is-open > .nav-trigger {
  color: #fff;
  opacity: 1;
}

.site-nav > a.is-active,
.site-nav .nav-trigger-link.is-active {
  color: #7ec8ff;
  font-weight: 800;
  opacity: 1;
  text-shadow: 0 0 18px rgba(0, 140, 255, 0.35);
}

.site-nav > a.is-active:hover,
.site-nav .nav-trigger-link.is-active:hover {
  color: #fff;
}

.nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.nav-trigger-link {
  color: #fff;
  opacity: 0.92;
  text-decoration: none;
}

.nav-trigger-link:hover {
  color: #fff;
  opacity: 1;
}

.nav-trigger--caret {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.nav-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.nav-item.is-open .nav-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 1100;
  display: none;
  min-width: 200px;
  padding: 10px 0;
  background: var(--navy);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item.is-open > .nav-dropdown,
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  color: #fff;
  opacity: 0.9;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-dropdown a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-dropdown a.is-active {
  color: #7ec8ff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.nav-mobile-cta {
  display: none;
}

.nav-cta {
  margin-left: 36px;
  padding: 16px 25px;
  background: #0668df;
  gap: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.help-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 560px) minmax(180px, 1fr);
  min-height: 330px;
  overflow: hidden;
  background: var(--white);
  align-items: center;
}

.help-cta__art {
  align-self: stretch;
  min-height: 330px;
  pointer-events: none;
}

.help-cta__art--left {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 100%),
    url("../assets/activity/bore/IMG_3049.jpg") left center / cover no-repeat;
}

.help-cta__art--right {
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 1) 100%),
    url("../assets/activity/micro-trenching/IMG_3026.jpg") right center / cover no-repeat;
}

.help-cta__copy {
  position: relative;
  z-index: 1;
  padding: 48px 20px;
  text-align: center;
}

.help-cta h2 {
  color: var(--navy-dark);
}

.help-cta p {
  max-width: 460px;
  margin: 18px auto 28px;
  color: #314556;
  font-size: 17px;
  line-height: 1.7;
}

.site-footer {
  background: var(--navy-dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(200px, 1.2fr) minmax(120px, 0.7fr) minmax(210px, 1.1fr);
  min-height: 170px;
  align-items: center;
  gap: 0;
  padding: 36px 0;
}

.footer-brand,
.footer-contact {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.footer-brand img {
  width: auto;
  height: 88px;
  max-width: 220px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 0 0 28px;
  margin-left: 28px;
}

.footer-ico {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--blue-electric);
}

.footer-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.footer-contact a {
  color: #fff;
}

.footer-contact a:hover {
  color: var(--blue-electric);
}

.footer-contact--end {
  justify-content: space-between;
  gap: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
}

.footer-social svg {
  width: 14px;
  height: 14px;
  display: block;
}

.footer-social a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 22px;
  }

  .nav-cta {
    margin-left: 22px;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .header-inner,
  .site-header {
    height: 80px;
  }

  .site-nav,
  .header-inner > .nav-cta {
    display: none;
  }

  .brand-mark img {
    height: 64px;
    max-width: 160px;
    width: auto;
  }

  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: var(--navy-dark);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .site-nav.is-open > a,
  .site-nav.is-open .nav-trigger {
    display: flex;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-dark);
    justify-content: space-between;
    color: #fff;
  }

  .site-nav.is-open .nav-item {
    border-bottom: 1px solid var(--border-dark);
  }

  .site-nav.is-open .nav-item .nav-trigger {
    border-bottom: 0;
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 8px 12px;
    transform: none;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown {
    display: none;
  }

  .nav-item.is-open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
  }

  .nav-dropdown a:last-child {
    border-bottom: 0;
  }

  .nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 15px 25px;
    background: #0668df;
    border: 0 !important;
  }

  .help-cta {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .help-cta__art {
    min-height: 160px;
  }

  .help-cta__art--left {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%),
      url("../assets/activity/bore/IMG_3049.jpg") center / cover no-repeat;
  }

  .help-cta__art--right {
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0) 55%, #fff 100%),
      url("../assets/activity/micro-trenching/IMG_3026.jpg") center / cover no-repeat;
  }

  .help-cta__copy {
    order: 0;
    padding: 36px 24px 28px;
  }

  .help-cta__art--left {
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(1280px, calc(100% - 40px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 0 28px;
    gap: 22px;
  }

  .footer-brand,
  .footer-contact {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .footer-contact--end {
    flex-direction: column;
    align-items: flex-start;
  }
}
