/* ============================================================
   PBS INTL FZE — MOBILE RESPONSIVENESS (max-width: 991px)
============================================================ */

@media (max-width: 991px) {
  
  /* ----------------------------------------------------------
     GLOBAL & TYPOGRAPHY
  ---------------------------------------------------------- */
  /* Hide custom cursor on touch devices */
  #custom-cursor { display: none !important; }
  
  body, html { overflow-x: hidden; }

  /* ----------------------------------------------------------
     NAVBAR
  ---------------------------------------------------------- */
  #navbar {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease;
  }
  
  /* Pill-shaped floating navbar when scrolled (compressed) */
  .navbar-glass {
    margin: 10px 0px !important;
    padding: 5px 15px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-bottom: none !important;
    background: rgba(13, 13, 43, 0.65) !important; /* Slightly darker glass for contrast when floating */
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .navbar-collapse {
    background: var(--navy);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .navbar-nav .nav-link {
    color: var(--white) !important; /* Force white text over the navy background */
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .nav-contact-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }
  
  /* ----------------------------------------------------------
     SECTION 1 — LANDING
  ---------------------------------------------------------- */
  .landing-bg-text {
    padding-top: 10vh;
    justify-content: flex-start; /* Disable space-between to manually position bottom text */
  }
  .text-perfect-bulk,
  .text-solutions {
    font-size: 15vw !important; /* Scale text cleanly for mobile */
    line-height: 1.1;
  }
  
  #text-solutions {
    position: absolute;
    top: 60vh; /* Position precisely below the container's visual bottom edge */
    left: 20px;
  }

  #container-hero {
    max-width: none;
    width: 140vw; /* Bleeds off edges for cinematic mobile depth */
    height: auto;
    top: 5vh; /* Push it down so the y:-220 animation lands perfectly */
  }
  
  .landing-left {
    position: absolute;
    left: 20px;
    bottom: 8%; /* Push lower on mobile */
    max-width: 180px;
  }
  
  .landing-stats {
    top: auto;
    bottom: 8%; /* Align with left CTA */
    right: 20px;
    transform: none;
    gap: 20px;
  }
  
  .stat-value {
    font-size: 2.2rem;
  }
  
  /* ----------------------------------------------------------
     SECTION 2 — ABOUT
  ---------------------------------------------------------- */
  #about {
    text-align: center;
    padding: 80px 20px;
  }
  #about-cta {
    align-self: center !important;
    margin: 0 auto;
  }
  
  /* ----------------------------------------------------------
     SECTION 3 — MISSION
  ---------------------------------------------------------- */
  #mission {
    padding: 80px 0 60px;
    display: flex;
    flex-direction: column;
    min-height: 160vh; /* Tall section to guarantee central space for container */
    justify-content: flex-end; /* Push everything to the bottom! */
  }
  
  .mission-header {
    position: relative !important;
    top: auto !important;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between left and right headers when stacked */
  }
  
  .mission-header-left {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 20px;
  }
  
  .mission-header-right {
    text-align: left;
    padding: 0 20px;
  }
  
  .mission-secondary-text {
    font-size: 0.95rem;
    margin: 0;
  }
  
  /* Only hide the absolute connectors SVG, not the wrapper */
  .mission-svg {
    display: none !important;
  }
  
  /* Make the connector wrapper a standard flow element */
  .mission-connectors-wrap {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    padding: 0 40px; /* Indent the list nicely */
    width: 100%;
  }
  
  /* Convert absolute hotspots into standard list items */
  .hotspot-wrap {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Standardize dot on the left, text on the right */
  .hl-tl, .hl-bl {
    flex-direction: row-reverse; /* label is first in HTML */
    justify-content: flex-end !important; /* Push to physical left edge */
  }
  .hl-tr, .hl-br {
    flex-direction: row; /* dot is first in HTML */
    justify-content: flex-start !important; /* Push to physical left edge */
  }
  
  .hotspot-dot {
    width: 14px !important; 
    height: 14px !important;
    flex-shrink: 0;
  }
  
  .hotspot-label {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.95rem;
    color: var(--navy);
  }
  
  /* ----------------------------------------------------------
     SECTION 4 — SERVICES
  ---------------------------------------------------------- */
  /* Stack the services navigation above content */
  .section-services {
    height: auto !important;
    min-height: 100vh;
    padding: 100px 0;
  }
  .services-inner {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }
  .service-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .service-content-wrap {
    width: 100%;
  }
  .service-title {
    font-size: 2.6rem;
  }
  .service-desc {
    font-size: 0.95rem;
  }
  
  /* ----------------------------------------------------------
     SECTION 5 — PRODUCTS
  ---------------------------------------------------------- */
  .section-products {
    padding-top: calc(var(--nav-h) + 20px);
    height: auto;
    min-height: 100vh;
  }
  .product-body .row {
    flex-direction: column;
  }
  .product-body .row .col-lg-5 {
    order: 1; /* Description and CTA on top */
    margin-bottom: 24px;
  }
  .product-body .row .col-lg-7 {
    order: 2; /* Image below */
  }
  .products-footer-cta {
    text-align: right;
  }
  
  /* ----------------------------------------------------------
     SECTION 6 — FOOTER (Mobile)
  ---------------------------------------------------------- */
  .section-footer {
    min-height: auto;
    padding: 60px 0 30px;
  }
  
  
  /* Container image — positioned behind content as decorative background covering full footer height */
  .footer-container-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }
  .footer-container-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    content: url('../img/footer-containers-mob.png');
  }
  
  /* Giant background text — positioned above the footer content */
  .footer-bg-text {
    font-size: 18vw;
    top: 30px;
    opacity: 0.85;
    z-index: 6;
    left: -7px;
  }
  
  /* --- Make all footer content static (no GSAP hidden states) on mobile --- */
  #footer-bg-text,
  .footer-col-title,
  .social-link,
  .footer-address,
  .footer-links li,
  #footer-bottom {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
  }
  .footer-container-wrap {
    /* GSAP animates opacity on scroll — no fixed value needed */
  }
  .footer-bg-text {
    opacity: 0.85 !important;
  }
  
  /* Footer content — significantly reduced padding for mobile */
  .footer-content {
    position: relative;
    z-index: 5;
    padding: 60px 20px 30px;
  }

  ol, ul {
    padding-left: 0px;
  }
  
  /* Tighten column spacing — reduced from 40px to 24px */
  .footer-grid-row {
    flex-direction: column;
    gap: 24px;
  }
  .footer-col {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left;
    margin-bottom: 0;
  }
  
  /* Larger titles for readability */
  .footer-col-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  
  /* Social icons — single row, compact sizing */
  .footer-socials {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .social-link {
    width: 44px;
    height: 44px;
  }
  .social-link svg {
    width: 20px;
    height: 20px;
  }
  
  /* Address text — larger */
  .footer-address {
    font-size: 0.92rem;
  }
  .footer-address p {
    margin-bottom: 8px;
  }
  
  /* Link lists — larger text, tighter spacing */
  .footer-links {
    gap: 10px;
  }
  .footer-links a {
    font-size: 0.92rem;
  }
  
  /* Copyright bar */
  .footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 0.78rem;
  }
}

/* ============================================================
   SERVICE DETAIL PAGE — MOBILE RESPONSIVENESS
============================================================ */
@media (max-width: 991px) {
  #sd-navbar .nav-logo-dark {
    display: none !important;
  }
  #sd-navbar .nav-logo-light {
    display: block !important;
  }
  .sd-hero {
    height: 50vh;
    min-height: 320px;
  }
  .sd-hero-content h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .sd-body {
    padding: 50px 0;
  }
  .sd-body .row {
    flex-direction: column;
    gap: 40px;
  }
  .sd-body-right {
    padding-left: 26px !important;
  }
  .sd-body-right h3 {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .sd-process-item {
    gap: 12px;
    margin-bottom: 20px;
  }
  .sd-process-number {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .sd-process-text p {
    font-size: 0.85rem;
  }
  .sd-guide {
    padding: 50px 0;
  }
  .sd-guide h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }
  .sd-guide-wide {
    height: 240px;
  }
  .sd-guide-boxes {
    grid-template-columns: 1fr;
  }
  .sd-guide-box {
    height: 200px;
  }
  .sd-resources {
    padding: 50px 0;
  }
  .sd-resources-buttons .btn-cta {
    min-width: 160px;
    font-size: 0.85rem;
  }
  .sd-cta {
    padding: 80px 0;
  }
  .sd-cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  .sd-cta-content p {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }
  .sd-cta-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
  .sd-cta-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 767px) {
  .sd-hero {
    height: 40vh;
    min-height: 260px;
  }
  .sd-hero-content h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .sd-hero-content p {
    font-size: 0.95rem;
  }
  .sd-body {
    padding: 40px 0;
  }
  .sd-body-left h2 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }
  .sd-body-left p {
    font-size: 0.9rem;
  }
  .sd-process-item {
    gap: 10px;
    margin-bottom: 16px;
  }
  .sd-process-number {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
  .sd-process-text p {
    font-size: 0.82rem;
  }
  .sd-guide {
    padding: 40px 0;
  }
  .sd-guide h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
  .sd-guide-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }
  .sd-resources {
    padding: 40px 0;
  }
  .sd-resources h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
  .sd-resources-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }
  .sd-resources-buttons {
    flex-direction: column;
    align-items: center;
  }
  .sd-resources-buttons .btn-cta {
    min-width: 100%;
    max-width: 280px;
  }
  .sd-cta {
    padding: 60px 0;
  }
  .sd-cta-content h2 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-bottom: 12px;
  }
  .sd-cta-content p {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }
  .sd-cta-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    gap: 8px;
  }
  .sd-cta-btn svg {
    width: 18px;
    height: 18px;
  }
}
