/* FALCON Full Visual Fix — Phase 1
   Scoped corrections only: mobile navigation, homepage hero crop, offer cards,
   inner-page typography, About readability, and application priorities. */

/* P0-3: compact, consistent editorial offer cards. */
.home-offers-grid { grid-auto-rows: 1fr; gap: 18px; }
.home-offer-card { min-height: 0; border-color: #deded8; }
.home-offer-media { position: relative; min-height: 198px; height: 198px; padding: 18px; background: #f5f5f0; }
.home-offer-media img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; }
.home-offer-body { min-height: 108px; padding: 14px 18px 16px; }
.home-offer-badge { position: static; display: inline-flex; width: fit-content; align-items: center; margin: 0 0 9px; padding: 4px 7px; border-radius: 1px; background: #111214; color: #ffd400; font-size: 8.5px; font-weight: 900; letter-spacing: .07em; line-height: 1; text-transform: uppercase; }
.home-offer-body h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 17px; line-height: 1.17; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-offer-body a { margin-top: 12px; padding-top: 0; font-size: 10px; white-space: nowrap; }

/* Best sellers: real product media and detail URLs in a compact B2B quote-card layout. */
.home-offers-grid { gap: 24px; }
.home-offer-card { display: flex; overflow: hidden; min-height: 0; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.home-offer-card:hover { transform: translateY(-4px); border-color: #111214; box-shadow: 0 14px 28px rgba(15,23,42,.08); }
.home-offer-media { height: 220px; min-height: 220px; padding: 20px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.home-offer-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 170px; padding: 18px 20px; background: #fff; }
.home-offer-badge { margin: 0 0 8px; border-radius: 2px; font-size: 8.5px; }
.home-offer-body h3 { font-size: 18px; line-height: 1.3; }
.home-offer-specs { display: -webkit-box; margin: 8px 0 14px; overflow: hidden; color: #64748b; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-offer-specs strong { color: #475569; font-weight: 700; }
.home-offer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.home-offer-pricing { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.home-offer-pricing small { color: #94a3b8; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.home-offer-pricing b { color: #111214; font-size: 11px; letter-spacing: .035em; white-space: nowrap; }
.home-offer-body .home-offer-cta { flex: 0 0 auto; margin: 0; padding: 8px 10px; border-radius: 4px; background: #111214; color: #fff; font-size: 9px; letter-spacing: .07em; }
.home-offer-card:hover .home-offer-cta { background: #ffd400; color: #111214; }

/* Homepage Why Falcon: long approved titles and copy remain balanced at every breakpoint. */
.performance-grid > .metric { min-width: 0; }
.performance-grid > .metric span,
.performance-grid > .metric p { overflow-wrap: anywhere; }
.performance-grid > .metric span { max-width: 28ch; line-height: 1.12; }
.performance-grid > .metric p { max-width: 620px; }

/* P0-4: the single-vehicle light hero cannot reduce desktop header contrast. */
@media (min-width: 981px) {
  body.single-vehicle .site-header .main-header,
  body.single-vehicle .site-header.is-scrolled .main-header {
    background: #0b0d0e !important;
    border-bottom-color: rgba(255,255,255,.11);
    backdrop-filter: none;
  }
}

/* P1-1: calmer shared inner-page hero typography only. */
.page-hero h1 { max-width: 760px; font-size: clamp(58px, 4.2vw, 64px); line-height: .97; }
@media (max-width: 1179px) {
  .page-hero h1 { max-width: 650px; font-size: clamp(48px, 5vw, 54px); }
}
@media (max-width: 900px) {
  .page-hero h1 { max-width: 560px; font-size: clamp(38px, 5.4vw, 44px); line-height: .99; }
}

/* P1-3: concise decision criteria rather than tall empty feature panels. */
.application-priorities { padding-block: 56px; }
.application-priorities .section-heading { margin-bottom: 28px; }
.application-priority-grid { gap: 0; }
.application-priority-grid li { min-height: 136px; padding: 19px 20px; }
.application-priority-grid h3 { margin-top: 24px; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.1; }

@media (max-width: 700px) {
  /* P0-1: one opaque, viewport-height mobile navigation surface with internal scrolling. */
  body.menu-open { overscroll-behavior: none; }
  .primary-nav {
    top: calc(var(--adminbar) + var(--header-main));
    right: 0;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-main));
    height: calc(100dvh - var(--header-main));
    max-width: none;
    padding: 18px 24px max(34px, env(safe-area-inset-bottom));
    border-left: 0;
    background: #080909;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
  }
  .menu-open .primary-nav { transform: translateX(0); }
  .menu-open .menu-scrim { display: none; }
  .primary-nav .falcon-menu { padding-bottom: 22px; }
  .primary-nav .falcon-menu > li > a,
  .site-header.is-scrolled .primary-nav .falcon-menu > li > a { padding: 18px 0; }
  .primary-nav .falcon-menu > .menu-cta { padding-top: 20px; }

  /* P0-2: retain the source image while exposing the rider's helmet. */
  .falcon-home .hero-mobile-media {
    margin-top: var(--header-main);
    height: calc(390px - var(--header-main));
    background-size: auto 100%;
    background-position: 88% top;
  }

  /* P1-1: protected, readable mobile inner-page wraps. */
  .page-hero h1 { max-width: 14ch; font-size: clamp(28px, 8.1vw, 31px); line-height: 1.01; letter-spacing: -.035em; }

  /* P0-3: balanced two-column mobile offer cards without logo-obscuring badges. */
  .home-offers-grid { gap: 10px; }
  .home-offer-card { min-height: 0; }
  .home-offer-media { min-height: 132px; height: 132px; padding: 12px; }
  .home-offer-body { min-height: 96px; padding: 11px 12px 13px; }
  .home-offer-badge { margin-bottom: 7px; padding: 4px 6px; font-size: 7px; letter-spacing: .05em; }
  .home-offer-body h3 { font-size: 13px; line-height: 1.16; }
  .home-offer-body a { margin-top: 9px; padding-top: 0; font-size: 8.5px; }
  .home-offers-grid { gap: 12px; }
  .home-offer-card { border-radius: 8px; }
  .home-offer-media { min-height: 140px; height: 140px; padding: 10px; }
  .home-offer-body { min-height: 142px; padding: 12px; }
  .home-offer-body h3 { font-size: 14px; }
  .home-offer-specs { margin: 5px 0 9px; font-size: 10px; -webkit-line-clamp: 1; }
  .home-offer-bottom { flex-direction: column; align-items: stretch; gap: 7px; padding-top: 9px; }
  .home-offer-pricing small { font-size: 7.5px; }
  .home-offer-pricing b { font-size: 9px; }
  .home-offer-body .home-offer-cta { width: 100%; padding: 7px 6px; text-align: center; font-size: 8.5px; }
  .performance-strip { padding-block: 54px; }
  .performance-grid > .metric { min-height: 0; padding-block: 26px; }
  .performance-grid > .metric span { max-width: 24ch; font-size: 18px; line-height: 1.16; }
  .performance-grid > .metric p { max-width: none; font-size: 13px; line-height: 1.58; }

  /* P1-2: preserve approved copy while restoring reading rhythm. */
  .about-company-overview__copy { max-width: 38rem; }
  .about-company-overview__copy p { margin-bottom: 22px; font-size: 15px; line-height: 1.72; }

  /* P1-3: compact four criteria in a readable 2x2 grid. */
  .application-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-priorities { padding-block: 48px; }
  .application-priorities .section-heading { margin-bottom: 24px; }
  .application-priority-grid li { min-height: 116px; padding: 16px 14px; }
  .application-priority-grid h3 { margin-top: 20px; font-size: 15px; line-height: 1.13; }
}

@media (max-width: 360px) {
  .application-priority-grid { grid-template-columns: 1fr; }
}

/* Homepage Why Falcon: real manufacturing photography, with no overlay or image effects. */
.performance-metric-copy { min-width: 0; }
.performance-metric-media { display: block; aspect-ratio: 16 / 9; margin: 22px 0 0; overflow: hidden; background: #d5b400; }
.performance-metric-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; opacity: 1; transform: none; }

@media (min-width: 1025px) {
  .performance-grid > .metric,
  .performance-grid > .metric:nth-child(2),
  .performance-grid > .metric:nth-child(3),
  .performance-grid > .metric:nth-child(4) {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    gap: clamp(28px, 3.5vw, 58px);
    align-items: center;
    min-height: 208px;
    padding-block: 32px;
  }
  .performance-metric-media { margin: 0; }
}

@media (min-width: 821px) and (max-width: 1024px) {
  .performance-grid { grid-template-columns: 1fr; }
  .performance-intro { grid-column: 1; padding-bottom: 34px; }
  .performance-grid > .metric,
  .performance-grid > .metric:nth-child(2),
  .performance-grid > .metric:nth-child(3),
  .performance-grid > .metric:nth-child(4) {
    display: grid;
    grid-column: 1;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
    gap: 30px;
    align-items: center;
    min-height: 0;
    padding: 30px 0;
    border-top: 1px solid rgba(8, 9, 9, .34);
    border-left: 0;
  }
  .performance-grid > .metric:nth-child(2) { padding-top: 30px; }
  .performance-metric-media { margin: 0; }
}

@media (min-width: 701px) and (max-width: 820px) {
  .performance-grid { grid-template-columns: 1fr; }
  .performance-intro { grid-column: 1; padding-bottom: 28px; }
  .performance-grid > .metric,
  .performance-grid > .metric:nth-child(2),
  .performance-grid > .metric:nth-child(3),
  .performance-grid > .metric:nth-child(4) {
    grid-column: 1;
    min-height: 0;
    padding: 28px 0;
    border-top: 1px solid rgba(8, 9, 9, .34);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .performance-grid > .metric,
  .performance-grid > .metric:nth-child(2),
  .performance-grid > .metric:nth-child(3),
  .performance-grid > .metric:nth-child(4) { display: block; }
  .performance-metric-media { margin-top: 20px; }
}
