/* =========================================================
   Responsive overrides
   Loaded last so it can override component/page styles.
========================================================= */

/* ---- Global mobile hardening (all pages) ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

* {
  min-width: 0;
}

body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  padding-inline: 20px;
  margin-inline: auto;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Tablets ≤ 991px ---- */
@media (max-width: 991px) {
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .navbar__toggle {
    display: flex;
    order: 2;
  }

  .navbar__cta {
    order: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .navbar__nav.is-open {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .navbar__menu {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
  }

  .navbar__link {
    padding-block: 12px;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .navbar__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 12px;
    display: none;
  }

  .has-dropdown.is-open .navbar__dropdown {
    display: block;
  }

  .contact-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .contact-hero__content {
    order: 1;
    width: 100%;
  }

  .contact-hero__content .contact-hero__actions {
    justify-content: center;
  }

  .contact-hero__content .contact-hero__text {
    margin-inline: auto;
  }

  .contact-hero__visual {
    order: 2;
    width: 100%;
  }

  .contact-hero__figure-wrap {
    max-width: min(420px, 85vw);
    box-shadow: 0 20px 45px -18px rgba(16, 40, 28, 0.35);
    border: 1px solid var(--color-border-soft);
  }

  .hero-slider__img {
    filter: drop-shadow(0 12px 20px rgba(16, 40, 28, 0.18));
  }

  .contact-hero__pager {
    margin-top: 22px;
  }

  .contact-hero__pager button {
    width: 10px;
    height: 10px;
  }

  .contact-hero__badges {
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 560px;
  }

  .contact-hero__badge {
    flex: 1 1 220px;
  }

  .contact-main__inner {
    grid-template-columns: 1fr;
  }

  .cta-strip__inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .cta-strip__actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .cta-strip__art {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Small tablets / large phones ≤ 767px ---- */
@media (max-width: 767px) {
  .section {
    padding-block: 56px;
  }

  .contact-hero__title {
    font-size: 2rem;
  }

  .contact-hero__actions {
    flex-direction: column;
  }

  .contact-hero__actions .btn {
    width: 100%;
  }

  .contact-hero__figure-wrap {
    max-width: min(360px, 82vw);
  }

  .contact-hero__badge {
    flex: 1 1 100%;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-strip__inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding-block: 32px;
}

.cta-strip__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-strip__icon img {
  width: 22px;
  height: 22px;
}

.cta-strip__text {
  width: 100%;
  text-align: center;
}

.cta-strip__text h3 {
  text-align: center;
}

.cta-strip__text p {
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.cta-strip__actions {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
  align-items: center;
}

.cta-strip__actions .btn {
  flex: 1 1 auto;
}

  .cta-strip__text {
    width: 100%;
  }

  .cta-strip__actions {
    justify-content: center;
    align-items: center;
    margin-left: 0;
    width: 100%;
  }

  .cta-strip__actions .btn {
    flex: 1 1 auto;
  }

  .cta-strip__text p {
    max-width: 100%;
    margin-inline: auto;
  }
}

/* ---- Phones ≤ 480px ---- */
@media (max-width: 480px) {
  .container,
  .contact-hero__inner,
  .contact-main__inner,
  .navbar__inner,
  .footer__inner,
  .cta-strip__inner,
  .trust-strip__inner {
    padding-inline: 16px;
  }

  .contact-hero__title {
    font-size: 1.7rem;
  }

  .contact-panel {
    padding: 22px;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr;
  }

  .navbar__brand-sub {
    display: none;
  }
}
