/* ==========================================================================
   AirMark Aviation Services — modern shared stylesheet
   System-safe fonts, centered responsive layout, accessible & SEO-friendly
   ========================================================================== */

:root {
  /* Palette */
  --navy:        #173a5f;
  --navy-dark:   #102c49;
  --sky:         #2e86de;
  --sky-light:   #dbeafe;
  --ink:         #22303e;
  --muted:       #55636f;
  --bg:          #f4f7fb;
  --surface:     #ffffff;
  --line:        #dbe2ea;
  --amber:       #f6b93b;
  --amber-soft:  #fff6e0;
  --green:       #27ae60;
  --green-soft:  #eaf7ef;
  --red:         #c0392b;
  --red-soft:    #fdecea;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1080px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(23, 58, 95, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 6px;
  z-index: 2000;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #1d4e7e);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .3px;
}
.brand img { width: 30px; height: 30px; border-radius: 5px; }
.brand-name { font-size: 1.06rem; }
.brand-tag { display:block; font-size:.72rem; font-weight:400; opacity:.85; letter-spacing:.4px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  padding: .35rem .6rem;
  border-radius: 8px;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
}
.site-nav a {
  display: block;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  padding: .5rem .72rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  transition: background .15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: .7rem 0;
  font-size: .88rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumbs a { color: var(--sky); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }

/* ---------- Main / sections ---------- */
main { padding: 2.2rem 0 3rem; }
main h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 .6rem;
  color: var(--navy);
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 70ch;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: .4rem;
}

.section { margin: 2.6rem 0; }
.section-title {
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--sky-light);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(23,58,95,.94), rgba(30,81,130,.92)),
    center/cover no-repeat;
  color: #fff;
  border-radius: var(--radius);
  padding: 2.6rem 1.9rem;
  margin-bottom: 2.2rem;
}
.hero h1 { color: #fff; font-size: 2.1rem; }
.hero .lead { color: rgba(255,255,255,.92); }
.hero p:last-child { margin-bottom: 0; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--navy); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--sky);
  color: var(--sky);
}
.btn-outline:hover { background: var(--sky-light); color: var(--navy); }

a { color: var(--sky); }
a:hover { color: var(--navy); }

/* ---------- Feature / resource cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card-grid .card h3, .card-grid .card h2 {
  margin: 0 0 .5rem;
  font-size: 1.12rem;
  color: var(--navy);
}
.card-grid .card p { margin: 0 0 .6rem; font-size: .95rem; }
.resource-link { font-weight: 600; }

/* ---------- Callouts ---------- */
.callout {
  border-left: 5px solid var(--sky);
  background: var(--sky-light);
  padding: .9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.2rem 0;
}
.callout.warn { border-color: var(--amber); background: var(--amber-soft); }
.callout.danger { border-color: var(--red); background: var(--red-soft); }
.callout.ok { border-color: var(--green); background: var(--green-soft); }
.far-quote {
  border-left: 5px solid var(--navy);
  background: #eef3f9;
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  margin: 1rem 0;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .95rem;
}
th, td {
  border: 1px solid var(--line);
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #f7fafd; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: .7rem;
  padding: .1rem 1rem;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: .8rem 0;
}
.faq details p:last-child { padding-bottom: .6rem; }

/* ---------- Question / exam lists ---------- */
article.q-list, ol.q-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.2rem 2.6rem;
  box-shadow: var(--shadow);
  line-height: 2;
}
ol.q-list li { margin: .35rem 0; padding-left: .2rem; }
ol.q-list ul { margin-top: .2rem; }

/* ---------- Tag / meta ---------- */
.tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: .18rem .55rem;
  border-radius: 999px;
  margin: 0 .35rem .5rem 0;
}
.tag.accent { background: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.82);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0 1.2rem;
}
.site-footer h3 {
  font-size: .95rem;
  color: #fff;
  margin: 0 0 .7rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .25rem 0; font-size: .92rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* ---------- Forms (search / feedback) ---------- */
.field-row { margin-bottom: .9rem; }
label { font-weight: 600; color: var(--navy); display: block; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sky); outline-offset: 1px; }

/* ---------- Search result list ---------- */
.search-list .card { margin-bottom: .8rem; }
.search-list h2 { margin: 0 0 .3rem; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1.3rem; }
  main h1 { font-size: 1.6rem; }
  /* mobile nav */
  .nav-toggle { display: inline-block; }
  .site-nav {
    flex-basis: 100%;
    display: none;
    order: 3;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .header-inner { padding-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
