/* ==========================================================================
   NK DAIRY EQUIPMENTS LLP — RESPONSIVE ADAPTATIONS
   Seamless Multi-Device Experience (Large Desktop to Mobile Portrait)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. SMALL DESKTOP & LAPTOPS (<= 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --container-padding: 2.5rem;
  }

  .hero-grid {
    gap: 3rem;
  }

  .intro-split-grid {
    gap: 3.5rem;
  }

  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   02. TABLET LANDSCAPE & PORTRAIT (<= 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --container-padding: 2rem;
  }

  /* Header & Navigation Drawer */
  .site-header {
    height: 76px;
  }

  .nav-container {
    height: 76px;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 3rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    z-index: 99;
    border-bottom: 1px solid var(--fine-border);
    overflow-y: auto;
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.4rem 0;
  }

  .menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }

  /* Section 01: Hero */
  .hero-section {
    margin-top: 76px;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual-area {
    height: 440px;
    order: 2;
  }

  .hero-content-area {
    order: 1;
  }

  /* Section 02: Intro */
  .intro-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  /* Section 03: Expertise */
  .expertise-row-item {
    grid-template-columns: 60px 1fr;
    row-gap: 0.75rem;
  }

  .expertise-desc {
    grid-column: 2 / -1;
  }

  /* Section 04: Plant Solutions */
  .solutions-header-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .solution-editorial-row,
  .solution-editorial-row.reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
  }

  .solution-editorial-row.reversed .solution-image-block {
    order: 2;
  }

  .solution-editorial-row.reversed .solution-text-block {
    order: 1;
  }

  /* Section 06: Machinery */
  .machinery-display-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Section 07: Facility */
  .facility-stats-row {
    gap: 2.5rem;
  }

  /* Section 09: Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   03. MOBILE PORTRAIT (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .site-header {
    height: 70px;
  }

  .nav-container {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

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

  /* Hero */
  .hero-section {
    margin-top: 70px;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-visual-area {
    height: 340px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .meta-strip-divider {
    display: none;
  }

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

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

  /* Section 03: Expertise */
  .expertise-row-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .expertise-desc {
    grid-column: 1 / -1;
  }

  /* Section 05: 3D Journey Switch to Mobile View */
  .process-journey-section .process-sticky-viewport {
    display: none;
  }

  .process-journey-section {
    height: auto;
    background-color: var(--soft-white);
    color: var(--graphite);
  }

  .process-mobile-view {
    display: block;
    padding: 3rem 0;
  }

  /* Section 07: Facility */
  .facility-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .facility-stat strong {
    font-size: 2rem;
  }

  /* Section 08: Quality */
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Section 09: Contact Form */
  .contact-demo-form {
    padding: 1.75rem 1.25rem;
  }

  .contact-demo-form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   04. ULTRA-SMALL DEVICES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .intro-metrics-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .machinery-specs-table {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .facility-stats-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
