/* ─────────────────────────────────────────────────────────────
   TAAS — Tango Alpha Aircraft Sales
   Palette is the paint scheme of the Baron the family flies:
   Imron, DuPont 7372 white / 24160 blue / 72092 grey. A paint
   code has no canonical sRGB value — the hexes below are the
   screen approximations of record (Boss can tune; tune HERE).
   White field, blue accents, grey secondary. Never orange/gold.
   ───────────────────────────────────────────────────────────── */
:root {
  /* the three colours */
  --white:      #F6F6F3;   /* DuPont 7372 — page field */
  --paper:      #FFFFFF;   /* cards / panels */
  --blue:       #1B3A7A;   /* DuPont 24160 — primary */
  --blue-deep:  #12295A;   /* hover / pressed */
  --blue-tint:  #E8EDF7;   /* washes */
  --grey:       #8E959B;   /* DuPont 72092 — secondary */
  --grey-light: #D4D8DC;   /* rules */
  --grey-faint: #EEF1F4;   /* alt surfaces */
  /* text */
  --ink:        #1A2230;
  --ink-muted:  #4E5866;
  --ink-soft:   #7C8590;
  --line:       rgba(27,58,122,0.14);
  /* status */
  --ok:   #2E7D4F;
  --warn: #B7791F;
  --bad:  #B3261E;

  /* ── legacy token aliases ──────────────────────────────────
     The pages carry inline styles written against the old dark
     theme's names. Mapping them here keeps every form and card
     rendering without touching each inline style: a "navy"
     surface is now a light surface, "orange" and "gold" accents
     are now blue. Do not write NEW styles against these names. */
  --navy:       var(--white);
  --navy-soft:  var(--paper);
  --orange:     var(--blue);
  --gold:       var(--blue);
  --cream:      var(--ink);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px;
  --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 36px; --fs-4xl: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0 0 var(--sp-4); line-height: 1.15; }
h1 { font-size: var(--fs-4xl); color: var(--blue); letter-spacing: -0.5px; }
h2 { font-size: var(--fs-2xl); border-bottom: 2px solid var(--blue); padding-bottom: var(--sp-2); }
.text-muted { color: var(--ink-muted); }
.text-orange { color: var(--blue); }
.small { font-size: var(--fs-sm); }
.mt-lg { margin-top: var(--sp-6); }

/* ─── HEADER ─── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--grey-light);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
/* the cheatline — blue over grey, the stripe on the airplane */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
  background: linear-gradient(to bottom, var(--blue) 0 65%, var(--grey) 65% 100%);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  object-fit: cover;
  transition: transform .2s ease;
}
.brand:hover .brand-badge { transform: rotate(-4deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-size: 18px; font-weight: 800; letter-spacing: 3px; color: var(--blue); text-transform: uppercase; }
.brand-mark .brand-alpha { color: var(--grey); }
.brand-sub  { font-size: 11px; color: var(--grey); letter-spacing: 4px; text-transform: uppercase; font-weight: 600; }
.site-header nav { display: flex; gap: var(--sp-5); }
.site-header nav a { color: var(--ink-muted); font-size: var(--fs-sm); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.site-header nav a:hover { color: var(--blue); text-decoration: none; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-md); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }

/* ─── LISTING PAGE ─── */
.listing-main { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5); }
.listing-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6);
  align-items: center; margin-bottom: var(--sp-7);
}
.listing-hero__img img { border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 3/2; }

/* Hero carousel (JS-enhanced lead photo) */
.listing-hero__img.is-carousel { position: relative; }
.carousel__img { width: 100%; display: block; cursor: pointer; }
.gallery-item.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); color: var(--blue);
  border: 1px solid var(--grey-light); font-size: 26px; line-height: 1;
  cursor: pointer; z-index: 2; transition: background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.carousel__btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.carousel__btn--prev { left: var(--sp-3); }
.carousel__btn--next { right: var(--sp-3); }
.carousel__counter {
  position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2;
  background: rgba(255,255,255,.9); color: var(--ink); border: 1px solid var(--grey-light);
  font-size: var(--fs-xs); padding: 4px 10px; border-radius: 100px;
}
.carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff;
  padding: var(--sp-5) var(--sp-4) var(--sp-3); font-size: var(--fs-sm);
  border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg);
}
.listing-eyebrow { color: var(--grey); font-size: var(--fs-sm); letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: var(--sp-3); }
.listing-title { font-size: var(--fs-4xl); color: var(--blue); margin: 0 0 var(--sp-3); }
.listing-price { font-size: var(--fs-3xl); color: var(--ink); font-weight: 700; margin: 0 0 var(--sp-4); }
.listing-pitch { color: var(--ink-muted); font-size: var(--fs-lg); margin: 0 0 var(--sp-5); line-height: 1.5; }
.listing-cta { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.listing-status-row { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.badge-active { background: rgba(46,125,79,.12); color: var(--ok); }
.badge-pending { background: rgba(183,121,31,.14); color: var(--warn); }
.badge-sold { background: rgba(179,38,30,.12); color: var(--bad); }
.badge-coming-soon { background: var(--grey-faint); color: var(--ink-muted); }

/* ─── SPEC STRIP ─── */
.spec-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-2);
  background: var(--paper); border: 1px solid var(--grey-light); border-radius: var(--r-lg);
  padding: var(--sp-5); margin-bottom: var(--sp-7);
}
.spec { display: flex; flex-direction: column; gap: 4px; padding: 0 var(--sp-3);
        border-right: 1px solid var(--grey-light); }
.spec:last-child { border-right: none; }
.spec-label { color: var(--ink-soft); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; }
.spec-value { color: var(--ink); font-size: var(--fs-md); font-weight: 600; }

/* ─── GALLERY ─── */
.gallery { margin-bottom: var(--sp-7); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-4);
}
.gallery-item {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--grey-light); transition: transform .15s ease;
  background: var(--paper);
}
.gallery-item:hover { transform: translateY(-2px); border-color: var(--blue); }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff;
  padding: var(--sp-4) var(--sp-3) var(--sp-2); font-size: var(--fs-xs);
}

/* ─── PROSE / DESCRIPTION ─── */
.long-desc { margin-bottom: var(--sp-7); }
.prose p { color: var(--ink); margin: 0 0 var(--sp-4); line-height: 1.7; }
.prose strong { color: var(--blue); }
.prose ul { padding-left: var(--sp-5); color: var(--ink); }
.prose ul li { margin-bottom: 6px; }

/* ─── TWO COLUMN ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li {
  padding: 10px 0; border-bottom: 1px solid var(--grey-light);
  color: var(--ink); font-size: var(--fs-md);
}
.clean-list li:before { content: "▸ "; color: var(--blue); margin-right: 6px; }

/* ─── CONTACT BLOCK ─── */
.contact-block {
  background: var(--paper); border: 1px solid var(--grey-light); border-radius: var(--r-lg);
  padding: var(--sp-6); text-align: center;
}
.contact-block p { margin: var(--sp-2) 0; }

/* ─── FOOTER ─── */
.site-footer {
  padding: var(--sp-6); text-align: center; border-top: 1px solid var(--grey-light);
  color: var(--ink-soft); font-size: var(--fs-sm); margin-top: var(--sp-7);
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px;
  background: linear-gradient(to bottom, var(--blue) 0 65%, var(--grey) 65% 100%);
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--blue); }
.site-footer .small { color: var(--ink-soft); margin-top: var(--sp-3); }

/* ─── HOMEPAGE HERO ─── */
.home-hero {
  text-align: center; padding: var(--sp-8) var(--sp-5) var(--sp-7);
  max-width: 1100px; margin: 0 auto;
}
.home-hero .hero-logo {
  max-width: 760px; width: 100%; height: auto; margin: 0 auto var(--sp-4); display: block;
}
.home-hero .hero-wordmark {
  font-size: clamp(38px, 7vw, 68px); font-weight: 800; color: var(--blue);
  letter-spacing: 6px; line-height: 1; margin: 0;
}
.home-hero .hero-wordmark small {
  display: block; font-size: clamp(14px, 2.2vw, 22px); font-weight: 600;
  color: var(--grey); letter-spacing: 9px; margin-top: var(--sp-3);
}
.home-hero .hero-rule {
  width: 240px; height: 8px; margin: var(--sp-5) auto;
  background: linear-gradient(to bottom, var(--blue) 0 60%, var(--grey) 60% 100%);
}
.home-hero .tag { color: var(--grey); font-size: var(--fs-md); margin-top: var(--sp-5); letter-spacing: 1px; }
.home-hero p.lead {
  color: var(--ink-muted); font-size: var(--fs-lg);
  max-width: 720px; margin: 0 auto;
}
.home-hero p.lead strong { color: var(--ink); font-weight: 600; }

/* ─── CREED STRIP — how we work ─── */
.creed-strip {
  background: var(--blue);
  color: #fff;
  padding: var(--sp-7) var(--sp-5); margin-top: var(--sp-7);
}
.creed-strip__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
.creed-item { text-align: left; }
.creed-item .creed-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px; font-weight: 700; color: var(--grey-light);
  line-height: 1; margin-bottom: var(--sp-2);
}
.creed-item h3 { color: #fff; font-size: var(--fs-lg); margin: 0 0 var(--sp-2); border-bottom: none; padding: 0; }
.creed-item p { color: rgba(255,255,255,0.8); font-size: var(--fs-md); margin: 0; line-height: 1.55; }

/* ─── ABOUT PAGE ─── */
.about-main { max-width: 900px; margin: 0 auto; padding: var(--sp-7) var(--sp-5); }
.about-hero { text-align: center; margin-bottom: var(--sp-7); }
.about-hero .about-logo { width: 140px; height: 140px; margin: 0 auto var(--sp-5); border-radius: var(--r-md); }
.about-hero h1 { color: var(--blue); font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.about-hero .lead { color: var(--ink-muted); font-size: var(--fs-lg); max-width: 720px; margin: 0 auto; line-height: 1.6; }
.about-section { margin-bottom: var(--sp-7); }
.about-section p { color: var(--ink-muted); font-size: var(--fs-md); margin-bottom: var(--sp-4); line-height: 1.65; }
.about-section a { color: var(--blue); border-bottom: 1px dotted var(--blue); }
.about-section a:hover { color: var(--blue-deep); border-color: var(--blue-deep); text-decoration: none; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-6); margin-top: var(--sp-5);
}
.about-grid h3 { color: var(--blue); font-size: var(--fs-lg); margin: 0 0 var(--sp-2); border-bottom: none; padding: 0; }
.about-grid p { color: var(--ink-muted); margin: 0; }
.about-cta { text-align: center; padding: var(--sp-6); background: var(--paper); border: 1px solid var(--grey-light); border-radius: var(--r-lg); margin-top: var(--sp-7); }
.about-cta h2 { border-bottom: none; padding-bottom: 0; margin-bottom: var(--sp-3); }
.about-cta .btn { margin-top: var(--sp-4); }
.paint-chips { display: flex; justify-content: center; gap: var(--sp-4); margin: var(--sp-5) auto 0; flex-wrap: wrap; }
.paint-chip { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-muted); }
.paint-chip i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--grey-light); display: inline-block; }

.listings-section { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5); }
.listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5); margin-top: var(--sp-5);
}
.listing-card {
  background: var(--paper); border: 1px solid var(--grey-light); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-3px); border-color: var(--blue); color: inherit; text-decoration: none; box-shadow: 0 10px 30px rgba(27,58,122,0.10); }
.listing-card__img { aspect-ratio: 3/2; background: var(--grey-faint); }
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.listing-card__title { font-size: var(--fs-xl); color: var(--blue); margin: 0; }
.listing-card__sub   { color: var(--ink-muted); font-size: var(--fs-sm); }
.listing-card__price { color: var(--ink); font-size: var(--fs-2xl); font-weight: 700; margin-top: auto; }

.listing-card.coming-soon {
  opacity: 0.55; pointer-events: none; filter: grayscale(0.6);
}
.listing-card.coming-soon .listing-card__title { color: var(--ink-muted); }

/* Sold listing card (reusable for any sold tail) */
.listing-card.sold .listing-card__img { position: relative; }
.listing-card.sold .listing-card__img img { filter: grayscale(0.35) brightness(0.9); }
.listing-card__badge { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; }
.listing-card.sold .listing-card__price { color: var(--bad); letter-spacing: 0.08em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .listing-hero { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .spec { border-right: none; border-bottom: 1px solid var(--grey-light); padding-bottom: var(--sp-3); }
  .two-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding: var(--sp-3) var(--sp-4); flex-direction: column; gap: var(--sp-3); }
  .site-header nav { gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
  h1 { font-size: var(--fs-3xl); }
  .brand-badge { width: 44px; height: 44px; }
  .creed-strip__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .about-grid { grid-template-columns: 1fr; }
}

/* Screen-reader-only text (used by the homepage h1 for SEO/accessibility) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
