:root {
  --gold: #edb551;
  --gold-dark: #774209;
  --ink: #2e3b3e;
  --ink-2: #222b2d;
  --white: #ffffff;
  --link: #b5e3ff;
  --overlay: rgba(113, 113, 113, 0.35);
  --header-h: 72px;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Mulish, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--white);
  background: #111;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(20, 24, 26, 0.55), rgba(20, 24, 26, 0));
}

.site-header.is-scrolled {
  background: rgba(34, 43, 45, 0.94);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav {
  display: flex;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 120px 20px 80px;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-fallback {
  background: #1b2426;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(300px, 72vw);
  margin: 0 auto 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(#ecb250, #774209);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px #fff);
}

/* Shared sections */
.section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0 100px;
  overflow: hidden;
  scroll-margin-top: 20px;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
}

.section-title.center {
  text-align: center;
  margin-bottom: 48px;
}

.subhead {
  margin: 0 0 22px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

/* About */
#about {
  min-height: 100vh;
  background-color: #3a4548;
  padding-top: 130px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
}

.quote {
  margin-top: 18px;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  text-align: right;
  font-size: 14pt;
}

/* Services */
#services {
  background-color: #3a4548;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flip {
  height: 300px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.flip:hover .flip-inner,
.flip:focus-within .flip-inner,
.flip.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.flip-front {
  background-color: #2e3b3e;
}

.flip-front h2 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 40px 16px 15px;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(0deg, rgb(111, 74, 5) 0%, rgba(255, 255, 255, 0) 100%);
}

.flip-back {
  transform: rotateY(180deg);
  background: #2e3b3e;
  align-items: flex-start;
  padding: 28px;
}

.flip-back h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.flip-back p {
  margin: 0;
  font-size: 15px;
}

/* Routes */
#routes,
#track_your_shipment {
  background-color: #3a4548;
}

.route {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.route-shot {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.route-shot img {
  width: 100%;
  border-radius: 10px;
}

.route-shot::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  background: rgba(115, 214, 250, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px;
}

.route-shot:hover::after,
.route-shot:focus-visible::after {
  opacity: 1;
}

.route h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.route p {
  margin: 0;
  font-size: 16px;
}

/* Fleet */
#fleet {
  background-color: #3a4548;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.vessel img {
  width: 100%;
  border-radius: 5px;
}

.vessel table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.vessel td {
  padding: 3px 0;
  vertical-align: top;
}

.vessel td:last-child {
  text-align: right;
}

.vessel a {
  color: var(--link);
  text-decoration: none;
}

.vessel a:hover {
  text-decoration: underline;
}

/* Track */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.track-form {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.track-form input,
.track-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  color: var(--ink-2);
}

.track-form button,
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(#ecb250, #774209);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 6px;
  width: fit-content;
}

.track-form button:hover,
.btn:hover {
  filter: brightness(1.05);
}

/* Contacts */
#contacts {
  min-height: 100vh;
  background-color: #3a4548;
}

.contacts {
  max-width: 640px;
  color: #fff;
}

.contacts div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contacts div + div {
  margin-top: 30px;
}

.contacts svg {
  flex: 0 0 42px;
  width: 24px;
  height: 24px;
}

.contacts span {
  font-size: 20px;
  font-weight: 600;
}

.contacts a {
  color: #fff;
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

.mail-at::before {
  content: "@";
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(34, 43, 45, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  color: #fff;
  font-size: 36px;
  text-decoration: none;
  line-height: 1;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    justify-content: flex-end;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 86vw);
    background: #222b2d;
    flex-direction: column;
    padding: 72px 24px 24px;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .about-grid,
  .track-grid,
  .route {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .fleet-grid {
    grid-template-columns: 1fr 1fr;
  }

  #about,
  #contacts {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 767px) {
  .services-grid,
  .fleet-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  #about {
    padding-top: 70px;
  }

  body {
    font-size: 13px;
    line-height: 1.4;
  }

  .subhead {
    font-size: 20px;
  }
}
