/* ==========================================================================
   FAR OVERSEAS — HOMEPAGE RESPONSIVE OVERRIDES
   Loaded after all component styles. Keeps desktop intact and gives tablet
   and mobile their own layouts instead of squeezing the desktop composition.
   ========================================================================== */

/* Prevent decorative elements from creating horizontal scroll on narrow screens */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding-inline: clamp(18px, 4vw, 32px);
  }

  /* ------------------------------------------------------------------------
     HERO
     ------------------------------------------------------------------------ */
  .hero {
    min-height: 760px;
  }

  .hero__inner {
    padding-top: clamp(7rem, 14vw, 9rem);
    padding-bottom: clamp(12rem, 24vw, 15rem);
  }

  .hero__content {
    max-width: min(680px, 100%);
  }

  .hero__headline {
    max-width: 11ch;
  }

  .hero__trust {
    width: min(760px, calc(100% - 3rem));
  }

  /* ------------------------------------------------------------------------
     BRAND STANDARD / PROMISE
     The original mobile rules resized the pieces but never changed the
     three-column desktop grid, causing the squeezed/cut-off screenshot.
     ------------------------------------------------------------------------ */
  .brand-standard {
    overflow: hidden;
  }

  .brand-standard__promise {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "image"
      "card"
      "content";
    gap: 2rem;
    min-height: 0;
    margin-top: 0;
    padding: 3rem clamp(18px, 4vw, 32px) 4rem;
  }

  .brand-standard__promise-image {
    grid-area: image;
    width: 100%;
    height: clamp(300px, 55vw, 420px);
    min-height: 0;
    margin-left: 0;
  }

  .brand-standard__promise-card {
    grid-area: card;
    justify-self: start;
    width: min(100%, 460px);
    max-width: 460px;
    margin: 0;
  }

  .brand-standard__promise-content {
    grid-area: content;
    width: 100%;
  }

  .brand-standard__promise-content h2,
  .promise-description {
    max-width: 100%;
  }

  /* ------------------------------------------------------------------------
     ABOUT PREVIEW
     ------------------------------------------------------------------------ */
  .about-preview {
    padding-block: clamp(64px, 9vw, 90px);
  }

  .about-preview__inner {
    gap: clamp(2.5rem, 6vw, 4rem);
  }

  .about-preview__body {
    max-width: 720px;
    margin-inline: auto;
  }

  /* ------------------------------------------------------------------------
     SHOWCASE
     ------------------------------------------------------------------------ */
  .showcase {
    padding-block: clamp(70px, 9vw, 100px);
  }

  /* ------------------------------------------------------------------------
     GLOBAL REACH
     ------------------------------------------------------------------------ */
  .reach__stage {
    width: 100%;
    margin-left: 0;
    margin-top: -20px;
  }

  .reach__stats {
    width: min(900px, calc(100% - 36px));
  }
}

/* ==========================================================================
   TABLET
   ========================================================================== */
@media (min-width: 641px) and (max-width: 900px) {
  .hero__headline {
    font-size: clamp(3.5rem, 8vw, 5rem);
  }

  .hero__subline {
    max-width: 58ch;
  }

  .brand-standard__promise {
    padding-inline: clamp(28px, 6vw, 56px);
  }

  .brand-standard__promise-card {
    justify-self: center;
  }
.about-preview {
  position: relative;
  z-index: 5;
  padding-top: 90px;
}

.about-preview__media {
  position: relative;
  z-index: 6;
}

.about-preview__stat-card {
  z-index: 10;
  bottom: -1rem;
}
  .about-preview__media {
    max-width: 560px;
  }

  .about-preview__pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase__grid {
    gap: clamp(12px, 2vw, 20px);
  }

  .reach__header {
    width: min(1180px, calc(100% - 56px));
  }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 640px) {
  /* ------------------------------------------------------------------------
     HERO — the trust panel becomes part of normal document flow. This avoids
     the desktop absolute panel overlapping the headline and description.
     ------------------------------------------------------------------------ */
  .hero {
    display: block;
    min-height: 0;
    padding-top: var(--nav-height);
    padding-bottom: 5.5rem;
  }

  .hero__bg {
    background-position: 58% center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 30, 31, 0.82) 0%,
      rgba(5, 30, 31, 0.76) 48%,
      rgba(5, 30, 31, 0.9) 100%
    );
  }

  .hero__inner {
    min-height: 0;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

  .hero__headline {
    max-width: 10ch;
    font-size: clamp(2.75rem, 12vw, 4.1rem);
    line-height: 0.96;
  }

  .hero__subline {
    margin-top: 1.15rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero__actions {
    gap: 0.75rem;
    margin-top: 1.6rem;
  }

  .hero__actions .btn {
    min-height: 48px;
  }

  .hero__trust {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 0 auto;
    transform: translateY(28px);
  }

  .hero__trust.trust-visible {
    transform: translateY(0);
  }

  .hero__trust-inner {
    grid-template-columns: 1fr;
    padding: 0.35rem;
  }

  .hero__stat {
    min-height: 104px;
    padding: 0.8rem;
    border-left: 0;
  }

  .hero__bottom-wave {
    display: none;
  }

  /* ------------------------------------------------------------------------
     BRAND PROMISE
     ------------------------------------------------------------------------ */
  .brand-standard__promise {
    gap: 1.5rem;
    padding: 2.5rem 18px 3.25rem;
  }

  .brand-standard__promise-image {
    height: 260px;
    border-radius: 18px;
  }

  .brand-standard__promise-card {
    justify-self: center;
    width: 100%;
    padding: 1.8rem 1.5rem;
  }

  .brand-standard__promise-content h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .promise-description {
    font-size: 0.92rem;
  }

  .promise-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ------------------------------------------------------------------------
     ABOUT
     ------------------------------------------------------------------------ */
  .about-preview {
    padding-block: 64px;
  }

  .about-preview__media {
    max-width: 100%;
  }

  .about-preview__frame {
    aspect-ratio: 4 / 4.6;
  }

  .about-preview__stat-card {
    right: 0.75rem;
    bottom: -1rem;
    padding: 0.85rem 1rem;
  }

  .about-preview__pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* ------------------------------------------------------------------------
     SHOWCASE
     ------------------------------------------------------------------------ */
  .showcase__header {
    margin-bottom: 2rem;
  }

  .showcase__header h2 {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  .product-card__body {
    padding: 1.35rem;
  }

  /* ------------------------------------------------------------------------
     GLOBAL REACH
     Keep the map readable without using the desktop negative-width crop.
     ------------------------------------------------------------------------ */
  .reach {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .reach__header {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .reach__header h2 {
    font-size: clamp(2.55rem, 12vw, 3.8rem);
  }

  .reach__stage {
    width: 125%;
    margin: 18px 0 0 -12.5%;
  }

  .reach__map-shell {
    min-height: 0;
  }

  .reach__label {
    font-size: 0.42rem;
  }

  .reach__label--na,
  .reach__label--eu,
  .reach__label--af,
  .reach__label--sa {
    display: none;
  }

  .reach__stats {
    width: calc(100% - 32px);
    margin-top: 0;
  }

  .reach__stats > div {
    padding: 15px 16px;
  }

  /* Touch devices have no hover state: keep important hover-only content visible. */
  .product-card__text {
    max-height: 80px;
    opacity: 1;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .navbar__brand,
  .navbar__logo {
    width: 150px;
    height: 42px;
    flex-basis: 150px;
  }

  .hero__inner {
    padding-top: 4rem;
  }

  .hero__headline {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .promise-metrics {
    grid-template-columns: 1fr;
  }
}

/* Touch and compact screens: prevent hover-only transforms from leaving
   layout-dependent states around animated cards. */
@media (hover: none) {
  .hero__stat:hover,
  .promise-metric:hover,
  .product-card__cta:hover {
    transform: none;
  }
}
/* ==========================================================================
   ABOUT PREVIEW — MOBILE LAYOUT FIX
   ========================================================================== */

@media (max-width: 640px) {

  .about-preview {
    overflow: hidden;
    padding: 64px 0 80px;
  }

  /* Break the desktop two-column layout */
  .about-preview__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    width: 100%;
  }

  /* IMAGE SECTION */
  .about-preview__media {
    position: relative;
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
  }

  .about-preview__frame {
    width: 100%;
    aspect-ratio: 4 / 4.8;
    min-height: 0;
  }

  /* Prevent desktop positioning from pushing/cropping the image */
  .about-preview__image {
    width: 100%;
    height: 100%;
  }

  /* WORLDWIDE CARD */
  .about-preview__stat-card {
    position: absolute;
    right: 0.75rem;
    bottom: -2.25rem;

    width: min(58%, 210px);
    padding: 1rem 1.1rem;

    z-index: 3;
  }

  /* TEXT CONTENT */
  .about-preview__body {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
  }

  .about-preview__eyebrow {
    margin-bottom: 1rem;
  }

  .about-preview__title,
  .about-preview__body h2 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    line-height: 1.05;
  }

  .about-preview__description {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  /* FEATURES */
  .about-preview__pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

}
