/* ==========================================================================
   APS GLOBAL LOGISTIC — RESPONSIVE STYLESHEET
   File: css/apsglobal-responsive.css
   Breakpoints: 1200px, 992px, 768px, 576px, 400px
   ========================================================================== */

/* Large Laptops & Desktops (max-width: 1200px) */
@media screen and (max-width: 1200px) {
  :root {
    --apsglobal-container-max: 1120px;
  }
  
  .apsglobal-nav-list {
    gap: 1.5rem;
  }
  
  .apsglobal-nav-link {
    font-size: 0.875rem;
  }
  
  .apsglobal-editorial-grid {
    gap: 3rem;
  }
  
  .apsglobal-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablets & Small Laptops (max-width: 992px) */
@media screen and (max-width: 992px) {
  :root {
    --apsglobal-header-height: 92px;
    --apsglobal-header-height-scrolled: 76px;
  }
  
  .apsglobal-brand-logo img {
    height: 78px;
    max-width: 260px;
    filter: contrast(1.12) saturate(1.15);
  }
  
  .apsglobal-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
  
  /* Switch Desktop Nav to Hamburger */
  .apsglobal-nav {
    display: none;
  }
  
  .apsglobal-hamburger {
    display: flex;
  }
  
  .apsglobal-header-actions .apsglobal-header-brochure-btn {
    display: none;
  }
  
  /* Hero Slider adjustments for tablets */
  .apsglobal-hero-slider {
    min-height: 600px;
    height: calc(100vh - var(--apsglobal-header-height));
    height: calc(100dvh - var(--apsglobal-header-height));
    max-height: 800px;
    padding-bottom: 0;
  }
  
  .apsglobal-slide {
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 5rem;
  }

  .apsglobal-slide-content {
    padding: 1.5rem 0;
    max-width: 720px;
  }

  .apsglobal-slide-headline {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
  }

  .apsglobal-slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    transform: none;
    z-index: 10;
  }
  
  /* Services & Features Grid */
  .apsglobal-services-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }
  
  .apsglobal-service-card-image {
    height: 280px;
  }
  
  .apsglobal-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .apsglobal-editorial-image {
    max-height: 450px;
  }
  
  .apsglobal-feature-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .apsglobal-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .apsglobal-brochure-cta-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .apsglobal-brochure-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .apsglobal-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media screen and (max-width: 768px) {
  :root {
    --apsglobal-header-height: 86px;
    --apsglobal-header-height-scrolled: 72px;
  }

  .apsglobal-brand-logo img {
    height: 72px;
    max-width: 240px;
    filter: contrast(1.12) saturate(1.15);
  }

  .apsglobal-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .apsglobal-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    overflow-x: clip;
  }
  
  .apsglobal-section-header {
    margin-bottom: 2.5rem;
  }
  
  /* Hero Slider Mobile Architecture (max-width: 768px) */
  .apsglobal-hero-slider {
    min-height: 580px;
    height: calc(100vh - var(--apsglobal-header-height));
    height: calc(100dvh - var(--apsglobal-header-height));
    max-height: 760px;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
  }

  .apsglobal-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 5.5rem;
    box-sizing: border-box;
  }

  .apsglobal-slide-bg img {
    object-position: center;
  }

  .apsglobal-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.35) 0%,
      rgba(20, 20, 20, 0.52) 35%,
      rgba(22, 22, 22, 0.68) 75%,
      rgba(24, 24, 24, 0.76) 100%
    );
  }

  .apsglobal-slide-content {
    padding: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .apsglobal-slide-tag {
    font-size: 0.725rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .apsglobal-slide-headline {
    font-size: clamp(1.45rem, 5.5vw, 1.95rem);
    line-height: 1.16;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
    word-break: break-word;
  }
  
  .apsglobal-slide-description {
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    color: #E2E2E2;
    max-width: 100%;
  }

  .apsglobal-slide-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
  }

  .apsglobal-slide-actions .apsglobal-btn {
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.825rem !important;
    letter-spacing: 0.03em !important;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  /* Slider Controls: Centered Floating Dock at Bottom */
  .apsglobal-slider-controls {
    position: absolute !important;
    bottom: 1.25rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(22, 22, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--apsglobal-radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    width: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  .apsglobal-slider-counter {
    font-family: var(--apsglobal-font-display);
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--apsglobal-color-white);
    letter-spacing: 0.05em;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-variant-numeric: tabular-nums;
    display: inline-block;
  }

  .apsglobal-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
  }

  .apsglobal-slider-dot {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .apsglobal-slider-dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: var(--apsglobal-radius-pill);
    background: rgba(255, 255, 255, 0.35);
    transition: all var(--apsglobal-transition-fast);
  }

  .apsglobal-slider-dot.apsglobal-slider-dot--active::before {
    width: 20px;
    background-color: var(--apsglobal-color-orange);
  }

  .apsglobal-slider-arrows {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .apsglobal-slider-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--apsglobal-color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
  }

  .apsglobal-slider-arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .apsglobal-product-grid {
    grid-template-columns: 1fr;
  }
  
  .apsglobal-feature-grid {
    grid-template-columns: 1fr;
  }
  
  .apsglobal-feature-grid--3col {
    grid-template-columns: 1fr;
  }
  
  .apsglobal-why-grid {
    grid-template-columns: 1fr;
  }
  
  .apsglobal-contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .apsglobal-contact-card {
    padding: 2.25rem 1.75rem;
  }

  .apsglobal-contact-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .apsglobal-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .apsglobal-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .apsglobal-back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Extra Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
  :root {
    --apsglobal-header-height: 82px;
    --apsglobal-header-height-scrolled: 68px;
  }

  .apsglobal-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .apsglobal-brand-logo img {
    height: 68px;
    max-width: 220px;
    filter: contrast(1.12) saturate(1.15);
  }

  .apsglobal-mobile-menu-header .apsglobal-brand-logo img {
    height: 72px;
    max-width: 230px;
  }

  .apsglobal-hero-slider {
    min-height: 550px;
    height: calc(100vh - var(--apsglobal-header-height));
    height: calc(100dvh - var(--apsglobal-header-height));
    max-height: 720px;
  }

  .apsglobal-slide {
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 5.25rem;
  }

  .apsglobal-slide-tag {
    font-size: 0.6875rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.08em;
  }
  
  .apsglobal-slide-headline {
    font-size: clamp(1.35rem, 5.2vw, 1.65rem);
    line-height: 1.18;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
  }

  .apsglobal-slide-description {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 1.1rem;
  }

  .apsglobal-slide-actions {
    gap: 0.5rem;
    width: 100%;
  }

  .apsglobal-slide-actions .apsglobal-btn {
    width: 100% !important;
    padding: 0.72rem 1rem !important;
    font-size: 0.8rem !important;
    min-height: 44px;
    min-width: 44px;
  }

  .apsglobal-slider-controls {
    bottom: 1rem !important;
    padding: 0.28rem 0.65rem;
    gap: 0.45rem;
  }

  .apsglobal-slider-counter {
    font-size: 0.725rem;
  }

  .apsglobal-slider-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .apsglobal-slider-arrow svg {
    width: 15px;
    height: 15px;
  }
  
  .apsglobal-btn {
    width: 100%;
    padding: 0.85rem 1.35rem;
    font-size: 0.85rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  .apsglobal-mobile-menu {
    max-width: 100%;
    padding: 1.25rem 1.5rem 2rem;
  }
  
  .apsglobal-contact-link {
    font-size: 0.925rem;
    padding: 0.85rem 1rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  .apsglobal-contact-name {
    font-size: 1.5rem;
  }
  
  .apsglobal-service-card-body {
    padding: 1.5rem;
  }
  
  .apsglobal-product-card-body {
    padding: 1.25rem;
  }
}

