/* ==========================================================================
   SkyAirways - Landing Page V2 (J-9F-C Phase D / CG-33)
   Faithful structural mirror of flyskyairways.com with authentic palette.

   Adds what base CSS does not:
     - Quick-links row under hero/booking
     - SkyClub loyalty teaser (gold + silver card imagery)
     - News / updates row
     - Brand triad placement + legal disclaimer + sitemap enhancements
     - Slide-content overlay classes consistent with hero.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero slide content overlay
   -------------------------------------------------------------------------- */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 1;
}

.slide.is-active {
  opacity: 1;
  z-index: 2;
}

.slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 36, 67, 0.15) 0%,
    rgba(9, 36, 67, 0.42) 55%,
    rgba(9, 36, 67, 0.72) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 16px 96px;
}

@media (min-width: 1024px) {
  .slide__overlay {
    padding: 72px 32px 140px;
  }
}

.slide__heading {
  color: #1BB8F5;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 720px;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.slide__subheading {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  max-width: 560px;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--rb-transition-fast), transform var(--rb-transition-fast);
}

.hero-dot:hover,
.hero-dot.is-active {
  background: var(--rb-yellow);
  transform: scale(1.15);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--rb-yellow);
  outline-offset: 3px;
}

.hero__booking-anchor {
  position: relative;
  margin-top: -96px;
  z-index: 10;
  padding-inline: 16px;
}

@media (min-width: 1024px) {
  .hero__booking-anchor {
    margin-top: -112px;
    padding-inline: 32px;
  }
}

/* --------------------------------------------------------------------------
   Quick-links row (Plan your trip)
   -------------------------------------------------------------------------- */
.quick-links {
  padding: 32px 0 8px;
}

@media (min-width: 1024px) {
  .quick-links {
    padding: 56px 0 16px;
  }
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .quick-links__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .quick-links__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  color: var(--rb-text);
  text-align: center;
  transition: border-color var(--rb-transition-fast), transform var(--rb-transition-fast), box-shadow var(--rb-transition-fast);
}

.quick-link:hover {
  border-color: var(--rb-yellow);
  box-shadow: var(--rb-shadow);
  transform: translateY(-2px);
  color: var(--rb-text);
}

.quick-link:focus-visible {
  outline: 2px solid var(--rb-yellow);
  outline-offset: 2px;
}

.quick-link__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-navy);
}

.quick-link__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.quick-link__label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rb-navy);
}

[data-theme="dark"] .quick-link {
  background-color: var(--rb-surface-alt);
}

[data-theme="dark"] .quick-link__icon,
[data-theme="dark"] .quick-link__label {
  color: var(--rb-off-white);
}

/* --------------------------------------------------------------------------
   SkyClub loyalty teaser
   -------------------------------------------------------------------------- */
.skyclub-teaser {
  background: linear-gradient(
    135deg,
    var(--rb-navy-deep) 0%,
    var(--rb-navy) 55%,
    #24436A 100%
  );
  color: var(--rb-off-white);
  padding: 56px 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .skyclub-teaser {
    padding: 88px 0;
  }
}

.skyclub-teaser__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .skyclub-teaser__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

.skyclub-teaser__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rb-gold);
  background: rgba(27, 184, 245, 0.12);
  border: 1px solid rgba(27, 184, 245, 0.35);
  border-radius: var(--rb-radius-pill);
  margin-bottom: 20px;
}

.skyclub-teaser__heading {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--rb-off-white);
}

.skyclub-teaser__text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 28px;
}

.skyclub-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skyclub-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--rb-radius);
  border: none;
  cursor: pointer;
  transition: transform var(--rb-transition-fast), box-shadow var(--rb-transition-fast), background-color var(--rb-transition-fast);
}

.skyclub-teaser__cta--primary {
  background-color: var(--rb-yellow);
  color: var(--rb-navy);
}

.skyclub-teaser__cta--primary:hover {
  background-color: var(--rb-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 184, 245, 0.25);
}

.skyclub-teaser__cta--ghost {
  background: transparent;
  color: var(--rb-off-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.skyclub-teaser__cta--ghost:hover {
  border-color: var(--rb-gold);
  color: var(--rb-gold);
  background: rgba(27, 184, 245, 0.08);
}

.skyclub-teaser__cta:focus-visible {
  outline: 2px solid var(--rb-yellow);
  outline-offset: 3px;
}

.skyclub-teaser__cards {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skyclub-teaser__card {
  position: relative;
  width: min(85%, 420px);
  aspect-ratio: 1.58 / 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: rotate(-4deg);
  transition: transform var(--rb-transition);
}

.skyclub-teaser__card--silver {
  position: absolute;
  width: min(65%, 320px);
  top: 12%;
  left: 4%;
  transform: rotate(-12deg);
  z-index: 1;
  opacity: 0.92;
}

.skyclub-teaser__card--gold {
  z-index: 2;
  transform: rotate(4deg) translate(8%, 4%);
}

.skyclub-teaser__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skyclub-teaser__cards:hover .skyclub-teaser__card--gold {
  transform: rotate(2deg) translate(6%, 2%) scale(1.02);
}

.skyclub-teaser__cards:hover .skyclub-teaser__card--silver {
  transform: rotate(-14deg) translate(-2%, -2%);
}

@media (prefers-reduced-motion: reduce) {
  .skyclub-teaser__card,
  .skyclub-teaser__cards:hover .skyclub-teaser__card--gold,
  .skyclub-teaser__cards:hover .skyclub-teaser__card--silver {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   News / Updates strip
   -------------------------------------------------------------------------- */
.news-strip {
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .news-strip {
    padding: 80px 0;
  }
}

.news-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .news-strip__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  transition: transform var(--rb-transition-fast), box-shadow var(--rb-transition-fast);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rb-shadow-lg);
}

.news-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-accent-contrast);
  background: var(--rb-yellow-soft);
  padding: 4px 10px;
  border-radius: var(--rb-radius-pill);
  align-self: flex-start;
}

.news-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--rb-text);
  line-height: 1.3;
}

.news-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--rb-text-secondary);
  flex: 1;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rb-navy);
  margin-top: 4px;
}

.news-card__link:hover {
  color: var(--rb-navy-deep);
}

[data-theme="dark"] .news-card__title,
[data-theme="dark"] .news-card__link {
  color: var(--rb-off-white);
}

[data-theme="dark"] .news-card__link:hover {
  color: var(--rb-yellow);
}

/* --------------------------------------------------------------------------
   Partner strip - narrowed to 8 codeshare partners
   -------------------------------------------------------------------------- */
.partners {
  padding: 32px 0 48px;
  background-color: var(--rb-surface);
}

.partners__heading {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-text-secondary);
  margin-bottom: 24px;
}

/* Fixed-cell grid rather than wrapping flex: the real partner marks range from
   1.7:1 (KLM) to 6:1 (Korean Air), which wraps into lopsided rows under flex. */
.partners__track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 24px 20px;
  width: auto;
  animation: none;
}

@media (min-width: 640px) {
  .partners__track {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 28px;
  }
}

@media (min-width: 1024px) {
  .partners__track {
    grid-template-columns: repeat(8, 1fr);
    gap: 0 24px;
  }
}

.partners__logo {
  height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  transition: transform var(--rb-transition-fast);
}

/* KLM ships a stacked crown-over-wordmark lockup; the seven others are
   horizontal. Match it on optical weight, not raw height, or it reads tiny. */
.partners__logo[data-logo="partner-kl"] {
  height: 46px;
}

.partners__logo:hover {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Footer - brand triad + legal disclaimer
   -------------------------------------------------------------------------- */
.footer__brand-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .footer__brand-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.footer__brand-mark {
  display: inline-flex;
  align-items: center;
}

.footer__brand-mark img {
  max-height: 40px;
  width: auto;
  display: block;
}

.footer__brand-caption {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--rb-radius);
}

.footer__brand-caption-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__brand-caption-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rb-footer-muted);
}

/* W-12: no white plate behind the RTS mark. The file is logo_dark_bg.png, the
   light-on-transparent variant made FOR dark backgrounds, so it reads correctly
   straight on the footer. The plate put a white mark on near-white and it
   disappeared. The logo asset itself is unchanged. */
.footer__brand-caption img {
  max-height: 32px;
  width: auto;
  display: block;
}

.footer__brand-caption-nav-ai {
  max-height: 36px;
  width: auto;
  display: block;
}

/* Legal disclaimer strip - authorised V1.3.9 §20.1 CG-33 exact wording */
.footer__disclaimer {
  padding: 12px 16px;
  margin: 0 -16px 16px;
  background: rgba(27, 184, 245, 0.08);
  border-top: 1px solid rgba(27, 184, 245, 0.25);
  border-bottom: 1px solid rgba(27, 184, 245, 0.25);
  color: var(--rb-off-white);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__disclaimer {
    font-size: 0.8125rem;
    padding: 14px 24px;
  }
}

.footer__disclaimer strong {
  color: var(--rb-yellow);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Utility - respects reduced motion globally in this stylesheet
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .hero-dot,
  .quick-link,
  .news-card,
  .news-card__image img,
  .skyclub-teaser__cta,
  .partners__logo {
    transition: none;
  }
}

/* ============================================================
   K-5 Responsive Polish (360 / 768 / 1440 viewports)
   ============================================================ */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Destination cards already use aspect-ratio 4/3 (uniform heights).
   Ensure grid items stretch to row height so any flex children align. */
.destinations__grid > * {
  align-self: stretch;
}

/* News-card row: make cards align to the top of the row */
.news-strip__grid {
  align-items: stretch;
}
.news-strip__grid > .news-card {
  height: 100%;
}

/* Narrow-viewport safety for booking form labels */
@media (max-width: 480px) {
  .booking-form, .booking-form * {
    min-width: 0;
  }
  .booking-form__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
}

/* Images / iframes never overflow their parent */
img, iframe, video {
  max-width: 100%;
  height: auto;
}

/* Footer columns collapse gracefully */
@media (max-width: 640px) {
  .footer__grid, .site-footer__grid {
    grid-template-columns: 1fr !important;
  }
}
