/* ==========================================================================
   MEIDS - Air Traffic Data Systems
   Palette taken from the ATDS logo blue (#0d5c9e family).
   ========================================================================== */

:root {
    --navy: #08243f;
    --navy-2: #0c3457;
    --blue: #0d5c9e;
    --blue-600: #0a4a80;
    --blue-100: #e7f1fa;
    --cyan: #3fb4e8;
    --amber: #f0a500;
    --ink: #17222c;
    --body: #45555f;
    --line: #dde5ec;
    --bg: #ffffff;
    --bg-alt: #f4f8fb;
    --radius: 10px;
    --shadow: 0 2px 4px rgba(8, 36, 63, .06), 0 12px 32px rgba(8, 36, 63, .08);
    --wrap: 1160px;
    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: #6b7a86; }
.lead { font-size: 1.16rem; color: #3d4d58; }
.center { text-align: center; }
.plain { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
    padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 1.24rem; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.primary-nav a:hover { color: var(--blue); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600;
    font-size: 1rem; border: 1px solid transparent; cursor: pointer; text-align: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-100); }
.btn-sm { padding: 9px 18px; font-size: .93rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 60px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #c6d6e3; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .13em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.bg-navy .eyebrow { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; padding: 0;
    background: var(--navy);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(8, 36, 63, .95) 0%, rgba(8, 36, 63, .82) 45%, rgba(8, 36, 63, .55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 108px 0 96px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { color: #d3e2ee; font-size: 1.24rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-tags span {
    font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 100px; padding: 6px 14px; color: #cfe0ed;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: #fff; padding: 30px 24px; text-align: center; }
.stats strong { display: block; font-size: 2.1rem; color: var(--blue); line-height: 1.1; }
.stats span { font-size: .9rem; color: #6b7a86; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
    width: 44px; height: 44px; border-radius: 9px; background: var(--blue-100);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.9; }

/* ---------- Split / alternating feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 84px; }
.split .figure {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
    background: #0d1b28;
}
.split .figure img { width: 100%; }
.split.reverse .copy { order: 2; }
.split.reverse .figure { order: 1; }
.figure figcaption { font-size: .84rem; color: #7c8b96; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); }

/* ---------- Ticked list ---------- */
ul.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; }
ul.ticks li::before {
    content: ""; position: absolute; left: 2px; top: .48em; width: 14px; height: 8px;
    border-left: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue);
    transform: rotate(-45deg);
}
.bg-navy ul.ticks li::before { border-color: var(--cyan); }

/* ---------- Module list ---------- */
.module { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; height: 100%; }
.module .tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.module h3 { margin: 8px 0 10px; }
.module p { margin-bottom: 0; font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-600), var(--navy)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ed; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #c8d4de; border-radius: 8px;
    font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(13, 92, 158, .18); border-color: var(--blue); }
.field .hint { font-size: .85rem; color: #7c8b96; margin-top: 6px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.checks label { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; font-size: .95rem; color: var(--body); }
.checks input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.validation-summary, .field-error { color: #b3261e; font-size: .9rem; }
.validation-summary { background: #fdecea; border: 1px solid #f5c6c2; border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; }
.validation-summary ul { margin: 0; padding-left: 20px; }
.field-error { display: block; margin-top: 6px; }
.alert-success {
    background: #e7f6ec; border: 1px solid #b7e2c6; border-radius: var(--radius);
    padding: 26px 28px; color: #1c5b31;
}
.alert-success h2 { color: #1c5b31; }

/* ---------- Contact aside ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9db3c4; padding: 62px 0 26px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cfe0ed; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.footer-logo { border-radius: 8px; margin-bottom: 16px; }
.site-footer .plain li { margin-bottom: 9px; }
.footer-bar {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 22px; font-size: .87rem;
}
.footer-bar p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .split.reverse .copy, .split.reverse .figure { order: initial; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    section { padding: 60px 0; }
    .grid-2, .grid-3, .checks { grid-template-columns: 1fr; }
    .hero-inner { padding: 74px 0 66px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }

    .nav-toggle { display: block; }
    .primary-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .primary-nav a.btn { margin-top: 14px; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}
