/* ==========================================================================
   VPAAS HERBAL & NUTRACEUTICALS — RESPONSIVE & MOBILE STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Medium Laptops & Desktops (1024px to 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  
  .brand-logo-img {
    height: 46px;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.775rem;
  }
}

/* --------------------------------------------------------------------------
   Tablet Viewports (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

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

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

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

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

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

  .form-group.col-span-3 {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   Mobile & Small Tablet (<= 860px) -> Switch to Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .brand-logo-img {
    height: 44px;
  }

  .top-bar {
    display: none; /* Cleaner mobile viewport */
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Mobile Navigation Drawer */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .header-actions .btn {
    display: none;
  }

  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }

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

  .doc-matrix-grid {
    grid-template-columns: 1fr;
  }

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

  .form-group.col-span-2,
  .form-group.col-span-3 {
    grid-column: span 1;
  }

  .rfq-submit-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .rfq-submit-wrap .btn {
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .mfg-workflow-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .mfg-arrow {
    transform: rotate(90deg);
    margin: 2px auto;
  }

  .floating-whatsapp {
    bottom: 18px;
    left: 18px;
    right: auto;
    width: 48px;
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Viewports (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

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

  .product-card-actions {
    flex-direction: column;
  }

  .brand-logo-img {
    height: 38px;
  }

  .modal-container {
    padding: 0;
  }

  .modal-header, .modal-body {
    padding: 16px;
  }
}


@media (max-width: 1024px) {
  .category-visual-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .category-visual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-visual-card {
    height: 150px;
  }
}


@media (max-width: 1024px) {
  .workflow-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .workflow-sla-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .workflow-sla-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
}


@media (max-width: 991px) {
  .hero-video {
    max-width: 50%;
    opacity: 0.85;
  }
  .cert-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .cert-hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 16px 0 28px 0;
    min-height: auto;
    max-height: none;
    background: #f7faf7;
  }
  .hero-video-wrap {
    display: none;
  }
  .hero-mobile-visual {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(8, 51, 30, 0.1);
    border: 1px solid rgba(15, 123, 58, 0.15);
    background: #ffffff;
  }
  .hero-mobile-video,
  .hero-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
  }
  .hero-content {
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-headline {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .hero-supporting-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero-cta-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
  }
  .hero-cta-group .btn-lg {
    padding: 9px 18px;
    font-size: 0.82rem;
  }
  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .page-hero {
    background-position: center right;
    padding: 28px 0;
  }
  .page-hero p.hero-desc {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-top: 10px;
  }
  .industry-hero h1 {
    font-size: 1.35rem;
    line-height: 1.25;
    word-break: normal;
  }
  .industry-hero p.hero-desc {
    background: transparent;
    padding: 0;
    font-size: 0.86rem;
  }
}

/* Mobile Floating "Get Quote" Single Small Button Activation */
@media (max-width: 768px) {
  .mobile-quote-dock {
    display: block !important;
    position: fixed;
    bottom: 20px;
    right: 18px;
    z-index: 9990;
  }
  
  .mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #0c4a2b 0%, #08331e 100%);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(8, 51, 30, 0.38), 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-quote-btn:active {
    transform: scale(0.96);
  }

  .mobile-quote-btn svg {
    stroke: #ffffff;
    stroke-width: 2.2;
  }

  body {
    padding-bottom: 50px; /* Slight bottom clearance */
  }

  .product-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .product-search-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .major-products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .spec-modal-dialog {
    max-height: 85vh;
  }

  .spec-data-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-data-label {
    width: 100%;
  }

  .brand-logo-img {
    height: 40px !important;
  }
}
