/* PT Andalan Samudra Megatrans — public site
   Modern industrial corporate: deep forest green as the ground, gold only where it means something
   (the primary action, the active place, the TBS route), off-white sections for rhythm. */
:root {
  --ink: #0a211d;          /* deep forest green: primary ground */
  --ink-deep: #071817;     /* dark navy green: header, network, footer */
  --ink-2: #12312b;        /* one tone step above --ink */
  --gold: #d4af37;         /* corporate gold: accents */
  --cta: #f8c43f;          /* CTA yellow: the primary action */
  --cta-hover: #ffd35c;
  --paper: #ffffff;
  --mist: #f6f7f4;         /* off white */
  --sage: #a8b7b3;         /* muted gray on dark */
  --text: #17231f;
  --muted: #4f5d59;        /* body grey on light, 7:1 on white */
  --gold-ink: #7a5d00;     /* gold for text on light grounds */
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: #dfe4e0;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --wrap: 1240px;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); /* the page's one left/right edge */
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .6s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h, 96px); }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
figure { margin: 0; }
/* Zero specificity: any icon class overrides it; Leaflet's own renderer SVG is left alone */
:where(svg:not(.leaflet-zoom-animated)) { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--cta); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; }
.section-head p { margin: 14px 0 0; font-size: 1.05rem; color: var(--muted); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--edge); background: var(--ink-deep); border-bottom: 1px solid var(--line-dark); color: #fff; transition: padding .25s var(--ease); }
.site-header.is-scrolled { padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; padding: 5px; }
.brand-mark img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-text { display: grid; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; }
.brand-text small { font-size: .85rem; color: var(--sage); }
#main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: .95rem; font-weight: 500; }
#main-nav a { position: relative; padding: 8px 0; color: rgba(255, 255, 255, .86); transition: color .2s; }
#main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
#main-nav a:hover { color: #fff; }
#main-nav a:hover::after, #main-nav a.active::after { transform: scaleX(1); }
#main-nav a.active { color: var(--gold); }
.menu-button { display: none; }
.menu-button svg { display: none; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-dark); border-radius: 999px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 30px; padding: 4px 10px; border-radius: 999px; transition: background .2s; }
.lang-switch a:hover { background: rgba(255, 255, 255, .1); }
.lang-switch a[aria-current="true"] { background: #fff; }
.lang-switch .flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .15s var(--ease), background .2s, color .2s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { background: var(--cta); color: var(--ink); }
.button.primary:hover { background: var(--cta-hover); }
.button.ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.button.ghost:hover { background: rgba(255, 255, 255, .1); }
.button .arrow { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }
.button.whatsapp { background: var(--wa); color: #fff; }
.button.whatsapp:hover { background: var(--wa-dark); }
.wa-icon { fill: currentColor; stroke: none; }

/* Hero: 48% message, 52% photograph */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(860px, 100svh); padding: calc(var(--header-h, 76px) + 48px) var(--edge) 64px; background: var(--ink); color: #fff; }
.hero-copy { position: relative; z-index: 1; width: calc(48vw - var(--edge) - 48px); max-width: 620px; } /* the photo starts at 48% of the viewport */
/* The copy column stays about 560px wide on every large screen, so the headline is capped to keep three balanced lines */
.eyebrow { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 2px; margin-top: .6em; border-radius: 2px; background: currentColor; flex: none; }
.hero h1 { font-size: clamp(2.4rem, 4.1vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.lead { margin: 28px 0 36px; max-width: 46ch; font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.65; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: absolute; inset: 0 0 0 48%; background: var(--ink-2); }
/* Soft hand-off from the green panel into the photograph instead of a hard vertical seam */
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, rgba(10, 33, 29, .55) 9%, rgba(10, 33, 29, 0) 26%), linear-gradient(0deg, rgba(10, 33, 29, .35) 0%, rgba(10, 33, 29, 0) 22%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 62%; }

/* About: editorial, text column wider than the photograph, photograph raised */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding: var(--section) var(--edge); }
.about h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; }
.about-lead { margin: 20px 0 0; max-width: 620px; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--text); }
.commitments { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 40px 0 0; padding: 0; }
.commitments li { padding-top: 16px; border-top: 2px solid var(--gold); }
.commitments strong { display: block; font-size: 1rem; }
.commitments span { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 36px 0 0; }
.stats div { padding: 14px 16px; border-radius: 10px; background: var(--mist); }
.stats dt { font-size: .8rem; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 22% 50%; border-radius: var(--radius); }

/* Services */
.services { padding: var(--section) var(--edge); background: var(--mist); }
.service-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 48px; }
.service-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); transition: transform .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-4px); border-color: #c9d1cc; }
.service-photo { overflow: hidden; height: clamp(200px, 19vw, 270px); background: var(--ink-2); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-photo img { transform: scale(1.04); }
#layanan-tbs .service-photo img { object-position: 50% 12%; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.service-body h3 { font-size: 1.3rem; font-weight: 700; }
.service-card--lead .service-body h3 { font-size: 1.55rem; }
.service-body p { margin: 10px 0 20px; color: var(--muted); font-size: .95rem; }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--gold-ink); }
.service-link svg { transition: transform .2s var(--ease); }
.service-link:hover svg { transform: translateX(4px); }

/* Logistics network */
.network { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: var(--section) var(--edge); background: var(--ink-deep); color: #fff; }
.network h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 800; }
.network-copy > p:not(.eyebrow) { margin: 16px 0 0; color: rgba(255, 255, 255, .78); }
.network-modes { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 28px 0 0; padding: 4px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.network-modes button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .78); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.network-modes button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.network-modes button[aria-checked="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.key { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.key--tbs { background: var(--gold); }
.key--cpo { background: #e7ecea; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.network-panel { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); min-height: 104px; }
.network-panel h3 { font-size: 1.05rem; color: #fff; }
.network-panel p { margin: 6px 0 0; font-size: .92rem; line-height: 1.6; color: rgba(255, 255, 255, .74); }
.network-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; min-height: 36px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .85); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.network-toggle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px rgba(248, 196, 63, .18); }
.network-toggle[aria-pressed="true"]::before { background: var(--sage); box-shadow: none; }
.network-toggle:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.network-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: .8rem; line-height: 1.55; color: var(--sage); }
.network-map { position: relative; border-radius: calc(var(--radius) + 4px); background: var(--ink); border: 1px solid var(--line-dark); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(212, 175, 55, .06); }
#network-svg { display: block; width: 100%; height: auto; stroke-linecap: round; stroke-linejoin: round; }
#network-svg { transition: none; }
.terrain path { stroke: rgba(168, 183, 179, .12); stroke-width: 1.5; fill: none; }
.terrain .river { stroke: rgba(110, 160, 170, .35); stroke-width: 6; }
.road { fill: none; stroke-width: 6; transition: opacity .35s; }
.road.tbs { stroke: rgba(212, 175, 55, .55); }
.road.cpo { stroke: rgba(231, 236, 234, .45); }
.network-map[data-mode="tbs"] .road.cpo, .network-map[data-mode="cpo"] .road.tbs { opacity: .12; }
.network-map[data-mode="tbs"] .veh.cpo, .network-map[data-mode="cpo"] .veh.tbs { opacity: .1; }
.veh { transition: opacity .35s; }
.veh.tbs .body { fill: var(--gold); }
.veh.tbs .load { fill: #6b8f3a; }
.veh.cpo .body { fill: #f2f5f4; }
.veh.cpo .tank { fill: #c9d2cf; }
.veh .cab { fill: #1f3a35; }
.veh * { stroke: none; }
.node { cursor: pointer; outline: none; }
.node circle, .node rect, .node path { stroke-width: 3; transition: transform .2s var(--ease); }
.node--farm circle { fill: #2f5a2a; stroke: var(--gold); }
.node--mill rect { fill: var(--ink-2); stroke: #fff; }
.node--tank circle { fill: #e7ecea; stroke: #fff; }
.node--port path { fill: #355a66; stroke: #e7ecea; }
.node text { fill: #fff; stroke: none; font-size: 15px; font-weight: 700; text-anchor: middle; paint-order: stroke; }
.node:hover circle, .node:hover rect, .node:hover path, .node:focus-visible circle, .node:focus-visible rect, .node:focus-visible path, .node.is-selected circle, .node.is-selected rect, .node.is-selected path { transform: scale(1.18); }
.node:focus-visible text, .node.is-selected text { fill: var(--cta); }
/* 3D map (Three.js): canvas plus HTML labels that follow their markers */
.network-3d { position: relative; display: none; height: clamp(400px, 44vw, 600px); overflow: hidden; background: var(--ink); cursor: grab; touch-action: pan-y; }
.network-3d:active { cursor: grabbing; }
.network-map.has-3d .network-3d { display: block; }
.network-map.has-3d #network-svg { display: none; }
.network-3d canvas { display: block; width: 100%; height: 100%; }
.network-3d-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Soft vignette so the tilted map's hard edges dissolve into the frame */
.network-3d::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 90px 20px var(--ink); }
.network-3d-label { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(7, 24, 23, .82); color: #fff; font: 700 11px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; white-space: nowrap; cursor: pointer; pointer-events: auto; transition: color .2s, border-color .2s, opacity .25s; }
.network-3d-label:hover, .network-3d-label.is-selected, .network-3d-label:focus-visible { color: var(--cta); border-color: rgba(248, 196, 63, .6); }
/* Each stop type has its own swatch, matched by the legend under the map */
.network-3d-label::before, .stop-key { content: ""; display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 2px; }
.network-3d-label--farm::before, .stop-key--farm { border-radius: 50%; background: #4f8a3c; box-shadow: 0 0 0 2px var(--gold); }
.network-3d-label--mill::before, .stop-key--mill { background: #dfe6e3; }
.network-3d-label--tank::before, .stop-key--tank { border-radius: 50%; background: #f2f5f4; box-shadow: 0 0 0 2px #9fb0ab; }
.network-3d-label--port::before, .stop-key--port { background: #5d7f8a; box-shadow: 0 0 0 2px var(--gold); }
.network-3d-credit { position: absolute; z-index: 2; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(7, 24, 23, .75); color: var(--sage); font-size: 11px; }
.network-3d-credit a { color: #e7ecea; }

/* Real map: Leaflet on a dark basemap, the SVG stays as the fallback */
.network-leaflet { display: none; height: clamp(380px, 42vw, 560px); background: var(--ink); }
.network-map.has-map .network-leaflet { display: block; }
.network-map.has-map #network-svg { display: none; }
/* OpenStreetMap tiles turned into a dark basemap to sit in the dark section */
.network-leaflet .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.62) contrast(.85) saturate(.25); }
.network-leaflet.leaflet-container { background: #16191a; } /* same tone as the dark tiles, so sub-pixel gaps between tiles disappear */
.network-leaflet .leaflet-control-attribution { background: rgba(7, 24, 23, .8); color: var(--sage); font-size: 11px; }
.network-leaflet .leaflet-control-attribution a { color: #e7ecea; }
.network-leaflet .leaflet-bar a { background: var(--ink-2); color: #fff; border-color: var(--line-dark); }
.network-leaflet .leaflet-bar a:hover { background: var(--ink); }
.network-leaflet .leaflet-marker-icon { outline: none; }
.map-node { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; }
.map-node i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid; transition: transform .2s var(--ease); }
.map-node--farm i { background: #2f5a2a; border-color: var(--gold); }
.map-node--mill i { width: 18px; height: 18px; border-radius: 4px; background: #dfe6e3; border-color: var(--ink-deep); box-shadow: 0 0 0 1px #dfe6e3; }
.map-node--tank i { width: 18px; height: 18px; background: #f2f5f4; border-color: #9fb0ab; }
.map-node--port i { width: 18px; height: 18px; border-radius: 4px; background: #5d7f8a; border-color: var(--gold); }
/* the storage tank sits next to Port A in Palembang: its label goes below the marker */
.map-node.map-node--tank b { bottom: auto; top: 100%; margin: 6px 0 0; }
.map-node b { position: absolute; bottom: 100%; margin-bottom: 6px; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: rgba(7, 24, 23, .9); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; transition: opacity .2s; }
.map-node b.is-crowded { opacity: 0; }
.leaflet-marker-icon:hover .map-node b, .leaflet-marker-icon:focus-visible .map-node b, .leaflet-marker-icon.is-selected .map-node b { opacity: 1; z-index: 1; }
.leaflet-marker-icon:hover .map-node i, .leaflet-marker-icon:focus-visible .map-node i, .leaflet-marker-icon.is-selected .map-node i { transform: scale(1.25); }
.leaflet-marker-icon.is-selected .map-node b, .leaflet-marker-icon:focus-visible .map-node b { color: var(--cta); }
.map-truck { position: absolute; display: block; width: 24px; height: 17px; transform: translate(-50%, -50%); transition: opacity .3s; pointer-events: none; }
.map-truck svg { width: 24px; height: 17px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.map-truck.is-dim { opacity: .12 !important; }
/* Stops outside the chosen mode or selection step back */
.leaflet-marker-icon .map-node { transition: opacity .25s; }
.leaflet-marker-icon.is-dim .map-node { opacity: .3; }
.network-3d-label.is-dim { opacity: .35; }
.network-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 16px 22px; border-top: 1px solid var(--line-dark); background: rgba(255, 255, 255, .02); font-size: .84rem; color: rgba(255, 255, 255, .78); }
.network-legend span { display: inline-flex; align-items: center; gap: 8px; }
.network-legend .legend-stops { display: contents; }

/* Fleet & operations */
.operations { padding: var(--section) var(--edge); }
.fleet-table { margin-top: 40px; overflow-x: auto; }
.fleet-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fleet-table th, .fleet-table td { padding: 16px 20px 16px 0; text-align: left; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.fleet-table thead th { padding-top: 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.fleet-table tbody th { font-weight: 700; }
.fleet-table td { color: var(--muted); }
.ops-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: 64px; }
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.flow li { counter-increment: step; position: relative; padding: 4px 0 32px 64px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: .9rem; font-weight: 800; }
.flow li::after { content: ""; position: absolute; top: 40px; bottom: 0; left: 19px; width: 2px; background: var(--line-light); }
.flow li:last-child::after { display: none; }
.flow li:last-child::before { background: var(--cta); color: var(--ink); }
.flow h3 { font-size: 1.15rem; font-weight: 700; }
.flow p { margin: 6px 0 0; max-width: 520px; font-size: .95rem; color: var(--muted); }
.records { position: sticky; top: calc(var(--header-h, 76px) + 32px); display: grid; gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink); color: #fff; }
.records h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 800; }
.records-copy p { margin: 12px 0 0; max-width: 460px; color: rgba(255, 255, 255, .78); }
.waybill { margin: 0; padding: 0 22px 8px; background: #f7f3e8; color: var(--ink); border-radius: 6px; transform: rotate(-1.5deg); font-size: .9rem; }
.waybill::before { content: ""; display: block; height: 10px; margin: 0 -22px; background: radial-gradient(circle at 8px -2px, var(--ink) 6px, transparent 6.5px) 0 0 / 16px 10px repeat-x; }
.waybill > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(10, 33, 29, .22); }
.waybill > div:last-child { border-bottom: 0; }
.waybill-head { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.waybill-head span:last-child { color: var(--gold-ink); }
.waybill dt { color: #5f5e53; }
.waybill dd { margin: 0; font-weight: 700; text-align: right; }
.waybill dd.ok { color: #1f7a4d; }

/* Safety & reliability: the heading above, the five practices as one band across the full width */
.reliability { padding: var(--section) var(--edge); background: var(--ink); color: #fff; }
.reliability .section-head p { color: var(--sage); }
.reliability .section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; max-width: none; }
.reliability .section-head p { margin: 0; max-width: 420px; }
.practice-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 56px 0 0; padding: 0; }
.practice-list li { display: grid; align-content: start; gap: 10px; padding: 24px 22px 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); transition: transform .3s var(--ease), border-color .3s; }
.practice-list li:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, .45); }
.practice-icon { width: 28px; height: 28px; margin-bottom: 10px; color: var(--gold); stroke-width: 1.6; }
.practice-list h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.practice-list p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .9rem; line-height: 1.6; }

/* Contact & inquiry */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding: var(--section) var(--edge); background: var(--mist); }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; }
.contact-copy > p { margin: 16px 0 28px; max-width: 460px; color: var(--muted); font-size: 1.05rem; }
.brief { margin-top: 36px; padding: 24px 26px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line-light); }
.brief h3 { font-size: 1.05rem; font-weight: 800; }
.brief ul { list-style: none; margin: 8px 0 0; padding: 0; }
.brief li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line-light); }
.brief li:last-child { border-bottom: 0; }
.brief strong { font-size: .95rem; }
.brief span { font-size: .88rem; color: var(--muted); }
.contact-strip { list-style: none; display: grid; gap: 20px; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line-light); font-size: .95rem; }
.contact-strip small { display: block; margin-bottom: 2px; font-size: .82rem; font-weight: 700; color: var(--gold-ink); }
.contact-strip a { border-bottom: 1px solid rgba(122, 93, 0, .35); }
.contact-strip a:hover { color: var(--gold-ink); }
.contact-strip .map-link { display: table; margin-top: 4px; font-size: .85rem; }
.inquiry { position: sticky; top: calc(var(--header-h, 76px) + 24px); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); }
.inquiry h3 { font-size: 1.35rem; font-weight: 800; }
.form-status { margin: 12px 0 0; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { padding: 12px 14px; border-radius: 10px; background: #e5f4ec; color: #145c37; font-weight: 600; }
.form-status[data-state="error"] { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1f1a; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 20px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #c7cfca; border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-weight: 500; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { height: 46px; padding-block: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 175, 55, .35); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-hint { font-size: .8rem; font-weight: 500; color: var(--muted); }
.field-error { font-size: .82rem; font-weight: 600; color: #b42318; }
.field-error:empty { display: none; }
.optional { font-weight: 500; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 24px; min-width: 220px; }
.submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), opacity .25s, background .2s; }
.wa-float:hover { background: var(--wa-dark); }
.wa-float .wa-icon { width: 26px; height: 26px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* Footer: a designed close on the page's own edges */
.site-footer { padding: 0 var(--edge); background: var(--ink-deep); color: var(--sage); font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; font-size: .82rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.to-top:hover { color: var(--gold); }
.to-top svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }

/* Motion: content is never hidden by an animation that might not run; it only moves into place */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.js .hero-copy > * { animation: rise .7s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-media img { animation: settle 1.2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
.js [data-reveal] { opacity: .35; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .service-card[data-reveal].is-visible:hover { transform: translateY(-4px); }

/* Responsive */
@media (min-width: 901px) {
  #main-nav { margin-left: auto; }
  .lang-switch { order: 3; }
}
/* Narrow desktops: keep the header on one line */
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header { gap: 16px; }
  .brand-text small { display: none; }
  .brand-text strong, #main-nav a { white-space: nowrap; }
  #main-nav { gap: 18px; font-size: .9rem; }
}

@media (max-width: 1180px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card--lead { grid-column: 1 / -1; flex-direction: row; }
  .service-card--lead .service-photo { flex: 0 0 50%; height: auto; min-height: 320px; }
  .network { grid-template-columns: 1fr; }
  .practice-list { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 16px; }
  .practice-list li { grid-column: span 2; }
  .practice-list li:nth-child(n+4) { grid-column: span 3; }
}

@media (max-width: 900px) {
  .brand-text small { display: none; }
  .lang-switch { margin-left: auto; }
  .lang-switch a { min-height: 36px; padding: 4px 8px; }
  .menu-button { display: inline-flex; padding: 8px 16px; border: 1px solid var(--gold); border-radius: 999px; background: transparent; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; }
  #main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--edge) 20px; background: var(--ink-deep); border-bottom: 1px solid var(--line-dark); }
  #main-nav.open { display: flex; }
  #main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  #main-nav a::after { display: none; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero-copy { width: auto; max-width: 640px; }
  .hero-media { position: relative; inset: auto; margin: 48px calc(-1 * var(--edge)) 0; aspect-ratio: 16 / 10; }
  .hero-media img { object-position: 60% 60%; }
  .hero-media::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 33, 29, 0) 18%); }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .about-media img { aspect-ratio: 4 / 3; }
  .contact { grid-template-columns: 1fr; }
  .inquiry { position: static; }
  .ops-grid { grid-template-columns: 1fr; }
  .records { position: static; }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card--lead { flex-direction: column; }
  .service-card--lead .service-photo { flex: none; height: 220px; min-height: 0; }
  .commitments { grid-template-columns: 1fr; gap: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .fleet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fleet-table tr { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
  .fleet-table th, .fleet-table td { display: block; padding: 0; border: 0; }
  .fleet-table tbody th { font-size: 1rem; margin-bottom: 4px; }
  .practice-list { grid-template-columns: 1fr; row-gap: 12px; }
  .reliability .section-head { grid-template-columns: 1fr; }
  .practice-list li, .practice-list li:nth-child(n+4) { grid-column: auto; }
  .node text { font-size: 26px; }
  .node--tank text, .node--port text { text-anchor: end; transform: translateX(22px); }
  .network-legend { flex-direction: column; }
  .network-leaflet { height: 440px; }
  .network-legend .legend-stops { display: flex; flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 560px) {
  /* Three filters stay on one row as an even segmented control */
  .network-modes { display: grid; grid-template-columns: auto 1fr 1fr; width: 100%; }
  .network-modes button { justify-content: center; gap: 5px; padding: 8px 6px; font-size: .8rem; white-space: nowrap; }
  .network-modes .key { width: 12px; }
  .site-header { gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: .9rem; line-height: 1.2; }
  .menu-button { width: 44px; height: 44px; padding: 0; justify-content: center; align-items: center; flex: none; }
  .menu-button svg { display: block; width: 20px; height: 20px; stroke-width: 2; }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-actions .button, .contact-copy .button, .submit { width: 100%; }
  .waybill { transform: none; }
  .wa-float { right: 16px; bottom: 16px; padding: 14px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
