/* =========================================================================
   TravelErp - Public Website Design System
   Concept: the agency moves people through documents and journeys, so the
   visual language borrows from boarding passes, visa stamps, and ticket
   stubs - the actual artifacts this business produces every day.
   ========================================================================= */

:root {
  /* Color */
  --ink: #0F1B2D;
  --ink-2: #0B141F;
  --surface: #16243A;
  --surface-2: #1E2F47;
  --gold: #D4A24C;
  --gold-soft: #E8C788;
  --teal: #2E8B82;
  --text: #EDEFF2;
  --muted: #8C9AB3;
  --line: rgba(237, 239, 242, 0.14);

  /* Type */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
}

p { line-height: 1.6; color: var(--muted); margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 27, 45, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- Hero: boarding pass ---------------- */
.hero { padding: 72px 0 56px; }

.boarding-pass {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 220px;
  overflow: hidden;
  position: relative;
}

.boarding-pass::after {
  /* perforated tear line between the main stub and the side stub */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 220px;
  width: 0;
  border-left: 2px dashed rgba(237,239,242,0.22);
}

.bp-main { padding: 40px 44px; }

.bp-route {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px;
  font-family: var(--font-mono);
  color: var(--text);
}
.bp-route .code { font-size: 2rem; font-weight: 700; letter-spacing: 0.04em; }
.bp-route .path { flex: 1; position: relative; height: 2px; background: var(--line); }
.bp-route .path::before {
  content: "✈";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  background: var(--surface);
  color: var(--gold);
  padding: 0 8px;
  font-size: 1rem;
}

.bp-main h1 { font-size: 2.1rem; max-width: 560px; color: var(--text); }
.bp-main .lede { max-width: 520px; }

.bp-actions { display: flex; gap: 12px; margin-top: 24px; }

.bp-side {
  background: var(--surface-2);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bp-field { margin-bottom: 18px; }
.bp-field .label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.bp-field .value { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-top: 2px; }

.bp-barcode {
  height: 46px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 2px,
    transparent 2px, transparent 5px,
    var(--gold) 5px, var(--gold) 6px,
    transparent 6px, transparent 10px,
    var(--gold) 10px, var(--gold) 13px,
    transparent 13px, transparent 16px
  );
  border-radius: 4px;
  opacity: 0.9;
}

/* ---------------- Section headers ---------------- */
.section { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: 1.8rem; color: var(--text); }

/* ---------------- Service cards: ticket stubs ---------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.ticket-card:hover { transform: translateY(-3px); border-color: var(--gold); }

.ticket-card .stub-top {
  padding: 22px 22px 14px;
  flex: 1;
}
.ticket-card .stub-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.ticket-card h3 { font-size: 1.08rem; color: var(--text); margin: 8px 0 6px; }
.ticket-card p { font-size: 0.88rem; margin: 0; }

.ticket-card .stub-tear {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--line);
  margin: 0 18px;
}
.ticket-card .stub-tear::before,
.ticket-card .stub-tear::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket-card .stub-tear::before { left: -26px; }
.ticket-card .stub-tear::after { right: -26px; }

.ticket-card .stub-bottom {
  padding: 14px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ticket-card .stub-bottom .mini-barcode {
  width: 70px; height: 18px;
  background: repeating-linear-gradient(
    90deg, var(--muted) 0 1px, transparent 1px 3px
  );
  opacity: 0.6;
}
.ticket-card .stub-bottom a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); }

/* ---------------- Package cards ---------------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.package-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.package-card .img-wrap { aspect-ratio: 16/10; background: var(--surface-2); }
.package-card .body { padding: 18px 20px; }
.package-card .price { font-family: var(--font-mono); color: var(--gold); font-size: 1rem; margin-top: 6px; }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 18px; }
.alert-success { background: rgba(46,139,130,0.18); color: #8FD9CF; border: 1px solid var(--teal); }
.alert-error { background: rgba(212,99,76,0.16); color: #E8A893; border: 1px solid #C9654B; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
.site-footer .cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .muted-small { color: var(--muted); font-size: 0.82rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .boarding-pass { grid-template-columns: 1fr; }
  .boarding-pass::after { display: none; }
  .bp-side { flex-direction: row; flex-wrap: wrap; }
  .nav-links { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticket-card { transition: none; }
}

/* Visible keyboard focus throughout */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
