/* ===========================================================================
   Total Airplane — site theme
   Flight-deck modern: high-altitude slate, signal orange, cloud white.
   Hand-written, no build step. Tokens at the top; sections below.
   ========================================================================= */

:root {
    /* Brand palette */
    --slate-900: #0d1b2a;
    --slate-800: #14263a;
    --slate-700: #1e3a54;
    --slate-600: #2a4d6e;
    --signal:    #e8650d;
    --signal-300:#f5924e;
    --cloud:     #f4f6f8;
    --cloud-2:   #e9edf1;
    --white:     #ffffff;
    --ink:       #17222c;
    --muted:     #58687a;
    --line:      #dde3e9;

    /* Type */
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --maxw: 1200px;
    --gutter: 24px;
    --radius: 6px;
    --shadow: 0 14px 40px rgba(13, 27, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cloud);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    color: var(--slate-900);
    margin: 0 0 0.5em;
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1rem; }

a { color: var(--slate-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--signal); }

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--signal);
    margin: 0 0 1rem;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .18s ease;
}
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-300); color: var(--slate-900); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-dark { background: var(--slate-800); color: var(--white); }
.btn-dark:hover { background: var(--slate-700); color: var(--white); }

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.brand .brand-mark { color: var(--signal); }
.brand small {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--signal-300);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.nav a:hover { color: var(--white); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
    position: relative;
    background-color: var(--slate-900);
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: clamp(5rem, 12vw, 9rem) 0;
    overflow: hidden;
}
/* Default "high-altitude" sky: layered gradients with faint contrails,
   used until an editor picks a real hero photo in the backoffice. */
.hero--sky {
    background-image:
        linear-gradient(115deg, transparent 0 41.9%, rgba(255,255,255,0.16) 42.1% 42.5%, transparent 42.7% 100%),
        linear-gradient(105deg, transparent 0 63.9%, rgba(255,255,255,0.10) 64.05% 64.35%, transparent 64.5% 100%),
        radial-gradient(120% 65% at 50% 105%, rgba(232,101,13,0.55), transparent 62%),
        linear-gradient(180deg, #0a1622 0%, #14263a 52%, #2a4d6e 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0.45) 0%, rgba(13,27,42,0.72) 100%);
    z-index: 1;
}
.hero--sky::after { background: linear-gradient(180deg, rgba(13,27,42,0.25) 0%, rgba(13,27,42,0.35) 100%); }
.hero .container { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero .lede { font-size: 1.25rem; color: rgba(255,255,255,0.88); margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Section scaffolding -------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--cloud2 { background: var(--cloud-2); }
.section--slate { background: var(--slate-900); color: rgba(255,255,255,0.86); }
.section--slate h2 { color: var(--white); }
.section-head { max-width: 680px; margin: 0 0 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--slate .section-head p { color: rgba(255,255,255,0.72); }

/* ---- Category grid --------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card h3 { margin-bottom: 0.3rem; }
.category-card .kicker-line {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--signal); font-weight: 600; margin-bottom: 0.9rem;
}
.category-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.category-card .more {
    display: inline-block; margin-top: 1.1rem; font-weight: 600; font-size: 0.9rem;
}

/* ---- Feature (spec database) --------------------------------------- */
.feature {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}
.feature-panel {
    background: var(--slate-800);
    border: 1px solid var(--slate-600);
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
}
.spec-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row.head {
    color: var(--signal-300); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; font-size: 0.74rem;
}
.spec-row .label { color: rgba(255,255,255,0.6); }
.feature ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.feature li { padding: 0.4rem 0 0.4rem 1.7rem; position: relative; color: var(--muted); }
.feature li::before {
    content: "›"; position: absolute; left: 0; color: var(--signal);
    font-weight: 700; font-size: 1.2rem; line-height: 1.3;
}

/* ---- Journal cards -------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}
.article-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card .thumb { aspect-ratio: 16 / 10; background: var(--slate-700); }
.article-card .body { padding: 1.4rem 1.5rem 1.7rem; }
.article-card .kicker {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--signal); font-weight: 600;
}
.article-card h3 { margin: 0.5rem 0 0.6rem; font-size: 1.3rem; }
.article-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- Newsletter / footer ------------------------------------------- */
.newsletter {
    background: var(--slate-800);
    border-radius: 12px;
    padding: clamp(2.2rem, 5vw, 3.4rem);
    text-align: center;
    color: var(--white);
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 1.6rem; }
.newsletter form { display: flex; gap: 0.6rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input {
    flex: 1; min-width: 200px; padding: 0.85rem 1rem; border-radius: var(--radius);
    border: 1px solid var(--slate-600); background: var(--slate-900); color: var(--white);
    font-size: 0.95rem;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.45); }

.site-footer {
    background: var(--slate-900);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-grid h4 {
    color: var(--white); font-family: var(--font-sans); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--signal-300); }
.footer-brand .brand { font-size: 1.5rem; margin-bottom: 0.8rem; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.6rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ---- Interior page headers ------------------------------------------ */
.page-header {
    background: var(--slate-900);
    color: var(--white);
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}
/* Detail page with a real photo: photo background + legibility overlay */
.page-header--photo { background-size: cover; background-position: center; }
.page-header--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0.62) 0%, rgba(13,27,42,0.82) 100%);
    z-index: 1;
}
.page-header--photo .container { position: relative; z-index: 2; }
.photo-credit {
    position: absolute;
    right: 0.9rem;
    bottom: 0.6rem;
    z-index: 2;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}
/* Detail page without a photo: large watermark silhouette on the right */
.page-header--art .header-art {
    position: absolute;
    right: clamp(-40px, 2vw, 60px);
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: min(360px, 32vw);
    opacity: 0.07;
    pointer-events: none;
}
.page-header h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.4rem; }
.page-header .lede { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 720px; margin: 0; }
.page-header .hero-actions { justify-content: flex-start; margin-top: 1.8rem; }
.breadcrumb { font-size: 0.85rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.55); margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--signal-300); }

/* ---- Aircraft key-stats strip ---------------------------------------- */
.stat-strip { background: var(--slate-800); border-top: 1px solid rgba(255,255,255,0.08); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.3rem 0; display: flex; flex-direction: column; gap: 0.15rem; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--white); line-height: 1.1; }
.stat .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--signal-300); font-weight: 600; }

/* ---- Aircraft listing pages ------------------------------------------ */
.listing-block { margin-bottom: 3.5rem; }
.listing-block:last-child { margin-bottom: 0; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.listing-head .eyebrow { margin-bottom: 0.3rem; }
.listing-head h2 { margin: 0; }
.listing-head .more { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.empty-note { color: var(--muted); font-style: italic; }

.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.aircraft-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.aircraft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aircraft-card > a { display: block; color: inherit; }
.aircraft-card .body { padding: 1.5rem 1.8rem 1.8rem; }
.aircraft-card .thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, var(--slate-700), var(--slate-900));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.aircraft-card .thumb .photo { width: 100%; height: 100%; object-fit: cover; }
.aircraft-card .thumb--art { display: flex; align-items: center; justify-content: center; }
.aircraft-card .thumb--art .silhouette { width: 44%; height: auto; opacity: 0.9; }
.aircraft-card .kicker-line {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--signal); font-weight: 600; margin-bottom: 0.7rem;
}
.aircraft-card h3 { margin-bottom: 0.35rem; }
.aircraft-card .stat-line { font-size: 0.85rem; color: var(--slate-700); font-weight: 500; margin-bottom: 0.8rem; }
.aircraft-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.aircraft-card .more { display: inline-block; margin-top: 1.1rem; font-weight: 600; font-size: 0.9rem; color: var(--slate-700); }
.aircraft-card > a:hover .more { color: var(--signal); }

/* ---- Spec sheet (aircraft detail) ------------------------------------ */
.spec-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.spec-group {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
}
.spec-group h3 {
    font-size: 1.2rem; margin-bottom: 0.4rem;
    padding-bottom: 0.6rem; border-bottom: 2px solid var(--signal);
    display: inline-block;
}
.spec-list { margin: 0; }
.spec-item {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.spec-item:last-child { border-bottom: 0; }
.spec-item dt { color: var(--muted); font-size: 0.92rem; }
.spec-item dd { margin: 0; font-weight: 500; text-align: right; }
.spec-footnote { color: var(--muted); font-size: 0.85rem; margin-top: 2rem; max-width: 720px; }

/* ---- Comparison tool -------------------------------------------------- */
.compare-form {
    display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.compare-form label { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 0.4rem; }
.compare-form label span {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted); font-weight: 600;
}
.compare-form select {
    padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); font: inherit; font-size: 0.95rem; color: var(--ink);
}
.compare-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
    padding: 0.75rem 1.2rem; text-align: left;
    border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.compare-table thead th {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
    background: var(--cloud-2); color: var(--slate-900);
    vertical-align: bottom;
}
.cmp-thumb {
    display: block;
    height: 96px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: linear-gradient(160deg, var(--slate-700), var(--slate-900));
}
.cmp-thumb .photo { width: 100%; height: 100%; object-fit: cover; }
.cmp-thumb--art { display: flex; align-items: center; justify-content: center; }
.cmp-thumb--art .silhouette { height: 74%; width: auto; opacity: 0.9; }
.compare-table thead th a { color: var(--slate-900); }
.compare-table thead th a:hover { color: var(--signal); }
.compare-table tr.group td {
    background: var(--slate-800); color: var(--signal-300);
    text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 600;
}
.compare-table tbody th { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.compare-table td { font-weight: 500; }
.compare-table th[scope="col"]:first-child { width: 34%; }
.compare-empty {
    background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius);
    padding: 3rem 2rem; text-align: center; color: var(--muted);
}
.compare-empty p { margin: 0; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 880px) {
    .feature { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 76px; left: 0; right: 0;
        background: var(--slate-900); padding: 1.2rem var(--gutter); gap: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-toggle { display: block; }
}
@media (max-width: 700px) {
    .stat-strip .container { grid-template-columns: 1fr 1fr; }
    .listing-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}
