/* ==========================================================================
   Flightsaverz — home / airline landing page
   ========================================================================== */

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 var(--gutter);
}

.hero__frame {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroZoom 18s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg,
    rgba(11, 27, 51, .88) 0%,
    rgba(11, 27, 51, .70) 45%,
    rgba(7, 90, 170, .25) 80%,
    rgba(11, 27, 51, .10) 100%);
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 27, 51, .55), transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 56px 52px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
  color: var(--white);
}

.hero__badges {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.airline-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-sm);
}

.airline-chip img { height: 34px; width: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.pill__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(235, 34, 38, .25);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 720px;
  color: var(--white);
}

.hero__lede {
  margin: 0;
  max-width: 580px;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.link-underline {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--white);
  border-bottom: 1.5px solid rgba(255, 255, 255, .6);
  padding-bottom: 3px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.link-underline:hover { color: var(--white); border-bottom-color: var(--white); }

.hero__trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .85);
}

.trust-item { display: flex; align-items: center; gap: 10px; }

/* Staggered entrance for the hero stack */
.hero__content > * { animation: fadeUp .7s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .14s; }
.hero__content > *:nth-child(3) { animation-delay: .22s; }
.hero__content > *:nth-child(4) { animation-delay: .30s; }
.hero__content > *:nth-child(5) { animation-delay: .38s; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__content > * { animation: none !important; }
}

/* --- deals --------------------------------------------------------------- */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.deal {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.deal:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(11, 27, 51, .3);
}

.deal__media {
  position: relative;
  isolation: isolate;
  height: 180px;
  padding: 18px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .5s var(--ease);
}

.deal:hover .deal__img { transform: scale(1.05); }

.deal__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 27, 51, .15) 30%, rgba(11, 27, 51, .75) 100%);
}

.deal__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

.deal__from { font-size: 12px; opacity: .9; }

.deal__city {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  margin-top: 4px;
}

.deal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.deal__price { display: flex; align-items: baseline; gap: 8px; }
.deal__was { font-size: 12px; color: var(--muted); text-decoration: line-through; }

.deal__now {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--navy);
}

.deal__unit { font-family: var(--font-sans); font-size: 14px; color: var(--muted); }

.deal__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.deal__cta { margin-top: auto; }

/* --- inline call banner -------------------------------------------------- */

.call-banner {
  margin-top: 40px;
  padding: 28px 34px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.call-banner__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.call-banner__title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  margin-top: 6px;
}

.call-banner__btn {
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  gap: 12px;
}

/* --- other airlines ------------------------------------------------------ */

.airline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.airline-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.airline-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -22px rgba(11, 27, 51, .28);
  border-color: rgba(7, 90, 170, .35);
}

.airline-card__logo {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
  border: 1px solid var(--line-soft);
}

.airline-card__logo img {
  max-height: 44px;
  max-width: 150px;
  object-fit: contain;
}

.airline-card__name {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.15;
  color: var(--navy);
}

.airline-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.airline-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed rgba(11, 27, 51, .14);
}

.airline-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .02em;
}

.arrow-circle--sm {
  width: 30px;
  height: 30px;
  background: var(--btn);
  font-size: 14px;
}

.airline-card:hover .arrow-circle--sm { transform: translateX(3px); }

/* --- services ------------------------------------------------------------ */

.services {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.services__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.services__aside { position: sticky; top: 100px; }

.services__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 12px 0 20px;
  color: var(--navy);
}

.services__lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.svc-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease);
}

.svc-card:hover { transform: translateY(-3px); }

.svc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--blue);
}

.svc-card__icon--red { background: var(--red); }
.svc-card__icon--navy { background: var(--navy); }

.svc-card__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--navy); }

.svc-card__text {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* --- how it works -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px;
}

.step__num {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  color: var(--btn);
}

.step__title { margin: 14px 0 8px; font-size: 20px; color: var(--navy); }

.step__text { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* --- faq ----------------------------------------------------------------- */

.faq { background: var(--navy); color: var(--white); }

.faq__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.faq__aside { position: sticky; top: 100px; }

.faq__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 12px 0 20px;
}

.faq__lede {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}

.faq__list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  border-top: 1px solid var(--line-invert);
  padding: 22px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--line-invert); }

.faq-item__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.faq-item__summary::-webkit-details-marker { display: none; }

.faq-item__q {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  transition: color .2s var(--ease);
}

.faq-item__summary:hover .faq-item__q { color: var(--gold); }

.faq-item__marker {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

/* Two centred bars, not a text glyph — a font's "+" carries its own
   bearings and never lands optically centred in a circle. */
.faq-item__marker::before,
.faq-item__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-item__marker::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-item__marker {
  transform: rotate(45deg);
  background: var(--btn);
  border-color: var(--btn);
}

.faq-item__a {
  margin: 0;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .75);
}

/* Animated open/close: the answer lives in a collapsing grid row so the
   height can transition, which native <details> cannot do on its own. */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease), opacity .3s var(--ease);
  opacity: 0;
}

.faq-item__body > div {
  overflow: hidden;
  min-height: 0;
}

.faq-item[open] .faq-item__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.is-closing .faq-item__body {
  grid-template-rows: 0fr;
  opacity: 0;
}

.faq-item__body > div > .faq-item__a { padding-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .faq-item__body { transition: none; }
}

/* --- closing CTA --------------------------------------------------------- */

.cta { background: var(--cream); }

.cta__card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta__visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue), var(--navy));
}

.cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 27, 51, 0) 40%, rgba(11, 27, 51, .55) 100%);
}

.cta__badge {
  position: absolute;
  left: 24px;
  top: 24px;
  background: rgba(255, 255, 255, .94);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.cta__badge .dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
  50%      { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta__badge .dot { animation: none !important; }
}

.cta__body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 12px 0 16px;
  color: var(--navy);
}

.cta__lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 32px;
}

.cta__notes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .deal-grid,
  .airline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { padding: 0 16px; }
  .hero__frame { min-height: 380px; border-radius: 22px; }
  .hero__content { padding: 32px 22px; gap: 16px; }
  .hero__title { font-size: 32px; }
  .hero__lede { font-size: 14.5px; }

  .services__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--gutter); }
  .services__aside { position: static; }
  .services__grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }

  .faq__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--gutter); }
  .faq__aside { position: static; }
  .faq-item__q { font-size: 20px; }

  .cta__card { grid-template-columns: 1fr; }
  .cta__visual { min-height: 320px; }
  .cta__body { padding: 40px 28px; }

  .call-banner { padding: 24px; }

}

@media (max-width: 560px) {
  .deal-grid,
  .airline-grid { grid-template-columns: 1fr; }
  .hero { padding: 0 12px; }
  .hero__frame { min-height: 340px; }
  .hero__content { padding: 24px 18px; }
  .hero__title { font-size: 28px; line-height: 1.05; }
  .call-btn { padding: 12px 16px; }
  .call-btn__number { font-size: 17px; }
}
