/* ==========================================================================
   Alfa Agro Industries - Responsive Breakpoints & Mobile Drawer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile Drawer & Backdrop
   -------------------------------------------------------------------------- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 2500;
  box-shadow: -8px 0 35px rgba(11, 61, 92, 0.16);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 30, 46, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2400;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo-img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 45, 89, 0.15);
  flex-shrink: 0;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
}

.drawer-brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-navy);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.drawer-brand-sub {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--color-teal);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
}

.drawer-close-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: #E2E8F0;
  color: #DC2626;
  transform: rotate(90deg);
}

.drawer-plant-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.chip-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  flex-shrink: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--color-navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent;
  transition: all 0.18s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item:active {
  background: #F8FAFC;
  color: var(--color-teal-dark);
  transform: translateX(3px);
}

.drawer-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--color-teal);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.drawer-nav-item:hover .drawer-item-icon {
  background: var(--color-teal);
  color: #FFFFFF;
}

.drawer-item-label {
  flex: 1;
}

.drawer-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #DCFCE7;
  color: #15803D;
  margin-right: 4px;
}

.drawer-pill-badge.badge-accent {
  background: #E0F2FE;
  color: #0284C7;
}

.drawer-item-arrow {
  color: #94A3B8;
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-nav-item:hover .drawer-item-arrow {
  transform: translateX(3px);
  color: var(--color-teal);
}

.drawer-footer-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-footer-actions .btn {
  justify-content: center;
  font-size: 0.88rem;
}

.drawer-call-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  color: var(--color-navy);
}

.drawer-call-btn:hover {
  background: #E0F2FE;
  color: var(--color-teal-dark);
  border-color: rgba(2, 132, 199, 0.3);
}

.drawer-erp-btn {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--color-navy);
}

.drawer-erp-btn:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}

.drawer-quote-btn {
  background: linear-gradient(135deg, #0284C7 0%, #0F3B66 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Laptops & Tablets (< 1120px): Switch to mobile navigation gracefully */
@media (max-width: 1120px) {
  .nav-menu,
  .nav-phone-link,
  .btn-erp-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }
}

/* Large Tablets & Small Desktops (<= 1100px) */
@media (max-width: 1100px) {
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

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

/* Tablets (<= 900px) */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual-pair {
    max-width: 540px;
    margin: 0 auto;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .contact-main-grid {
    grid-template-columns: 1fr;
  }

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

  .modal-media-col {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .navbar {
    height: 64px;
    padding: 0 16px;
  }

  .navbar.scrolled {
    height: 60px;
  }

  .brand-link svg,
  .brand-link img {
    height: 40px;
  }

  .nav-cta-quote {
    display: none;
  }

  .mobile-quick-cta {
    display: inline-flex;
  }

  .nav-actions {
    gap: 8px;
  }

  .mobile-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 2.7rem);
  }

  .hero-tagline {
    font-size: 1.02rem;
  }

  .hero-interactive-bar {
    padding: 14px 16px;
  }

  .hero-chips-wrap {
    gap: 6px;
  }

  .hero-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .hero-chip-spec-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .preview-action-btn {
    align-self: flex-start;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-hero-calc {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-ribbon {
    grid-template-columns: 1fr 1fr;
    padding: 14px 12px;
    gap: 8px;
  }

  .hero-stat-num {
    font-size: 1.35rem;
  }

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

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

  .about-visual-pair {
    grid-template-columns: 1fr;
  }

  .about-photo-card.card-offset {
    margin-top: 0;
  }

  .about-metrics-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-specs-pills {
    grid-template-columns: 1fr;
  }

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

  .calculator-card,
  .contact-form-card,
  .modal-info-col {
    padding: 24px 18px;
  }

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

  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .alfa-toast {
    min-width: 100%;
    max-width: 100%;
  }

  .back-to-top-btn {
    bottom: 18px;
    left: 18px;
  }

  .floating-wa-btn {
    bottom: 18px;
    right: 18px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .floating-wa-btn span {
    display: none;
  }

  .product-filter-nav {
    width: 100%;
    justify-content: center;
  }

  .filter-tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

