/* ==========================================================================
   Flight Help Guide — base stylesheet
   Clean customer-service-directory layout. Responsive, no framework.
   ========================================================================== */
:root {
  --brand: #0b5fff;
  --brand-dark: #0846c2;
  --ink: #11203b;
  --ink-soft: #475069;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-card: #ffffff;
  --warn-bg: #fff8e6;
  --warn-line: #f2d488;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 59, .06), 0 8px 24px rgba(16, 32, 59, .06);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-block; font-weight: 600; padding: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); text-decoration: none; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; color: var(--ink-soft); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); z-index: 30; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 1rem; }
.brand__name { font-size: 1.05rem; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-soft); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); background: var(--bg-alt); text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%); padding: 64px 0 48px; text-align: center; }
.hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 14px; letter-spacing: -.02em; }
.hero__subtitle { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; margin: 0 auto 28px; }
.search { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.search--inline { margin: 16px 0 6px; }
.search__input { flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; box-shadow: var(--shadow); }
.search__input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.search__examples { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 20px 0 0; }
.search__status { color: var(--ink-soft); font-size: .92rem; margin: 6px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin: 0; font-size: 1.5rem; }
.section__link { font-weight: 600; white-space: nowrap; }
.section__subtitle { font-size: 1.25rem; margin: 32px 0 16px; }

/* ---------- Card grids ---------- */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.card-grid--airlines { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card-grid--issues { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card-grid--guides { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdd7ea; }
.card a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; height: 100%; color: var(--ink); }
.card a:hover { text-decoration: none; }
.card__title { font-weight: 700; font-size: 1.05rem; }
.card__desc { color: var(--ink-soft); font-size: .92rem; }
.card__meta { color: var(--ink-soft); font-size: .82rem; margin-top: auto; }
.card__badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #eef3ff; color: var(--brand); font-weight: 800; text-transform: uppercase; }
.card--issue a { flex-direction: row; align-items: center; flex-wrap: wrap; }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step__title { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Pages & posts ---------- */
.page, .post { padding: 36px 0 56px; }
.page__header, .post__header { margin-bottom: 24px; }
.page__header h1, .post__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 8px 0 10px; letter-spacing: -.01em; }
.page__lead, .post__lead { font-size: 1.12rem; color: var(--ink-soft); }
.post__meta { color: var(--ink-soft); font-size: .9rem; }
.post__hero { border-radius: var(--radius); margin: 8px 0 24px; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.prose p, .prose li { color: #243049; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { text-decoration: underline; }
.header-anchor { color: inherit; text-decoration: none; }

/* ---------- Table of contents ---------- */
.post__toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 28px; }
.post__toc-title { font-size: 1rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.toc ul { margin: 0; padding-left: 18px; }
.toc a { color: var(--brand); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; font-size: .88rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9aa6bf; }

/* ---------- FAQ ---------- */
.faq { margin: 36px 0; }
.faq__item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 4px 16px; background: #fff; }
.faq__q { font-weight: 600; cursor: pointer; padding: 12px 0; }
.faq__a { color: var(--ink-soft); padding-bottom: 12px; }

/* ---------- CTA box ---------- */
.cta-box { background: #eef3ff; border: 1px solid #d4e0ff; border-radius: var(--radius); padding: 24px 26px; margin: 36px 0; }
.cta-box__title { margin: 0 0 8px; font-size: 1.25rem; }
.cta-box__text { margin: 0 0 16px; color: #243049; }
.cta-box__note { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Disclaimer ---------- */
.disclaimer { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; }
.disclaimer__title { font-size: 1.1rem; margin: 0 0 8px; }
.disclaimer p { margin: 0; font-size: .92rem; color: #5b4a16; }

/* ---------- Related & misc ---------- */
.related { margin: 40px 0 8px; }
.empty-state { color: var(--ink-soft); background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1730; color: #c4cde2; margin-top: 48px; padding: 48px 0 28px; }
.site-footer a { color: #c4cde2; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer__title { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.brand--footer .brand__name { color: #fff; }
.site-footer__tagline { font-size: .9rem; margin: 12px 0 0; }
.site-footer__legal { border-top: 1px solid #243154; margin-top: 32px; padding-top: 20px; }
.site-footer__legal p { font-size: .82rem; color: #8b97b5; margin: 0 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px; }
  .search { flex-direction: column; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.call-box { background: #eafaf0; border: 1px solid #b8e6c8; border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 28px; text-align: center; }
.btn--call { background: #128a4c; color: #fff; font-size: 1.1rem; padding: 14px 24px; border-radius: 10px; display: inline-block; }
.btn--call:hover { background: #0e6e3c; text-decoration: none; }
.call-box__note { margin: 12px 0 0; font-size: .82rem; color: #3a5a45; }
