/* Kenya Airways web portal: design tokens, base styles and page components.
   Colour pairs meet WCAG 2.1 AA (4.5:1 text, 3:1 UI). The chat widget's own
   styles live in styles.css and reuse these tokens.
   [data-theme="high-contrast"] on <html> switches to the high-contrast palette. */

:root {
  --brand: #c8102e;          /* white text on this: 5.9:1 */
  --brand-dark: #9e0c24;
  --brand-tint: #fbe9ec;
  --accent: #1d3557;         /* deep navy for secondary surfaces */
  --ink: #0f1a30;            /* header and dark bands */
  --gold: #f2a93b;           /* sunset accent; use with --ink text (9:1) */
  --sand: #f3e4d0;
  --text: #1c1c1c;
  --text-muted: #555;        /* on white: 7.5:1 */
  --bg: #ffffff;
  --page-bg: var(--sand);   /* --text-muted on this: 5.9:1 */
  --surface: #fffaf3;
  --bubble-bot: #eef0f3;
  --bubble-user: var(--brand);
  --bubble-user-text: #ffffff;
  --border: #8a8f98;         /* on white: 3.3:1 */
  --border-soft: #e6d3bc;
  --focus: #1a5fd0;
  --chip-bg: #ffffff;
  --chip-text: #9e0c24;
  --status-ok: #0f6b2c;      /* on --badge-ok-bg: 5.8:1 */
  --status-warn: #8a5300;
  --status-down: #b3261e;
  --badge-ok-bg: #e3f4e8;
  --badge-warn-bg: #fff1d6;
  --badge-down-bg: #fde7e5;
  --badge-neutral-bg: #eceef2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 4px 16px rgba(60, 30, 10, 0.10);
  --content: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}

:root[data-theme="high-contrast"] {
  --brand: #000000;
  --brand-dark: #000000;
  --brand-tint: #000000;
  --accent: #000000;
  --ink: #000000;
  --gold: #ffff00;
  --sand: #000000;
  --text: #ffffff;
  --text-muted: #ffffff;
  --bg: #000000;
  --page-bg: #000000;
  --surface: #000000;
  --bubble-bot: #000000;
  --bubble-user: #ffff00;
  --bubble-user-text: #000000;
  --border: #ffffff;
  --border-soft: #ffffff;
  --focus: #00ffff;
  --chip-bg: #000000;
  --chip-text: #ffff00;
  --status-ok: #00ff00;
  --status-warn: #ffff00;
  --status-down: #ff6b6b;
  --badge-ok-bg: #000000;
  --badge-warn-bg: #000000;
  --badge-down-bg: #000000;
  --badge-neutral-bg: #000000;
  --shadow: none;
  --shadow-card: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--brand-dark); }
:root[data-theme="high-contrast"] a { color: #ffff00; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 12px; background: var(--bg); color: var(--text);
  border: 2px solid var(--focus);
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- Buttons and form controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--secondary { background: var(--surface); color: var(--brand-dark); border-color: var(--brand-dark); }
.btn--secondary:hover { background: var(--brand-tint); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-tint); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.55; cursor: default; }
:root[data-theme="high-contrast"] .btn--primary,
:root[data-theme="high-contrast"] .btn--light { background: #ffff00; color: #000; }
:root[data-theme="high-contrast"] .btn--secondary { color: #ffff00; border-color: #ffff00; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; }
.field__hint { font-size: 0.85rem; color: var(--text-muted); }
.input, select.input {
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit;
}
.input[aria-invalid="true"] { border: 2px solid var(--status-down); }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  border: 2px solid var(--status-down); color: var(--status-down); background: var(--badge-down-bg);
}
.alert--info { border-color: var(--accent); color: var(--text); background: var(--badge-neutral-bg); }
:root[data-theme="high-contrast"] .alert--info { border-color: #fff; }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  background: var(--badge-neutral-bg); color: var(--text);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--badge-ok-bg); color: var(--status-ok); }
.badge--warn { background: var(--badge-warn-bg); color: var(--status-warn); }
.badge--down { background: var(--badge-down-bg); color: var(--status-down); }
:root[data-theme="high-contrast"] .badge { border: 1px solid currentColor; }

/* ---------- Header ---------- */

.pill-new {
  display: inline-block; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--gold); color: var(--ink); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6;
}
:root[data-theme="high-contrast"] .pill-new { background: #ffff00; color: #000; }

.site-header {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background: linear-gradient(100deg, var(--ink) 0%, #1d3557 60%, #2a2350 100%);
  border-bottom: 3px solid var(--gold); box-shadow: 0 4px 18px rgba(10, 15, 30, 0.25);
}
:root[data-theme="high-contrast"] .site-header { background: #000; border-bottom: 2px solid #fff; box-shadow: none; }
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.brand__badge { display: inline-flex; padding: 6px 12px; border-radius: 12px; background: #fffaf3; box-shadow: inset 0 0 0 1px rgba(242, 169, 59, 0.6); }
.brand__logo { height: 38px; width: auto; display: block; }
.brand__product {
  font-size: 0.75rem; font-weight: 800; line-height: 1.15; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
}
:root[data-theme="high-contrast"] .brand__product { color: #fff; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  color: #fff; text-decoration: none; font-weight: 600; border-radius: 8px; white-space: nowrap;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.1); }
.nav__link[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
:root[data-theme="high-contrast"] .nav__link[aria-current="page"] { color: #ffff00; box-shadow: inset 0 -3px 0 #ffff00; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.header-icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.header-icon-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--gold); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffc061; }
:root[data-theme="high-contrast"] .btn--gold { background: #ffff00; color: #000; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.user-chip__avatar {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: 0.85rem; font-weight: 800;
}
:root[data-theme="high-contrast"] .user-chip__avatar { background: #000; color: #fff; border: 2px solid #fff; }
.menu-toggle { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: linear-gradient(160deg, var(--ink), #1d3557); color: #fff; border-top: 4px solid var(--gold); }
:root[data-theme="high-contrast"] .site-footer { border-top: 2px solid var(--border); }
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding: 40px 16px 24px;
}
.site-footer h2 { font-size: 1rem; margin: 0 0 12px; }
.site-footer__logo { height: 40px; width: auto; display: block; margin-bottom: 12px; background: #fffaf3; padding: 6px 10px; border-radius: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__note {
  border-top: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.85rem; text-align: center;
  padding: 16px max(16px, calc((100% - var(--content)) / 2 + 16px));
}
/* Keep the floating chat button from covering the last line of the page */
body:has(.launcher) .site-footer__note { padding-bottom: 96px; }

/* ---------- Home page ---------- */

.hero {
  position: relative; color: #fff; padding: 88px 0 120px; overflow: hidden;
  background: #3b0712 url("assets/photos/hero-kq-787.jpg") center 62% / cover no-repeat;
}
.hero::before, .page-banner::before {
  /* Darken the photo so white text stays readable (WCAG contrast) */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 26, 48, 0.92) 0%, rgba(29, 53, 87, 0.7) 45%, rgba(200, 16, 46, 0.25) 100%);
}
:root[data-theme="high-contrast"] .hero,
:root[data-theme="high-contrast"] .page-banner { background: #000; border-bottom: 2px solid #fff; }
:root[data-theme="high-contrast"] .hero::before,
:root[data-theme="high-contrast"] .page-banner::before { display: none; }
.hero__new {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero__new:hover { background: rgba(255, 255, 255, 0.22); }
.hero-quick { position: relative; z-index: 1; }
.hero-quick h2 { font-size: 1.2rem; }
.hero-quick__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.hero-quick__links a {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.hero-quick__links a:hover { border-color: var(--brand); color: var(--brand-dark); }

.page-banner {
  position: relative; color: #fff; padding: 72px 0 64px;
  background: var(--accent) center / cover no-repeat;
}
.page-banner > .container { position: relative; }
.page-banner h1 { margin: 0 0 10px; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.1; }
.page-banner p { margin: 0; max-width: 62ch; font-size: 1.12rem; }
.page-banner .pill-new { margin-bottom: 12px; }
.page-banner .section-gap { margin-top: 24px; }
.page-banner--status { background-image: url("assets/photos/flight-status-kq-787.jpg"); background-position: center 40%; }
.page-banner--destinations { background-image: url("assets/photos/nairobi.jpg"); background-position: center 60%; }
.page-banner--info { background-image: url("assets/photos/jkia-terminal.jpg"); }
.page-banner--assistant { background-image: url("assets/photos/wing-clouds.jpg"); background-position: center 70%; }
.page-banner--about { background-image: url("assets/photos/hero-kq-787.jpg"); background-position: center 62%; }
.page-banner--account { background-image: url("assets/photos/nairobi-giraffe.jpg"); background-position: center 45%; }
.page-banner--admin { background-image: url("assets/photos/kq-787-lhr.jpg"); background-position: center 26%; }
.page-banner--compact { padding: 48px 0 44px; }
.auth--photo { position: relative; background: var(--ink) url("assets/photos/diani-sunrise.jpg") center / cover no-repeat; }
.auth--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15, 26, 48, 0.75), rgba(158, 12, 36, 0.45)); }
.auth--photo > * { position: relative; }
:root[data-theme="high-contrast"] .auth--photo { background: #000; }
:root[data-theme="high-contrast"] .auth--photo::before { display: none; }
.breadcrumb { margin: 0 0 14px; font-size: 0.9rem; }
.breadcrumb a { color: #fff; }
:root[data-theme="high-contrast"] .breadcrumb a { color: #ffff00; }

.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; max-width: 52ch; margin: 0 0 28px; opacity: 0.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 24px;
}
:root[data-theme="high-contrast"] .card { border: 2px solid var(--border); }
.card h2, .card h3 { margin-top: 0; }

.status-card { position: relative; z-index: 2; box-shadow: var(--shadow); }
.status-form { display: flex; gap: 10px; flex-wrap: wrap; }
.status-form .input { flex: 1; min-width: 160px; text-transform: uppercase; }
.status-results { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.flight-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.flight-row__number { font-weight: 800; }
.flight-row__route { font-weight: 600; }
.flight-row__time { color: var(--text-muted); font-size: 0.9rem; }

.section { padding-top: 56px; }
.band .section { padding-top: 0; }
/* Space above the footer when a page ends with regular content rather than a band */
main > :last-child:not(.band) { margin-bottom: 64px; }
.section__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.section__lead { color: var(--text-muted); margin: 0 0 28px; max-width: 65ch; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; }

/* Cards that respond to the pointer */
.tile, .destination, .booking { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tile:hover, .destination:hover, .booking:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(60, 30, 10, 0.2); }
:root[data-theme="high-contrast"] .tile:hover,
:root[data-theme="high-contrast"] .destination:hover,
:root[data-theme="high-contrast"] .booking:hover { box-shadow: none; }

/* Feature highlights under the hero */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: -56px; position: relative; z-index: 3; padding: 8px;
}
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.feature + .feature { border-left: 1px solid var(--border-soft); }
.feature__icon {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
}
:root[data-theme="high-contrast"] .feature__icon { background: #ffff00; color: #000; }
.feature h3 { margin: 0; font-size: 1rem; }
.feature p { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-muted); }

/* Popular destinations */
.destinations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.destination { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.destination__image { display: block; width: 100%; aspect-ratio: 400 / 220; object-fit: cover; background: var(--badge-neutral-bg); }
.destination__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.destination__name { margin: 0; font-size: 1.25rem; }
.destination__country { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.destination__meta { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 14px; }
.destination .btn { align-self: flex-start; margin-top: auto; }
.tile__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand-dark);
}
:root[data-theme="high-contrast"] .tile__icon { border: 2px solid #fff; color: #ffff00; }
.tile h3 { margin: 4px 0 0; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--text-muted); flex: 1; }
.tile .btn { align-self: flex-start; margin-top: 8px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 16px 44px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem;
}
:root[data-theme="high-contrast"] .steps li::before { background: #ffff00; color: #000; }
.steps strong { display: block; }

/* ---------- Colour and photo bands ---------- */

.band { position: relative; padding: 64px 0; }
.band > .container { position: relative; }
.band--sand { background: var(--sand); }
.band--deep-sand { background: linear-gradient(180deg, #ecd4b6, var(--sand)); }
.band--navy { background: linear-gradient(135deg, var(--ink) 0%, #1d3557 70%, #26406a 100%); color: #fff; }
.band--red { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 60%, #6e0818 100%); color: #fff; }
.band--photo { color: #fff; background: var(--ink) center / cover no-repeat; }
.band--photo::before { content: ""; position: absolute; inset: 0; }
.band--photo.band--tint-navy::before { background: linear-gradient(120deg, rgba(15, 26, 48, 0.9), rgba(29, 53, 87, 0.75)); }
.band--photo.band--tint-red::before { background: linear-gradient(120deg, rgba(158, 12, 36, 0.92), rgba(15, 26, 48, 0.75)); }
.band--terminal { background-image: url("assets/photos/jkia-terminal.jpg"); }
.band--sky { background-image: url("assets/photos/wing-clouds.jpg"); }
.band--cabin { background-image: url("assets/photos/cabin-787.jpg"); }
.band--kq { background-image: url("assets/photos/kq-787-lhr.jpg"); background-position: center 26%; }
.band--navy .section__lead, .band--red .section__lead, .band--photo .section__lead,
.band--navy .muted-on-dark, .band--red .muted-on-dark, .band--photo .muted-on-dark { color: rgba(255, 255, 255, 0.9); }
.band .section__title { margin-top: 0; }
:root[data-theme="high-contrast"] .band--navy,
:root[data-theme="high-contrast"] .band--red,
:root[data-theme="high-contrast"] .band--photo,
:root[data-theme="high-contrast"] .band--deep-sand { background: #000; border-top: 2px solid #fff; }
:root[data-theme="high-contrast"] .band--photo::before { display: none; }

.features-band { padding: 28px 0; }
.features-band .features { margin: 0 auto; padding: 0 16px; background: transparent; border: 0; box-shadow: none; }
.features-band .feature + .feature { border-left-color: rgba(255, 255, 255, 0.25); }
.features-band .feature p { color: rgba(255, 255, 255, 0.88); }
.features-band .feature__icon { background: var(--gold); color: var(--ink); }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; box-shadow: var(--shadow-card); }
.mosaic__item:first-child { grid-row: span 2; }
.mosaic__item:last-child { grid-column: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(180deg, rgba(15, 26, 48, 0) 0%, rgba(15, 26, 48, 0.88) 70%);
}
.mosaic__item figcaption strong { display: block; font-size: 1.15rem; }
.mosaic__item figcaption span { font-size: 0.9rem; opacity: 0.95; }
:root[data-theme="high-contrast"] .mosaic__item figcaption { background: #000; }

.spotlight { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.spotlight h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 10px 0 12px; }
.spotlight p { margin: 0 0 20px; font-size: 1.08rem; max-width: 56ch; }
.spotlight__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spotlight__list li { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.spotlight__list li::before { content: "“"; color: var(--gold); font-weight: 800; margin-right: 4px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-row h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-row p { margin: 0; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card__image { width: 100%; height: 180px; object-fit: cover; display: block; }
.photo-card__body { padding: 20px 24px 24px; }

/* ---------- Flight status page ---------- */

.status-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: start; margin-top: -40px; position: relative; z-index: 2; }
.board__updated { font-size: 0.85rem; }
.board td:first-child { font-weight: 800; white-space: nowrap; }

/* ---------- Travel info page ---------- */

.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "−"; }
:root[data-theme="high-contrast"] .faq summary::after { color: #ffff00; }
.faq details p { margin: 0 0 16px; color: var(--text-muted); }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--brand-tint); border: 1px solid var(--border-soft);
}
:root[data-theme="high-contrast"] .cta-band { background: #000; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.3rem; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* ---------- Virtual Assistant page ---------- */

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability { display: flex; flex-direction: column; gap: 8px; }
.capability h3 { margin: 4px 0 0; font-size: 1.1rem; }
.capability p { margin: 0; color: var(--text-muted); flex: 1; }
.prompt {
  align-self: flex-start; margin-top: 8px; padding: 8px 14px; border-radius: 18px 18px 18px 4px;
  border: 1px solid var(--border-soft); background: var(--bubble-bot); color: var(--text);
  font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer;
}
.prompt::before { content: "Try: "; font-weight: 700; color: var(--brand-dark); }
.prompt:hover { border-color: var(--brand); }
:root[data-theme="high-contrast"] .prompt { border-color: #fff; }
:root[data-theme="high-contrast"] .prompt::before { color: #ffff00; }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.proof__value { font-size: 2.2rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
:root[data-theme="high-contrast"] .proof__value { color: #ffff00; }
.proof__label { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- About page ---------- */

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.credits td, .credits th { font-size: 0.9rem; }
.credits img { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }

/* ---------- Auth pages ---------- */

.auth { display: grid; place-items: center; padding: 48px 16px; }
.auth__layout {
  width: 100%; max-width: 960px; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--surface); border: 1px solid var(--border-soft);
}
:root[data-theme="high-contrast"] .auth__layout { border: 2px solid var(--border); }
.auth__aside {
  position: relative; color: #fff; padding: 40px 32px; display: flex; flex-direction: column; gap: 20px;
  background: #3b0712 url("assets/photos/wing-sunset.jpg") center / cover no-repeat;
}
.auth__aside::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(120, 8, 28, 0.92) 0%, rgba(60, 6, 18, 0.7) 55%, rgba(18, 8, 14, 0.35) 100%);
}
.auth__aside > * { position: relative; }
:root[data-theme="high-contrast"] .auth__aside::before { display: none; }
:root[data-theme="high-contrast"] .auth__aside { background: #000; border-right: 2px solid #fff; }
.auth__aside h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.auth__aside p { margin: 0; opacity: 0.95; }
.auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auth__perks li { display: flex; gap: 10px; align-items: center; }
.auth__perks li::before {
  content: "✓"; display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-weight: 800; font-size: 0.8rem;
}
.auth__perks--dark li::before { background: var(--brand-tint); color: var(--brand-dark); }
:root[data-theme="high-contrast"] .auth__perks--dark li::before { background: #000; color: #ffff00; border: 1px solid #fff; }
.auth__card { width: 100%; max-width: 440px; }
.auth__layout .auth__card { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 40px 36px; align-self: center; }
.tabs { display: flex; gap: 4px; margin: -8px 0 20px; border-bottom: 1px solid var(--border-soft); }
.tab {
  flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent;
}
.tab[aria-selected="true"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
:root[data-theme="high-contrast"] .tab[aria-selected="true"] { color: #ffff00; border-bottom-color: #ffff00; }
.auth__submit { width: 100%; }
.btn--google { background: #fff; color: #1f1f1f; border-color: #747775; }
.btn--google:hover { background: #f2f2f2; }
:root[data-theme="high-contrast"] .btn--google { background: #fff; color: #000; border-color: #ffff00; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: 0.9rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--border-soft); }

/* ---------- Account page ---------- */

.page-head { padding: 40px 0 8px; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.page-head p { margin: 0; color: var(--text-muted); }
.bookings { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 24px; }
.booking { padding: 0; overflow: hidden; }
.booking__banner { display: block; width: 100%; height: 120px; object-fit: cover; }
.booking__content { padding: 20px 24px 24px; }
.booking__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.booking__ref { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; }
.booking__route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 18px 0; }
.booking__city { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.booking__city small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.booking__city--to { text-align: right; }
.booking__plane { color: var(--brand); }
:root[data-theme="high-contrast"] .booking__plane { color: #ffff00; }
.booking__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.booking__actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.empty { text-align: center; padding: 40px 24px; }
.empty img { width: 200px; max-width: 70%; margin: 0 auto 8px; display: block; }

/* ---------- Admin dashboard ---------- */

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 24px 0; }
.stat { padding: 18px; }
.stat__label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.stat__value { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.stat--alert { border-left: 6px solid var(--status-down); }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.toolbar .field { margin: 0; }
.table-wrap { overflow-x: auto; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bar__label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 4px; }
.bar__track { height: 10px; border-radius: 999px; background: var(--badge-neutral-bg); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--brand); }
:root[data-theme="high-contrast"] .bar__track { border: 1px solid #fff; }
:root[data-theme="high-contrast"] .bar__fill { background: #ffff00; }
.muted { color: var(--text-muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.section-gap { margin-top: 16px; }
.booking__banner--photo { height: 140px; }

dialog.transcript {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 64px);
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
dialog.transcript::backdrop { background: rgba(0, 0, 0, 0.5); }
.transcript__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.transcript__head h2 { margin: 0; font-size: 1.1rem; }
.transcript__body { padding: 16px 20px; overflow-y: auto; max-height: calc(100vh - 160px); display: flex; flex-direction: column; gap: 10px; }
.transcript__line { max-width: 85%; padding: 8px 12px; border-radius: 12px; white-space: pre-line; }
.transcript__line--passenger { align-self: flex-end; background: var(--bubble-user); color: var(--bubble-user-text); }
.transcript__line--assistant { align-self: flex-start; background: var(--bubble-bot); }
.transcript__meta { display: block; font-size: 0.75rem; opacity: 0.85; margin-top: 2px; }
:root[data-theme="high-contrast"] .transcript__line--assistant { border: 1px solid #fff; }

:root[data-theme="high-contrast"] .destination__image,
:root[data-theme="high-contrast"] .booking__banner { border-bottom: 2px solid #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1360px) {
  .user-chip__name, .brand__product { display: none; }
}

@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--ink); border-bottom: 3px solid var(--gold); box-shadow: 0 10px 20px rgba(10, 15, 30, 0.3);
  }
  :root[data-theme="high-contrast"] .nav { background: #000; border-bottom: 2px solid #fff; }
  .nav[data-open="false"] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero__grid, .dash-grid, .info-grid, .status-layout, .about-grid { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .mosaic__item:first-child { grid-row: span 1; grid-column: span 2; }
  .mosaic__item:last-child { grid-column: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .destinations { grid-template-columns: 1fr 1fr; }
  .auth__layout { grid-template-columns: 1fr; max-width: 480px; }
  .auth__aside { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brand__logo { height: 34px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 96px; }
  .page-banner { padding: 48px 0 56px; }
  .features, .destinations, .capabilities { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .mosaic__item:first-child, .mosaic__item:last-child { grid-column: auto; }
  .band { padding: 44px 0; }

  .feature + .feature { border-left: 0; border-top: 1px solid var(--border-soft); }
  .flight-row { grid-template-columns: 1fr auto; }
  .flight-row__time { grid-column: 1 / -1; }
  .bookings { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .destination, .booking, .mosaic__item img { transition: none; }
  .mosaic__item:hover img { transform: none; }
  .tile:hover, .destination:hover, .booking:hover { transform: none; }

}
