/* ============================================================
   DMK AGRO EXPORT — RESPONSIVE STYLESHEET
   Breakpoints: Desktop (default) / Laptop (1200px) /
   Tablet (991px) / Mobile (768px, 576px) / Small Mobile (480px)
   ============================================================ */

@media(max-width:1200px){.container-xl-custom{padding:0 24px;}}

@media(max-width:576px){.container-xl-custom{padding:0 18px;}}

@media(max-width:991px){.section-pad{padding:70px 0;}}

@media(max-width:576px){.section-pad{padding:56px 0;}}

@media(max-width:991px){.gap-100{--bs-gutter-x:2rem;}}

@media(max-width:576px){.market-card-grid{grid-template-columns:repeat(2,1fr);}}

@media(max-width:480px){
  .quote-panel{right:14px;left:14px;width:auto;bottom:92px;}
  .wa-popup{right:14px;left:14px;width:auto;bottom:92px;}
  .quote-float{right:18px;bottom:18px;}
  .back-to-top{right:18px;bottom:90px;}
}

@media(max-width:991px){
  .cta-section .content{padding:50px 30px;}
  .hero-banner{height:82vh;min-height:520px;}
  .stats-strip .stat:not(:last-child)::after{display:none;}
  .stats-strip .stat{margin-bottom:14px;}
  .site-header{margin-bottom:-70px;}
  #offcanvasNav.offcanvas-end{width:80%!important;max-width:80%!important;}
}

@media(max-width:576px){
  .hero-banner{height:auto;min-height:0;padding:110px 0 60px;}
  .hero-banner .slide-inner{padding:28px 26px;}
  .site-header{margin-bottom:-64px;}
  .process-track::before{display:none;}
  .process-step{flex:1 1 45%;margin-bottom:24px;}
}

@media(max-width:576px){.page-hero{padding-top:100px;min-height:60vh;}}

@media(max-width:576px){.intro-features{grid-template-columns:1fr;}}

@media(max-width:576px){
  .comparison-row{grid-template-columns:1.3fr 1fr 1fr;}
  .comparison-row > div{padding:12px 10px;font-size:.78rem;}
}

@media(max-width:576px){.page-hero{padding-top:100px;min-height:56vh;}}

@media(max-width:768px){.sticky-pd-cta{display:flex;}body{padding-bottom:0;}}

@media(max-width:576px){
  .spec-row{grid-template-columns:1fr;}
  .spec-row .spec-label{padding-bottom:4px;}
  .spec-row .spec-value{padding-top:0;}
}

@media(max-width:1200px){.masonry-grid{column-count:3;}}

@media(max-width:768px){.masonry-grid{column-count:2;}}

@media(max-width:480px){.masonry-grid{column-count:1;}}

@media(max-width:768px){.featured-article .img-wrap{min-height:240px;} .featured-article .content-wrap{padding:28px;}}

@media(max-width:576px){.author-card-full{flex-direction:column;text-align:center;}.author-card-full .leader-social{justify-content:center;}}

@media(max-width:576px){.office-img-stack img.secondary{position:static;width:100%;margin-top:16px;}}
/* Products page: market-card-grid override for the Global Export Markets band */
@media(max-width:768px){.market-card-grid{grid-template-columns:repeat(3,1fr)!important;}}
@media(max-width:480px){.market-card-grid{grid-template-columns:repeat(2,1fr)!important;}}

/* ============================================================
   MOBILE IMAGES MAX-HEIGHT: 250px (EXCEPT BANNER IMAGES)
   ============================================================ */
@media(max-width:768px){
  /* General rule for all content images on mobile capped to max-height 250px */
  img:not(.banner-img img):not(.hero-banner img):not(.page-hero img):not(.cta-section .bg-img img):not([class*="banner"] img):not(.logo-img):not(.brand-logo):not(.footer-logo-img):not(.cert-logo-wrap img):not(.author-inline img):not(.testi-person img):not(.wa-avatar-img):not(.pd-thumb img) {
    max-height: 250px !important;
    object-fit: cover;
  }

  /* Specific containers and image classes to prevent parent heights from exceeding 250px */
  .cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px !important;
    max-height: 250px !important;
    box-shadow: var(--shadow-card);
  }
  .cat-card img {
    height: 100% !important;
    max-height: 250px !important;
    object-fit: cover !important;
  }

  .about-img-wrap img,
  .timeline-img-wrap,
  .timeline-img-wrap img {
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .quality-img,
  .infra-img {
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .pd-gallery-main {
    height: 250px !important;
    max-height: 250px !important;
  }
  .pd-gallery-main img {
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .blog-featured-img {
    min-height: 0 !important;
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .contact-side-img {
    min-height: 0 !important;
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .office-img-stack img.primary {
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .gallery-item img,
  .masonry-item img {
    max-height: 250px !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .featured-article .img-wrap {
    min-height: 0 !important;
    height: 250px !important;
    max-height: 250px !important;
  }
  .featured-article .img-wrap img {
    max-height: 250px !important;
    object-fit: cover !important;
  }

  .team-card .team-photo {
    max-height: 250px !important;
    object-fit: cover !important;
  }

  /* Banner images are explicitly preserved (not capped) */
  .hero-banner img,
  .page-hero img,
  .banner-img img,
  .hero-banner .banner-img img,
  .page-hero .banner-img img {
    max-height: none !important;
  }

  /* Brand logo size on mobile */
  .brand-logo .logo-img {
    max-height: 40px;
    width: auto;
    display: block;
    transition: opacity .25s ease;
  }
  .brand-logo .logo-color {
    display: none;
  }
  .site-header.scrolled .brand-logo .logo-color,
  .site-header.menu-open .brand-logo .logo-color {
    display: block !important;
  }
}

/* Disable scroll animations on mobile view */
@media(max-width:768px){
  [data-aos],
  [data-aos][data-aos],
  [data-aos].aos-animate,
  body[data-aos-easing] [data-aos],
  body[data-aos-duration] [data-aos],
  body[data-aos-delay] [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   MOBILE STICKY FOOTER NAVIGATION & HIDE FLOATING ENQUIRY
   ============================================================ */
.mobile-sticky-nav {
  display: none;
}

@media(max-width:768px){
  /* Hide the enquiry floating button on mobile */
  .quote-float {
    display: none !important;
  }

  /* Hide the WhatsApp floating button on mobile */
  .wa-float {
    display: none !important;
  }

  /* Hide redundant product-detail sticky bar on mobile */
  .sticky-pd-cta {
    display: none !important;
  }

  /* Show mobile sticky footer navigation */
  .mobile-sticky-nav {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.07);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
  }

  .sticky-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 48px;
    padding: 4px 2px;
    color: #5b6b5c;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .sticky-nav-link i {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 3px;
  }

  .sticky-nav-link span {
    font-size: 0.72rem;
    font-weight: 500;
    color: inherit;
  }

  .sticky-nav-link:hover,
  .sticky-nav-link:focus,
  .sticky-nav-link.active {
    color: var(--dmk-primary, #1B5E20);
    text-decoration: none;
  }

  .sticky-nav-link.active i {
    color: var(--dmk-primary, #1B5E20);
  }

  .sticky-nav-link i.bi-whatsapp {
    color: #25D366;
  }

  /* Spacing at bottom of footer so content is fully scrollable above sticky nav */
  .footer-bottom {
    padding-bottom: 75px !important;
  }

  .back-to-top {
    bottom: 74px !important;
  }

  /* Popups open cleanly above sticky footer nav */
  .quote-panel,
  .wa-popup {
    bottom: 72px !important;
  }
}


