/* Phoenix Private Flights — final mobile experience layer.
   Loaded after the legacy inline refits so the phone layout has one clear
   rhythm, consistent gutters and comfortable touch targets. Desktop/tablet
   layouts are intentionally untouched. */

@media (max-width: 680px) {
  #phoenix-site {
    --phx-mobile-gutter: clamp(21px, 6vw, 26px);
  }

  #phoenix-site .container {
    width: calc(100% - (var(--phx-mobile-gutter) * 2)) !important;
    max-width: none !important;
  }

  /* Compact, phone-native header without shrinking the visible logo. */
  #phoenix-site .header {
    height: 88px !important;
    background: rgba(2, 11, 24, 0.88) !important;
    border-bottom-color: rgba(201, 154, 46, 0.22) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  }

  #phoenix-site .header-inner {
    width: calc(100% - (var(--phx-mobile-gutter) * 2)) !important;
    height: 88px !important;
  }

  #phoenix-site .header .brand {
    transform: translateX(-29px) !important;
  }

  #phoenix-site .header .brand img {
    width: 176px !important;
    height: 86px !important;
    max-width: 176px !important;
  }

  #phoenix-site .menu-button {
    width: 48px !important;
    height: 48px !important;
  }

  #phoenix-site .phoenix-language-floating {
    top: 22px !important;
    right: 76px !important;
    min-height: 44px !important;
    padding: 8px 11px !important;
  }

  #phoenix-site .mobile-menu {
    padding-top: calc(env(safe-area-inset-top, 0px) + 104px) !important;
  }

  #phoenix-site .mobile-menu-links {
    gap: 3px !important;
  }

  #phoenix-site .mobile-menu-links a {
    min-height: 52px !important;
    padding: 15px 0 !important;
  }

  /* Hero remains cinematic but gains a little space below the compact header. */
  #phoenix-site .hero-content {
    padding-top: 122px !important;
  }

  #phoenix-site .hero-copy {
    width: 100% !important;
    max-width: 342px !important;
  }

  #phoenix-site .hero-copy h1 {
    margin-bottom: 18px !important;
  }

  #phoenix-site .hero-actions {
    margin-top: 26px !important;
  }

  #phoenix-site .hero-actions .btn {
    min-height: 54px !important;
    width: min(100%, 304px) !important;
    padding-inline: 22px !important;
  }

  /* The previous phone refit compressed every section to 44–56px. These
     values restore a deliberate mobile rhythm without recreating desktop gaps. */
  #phoenix-site .section-padding {
    padding: 82px 0 !important;
  }

  #phoenix-site .quote-section {
    padding: 72px 0 94px !important;
  }

  #phoenix-site .quote-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
  }

  #phoenix-site .quote-header > div,
  #phoenix-site .services-copy,
  #phoenix-site .empty-heading {
    min-width: 0 !important;
  }

  #phoenix-site .section-title {
    font-size: clamp(31px, 9.2vw, 39px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.55px !important;
    text-wrap: balance;
  }

  #phoenix-site .section-title::after {
    bottom: -13px !important;
    height: 2px !important;
  }

  #phoenix-site .section-description,
  #phoenix-site .fleet .section-description {
    font-size: 15px !important;
    line-height: 1.72 !important;
  }

  #phoenix-site .eyebrow {
    margin-bottom: 14px !important;
    font-size: 10px !important;
    letter-spacing: 2.7px !important;
    line-height: 1.55 !important;
  }

  /* Quote form: one intentional column, generous internal grouping and
     controls sized for a thumb rather than a mouse. */
  #phoenix-site .quote-card {
    padding: 30px 21px 32px !important;
    border-radius: 26px !important;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.31) !important;
  }

  #phoenix-site .quote-grid {
    grid-template-columns: 1fr !important;
    gap: 21px !important;
  }

  #phoenix-site .field-wide,
  #phoenix-site .field-half,
  #phoenix-site .field-pair,
  #phoenix-site .quote-submit,
  #phoenix-site .price-estimate,
  #phoenix-site .multi-trip-wrap {
    grid-column: 1 / -1 !important;
  }

  #phoenix-site .field-pair {
    grid-template-columns: 1fr !important;
    gap: 21px !important;
  }

  #phoenix-site .field label,
  #phoenix-site .multi-trip-header label {
    margin-bottom: 9px !important;
  }

  #phoenix-site .field input,
  #phoenix-site .field select,
  #phoenix-site .field textarea,
  #phoenix-site .passenger-stepper,
  #phoenix-site .leg-row input,
  #phoenix-site .leg-row select {
    min-height: 56px !important;
  }

  #phoenix-site .quote-submit,
  #phoenix-site .lead-submit {
    min-height: 58px !important;
    margin-top: 4px !important;
  }

  #phoenix-site .multi-trip-header {
    gap: 14px !important;
    margin-top: 4px !important;
  }

  #phoenix-site .leg-row {
    gap: 17px !important;
    padding: 22px 18px !important;
  }

  /* Service cards no longer touch one another or the section heading. */
  #phoenix-site .services-layout {
    gap: 42px !important;
  }

  #phoenix-site .service-list {
    gap: 20px !important;
  }

  #phoenix-site .service-card {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 25px 21px !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 30px rgba(2, 11, 24, 0.09) !important;
  }

  #phoenix-site .service-icon {
    width: 50px !important;
    height: 50px !important;
  }

  #phoenix-site .service-card h3 {
    margin-bottom: 8px !important;
    font-size: 21px !important;
  }

  #phoenix-site .service-card p {
    line-height: 1.68 !important;
  }

  /* Aircraft carousel: more separation between intro, aircraft and controls. */
  #phoenix-site .fleet {
    padding: 80px 0 76px !important;
  }

  #phoenix-site .fleet-showcase-header {
    margin-bottom: 34px !important;
  }

  #phoenix-site .fleet-stage,
  #phoenix-site .fleet-slides {
    min-height: 318px !important;
  }

  #phoenix-site .fleet-plane-media img {
    width: min(500px, 67vw) !important;
    max-height: 145px !important;
  }

  #phoenix-site .fleet-nav {
    top: 34% !important;
    width: 42px !important;
    height: 42px !important;
  }

  #phoenix-site .fleet-plane-copy {
    width: calc(100% - 62px) !important;
    margin-top: 16px !important;
  }

  #phoenix-site .fleet-plane-copy h3 {
    font-size: 25px !important;
  }

  #phoenix-site .fleet-tabs {
    margin-top: 20px !important;
  }

  /* Empty legs and lead form. */
  #phoenix-site .empty-grid,
  #phoenix-site .empty-layout {
    gap: 38px !important;
  }

  #phoenix-site .empty .section-description {
    margin-top: 22px !important;
  }

  #phoenix-site .empty-state {
    padding: 28px 24px !important;
    gap: 20px !important;
  }

  #phoenix-site .empty-leg-card {
    gap: 22px !important;
    padding: 27px 22px !important;
  }

  #phoenix-site .lead-form {
    padding: 28px 21px !important;
    border-radius: 24px !important;
  }

  #phoenix-site .lead-grid {
    gap: 20px !important;
  }

  /* Footer becomes a real mobile information architecture. Contact blocks
     and legal links are distinct rows, while retaining the requested bullets. */
  #phoenix-site .footer {
    padding: 76px 0 42px !important;
  }

  #phoenix-site .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  #phoenix-site .footer-contact-locations {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  #phoenix-site .footer-contact-office {
    padding-top: 18px !important;
  }

  #phoenix-site .footer-contact-address,
  #phoenix-site .footer-contact-email {
    margin-top: 24px !important;
  }

  #phoenix-site .footer-contact a {
    min-height: 44px !important;
  }

  #phoenix-site .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin-top: 52px !important;
    padding-top: 27px !important;
    gap: 22px !important;
    line-height: 1.65 !important;
  }

  #phoenix-site .footer-legal {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    width: 100% !important;
    gap: 0 !important;
    text-align: left !important;
  }

  #phoenix-site .footer-legal a {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    line-height: 1.45 !important;
  }

  #phoenix-site .footer-legal > a + a::before {
    content: "•" !important;
    flex: 0 0 auto !important;
    margin-right: 10px !important;
    color: rgba(255, 255, 255, 0.38) !important;
  }

  #phoenix-site .footer-legal a:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 370px) {
  #phoenix-site {
    --phx-mobile-gutter: 19px;
  }

  #phoenix-site .header .brand {
    transform: translateX(-27px) !important;
  }

  #phoenix-site .header .brand img {
    width: 168px !important;
  }

  #phoenix-site .phoenix-language-floating {
    right: 70px !important;
  }

  #phoenix-site .section-title {
    font-size: 30px !important;
  }

  #phoenix-site .quote-card,
  #phoenix-site .lead-form {
    padding-inline: 18px !important;
  }

  #phoenix-site .service-card {
    padding-inline: 18px !important;
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  #phoenix-site *,
  #phoenix-site *::before,
  #phoenix-site *::after {
    scroll-behavior: auto !important;
  }
}

/* User-requested rollback: preserve the original mobile hero exactly as it
   appeared before this responsive layer, while keeping all lower-page mobile
   spacing improvements. The header belongs to that opening composition. */
@media (max-width: 680px) {
  #phoenix-site .header {
    height: 104px !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  #phoenix-site .header-inner {
    width: min(100% - 32px, 1220px) !important;
    height: 104px !important;
  }

  #phoenix-site .header .brand {
    transform: translateX(-34px) !important;
  }

  #phoenix-site .header .brand img {
    width: 198px !important;
    height: 96px !important;
    max-width: 198px !important;
  }

  #phoenix-site .menu-button {
    width: 50px !important;
    height: 50px !important;
  }

  #phoenix-site .phoenix-language-floating {
    top: 34px !important;
    right: 80px !important;
    min-height: 0 !important;
    padding: 7px 10px !important;
    gap: 6px !important;
  }

  #phoenix-site .mobile-menu {
    padding-top: calc(env(safe-area-inset-top, 0px) + 118px) !important;
  }

  #phoenix-site .hero .container {
    width: min(100% - 32px, 1220px) !important;
  }

  #phoenix-site .hero-content {
    padding-top: 138px !important;
  }

  #phoenix-site .hero-copy {
    max-width: 336px !important;
  }

  #phoenix-site .hero-copy h1 {
    margin: 0 auto 14px !important;
  }

  #phoenix-site .hero-actions {
    margin-top: 20px !important;
  }

  #phoenix-site .hero-actions .btn {
    width: min(100%, 276px) !important;
    min-height: 46px !important;
    padding-inline: 16px !important;
  }

  /* Every legal destination uses the same bullet column, including the first
     route-directory link. */
  #phoenix-site .footer-legal > a:first-child::before,
  #phoenix-site .footer-legal > a + a::before {
    content: "•" !important;
    flex: 0 0 auto !important;
    width: 10px !important;
    margin-right: 10px !important;
    color: rgba(255, 255, 255, 0.38) !important;
    text-align: left !important;
    pointer-events: none !important;
  }
}

@media (max-width: 390px) {
  #phoenix-site .hero-copy {
    max-width: 318px !important;
  }

  #phoenix-site .hero-content {
    padding-top: 128px !important;
  }
}
