/* ==========================================================================
   Responsive layer (loaded last): tablet and mobile.
   ========================================================================== */

/* ---------- Hero: on tablet/mobile the video / image becomes the background ---------- */
@media (max-width: 1089px) {
  .hero-row__hero { isolation: isolate; }
  .hero-row__banner {
    position: static !important;
    display: block !important;
    width: calc(100% - 40px);
    padding: 72px 0 84px !important;
  }
  .hero-row__banner .hero-row__banner-text { position: relative; z-index: 2; }

  /* media fills the whole hero */
  .nx-hero__media,
  .hero-row__banner > .hero-row__banner-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    z-index: 0;
    animation: none !important;
  }
  .hero-row__banner > .hero-row__banner-image { object-fit: cover; object-position: 50% 30% !important; }
  .nx-hero__arch {
    position: absolute !important;
    inset: 0;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .nx-hero__media::before,
  .nx-hero__note,
  .nx-hero__seal,
  .nx-hero__scroll { display: none !important; }

  /* navy veil over the media so the text stays readable */
  .hero-row__hero::after {
    display: block !important;
    z-index: 1;
    background:
      radial-gradient(700px 380px at 90% 0%, rgba(201, 168, 106, .18), transparent 70%),
      linear-gradient(180deg, rgba(13, 26, 39, .80) 0%, rgba(13, 26, 39, .70) 45%, rgba(13, 26, 39, .94) 100%) !important;
  }
  .hero-row__hero::before { z-index: 1; }

  /* show the full subtitle (no clamp) */
  .hero-row__hero:not(.nx-hero-home) .hero-row__banner-subtitle {
    display: block !important;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .hero-row__banner .hero-row__banner-text .hero-row__banner-subtitle { color: rgba(244, 239, 230, .86) !important; }
}
@media (max-width: 560px) {
  .hero-row__banner { width: calc(100% - 36px); padding: 56px 0 64px !important; }
  .hero-row__banner .hero-row__banner-text .hero-row__banner-title { font-size: 2.35rem !important; line-height: 1.12 !important; }
  .hero-row__hero:not(.nx-hero-home) .hero-row__banner-title { font-size: 2.1rem !important; }
  .nx-hero__actions { margin-top: 26px; }
}

/* ---------- Home intro: one card level on mobile, wider text ---------- */
@media (max-width: 767px) {
  .resources-text-row { padding: 12px !important; margin: 24px 12px !important; gap: 12px; }
  .resources-text-row .column-1,
  .resources-text-row .column-2 { padding: 0 !important; }
  .resources-text-row .column-1 > div,
  .resources-text-row .column-2 .resources { padding: 28px 22px !important; width: 100%; box-sizing: border-box; }
  .resources-text-row .h2 { font-size: 22px !important; line-height: 1.3 !important; }
  .resources-text-row ul { margin: 18px 0 0 !important; padding: 0 0 0 26px !important; }
  .resources-text-row li { margin-bottom: 18px !important; }
  .resources-text-row li a { font-size: 16px !important; line-height: 1.55 !important; }
}

/* ---------- Newsletter: stack email and button on phones ---------- */
@media (max-width: 560px) {
  .nx-newsletter { padding: 24px 20px; gap: 22px; }
  .nx-newsletter__copy { align-items: flex-start; }
  .nx-newsletter__icon { flex-basis: 48px; height: 48px; }
  .nx-newsletter__form nf-fields-wrap { grid-template-columns: 1fr; }
  .nx-newsletter__form nf-field:nth-child(2) { grid-row: auto; }
  .nx-newsletter__form input[type=submit] { width: 100% !important; }
}

/* ---------- Header: compact on tablet / mobile ---------- */
@media (max-width: 1089px) {
  .l-header .content-box.stick { padding-top: 12px !important; padding-bottom: 12px !important; }
  .l-header .l-header__logo { padding-right: 12px !important; }
  .l-header .l-header__logo img.site-logo,
  .l-header .stick .l-header__logo img.site-logo { height: 42px !important; }
}
@media (max-width: 600px) {
  .l-header .content-box.stick { padding: 10px 16px !important; }
  .l-header .l-header__logo img.site-logo,
  .l-header .stick .l-header__logo img.site-logo { height: 34px !important; }
  .l-header .l-header__wrapper { align-items: center; }
  .l-header .nav__container { align-items: center; }
  .l-header img.l-header__mobile-contact-icon { height: 26px !important; width: auto !important; padding: 3px 14px 3px 3px !important; }
  .l-header .l-header__brg { width: 32px !important; height: 26px !important; padding: 3px !important; }
  .l-header .l-header__brg span { width: 24px !important; }
  .l-header .l-header__brg span:nth-child(1) { top: 5px !important; }
}

/* ---------- Home 2nd section (intro): compact, stacked up to tablet ---------- */
@media (max-width: 900px) {
  .resources-text-row { flex-direction: column !important; }
  .resources-text-row { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 20px 14px !important; gap: 12px; }
  .resources-text-row .column-1 > div,
  .resources-text-row .column-2 .resources { padding: 22px 20px !important; border-radius: 18px !important; }
  .resources-text-row .h2 { font-size: 19px !important; line-height: 1.3 !important; margin-bottom: 12px !important; }
  .resources-text-row p { font-size: 14px !important; line-height: 1.6 !important; margin-bottom: 10px !important; }
  .resources-text-row .btn { margin-top: 6px !important; }
  .resources-text-row .btn a { padding: 11px 22px !important; font-size: 14px !important; width: auto !important; }
  .resources-text-row ul { margin: 12px 0 0 !important; padding-left: 22px !important; }
  .resources-text-row li { margin-bottom: 12px !important; }
  .resources-text-row li:last-child { margin-bottom: 0 !important; }
  .resources-text-row li a { font-size: 14.5px !important; line-height: 1.5 !important; }
  .resources-text-row ul li::before { width: 10px !important; height: 14px !important; }

  /* highlight band under it */
  .carousel-banner-wrapper { margin: 8px 14px 0 !important; border-radius: 18px !important; }
  .carousel-banner-wrapper .carousel-banner { min-height: 0 !important; padding: 36px 20px 44px !important; }
  .carousel-banner-wrapper .carousel-banner h2 { font-size: 28px !important; line-height: 1.15 !important; }
  .carousel-banner-wrapper .carousel-banner h3 { font-size: 15px !important; line-height: 1.5 !important; }
}
@media (max-width: 1089px) { .l-header .stick { height: auto !important; } }
@media (max-width: 900px) {
  .resources-text-row .column-1 > div,
  .resources-text-row .column-2 .resources { background: #fff !important; border: 1px solid rgba(13, 26, 39, .08) !important; box-shadow: 0 14px 30px -22px rgba(13, 26, 39, .35) !important; }
  .resources-text-row .column-2 .resources { background: #f6f3ee !important; }
}
@media (max-width: 900px) {
  .resources-text-row .column-1 > div,
  .resources-text-row .column-2 .resources { display: block !important; }
  .resources-text-row .h2 { margin: 0 0 12px !important; }
  .resources-text-row p { margin: 0 0 10px !important; }
  .resources-text-row ul { margin-top: 14px !important; }
  .resources-text-row .btn { display: inline-block; margin-top: 8px !important; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .hero-row__banner { width: calc(100% - 92px); padding: 80px 0 90px !important; }
  .resources-text-row { margin: 28px 46px !important; }
  .resources-text-row .column-1 > div,
  .resources-text-row .column-2 .resources { padding: 30px 32px !important; }
  .carousel-banner-wrapper { margin: 8px 46px 0 !important; }
}
@media (max-width: 900px) {
  .resources-text-row { width: auto !important; max-width: none !important; box-sizing: border-box; }
  .resources-text-row .column-1,
  .resources-text-row .column-2 { padding: 0 !important; width: 100% !important; }
  .resources-text-row .h2 { padding-bottom: 0 !important; }
}

/* ---------- Content rows (about, sectors, policies): tighter on phones ---------- */
@media (max-width: 767px) {
  .heavy-content-row, .three-feature-box-row { padding-top: 40px !important; padding-bottom: 40px !important; }
  .heavy-content-row .column-1, .heavy-content { padding: 0 !important; }
  .heavy-content-row .heavy-content > div { padding: 4px 0 4px 18px !important; }
  .heavy-content .h2 { padding-bottom: 12px !important; font-size: 22px !important; }
  .heavy-content p, .heavy-content li { font-size: 15px !important; line-height: 1.65 !important; }
  .heavy-content ul { padding-left: 20px !important; margin-left: 0 !important; }
  .heavy-content .btn { padding-top: 22px !important; }
  .heavy-content-row + .heavy-content-row { padding-top: 0 !important; }

  .three-feature-box-row .pure-g-outer { margin-bottom: 14px; }
  .three-feature-box-row .feature-card { margin: 0 !important; padding: 26px 22px !important; min-height: 0 !important; height: auto !important; }
  .three-feature-box-row .feature-card .content,
  .three-feature-box-row .feature-card .copy { padding: 0 !important; margin: 0 !important; width: 100% !important; }
  .three-feature-box-row .feature-card .h3 { margin: 0 0 8px !important; padding: 0 !important; }
  .three-feature-box-row .feature-card p { font-size: 15px !important; line-height: 1.6 !important; margin: 0 !important; }

  /* team cards */
  .team-row__grid { gap: 16px; }
  .team-row__team-member { padding: 10px 10px 18px !important; min-height: 0 !important; height: auto !important; }
  .team-row__team-member-photo-container { max-height: 360px; overflow: hidden; border-radius: 14px; }
  .team-row__team-member-photo-container img { object-fit: cover; object-position: 50% 20%; }
  .team-row__team-member h3, .team-row__team-member .h3 { padding: 12px 0 4px !important; }

  /* footer: company + sectors side by side, smaller CTA */
  .nx-footer__cta { padding: 26px 22px !important; border-radius: 20px !important; }
  .nx-footer__cta-title { font-size: 21px !important; }
  .nx-footer__grid { grid-template-columns: 1fr 1fr !important; gap: 30px 18px !important; padding: 40px 0 !important; }
  .nx-footer__brand, .nx-footer__contact { grid-column: 1 / -1; }
  .nx-footer__col h3 { margin-bottom: 14px !important; }
  .nx-footer__col ul li { margin-bottom: 2px; }
  .nx-footer__col ul a { font-size: 14px !important; line-height: 1.5; padding: 4px 0; display: inline-block; }
  .nx-footer__bottom { gap: 12px; padding: 22px 0 !important; }
}
@media (max-width: 767px) {
  .nx-footer__col ul { display: grid; gap: 4px; }
  .nx-footer__col ul li { margin: 0 !important; }
}
@media (min-width: 901px) and (max-width: 1089px) {
  .hero-row__banner { width: calc(100% - 92px); padding: 96px 0 104px !important; }
  .hero-row__banner .hero-row__banner-text { max-width: 640px; }
}
@media (max-width: 1089px) { .hero-row__banner::after { display: none !important; } }
@media (min-width: 901px) and (max-width: 1089px) { .hero-row__banner { width: calc(100% - 130px); } }
