:root {
  --meridian: #252a44;
  --buff: #d7c5a3;
  --burgundy: #4a1626;
  --white: #ffffff;
  --line-dark: rgba(215, 197, 163, 0.3);
  --line-light: rgba(37, 42, 68, 0.24);
  --sans: Bahnschrift, Montserrat, "Avenir Next", "Segoe UI", Arial, sans-serif;
  --shell: min(100% - 3rem, 88rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--meridian);
  background: var(--buff);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 4px;
}

.hero a:focus-visible,
.contact-section a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--buff);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--buff);
  background: var(--burgundy);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: var(--meridian);
  background: var(--white);
}

.header-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.wordmark {
  display: flex;
  width: clamp(17.28rem, 25.92vw, 24.48rem);
  align-items: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.35em;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--buff);
  background: var(--meridian);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(37, 42, 68, 0.98) 0%, rgba(37, 42, 68, 0.86) 31%, rgba(37, 42, 68, 0.22) 64%, rgba(37, 42, 68, 0.08) 100%),
    url("assets/connavitect-cad-vessel-bg.png");
  background-position: center;
  background-size: cover;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding-top: 9.5rem;
  padding-bottom: 2.5rem;
  grid-template-rows: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 48rem;
}

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

h1,
h2 {
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 46rem;
  font-size: clamp(1.75rem, 3.1vw, 3.5rem);
  line-height: 1.08;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark);
  background: rgba(37, 42, 68, 0.78);
}

.action-link {
  display: flex;
  min-height: 6.5rem;
  padding: 1.25rem 1.4rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-right: 1px solid var(--line-dark);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  transition: color 180ms ease, background-color 180ms ease;
}

.action-link:last-child {
  border-right: 0;
}

.action-link:nth-child(1):hover {
  color: var(--meridian);
  background: var(--buff);
}

.action-link:nth-child(2):hover {
  color: var(--buff);
  background: var(--burgundy);
}

.action-link:nth-child(3):hover {
  color: var(--buff);
  background: var(--meridian);
}

.service-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line-light);
  background: var(--buff);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.6rem;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--meridian);
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.94;
}

.section-content {
  max-width: 45rem;
  padding-top: 0.25rem;
}

.lead {
  margin-bottom: 3rem;
  font-size: clamp(1.4rem, 2.25vw, 2.2rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.region-list {
  display: flex;
  margin: 0 0 4rem;
  padding: 1.15rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--meridian);
  border-bottom: 1px solid var(--meridian);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  list-style: none;
  text-align: center;
  text-transform: uppercase;
}

.region-list li + li::before {
  margin-right: clamp(0.65rem, 2vw, 1.5rem);
  color: var(--burgundy);
  content: "·";
}

.cargo-block h3 {
  margin-bottom: 1rem;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cargo-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  list-style: none;
}

.cargo-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
}

.sales-section {
  color: var(--buff);
  border-color: var(--line-dark);
  background: var(--meridian);
}

.sales-section .eyebrow,
.sales-section .section-heading h2 {
  color: var(--buff);
}

.sales-copy {
  border-left: 0.45rem solid var(--burgundy);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}

.sales-copy > p:not(.lead) {
  max-width: 37rem;
  margin-bottom: 1.3rem;
  font-size: 1.06rem;
}

.contact-section {
  padding: clamp(5rem, 9vw, 9rem) 0 4rem;
  color: var(--buff);
  background: var(--burgundy);
}

.contact-topline {
  border-bottom: 1px solid var(--line-dark);
}

.contact-section .eyebrow {
  color: var(--buff);
}

.contact-section h2 {
  margin: 2rem 0 clamp(4rem, 8vw, 8rem);
  color: var(--buff);
  font-size: clamp(4rem, 9.5vw, 10rem);
  line-height: 0.88;
}

.contact-grid {
  display: grid;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid article {
  min-height: 13rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line-dark);
}

.contact-grid article:first-child {
  padding-left: 0;
}

.contact-grid article:last-child {
  border-right: 0;
}

.contact-grid h3,
.other-inquiries {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}

.contact-grid h3 {
  margin-bottom: 2.5rem;
}

.contact-grid a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--buff);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: var(--meridian);
  text-underline-offset: 0.35em;
}

.contact-grid p {
  max-width: 19rem;
  color: var(--buff);
  font-size: 0.92rem;
}

.contact-grid .text-link {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.contact-grid a:hover,
.other-inquiries a:hover {
  text-decoration-color: var(--buff);
}

.other-inquiries {
  margin: 2.5rem 0 0;
  color: var(--buff);
}

.other-inquiries a {
  color: var(--buff);
  text-decoration: underline;
  text-decoration-color: var(--meridian);
  text-underline-offset: 0.3em;
}

.site-footer {
  color: var(--buff);
  background: var(--burgundy);
}

.footer-inner {
  display: flex;
  min-height: 6.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 2rem, 88rem);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-items: center;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-icon {
    display: flex;
    width: 1.55rem;
    height: 1.05rem;
    flex-direction: column;
    justify-content: space-between;
  }

  .menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--meridian);
  }

  .mobile-nav nav {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    display: grid;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.5rem 1.25rem;
    color: var(--meridian);
    background: var(--buff);
    box-shadow: 0 1rem 3rem rgba(74, 22, 38, 0.35);
  }

  .mobile-nav nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.82rem;
    font-weight: 600;
  }

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

  .section-grid {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
  }

  .region-list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 1.5rem, 88rem);
  }

  html {
    scroll-padding-top: 5.25rem;
  }

  .header-inner {
    min-height: 5.25rem;
    gap: 0.75rem;
  }

  .wordmark {
    width: clamp(11.5rem, 58vw, 15.84rem);
    min-width: 0;
  }

  .mobile-nav {
    flex: 0 0 auto;
  }

  .mobile-nav nav {
    top: calc(100% + 0.7rem);
    width: min(18rem, calc(100vw - 1.5rem));
    border: 1px solid var(--line-light);
    background: var(--white);
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(37, 42, 68, 0.92) 0%, rgba(37, 42, 68, 0.5) 62%, rgba(37, 42, 68, 0.9) 100%),
      url("assets/connavitect-cad-vessel-bg.png");
    background-position: center, 64% 42%;
    background-size: cover, 205% auto;
    background-repeat: no-repeat;
  }

  .hero-grid {
    display: flex;
    min-height: 100svh;
    padding-top: 6.75rem;
    padding-bottom: 1rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
  }

  .hero-copy {
    display: flex;
    min-height: 0;
    padding: 2rem 0;
    flex: 1 1 auto;
    align-items: center;
  }

  h1 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .action-link {
    min-height: 4rem;
    padding: 0.8rem 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.8rem;
  }

  .action-link:last-child {
    border-bottom: 0;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .service-section {
    padding: 4.5rem 0;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .section-heading h2 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .lead {
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
  }

  .region-list {
    display: grid;
    margin-bottom: 3rem;
    padding: 0.7rem 0;
    gap: 0;
    justify-items: start;
  }

  .region-list li {
    padding: 0.35rem 0;
  }

  .region-list li + li::before {
    display: none;
  }

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

  .sales-copy {
    border-left-width: 0.3rem;
    padding-left: 1.25rem;
  }

  .contact-section h2 {
    margin-bottom: 4rem;
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

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

  .contact-grid article,
  .contact-grid article:first-child {
    min-height: 0;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .contact-grid article:last-child {
    border-bottom: 0;
  }

  .contact-grid h3 {
    margin-bottom: 1.5rem;
  }

  .footer-inner {
    min-height: 6rem;
  }

  .other-inquiries,
  .other-inquiries a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
  }
}

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

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

@media print {
  .site-header,
  .hero-actions,
  .site-footer {
    display: none;
  }

  .hero {
    min-height: auto;
    color: var(--meridian);
    background: var(--buff);
  }

  .hero::before {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding: 2rem 0;
  }
}
