/* ==========================================================================
   D M ALLU BHANDAR — RESPONSIVE STYLESHEET
   Media queries and mobile overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAPTOP & LARGE TABLET BREAKPOINT (Max-width: 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 3rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }

  .masonry-gallery {
    column-count: 2;
  }

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

/* --------------------------------------------------------------------------
   2. SMALL TABLET & MOBILE BREAKPOINT (Max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  section {
    padding: var(--space-xl) 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 60px;
  }

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

  .hero-content {
    text-align: center;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content p.lead {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-main-img img {
    height: 380px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-card {
    padding: 24px 15px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .cta-grid {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .cta-text p {
    font-size: 0.95rem;
  }

  .cta-actions {
    justify-content: center;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-card,
  .contact-card {
    padding: 30px 20px;
  }

  .policy-content {
    padding: 30px 20px;
  }

  /* Navigation overrides for Mobile Menu drawer */
  .nav-toggle-btn {
    display: flex;
  }

  /* Convert Navbar Link List into Slide-down Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-green);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1005;
  }

  .nav-menu.mobile-active {
    right: 0;
  }

  .nav-link {
    color: var(--bg-white);
    font-size: 1.15rem;
    width: 100%;
  }

  .nav-link::after {
    background-color: var(--accent-gold);
  }

  .header-actions {
    margin-right: 40px;
  }

  .call-cta {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Hamburger Menu Cross Toggle animation */
  .nav-toggle-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--bg-white);
  }

  .nav-toggle-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--bg-white);
  }

  /* Add dark backdrop when drawer open */
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE SCREEN BREAKPOINT (Max-width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .hero-content h1 {
    font-size: 1.95rem;
  }

  .hero-content p.lead {
    font-size: 0.9rem;
  }

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

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

  .commodity-card {
    grid-template-columns: 1fr;
  }

  .commodity-media {
    min-height: 200px;
    height: 200px;
  }

  .commodity-info {
    padding: 24px;
  }

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

  .masonry-gallery {
    column-count: 1;
  }

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

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

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

  .header-actions {
    display: none; /* Hide header call button on very small screens to fit logo and toggle */
  }
}
