/* ==========================================================================
   CHINA RICKMIX MARINE SURVEY CO., LTD (上海瑞克迈斯海事服务有限公司)
   Official Bilingual Corporate Website Stylesheet — Maritime Precision UI
   ========================================================================== */

:root {
  /* Official Rickmix Brand Palette (from Business Card & Letterhead VI) */
  --navy-950: #041026;
  --navy-900: #071d42;
  --navy-850: #0a2554;
  --navy-800: #0f316b;
  --royal-700: #164b87;
  --royal-600: #1b5da1;
  --wave-500: #3684cf;
  --wave-400: #569ee3;
  --wave-100: #e6f1fc;
  --wave-50: #f2f8fe;

  /* Operational Signal Accents */
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --emerald-500: #10b981;

  /* Neutral Engineering Surfaces */
  --bg-white: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-muted: #edf2f8;
  --border-light: #dde6f0;
  --border-strong: #c4d3e3;
  --text-primary: #0b1e3b;
  --text-secondary: #3b4e6b;
  --text-muted: #64748b;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Elevation & Geometry */
  --shadow-xs: 0 1px 3px rgba(7, 29, 66, 0.05);
  --shadow-sm: 0 4px 14px rgba(7, 29, 66, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 29, 66, 0.1);
  --shadow-lg: 0 24px 56px rgba(4, 16, 38, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1260px;
  --transition: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   1. Top 24/7 Maritime Operations Bar
   ========================================================================== */
.utility-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(86, 158, 227, 0.18);
  position: relative;
  z-index: 1001;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ops-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(27, 93, 161, 0.35);
  border: 1px solid rgba(86, 158, 227, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.maritime-clock {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.maritime-clock strong {
  color: var(--wave-400);
  font-weight: 600;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.utility-link:hover {
  color: var(--amber-500);
}

.utility-divider {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.18);
}

/* Language Toggle Pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--wave-400);
  color: var(--navy-950);
}

/* ==========================================================================
   2. Main Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name-main {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  white-space: nowrap;
}

.brand-name-main span {
  color: var(--royal-600);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-badge {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-text {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-brand-text span {
  color: var(--wave-400);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--royal-600);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--royal-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-size: 0.925rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal-600), var(--navy-800));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(27, 93, 161, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--royal-700), var(--navy-900));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 93, 161, 0.36);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.32);
}

.btn-amber:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.42);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
}

.btn-outline-navy {
  background: #ffffff;
  color: var(--royal-600);
  border-color: var(--border-strong);
}

.btn-outline-navy:hover {
  border-color: var(--royal-600);
  background: var(--wave-50);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--navy-900);
  cursor: pointer;
}

/* ==========================================================================
   3. Hero Section — Maritime Authority & Immediate Clarity
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-950);
  color: #ffffff;
  padding: 88px 0 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.64;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      98deg,
      rgba(4, 16, 38, 0.94) 0%,
      rgba(7, 29, 66, 0.82) 48%,
      rgba(7, 29, 66, 0.34) 100%
    ),
    linear-gradient(180deg, rgba(4, 16, 38, 0.22) 0%, rgba(4, 16, 38, 0.88) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(86, 158, 227, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 158, 227, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(27, 93, 161, 0.34);
  border: 1px solid rgba(86, 158, 227, 0.42);
  color: #dbeafe;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title .accent {
  color: #7cc0ff;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: rgba(226, 238, 255, 0.88);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-ctas .btn {
  padding: 14px 26px;
  font-size: 0.98rem;
}

/* Hero Metrics Strip */
.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-card {
  background: rgba(10, 37, 84, 0.56);
  border: 1px solid rgba(86, 158, 227, 0.24);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
}

.metric-value span {
  color: var(--wave-400);
}

.metric-label {
  font-size: 0.84rem;
  color: rgba(219, 234, 254, 0.84);
  line-height: 1.45;
}

/* ==========================================================================
   4. Standards & Technical Compliance Ribbon
   ========================================================================== */
.standards-ribbon {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}

.standards-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.standards-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal-600);
  white-space: nowrap;
}

.standards-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.std-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-850);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow-xs);
}

.std-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal-600);
  display: inline-block;
}

/* ==========================================================================
   5. Common Section Typography
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-850) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--royal-600);
  margin-bottom: 10px;
}

.section-dark .section-kicker {
  color: var(--wave-400);
}

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.section-dark .section-desc {
  color: rgba(219, 234, 254, 0.82);
}

/* ==========================================================================
   6. About Rickmix & Client Sectors
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.about-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-850);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-body {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.pillar-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--royal-600);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.pillar-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.pillar-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.about-visual {
  position: relative;
}

.about-photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  aspect-ratio: 4 / 3;
}

.about-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--navy-900);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(86, 158, 227, 0.35);
  max-width: 300px;
}

.about-floating-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-500);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.about-floating-card p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* Client Sectors Bar */
.sectors-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sector-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.sector-card:hover {
  border-color: var(--wave-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.sector-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--wave-50);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sector-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sector-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   7. Seven Core Services Matrix (01 – 07 Business Card Alignment)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--royal-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card.featured-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
}

.service-media {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: var(--navy-900);
}

.service-card.featured-wide .service-media {
  height: 100%;
  min-height: 270px;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(7, 29, 66, 0.9);
  color: #7cc0ff;
  border: 1px solid rgba(86, 158, 227, 0.45);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
  line-height: 1.35;
}

.service-sub-en {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--royal-600);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.65;
}

.service-bullets {
  list-style: none;
  margin-bottom: 18px;
  display: grid;
  gap: 7px;
}

.service-card.featured-wide .service-bullets {
  grid-template-columns: repeat(2, 1fr);
}

.service-bullets li {
  font-size: 0.84rem;
  color: var(--text-primary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wave-500);
}

.deliverables-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deliverable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--wave-50);
  color: var(--royal-700);
  border: 1px solid #cfe3f8;
  padding: 2px 8px;
  border-radius: 4px;
}

.nominate-link {
  background: transparent;
  border: none;
  color: var(--royal-600);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nominate-link:hover {
  color: var(--amber-600);
}

/* ==========================================================================
   8. Five Operational & Quality Control Iron Rules (Dark Technical Section)
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rule-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(86, 158, 227, 0.22);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: all var(--transition);
}

.rule-card:hover {
  background: rgba(27, 93, 161, 0.24);
  border-color: var(--wave-400);
  transform: translateY(-3px);
}

.rule-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-500);
  margin-bottom: 12px;
  display: block;
}

.rule-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  line-height: 1.4;
}

.rule-card p {
  font-size: 0.84rem;
  color: rgba(219, 234, 254, 0.8);
  line-height: 1.65;
}

/* ==========================================================================
   9. Interactive Port Coverage Network
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--royal-600);
  color: var(--royal-600);
}

.tab-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.ports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.port-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition);
}

.port-card:hover {
  border-color: var(--royal-600);
  box-shadow: var(--shadow-sm);
}

.port-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.port-name {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy-900);
}

.port-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.eta-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.eta-badge.fast {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.eta-badge.direct {
  background: var(--wave-100);
  color: var(--royal-700);
  border: 1px solid #b6d6f6;
}

.eta-badge.network {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.port-terminals {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.port-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--bg-muted);
  font-size: 0.8rem;
}

.gate-pass-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ==========================================================================
   10. Authentic Field Cases & Lightbox Gallery
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--wave-400);
}

.case-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-950);
  cursor: zoom-in;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img-wrap img {
  transform: scale(1.05);
}

.case-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(4, 16, 38, 0.86);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
}

.zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(4, 16, 38, 0.7);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.case-img-wrap:hover .zoom-hint {
  opacity: 1;
}

.case-content {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--royal-600);
  font-weight: 600;
  margin-bottom: 6px;
}

.case-content h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.case-content p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   11. Instruct a Surveyor / Nomination Center & Senior Surveyor Cards
   ========================================================================== */
.dispatch-layout {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 36px;
  align-items: start;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.surveyor-card {
  background: var(--navy-900);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid rgba(86, 158, 227, 0.3);
  position: relative;
  overflow: hidden;
}

.surveyor-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 4px;
  background: var(--wave-400);
}

.surveyor-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.surveyor-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.surveyor-en {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--wave-400);
  font-weight: 700;
}

.surveyor-role {
  font-size: 0.83rem;
  color: rgba(219, 234, 254, 0.78);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.surveyor-contacts {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-row a {
  color: #ffffff;
  font-weight: 500;
}

.contact-row a:hover {
  color: var(--amber-500);
}

.copy-mini-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.copy-mini-btn:hover {
  background: var(--wave-400);
  color: var(--navy-950);
}

.office-hq-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.office-hq-box h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.office-hq-box p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Nomination Form Box */
.nomination-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.nomination-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.nomination-box-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
}

.ref-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--royal-700);
  background: var(--wave-50);
  border: 1px solid #c5def7;
  padding: 4px 10px;
  border-radius: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--navy-900);
}

.form-control {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-600);
  box-shadow: 0 0 0 3px rgba(27, 93, 161, 0.14);
}

textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.nomination-preview {
  margin-top: 18px;
  background: var(--navy-950);
  color: #dbeafe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 175px;
  overflow-y: auto;
  border: 1px solid rgba(86, 158, 227, 0.3);
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 210px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 32px;
  border-top: 3px solid var(--royal-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-about {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(219, 234, 254, 0.74);
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--wave-400);
}

.footer-disclaimer {
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.6;
}

.finally-clause {
  max-width: 760px;
  font-style: italic;
}

/* ==========================================================================
   13. Leadership Team, Credentials, Ecosystem & Client Downloads
   ========================================================================== */
.credentials-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.cred-card {
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fd 100%);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--royal-600);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.cred-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--royal-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

.cred-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.cred-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.leader-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  position: relative;
}

.leader-card:hover {
  border-color: var(--royal-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.leader-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.leader-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--royal-600));
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--wave-100);
}

.leader-title-wrap h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
}

.leader-title-wrap .en-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-600);
}

.leader-role-line {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.leader-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.l-badge {
  font-size: 0.73rem;
  font-weight: 700;
  background: var(--wave-50);
  color: var(--royal-700);
  border: 1px solid #cbe0f7;
  padding: 2px 8px;
  border-radius: 999px;
}

.leader-bio {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 18px;
  flex: 1;
}

.leader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.btn-xs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--navy-900);
  transition: all var(--transition);
}

.btn-xs:hover {
  border-color: var(--royal-600);
  color: var(--royal-600);
  background: var(--wave-50);
}

.btn-xs.primary-xs {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.btn-xs.primary-xs:hover {
  background: var(--royal-600);
  border-color: var(--royal-600);
}

/* Ecosystem Box */
.ecosystem-panel {
  background: var(--navy-900);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(86, 158, 227, 0.3);
}

.ecosystem-head {
  margin-bottom: 22px;
}

.ecosystem-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.ecosystem-head p {
  font-size: 0.88rem;
  color: rgba(219, 234, 254, 0.8);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.eco-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(86, 158, 227, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.eco-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7cc0ff;
  margin-bottom: 10px;
}

.eco-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.eco-pill {
  font-size: 0.78rem;
  background: rgba(4, 16, 38, 0.55);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 5px;
}

/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dl-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.dl-card:hover {
  border-color: var(--royal-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.dl-type-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 800;
  background: var(--wave-100);
  color: var(--royal-700);
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.dl-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.38;
}

.dl-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.dl-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-btn-row .btn {
  padding: 9px 14px;
  font-size: 0.83rem;
  flex: 1;
}

/* QR Connect Modal */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  background: rgba(4, 16, 38, 0.86);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-modal.open {
  display: flex;
}

.qr-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-strong);
}

.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.qr-modal-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
}

.qr-close-btn {
  background: var(--bg-muted);
  border: none;
  color: var(--navy-900);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

.qr-person-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.qr-person-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.qr-person-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.qr-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.qr-pane {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}

.qr-pane h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.qr-pane .qr-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.qr-img-frame {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  width: 176px;
  height: 176px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-id-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--royal-700);
  margin-bottom: 10px;
}

/* ==========================================================================
   14. Lightbox Modal & Toast Notification
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 16, 38, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1020px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-inner img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2100;
  background: var(--navy-900);
  color: #ffffff;
  border-left: 4px solid var(--emerald-500);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   14. Responsive Design (Tablet & Berth-Side Mobile UX)
   ========================================================================== */
@media (max-width: 1140px) {
  .brand-logo img {
    height: 36px;
    width: 36px;
  }
  .brand-name-main {
    font-size: 1.02rem;
  }
  .rules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card.featured-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .about-grid,
  .dispatch-layout {
    grid-template-columns: 1fr;
  }
  .about-floating-card {
    position: static;
    margin-top: 14px;
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .maritime-clock {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: 118px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 2px solid var(--royal-600);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .hero-metrics,
  .sectors-grid,
  .ports-grid,
  .cases-grid,
  .credentials-banner,
  .team-grid,
  .downloads-grid,
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .brand-logo img {
    height: 32px;
    width: 32px;
  }
  .brand-name-main {
    font-size: 0.94rem;
  }
  .header-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero-metrics,
  .sectors-grid,
  .services-grid,
  .rules-grid,
  .ports-grid,
  .cases-grid,
  .form-grid,
  .about-pillars,
  .footer-grid,
  .credentials-banner,
  .team-grid,
  .downloads-grid,
  .ecosystem-grid,
  .qr-dual-grid {
    grid-template-columns: 1fr;
  }
  .service-card.featured-wide {
    grid-column: span 1;
  }
  .service-card.featured-wide .service-bullets {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .nomination-box {
    padding: 22px 18px;
  }
}
