/* Section-page hero (2026-10-12): Business, Low Cost, region pages and Miles
   open like the homepage — phoenix art fading into cream, the brand bar and
   pill menu over the art, title on the left. Mirrors body#pageTop .ef-hero in
   assets/design-closure-v12.css; selectors carry `body` so they win over the
   shared header shell in assets/site-shell-v1.css, which loads later. */
body .static-ef-hero {
  --ef-hero-pad: max(6vw, calc((100% - 1238px) / 2));
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 29vw, 480px);
  padding: 0 var(--ef-hero-pad) clamp(30px, 3vw, 44px);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.2;
}

body .static-ef-hero .ef-hero__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247,240,231,0) 60%, rgba(247,240,231,.7) 86%, var(--cream) 100%),
    url("/assets/feniks-hero-approved.png") right top / cover no-repeat;
  pointer-events: none;
}

body .static-ef-hero > header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  width: auto;
  max-width: none;
  height: auto;
  min-height: 72px;
  margin: 0;
  padding: env(safe-area-inset-top) 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

body .static-ef-hero > header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font: 400 24px/1 var(--display);
  letter-spacing: .055em;
  text-decoration: none;
}

body .static-ef-hero > header .brand-phoenix { display: block; width: 36px; height: 40px; object-fit: contain; }

body .static-ef-hero > header .site-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }

body .static-ef-hero > header .site-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20,29,51,.10);
  border-radius: 999px;
  background: rgba(247,240,231,.82);
  color: var(--ink);
  font: 600 10px/1 var(--ui);
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(20,29,51,.055);
}

body .static-ef-hero > header .site-nav a:hover { border-color: rgba(239,195,178,.72); background: rgba(255,250,246,.94); color: var(--coral); }
body .static-ef-hero[data-nav-current="/deals/business-class/"] .site-nav a[href="/deals/business-class/"],
body .static-ef-hero[data-nav-current="/deals/low-cost-flights/"] .site-nav a[href="/deals/low-cost-flights/"],
body .static-ef-hero[data-nav-current="/miles/"] .site-nav a[href="/miles/"] {
  border-color: rgba(244,99,63,.24);
  background: rgba(255,250,246,.96);
  color: var(--coral);
}
body .static-ef-hero > header .site-nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

body .static-ef-hero > header > .currency-select { display: block; position: relative; margin-left: auto; z-index: 20; }
body .static-ef-hero > header > .language-select { display: block; position: relative; margin-left: 8px; z-index: 20; }
body .static-ef-hero > header .currency-select__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(20,29,51,.12) !important;
  border-radius: 999px !important;
  background: rgba(255,250,246,.94) !important;
  color: var(--ink);
  font: 600 11px/1 var(--ui);
  letter-spacing: .04em;
  box-shadow: 0 5px 16px rgba(20,29,51,.08) !important;
}

body .static-ef-hero .ef-hero__copy { max-width: min(640px, 50%); margin-top: clamp(24px, 3.6vw, 60px); }

body .static-ef-hero .static-ef-hero__kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font: 600 10px/1.2 var(--ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}

body .static-ef-hero h1 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(50px, 4.85vw, 82px)/.9 var(--display);
  letter-spacing: -.035em;
}

body .static-ef-hero h1 em { color: var(--coral); font-style: italic; }

body .static-ef-hero .ef-hero__lede {
  max-width: 34em;
  margin: 18px 0 0;
  color: rgba(20,29,51,.78);
  font: 500 clamp(14px, 1.05vw, 17px)/1.55 var(--ui);
}

body .static-ef-hero .static-ef-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* The hero now carries the page title, so the listing starts right below it. */
body.static-all-deals-page .static-ef-hero + .page-route-atmosphere + .static-deal-main { padding-top: 8px; }
body.static-all-deals-page .static-ef-hero ~ .static-deal-main:before { content: none; }
body.static-all-deals-page .static-breadcrumb { margin-bottom: 18px; }
body.static-all-deals-page .static-ef-hero ~ .static-deal-main .product-world-filter-sheet { margin-top: 0; }

/* Miles: the short positioning note sits under the hero instead of over the art. */
body.miles-page .static-ef-hero__note {
  position: static;
  max-width: 1238px;
  margin: 0 auto 8px;
  padding: 18px 22px;
  border: 1px solid rgba(20,29,51,.08);
  border-left: 2px solid var(--coral);
  border-radius: 18px;
  background: rgba(255,250,245,.82);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
}
body.miles-page .static-ef-hero__note b { display: block; font: 400 21px/1.15 var(--display); color: var(--ink); }
body.miles-page .static-ef-hero__note p { margin: 6px 0 0; color: rgba(20,29,51,.7); font: 400 13px/1.55 var(--ui); }

@media (max-width: 1100px) {
  body .static-ef-hero { --ef-hero-pad: max(clamp(24px, 5vw, 56px), env(safe-area-inset-left)); min-height: 0; }
  body .static-ef-hero .ef-hero__art {
    background:
      linear-gradient(90deg, rgba(247,240,231,.92) 0%, rgba(247,240,231,.55) 38%, rgba(247,240,231,0) 64%),
      linear-gradient(180deg, var(--cream) 0, var(--cream) 60px, rgba(247,240,231,0) 110px, rgba(247,240,231,0) 58%, rgba(247,240,231,.72) 84%, var(--cream) 100%),
      url("/assets/feniks-hero-approved.png") 70% 64px / cover no-repeat;
  }
  body .static-ef-hero .ef-hero__copy { max-width: min(560px, 62%); margin-top: clamp(28px, 5vw, 48px); }
  body .static-ef-hero h1 { font-size: clamp(48px, 7vw, 74px); }
}

@media (min-width: 651px) and (max-width: 1200px) {
  body .static-ef-hero > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 64px 48px;
    gap: 0;
    min-height: 0;
  }
  body .static-ef-hero > header .brand { grid-row: 1; }
  body .static-ef-hero > header > .currency-select { grid-row: 1; grid-column: 2; }
  body .static-ef-hero > header > .language-select { grid-row: 1; grid-column: 3; margin-left: 8px; }
  body .static-ef-hero > header .site-nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; scrollbar-width: none; }
  body .static-ef-hero > header .site-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 650px) {
  body .static-ef-hero { --ef-hero-pad: max(14px, env(safe-area-inset-left)); padding-bottom: 22px; }
  body .static-ef-hero .ef-hero__art {
    background:
      linear-gradient(90deg, rgba(247,240,231,.94) 0%, rgba(247,240,231,.7) 46%, rgba(247,240,231,.08) 82%),
      linear-gradient(180deg, var(--cream) 0, var(--cream) 106px, rgba(247,240,231,0) 196px, rgba(247,240,231,0) 222px, rgba(247,240,231,.9) 290px, var(--cream) 340px),
      url("/assets/feniks-hero-approved.png") 26% 100px / auto 380px no-repeat;
  }
  body .static-ef-hero > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 60px 46px;
    gap: 0;
    min-height: 0;
  }
  body .static-ef-hero > header .brand { grid-row: 1; font-size: 23px; }
  body .static-ef-hero > header .brand-phoenix { width: 34px; height: 39px; }
  body .static-ef-hero > header > .currency-select { grid-row: 1; grid-column: 2; margin-left: 0; }
  body .static-ef-hero > header > .language-select { grid-row: 1; grid-column: 3; margin-left: 6px; }
  body .static-ef-hero > header .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  body .static-ef-hero > header .site-nav::-webkit-scrollbar { display: none; }
  body .static-ef-hero > header .site-nav a { min-height: 34px; padding: 0 11px; font-size: 9.5px; }
  body .static-ef-hero .ef-hero__copy { max-width: 100%; margin-top: 22px; }
  body .static-ef-hero h1 { font-size: clamp(40px, 12vw, 54px); }
  body .static-ef-hero .ef-hero__lede { max-width: 30em; margin-top: 14px; font-size: 15px; }
  body.miles-page .static-ef-hero__note { margin: 0 14px 8px; }
}

/* Per-section phoenix artwork (2026-10-12): Business, Low Cost, Miles and
   the rest keep their own dark firebird image on the right, fading into
   cream on the left like the homepage art. */
body .static-ef-hero--art .ef-hero__art {
  background:
    linear-gradient(90deg, var(--cream) 0%, var(--cream) 38%, rgba(247,240,231,.6) 46%, rgba(247,240,231,0) 62%),
    linear-gradient(180deg, rgba(247,240,231,0) 66%, rgba(247,240,231,.75) 88%, var(--cream) 100%),
    var(--hero-art) right 32% / 62% auto no-repeat,
    var(--cream);
}

@media (max-width: 1100px) {
  body .static-ef-hero--art .ef-hero__art {
    background:
      linear-gradient(90deg, var(--cream) 0%, var(--cream) 22%, rgba(247,240,231,.7) 36%, rgba(247,240,231,0) 58%),
      linear-gradient(180deg, var(--cream) 0, var(--cream) 112px, rgba(247,240,231,0) 170px, rgba(247,240,231,0) 70%, rgba(247,240,231,.75) 88%, var(--cream) 100%),
      var(--hero-art) right 112px / 78% auto no-repeat,
      var(--cream);
  }
}

@media (max-width: 650px) {
  body .static-ef-hero--art .ef-hero__art {
    background:
      linear-gradient(90deg, rgba(247,240,231,.9) 0%, rgba(247,240,231,.62) 48%, rgba(247,240,231,0) 86%),
      linear-gradient(180deg, var(--cream) 0, var(--cream) 106px, rgba(247,240,231,0) 150px, rgba(247,240,231,0) 62%, rgba(247,240,231,.9) 88%, var(--cream) 100%),
      var(--hero-art) 62% 106px / auto 300px no-repeat,
      var(--cream);
  }
}
