/* ==========================================================================
   Plane Spotters Hub — global stylesheet
   Aviation theme: deep navy + sky blue, amber CTA. Mobile-first, fast.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #12294d;
  --sky: #1e88e5;
  --sky-light: #38bdf8;
  --sky-bg: #eef6fd;
  --amber: #f5a623;
  --amber-dark: #d98c05;
  --ink: #16202e;
  --muted: #5a6a7d;
  --line: #dbe4ee;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 31, 58, 0.16);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;      /* larger base text — comfortable for kids & older readers */
  line-height: 1.75;    /* generous spacing for easy reading */
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--sky { background: var(--sky-bg); }
.section--navy { background: var(--navy); color: #dbe7f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: #b9cbe4; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: .78rem; font-weight: 700; color: var(--sky);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #241a00; box-shadow: 0 6px 18px rgba(245,166,35,.35); }
.btn--primary:hover { background: var(--amber-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sky { background: var(--sky); color: #fff; }
.btn--sky:hover { background: #1668b3; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cfe0f2; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-links a.cta { background: var(--amber); color: #241a00; }
.nav-links a.cta:hover { background: var(--amber-dark); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(56,189,248,.35), transparent 60%),
    linear-gradient(160deg, #0b1f3a 0%, #12335e 55%, #1e88e5 130%);
  padding: 84px 0 96px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero h1 { color: #fff; position: relative; }
.hero p { color: #cfe0f2; font-size: 1.2rem; max-width: 62ch; margin: 0 auto 28px; position: relative; }
.hero .btns { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { position: relative; margin-top: 34px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: #a9c3e0; font-size: .92rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); }
.hero-badges a:hover { color: var(--amber); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 0; }
.card .icon { font-size: 2rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; background: var(--sky-bg); color: var(--sky); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Product cards ---------- */
.product { display: flex; flex-direction: column; }
.product .price { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 4px 0 14px; }
.product ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); }
.product ul li { margin-bottom: 6px; }
.product .btn { margin-top: auto; text-align: center; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
thead th { background: var(--navy); color: #fff; text-align: left; padding: 14px 18px; font-size: .95rem; }
tbody td { padding: 13px 18px; border-top: 1px solid var(--line); font-size: .97rem; }
tbody tr:hover { background: var(--sky-bg); }
.date-cell { white-space: nowrap; font-weight: 700; color: var(--sky); }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #17457f);
  color: #fff; border-radius: 18px; padding: 44px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8dcf3; max-width: 56ch; margin: 0 auto 22px; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px;
  margin-bottom: 14px; background: #fff; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sky); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 14px 0 6px; margin: 0; color: var(--muted); }

/* ---------- Link lists (community/apps) ---------- */
.link-item { display: flex; gap: 16px; align-items: flex-start; }
.link-item .avatar {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--sky-bg); color: var(--sky);
}
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy);
}
.store-badge:hover { border-color: var(--sky); text-decoration: none; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--sky); }

/* ---------- Page header ---------- */
.page-head { background: var(--sky-bg); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9c3e0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #a9c3e0; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: #7f9bbd;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Photo hero (homepage) ---------- */
.hero--photo {
  background:
    linear-gradient(165deg, rgba(9,26,49,.82) 0%, rgba(9,26,49,.50) 50%, rgba(15,45,84,.78) 100%),
    url(images/family-apron.webp) center 40%/cover no-repeat;
}
.hero--photo::after { opacity: .18; }

/* ---------- Photo cards ---------- */
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo img { width: 100%; height: 190px; object-fit: cover; }
.card--photo .card-body { padding: 22px 24px 26px; }
.card--photo .card-body h3 { margin-top: 0; }
.card--photo .card-body p:last-child { margin-bottom: 0; }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-strip figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.photo-strip img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-strip figure:hover img { transform: scale(1.06); }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 10px;
  color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(9,26,49,.8));
}
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Aircraft gallery ---------- */
.plane-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plane-gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.plane-gallery img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .35s ease; }
.plane-gallery figure:hover img { transform: scale(1.06); }
.plane-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px; color: #fff; font-weight: 700; font-size: .92rem; background: linear-gradient(transparent, rgba(9,26,49,.85)); }
@media (max-width: 820px) { .plane-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plane-gallery { grid-template-columns: 1fr; } }

/* ---------- Free download highlight ---------- */
.freebie {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between;
  background: linear-gradient(120deg, #fff8ec, #fde8c9); border: 1px solid #f4dcae;
  border-radius: 18px; padding: 30px 36px; box-shadow: var(--shadow-lg);
}
.freebie .txt { flex: 1 1 360px; }
.freebie .badge {
  display: inline-block; background: var(--amber); color: #241a00; font-weight: 800;
  font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.freebie h2 { color: var(--navy); margin: 0 0 8px; }
.freebie p { color: #7a5a12; margin: 0; max-width: 62ch; }
.freebie .act { flex: 0 0 auto; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #17457f; }

/* ---------- Paperback book feature ---------- */
.book-feature { background: linear-gradient(120deg, var(--navy), #17457f); color: #fff; border-radius: 18px; padding: 40px; box-shadow: var(--shadow-lg); }
.book-feature .inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.book-feature h2 { color: #fff; }
.book-feature p { color: #cfe0f2; }
.book-feature .eyebrow { color: var(--sky-light); }
.book-cover { width: 100%; max-width: 260px; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .2s ease; margin: 0 auto; }
.book-cover:hover { transform: translateY(-5px) rotate(-1.5deg); }
@media (max-width: 720px) { .book-feature { padding: 28px; } .book-feature .inner { grid-template-columns: 1fr; gap: 24px; text-align: center; } .book-cover { max-width: 200px; } }

/* ---------- Inner-page photo banner ---------- */
.page-hero {
  position: relative; color: #fff; padding: 66px 0 70px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(9,26,49,.80), rgba(18,51,94,.48));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #dbe7f5; }
.page-hero .crumbs, .page-hero .crumbs a { color: #c2d6ee; }
.page-hero .crumbs a:hover { color: #fff; }

/* ---------- Airport guide ---------- */
.region-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.region-nav a { display: inline-block; background: var(--sky-bg); color: var(--sky); font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px; }
.region-nav a:hover { background: var(--sky); color: #fff; text-decoration: none; }
.region-nav a[aria-current] { background: var(--navy); color: #fff; }
.stars { color: var(--amber); white-space: nowrap; letter-spacing: 1px; font-size: .95rem; }
table .code { display: inline-block; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: .5px; margin-left: 6px; vertical-align: middle; }
table .airport-name { font-weight: 700; color: var(--navy); }
.region-card { display: flex; flex-direction: column; }
.region-card .count { color: var(--muted); font-size: .9rem; margin-top: auto; }
.region-card .stars { font-size: .9rem; }

/* ---------- Misc ---------- */
.note { font-size: .85rem; color: var(--muted); }
.disclosure { background: #fff8ec; border: 1px solid #f4dcae; border-radius: 12px; padding: 14px 18px; font-size: .9rem; color: #7a5a12; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
