/**
 * BHAASVIKA ORGANICS - Responsive Stylesheet
 * Breakpoints: 1440px, 1280px, 1024px, 768px, 480px, 390px, 360px
 * Ensures zero horizontal overflow and seamless touch experience.
 */

/* ==========================================================================
   1. LAPTOP & DESKTOP (<= 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  :root {
    --header-height: 80px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-py {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .brand-intro-grid {
    gap: 40px;
  }

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

/* ==========================================================================
   2. TABLET LANDSCAPE & SMALL LAPTOPS (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 74px;
  }

  .section-py {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  /* Header adjustments */
  .nav-links-list {
    gap: 20px;
  }

  /* Hero adjustments */
  .hero-carousel-container {
    min-height: 580px;
  }

  .hero-content {
    max-width: 500px;
    margin-left: 36px;
    padding: 38px 36px;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  /* Process steps: 2x2 grid */
  .process-flow-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  /* Comparison: Stack or 2-col */
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-column.refined {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  /* Contact layout & Banner spacing */
  .page-banner-strip {
    padding-top: calc(var(--header-height) + 22px);
    padding-bottom: 20px;
  }

  .section-compact-top {
    padding-top: 28px !important;
  }

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

  .contact-main-section {
    padding: 28px 0 52px 0;
  }

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

  /* Footer grid: 2x2 */
  .footer-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 36px;
    margin-bottom: 40px;
  }

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

  /* Modal Layout */
  .modal-dialog {
    max-width: 760px;
  }

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

  .modal-image-carousel {
    padding: 24px;
  }

  .modal-product-info {
    padding: 30px;
  }

  .modal-product-title {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   3. TABLET PORTRAIT & LARGE PHONES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-py {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* Mobile Navigation Drawer */
  .hamburger-btn {
    display: flex;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-white);
    padding: 96px 32px 40px 32px;
    box-shadow: -8px 0 28px rgba(22, 54, 37, 0.2);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-menu-wrapper.nav-open {
    right: 0;
  }

  .nav-links-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 32px;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .header-actions .btn-whatsapp {
    display: none; /* Accessible in mobile menu drawer */
  }

  .mobile-menu-cta {
    display: block;
    width: 100%;
    margin-top: auto;
  }

  .mobile-menu-cta .btn {
    width: 100%;
  }

  /* Hero Section */
  .hero-carousel-container {
    min-height: 520px;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.18) 100%
    ) !important;
  }

  .hero-content {
    max-width: 100%;
    margin-left: 0;
    padding: 28px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  }

  .hero-arrow {
    display: none !important; /* Rely on dots and touch swipe on tablet/mobile */
  }

  .hero-dots {
    bottom: 18px;
    padding: 6px 14px;
  }

  /* Brand Intro */
  .brand-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Product Modal: Stack to 1 Column */
  .modal-product-layout {
    grid-template-columns: 1fr;
  }

  .modal-image-carousel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
  }

  .modal-product-info {
    padding: 24px;
  }

  .modal-product-title {
    font-size: 1.5rem;
  }

  .modal-current-price {
    font-size: 1.5rem;
  }

  /* WhatsApp Banner */
  .wa-banner-section {
    padding: 40px 24px;
  }

  .wa-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .wa-banner-text p {
    max-width: 100%;
  }

  /* Floating WhatsApp on Mobile */
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    border-radius: 50%;
  }

  .floating-whatsapp-text {
    display: none;
  }

  /* Testimonial Slide */
  .testimonial-slide {
    padding: 32px 24px;
  }

  .testimonial-quote {
    font-size: 1.2rem;
  }

  /* Form Grid */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  /* Contact Page Tablet Stacking & Spacing */
  .page-banner-strip {
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 18px;
  }

  .section-compact-top {
    padding-top: 24px !important;
  }

  .contact-hero {
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 18px;
  }

  .contact-hero-subtitle {
    margin-bottom: 16px;
  }

  .contact-main-section {
    padding: 24px 0 44px 0;
  }

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

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

  .contact-perks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Full-width Map Tablet Stacking */
  .contact-map-full-wrapper {
    margin-top: 28px;
  }

  .map-full-top-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .map-header-right {
    width: 100%;
  }

  .map-directions-btn {
    width: 100%;
    justify-content: center;
  }

  .map-full-embed-frame {
    height: 340px;
  }

  .map-full-bottom-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page-banner-strip {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 16px;
  }

  .section-compact-top {
    padding-top: 22px !important;
  }

  .contact-hero {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 16px;
  }

  .contact-breadcrumbs {
    margin-bottom: 10px;
    font-size: 0.84rem;
  }

  .hero-brand-tag {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .contact-hero-title {
    font-size: 1.95rem;
    margin-bottom: 8px;
  }

  .contact-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .contact-trust-badges {
    gap: 8px;
  }

  .trust-badge-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .contact-main-section {
    padding: 20px 0 36px 0;
  }

  .contact-layout-grid {
    gap: 18px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .contact-hub-card {
    padding: 22px 16px;
  }

  .contact-channel-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .channel-action-btn {
    width: 100%;
  }

  .channel-action-btn .btn {
    width: 100%;
  }

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

/* ==========================================================================
   4. MOBILE PHONES (<= 480px, 390px, 360px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --header-height: 66px;
  }

  .section-py {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  /* Hero */
  .hero-carousel-container {
    min-height: 500px;
  }

  .hero-content {
    padding: 24px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
  }

  .hero-brand-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Section Header */
  .section-header {
    margin-bottom: 36px;
  }

  .section-tagline {
    font-size: 0.76rem;
  }

  /* Product Cards */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card-content {
    padding: 20px;
  }

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

  .product-card-actions.single-action {
    grid-template-columns: 1fr;
  }

  /* Process Cards */
  .process-flow-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Modals */
  .modal {
    padding: 20px 10px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-dialog {
    max-height: none;
    margin: auto;
    overflow: visible;
  }

  .modal-product-layout {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .modal-image-carousel {
    padding: 20px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .modal-thumb-item {
    width: 52px;
    height: 52px;
  }

  .modal-product-info {
    padding: 24px 18px;
    max-height: none;
    overflow: visible;
  }

  .order-modal-box {
    padding: 24px 18px;
  }

  .contact-form-box {
    padding: 24px 18px;
  }

  /* Contact Page & Banner Mobile Spacing (<= 480px) */
  .page-banner-strip {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 14px;
  }

  .section-compact-top {
    padding-top: 16px !important;
  }

  .contact-hero {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 14px;
  }

  .contact-breadcrumbs {
    margin-bottom: 6px;
    font-size: 0.78rem;
  }

  .hero-brand-tag {
    margin-bottom: 6px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .contact-hero-title {
    font-size: 1.65rem;
    margin-bottom: 6px;
  }

  .contact-hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .contact-trust-badges {
    gap: 6px;
  }

  .trust-badge-pill {
    padding: 5px 12px;
    font-size: 0.74rem;
    gap: 6px;
  }

  .contact-main-section {
    padding: 16px 0 32px 0;
  }

  .contact-layout-grid {
    gap: 16px;
  }

  .contact-hub-card {
    padding: 18px 14px;
  }

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

  .contact-map-full-wrapper {
    margin-top: 18px;
  }

  .map-full-top-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .map-full-embed-frame {
    height: 340px;
  }

  .contact-perks-section {
    padding-top: 20px;
  }

  /* Footer */
  .footer-trust-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 28px;
    margin-bottom: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 16px;
    padding-bottom: 48px;
  }

  .footer-bottom-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-dot-sep {
    display: none;
  }

  .footer-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .footer-secure-badges {
    justify-content: center;
  }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.65rem !important;
  }

  .btn {
    padding: 11px 20px;
    font-size: 0.88rem;
  }

  .modal-product-title {
    font-size: 1.35rem;
  }

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