/* Airline site theme. --brand (dark, header/hero) and --brand-accent (buttons, highlights)
   come from the site root (set in the layout). Defaults: Mavericks navy and gold. */
:root {
    --brand: #0a1929;
    --brand-accent: #c8963e;
    /* accent dark enough for text on white */
    --brand-accent-text: color-mix(in srgb, var(--brand-accent) 70%, black);
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --paper: #ffffff;
    --tint: #f1f5f9;
    --radius: 12px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-accent-text); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 16px; }
.muted { color: var(--muted); font-size: 0.9375rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; font-weight: 600; margin: 0 0 6px; opacity: 0.85; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--brand); }
.brand img { display: block; height: 40px; width: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--brand-accent); }
.nav a.nav-cta { background: var(--brand-accent); border: 1px solid var(--brand-accent); color: var(--brand); font-weight: 600; border-radius: 8px; padding: 6px 14px; }
.nav a.nav-cta:hover { filter: brightness(1.08); }

/* Hero */
.hero {
    color: #fff;
    background:
        /* darker behind the headline (left), lighter so the photo shows on the right */
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 82%, transparent) 0%, color-mix(in srgb, var(--brand) 45%, transparent) 55%, color-mix(in srgb, var(--brand) 25%, transparent) 100%),
        linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--brand) 55%, transparent) 100%),
        var(--hero-image, linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 60%, black))) center / cover no-repeat;
    border-bottom: 3px solid var(--brand-accent);
}
.hero-inner { display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
/* Horizontal search bar: headline on top, the bar across the full width under it. */
.hero-inner.hero-wide { grid-template-columns: 1fr; gap: 28px; padding-top: 88px; padding-bottom: 96px; }
.hero-wide .hero-copy { max-width: 720px; }
.hero-wide mav-flight-search { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); border-radius: 12px; }
.hero h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hero .lead { color: rgba(255, 255, 255, 0.86); }
.hero .eyebrow { color: var(--brand-accent); opacity: 1; }
.hero-small { padding: 48px 0; }
/* Booking box: accent button with dark text (white on gold is too faint). */
mav-flight-search { --mav-accent: var(--brand-accent); --mav-accent-text: var(--brand); --mav-font: 'Inter', system-ui, sans-serif; }

/* Cards */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s; }
.card:hover { border-color: var(--brand-accent); }
.card .code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--brand-accent-text); }

/* Destination cards with a photo, and their flight facts line */
.card-image { padding: 0 0 20px; overflow: hidden; }
.card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; }
.card-image > :not(img) { padding: 0 20px; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--brand); }
.group-title { margin-top: 32px; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Destination page: flight facts strip overlapping the bottom of the hero */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: -28px 0 0; position: relative;
         background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--paper); padding: 14px 18px; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.prose .highlights { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.highlights li { border-left: 3px solid var(--brand-accent); background: var(--tint); padding: 10px 14px; border-radius: 0 8px 8px 0; font-weight: 500; }
.good-to-know { margin: 0; border-top: 1px solid var(--line); }
.good-to-know > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.good-to-know dt { font-weight: 600; }
.good-to-know dd { margin: 0; color: var(--muted); }
.aside-title { font-size: 1.125rem; }
.sticky-aside { position: sticky; top: 92px; }

/* Content */
.page { max-width: 800px; }
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.link-list { padding-left: 1.2em; }
.split { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 40px; align-items: start; }

/* Footer */
.site-footer { background: var(--brand); color: #cbd5e1; border-top: 3px solid var(--brand-accent); margin-top: 32px; }
.site-footer a { color: var(--brand-accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr auto; gap: 24px; padding-top: 32px; padding-bottom: 32px; font-size: 0.9375rem; color: #cbd5e1; }
.footer-grid strong { color: #fff; }
.footer-grid p { margin: 6px 0 0; }
.powered { align-self: end; font-size: 0.8125rem; }

@media (max-width: 860px) {
    .hero-inner, .split, .footer-grid { grid-template-columns: 1fr; }
    .sticky-aside { position: static; }
    .good-to-know > div { grid-template-columns: 1fr; gap: 2px; }
    .hero-inner { padding-top: 32px; padding-bottom: 32px; }
}
