:root {
  --blue: #0055FF;
  --blue-dark: #0044CC;
  --navy: #040A3E;
  --grey: #EDEDEF;
  --white: #FFFFFF;
  --ink: #101226;
  --ink-soft: #4A4E68;
  --blue-tint: #E8EFFF;
  --blue-tint-2: #C9D9FF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(4, 10, 62, 0.25);
  --max-width: 1240px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Poppins', 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 16px; color: var(--navy); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
ul { color: var(--ink-soft); line-height: 1.7; padding-left: 20px; }
.section-lede { max-width: 760px; font-size: 17px; }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 24px -8px rgba(0, 85, 255, 0.55);
}
.cta-button:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 85, 255, 0.6); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(4,10,62,0.06);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px;
}
.logo img { height: 20px; width: auto; }
.main-nav { display: flex; gap: 20px; justify-content: center; white-space: nowrap; }
.main-nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 14px; opacity: 0.8; }
.main-nav a:hover { opacity: 1; color: var(--blue); }
.mobile-nav-cta { display: none; }
.header-cta { padding: 11px 22px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; margin: 0 auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 85% 0%, var(--blue-tint) 0%, #F5F8FF 45%, #FFFFFF 75%);
  padding-top: 13px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
}
.hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.hero-lede { font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 16px 0 20px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 34px; margin: 0; padding: 0; max-width: 560px; }
.hero-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.hero-stats dd { margin: 0; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; }

.hero-art { position: relative; height: 380px; }
.hero-art-bg {
  position: absolute; top: -30px; right: -14%; width: 108%; height: auto;
  opacity: 0.95; filter: saturate(1.05);
}
.hero-art-train {
  position: absolute; bottom: 0; right: -10%; width: 88%; height: auto;
  filter: drop-shadow(0 30px 40px rgba(4,10,62,0.28));
}

.widget-wrap { position: relative; z-index: 2; margin-top: 9px; }
.widget-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px 24px;
  background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow);
}
#firebird-search-widget { min-height: 64px; }
#firebird-search-widget form { grid-template-columns: minmax(360px, 600px) minmax(230px, 270px) 134px 150px !important; }
.widget-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin: 14px 2px 0; }
.widget-note svg { color: var(--blue); flex-shrink: 0; }

/* ---------- SECTIONS ---------- */
.section { padding: 40px 0; }
.section.alt { background: #FAFBFF; }
.section h2 { margin-bottom: 14px; }

/* Option cards */
.option-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.option-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.option-card img { width: 100%; height: 220px; object-fit: cover; flex-shrink: 0; }
.option-body { padding: 22px 22px 26px; flex: 1; }
.option-body h3 { margin-bottom: 8px; }
.option-body p { margin: 0; font-size: 14.5px; }
.option-blue { background: var(--blue-tint); }
.option-navy { background: var(--navy); }
.option-navy h3, .option-navy p { color: #fff; }
.option-navy p { color: #C9D3FF; }
.option-grey { background: var(--grey); }

/* Fact grid */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0 22px; }
.fact-card { border-radius: var(--radius-md); padding: 24px 22px; min-height: 108px; display: flex; align-items: center; }
.fact-blue { background: var(--blue-tint-2); }
.fact-grey { background: var(--grey); }
.fact-text { margin: 0; font-size: 15.5px; color: var(--navy); font-weight: 500; }
.footnote { font-size: 14px; color: var(--ink-soft); }

/* Route */
.route-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 18px 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.station-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; align-items: start; }
.station-card { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.station-card img { width: 100%; height: 160px; object-fit: cover; }
.station-card figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; font-size: 13.5px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(4,10,62,0.75), transparent); }

.route-map-wrap { display: flex; justify-content: center; }
.route-map { position: relative; max-width: 420px; width: 100%; }
.route-map img { width: 100%; height: auto; }

/* Prices */
.price-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.price-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.price-card { background: var(--grey); border-radius: var(--radius-md); padding: 20px 18px; }
.price-card-dark { background: var(--navy); }
.price-card-dark p { color: #C9D3FF; }
.price-big { display: block; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--blue); margin-bottom: 8px; }
.price-card-dark .price-big { color: #fff; }
.price-card p { margin: 0; font-size: 13.5px; }

/* Three-col text */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.three-col > div { border-left: 3px solid var(--blue-tint-2); padding-left: 20px; }

/* Classes */
.class-group-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 40px 0 18px; }
.class-group-label:first-of-type { margin-top: 8px; }
.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.class-cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
.class-card { margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.class-card img { width: 100%; height: 220px; object-fit: cover; }
.class-card figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(to top, rgba(4,10,62,0.88) 0%, rgba(4,10,62,0.15) 55%, transparent 75%); }
.class-card figcaption span { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.class-card figcaption p { color: #E5EAFF; font-size: 12.5px; margin: 0; line-height: 1.5; }

/* Class comparison table */
.compare-wrap { margin-top: 48px; background: var(--grey); border-radius: var(--radius-lg); padding: 32px; }
.compare-title { margin-bottom: 20px; }
.compare-table-scroll { overflow-x: auto; border-radius: var(--radius-md); box-shadow: 0 6px 18px -12px rgba(4,10,62,0.15); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.compare-table th {
  background: var(--navy); color: #fff; text-align: left; font-weight: 700;
  font-size: 13.5px; padding: 16px 20px; white-space: nowrap;
}
.compare-table th:first-child { border-top-left-radius: var(--radius-md); }
.compare-table th:last-child { border-top-right-radius: var(--radius-md); }
.compare-table td { padding: 14px 20px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid rgba(4,10,62,0.06); }
.compare-table td strong { color: var(--navy); }
.compare-table tbody tr:nth-child(even) { background: #F7F8FC; }
.compare-best { color: var(--blue); font-weight: 700; }

/* Activities */
.activity-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; align-items: stretch; }
.activity-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 20px; display: flex; flex-direction: column; }
.activity-card img { width: 100%; height: 150px; object-fit: cover; }
.activity-card h3 { font-size: 17px; margin: 16px 18px 8px; }
.activity-card p { font-size: 13.5px; margin: 0 18px; }
.activity-blue { background: var(--blue-tint); }
.activity-navy { background: var(--navy); }
.activity-navy h3, .activity-navy p { color: #fff; }
.activity-navy p { color: #C9D3FF; }
.activity-grey { background: var(--grey); }

/* Tips */
.tips-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 32px; text-align: center; }
.tip h4 { color: var(--blue); }
.tip p { font-size: 13.5px; }

/* FAQ */
.faq-section { background: var(--grey); }
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.faq-item { background: #fff; border-radius: var(--radius-md); padding: 20px 24px; box-shadow: 0 6px 18px -12px rgba(4,10,62,0.15); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--navy);
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: #fff; top: 50%; left: 50%; }
.faq-icon::before { width: 11px; height: 2px; transform: translate(-50%,-50%); }
.faq-icon::after { width: 2px; height: 11px; transform: translate(-50%,-50%); transition: transform 0.2s ease; }
.faq-item[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg) scaleX(0); }
.faq-item p { margin: 14px 0 0; font-size: 15px; }

/* Final CTA */
.final-cta { position: relative; padding: 50px 0; overflow: hidden; }
.final-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4,10,62,0.92) 25%, rgba(4,10,62,0.55) 75%); z-index: 1; }
.final-cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; padding: 0 24px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #D6DDFF; font-size: 16.5px; }

/* Footer */
footer { background: var(--navy); padding: 24px 0; }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { color: #97A0D0; font-size: 13px; max-width: 720px; }
.footer-brand a { color: #C9D3FF; text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 300px; margin-top: 12px; }
  .option-cards, .class-cards, .three-col { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid, .price-grid { grid-template-columns: 1fr; }
  .route-map-wrap { order: -1; max-width: 360px; margin: 0 auto 20px; }
  .activity-cards { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-cta { display: none; }
  .nav-toggle { justify-self: end; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 18px 24px 24px; gap: 4px; box-shadow: 0 16px 24px -16px rgba(4,10,62,0.3);
    border-bottom: 1px solid rgba(4,10,62,0.06);
  }
  .main-nav.open a { padding: 12px 4px; border-bottom: 1px solid rgba(4,10,62,0.06); color: var(--navy); }
  .main-nav.open a.mobile-nav-cta {
    display: flex; align-items: center; justify-content: center;
    margin-top: 10px; padding: 14px 26px; border-radius: 999px; border: none;
    background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
  }
}

@media (max-width: 640px) {
  .section { padding: 28px 0; }
  .option-cards, .class-cards, .class-cards-2, .three-col, .activity-cards, .tips-grid, .fact-grid, .price-cards { grid-template-columns: 1fr; }
  .station-cards { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
  .final-cta { padding: 35px 0; }

  /* Bring the search widget higher up the mobile scroll: the hero's
     decorative KOREA/train graphic and its spacing were pushing the
     widget well below the fold. Trim mobile-only. */
  .hero { padding-top: 6px; }
  .hero-lede { margin-bottom: 10px; }
  .hero-actions { margin: 10px 0 14px; }
  .hero-art { height: 170px; margin-top: 0; }
  .widget-wrap { margin-top: 0; }
  .widget-inner { padding: 10px 18px 16px; }
}
