/* ==========================================================================
   Classic Marine & Services (M) Sdn Bhd — Stylesheet
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

/* ---- Variables ---- */
:root {
  --navy-950: #071226;
  --navy-900: #0b1c33;
  --navy-800: #13294a;
  --navy-700: #1c3a63;
  --orange-600: #b8891f;
  --orange-500: #d6a92c;
  --orange-400: #e8c96a;
  --black: #0d0d0d;
  --white: #ffffff;
  --offwhite: #f8f6f2;
  --gray-100: #eeebe5;
  --gray-300: #d8d4cb;
  --gray-500: #9a9488;
  --gray-700: #5a564d;
  --text-dark: #201e1a;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow-sm: 0 4px 14px rgba(13, 13, 13, 0.08);
  --shadow-md: 0 14px 40px rgba(7, 18, 38, 0.16);
  --container: 1180px;
  --header-h: 66px;
  --ff-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--offwhite { background: var(--offwhite); }

/* ---- Subtle entrance motion ---- */
.motion-ready .reveal-section {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.motion-ready .reveal-section .reveal-item {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 80ms);
  will-change: opacity, transform;
}
.motion-ready .reveal-section.is-visible,
.motion-ready .reveal-section.is-visible .reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-vessel main > .section:not(.section--tight) {
  padding-block: 52px;
}
.page-vessel main > .section--tight {
  padding-block: 36px;
}
.page-vessel .vessel-intro-section {
  padding-bottom: 48px;
}
.page-vessel .vessel-gallery-section {
  padding-top: 72px;
}

.eyebrow {
  font-family: var(--ff-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--orange-600);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-title--watermark {
  position: relative;
}
.section-title--watermark::before {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.8rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 800;
  color: var(--gray-100);
  z-index: -1;
  white-space: nowrap;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.section-title--watermark-left::before {
  left: 0;
  transform: translateY(-50%);
}

.section-lead {
  max-width: 760px;
  color: var(--gray-700);
  font-size: 1.05rem;
}
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.74rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--navy-950); }
.btn--orange { background: var(--orange-500); color: var(--white); }
.btn--orange:hover { background: var(--orange-600); }
.btn--outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn--flag {
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  padding-right: 38px;
}
.btn--flag:hover { transform: none; }

/* ---- Brand mark (decorative, non-interactive) ---- */
.brand-mark {
  display: flex;
  gap: 6px;
  width: fit-content;
}
.brand-mark span {
  width: 22px;
  height: 22px;
  border-radius: 0;
}
.brand-mark span:nth-child(1) { background: var(--black); }
.brand-mark span:nth-child(2) { background: var(--orange-500); }
.brand-mark--single span:nth-child(2) { display: none; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(7,18,38,0.85), rgba(7,18,38,0));
  transition: background 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  background: rgba(228, 179, 38, 0.3);
  border: 1px solid rgba(228, 179, 38, 0.4);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(6px);
}
.main-nav a {
  display: block;
  padding: 7px 16px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: transparent;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}
.main-nav a.is-active {
  background: var(--orange-500);
  color: var(--navy-950);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800) 55%, var(--navy-700));
}
.hero--sm { min-height: clamp(400px, 34vw, 420px); }
.hero--home {
  min-height: clamp(500px, 42vw, 560px);
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.48), rgba(7, 18, 38, 0.62)),
    url('../assets/home_header_wide.png') center center / cover no-repeat;
}
.hero--home .hero__kicker,
.hero--home .hero__title {
  color: var(--white);
}
.hero--about {
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.44), rgba(7, 18, 38, 0.6)),
    url('../assets/aboutusheader_wide.png') center center / cover no-repeat;
}
.hero--vessel {
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.38), rgba(7, 18, 38, 0.58)),
    url('../assets/vessel_header_wide.png') center 48% / cover no-repeat;
}
.hero--catering {
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.34), rgba(7, 18, 38, 0.56)),
    url('../assets/catering_header_wide.png') center 52% / cover no-repeat;
}
.hero--fleet {
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.32), rgba(7, 18, 38, 0.54)),
    url('../assets/header_fleet_wide.png') center 52% / cover no-repeat;
}
.hero--contact {
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.38), rgba(7, 18, 38, 0.58)),
    url('../assets/contact_header_wide.png') center 50% / cover no-repeat;
}
.hero__bg-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--ff-body);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 70% 30%, rgba(224,142,43,0.18), transparent 60%);
  animation: hero-overlay-fade 900ms ease-out both;
}
@keyframes hero-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}
.hero__kicker {
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  max-width: 820px;
  margin-inline: auto;
}

/* ---- Image placeholders ---- */
.ph {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--gray-100), var(--gray-100) 10px, #f3f1ec 10px, #f3f1ec 20px);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
  color: var(--gray-500);
  text-align: center;
  overflow: hidden;
}
.ph::before {
  content: "🖼  " attr(data-label);
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 14px;
  max-width: 90%;
}
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--3x2 { aspect-ratio: 3 / 2; }

/* ---- Welcome strip (home) ---- */
.welcome {
  padding: 18px 0 0;
  text-align: center;
}
.welcome .container {
  max-width: var(--container);
}
.welcome__mark {
  margin-bottom: 44px;
}
.welcome__panel {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  min-height: 190px;
  display: grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  justify-content: center;
  column-gap: clamp(36px, 5vw, 68px);
  padding: 42px 88px 42px 48px;
  border-radius: 0;
  background: rgba(214, 169, 44, 0.12);
}
.intro-box {
  max-width: 820px;
  margin-inline: auto;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
  background: rgba(214, 169, 44, 0.12);
}
.welcome__logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0;
}
.welcome__divider {
  width: 1px;
  height: 92px;
  background: rgba(11, 28, 51, 0.18);
}
.welcome__copy {
  max-width: 680px;
  text-align: left;
}
.welcome__eyebrow {
  margin: 0 0 9px;
  color: var(--orange-600);
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.welcome__text {
  max-width: 850px;
  margin: 0;
  padding-left: 42px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--navy-900);
}

/* ---- Service rows (home) ---- */
.home-services__title {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: clamp(26px, 3.5vw, 40px);
  align-items: center;
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 32px;
}
.service-row:last-child { margin-bottom: 0; }
.service-row--reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.35fr);
}
.service-row--reverse .service-row__media { order: 1; }
.service-row--reverse .service-row__text {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.service-row--reverse .service-row__text h3::after {
  margin-left: auto;
}
@media (min-width: 761px) {
  .service-row--reverse .btn--flag {
    padding-right: 24px;
    padding-left: 38px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
  }
}
.service-row__text h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  text-transform: none;
}
.service-row__text h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  background: var(--orange-500);
}
.service-row__text p {
  color: var(--gray-700);
  margin-bottom: 22px;
}
.service-row__media {
  position: relative;
  width: 100%;
  max-width: 370px;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  overflow: hidden;
  box-shadow:
    10px 10px 0 rgba(214, 169, 44, 0.14),
    0 16px 34px rgba(7, 18, 38, 0.12);
}
.service-row--reverse .service-row__media {
  justify-content: flex-start;
  justify-self: start;
}
.service-row__image {
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---- Vision / Mission (about) ---- */
.vm-section {
  position: relative;
}
.vm-image {
  position: absolute;
  inset: 0;
  left: auto;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  z-index: 1;
}
.vm-gold {
  position: absolute;
  left: 0;
  width: 52%;
  height: 12px;
  background: var(--orange-500);
  z-index: 2;
}
.vm-gold--top { top: -6px; }
.vm-gold--bottom { bottom: -6px; }
.vm-panel {
  position: relative;
  z-index: 3;
  width: 58%;
  background: var(--navy-950);
  padding: 28px 56px 28px 40px;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}
.vm-card { margin-bottom: 14px; }
.vm-card:last-child { margin-bottom: 0; }
.vm-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
}
.vm-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}
.about-intro {
  max-width: none;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* ---- Accordion (policies) ---- */
.accordion { max-width: 820px; }
.accordion-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--navy-900);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.accordion-item:nth-child(even) .accordion-trigger {
  background: var(--orange-500);
}
.accordion-trigger .chevron { transition: transform 0.25s ease; }
.accordion-item.is-open .chevron { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white);
  color: var(--gray-700);
}
.accordion-panel__inner { padding: 18px 22px; }
.policy-document {
  display: block;
  width: 100%;
  height: auto;
}
.policy-intro {
  text-align: justify;
  text-justify: inter-word;
}

/* ---- Carousel (license, gallery, awards) ---- */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 0; }
.carousel__item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
.carousel__item--wide { width: 320px; }

.carousel--center-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.carousel--center-nav .carousel__viewport {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
}
.carousel--center-nav .carousel__track {
  display: flex;
  gap: 18px;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  transition: transform 0.45s ease;
  will-change: transform;
}
.carousel--center-nav .carousel__item {
  flex: 0 0 220px;
  opacity: 1;
  filter: none;
  transform: scale(0.82);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.carousel--center-nav .carousel__item.is-center {
  opacity: 1;
  transform: scale(1.18);
  z-index: 2;
}
.project-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.carousel--center-nav .carousel__btn,
.carousel--bare-nav .carousel__btn {
  position: static;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: none;
  color: var(--navy-900);
  font-size: 2.2rem;
  line-height: 1;
}
.carousel--center-nav .carousel__btn:hover,
.carousel--bare-nav .carousel__btn:hover {
  background: none;
  color: var(--orange-600);
}
@media (max-width: 760px) {
  .carousel--center-nav .carousel__item { flex-basis: 150px; }
}
.carousel__btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.carousel__btn:hover { background: var(--orange-500); }

/* ---- License & certificates showcase ---- */
.license-section {
  overflow: hidden;
}
.license-showcase {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}
.license-showcase__title {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.35vw, 2.35rem);
  line-height: 1.18;
}
.license-carousel {
  min-width: 0;
  gap: clamp(12px, 2vw, 24px);
}
.license-carousel .carousel__track {
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(24px, 3vw, 36px);
  padding: 0;
  scrollbar-width: none;
}
.license-carousel .carousel__track::-webkit-scrollbar {
  display: none;
}
.license-carousel .carousel__item {
  display: flex;
  align-items: center;
  width: clamp(250px, calc((100% - 36px) / 2), 360px);
  padding: 10px;
  border: 1px solid var(--gray-300);
  background: var(--white);
}
.license-carousel__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 0;
}
.license-carousel__image:is(img) {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--white);
}
.license-carousel .carousel__btn {
  width: auto;
  height: auto;
  padding: 8px;
  border-radius: 0;
  background: transparent;
  color: var(--navy-900);
  font-size: 2.7rem;
  line-height: 1;
}
.license-carousel .carousel__btn:hover {
  background: transparent;
  color: var(--orange-600);
}
.license-carousel .carousel__btn:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

/* ---- Awards (vessel chartering) ---- */
.awards {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 1120px;
  margin: 34px auto 0;
}
.awards .carousel--bare-nav {
  width: 100%;
  max-width: 680px;
  min-width: 0;
  justify-self: center;
  gap: 10px;
}
.awards .carousel__track {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  gap: 16px;
  scrollbar-width: none;
}
.awards .carousel__track::-webkit-scrollbar {
  display: none;
}
.awards .carousel__item--wide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 16px) / 2);
  width: calc((100% - 16px) / 2);
  height: clamp(200px, 18vw, 240px);
  padding: 0;
  border: 0;
  background: transparent;
}
.awards__text {
  position: relative;
  background: rgba(214, 169, 44, 0.12);
  min-height: 150px;
  padding: 44px clamp(28px, 4vw, 48px) 30px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.awards__text::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 46%;
  height: 4px;
  background: var(--navy-900);
}
.awards__text h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}
.awards__text p { color: var(--gray-700); }
.awards__title {
  position: absolute;
  top: -30px;
  left: clamp(24px, 5vw, 54px);
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  text-align: left;
}
.award-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--white);
}

@media (max-width: 600px) {
  .awards .carousel__item--wide {
    height: 240px;
  }
}

/* ---- Gallery grid (offshore catering) ---- */
.gallery-container {
  max-width: var(--container);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}
.gallery-grid__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}
.project-gallery__image,
.award-gallery__image {
  cursor: zoom-in;
}
.gallery-grid__image:focus-visible,
.project-gallery__image:focus-visible,
.award-gallery__image:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}
.gallery-lightbox {
  width: min(92vw, 1200px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}
.gallery-lightbox[open] {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.gallery-lightbox::backdrop {
  background: rgba(4, 11, 24, 0.9);
}
.gallery-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 88vh;
  margin: 0;
  object-fit: contain;
}
.gallery-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--navy-900);
  font-size: 1.8rem;
  line-height: 1;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Clients ---- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.client-logo {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 160px;
  height: 100px;
  padding: 10px;
  background: var(--white);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease;
}
.client-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (hover: hover) and (pointer: fine) {
  .client-logo:hover {
    z-index: 1;
    transform: translateY(-5px) scale(1.045);
    box-shadow: 0 14px 30px rgba(7, 18, 38, 0.16);
  }
}
@media (max-width: 760px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Fleet cards ---- */
.fleet-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 200px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: center;
  width: 100%;
  max-width: 920px;
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 3vw, 34px);
  margin: 0 auto 20px;
  background: var(--offwhite);
  overflow: hidden;
}
.fleet-card:last-child { margin: 0 auto; }
.fleet-card::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 24px;
  height: 3px;
  background: var(--navy-800);
  transform: rotate(-34deg);
  transform-origin: center;
}
.fleet-card > .ph {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.fleet-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.fleet-card > div:last-child {
  max-width: 720px;
  min-width: 0;
  padding-right: 28px;
}
.fleet-card .brand-mark {
  position: absolute;
  top: 20px;
  right: 28px;
}
.fleet-card .brand-mark span {
  width: 18px;
  height: 18px;
}
.fleet-card__type {
  font-family: var(--ff-heading);
  font-style: italic;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 0.9rem;
  line-height: 1.25;
  margin-bottom: 3px;
  padding-right: 74px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fleet-card__name {
  font-size: 1.15rem;
  padding: 0 74px 5px 0;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fleet-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.fleet-specs > div,
.fleet-specs > div[style] {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  grid-column: auto !important;
  gap: 10px;
  align-items: baseline;
}
.fleet-specs dt {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.73rem;
  line-height: 1.3;
}
.fleet-specs dt::after {
  content: " :";
}
.fleet-specs dd {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0;
  font-size: 0.73rem;
  line-height: 1.3;
}

/* ---- Contact page ---- */
.contact-map-section {
  position: relative;
  min-height: 720px;
  background-color: #f6f3ed;
  overflow: hidden;
  isolation: isolate;
}
.contact-map-section::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: url('../assets/world_map.png') center / cover no-repeat;
  filter: saturate(0.15) contrast(0.65) brightness(1.18) blur(0.6px);
  opacity: 0.28;
  pointer-events: none;
}
.contact-layout {
  position: relative;
  z-index: 1;
}
.contact-layout__mark {
  position: absolute;
  top: -38px;
  right: 24px;
}
.contact-intro {
  max-width: 650px;
  margin-bottom: clamp(70px, 10vw, 130px);
}
.contact-intro h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 14px;
  text-transform: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
  max-width: 1050px;
}
.contact-emails a {
  color: var(--navy-900);
  font-weight: 600;
}
.contact-emails a:hover { color: var(--orange-600); }
.contact-emails p {
  margin-bottom: 2px;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.contact-map-frame {
  position: relative;
  min-height: 360px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(7, 18, 38, 0.13);
  border: 8px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.68) contrast(0.94);
}

.contact-info-card {
  background: transparent;
  color: var(--text-dark);
  padding: 28px 0;
  margin: 0;
  font-style: normal;
}
.contact-info-card h3 {
  color: var(--orange-600);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 22px;
}
.contact-info-row {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: center;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row .icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-row .icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--orange-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-row p {
  color: var(--text-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}
.contact-info-row strong {
  display: block;
  margin-bottom: 1px;
}
.contact-info-row a:hover { color: var(--orange-600); }

.contact-message {
  padding: 0 0 24px;
  background: var(--white);
}
.contact-message .container {
  max-width: none;
  padding-inline: 0;
}
.contact-message__panel {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 64px;
  background: var(--orange-500);
}
.contact-message__panel p {
  max-width: 850px;
  margin: 0;
  color: var(--white);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.65;
}
/* ---- Footer ---- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  position: relative;
  z-index: 2;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-brand h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.footer-col h5 {
  color: var(--white);
  font-family: var(--ff-heading);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--orange-400); }
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }

.footer-wave {
  position: relative;
  height: 90px;
  overflow: hidden;
}
.footer-wave svg { position: absolute; bottom: -1px; width: 100%; height: 100%; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-950);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 360px; }
  .main-nav ul {
    flex-direction: column;
    padding: 14px 24px 20px;
    gap: 10px;
    background: none;
    border: none;
    border-radius: 0;
  }
  .main-nav a { padding: 12px 18px; text-align: center; background: rgba(255, 255, 255, 0.1); }
  .main-nav a.is-active { background: var(--orange-500); }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    gap: 30px;
    max-width: 680px;
  }
  .contact-intro { margin-bottom: 64px; }
  .contact-info-card { padding: 10px 0 0; }

  .vm-section { display: flex; flex-direction: column; }
  .vm-image {
    position: static;
    width: 100%;
    height: 220px;
    border-radius: var(--radius-lg);
    order: 1;
  }
  .vm-gold { display: none; }
  .vm-panel {
    position: static;
    width: 100%;
    clip-path: none;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--orange-500);
    padding: 28px 28px;
    margin-top: 16px;
    order: 2;
  }

  .fleet-card {
    grid-template-columns: minmax(150px, 0.55fr) 1fr;
    padding: 20px 22px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .license-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .license-showcase__title br { display: none; }
  .license-carousel .carousel__item {
    width: min(72vw, 340px);
  }
}

@media (max-width: 760px) {
  .awards {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 680px;
  }
  .service-row--reverse .service-row__media,
  .service-row--reverse .service-row__text { order: 0; }
  .service-row--reverse .service-row__text {
    align-items: flex-start;
    text-align: left;
  }
  .service-row--reverse .service-row__text h3::after {
    margin-left: 0;
  }
  .service-row__media,
  .service-row--reverse .service-row__media {
    justify-content: center;
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .site-header .container { padding-inline: 14px; }
  .brand {
    min-width: 0;
    gap: 6px;
  }
  .brand span {
    font-size: clamp(0.54rem, 2.45vw, 0.62rem);
    white-space: nowrap;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .policy-intro { text-align: left; }
  .page-vessel .vessel-gallery-section { padding-top: 48px; }
  .welcome { padding-top: 18px; }
  .welcome__mark { margin-bottom: 24px; }
  .welcome__panel {
    min-height: 150px;
    grid-template-columns: auto 1px auto;
    column-gap: 24px;
    padding: 30px 20px;
  }
  .welcome__logo {
    width: 58px;
    height: 58px;
    margin: 0;
  }
  .welcome__divider { height: 72px; }
  .welcome__eyebrow {
    margin-bottom: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
  }
  .welcome__text {
    padding-left: 20px;
    font-size: 0.7rem;
    line-height: 1.45;
  }
  .service-row__media {
    box-shadow:
      7px 7px 0 rgba(214, 169, 44, 0.14),
      0 12px 26px rgba(7, 18, 38, 0.1);
  }
  .contact-layout__mark {
    top: -24px;
    right: 24px;
  }
  .contact-intro { margin-bottom: 48px; }
  .contact-map-frame { min-height: 300px; }
  .contact-info-card h3 { padding-right: 42px; }
  .contact-message { padding-bottom: 20px; }
  .contact-message__panel {
    min-height: 180px;
    padding: 34px 24px;
  }
  .contact-message__panel p {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .fleet-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .fleet-card > .ph,
  .fleet-card__image {
    width: min(100%, 220px);
    aspect-ratio: 4 / 3;
  }
  .fleet-card > div:last-child {
    padding-right: 0;
  }
  .fleet-card .brand-mark {
    top: 20px;
    right: 20px;
  }
  .fleet-card::after {
    right: 20px;
    bottom: 18px;
  }
  .fleet-card__type,
  .fleet-card__name {
    padding-right: 0;
  }
  .fleet-card__name {
    padding-bottom: 7px;
  }
  .fleet-specs > div,
  .fleet-specs > div[style] {
    grid-template-columns: minmax(110px, 0.7fr) 1fr;
  }
  .license-carousel { gap: 4px; }
  .license-carousel .carousel__btn {
    padding-inline: 4px;
    font-size: 2.25rem;
  }
  .license-carousel .carousel__item {
    width: min(72vw, 300px);
  }
}

@media (max-width: 420px) {
  .welcome__panel {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 28px 18px;
  }
  .welcome__logo,
  .welcome__divider {
    justify-self: center;
  }
  .welcome__divider {
    width: 58px;
    height: 1px;
  }
  .welcome__copy { text-align: center; }
  .welcome__text { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .client-logo,
  .client-logo:hover {
    transform: none;
    transition: none;
  }
  .hero::after {
    animation: none;
    opacity: 1;
    will-change: auto;
  }
  .motion-ready .reveal-section,
  .motion-ready .reveal-section .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
