/*
 * Hybrid: the balanced page. A centred photo hero, feature tiles lifted
 * over its edge, a tabbed portal showcase, a full-width live map with a
 * side panel, a dark filmstrip of the fleet's history, then career, news
 * and a combined join + community band.
 */

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.section-head-row > div {
  display: grid;
  gap: 12px;
}

/* ---- Hero and figures (from the heritage design) ---------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}
.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 30 30 / 0.55) 0%, rgb(0 30 30 / 0) 28%),
    linear-gradient(0deg, rgb(0 45 44 / 0.92) 0%, rgb(0 45 44 / 0.55) 38%, rgb(0 45 44 / 0) 70%);
}
.hero-content {
  padding-block: 140px clamp(48px, 9vh, 96px);
}
.hero .eyebrow {
  color: var(--gold-light);
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 400;
  margin-top: 10px;
}
.hero-tagline {
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--gold-light);
  margin-top: 4px;
}
.hero-copy {
  max-width: 560px;
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgb(255 255 255 / 0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.figures {
  background: var(--jade);
  color: var(--white);
}
.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 28px;
}
.figures-grid div {
  display: grid;
  gap: 2px;
  border-left: 2px solid var(--gold-light);
  padding-left: 16px;
}
.figures-grid strong {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 650;
  line-height: 1.1;
}
.figures-grid span {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.8);
}
@media (max-width: 760px) {
  .figures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Feature tiles ------------------------------------------------------------ */

.usps {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 6vw, 64px);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.usp {
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-top: 3px solid var(--gold-light);
}
.usp-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--jade-95);
  color: var(--jade);
}
.usp-icon svg {
  width: 24px;
  height: 24px;
}
.usp h2 {
  font-size: 1.2rem;
}
.usp p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}
@media (max-width: 860px) {
  .usp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Portal showcase ------------------------------------------------------------ */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.showcase-tabs {
  display: grid;
  gap: 8px;
}
.showcase-tabs button {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  border-left: 3px solid var(--line);
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.showcase-tabs button span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.showcase-tabs button:hover {
  background: var(--white);
}
.showcase-tabs button[aria-selected='true'] {
  background: var(--white);
  border-color: var(--line);
  border-left-color: var(--jade);
  box-shadow: var(--shadow);
}
.showcase-tabs button[aria-selected='true'] strong {
  color: var(--jade);
}
.showcase-panel[hidden] {
  display: none;
}
.showcase-panel {
  animation: panel-in 0.25s ease-out;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.tracker-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.logbook-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
}
.logbook-pair .phone {
  justify-self: center;
}
@media (max-width: 979px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .showcase-tabs button {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
  }
  .showcase-tabs button[aria-selected='true'] {
    background: var(--jade);
    border-color: var(--jade);
    box-shadow: none;
  }
  .showcase-tabs button[aria-selected='true'] strong {
    color: var(--white);
  }
  .showcase-tabs button span {
    display: none;
  }
}
@media (max-width: 620px) {
  .tracker-pair,
  .logbook-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .logbook-pair .phone {
    max-width: 220px;
  }
}

/* ---- Live map with a side panel ------------------------------------------------------- */

.live {
  position: relative;
  border-block: 1px solid var(--line);
}
.live .live-map {
  height: clamp(460px, 68vh, 640px);
}
.live-panel {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: min(360px, calc(100% - 2 * var(--gutter)));
  padding: 24px;
  display: grid;
  gap: 10px;
}
.live-panel h2 {
  font-size: 1.5rem;
}
.live-panel .muted {
  font-size: 0.92rem;
}
@media (max-width: 979px) {
  .live {
    display: flex;
    flex-direction: column-reverse;
  }
  .live-panel {
    position: static;
    width: auto;
    margin: 0;
    border-radius: 0;
    border-inline: 0;
    box-shadow: none;
    padding: 24px var(--gutter);
  }
  .live .live-map {
    height: 420px;
  }
}

/* ---- History filmstrip -------------------------------------------------------------- */

.history {
  background: #0e2b2b;
  color: var(--white);
  padding-block: clamp(56px, 8vw, 96px);
}
.history .eyebrow {
  color: var(--gold-light);
}
.history-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: end;
}
.history-head p:last-child {
  color: rgb(255 255 255 / 0.75);
}
.history-head .section-title {
  margin-top: 10px;
}
.filmstrip {
  list-style: none;
  margin: 40px 0 0;
  padding: 14px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-block: 6px dashed rgb(255 255 255 / 0.12);
}
.filmstrip li {
  display: grid;
  gap: 10px;
}
.filmstrip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.85) sepia(0.15);
}
.filmstrip p {
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.8);
}
.filmstrip strong {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-right: 6px;
}
@media (max-width: 860px) {
  .history-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .filmstrip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .filmstrip li {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}

/* ---- News, join, community ----------------------------------------------------------- */

.news-band {
  background: var(--sand-95);
}
.join-band {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.join-card {
  background:
    radial-gradient(circle at 90% 10%, rgb(201 162 78 / 0.28), transparent 50%),
    var(--jade);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.join-card .eyebrow {
  color: var(--gold-light);
}
.join-card .section-title {
  margin-top: 8px;
}
.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: rgb(255 255 255 / 0.88);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  font-weight: 650;
  color: var(--white);
}
.steps strong {
  color: var(--white);
}
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.community {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}
.community h2 {
  font-size: 1.35rem;
}
.community .partners-title {
  margin-top: 18px;
}
.community .partners {
  justify-content: flex-start;
}
@media (max-width: 860px) {
  .join-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
