/* ═══════════════════════════════════════════
   RESPONSIVE.CSS — JK Agro Industries
   Mobile-first breakpoints
═══════════════════════════════════════════ */

/* ── 4K / Ultra-wide ── */
@media (min-width: 1920px) {
  :root { --container: 1600px; }
  .hs-content { padding: 0 8vw; }
  .hs-content-inner { max-width: 800px; }
}

/* ── Large Desktop ── */
@media (max-width: 1400px) {
  :root { --container: 1200px; }
}

/* ── Desktop ── */
@media (max-width: 1200px) {
  :root {
    --container: 100%;
    --section-py: 80px;
  }

  .hero-content { gap: 40px; }
  .hero-card { max-width: 260px !important; }

  .about-grid { gap: 50px; }
  .about-img-main { height: 440px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }

  /* Testimonials: 3 cards on desktop-ish */
  .testi-card { flex: 0 0 calc(33.333% - 14px); }
}

/* ── Tablet Landscape ── */
@media (max-width: 1024px) {
  :root { --section-py: 70px; }

  .jk-navbar .container { padding: 0 24px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  
  /* Keep Get Quote button visible on tablet */
  .nav-quote-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
  }
  .nav-quote-btn span {
    display: inline;
  }

  /* Slider */
  .hs-content { padding: 0 5vw; }
  .hs-content-inner { max-width: 580px; }
  .hs-arrow { width: 44px; height: 44px; }
  .hs-prev { left: 16px; }
  .hs-next { right: 16px; }
  .hs-scroll-hint { display: none; }
  .hs-stats-card { max-width: 680px; }
  .hs-stats-card-item { padding: 18px 14px; gap: 10px; }
  .hs-stats-card-num { font-size: 1.35rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-main { height: 320px; }
  .about-img-badge { right: 12px; bottom: -14px; padding: 12px 16px; }
  .about-img-badge-num { font-size: 1.6rem; }
  .about-content { padding-right: 0; }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-visual { position: static; }
  .why-visual-inner { padding: 28px 24px; }
  .why-big-num { font-size: 3.5rem; }
  .why-gear-wrap { width: 90px; height: 90px; }

  /* Background image fix for tablet landscape */
  .jk-why::before {
    background-attachment: scroll;
    opacity: 0.15;
    background-image: url('images/bg.png');
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Testimonials: 2 cards on tablet */
  .testi-card { flex: 0 0 calc(50% - 10px); }
  .testi-arrow { width: 38px; height: 38px; }

  .testimonial-card { min-width: calc(50% - 12px); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── Tablet Portrait ── */
@media (max-width: 768px) {
  :root {
    --section-py: 60px;
    --heading-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .section-head { margin-bottom: 40px; }

  .jk-navbar .container { padding: 0 20px; height: 70px; }
  .jk-navbar.scrolled .container { height: 60px; }
  .nav-logo img { height: 44px; }
  
  /* Compact Get Quote button on tablet portrait */
  .nav-quote-btn {
    display: none;
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  .nav-quote-btn iconify-icon {
    font-size: 1rem;
  }

  /* Mobile Drawer Logo */
  .drawer-logo {
    margin-bottom: 24px;
    text-align: center;
    z-index: 10;
  }
  .drawer-logo img {
    height: 42px;
    width: auto;
    display: inline-block;
    object-fit: contain;
  }

  /* Slider */
  .jk-hero-slider { min-height: 100svh; }
  .hs-content { padding: 0 24px; }
  .hs-content-inner { max-width: 100%; }
  .hs-title { font-size: clamp(1.7rem, 6.5vw, 2.6rem); }
  .hs-dots { bottom: 28px; }
  .hs-arrow { display: none; }
  /* Bridge card — 2 columns on tablet */
  .hs-stats-bridge { margin-top: -44px; }
  .hs-stats-card { 
    max-width: 600px; 
    flex-wrap: wrap; 
    justify-content: space-between;
  }
  .hs-stats-card-item { 
    min-width: calc(50% - 1px); 
    flex: 0 0 calc(50% - 1px);
    padding: 16px 14px; 
  }
  .hs-stats-card-sep { display: none; }

  .about-features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-img-main { height: 260px; }
  .about-img-badge { padding: 10px 14px; bottom: -12px; right: 10px; }
  .about-img-badge-num { font-size: 1.4rem; }

  .why-layout { gap: 28px; }
  .why-visual-inner { padding: 24px 20px; }
  .why-big-num { font-size: 3rem; }
  .why-pills { gap: 8px; }
  .why-gear-wrap { width: 80px; height: 80px; }
  .why-row { padding: 16px 0; gap: 0 14px; background: #fff; border-radius: 14px; }
  .why-row:hover { background: #f8faf9; box-shadow: 0 4px 16px rgba(57,181,74,0.1); }
  .why-row-body { padding: 12px 16px 12px 0; background: #fff; border-radius: 14px; }
  .why-row-icon { width: 40px; height: 40px; }
  .why-row-line { left: 19px; }

  /* Background image fix for tablet portrait */
  .jk-why::before {
    display: none;
  }

  .products-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }

  /* Testimonials: 1 card on mobile */
  .testi-card { flex: 0 0 100%; }
  .testi-wrapper { gap: 10px; }
  .testi-arrow { width: 36px; height: 36px; flex-shrink: 0; }

  .why-tractor-sticker { display: none; }

  .why-image-sticker { display: none; }

  .testimonial-card { min-width: calc(100% - 0px); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .cta-card { flex-direction: column; text-align: center; padding: 36px 28px; gap: 24px; }
  .cta-text { max-width: 100%; }
  .cta-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .cta-call-btn { justify-content: center; }

  /* Global paragraph font size for tablet/mobile */
  p {
    font-size: 13px !important;
    line-height: 1.65;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  :root {
    --section-py: 50px;
    --radius: 14px;
    --heading-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .jk-navbar .container {
    padding: 0 16px;
    height: 68px;
  }
  .jk-navbar.scrolled .container { height: 60px; }
  .nav-logo img { height: 42px; }
  
  /* Icon only on mobile */
  .nav-quote-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 6px;
  }
  .nav-quote-btn span {
    display: none;
  }
  .nav-quote-btn iconify-icon {
    font-size: 1.1rem;
  }

  /* Mobile Drawer Logo */
  .drawer-logo {
    margin-bottom: 24px;
    text-align: center;
    z-index: 10;
  }
  .drawer-logo img {
    height: 40px;
    width: auto;
    display: inline-block;
    object-fit: contain;
  }

  /* Slider */
  .hs-content { padding: 0 16px; }
  .hs-title { font-size: clamp(1.5rem, 7.5vw, 2.2rem); }
  .hs-desc { font-size: 0.82rem; margin-bottom: 20px; }
  .hs-actions { gap: 10px; margin-bottom: 0; }
  .hs-btn { padding: 10px 20px; font-size: 0.78rem; }
  .hs-badge { font-size: 0.65rem; padding: 4px 11px; margin-bottom: 12px; }
  .hs-dots { bottom: 24px; }
  /* Bridge card — stack 2x2 */
  .hs-stats-bridge { margin-top: -36px; padding: 0 16px; }
  .hs-stats-card { 
    max-width: 100%; 
    border-radius: 12px; 
    flex-wrap: wrap;
    gap: 1px;
    background: var(--border);
  }
  .hs-stats-card-item { 
    min-width: calc(50% - 0.5px); 
    flex: 0 0 calc(50% - 0.5px);
    padding: 14px 10px; 
    gap: 8px;
    background: #fff;
  }
  .hs-stats-card-sep { display: none; }
  .hs-stats-card-icon { width: 34px; height: 34px; border-radius: 8px; }
  .hs-stats-card-icon svg { width: 16px; height: 16px; }
  .hs-stats-card-num { font-size: 1.15rem; }
  .hs-stats-card-lbl { font-size: 0.65rem; white-space: normal; line-height: 1.3; }

  .container { padding: 0 16px; }

  /* Global paragraph font size for mobile */
  p {
    font-size: 12px !important;
    line-height: 1.6;
  }

  .about-features { grid-template-columns: 1fr; gap: 8px; }
  .about-img-main { height: 220px; }
  .about-img-badge { padding: 8px 12px; }
  .about-img-badge-num { font-size: 1.2rem; }

  .counter-grid { grid-template-columns: 1fr 1fr; }

  .float-whatsapp { bottom: 24px; right: 16px; }
  .back-to-top { bottom: 88px; right: 16px; }

  .cursor-dot, .cursor-ring { display: none; }

  .footer-social-links { flex-wrap: wrap; }

  /* Background image fix for mobile */
  .jk-why::before {
    background-attachment: scroll;
    opacity: 0.15;
    background-image: url('images/bg.png');
  }
}

/* ── Small Mobile ── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.9rem; }
  .counter-grid { grid-template-columns: 1fr; }
  .counter-item { border-right: none !important; }
  
  .why-row { padding: 14px 0; gap: 0 12px; background: #fff; border-radius: 12px; }
  .why-row:hover { background: #f8faf9; box-shadow: 0 4px 16px rgba(57,181,74,0.1); }
  .why-row-body { padding: 10px 14px 10px 0; background: #fff; border-radius: 12px; }
  .why-row-icon { width: 36px; height: 36px; }
  .why-row-line { left: 17px; }

  /* Global paragraph font size for small mobile */
  p {
    font-size: 11px !important;
    line-height: 1.6;
  }
}
