/* ==========================================================================
   Adrop Life Sciences — responsive overrides
   Breakpoints follow Bootstrap 5: sm 576 · md 768 · lg 992 · xl 1200 · xxl 1400
   ========================================================================== */

/* Figma gutters (30px / 20px / 10px) at desktop widths */
@media (min-width: 1200px) {
  .g-xl-30 {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 30px;
  }

  .g-xl-20 {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
  }

  .g-xl-10 {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
}

/* ---------- Description text size per device ----------
   Desktop ≥1200: 18px (set in style.css) · Laptop/tablet: 17px · Phone: 16px */
@media (max-width: 1199.98px) {
  :root {
    --als-text-desc: 17px;
    --als-text-topbar: 12.5px;
    --als-text-nav: 16px;
    /* bigger tap targets in the collapsed menu */
    --als-text-footer-title: 22px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --als-text-desc: 16px;
    --als-text-desc-lh: 1.45;
    --als-box-title-size: 17px;
    --als-box-title-gap: 16px;
    --als-text-topbar: 12px;
    --als-text-footer-title: 20px;
  }
}

/* ---------- ≤ 1399px (laptops) ---------- */
@media (max-width: 1399.98px) {
  .als-nav-link {
    padding: 10px 14px !important;
  }

  .als-thumb-media {
    height: 180px;
  }

  .als-category-card {
    height: 400px;
  }
}

/* ---------- ≤ 1199px (navbar collapses) ---------- */
@media (max-width: 1199.98px) {
  :root {
    --als-section-y: 80px;
  }

  /* Mobile header: white bar, plain hamburger, full-width drop-down menu */
  .als-header {
    background: var(--als-white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .als-navbar-toggler {
    border: 0;
    border-radius: 0;
    padding: 8px 4px;
  }

  .als-navbar-toggler-bar {
    width: 26px;
    background: var(--als-neutral);
  }

  .als-navbar-toggler-bar+.als-navbar-toggler-bar {
    margin-top: 6px;
  }

  .als-navbar-toggler[aria-expanded="true"] .als-navbar-toggler-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .als-navbar-toggler[aria-expanded="true"] .als-navbar-toggler-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .als-navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: var(--als-white);
    border-top: 1px solid rgba(27, 59, 54, 0.1);
    box-shadow: 0 16px 30px rgba(15, 48, 79, 0.12);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .als-nav {
    gap: 0;
  }

  .als-nav-link {
    display: flex;
    padding: 14px var(--als-menu-pad) !important;
    border-radius: 0;
  }

  .als-header-cta {
    width: 100%;
    margin: 0;
    padding: 15px var(--als-menu-pad);
    border-radius: 0;
  }
}

/* Menu text lines up with the logo at every container width */
:root {
  --als-menu-pad: 18px;
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  :root {
    --als-menu-pad: calc((100% - 540px) / 2 + 12px);
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  :root {
    --als-menu-pad: calc((100% - 720px) / 2 + 12px);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --als-menu-pad: calc((100% - 960px) / 2 + 12px);
  }
}

@media (max-width: 1199.98px) {

  .als-toolbar {
    border-radius: 30px;
  }

  .als-search {
    flex-basis: 100%;
    padding: 10px 11px;
    border-bottom: 1px solid var(--als-tertiary);
  }

  .als-mfg-pins {
    left: auto;
    right: 4%;
  }
}

/* ---------- ≤ 991px (tablets) ---------- */
@media (max-width: 991.98px) {
  :root {
    --als-section-y: 70px;
  }

  .als-hero-media {
    aspect-ratio: 4 / 3;
  }

  .als-featured {
    padding: 30px;
  }

  .als-thumbs {
    margin-top: 30px;
  }

  .als-global,
  .als-panel,
  .als-enquiry {
    padding: 35px;
  }

  .als-catalogue {
    padding: 30px;
  }

  .als-catalogue-title {
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .als-products-grid.is-list .als-product-media {
    width: 240px;
  }

}

/* ---------- ≤ 767px (large phones) ---------- */
@media (max-width: 767.98px) {
  :root {
    --als-section-y: 60px;
  }

  .als-section-head {
    margin-bottom: 30px;
  }

  .als-eyebrow {
    padding: 10px 18px;
    font-size: 13px;
  }

  .als-hero {
    padding-top: 30px;
  }

  .als-hero-actions .als-btn {
    flex: 1 1 auto;
  }

  .als-glass-pill {
    left: 15px;
    bottom: 15px;
    padding: 9px 18px 9px 10px;
    font-size: 14px;
  }

  .als-certs {
    padding: 25px 0;
  }

  .als-certs-list {
    gap: 20px 28px;
  }

  .als-certs-list img {
    height: 46px;
  }

  .als-category-card {
    height: 340px;
  }

  .als-featured {
    padding: 20px;
    border-radius: 20px;
  }

  .als-featured-specs .col-4 {
    flex: 0 0 auto;
    width: 50%;
  }

  .als-thumb-media {
    height: 150px;
  }

  .als-mfg-visual {
    padding-bottom: 0;
  }

  .als-mfg-object {
    width: 34%;
    top: 14%;
  }

  .als-mfg-pins {
    position: static;
    margin-top: 15px;
    gap: 10px;
  }

  .als-mfg-pins .als-glass-pill {
    background: rgba(255, 255, 255, 0.85);
  }

  .als-mfg-glow {
    display: none;
  }

  .als-step-title {
    font-size: 18px;
  }

  .als-global,
  .als-panel,
  .als-enquiry {
    padding: 25px;
    border-radius: 20px;
  }

  .als-toolbar {
    padding: 15px;
  }

  .als-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .als-pills::-webkit-scrollbar {
    display: none;
  }

  .als-pill {
    padding: 10px 20px;
  }

  .als-products-grid.is-list .als-product-card {
    flex-direction: column;
  }

  .als-products-grid.is-list .als-product-media {
    width: 100%;
    height: 220px;
  }

  .als-products-grid.is-list .als-product-body {
    padding: 15px;
  }

  .als-catalogue {
    border-radius: 20px;
  }

  .als-catalogue .als-btn {
    width: 100%;
  }

  .als-form-card,
  .als-direct-card,
  .als-follow-card {
    padding: 22px;
    border-radius: 20px;
  }

  .als-faq-btn {
    font-size: 18px;
  }

  .als-faq-body {
    padding-right: 0;
  }

  .als-footer {
    padding-top: 45px;
  }

  .als-footer-main {
    padding-bottom: 40px;
  }

  .als-footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- ≤ 575px (phones) ---------- */
@media (max-width: 575.98px) {
  .als-logo img {
    width: 123px;
    height: 40px;
  }

  .als-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .als-stat-card {
    min-height: 170px;
    padding: 24px;
  }

  .als-location-card {
    padding: 24px;
  }

  .als-view-btn {
    padding: 10px 18px;
  }

  .als-results-bar {
    justify-content: space-between;
  }

  .als-radio-card-inner {
    padding: 12px;
  }

  .als-radio-card-title {
    font-size: 14px;
  }

  .als-radio-card-text {
    font-size: 12px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .als-body *,
  .als-body *::before,
  .als-body *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 767.98px) {
  .als-chips {
    gap: 10px;
  }
}

/* ---------- Motion tweaks for small screens ---------- */
@media (max-width: 767.98px) {
  .als-text-marquee {
    padding: 18px 0;
  }

  .als-certs-list .als-marquee-group {
    gap: 36px;
    padding-right: 36px;
  }

  [data-als-tilt] {
    --als-rx: 0deg !important;
    --als-ry: 0deg !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .als-js .als-reveal,
  .als-js .als-reveal-media,
  .als-js .als-hero-content>* {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .als-marquee-track {
    animation: none !important;
  }

  .als-scroll-progress {
    display: none;
  }
}