/* =========================================================
   Flying Hub – dedicated page template
   ========================================================= */

.page-template-page-flying-hub {
  --fh-blue: var(--primary-color, #1e2a7b);
  --fh-orange: var(--accent-color, #f36f36);
  --fh-white: var(--default-white, #fafaf8);
  --fh-dark: var(--default-dark, #333333);
  --fh-blue-soft: rgba(30, 42, 123, 0.07);
  --fh-orange-soft: rgba(243, 111, 54, 0.12);
}

.page-template-page-flying-hub main {
  overflow: hidden;
}

@media (min-width: 692px) {
  .page-template-page-flying-hub .site-header:not(.is-stuck) .site-nav .menu > li > a {
    color: #ffffff;
  }
}

.flying-hub-page {
  background: var(--fh-white);
  color: var(--fh-dark);
}

.flying-hub-section {
  padding-block: clamp(56px, 7vw, 112px);
}

.flying-hub-section__title,
.flying-hub-section__lead {
  max-width: 920px;
  margin: 0 0 clamp(32px, 5vw, 64px);
  color: var(--fh-blue);
}

.flying-hub-section__title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.flying-hub-section__lead {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Hero */
.flying-hub-hero {
  position: relative;
  min-height: min(880px, 92vh);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 22%, rgba(243, 111, 54, 0.95) 0 90px, transparent 91px),
    linear-gradient(135deg, #1e2a7b 0%, #093da0 100%);
  color: #ffffff;
}

.flying-hub-hero__image,
.flying-hub-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flying-hub-hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
}

.flying-hub-hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 16, 63, 0.86) 0%, rgba(7, 16, 63, 0.56) 52%, rgba(7, 16, 63, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 16, 63, 0.65) 0%, transparent 48%);
}

.flying-hub-hero:not(.has-image) .flying-hub-hero__overlay {
  background:
    radial-gradient(circle at 78% 22%, var(--fh-orange) 0 88px, transparent 89px),
    radial-gradient(circle at 85% 68%, rgba(255,255,255,.14) 0 160px, transparent 161px);
}

.flying-hub-hero__inner {
  position: relative;
  width: 100%;
  padding-top: 180px;
  padding-bottom: clamp(64px, 8vw, 120px);
}

.flying-hub-hero__mark {
  display: block;
  width: clamp(92px, 12vw, 180px);
  max-height: 180px;
  object-fit: contain;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.flying-hub-hero__title {
  max-width: 1100px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(58px, 10vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  font-weight: 500;
  text-wrap: balance;
}

.flying-hub-hero__subtitle {
  margin: clamp(20px, 3vw, 36px) 0 0;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(26px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Intro */
.flying-hub-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.flying-hub-intro__copy {
  max-width: 760px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.flying-hub-intro__copy p:last-child {
  margin-bottom: 0;
}

.flying-hub-intro__media,
.flying-hub-benefits__image,
.flying-hub-gallery__item,
.flying-hub-associations__item {
  margin: 0;
  overflow: hidden;
}

.flying-hub-intro__media {
  position: relative;
  min-height: 560px;
  border-radius: 48% 48% 22px 22px;
  background: var(--fh-orange-soft);
}

.flying-hub-intro__media::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 22px solid var(--fh-orange);
  pointer-events: none;
}

.flying-hub-intro__media img,
.flying-hub-benefits__image img,
.flying-hub-gallery__item img,
.flying-hub-associations__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pillars */
.flying-hub-pillars {
  position: relative;
  background: var(--fh-blue-soft);
}

.flying-hub-pillars::before {
  content: "";
  position: absolute;
  top: 0;
  right: 7vw;
  width: clamp(90px, 12vw, 180px);
  height: clamp(45px, 6vw, 90px);
  background: var(--fh-orange);
  border-radius: 0 0 999px 999px;
}

.flying-hub-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.flying-hub-card {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: 28px;
}

.flying-hub-card p {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.3;
}

.flying-hub-card strong {
  color: inherit;
  font-weight: 700;
}

.flying-hub-card__icon {
  display: block;
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
  object-fit: contain;
  margin-bottom: 36px;
}

.flying-hub-card--pillar {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--fh-blue);
  color: #ffffff;
}

.flying-hub-card--pillar:nth-child(2) {
  background: var(--fh-orange);
  color: #111111;
}

.flying-hub-card--pillar:nth-child(3) {
  background: #ffffff;
  color: var(--fh-blue);
  border: 2px solid var(--fh-blue);
}

/* Benefits */
.flying-hub-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.flying-hub-card--benefit {
  min-height: 300px;
  background: #ffffff;
  border: 1px solid rgba(30, 42, 123, 0.16);
  box-shadow: 0 18px 60px rgba(30, 42, 123, 0.08);
}

.flying-hub-card--benefit::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fh-orange);
}

.flying-hub-card--benefit p {
  max-width: 600px;
}

.flying-hub-benefits__image {
  height: clamp(360px, 52vw, 720px);
  margin-top: clamp(40px, 7vw, 96px);
  border-radius: 36px;
}

/* Main gallery */
.flying-hub-gallery {
  padding-top: 0;
}

.flying-hub-gallery__frame {
  position: relative;
}

.flying-hub-gallery__slider {
  overflow: visible;
}

.flying-hub-gallery .swiper-slide {
  width: min(76vw, 860px);
  opacity: 0.48;
  transform: scale(0.94);
  transition: opacity .45s ease, transform .45s ease;
}

.flying-hub-gallery .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.flying-hub-gallery__item {
  height: clamp(360px, 52vw, 700px);
  border-radius: 34px;
  background: var(--fh-blue-soft);
}

.flying-hub-gallery__prev,
.flying-hub-gallery__next {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
}

.flying-hub-gallery__prev {
  left: 20px;
}

.flying-hub-gallery__prev img {
  transform: rotate(180deg);
}

.flying-hub-gallery__next {
  right: 20px;
}

.flying-hub-gallery__pagination,
.flying-hub-testimonials__pagination {
  position: static;
  margin-top: 28px;
}

.flying-hub-gallery__pagination .swiper-pagination-bullet,
.flying-hub-testimonials__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--fh-blue);
  opacity: .25;
}

.flying-hub-gallery__pagination .swiper-pagination-bullet-active,
.flying-hub-testimonials__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--fh-orange);
}

/* Message */
.flying-hub-message {
  padding-top: 0;
}

.flying-hub-message__box {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 96px);
  border-radius: 36px;
  background: var(--fh-orange);
  color: #111111;
}

.flying-hub-message__box p {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.flying-hub-message__box p + p {
  margin-top: 24px;
  color: var(--fh-blue);
}

.flying-hub-message__mark {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: min(34vw, 430px);
  height: auto;
  opacity: .15;
  transform: rotate(-12deg);
}

/* Signup */
.flying-hub-signup {
  background: var(--fh-blue);
  color: #ffffff;
}

.flying-hub-signup__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.flying-hub-signup__copy {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.flying-hub-signup__copy p:last-child {
  margin-bottom: 0;
}

.flying-hub-signup__form {
  padding: clamp(26px, 4vw, 48px);
  border-radius: 28px;
  background: #ffffff;
  color: var(--fh-dark);
}

.flying-hub-signup__form form,
.flying-hub-signup__form .wpcf7 {
  margin: 0;
}

.flying-hub-signup__form p {
  margin-bottom: 22px;
}

.flying-hub-signup__form label {
  display: block;
  color: var(--fh-blue);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
}

.flying-hub-signup__form input[type="text"],
.flying-hub-signup__form input[type="email"],
.flying-hub-signup__form input[type="tel"] {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(30, 42, 123, 0.28);
  border-radius: 16px;
  background: #ffffff;
  color: var(--fh-dark);
  font: inherit;
}

.flying-hub-signup__form input:focus {
  outline: 3px solid rgba(243, 111, 54, 0.28);
  border-color: var(--fh-orange);
}

.flying-hub-signup__form .wpcf7-radio {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.flying-hub-signup__form .wpcf7-list-item {
  margin: 0;
}

.flying-hub-signup__form input[type="submit"] {
  width: 100%;
  min-height: 58px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--fh-orange);
  color: #111111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Testimonials */
.flying-hub-testimonials {
  background: var(--fh-orange-soft);
}

.flying-hub-testimonials__slider {
  overflow: visible;
}

.flying-hub-testimonials .swiper-slide {
  height: auto;
}

.flying-hub-testimonial {
  height: 100%;
  margin: 0;
  padding: clamp(32px, 4vw, 52px);
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(30, 42, 123, 0.12);
}

.flying-hub-testimonial p {
  margin: 0;
  color: var(--fh-blue);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

/* Associations */
.flying-hub-associations__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.flying-hub-associations__item {
  grid-column: span 4;
  height: clamp(260px, 31vw, 430px);
  border-radius: 24px;
  background: var(--fh-blue-soft);
}

.flying-hub-associations__item:nth-child(5n + 1),
.flying-hub-associations__item:nth-child(5n + 4) {
  grid-column: span 7;
}

.flying-hub-associations__item:nth-child(5n + 2),
.flying-hub-associations__item:nth-child(5n + 5) {
  grid-column: span 5;
}

/* Tablet */
@media (max-width: 995px) {
  .flying-hub-hero {
    min-height: 760px;
  }

  .flying-hub-intro__grid,
  .flying-hub-signup__grid {
    grid-template-columns: 1fr;
  }

  .flying-hub-intro__media {
    min-height: 520px;
  }

  .flying-hub-pillars__grid {
    grid-template-columns: 1fr;
  }

  .flying-hub-card--pillar {
    min-height: 240px;
  }

  .flying-hub-benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

  .flying-hub-signup__form {
    max-width: 720px;
  }
}

/* Mobile */
@media (max-width: 691px) {
  .flying-hub-section {
    padding-block: 56px;
  }

  .flying-hub-section__title,
  .flying-hub-section__lead {
    margin-bottom: 32px;
  }

  .flying-hub-hero {
    min-height: 680px;
    align-items: flex-end;
  }

  .flying-hub-hero__overlay {
    background:
      linear-gradient(0deg, rgba(7, 16, 63, 0.92) 0%, rgba(7, 16, 63, 0.48) 70%, rgba(7, 16, 63, 0.28) 100%);
  }

  .flying-hub-hero__inner {
    padding-top: 150px;
    padding-bottom: 52px;
  }

  .flying-hub-hero__title {
    font-size: clamp(56px, 18vw, 78px);
    line-height: 0.86;
  }

  .flying-hub-hero__subtitle {
    font-size: 30px;
  }

  .flying-hub-intro__grid {
    gap: 36px;
  }

  .flying-hub-intro__copy {
    font-size: 21px;
    line-height: 1.32;
  }

  .flying-hub-intro__media {
    min-height: 390px;
    border-radius: 42% 42% 20px 20px;
  }

  .flying-hub-pillars::before {
    right: 24px;
    width: 86px;
    height: 43px;
  }

  .flying-hub-card {
    padding: 28px;
    border-radius: 22px;
  }

  .flying-hub-card--pillar,
  .flying-hub-card--benefit {
    min-height: 0;
  }

  .flying-hub-card__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
  }

  .flying-hub-benefits__grid {
    grid-template-columns: 1fr;
  }

  .flying-hub-benefits__image {
    height: 380px;
    border-radius: 24px;
  }

  .flying-hub-gallery .swiper-slide {
    width: 86vw;
    opacity: 1;
    transform: none;
  }

  .flying-hub-gallery__item {
    height: 420px;
    border-radius: 24px;
  }

  .flying-hub-gallery__prev,
  .flying-hub-gallery__next {
    display: none;
  }

  .flying-hub-message__box {
    padding: 36px 26px;
    border-radius: 24px;
  }

  .flying-hub-message__box p {
    font-size: 36px;
  }

  .flying-hub-signup__grid {
    gap: 36px;
  }

  .flying-hub-signup__copy {
    font-size: 26px;
  }

  .flying-hub-signup__form {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .flying-hub-associations__grid {
    grid-template-columns: 1fr;
  }

  .flying-hub-associations__item,
  .flying-hub-associations__item:nth-child(n) {
    grid-column: auto;
    height: 340px;
  }
}

@media (max-width: 390px) {
  .flying-hub-hero__title {
    font-size: 52px;
  }

  .flying-hub-gallery__item {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flying-hub-gallery .swiper-slide {
    transition: none;
  }
}
