:root {
  --ink: #13201f;
  --ink-2: #243634;
  --muted: #687673;
  --teal: #08746d;
  --teal-dark: #075852;
  --gold: #e4a83b;
  --blue: #234c63;
  --mint: #eaf4f2;
  --cream: #f7f4ef;
  --white: #ffffff;
  --line: rgba(19, 32, 31, 0.12);
  --radius: 8px;
  --shadow: 0 16px 42px rgba(16, 38, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

body.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(16, 38, 36, 0.1);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--teal);
  border-color: var(--gold);
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfa;
}

.language-switch button {
  width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.language-switch button.active {
  color: var(--white);
  background: var(--teal);
}

.header-cta,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-cta,
.btn.primary {
  color: var(--white);
  background: var(--teal);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://www.batamtravelguide.com/wp-content/uploads/2023/10/Batam-Travel-guide.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(9, 27, 25, 0.88), rgba(9, 27, 25, 0.58), rgba(9, 27, 25, 0.24));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1200px, calc(100% - 36px));
  min-height: 760px;
  margin: 0 auto;
  padding: 86px 0 120px;
}

.eyebrow,
.section-kicker,
.panel-heading span,
.source-pill,
.itinerary-card span,
.photo-feature span,
.gateway-strip span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 16px 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
}

.hero-lede {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-metrics span {
  display: grid;
  min-width: 154px;
  min-height: 84px;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: 28px;
}

.planner {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.panel-heading strong {
  font-size: 24px;
}

.planner label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}

.planner input,
.planner select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
}

.planner-row {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 10px;
  margin-top: 12px;
}

.route-result {
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--mint);
}

.route-result h3 {
  margin: 0 0 6px;
}

.route-result p,
.route-result ul,
.microcopy {
  color: var(--muted);
  font-size: 13px;
}

.gateway-strip,
.section,
.schedule-board {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.gateway-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -64px;
}

.gateway-strip article,
.route-card,
.port-card,
.itinerary-card,
.seo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 38, 36, 0.07);
}

.gateway-strip article {
  min-height: 170px;
  padding: 18px;
}

.gateway-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
}

.gateway-strip p,
.section-copy p,
.domestic-copy p,
.port-card p,
.itinerary-card p,
.seo-card p,
.source-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding-top: 86px;
}

.split-section,
.domestic-feature,
.source-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.section h2 {
  max-width: 800px;
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
}

.schedule-board {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfa;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
}

.route-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fbfcfb;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.route-card:hover,
.seo-card:hover,
.itinerary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 38, 36, 0.12);
}

.route-card.featured {
  border-color: rgba(8, 116, 109, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #f2faf7 100%);
}

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

.route-top h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.route-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.route-meta,
.times,
.operator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.route-meta {
  margin-top: 10px;
}

.route-meta span,
.time-chip,
.operator-chips strong {
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.status {
  flex: 0 0 auto;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(228, 168, 59, 0.16);
  color: #8a5a0a;
  font-size: 12px;
  font-weight: 900;
}

.time-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.time-box,
.operator-box,
.fare-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.time-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

.time-chip.warning {
  background: #fff4e3;
  color: #875813;
}

.operator-box,
.fare-box {
  display: grid;
  gap: 8px;
}

.operator-box > span,
.fare-box span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fare-box {
  border-color: rgba(8, 116, 109, 0.2);
  background: #f4fbf8;
}

.fare-box strong {
  font-size: 18px;
}

.fare-box p,
.fare-box small,
.operator-box small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.route-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.route-footer a,
.seo-card span,
.itinerary-card a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  border-bottom: 2px solid rgba(8, 116, 109, 0.22);
}

.domestic-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.domestic-list span {
  padding: 13px;
  border-left: 4px solid var(--gold);
  background: var(--white);
}

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

.photo-feature img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.photo-feature div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.photo-feature strong {
  display: block;
  margin-top: 5px;
}

.section-header p {
  max-width: 780px;
}

.ports-grid,
.itinerary-grid,
.seo-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

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

.port-card {
  overflow: hidden;
}

.port-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.port-card div,
.itinerary-card,
.seo-card {
  padding: 18px;
}

.port-card h3,
.itinerary-card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
}

.itinerary-grid {
  grid-template-columns: 1.1fr repeat(3, minmax(0, 0.72fr));
}

.itinerary-card {
  min-height: 240px;
}

.itinerary-card.highlight {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  grid-column: span 2;
  padding: 0;
  overflow: hidden;
}

.itinerary-card.highlight img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.itinerary-card.highlight div {
  padding: 22px;
}

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

.seo-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border-top: 4px solid var(--gold);
}

.seo-card strong {
  display: block;
}

.source-section {
  align-items: start;
  padding-bottom: 80px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.source-list a {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.reveal-ready [data-animate="true"] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.reveal-ready [data-animate="true"].reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 520ms ease var(--reveal-delay, 0ms), transform 520ms ease var(--reveal-delay, 0ms);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    display: none;
  }

  .gateway-strip,
  .ports-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 920px) {
  .hero-inner,
  .split-section,
  .domestic-feature,
  .source-section {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 74px 0 96px;
  }

  .gateway-strip {
    margin-top: -56px;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .language-switch button {
    width: 34px;
    height: 28px;
    font-size: 11px;
  }

  .hero-inner,
  .gateway-strip,
  .section,
  .schedule-board {
    width: min(100% - 28px, 1200px);
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero-actions,
  .planner-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .gateway-strip,
  .time-columns,
  .ports-grid,
  .itinerary-grid,
  .seo-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
  }

  .section h2 {
    font-size: 32px;
  }

  .route-top,
  .route-footer,
  .itinerary-card.highlight {
    display: grid;
    grid-template-columns: 1fr;
  }

  .itinerary-card.highlight {
    grid-column: span 1;
  }

  .site-footer {
    display: grid;
  }
}
