/* ==========================================================
   ALTITUDE ADJUSTMENT - STYLES
   Dark theme with brand teal (#256F74) accents.
   Colors are set once below. Change them here to restyle the site.
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");

:root {
  --brand: #256F74;       /* brand teal from the business card */
  --brand-hover: #2d838a;
  --brand-light: #6cc3c9;  /* lighter teal for links/text so it reads on dark */
  --bg: #050707;           /* page background (near black) */
  --surface: #0b1011;      /* alternate section background */
  --card: #101718;         /* cards, boxes, tables */
  --text: #e3ecec;
  --heading: #ffffff;
  --muted: #9db0b1;
  --line: #1e2b2c;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand-light); }
a:hover { color: #9ad8dc; }
img { max-width: 100%; }
.wrap { max-width: 1050px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 28px; background: rgba(0,0,0,0.94); border-bottom: 2px solid var(--brand);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
}

/* Logo: matches the business card (wide geometric caps, "ADJUSTMENT" between rules) */
.logo {
  display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1;
  color: #fff; text-decoration: none; text-transform: uppercase;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif; flex-shrink: 0;
}
.logo-top { font-weight: 700; font-size: 1.55rem; letter-spacing: 0.14em; margin-right: -0.14em; text-align: center; }
.logo-bottom {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
  font-weight: 600; font-size: 0.58rem; letter-spacing: 0.32em; color: #fff;
}
.logo-bottom::before, .logo-bottom::after { content: ""; flex: 1; height: 2px; background: var(--brand-light); min-width: 10px; }
.logo-bottom::after { margin-left: -0.32em; }
.logo:hover { color: #fff; }
.footer-logo { margin-bottom: 10px; }
.footer-logo .logo-top { font-size: 1.3rem; }

/* AA propeller mark */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { height: 44px; width: auto; display: block; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { margin: 0; }
.footer-mark { height: 72px; width: auto; flex-shrink: 0; }
.band-mark { display: block; height: 54px; width: auto; margin-bottom: 14px; opacity: 0.95; }
.photo-band .band-mark { margin-left: auto; margin-right: auto; }
/* Faint oversized mark in the background of a section */
.brand-watermark { position: relative; overflow: hidden; }
.brand-watermark::after { content: ""; position: absolute; right: -60px; top: 50%; width: 460px; height: 430px; transform: translateY(-50%) rotate(-8deg); background: url("images/brand/aa-mark-white.png") no-repeat center / contain; opacity: 0.045; pointer-events: none; }
.brand-watermark > .wrap { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .brand-mark { height: 36px; }
  .brand { gap: 9px; }
  .brand-watermark::after { width: 300px; height: 280px; right: -90px; }
}

nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a:hover { color: #fff; border-bottom-color: var(--brand); }
nav a.active { color: #fff; border-bottom-color: var(--brand-light); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 10px 9px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: transform .2s, opacity .2s; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 12px 18px; }
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: 6px 0 4px; }
  .nav-open nav { display: flex; }
  nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  nav a.active { border-bottom-color: var(--line); color: var(--brand-light); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 6px;
  font-weight: 700; text-decoration: none; font-size: 1.05rem;
  border: 2px solid transparent; cursor: pointer; overflow-wrap: anywhere; max-width: 100%;
}
.btn-accent { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-accent:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-dark { background: transparent; color: var(--brand-light); border-color: var(--brand); }
.btn-dark:hover { background: var(--brand); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- photo backgrounds ----------
   Each page picks its photo with style="--photo: url('images/web/NAME.jpg')"
   on the hero / page-banner / photo-band. Without one you see a dark teal gradient. */
.hero, .page-banner, .photo-band { --photo: none; --pos: center; }
.hero {
  color: #fff; padding: 130px 0 120px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.25) 100%),
    var(--photo) var(--pos) / cover no-repeat,
    linear-gradient(160deg, #000 0%, #071314 45%, #256F74 130%);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 14px; max-width: 720px; color: #fff; }
.hero p { font-size: 1.2rem; max-width: 620px; margin: 0; color: #d6e4e4; }

.page-banner {
  color: #fff; padding: 80px 0 70px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.4) 100%),
    var(--photo) var(--pos) / cover no-repeat,
    linear-gradient(160deg, #000 0%, #081517 55%, #1d5a5e 140%);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; }
.page-banner p { margin: 0; max-width: 640px; font-size: 1.1rem; color: #d6e4e4; }

.photo-band {
  color: #fff; padding: 110px 0; text-align: center;
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.75)),
    var(--photo) var(--pos) / cover no-repeat,
    linear-gradient(200deg, #1f5d61 -20%, #071314 50%, #000 100%);
}
.photo-band h2 { font-size: 2rem; margin: 0 0 10px; color: #fff; }
.photo-band p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; color: #d6e4e4; }
.photo-band .btn-row { justify-content: center; }

/* ---------- sections ---------- */
section { padding: 60px 0; }
section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { color: var(--heading); font-size: 1.8rem; margin: 0 0 8px; }
h3 { color: var(--heading); margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 700px; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: 8px; padding: 22px;
}
.card p { margin: 6px 0 0; color: var(--muted); }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 600; }
.badge { display: inline-block; font-size: 0.75rem; background: rgba(37,111,116,0.25); color: var(--brand-light); padding: 2px 8px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

ul.check { list-style: none; padding: 0; }
ul.check li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-light); font-weight: 700; }

/* ---------- tables (costs) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--brand); color: #fff; }
td.price { font-weight: 700; color: var(--brand-light); white-space: nowrap; }
.note { color: var(--muted); font-size: 0.95rem; }

/* ---------- contact ---------- */
.big-contact { font-size: 2rem; font-weight: 700; overflow-wrap: anywhere; }
.big-contact a { text-decoration: none; color: var(--brand-light); }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.contact-box .big-contact { font-size: clamp(1.1rem, 3vw, 1.6rem); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); font-family: inherit; }
.btn-ghost:hover { color: #fff; border-color: var(--brand); }

/* inquiry form */
.form-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 8px; padding: 28px; scroll-margin-top: 90px; }
.form-card h2 { margin-bottom: 4px; }
.message-form { margin-top: 16px; }
.message-form textarea { min-height: 180px; }
.message-form button[type=submit] { width: 100%; font-family: inherit; }

/* one clickable phone box */
.phone-box { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 22px 24px; text-decoration: none; color: #fff; cursor: pointer; transition: border-color .15s, transform .15s; }
.phone-box:hover { border-color: var(--brand-light); color: #fff; transform: translateY(-1px); }
.phone-icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.phone-icon svg { width: 26px; height: 26px; fill: #fff; }
.phone-text small { display: block; color: var(--brand-light); font-weight: 700; font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase; }
.phone-text strong { display: block; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; }
.phone-hint { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.contact-note { margin-top: 22px; }

/* pop-ups */
dialog.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 12px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
dialog.modal[open] { animation: pop .16s ease-out; }
dialog.modal::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(2px); }
dialog.modal-small { width: min(380px, calc(100% - 32px)); text-align: center; }
dialog.modal h2 { margin: 2px 0 6px; }
dialog.modal .kicker { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.modal-x:hover { color: #fff; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.modal-actions .btn { font-family: inherit; }
@media (max-width: 560px) { .modal-actions { flex-direction: column-reverse; } .modal-actions .btn { width: 100%; } dialog.modal { padding: 22px 18px; } }
#details-form { margin-top: 18px; }
#details-form button[disabled] { opacity: 0.6; cursor: wait; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 14px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 10px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.choice:nth-child(2) { background: transparent; border: 2px solid var(--brand); color: var(--brand-light); }
.choice:hover { color: #fff; filter: brightness(1.15); }
.choice svg { width: 28px; height: 28px; fill: currentColor; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: #fff; }
.field em { color: var(--brand-light); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid #2c3d3f;
  background: #070b0c; color: var(--text); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(37,111,116,0.35); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d0705c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#inquiry-form button[type=submit] { width: 100%; margin-top: 4px; font-family: inherit; }
#inquiry-form button[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 6px; }
.form-status.success { background: rgba(37,111,116,0.22); border: 1px solid var(--brand); }
.form-status.error { background: rgba(208,112,92,0.12); border: 1px solid rgba(208,112,92,0.6); }

/* ---------- blog post ---------- */
.post { max-width: 760px; margin: 0 auto; }
.post h2 { margin-top: 32px; }
.draft-flag { background: rgba(37,111,116,0.18); border-left: 4px solid var(--brand); padding: 10px 14px; margin-bottom: 24px; font-size: 0.95rem; }

/* ---------- Flight Path guide pieces ---------- */
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-light); margin-bottom: 6px; }
.post p, .post li { color: var(--text); }
.post h3 { margin-top: 26px; }

/* quick summary box at the top of each guide */
.tldr { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 18px 22px; margin: 0 0 32px; }
.tldr strong.label { display: block; color: var(--brand-light); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 4px 0; }

/* highlighted tip / quote */
.callout { background: linear-gradient(135deg, rgba(37,111,116,0.28), rgba(37,111,116,0.08)); border: 1px solid rgba(37,111,116,0.6); border-radius: 8px; padding: 18px 22px; margin: 22px 0; }
.callout p { margin: 0; }
.callout .big { font-size: 1.25rem; font-weight: 700; color: #fff; }
.callout.warn { background: rgba(214,160,60,0.1); border-color: rgba(214,160,60,0.5); }

/* jump links */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-decoration: none; font-size: 0.92rem; color: var(--text); }
.toc a:hover { border-color: var(--brand); color: #fff; }

/* numbered tips */
.tip { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tip:last-child { border-bottom: 0; }
.tip .num { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.tip h3 { margin: 8px 0 6px; }
.tip p { margin: 8px 0 0; }

/* step-by-step timeline */
.timeline { position: relative; margin: 10px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), rgba(37,111,116,0.2)); }
.timeline > li { position: relative; padding: 0 0 30px 64px; }
.timeline > li::before { content: attr(data-step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: #000; border: 2px solid var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timeline > li.goal::before { background: var(--brand); }
.timeline h3 { margin: 8px 0 6px; }
.timeline .phase { color: var(--brand-light); font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

/* checkbox-style list */
ul.boxes { list-style: none; padding: 0; margin: 10px 0; }
ul.boxes > li { position: relative; padding: 10px 14px 10px 44px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
ul.boxes > li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border: 2px solid var(--brand-light); border-radius: 3px; }
ul.boxes > li.milestone { border-color: var(--brand); background: rgba(37,111,116,0.18); }
ul.boxes > li.milestone::before { background: var(--brand-light); }
ul.boxes small { display: block; color: var(--muted); margin-top: 2px; }
ul.boxes ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }

/* ranked options (headsets, E6B) */
ol.ranked { list-style: none; padding: 0; counter-reset: rank; }
ol.ranked li { counter-increment: rank; position: relative; padding: 10px 14px 10px 52px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
ol.ranked li::before { content: "#" counter(rank); position: absolute; left: 14px; top: 10px; font-weight: 800; color: var(--brand-light); }
ol.ranked .price-tag { float: right; color: var(--muted); font-weight: 600; margin-left: 10px; }

/* small tags (buy paper / expires) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.tag.yes { border-color: var(--brand); color: var(--brand-light); background: rgba(37,111,116,0.15); }

/* glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0; }
.glossary div { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.glossary dt { font-weight: 800; color: #fff; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

/* guide index cards with numbers */
.cards.guide .card { position: relative; padding-top: 26px; }
.cards.guide .card .part { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-light); }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:hover { color: var(--brand-light); }

/* wide tables scroll sideways on phones */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.table-scroll table { min-width: 560px; }
table.compare td:first-child, table.compare th:first-child { font-weight: 700; color: #fff; }
table.compare td.best { color: var(--brand-light); font-weight: 700; }

/* collapsible sections (cost breakdowns) */
details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
details > summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-light); line-height: 1; }
details[open] > summary::after { content: "\2212"; }
details > .details-body { padding: 0 20px 20px; }
details table { border: 0; }
details td, details th { white-space: nowrap; }
tr.total td { font-weight: 800; color: #fff; border-top: 2px solid var(--brand); }

/* cost total tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 8px; padding: 18px 20px; }
.stat .plane { font-weight: 700; color: #fff; }
.stat .amount { font-size: 1.9rem; font-weight: 800; color: var(--brand-light); line-height: 1.2; margin-top: 4px; }
.stat .sub { color: var(--muted); font-size: 0.9rem; }
/* Student testimonials (About page) */
.testimonials { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 24px; max-width: 900px; }
.testimonial { margin: 0; display: flex; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 20px; }
.testimonial img { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.testimonial-body { flex: 1; min-width: 0; }
.testimonial blockquote { margin: 0; position: relative; padding-top: 26px; font-size: 1.08rem; line-height: 1.6; color: #fff; font-style: italic; }
.testimonial blockquote::before { content: "\201C"; position: absolute; top: -14px; left: -4px; font-size: 3.6rem; line-height: 1; color: var(--brand-light); font-style: normal; font-family: Georgia, serif; }
.testimonial figcaption { margin-top: 14px; color: var(--brand-light); }
.testimonial figcaption strong { font-weight: 700; }
.testimonial figcaption strong::before { content: "\2014\00a0"; }
.testimonial figcaption span { display: block; margin-top: 2px; padding-left: 1.3em; font-size: 0.88rem; color: var(--muted); }

/* Home page: rotating testimonials (all slides share one spot and fade in and out) */
.rotator { max-width: 780px; margin-top: 22px; }
.rotator-stage { display: grid; }
.rotator-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s; }
.rotator-slide.is-active { opacity: 1; visibility: visible; }
.rotator-slide .testimonial { height: 100%; }
.rotator-dots { display: flex; gap: 10px; margin-top: 14px; }
.rotator-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1px solid var(--brand-light); background: transparent; cursor: pointer; }
.rotator-dots button.is-active { background: var(--brand-light); }
.rotator-more { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .rotator-slide { transition: none; } }
@media (max-width: 600px) {
  .testimonials { grid-template-columns: 1fr; }
  .testimonial { flex-direction: column; align-items: flex-start; }
  .testimonial img { width: 100%; max-width: 260px; }
}

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 56px; align-items: center; }
.about-grid.flip { grid-template-columns: 1fr minmax(0, 360px); }
.about-grid.flip > .about-photo { order: 2; }
.about-grid h2 { margin-top: 0; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.about-sub { margin: 28px 0 12px; }
.ratings-list { margin-top: 0; }
@media (max-width: 800px) {
  .about-grid, .about-grid.flip { grid-template-columns: 1fr; gap: 28px; }
  .about-grid.flip > .about-photo { order: 0; }
  .about-photo { max-width: 420px; }
}

.stat-photo { padding-top: 0; overflow: hidden; }
.stat-photo img { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 14px; aspect-ratio: 3 / 2; object-fit: cover; }
.sum-plane { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sum-plane img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; transition: width 0.3s ease, height 0.3s ease; }
details[open] .sum-plane { flex-direction: column; align-items: flex-start; }
details[open] .sum-plane img { width: min(480px, 100%); height: auto; aspect-ratio: 3 / 2; }

/* previous / next guide links */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pager a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; text-decoration: none; color: #fff; font-weight: 700; }
.pager a:hover { border-color: var(--brand); }
.pager a small { display: block; color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.pager a.next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { grid-column: 1; } }

/* list shown as rounded tags (home page "Training for every stage") */
ul.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.pill-list li { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 6px; padding: 10px 16px; font-weight: 600; color: #fff; }
ul.pill-list li.more { background: transparent; border: 1px dashed var(--brand); color: var(--brand-light); font-style: italic; }

/* split hero: text left, full photo right (Discovery Flight page) */
.hero-split { padding: 60px 0; }
.hero-split::before { content: none; }
.hero.hero-split { background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.8) 100%), var(--photo) var(--pos) / cover no-repeat, #000; }
.hero-split-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; max-height: 460px; object-fit: cover; object-position: center 35%; border-radius: 14px; border: 2px solid var(--brand); box-shadow: 0 18px 50px rgba(0,0,0,0.6); }
@media (max-width: 760px) { .hero-split-grid { grid-template-columns: 1fr; } .hero-photo img { max-height: 340px; } }

/* jump links inside a page banner */
.toc-banner { margin: 18px 0 0; }
.toc-banner a { background: rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.25); }

/* ---------- Resources page ---------- */
.res-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.res-tab { font: inherit; font-weight: 600; font-size: 0.98rem; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.res-tab:hover { border-color: var(--brand); color: #fff; }
.res-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.res-group { margin: 0 0 30px; }
.res-group h3 { margin: 0 0 12px; font-size: 1.15rem; }
.res-own h3::before { content: "\2605"; color: var(--brand-light); margin-right: 8px; }
.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .res-list { grid-template-columns: 1fr; } }
.res-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
a.res-item:hover { border-color: var(--brand); color: #fff; }
.res-own .res-item { border-left: 3px solid var(--brand); }
.res-type { flex-shrink: 0; width: 48px; height: 40px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; }
.res-type-link { background: transparent; border: 1px solid var(--brand); color: var(--brand-light); }
.res-type-soon { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.res-text { flex: 1; min-width: 0; }
.res-text strong { display: block; color: #fff; line-height: 1.3; }
.res-text small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.res-action { flex-shrink: 0; color: var(--brand-light); font-weight: 600; font-size: 0.9rem; }
.res-soon { opacity: 0.75; }
.res-badge { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 3px 9px; }
.res-empty { padding: 20px 22px; border: 1px dashed var(--brand); border-radius: 8px; color: var(--muted); }
.res-empty strong { color: #fff; }
.tail-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tail-btn { font: inherit; text-align: left; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.tail-btn strong { display: block; color: #fff; font-size: 1.1rem; letter-spacing: 0.5px; }
.tail-btn small { color: var(--muted); }
.tail-btn.active { border-color: var(--brand); background: rgba(37,111,116,0.2); }
.tail-model { color: var(--muted); font-weight: 500; font-size: 1rem; }
.tail-groups { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 26px; }
.tail-group-name { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-light); margin-bottom: 8px; }
.tail-groups .tail-picker { margin-bottom: 0; }
.tail-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.tail-card h3 { margin-top: 0; }
.tail-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 18px; }
.tail-specs div { background: var(--bg); padding: 12px 14px; }
.tail-specs dt { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tail-specs dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 700; color: #fff; }
.tail-note { font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; }
.wb-title { margin: 0 0 10px; font-size: 1rem; color: #fff; }
.wb-table { margin: 0 0 10px; }
.wb-table td:not(:first-child), .wb-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.wb-table tr.wb-empty td { color: #fff; font-weight: 700; }

/* photo gallery (Discovery Flight page) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid figure.photo { margin: 0; }
.photo-grid img { aspect-ratio: 3 / 4; object-fit: cover; }
/* Row of three smaller photos (Training page) */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.photo-row figure.photo { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
@media (max-width: 600px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-row figure:first-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- inline photos ---------- */
figure.photo { margin: 24px 0; }
figure.photo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
figure.photo figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.photo-cover img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature.flip > :first-child { order: 0; } }

/* contact strip (used near the bottom of pages) */
.contact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.contact-strip a { display: block; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 16px 20px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-strip a small { display: block; color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; }
.contact-strip a:hover { border-color: var(--brand-light); }
.contact-strip-stack { grid-template-columns: 1fr; margin-top: 0; align-content: start; }
.form-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.form-card .message-form textarea { min-height: 140px; }

/* smaller message box on the home page */
.home-contact { grid-template-columns: 1fr 1fr; max-width: 900px; }
@media (max-width: 760px) { .home-contact { grid-template-columns: 1fr; } }
.form-card-compact { padding: 20px 22px; }
.form-card-compact .message-form { margin-top: 10px; }
.form-card-compact .message-form textarea { min-height: 90px; }
.form-card-compact .field { margin-bottom: 12px; }
.form-card-compact .btn { padding: 11px 20px; font-size: 1rem; }

/* home page "low-cost" comparison */
.compare-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; margin: 0 0 28px; }
.cost-col { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; }
.cost-col.highlight { border: 2px solid var(--brand); background: rgba(37,111,116,0.15); }
.cost-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cost-col.highlight .cost-label { color: var(--brand-light); }
.cost-num { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.15; margin-top: 4px; }
.cost-col:not(.highlight) .cost-num { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(208,112,92,0.7); }
.cost-num small { font-size: 1rem; font-weight: 600; }
.cost-sub { color: var(--muted); font-size: 0.9rem; }

/* training page: rating flow */
.flow-title { margin: 8px 0 18px; font-size: 1.15rem; color: var(--brand-light); }
ol.rating-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
ol.rating-flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 10px; padding: 18px 18px 16px; }
ol.rating-flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -27px; top: 50%; transform: translateY(-50%); color: var(--brand-light); font-size: 1.5rem; font-weight: 700; }
ol.rating-flow li.flow-next { background: transparent; border-style: dashed; border-color: var(--brand); }
ol.rating-flow h3 { margin: 4px 0 6px; font-size: 1.1rem; }
ol.rating-flow h3 small { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
ol.rating-flow p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.flow-step { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand-light); }
@media (max-width: 900px) {
  ol.rating-flow { grid-template-columns: 1fr; gap: 30px; }
  ol.rating-flow li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -29px; transform: translateX(-50%); }
}
.addons { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.addons h3 { margin: 0 0 2px; }
.addons .note { margin: 0 0 14px; }

/* home page step-by-step checklist (top to bottom) */
.timeline.checklist > li { padding-bottom: 26px; }
.timeline.checklist h3 { margin-bottom: 8px; }
.timeline.checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.timeline.checklist ul li a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.timeline.checklist ul li a::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--brand-light); border-radius: 3px; flex-shrink: 0; }
.timeline.checklist ul li a::after { content: "\203A"; color: var(--brand-light); font-size: 1.2rem; line-height: 1; }
.timeline.checklist ul li a:hover { border-color: var(--brand); color: #fff; }
.timeline.checklist ul li a:hover::before { background: var(--brand-light); }

/* home page clickable checklist */
.path-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.path-step { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 10px; padding: 18px 18px 12px; }
.path-step.goal { background: rgba(37,111,116,0.15); border-color: var(--brand); }
.path-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.1rem; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.9rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.path-step ul { list-style: none; margin: 0; padding: 0; }
.path-step li a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.path-step li:first-child a { border-top: 0; }
.path-step li a::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--brand-light); border-radius: 3px; flex-shrink: 0; }
.path-step li a::after { content: "\203A"; margin-left: auto; color: var(--brand-light); font-size: 1.3rem; line-height: 1; }
.path-step li a:hover { color: #fff; }
.path-step li a:hover::before { background: var(--brand-light); }
:target { scroll-margin-top: 90px; }
.path-checklist-mini { margin-bottom: 40px; }
.path-checklist-mini .path-step { padding: 14px 14px 8px; }
.path-checklist-mini .path-step h3 { font-size: 1rem; }
.step-heading { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-heading .step-num { width: 38px; height: 38px; font-size: 1.05rem; }
.item-detail { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 20px 22px; margin: 18px 0; scroll-margin-top: 90px; }
.item-detail h3 { margin-top: 0; }
.item-detail:target { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(108,195,201,0.25); }
ol.steps-inline { margin: 6px 0 0; padding-left: 20px; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: var(--muted); padding: 40px 0 20px; border-top: 3px solid var(--brand); }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--brand-light); overflow-wrap: anywhere; }
.topbar a { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.fine { max-width: 1050px; margin: 24px auto 0; padding: 16px 20px 0; border-top: 1px solid var(--line); font-size: 0.85rem; }
/* Resource artwork: fills the left edge of each box, top to bottom */
.res-art { flex-shrink: 0; align-self: stretch; width: 104px; min-height: 134px; margin: -14px 0 -14px -16px; border-radius: 8px 0 0 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.res-own .res-art { margin-left: -16px; border-radius: 6px 0 0 6px; }
.res-art:has(.res-cover) { background: #eef1f2; padding: 4px; }
.res-art .res-cover { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.res-art-file { background: #fff; }
/* Password-protected student files */
.pw-error { color: #ff9a8a; margin: 8px 0 0; font-size: 0.92rem; }
.pw-help { margin: 14px 0 0; }
/* Folder of extra files on an aircraft card */
.res-folder { margin: 14px 0 0; background: var(--bg); }
.res-folder > summary { font-size: 1rem; justify-content: flex-start; gap: 12px; }
.res-folder > summary::after { margin-left: auto; }
.res-folder > .res-list { padding: 0 16px 16px; }
.folder-icon { width: 22px; height: 17px; flex-shrink: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 19'%3E%3Cpath fill='%236cc3c9' d='M2 0h7l2.5 2.5H22a2 2 0 0 1 2 2V17a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.folder-count { font-size: 0.78rem; font-weight: 700; color: var(--brand-light); border: 1px solid var(--brand); border-radius: 20px; padding: 1px 9px; }
.res-art-logo { background: #fff; }
.res-art-logo img { width: 78px; height: 78px; object-fit: contain; }
.res-art-web { background: linear-gradient(160deg, var(--brand), #0d2f31); }
.res-art-web span { color: #fff; font-size: 0.95rem; font-weight: 800; letter-spacing: 1px; }

/* Featured resource (the Flight Path) */
.res-featured { grid-column: 1 / -1; padding: 22px 24px; border: 1px solid var(--brand); border-left: 4px solid var(--brand); background: linear-gradient(120deg, rgba(37,111,116,0.28), var(--card) 60%); gap: 24px; }
.res-featured .res-art { width: 170px; min-height: 220px; margin: -22px 0 -22px -24px; border-radius: 6px 0 0 6px; }
.res-featured .res-text strong { font-size: 1.35rem; }
.res-featured .res-text small { font-size: 1rem; margin-top: 6px; max-width: 640px; }
.res-featured .res-action { background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 8px; }
.res-flag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-light); margin-bottom: 6px; }
@media (max-width: 600px) {
  .res-featured { flex-wrap: wrap; }
  .res-featured .res-art { width: 110px; min-height: 142px; }
  .res-featured .res-text { flex-basis: calc(100% - 140px); }
}
/* Anything with the hidden attribute stays hidden, even if a style gives it a display */
[hidden] { display: none !important; }

/* Student files: lock state */
.lock-icon { display: none; }
.res-locked .lock-icon { display: inline-block; width: 12px; height: 13px; margin-right: 5px; vertical-align: -1px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='%236cc3c9' d='M2 6V4a4 4 0 0 1 8 0v2h.5A1.5 1.5 0 0 1 12 7.5v5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 0 12.5v-5A1.5 1.5 0 0 1 1.5 6zm2 0h4V4a2 2 0 0 0-4 0z'/%3E%3C/svg%3E"); }
.res-featured.res-locked .lock-icon { filter: brightness(3); }
.unlock-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin: 0 0 20px; border: 1px solid var(--brand); border-radius: 10px; background: rgba(37,111,116,0.16); }
.unlock-bar > span:nth-child(2) { flex: 1; min-width: 200px; }
.unlock-bar.is-unlocked { background: transparent; border-color: var(--line); color: var(--muted); }
.unlock-bar.is-unlocked strong { color: var(--brand-light); }
.unlock-icon { width: 20px; height: 23px; flex-shrink: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='%236cc3c9' d='M2 6V4a4 4 0 0 1 8 0v2h.5A1.5 1.5 0 0 1 12 7.5v5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 0 12.5v-5A1.5 1.5 0 0 1 1.5 6zm2 0h4V4a2 2 0 0 0-4 0z'/%3E%3C/svg%3E"); }
.unlock-icon.open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='%236cc3c9' d='M2 6V4a4 4 0 0 1 7.7-1.5l-1.85.75A2 2 0 0 0 4 4v2h6.5A1.5 1.5 0 0 1 12 7.5v5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 0 12.5v-5A1.5 1.5 0 0 1 1.5 6z'/%3E%3C/svg%3E"); }
.pw-dialog .modal-actions { flex-wrap: wrap; }