/* ==========================================================================
   🔱 DOUBLE TRISHUL FOODS — MASTER RESPONSIVE & MOBILE DESIGN SYSTEM
   Bootstrap 5.3+ Grid Optimized for Phones, Tablets, and Desktops
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL BODY & OVERFLOW FIX (Zero Overlapping / Zero Side-Scroll)
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

main {
  overflow-x: hidden;
  width: 100%;
}

/* --------------------------------------------------------------------------
   2. FLOATING PILL NAVBAR SCROLL HIDE/SHOW TRANSITIONS
   -------------------------------------------------------------------------- */
.dt-navbar-wrapper {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0 1rem;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  will-change: transform, opacity;
}

.dt-navbar-wrapper.nav-hidden {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}

.dt-navbar {
  pointer-events: auto;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 155, 39, 0.25);
  box-shadow: 0 4px 20px rgba(44, 34, 26, 0.05);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.dt-navbar.scrolled {
  top: 8px;
  background: rgba(255, 255, 255, 0.99);
  border-color: rgba(184, 29, 36, 0.35);
  box-shadow: 0 8px 25px rgba(44, 34, 26, 0.08);
}

/* Hero Pillars Wrapper (Desktop vs Mobile Spacing) */
.dt-hero-pillars-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 20;
}

/* Slide Counter Crisp Horizontal Pill */
.hero-slide-counter {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-family: var(--font-stat) !important;
  letter-spacing: 0.08em !important;
}

/* Inner Page Hero Slide (Products, Recipes, Gallery — desktop defaults) */
.dt-page-hero-slide {
  position: relative;
  min-height: 720px;
  max-height: 820px;
  display: flex;
  align-items: center;
  padding: 130px 0 70px 0;
}

/* --------------------------------------------------------------------------
   3. DESKTOP & LARGE SCREEN REFINEMENTS (1200px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .dt-navbar {
    width: 90%;
  }
}

/* --------------------------------------------------------------------------
   4. MEDIUM SCREENS / TABLETS (992px to 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .dt-nav-menu {
    gap: 0.85rem;
  }
  
  .dt-nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   5. TABLETS & SMALL LAPTOPS (Below 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --section-py: 50px;
    --section-py-md: 40px;
    --section-py-sm: 30px;
  }

  .section-py {
    padding-top: var(--section-py) !important;
    padding-bottom: var(--section-py) !important;
  }

  .section-py-sm {
    padding-top: var(--section-py-sm) !important;
    padding-bottom: var(--section-py-sm) !important;
  }

  /* Navbar */
  .dt-nav-menu {
    display: none !important;
  }

  .dt-nav-badge {
    display: none !important;
  }

  .dt-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .dt-navbar {
    padding: 0.45rem 1rem;
    width: 94%;
  }

  /* Hero Section (Smooth Responsive Height & Vibrant Image Cover from top: 0) */
  .hero-section {
    min-height: 480px !important;
    height: auto !important;
    max-height: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
  }

  .hero-swiper {
    height: 100% !important;
    min-height: 480px !important;
    max-height: none !important;
    padding: 0 !important;
  }

  .hero-slide {
    height: 100% !important;
    min-height: 480px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 3.5rem !important;
  }

  /* Inner Page Hero Slides on Tablet */
  .dt-page-hero-slide {
    min-height: 480px !important;
    max-height: none !important;
    padding: 100px 0 50px 0 !important;
  }

  .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
  }

  .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
      180deg,
      rgba(16, 12, 8, 0.72) 0%,
      rgba(16, 12, 8, 0.65) 35%,
      rgba(16, 12, 8, 0.40) 70%,
      rgba(16, 12, 8, 0.15) 100%
    ) !important;
    z-index: 1 !important;
  }

  .hero-content {
    text-align: left !important;
    margin: 0 !important;
    padding: 5rem 0 1.5rem 0 !important;
    max-width: 650px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.18;
    color: #FFFFFF !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  }

  .hero-content p,
  .hero-content p.text-muted,
  .hero-content .text-muted,
  .hero-desc {
    color: rgba(255, 255, 255, 0.90) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }

  .hero-controls {
    position: absolute !important;
    bottom: 2.8rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.25rem !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  /* Pillars Float Elegantly Over Hero Bottom Edge */
  .dt-hero-pillars-wrap {
    margin-top: -46px !important;
    position: relative !important;
    z-index: 30 !important;
  }

  /* Inner Hero (Our Story etc.) Tablet */
  .dt-inner-hero {
    padding: 5.5rem 0 2.5rem 0 !important;
  }

  .dt-inner-hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  }

  /* Story Images */
  .dt-img-placeholder-box {
    min-height: 260px;
    margin-top: 1rem;
  }

  /* Product Detail Page Tablet */
  .dt-product-page-main {
    padding-top: 75px !important;
  }
}

/* --------------------------------------------------------------------------
   6. MOBILE SCREENS & PHONES (Below 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --section-py: 40px;
    --section-py-md: 32px;
    --section-py-sm: 25px;
  }

  .dt-section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  .dt-section-eyebrow {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.65rem !important;
  }

  .dt-hindi-tagline {
    font-size: 0.9rem !important;
  }

  /* Navbar */
  .dt-navbar-wrapper {
    top: 10px;
    padding: 0 0.65rem;
  }

  .dt-navbar {
    width: 100%;
    padding: 0.35rem 0.85rem;
  }

  .dt-nav-logo img {
    height: 38px !important;
  }

  .dt-nav-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }

  /* Container safety padding on mobile */
  .dt-container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    box-sizing: border-box !important;
  }

  /* Hero Section for Mobile (Full-Bleed Vibrant Image from top: 0) */
  .hero-section {
    min-height: 420px !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    position: relative !important;
  }

  .hero-swiper {
    min-height: 420px !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .hero-slide {
    min-height: 420px !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 3.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* Inner Page Hero Slides on Mobile */
  .dt-page-hero-slide {
    min-height: 380px !important;
    max-height: none !important;
    padding: 0 0 2rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
  }

  .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
      180deg,
      rgba(16, 12, 8, 0.74) 0%,
      rgba(16, 12, 8, 0.68) 40%,
      rgba(16, 12, 8, 0.42) 75%,
      rgba(16, 12, 8, 0.18) 100%
    ) !important;
    z-index: 1 !important;
  }

  .hero-content {
    padding: 4.6rem 0 1rem 0 !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: left !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    word-wrap: break-word !important;
  }

  .hero-content .dt-section-eyebrow {
    font-size: 0.65rem !important;
    padding: 0.22rem 0.55rem !important;
    letter-spacing: 0.04em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    border-radius: 999px !important;
    background: rgba(197, 155, 39, 0.22) !important;
    color: #F5C042 !important;
    border: 1px solid rgba(245, 192, 66, 0.45) !important;
    margin-bottom: 0.3rem !important;
  }

  .hero-content .dt-hindi-tagline {
    font-size: 0.82rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.35 !important;
    color: #E6B648 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  }

  .hero-content h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.55rem !important;
    letter-spacing: -0.01em !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-content h1 .text-red {
    color: #FF6B6B !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6) !important;
  }

  .hero-content p,
  .hero-content p.text-muted,
  .hero-content .text-muted,
  .hero-desc {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
    max-width: 100% !important;
    color: rgba(255, 255, 255, 0.90) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-content .dt-btn {
    width: auto !important;
    min-width: 165px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0.52rem 1.25rem !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  .hero-controls {
    position: absolute !important;
    bottom: 2.2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 90% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    pointer-events: auto !important;
    z-index: 10 !important;
  }

  .hero-slide-counter {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.6rem !important;
    min-width: 55px !important;
    background: rgba(16, 12, 8, 0.75) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  /* Inner Hero (Our Story etc.) Mobile */
  .dt-inner-hero {
    padding: 5rem 0 2.2rem 0 !important;
    text-align: left !important;
  }

  .dt-inner-hero-content {
    text-align: left !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .dt-inner-hero-content h1 {
    font-size: 1.45rem !important;
    line-height: 1.22 !important;
    color: #FFFFFF !important;
  }

  .dt-inner-hero-content .dt-hindi-tagline {
    font-size: 0.85rem !important;
    color: #E6B648 !important;
  }

  .dt-inner-hero-content p,
  .dt-inner-hero-content .dt-section-desc {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.90) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }

  .dt-inner-hero-content .dt-section-eyebrow {
    font-size: 0.65rem !important;
  }

  /* Quick Trust Bar / Heritage Pillars Floating Over Hero Bottom */
  .dt-hero-pillars-wrap {
    margin-top: -48px !important;
    position: relative !important;
    z-index: 30 !important;
  }

  .dt-pillar-card {
    padding: 0.85rem 0.7rem !important;
    gap: 0.6rem !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    border: 1.5px dashed var(--dt-gold-border) !important;
    box-shadow: 0 12px 30px rgba(44, 34, 26, 0.12) !important;
  }

  .dt-pillar-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
  }

  .dt-pillar-card .fw-bold {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
  }

  .dt-pillar-card .text-muted {
    font-size: 0.675rem !important;
    line-height: 1.2 !important;
  }

  /* Products Tab Filter Bar */
  .dt-home-tab-pill {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.85rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Product Showcase Card */
  .dt-showcase-card {
    border-radius: 18px !important;
  }

  .dt-showcase-thumb {
    height: 280px !important;
  }

  .dt-showcase-body {
    padding: 1.15rem !important;
  }

  .dt-showcase-title {
    font-size: 1.1rem !important;
  }

  /* Grain Integrity Strip */
  .dt-grain-integrity-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    border-radius: 16px !important;
  }

  /* 4-Step Process - Compact Square Tiles like Counter / Pillars */
  .dt-craft-step {
    padding: 0.85rem 0.7rem !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
  }

  .dt-craft-step .dt-step-num {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(184, 29, 36, 0.2) !important;
  }

  .dt-craft-step .dt-section-title {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
    font-weight: 700 !important;
  }

  .dt-craft-step .dt-hindi-tagline {
    font-size: 0.7rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
  }

  .dt-craft-step p {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    color: #73675C !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Stats Section */
  .dt-stat-card {
    padding: 1.15rem 0.65rem !important;
    border-radius: 14px !important;
  }

  .dt-stat-number {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  .dt-stat-label {
    font-size: 0.8rem !important;
  }

  .dt-stat-sub {
    font-size: 0.7rem !important;
  }

  /* Leadership / Owners */
  .dt-owner-photo-box {
    height: 200px !important;
  }

  /* Recipe & Review Cards */
  .dt-recipe-card {
    border-radius: 18px !important;
    padding: 1.25rem 1rem !important;
  }

  .dt-review-card {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  .dt-review-quote {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
  }

  /* FAQs */
  .dt-faq-header {
    padding: 0.85rem 1rem !important;
    font-size: 0.875rem !important;
  }

  .dt-faq-body {
    padding: 0.75rem 1rem 1rem !important;
    font-size: 0.825rem !important;
  }

  /* Universal Order CTA Banner */
  .dt-cta-banner-wrapper {
    padding: 1.75rem 1rem !important;
    border-radius: 18px !important;
  }

  .dt-cta-banner-wrapper .dt-btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  /* Footer */
  .dt-footer {
    padding: 2.5rem 0 1.5rem !important;
  }

  /* Product Detail Page Mobile (Clean, No Huge Void Gap) */
  .dt-product-page-main {
    padding-top: 65px !important;
  }

  #product-showcase {
    padding-top: 0.5rem !important;
    padding-bottom: 2rem !important;
  }

  .dt-product-hero-box {
    min-height: auto !important;
    padding: 1.25rem 0.85rem 0.85rem 0.85rem !important;
  }

  .dt-recipe-page-wrapper {
    padding-top: 75px !important;
  }
}

/* --------------------------------------------------------------------------
   7. EXTRA SMALL SCREENS & NARROW PHONES (Below 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  .dt-navbar-wrapper {
    padding: 0 0.5rem;
  }

  .dt-navbar {
    padding: 0.35rem 0.75rem;
  }

  .dt-nav-logo img {
    height: 36px !important;
  }

  .dt-container {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  .hero-content {
    padding-top: 4.4rem !important;
    padding-bottom: 0.85rem !important;
    transform: none !important;
  }

  .hero-content h1 {
    font-size: 1.28rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.45rem !important;
  }

  .hero-content .dt-hindi-tagline {
    font-size: 0.76rem !important;
  }

  .hero-content p,
  .hero-content p.text-muted,
  .hero-content .text-muted,
  .hero-desc {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.85rem !important;
    color: rgba(255, 255, 255, 0.90) !important;
  }

  .hero-content .dt-section-eyebrow {
    font-size: 0.6rem !important;
    padding: 0.18rem 0.5rem !important;
  }

  .hero-content .dt-btn {
    min-width: 150px !important;
    padding: 0.48rem 1.05rem !important;
    font-size: 0.78rem !important;
  }

  /* Inner Page Hero Slides on Extra Small */
  .dt-page-hero-slide {
    min-height: 350px !important;
    padding: 0 0 1.5rem 0 !important;
  }

  /* Inner Hero (Our Story etc.) Extra Small */
  .dt-inner-hero {
    padding: 4.5rem 0 1.5rem 0 !important;
  }

  .dt-inner-hero-content h1 {
    font-size: 1.28rem !important;
  }

  .dt-inner-hero-content p,
  .dt-inner-hero-content .dt-section-desc {
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.90) !important;
  }

  .dt-btn {
    padding: 0.65rem 1.15rem !important;
    font-size: 0.85rem !important;
  }

  /* Mobile Fullscreen Drawer */
  .dt-mobile-overlay {
    padding: 1.5rem 1.25rem !important;
  }

  .dt-mobile-menu a {
    font-size: 1.1rem !important;
    padding: 0.6rem 0 !important;
  }

  /* Product Detail Page Narrow Mobile */
  .dt-product-page-main {
    padding-top: 60px !important;
  }

  #product-showcase {
    padding-top: 0.25rem !important;
  }

  .dt-recipe-page-wrapper {
    padding-top: 68px !important;
  }
}
