/* ============================================================
   PT. ECO JAYA INTERNATIONAL — Design System
   Palette: "The Harbor Ledger" (deep navy + date gold)
   NOTE: colors below are PLACEHOLDER brand colors until the
   company provides official brand guidelines. Swap the token
   values in :root to rebrand the whole site.
   ============================================================ */

/* ---------- Fonts (bundled, SIL OFL) ---------- */
@font-face {
  font-family: 'Big Shoulders';
  src: url('../fonts/BigShoulders-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ink: #0C1E30;          /* deep harbor navy — dark sections, headings */
  --ink-2: #14304A;        /* raised dark surface */
  --primary: #14507E;      /* trade blue — primary */
  --primary-soft: #2472A8; /* hover / secondary blue */
  --gold: #E3A428;         /* date gold — CTA accent */
  --gold-deep: #C8871A;    /* CTA hover */
  --paper: #F5F7F9;        /* light background */
  --mist: #E5EBF0;         /* tinted surface */
  --white: #FFFFFF;
  --text: #172633;         /* body text on light */
  --muted: #55697B;        /* secondary text on light */
  --muted-dark: #A3B8CB;   /* secondary text on dark */
  --line: #D9E2E9;         /* borders on light */
  --line-dark: #234763;    /* borders on dark */
  --info: #6FBFE8;         /* import-flow accent (light blue) */
  --up: #1E8A4C;           /* price trend up */
  --down: #C43D3D;         /* price trend down */
  --header-h: 84px;        /* fixed header clearance */
  --ease: cubic-bezier(0.32, 0.72, 0, 1); /* luxury easing */
  --gold-text: #7A5410;    /* accessible gold for small text on light */

  /* type */
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', 'Consolas', monospace;

  /* rhythm */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --shadow: 0 18px 45px -18px rgba(9, 26, 42, .28);
  --shadow-sm: 0 8px 22px -12px rgba(9, 26, 42, .22);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }  /* wrapper vanishes from layout — img behaves as before */

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-soft); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Type scale ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .005em;
  color: var(--ink);
}

h1 { font-size: clamp(3rem, 8.5vw, 6.75rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: .02em; }

.dark h1, .dark h2, .dark h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 58ch;
}
.dark .lead { color: var(--muted-dark); }

/* ---------- Layout ---------- */
.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

section { padding-block: var(--section-y); }

/* keep anchored sections clear of the fixed header */
section[id] { scroll-margin-top: var(--header-h, 84px); }

.dark {
  background: var(--ink);
  color: var(--muted-dark);
}
.dark-2 { background: var(--ink-2); }
.tint { background: var(--mist); }

.section-head {
  display: grid;
  gap: 1.2rem;
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .95rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn svg {
  width: 26px; height: 26px;
  padding: 6px;
  flex: none;
  border-radius: 999px;
  background: rgba(12, 30, 48, .14);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.btn:hover svg { transform: translate(3px, -2px); background: rgba(12, 30, 48, .22); }
.btn-outline svg { background: rgba(255, 255, 255, .16); }
.btn:active { transform: scale(.97); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.dark .btn-outline, .hero .btn-outline { border-color: rgba(255,255,255,.75); color: var(--white); }
.dark .btn-outline:hover, .hero .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Header / nav ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .25s ease, box-shadow .25s ease;
  padding-block: .9rem;
}
.topbar.scrolled {
  background: rgba(9, 26, 42, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(227, 164, 40, .35);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.5);
  padding-block: .55rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.12rem;
  letter-spacing: .04em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .3em;
  color: var(--muted-dark);
  margin-top: .3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
.nav a {
  white-space: nowrap;
  color: rgba(255,255,255,.85);
  font-weight: 400;
  font-size: .95rem;
  position: relative;
  padding-block: .55rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav .btn { padding: .68rem 1.3rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--white);
  position: relative;
  z-index: 70;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(7, 20, 33, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1180px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(21rem, 85vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(105%);
    transition: transform .3s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,.4);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 800px);
  min-height: clamp(560px, 82dvh, 800px);
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  padding-block: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-video.playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(7, 20, 33, .78) 0%, rgba(7, 20, 33, .35) 48%, rgba(7, 20, 33, 0) 72%),
    linear-gradient(to top, rgba(7, 20, 33, .9) 0%, rgba(7, 20, 33, .5) 45%, rgba(7, 20, 33, .38) 100%);
}
.hero .wrap { padding-block: clamp(6.5rem, 11vh, 8.5rem) clamp(3rem, 7vh, 4.5rem); }

/* scrim at the very top so the fixed nav stays readable over bright imagery */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 170px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 20, 33, .78), transparent);
}
.hero h1 { color: var(--white); max-width: 15ch; margin-block: .8rem 1.2rem; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}


/* Company page hero (shorter) */
.hero.hero-sub {
  min-height: clamp(480px, 72vh, 640px);
  min-height: clamp(480px, 72dvh, 640px);
}
/* rectangular CTA variant (hero buttons site-wide, per approved mock) */
.btn-rect, .hero .btn { border-radius: 10px; }

/* company-page header branding: white chip carries the company logo */
.brand-mark-logo {
  width: auto;
  min-width: 44px;
  padding: 7px 10px;
  background: var(--white);
  border: 0;
}
.brand-mark-logo img { height: 30px; width: auto; display: block; }
/* logo shown directly on the dark bar — no chip */
.brand-mark-plain {
  background: transparent;
  border: 0;
  padding: 0;
  width: auto;
  min-width: 0;
}
.brand-mark-plain img { height: 48px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.brand-name .brand-sub { letter-spacing: .16em; font-size: .55rem; }

.crumbs {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--white); }

/* ---- Page personality variants (section 2 / item 9 — revert: remove classes from heroes) ---- */
/* International: split hero — navy panel left, image right */
.hero-split { background: var(--ink); }
.hero-split .hero-media {
  left: 40%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}
.hero-split .hero-media img { object-position: center right; }
@media (max-width: 880px) {
  .hero-split .hero-media { left: 0; -webkit-mask-image: none; mask-image: none; }
}
/* Tamra: warm golden overlay for the dates company */
.hero-warm::after {
  background:
    linear-gradient(to right, rgba(46, 30, 8, .82) 0%, rgba(46, 30, 8, .38) 48%, rgba(46, 30, 8, 0) 72%),
    linear-gradient(to top, rgba(33, 21, 5, .92) 0%, rgba(33, 21, 5, .5) 45%, rgba(33, 21, 5, .35) 100%);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(12, 30, 48, .045), inset 0 1px 0 rgba(255,255,255,.6), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 6px rgba(12, 30, 48, .07), var(--shadow); }

.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-num {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
}

.card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  flex: 1;
}
.card-body p { color: var(--muted); font-size: .98rem; flex: 1; }

.card-link {
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.card-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Spec-sheet product cards (signature) ---------- */
.spec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(12, 30, 48, .045);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.spec-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(227, 164, 40, .12), 0 0 0 1px var(--gold), var(--shadow);
}
.spec-card:hover .card-media img { transform: scale(1.04); }
.dark .spec-card { box-shadow: 0 0 0 6px rgba(255, 255, 255, .05); }
.dark .spec-card:hover { box-shadow: 0 0 0 6px rgba(227, 164, 40, .16), 0 0 0 1px var(--gold), var(--shadow); }
.spec-card .card-media { aspect-ratio: 16 / 9; }

.spec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem .9rem;
}
.spec-head h3 { font-size: 1.45rem; }
.spec-code {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

.spec-desc {
  padding: 0 1.5rem .6rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.dark .spec-desc { color: var(--muted-dark); }

.spec-rows {
  list-style: none;
  padding: 0 1.5rem 1.4rem;
  margin-top: auto;
}
.spec-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
}
.spec-rows li span:first-child {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .15rem;
}
.spec-rows li span:last-child { text-align: right; font-weight: 700; color: var(--ink); }

.spec-card .btn { margin: 0 1.5rem 1.5rem; justify-content: center; }

.dark .card-media img, .dark-2 .card-media img { filter: saturate(.88) contrast(1.02); }

/* dark variant */
.dark .spec-card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .spec-head h3 { color: var(--white); }
.dark .spec-rows li { border-color: var(--line-dark); }
.dark .spec-rows li span:last-child { color: var(--white); }
.dark .spec-code, .dark .spec-rows li span:first-child { color: var(--muted-dark); }

/* ---------- Trade route (signature section) ---------- */
/* full-bleed: sits directly in the section, spans the entire width */
.route-image {
  width: 100%;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  display: block;
}

.route-svg { width: 100%; height: auto; display: block; margin-top: 1rem; }
.route-svg .route-path {
  fill: none;
  stroke-width: 3;
  stroke-dasharray: 8 9;
}
.route-svg .route-out { stroke: var(--gold); }
.route-svg .route-in { stroke: var(--info); }
.route-svg .route-import-label { fill: var(--info); }
.route-svg .route-export-label { fill: var(--gold); }
@media (max-width: 660px) {
  .route-svg text { font-size: 22px; }
  .route-svg .route-label { font-size: 24px; }
}
.in-view .route-path { animation: routeFlow 2.6s linear infinite; }
@keyframes routeFlow {
  to { stroke-dashoffset: -68; }
}
.route-svg text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  fill: var(--muted-dark);
}
.route-svg .route-node {
  fill: var(--paper);
  stroke: var(--gold);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
.in-view .route-node { animation: nodePulse 2.4s var(--ease) infinite; }
@keyframes nodePulse { 50% { transform: scale(1.3); } }
.route-svg .route-label { fill: var(--white); font-size: 15.5px; font-weight: 700; }

.flow-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 780px) { .flow-cards { grid-template-columns: 1fr; } }

.flow-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: .7rem;
}
.flow-card .flow-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.flow-card h3 { color: var(--white); }
.flow-card p { color: var(--muted-dark); font-size: .98rem; }

/* ---------- Market prices ---------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 860px;
}
.price-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.price-head-row b { color: var(--ink); }
.price-rows { list-style: none; }
.price-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-block: .95rem;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-code {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.price-name { font-weight: 700; color: var(--ink); }
.price-cell { text-align: right; font-family: var(--font-mono); font-size: .95rem; }
.price-value { color: var(--ink); font-weight: 700; }
.price-trend { font-size: .85em; }
.price-trend-up { color: var(--up); }
.price-trend-down { color: var(--down); }
.price-trend-steady { color: var(--muted); }
.price-pending {
  color: var(--muted);
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.price-note {
  margin-top: 1.1rem;
  font-size: .82rem;
  color: var(--muted);
  max-width: 60ch;
}
.price-chart {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
}
.price-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.price-chart-head b { color: var(--ink); font-size: .95rem; }
.price-spark { width: 100%; height: 72px; display: block; opacity: .6; }
.price-chart-note { font-size: .8rem; color: var(--muted); margin-top: .7rem; }
@media (max-width: 560px) {
  .price-row { grid-template-columns: 1fr auto; }
  .price-code { display: none; }
}

/* about-section side images: bottom-align so the image ends with the last text line */
@media (min-width: 661px) {
  .grid-2 > div.reveal { align-self: end; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  z-index: 100;
  transition: width .08s linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background:
    linear-gradient(var(--gold), var(--gold)) center/13px 2.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/2.5px 13px no-repeat;
  transition: transform .28s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  margin: 0;
  padding: 0 0 1.5rem;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.7;
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: 80vh;
  min-height: 80dvh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--muted-dark);
  padding: 8rem var(--gutter) 5rem;
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: .9;
  color: var(--white);
  letter-spacing: .02em;
}
.error-page .code span { color: var(--gold); }
.error-page h1 { color: var(--white); margin: 1rem 0 .8rem; }
.error-page p { max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- Value props ---------- */
.value {
  display: grid;
  gap: 1rem;
  padding: 1.9rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.value-icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--muted); font-size: .97rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-deep);
  padding-top: .2rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Forms (visual placeholder) ---------- */
.form-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(227, 164, 40, .12);
  border: 1px dashed var(--gold);
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 660px) { .quote-form { grid-template-columns: 1fr; } }

.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
}
.field label .opt {
  font-weight: 500;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 80, 126, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: .8rem; color: var(--muted); }

.form-status {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--primary);
  min-height: 1.2em;
}
/* Feedback states: green success, red problem, muted while sending.
   Icons are decorative (::before, not in textContent) so screen readers
   announce only the message text via aria-live. */
.form-status.is-ok { color: var(--up); }
.form-status.is-error { color: var(--down); }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok::before,
.form-status.is-error::before {
  margin-right: .4em;
  font-weight: 700;
}
.form-status.is-ok::before { content: "\2713"; }    /* ✓ */
.form-status.is-error::before { content: "\26A0"; } /* ⚠ */

/* Privacy consent notice under the form fields */
.form-consent {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
.dark .form-consent { color: var(--muted-dark); }
.form-consent a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.dark .form-consent a { color: var(--info); }

.contact-form-wrap { margin-top: clamp(2rem, 4vw, 3rem); }
.contact-form-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ---------- Contact placeholders ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  border: 1px dashed var(--line);
  box-shadow: 0 0 0 6px rgba(12, 30, 48, .03);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: .5rem;
  background: var(--white);
}
.contact-card .value-icon { width: 44px; height: 44px; }
.contact-card .value-icon svg { width: 22px; height: 22px; }
.contact-card b { color: var(--ink); font-size: .95rem; }
.contact-card span { font-size: .92rem; color: var(--muted); }

.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  width: fit-content;
}
.ph-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.price-pending .ph-chip { display: none; }

.map-embed {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(12, 30, 48, .045), var(--shadow-sm);
}
.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

.wa-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  justify-items: end;
  gap: .8rem;
}
.wa-float {
  width: 58px;
  height: 58px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px -8px rgba(12, 30, 48, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover {
  color: var(--white);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 34px -8px rgba(12, 30, 48, .55);
}
.wa-float[aria-expanded="true"] { transform: scale(.96); }
.wa-float svg { width: 30px; height: 30px; }

/* WhatsApp contact menu (two contact people) */
.wa-menu {
  width: min(304px, 80vw);
  background: var(--white);
  border-radius: 16px;
  padding: .7rem;
  display: grid;
  gap: .5rem;
  box-shadow: 0 20px 48px -14px rgba(9, 26, 42, .4), 0 0 0 1px var(--line);
  animation: waPop .22s var(--ease) both;
}
.wa-menu[hidden] { display: none; }
@keyframes waPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-menu-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .35rem .55rem .1rem;
}
.wa-person {
  display: grid;
  gap: .12rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.wa-person:hover { background: #EAF7EE; border-color: #25D366; transform: translateY(-1px); color: inherit; }
.wa-person-name {
  font-weight: 700;
  color: var(--ink);
  font-size: .98rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.wa-person-name::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #25D366;
  flex: none;
}
.wa-person-langs { font-size: .82rem; color: var(--muted); }
.wa-person-num { font-family: var(--font-mono); font-size: .82rem; color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-person { transition: none; }
  .wa-menu { animation: none; }
}

/* Two-person Phone / WhatsApp block inside the contact cards */
.contact-people { display: grid; gap: .8rem; }
.cperson { display: grid; gap: .1rem; }
.cperson-name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.cperson-name:hover { color: var(--primary); }
.cperson-langs { font-size: .82rem; color: var(--muted); }
.cperson-num { font-family: var(--font-mono); font-size: .85rem; color: var(--primary); font-weight: 700; }
.cperson-num:hover { color: var(--primary-soft); }
.cperson-wa { color: var(--muted); font-weight: 400; }

.foot-contact {
  margin-top: .9rem;
  font-size: .92rem;
  line-height: 1.9;
}
.foot-contact a { color: var(--muted-dark); }
.foot-contact a:hover { color: var(--white); }

.contact-card a { color: var(--primary); font-weight: 700; }
.contact-card a:hover { color: var(--primary-soft); }

.map-ph {
  margin-top: 1.2rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: .4rem;
  background:
    repeating-linear-gradient(45deg, rgba(20,80,126,.05) 0 14px, transparent 14px 28px),
    var(--white);
  color: var(--muted);
  font-size: .95rem;
  padding: 2rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-word {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: .95;
  color: var(--white);
}
.foot-word em { color: var(--gold); font-style: normal; }
/* The footer wordmark links home; keep its look but signal interactivity. */
.foot-word a { color: inherit; text-decoration: none; display: inline-block; transition: opacity .2s ease; }
.foot-word a:hover { opacity: .82; }
.foot-word a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.foot-tag { margin-top: 1rem; max-width: 40ch; font-size: .95rem; }

footer h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.foot-links { list-style: none; display: grid; gap: .35rem; }
.foot-links a {
  color: var(--muted-dark);
  font-size: .96rem;
  display: inline-block;
  padding-block: .45rem;
}
.foot-links a:hover { color: var(--white); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* hero load-in sequence */
.hero .rise {
  opacity: 0;
  transform: translateY(30px);
  animation: rise .8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .rise {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .in-view .route-path { animation: none; }
  .card:hover, .spec-card:hover, .value:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.skip-link {
  position: absolute;
  top: -48px; left: 1rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ---- Language toggle (EN / ID) in header ---- */
.lang-switch{display:inline-flex;align-items:center;gap:.45rem;font-family:"DM Mono",var(--mono,monospace);font-size:.72rem;letter-spacing:.14em;margin-left:.4rem;}
.lang-switch .lang-link{color:rgba(255,255,255,.62);text-decoration:none;padding:.15rem .1rem;transition:color .2s ease;}
.lang-switch .lang-link:hover{color:#fff;}
.lang-switch .lang-link.is-active{color:var(--gold,#E3A428);}
.lang-switch .lang-sep{color:rgba(255,255,255,.28);}
@media (max-width:1024px){.lang-switch{margin:.5rem 0;}}
/* Hide TranslatePress default floating switcher (we use the header toggle) */
.trp-floating-switcher{display:none !important;}

/* ---- Mobile tap-target ergonomics: give small links a ~44px touch area ---- */
@media (max-width: 660px) {
  .lang-switch { font-size: .82rem; gap: .8rem; }
  .lang-switch .lang-link { padding: .55rem .55rem; }
  .foot-contact a { display: inline-block; padding-block: .35rem; }
  .foot-base a { display: inline-block; padding-block: .3rem; }
}


/* ---- Fix: step-card titles were white on white cards inside .dark sections ---- */
.dark .step h3{color:var(--ink,#0C1E30);}


/* ---- Editorial value ledger — asymmetric, numbered replacement for the
        generic 3-icon feature grid (#8). Left-aligned, dashed rules,
        big display numerals; on-brand with the "Harbor Ledger" identity. ---- */
.vledger { margin-top: clamp(1.5rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.vledger-item {
  display: grid;
  grid-template-columns: clamp(2.4rem, 6vw, 4.5rem) 1fr;
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3.2vw, 2.4rem);
  border-bottom: 1px dashed var(--line);
}
.vledger-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: .85;
  color: var(--gold-deep);
  letter-spacing: .01em;
}
.vledger-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.vledger-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--mist);
  color: var(--primary);
  display: grid; place-items: center;
}
.vledger-icon svg { width: 24px; height: 24px; }
.vledger-head h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.vledger-body p { color: var(--muted); max-width: 64ch; font-size: 1rem; }
@media (max-width: 520px) {
  .vledger-item { gap: .9rem; }
  .vledger-icon { width: 40px; height: 40px; }
  .vledger-head { gap: .65rem; }
}
