/* The Bay Area Beechcraft homepage, in Logbook Check's style. Tokens, top bar, buttons, cards and footer come from
   /logcheck/app.css; this file only lays out the homepage. */

html { scroll-behavior: smooth; }
body.home main { padding-top: 56px; }
.home-section { scroll-margin-top: 24px; padding-top: 72px; }

/* Section links in the top bar; under 760px they wrap onto their own row below the brand. */
.home-nav { display: flex; gap: 22px; }
.home-nav a { color: #fff; opacity: .8; text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.home-nav a:hover { opacity: 1; }
/* Seven links don't fit beside the brand below about 1000px: they move to their own row under it. */
@media (max-width: 1000px) {
  body.home .topbar { flex-wrap: wrap; row-gap: 10px; }
  .home-nav { width: 100%; padding-left: 120px; gap: 6px 18px; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .home-nav { padding-left: 64px; gap: 6px 14px; }
  .home-nav a { font-size: 12px; letter-spacing: .08em; }
}

/* Hero */
.home-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.home-hero h1 { margin-bottom: 12px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.hero-note { font-weight: 700; margin: 0; }
.hero-photo { margin: 0; padding: 0; overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: auto; }
.trio { display: block; width: 200px; height: auto; margin: 48px auto 0; opacity: .55; }
@media (max-width: 760px) { .home-hero { grid-template-columns: 1fr; gap: 24px; } }

/* Section headings */
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head .lede { margin-bottom: 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
h2 em { font-style: normal; color: var(--accent); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

/* Prebuy */
.feature h3 { margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf6fb; display: grid; place-items: center; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.prose, .prices, .total { margin-top: 20px; }
.prose p { margin: 0 0 14px; }
.prebuy-stages { list-style: none; counter-reset: stage; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prebuy-stages > li { counter-increment: stage; background: var(--bg); border-radius: 12px; padding: 16px 18px; }
.prebuy-stages > li::before { content: 'Stage ' counter(stage); display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.prebuy-stages h3 { font-size: 16px; margin: 6px 0 8px; }
.prebuy-stages ul { margin: 0; padding-left: 18px; }
.prebuy-stages li li { margin: 4px 0; font-size: 15px; }
.prebuy-stages li.exit { color: var(--accent-dark); font-weight: 600; }
@media (max-width: 900px) { .prebuy-stages { grid-template-columns: 1fr; } }
.aside { font-style: italic; color: var(--ink-soft); }
.center { text-align: center; }

.prices h3 { margin-top: 0; }
.price-list, .bill dl { margin: 0; }
.price-list > div, .bill dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-list dt, .bill dt { color: var(--ink); }
.price-list dd, .bill dd { margin: 0; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list dd { font-size: 18px; color: var(--accent-dark); }
.fine-list { padding-left: 20px; color: var(--ink-soft); }
.fine-list li { margin: 4px 0; }

.cta { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-soft); }
.cta span { font-style: italic; }

/* Instruction */
.lesson { padding: 0; overflow: hidden; }
.lesson img { display: block; width: 100%; height: 170px; object-fit: cover; }
.lesson h3 { margin: 16px 20px 6px; }
.lesson p { margin: 0 20px 20px; color: var(--ink-soft); }
.rate-pill { display: table; margin: 28px auto 0; padding: 10px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 17px; }
.rate-pill strong { color: var(--accent-dark); }
.rate-pill.left { margin: 16px 0 8px; }

/* Ferry */
.ferry { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.ferry img { width: 100%; height: auto; }
.ferry h2 { margin-bottom: 12px; }
.ferry p { margin: 0 0 8px; }
@media (max-width: 600px) { .ferry { grid-template-columns: 1fr; } .ferry img { width: 140px; } }

/* Example */
.map { margin: 0 0 20px; padding: 0; overflow: hidden; }
.map img { display: block; width: 100%; height: auto; }
.prose-wide { max-width: 860px; margin: 0 0 24px; }
.bill h3 { margin: 0 0 12px; font-size: 17px; }
.bill h3 span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 4px; }
.bill-day { font-weight: 700; font-size: 14px; margin: 14px 0 4px; }
.bill dt { font-size: 14px; }
.bill dd { font-size: 15px; }
.bill .subtotal { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; }
.bill .aside { font-size: 13px; margin: 10px 0 0; }
.total { border-left: 5px solid var(--accent); }
.total p { margin: 0 0 8px; }

/* Terms */
.terms-grid { columns: 2 380px; column-gap: 20px; }
.term { break-inside: avoid; margin-bottom: 20px; }
.term h3 { margin: 0 0 8px; font-size: 16px; }
.term p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Contact */
.contact { display: flex; gap: 28px; align-items: center; }
.contact > img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--shadow); }
.contact h2 { margin-bottom: 6px; }
.contact-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.contact .hero-buttons { margin-bottom: 0; margin-top: 16px; }
@media (max-width: 600px) { .contact { flex-direction: column; align-items: flex-start; } .contact > img { width: 80px; height: 80px; } }

/* "New" marker for Logbook Check: a small outlined tag and a quiet callout under the hero buttons. */
.new-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  padding: 3px 6px; border-radius: 999px; border: 1px solid currentColor; color: var(--accent); vertical-align: 1px; }
.home-nav .nav-new { opacity: 1; }
.home-nav .nav-new .new-tag { margin-left: 4px; letter-spacing: .08em; }
.new-callout { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: 15px;
  transition: border-color .2s, box-shadow .2s; }
.new-callout strong { color: var(--ink); }
.new-callout:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.new-arrow { margin-left: auto; color: var(--accent-dark); font-weight: 700; }
