/* ==========================================================================
   MARENOVA SURVEYORS — style.css  (Revamp: corporate maritime / B2B)
   Palet : putih bersih · navy tua · abu-abu terang · aksen emas
   Font  : Inter (sudah dimuat di <head>)
   Catatan: semua ID/class yang dipakai script.js & popup.js dipertahankan.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
    --navy-950: #071731;
    --navy-900: #0a1f3d;
    --navy-800: #0f2a52;
    --navy-700: #16386b;

    --gold: #c9a24b;
    --gold-600: #a98430;
    --gold-300: #e6cd8f;
    --gold-100: #f7f0de;

    --ink: #14233b;
    --ink-soft: #3b4c66;
    --muted: #62718a;
    --ice: #f4f7fb;
    --line: #e2e8f1;
    --white: #fff;
    --danger: #d93025;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1240px;
    --gutter: 24px;
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 84px;

    --shadow-sm: 0 2px 10px rgba(10, 31, 61, .06);
    --shadow: 0 20px 46px -16px rgba(10, 31, 61, .22);
    --shadow-lg: 0 30px 60px -20px rgba(10, 31, 61, .4);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 400 16px/1.7 var(--font);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .6em;
    color: var(--navy-900);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

p {
    margin: 0 0 1.1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

.wrap {
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 2000;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

:focus-visible {
    outline: 3px solid rgba(201, 162, 75, .85);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- 3. TOP BAR (opsional, lihat HTML) ---------- */
.topbar {
    background: var(--navy-950);
    color: #aebcd3;
    font-size: .82rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 40px;
}

.topbar p {
    margin: 0;
}

.topbar ul {
    display: flex;
    gap: 28px;
}

.topbar a {
    text-decoration: none;
    transition: color .2s;
}

.topbar a:hover {
    color: var(--gold-300);
}

/* ---------- 4. HEADER & NAV ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
    padding-top: 5px; 
    padding-bottom: 5px;
}

.site-header.scrolled {
    box-shadow: 0 12px 30px -14px rgba(10, 31, 61, .25);
}

.header-container {
    width: min(var(--container), 100% - var(--gutter) * 2);
    min-height: var(--header-h);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: min-height .3s var(--ease);
}

.site-header.scrolled .header-container {
    min-height: 70px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    width: auto;
    height: 83px;
    transition: height .3s var(--ease);
}

.site-header.scrolled .logo img {
    height: 81px;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul a {
    position: relative;
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s;
}

nav ul a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

nav ul a:hover {
    color: var(--navy-700);
}

nav ul a:hover::after,
nav ul a.on::after {
    transform: scaleX(1);
}

nav ul a.on {
    color: var(--navy-900);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.burger span {
    width: 20px;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.sm {
    padding: 11px 20px;
    font-size: .88rem;
}

.btn.gold {
    background: var(--gold);
    color: var(--navy-950);
}

.btn.gold:hover {
    background: var(--gold-300);
    box-shadow: 0 14px 28px -10px rgba(201, 162, 75, .7);
}

.btn.white {
    background: #fff;
    color: var(--navy-900);
}

.btn.white:hover {
    background: var(--ice);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .45);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn.ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy-900);
}

/* ---------- 6. HERO SLIDER ---------- */
.hero {
    position: relative;
    width: 100%;
    height: clamp(640px, calc(100vh - 124px), 800px);
    background: var(--navy-950);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.ship-content h1 {
  padding-bottom: 0.8em;     /* ruang untuk tagline, karena posisinya absolute */
}

.ship-content h1 .last-word {
  position: relative;
  display: inline-block;     /* kotaknya membungkus kata "Surveyors" saja */
}

.ship-content h1 .hl {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
    white-space: nowrap;
    text-align: left;

/* ditambah dengan kode ::before untuk garis emasnya */

  /* reset styling lama */
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;

  /* gaya baru */
  color: var(--gold);        /* sama dengan .badge di atas judul */
  font-weight: 700;
  font-style: italic;
  font-size: 0.32em;         /* relatif terhadap ukuran h1 */
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-top: 0.25em;
}

/* garis emas tipis di dasar hero */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), rgba(201, 162, 75, 0) 60%);
}

.wave {
    display: none;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 0 130px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 0s linear 1s;
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s var(--ease), visibility 0s;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    transform: scale(1.1);
}

.hero-slide.is-active .slide-bg {
    animation: heroZoom 11s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to   { transform: scale(1); }
}

.hero-slide.has-overlay .slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(95deg, rgba(7, 23, 49, .94) 0%, rgba(7, 23, 49, .78) 38%, rgba(7, 23, 49, .3) 72%, rgba(7, 23, 49, .15) 100%),
        linear-gradient(0deg, rgba(7, 23, 49, .75) 0%, rgba(7, 23, 49, 0) 38%);
}

.hero-slide .wrap,
.ship-content {
    position: relative;
    z-index: 1;
}

/* slide 1: .ship-content bukan di dalam .wrap, jadi diberi lebar yang sama */
.ship-content {
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: var(--gold-300);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.badge::before {
    content: "";
    flex: none;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    max-width: 16em;
    margin: 0 0 .45em;
    color: #fff;
    line-height: 1.08;
    text-wrap: balance;
}

.ship-content h1 {
    max-width: none;
}

.hero h1 .hl {
    color: var(--gold);
    padding: 5px 1px; /* Memberi jarak/ruang agar putihnya tidak terlalu mepet dengan huruf */
    border-radius: 0px; /* Opsional: Membuat ujung kotak putih menjadi sedikit membulat agar lebih rapi */
    display: inline-block; /* Memastikan padding atas dan bawah diterapkan dengan benar */
    margin-top: 15px; /* Opsional: Memberi sedikit jarak tambahan dari teks "Surveyors" di atasnya */
    font-size: 15   px;
}

.lead {
    max-width: 56ch;
    margin: 0;
    color: #cdd9ec;
    font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 0;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: #b9c8e0;
    font-size: .9rem;
}

.trust li {
    position: relative;
    padding-left: 24px;
}

.trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .4em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(201, 162, 75, .22)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6cd8f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
        center / 9px no-repeat;
}

/* kartu kaca di kanan (slide 2 & 3) */
.hero-card {
    justify-self: end;
    width: min(100%, 420px);
    padding: 32px 34px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.hero-card h2 {
    margin: 0 0 20px;
    color: var(--gold-300);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hero-card li {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-card li:first-child {
    padding-top: 0;
    border-top: 0;
}

.hero-card li:last-child {
    padding-bottom: 0;
}

.hero-card b {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.hero-card span {
    display: block;
    margin-top: 4px;
    color: #b9c8e0;
    font-size: .9rem;
}

/* animasi teks saat slide aktif */
.hero-text > *,
.hero-visual,
.ship-content > * {
    opacity: 0;
}

.hero-slide.is-active .hero-text > *,
.hero-slide.is-active .hero-visual,
.hero-slide.is-active .ship-content > * {
    animation: rise .8s both;
}

.hero-slide.is-active .hero-text > *:nth-child(1) { animation-delay: .35s; }
.hero-slide.is-active .hero-text > *:nth-child(2) { animation-delay: .45s; }
.hero-slide.is-active .hero-text > *:nth-child(3) { animation-delay: .55s; }
.hero-slide.is-active .hero-text > *:nth-child(4) { animation-delay: .65s; }
.hero-slide.is-active .hero-text > *:nth-child(5) { animation-delay: .75s; }
.hero-slide.is-active .hero-visual { animation-delay: .6s; }
.hero-slide.is-active .ship-content > *:nth-child(1) { animation-delay: .3s; }
.hero-slide.is-active .ship-content > *:nth-child(2) { animation-delay: .45s; }
.hero-slide.is-active .ship-content > *:nth-child(3) { animation-delay: .65s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* kontrol slider */
.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 56px 0 30px;
    background: linear-gradient(0deg, rgba(7, 23, 49, .88), rgba(7, 23, 49, 0));
}

.hero-controls-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hero-dots {
    display: flex;
    gap: 12px;
}

.hero-dot {
    position: relative;
    width: 176px;
    padding: 0 0 16px;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .6);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .3s;
}

.hero-dot span {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .2em;
}

.hero-dot em {
    display: block;
    margin-top: 2px;
    font-size: .88rem;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.hero-dot:hover,
.hero-dot.is-active {
    color: #fff;
}

.hero-dot::before,
.hero-dot i {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
}

.hero-dot::before {
    background: rgba(255, 255, 255, .25);
}

.hero-dot i {
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
}

.hero-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-ctrl {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    background: rgba(7, 23, 49, .35);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}

.hero-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-950);
    transform: scale(1.06);
}

.hero-ctrl {
    width: 42px;
    height: 42px;
    margin-right: 8px;
}

.hero-ctrl:hover {
    background: rgba(255, 255, 255, .18);
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-ctrl svg {
    width: 16px;
    height: 16px;
}

.hero-ctrl .i-play {
    display: none;
}

.hero-ctrl.is-paused .i-play {
    display: block;
}

.hero-ctrl.is-paused .i-pause {
    display: none;
}

.hero-dot:focus-visible,
.hero-arrow:focus-visible,
.hero-ctrl:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---------- 7. STATS STRIP (opsional, lihat HTML) ---------- */
.stats {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    padding: 40px 32px;
    border-left: 1px solid var(--line);
}

.stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat strong {
    display: block;
    color: var(--navy-900);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.stat strong::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 14px;
    background: var(--gold);
}

.stat span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

/* ---------- 8. SECTION UMUM ---------- */
.section {
    padding: clamp(72px, 9vw, 128px) 0;
}

.section.tint {
    background: var(--ice);
}

/* judul kiri, deskripsi kanan (gaya editorial korporat) */
.head,
#services .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 72px;
    align-items: end;
    margin: 0 0 clamp(40px, 5vw, 64px);
}

.head h2,
#services .section-title {
    position: relative;
    margin: 0;
    padding-top: 24px;
}

.head h2::before,
#services .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 3px;
    background: var(--gold);
}

.head p,
#services .section-subtitle {
    max-width: 56ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- 9. OUR COMPANY ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.split h3 {
    margin-bottom: .8em;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.split p {
    color: var(--ink-soft);
}

.photo {
    position: relative;
    margin: 0;
}

.photo-container {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* Vision & Mission */
.vm {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 24px;
    margin: clamp(72px, 9vw, 120px) 0 24px;
}

.vm-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 3.4vw, 48px);
    border-radius: var(--radius);
}

.vm-card:first-child {
    background: var(--navy-900) radial-gradient(circle at 100% 0, rgba(201, 162, 75, .14), transparent 55%);
    color: #fff;
}

.vm-card:last-child {
    background: var(--ice);
    border: 1px solid var(--line);
}

.vm-card h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1em;
    font-size: 1.5rem;
}

.vm-card h3::after {
    content: "";
    flex: 0 0 40px;
    height: 3px;
    background: var(--gold);
}

.vm-card:first-child h3 {
    color: #fff;
}

.vm-card:first-child p {
    margin: 0;
    color: #cfdbee;
    font-size: 1.05rem;
    line-height: 1.8;
}

.vm-card ul {
    display: grid;
    gap: 16px;
    counter-reset: m;
}

.vm-card li {
    position: relative;
    padding-left: 52px;
    color: var(--ink-soft);
    counter-increment: m;
}

.vm-card li::before {
    content: counter(m, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-600);
    font-size: .95rem;
    font-weight: 800;
}

/* Key Enablers & Competitive Advantages */
.cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.info {
    padding: clamp(28px, 3vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.info h3 {
    margin-bottom: 1.2em;
    font-size: 1.3rem;
}

.info ul {
    display: grid;
    gap: 18px;
}

.info li {
    position: relative;
    padding-left: 38px;
    color: var(--ink-soft);
}

.info li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--gold-100)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98430' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
        center / 13px no-repeat;
    border-radius: 50%;
}

.info b {
    color: var(--navy-900);
}

/* galeri */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: clamp(56px, 7vw, 96px) 0;
}

.gallery .photo {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.gallery .photo-container {
    border-radius: 0;
    box-shadow: none;
}

.gallery img {
    transition: transform .8s var(--ease);
}

.gallery .photo:hover img {
    transform: scale(1.06);
}

/* judul "Our customers" */
.sub {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 32px;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sub::before,
.sub::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* logo pelanggan (marquee) */
.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: customerSlide 32s linear infinite;
    will-change: transform;
}

.marquee:hover .track {
    animation-play-state: paused;
}

.lg {
    flex: 0 0 200px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .3s, box-shadow .3s;
}

.lg:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.lg img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform .3s;
}

.lg:hover img {
    transform: scale(1.06);
}

@keyframes customerSlide {
    to { transform: translateX(calc(-50% - 10px)); }
}

/* ---------- 10. OUR SERVICES ---------- */
#services {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 9vw, 128px) 0;
    background:
        radial-gradient(1100px 480px at 88% -8%, rgba(201, 162, 75, .14), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #fff;
}

#services .section-title {
    color: #fff;
}

#services .section-subtitle {
    color: #aebcd3;
}

/* Desktop: 3 kartu di baris 1, 2 kartu lebar di baris 2 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
}

/* warna inline --card-bg dari HTML lama sengaja tidak dipakai lagi (selaras palet navy-emas) */
.service-card {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55);
    color: var(--ink);
    text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s;
}

.service-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--gold);
    transition: width .5s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7);
}

.service-card:hover::after {
    width: 100%;
}

.card-top {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 230px;
    padding: 24px 28px;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-800);
}

.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 23, 49, .12) 0%, rgba(7, 23, 49, .9) 100%);
}

.card-top h3 {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.25;
}

.card-top h3 span {
    flex: none;
    padding-right: 16px;
    border-right: 2px solid var(--gold);
    color: var(--gold);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.card-bottom {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 8px 28px 16px;
}

.service-point {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    text-align: left;
}

.service-point:first-child {
    border-top: 0;
}

/* kotak navy di belakang ikon (ikon dijadikan putih lewat filter) */
.service-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 44px;
    height: 44px;
    background: var(--navy-900);
    border-radius: 10px;
    transform: translateY(-50%);
    transition: background .3s;
}

.service-card:hover .service-point::before {
    background: var(--gold-600);
}

.service-point img {
    position: relative;
    z-index: 1;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-point p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.45;
}

/* dua kartu terakhir (jika total 5) dibuat lebar & horizontal di desktop */
@media (min-width: 1025px) {
    .service-card:nth-child(4):nth-last-child(2),
    .service-card:nth-child(5):last-child {
        grid-column: span 3;
        flex-direction: row;
    }

    :is(.service-card:nth-child(4):nth-last-child(2), .service-card:nth-child(5):last-child) .card-top {
        flex: 0 0 46%;
        min-height: 260px;
    }

    :is(.service-card:nth-child(4):nth-last-child(2), .service-card:nth-child(5):last-child) .card-bottom {
        justify-content: center;
        padding: 20px 32px;
    }
}

/* ---------- 11. BRANCHES ---------- */
/* catatan: class ".three" dipertahankan dari HTML lama, tapi grid-nya kini 4 kolom (8 cabang = 2 baris rapi) */
.cards {
    display: grid;
    gap: 24px;
}

.cards.three {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: translate .3s var(--ease), box-shadow .3s, border-color .3s;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width .45s var(--ease);
}

.card:hover {
    translate: 0 -6px;
    border-color: transparent;
    box-shadow: var(--shadow);
}

.card:hover::before {
    width: 100%;
}

/* ikon pin di atas nama cabang */
.card h3 {
    margin-bottom: .5em;
    font-size: 1.15rem;
}

.card h3::before {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    background: var(--navy-900)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6cd8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
        center / 22px no-repeat;
    border-radius: 10px;
}

.ports {
    display: inline-block;
    margin: 0 0 16px;
    padding: 4px 12px;
    background: var(--gold-100);
    border-radius: 999px;
    color: var(--gold-600);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.5;
}

address {
    color: var(--muted);
    font-size: .92rem;
    font-style: normal;
    line-height: 1.75;
}

address a {
    color: var(--navy-900);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

address a:hover {
    color: var(--gold-600);
}

/* kantor pusat (kartu pertama) disorot */
.cards.three .card:first-child {
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.cards.three .card:first-child h3 {
    color: #fff;
}

.cards.three .card:first-child h3::before {
    background-color: rgba(255, 255, 255, .1);
}

.cards.three .card:first-child .ports {
    background: rgba(201, 162, 75, .18);
    color: var(--gold-300);
}

.cards.three .card:first-child address {
    color: #b9c8e0;
}

.cards.three .card:first-child address a {
    color: var(--gold-300);
}

/* ---------- 12. CONTACT ---------- */
#contact .split {
    align-items: start;
}

.contact-list li {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.contact-list li:first-child {
    padding-top: 0;
}

.contact-list b {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-600);
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-list a {
    color: var(--navy-900);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.contact-list a:hover {
    color: var(--gold-600);
}

.form {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form label {
    display: grid;
    gap: 8px;
    color: var(--navy-900);
    font-size: .88rem;
    font-weight: 600;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--ice);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-weight: 400;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

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

.form select {
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362718a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 0;
    background-color: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 75, .2);
}

.form .bad {
    background-color: #fff7f6;
    border-color: var(--danger);
}

.form .btn {
    width: 100%;
    padding: 16px;
}

.note {
    min-height: 1.3em;
    margin: 0;
    font-size: .9rem;
    font-weight: 500;
}

/* ---------- 13. FOOTER ---------- */
.footer {
    padding-top: clamp(56px, 7vw, 88px);
    background: var(--navy-950);
    border-top: 4px solid var(--gold);
    color: #a9b8d1;
    font-size: .93rem;
}

.fgrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: clamp(28px, 4vw, 56px);
}

.footer .logo img {
    height: 54px;
    filter: brightness(0) invert(1);
}

.footer p {
    margin: 18px 0 0;
    max-width: 38ch;
}

.footer h4 {
    margin-bottom: 1.4em;
    color: #fff;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer li {
    margin-bottom: .7em;
}

.footer a {
    text-decoration: none;
    transition: color .2s;
}

.footer a:hover {
    color: var(--gold-300);
}

.sos {
    padding: 24px;
    background: rgba(201, 162, 75, .08);
    border: 1px solid rgba(201, 162, 75, .4);
    border-radius: var(--radius);
}

.sos h4 {
    margin-bottom: .8em;
    color: var(--gold-300);
}

.sos p {
    margin: 0 0 .6em;
}

.hot {
    display: block;
    margin: 8px 0;
    color: var(--gold-300);
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
}

.sos small {
    color: #7f93b4;
}

.fbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: clamp(40px, 5vw, 64px);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

.fbar p {
    margin: 0;
    max-width: none;
}

.social {
    display: flex;
    gap: 24px;
}

.fbar li {
    margin: 0;
}

/* ---------- 14. MODAL LOGO (popup.js) ---------- */
.modal {
    display: none; /* popup.js mengubahnya jadi flex */
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 23, 49, .88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal-content {
    min-width: 240px;
    max-width: min(720px, 100%);
    max-height: 80vh;
    padding: 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--navy-950);
}

/* Styling untuk teks Terms & Conditions di dalam Modal E-dox */
.modal-footer-legal {
    margin-top: 25px;       /* Memberi jarak dari area upload/tombol */
    padding-top: 15px;      /* Memberi ruang di atas teks */
    border-top: 1px solid #e2e8f0; /* Garis pembatas tipis berwarna abu-abu terang */
    text-align: center;     /* Teks rata tengah */
}

.modal-footer-legal p {
    font-size: 0.75rem;     /* Ukuran font kecil agar tidak mencolok (sekitar 12px) */
    color: #64748b;         /* Warna teks abu-abu redup */
    line-height: 1.4;
    margin: 0;
}

.modal-footer-legal .legal-link {
    color: #0f172a;         /* Warna navy/gelap khas Marenova untuk linknya */
    font-weight: 600;       /* Dibuat agak tebal */
    text-decoration: underline; /* Garis bawah agar jelas itu link */
    transition: color 0.2s ease;
}

.modal-footer-legal .legal-link:hover {
    color: #d97706;         /* Berubah jadi warna emas/kuning Marenova saat disentuh kursor */
}

/* ---------- 15. SCROLL REVEAL (dipakai script.js) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* kartu cabang: reveal + hover (hover memakai properti `translate` agar tidak bentrok) */
.card.reveal {
    transition: opacity .7s ease, transform .7s ease, translate .3s var(--ease), box-shadow .3s, border-color .3s;
}

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 1180px) {
    .cards.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        grid-column: auto;
    }

    .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .service-card:last-child:nth-child(odd) .card-top {
        flex: 0 0 46%;
    }

    .service-card:last-child:nth-child(odd) .card-bottom {
        justify-content: center;
    }

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

/* navigasi jadi hamburger */
@media (max-width: 960px) {
    :root {
        --header-h: 72px;
    }

    .logo img {
        height: 48px;
    }

    .burger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -20px rgba(10, 31, 61, .3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility 0s linear .25s;
    }

    nav.open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .25s, transform .25s, visibility 0s;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav ul a {
        padding: 15px 4px;
        border-bottom: 1px solid var(--line);
    }

    nav ul a::after {
        display: none;
    }

    nav ul a.on {
        color: var(--gold-600);
    }

    nav .btn {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    .hero {
        height: 700px;
    }

    .hero-slide {
        padding-bottom: 120px;
    }

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

    .hero-visual,
    .trust {
        display: none;
    }

    .hero-dot {
        width: 72px;
    }

    .hero-dot em {
        display: none;
    }

    .hero-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 860px) {
    .head,
    #services .section-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .split,
    .vm,
    .cols {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat,
    .stat:first-child {
        padding: 28px 20px 28px 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat:nth-child(-n + 2) {
        border-top: 0;
    }

    .topbar p {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .track {
        gap: 15px;
        animation-duration: 26s;
    }

    .lg {
        flex-basis: 160px;
        height: 80px;
    }

    /* logo putih (Djakarta Lloyd) diberi alas navy di mobile */
    .lg.logo-dark {
        background: #0b2a4a;
        border-color: #0b2a4a;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:last-child:nth-child(odd) {
        grid-column: auto;
        flex-direction: column;
    }

    .service-card:last-child:nth-child(odd) .card-top {
        flex: none;
    }

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

@media (max-width: 560px) {
    .cards.three,
    .fgrid {
        grid-template-columns: 1fr;
    }

    .topbar li:nth-child(2) {
        display: none;
    }

    .fbar {
        flex-direction: column;
    }

    .cta .btn {
        width: 100%;
    }

    .hero-ctrl {
        display: none;
    }
}

/* ---------- 17. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .hero-text > *,
    .hero-visual,
    .ship-content > * {
        opacity: 1;
        transform: none;
    }

    .slide-bg {
        transform: none;
    }
}

/* ==========================================================================
   18. SUBPAGES (sustainability.html & terms.html)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(201, 162, 75, .16), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    border-bottom: 3px solid var(--gold);
    color: #fff;
}

.page-hero h1 {
    max-width: 18em;
    margin: 0 0 .4em;
    color: #fff;
    text-wrap: balance;
}

.page-hero h1 .hl {
    color: var(--gold);
}

.page-hero .lead {
    max-width: 60ch;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    color: #aebcd3;
    font-size: .85rem;
}

.crumbs a {
    text-decoration: none;
    transition: color .2s;
}

.crumbs a:hover {
    color: var(--gold-300);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 10px;
    opacity: .5;
}

/* ---------- Sustainability: card grid ---------- */
.sus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sus-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 3vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: translate .3s var(--ease), box-shadow .3s, opacity .7s ease, transform .7s ease;
}

.sus-card:hover {
    translate: 0 -6px;
    box-shadow: var(--shadow);
}

.sus-no {
    display: block;
    margin-bottom: 14px;
    color: var(--gold-600);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.sus-card h3 {
    margin-bottom: .6em;
    font-size: 1.25rem;
}

.sus-card p {
    margin: 0;
    color: var(--ink-soft);
}

.sus-card--featured {
    grid-column: 1 / -1;
    background: var(--navy-900) radial-gradient(circle at 100% 0, rgba(201, 162, 75, .16), transparent 55%);
    border-color: var(--navy-900);
    border-top-color: var(--gold);
}

.sus-card--featured .sus-no {
    color: var(--gold);
}

.sus-card--featured h3 {
    color: #fff;
    font-size: 1.5rem;
}

.sus-card--featured p {
    max-width: 70ch;
    color: #cfdbee;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* CTA band */
.cta-band {
    padding: clamp(48px, 6vw, 72px) 0;
    background: var(--ice);
    border-top: 1px solid var(--line);
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-band h2 {
    margin: 0 0 .3em;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.cta-band p {
    margin: 0;
    color: var(--muted);
}

/* ---------- Terms: legal typography ---------- */
.legal-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 40px;
    padding: 28px 32px;
    background: var(--gold-100);
    border: 1px solid var(--gold-300);
    border-left: 6px solid var(--gold);
    border-radius: var(--radius);
}

.legal-bar h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.legal-bar p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
}

.btn.lg {
    padding: 18px 34px;
    font-size: 1.02rem;
}

.btn svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.btn.line {
    background: #fff;
    border-color: var(--line);
    color: var(--navy-900);
}

.btn.line:hover {
    border-color: var(--navy-900);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lang-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 36px;
    padding: 4px;
    background: var(--ice);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang-tab {
    padding: 10px 22px;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.lang-tab:hover {
    color: var(--navy-900);
}

.lang-tab.is-active {
    background: var(--navy-900);
    color: #fff;
}

.legal-doc {
    max-width: 820px;
}

.legal-doc[hidden] {
    display: none;
}

.legal-title {
    margin: 0 0 1em;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.legal-doc h3 {
    margin: 2.2em 0 .6em;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    color: var(--navy-900);
    font-size: 1.05rem;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.legal-doc p {
    margin: 0 0 1em;
    color: var(--ink-soft);
    line-height: 1.85;
}

.legal-doc[lang="zh"] {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font);
}

.legal-doc[lang="zh"] h3 {
    letter-spacing: 0;
}

/* ---------- Tombol "Verify Document" (top bar) ---------- */
.verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold-300);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.verify-btn svg {
    width: 14px;
    height: 14px;
}

.verify-btn:hover {
    background: var(--gold);
    color: var(--navy-950);
}

/* ==========================================================================
   19. DOCUMENT VALIDATOR MODAL
   ========================================================================== */
.dv-lock {
    overflow: hidden;
}

.dv-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 23, 49, .78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: dvFade .25s ease both;
}

.dv-modal[hidden] {
    display: none;
}

.dv-dialog {
    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    outline: 0;
    animation: dvRise .3s var(--ease) both;
}

@keyframes dvFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes dvRise {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.dv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px 0;
}

.dv-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.dv-x {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--ice);
    border: 0;
    border-radius: 50%;
    color: var(--navy-900);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.dv-x:hover {
    background: var(--gold);
    color: var(--navy-950);
}

/* progress bar 3 langkah */
.dv-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 26px 28px 0;
}

.dv-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
}

.dv-steps span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--ice);
    border: 2px solid var(--line);
    border-radius: 50%;
    font-weight: 800;
    transition: background .3s, border-color .3s, color .3s;
}

.dv-steps em {
    font-style: normal;
}

.dv-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    height: 2px;
    background: var(--line);
    transition: background .3s;
}

.dv-steps li.is-active {
    color: var(--navy-900);
}

.dv-steps li.is-active span {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.dv-steps li.is-done span {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-950);
}

.dv-steps li.is-done:not(:last-child)::after {
    background: var(--gold);
}

.dv-body {
    padding: 24px 28px 28px;
}

.dv-panel[hidden] {
    display: none;
}

/* dropzone */
.dv-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 24px;
    background: var(--ice);
    border: 2px dashed #b9c6da;
    border-radius: var(--radius);
    color: var(--navy-900);
    text-align: center;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}

.dv-drop svg {
    width: 44px;
    height: 44px;
    color: var(--gold-600);
}

.dv-drop strong {
    font-size: .95rem;
    letter-spacing: .08em;
}

.dv-drop small {
    color: var(--muted);
    font-size: .85rem;
}

.dv-drop:hover,
.dv-drop.is-over,
.dv-drop:focus-within {
    background: var(--gold-100);
    border-color: var(--gold);
}

.dv-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    clip: rect(0 0 0 0);
}

.dv-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.dv-chip[hidden] {
    display: none;
}

.dv-chip > svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--navy-700);
}

.dv-chip-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--navy-900);
    font-size: .92rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-chip small {
    color: var(--muted);
    white-space: nowrap;
}

.dv-chip button {
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--ice);
    border: 0;
    border-radius: 50%;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.dv-chip button:hover {
    background: var(--danger);
    color: #fff;
}

.dv-error {
    min-height: 1.3em;
    margin: 12px 0 0;
    color: var(--danger);
    font-size: .88rem;
    font-weight: 500;
}

.dv-progress {
    height: 6px;
    margin-top: 12px;
    overflow: hidden;
    background: var(--line);
    border-radius: 3px;
}

.dv-progress[hidden] {
    display: none;
}

.dv-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width .15s linear;
}

.dv-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* step 2 & 3 */
.dv-lead {
    margin: 0 0 16px;
    color: var(--ink-soft);
}

.dv-dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .92rem;
}

.dv-dl dt,
.dv-dl dd {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

.dv-dl dt:first-of-type,
.dv-dl dt:first-of-type + dd {
    border-top: 0;
}

.dv-dl dt {
    background: var(--ice);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dv-dl dd {
    overflow-wrap: anywhere;
    color: var(--navy-900);
    font-weight: 600;
}

.dv-hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem !important;
    font-weight: 500 !important;
}

.dv-busy {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 40px 0;
    color: var(--ink-soft);
}

.dv-busy[hidden] {
    display: none;
}

.dv-busy p {
    margin: 0;
}

.dv-spin {
    width: 44px;
    height: 44px;
    border: 4px solid var(--line);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: dvSpin .8s linear infinite;
}

@keyframes dvSpin {
    to { transform: rotate(360deg); }
}

.dv-ok {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
}

.dv-ok > svg {
    flex: none;
    width: 52px;
    height: 52px;
    padding: 13px;
    background: var(--gold);
    border-radius: 50%;
    color: var(--navy-950);
}

.dv-ok h3 {
    margin: 0 0 2px;
}

.dv-ok p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.dv-note {
    margin: 16px 0 0;
    padding: 12px 16px;
    background: var(--gold-100);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: .85rem;
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .sus-grid {
        grid-template-columns: 1fr;
    }

    .legal-bar {
        padding: 22px;
    }

    .legal-bar .btn {
        width: 100%;
    }

    .dv-head,
    .dv-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dv-steps {
        margin-left: 12px;
        margin-right: 12px;
    }

    .dv-dl {
        grid-template-columns: 1fr;
    }

    .dv-dl dd {
        border-top: 0;
    }

    .dv-actions .btn {
        flex: 1;
    }
}

/* ---------- Print (terms) ---------- */
@media print {
    .topbar,
    .site-header,
    .footer,
    .legal-bar,
    .lang-tabs,
    .page-hero,
    .dv-modal {
        display: none !important;
    }

    .legal-doc[hidden] {
        display: none !important;
    }
}

/* ==========================================================================
   20. PAGE TRANSITION (sederhana: hanya transisi opacity + visibility)
   ========================================================================== */
.pt-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    background: var(--navy-950);
    opacity: 1;
    visibility: visible;
    /* fade-in: tampil langsung, opacity naik perlahan */
    transition: opacity .4s ease, visibility 0s linear 0s;
}

/* fade-out: opacity turun dulu, visibility hilang setelah .4s */
.pt-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility 0s linear .4s;
}

.pt-brand {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .32em;
    text-indent: .32em;
    text-align: center;
}

.pt-brand small {
    display: block;
    margin-top: 4px;
    color: var(--gold);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .4em;
    text-indent: .4em;
    text-transform: uppercase;
}

/* Toast Notification Container */
#modern-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  /* Animasi mulus dari agak kecil ke ukuran normal */
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  padding: 24px 32px;
  border-radius: 12px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efek pantulan */
  min-width: 320px;
  text-align: center;
}

/* Class saat notifikasi muncul */
#modern-toast.toast-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

/* Warna penanda status */
.toast-success { border-bottom: 4px solid #28a745; color: #155724; }
.toast-error { border-bottom: 4px solid #dc3545; color: #721c24; }
.toast-loading { border-bottom: 4px solid var(--gold, #E5B94E); color: #0A3161; }