/* ==========================================================================
   FOOD HACKERS LAB - RESPONSIVE LAYOUT OVERRIDES (HERO, SECTION 2, 3 & GLOBAL)
   ========================================================================== */

/* --------------------------------------------------------------------------
   EXTRA SMALL & MOBILE DEVICES ONLY (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {

    /* Strictly eliminate horizontal scrollbar on mobile devices (e.g. OnePlus Nord CE4) */
    html,
    body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-x: clip !important;
        position: relative;
    }

    #main-content,
    section,
    .hero-visual-wrapper,
    .fhl-section-two,
    .fhl-section-three,
    .fhl-section-four,
    .fhl-section-five,
    .fhl-section-six {
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    /* Reduce body top padding to match mobile header */
    body {
        padding-top: 102px !important;
    }

    .site-header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* Hamburger button z-index fix to prevent navbar overlap */
    .btn-hamburger {
        position: relative;
        z-index: 10001;
    }

    .logo-img {
        max-width: 190px;
        max-height: 80px;
    }

    /* Hero Section Mobile - Comfortable top space from header */
    .hero-section {
        padding-top: 1.25rem;
    }

    .hero-title {
        font-family: var(--font-primary);
        font-weight: 600;
        font-size: clamp(1.22rem, 3.2vw, 0.55rem);
        line-height: 1.35;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 1.5rem;
        text-wrap: balance;
    }

    .hero-subheadline {
        max-width: 96%;
        font-size: 0.88rem;
        line-height: 1.45;
        padding-left: 8px;
        padding-right: 8px;
        text-wrap: pretty;
    }

    .hero-title-line {
        display: inline;
    }

    .hero-cta-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    .hero-cta {
        width: min(280px, calc(100vw - 40px));
        min-height: 50px;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: var(--fw-semibold);
        white-space: nowrap;
        box-shadow: 0 8px 24px rgba(249, 180, 50, 0.20);
    }

    .hero-visual-wrapper {
        margin-top: 0.25rem;
    }

    .hero-scroll-indicator {
        bottom: 20%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin: 0 auto;
    }

    /* Section 2 Mobile Refinements */
    .fhl-section-two {
        padding-top: 2.25rem;
        padding-bottom: 3.5rem;
    }

    .fhl-section-two .client-trust-heading {
        font-size: clamp(1.75rem, 6.5vw, 2.15rem);
        line-height: 1.15;
        text-align: center;
    }

    .fhl-section-two .client-eyebrow {
        justify-content: center;
    }

    .fhl-section-two .client-logos-swiper .swiper-slide {
        height: 68px !important;
        padding: 0 6px !important;
    }

    .fhl-section-two .client-logo-img {
        height: 54px !important;
        max-height: 54px !important;
        max-width: 150px !important;
    }

    .fhl-section-two .who-we-are-area {
        margin-top: 3.5rem !important;
        padding-top: 2rem !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .fhl-section-two .who-we-are-bg-marquee {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .fhl-section-two .who-we-are-bg-marquee span {
        font-size: clamp(3.8rem, 18vw, 6.8rem);
    }

    .fhl-section-two .who-we-are-content {
        padding-top: 3.5rem;
    }

    .fhl-section-two .who-we-are-title {
        font-size: clamp(1.55rem, 5.5vw, 2.0rem);
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .fhl-section-two .who-we-are-description {
        font-size: clamp(0.95rem, 3.8vw, 1.1rem);
        line-height: 1.5;
        max-width: 350px;
        padding: 0 16px;
    }

    /* Section 3 Categories Explorer Responsive */
    .fhl-section-three {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .fhl-section-three .expertise-title {
        font-size: clamp(1.75rem, 6.5vw, 2.2rem);
        line-height: 1.15;
    }

    .categories-nav-wrapper {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .categories-nav-list {
        max-height: 280px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 8px;
    }

    .category-nav-btn {
        flex: 0 0 auto;
        min-width: 200px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .category-display-panel {
        padding: 1.25rem;
        border-radius: 18px;
        min-height: auto;
    }

    .active-category-header {
        padding: 1rem !important;
    }

    .active-category-emoji {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card-item {
        padding: 1rem;
    }

    .products-grid-title {
        font-size: 0.95rem !important;
    }

    .products-count-badge {
        font-size: 0.74rem !important;
        padding: 3px 9px !important;
    }

    .product-detail-modal {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .product-detail-modal .modal-dialog {
        margin: 1rem 0.75rem !important;
        max-width: calc(100% - 1.5rem) !important;
    }

    .product-detail-modal .modal-content {
        border-radius: 20px !important;
        max-height: 88vh;
        overflow-y: auto;
    }

    .product-detail-modal .modal-header {
        padding: 1.1rem 1.1rem 0.25rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
    }

    .modal-header-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        max-width: calc(100% - 32px) !important;
    }

    .modal-cat-badge {
        font-size: 0.74rem !important;
        padding: 3px 10px !important;
    }

    .modal-sub-badge {
        font-size: 0.72rem !important;
        padding: 3px 8px !important;
    }

    .product-detail-modal .btn-close {
        padding: 4px !important;
        margin-top: 1px !important;
    }

    .product-detail-modal .modal-body {
        padding: 0.85rem 1.1rem 1.35rem !important;
    }

    .modal-product-title {
        font-size: 1.45rem !important;
        margin-bottom: 0.5rem !important;
    }

    .modal-product-overview {
        font-size: 0.94rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .modal-specs-box {
        padding: 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 1.25rem !important;
    }

    .modal-spec-item {
        font-size: 0.86rem !important;
    }

    /* Footer Mobile Rules */
    .site-footer {
        padding-top: 2.5rem;
        padding-bottom: 4.5rem;
    }

    .footer-brand-title {
        font-size: clamp(1.3rem, 6.8vw, 2.4rem);
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .footer-heading {
        margin-bottom: 0.875rem;
        font-size: 1.05rem;
    }

    .btn-sm-mobile {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
}

/* --------------------------------------------------------------------------
   TABLET & IPAD DEVICES (768px to 991px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991.98px) {

    body {
        padding-top: 108px !important;
    }

    .site-header {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    /* Hamburger button z-index fix */
    .btn-hamburger {
        position: relative;
        z-index: 10001;
    }

    .logo-img {
        max-width: 220px;
        max-height: 92px;
    }

    .hero-section {
        padding-top: 0.5rem;
    }

    .btn-sm-mobile {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .fhl-section-two {
        padding-top: 2.75rem;
        padding-bottom: 4rem;
    }

    .fhl-section-two .client-trust-heading {
        font-size: 2.3rem;
    }

    .fhl-section-two .client-logos-swiper .swiper-slide {
        height: 76px !important;
    }

    .fhl-section-two .client-logo-img {
        height: 60px !important;
        max-height: 60px !important;
        max-width: 165px !important;
    }

    .fhl-section-two .who-we-are-bg-marquee span {
        font-size: clamp(6.5rem, 15vw, 10.5rem);
    }

    .fhl-section-two .who-we-are-content {
        padding-top: 5rem;
    }

    .vault-container {
        width: 100%;
        max-width: 380px;
        height: 380px;
    }

    .expertise-banner-card {
        min-height: auto;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP DEVICES (>= 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .site-header {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .desktop-nav .site-nav-list,
    .desktop-nav .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.75rem;
    }

    .hero-section {
        padding-top: 0;
    }

    .hero-visual-wrapper {
        margin-top: 0;
        z-index: 1;
    }

    .footer-brand-title-wrapper {
        margin-bottom: 3.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .desktop-nav .site-nav-list,
    .desktop-nav .navbar-nav {
        gap: 1.25rem;
    }

    .btn-brand-primary {
        padding: 0.75rem 2rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .hero-visual-wrapper {
        margin-top: 0;
        z-index: 1;
    }

    /* Slightly reduce content column start for smaller desktop */
    .choose-us-content-col {
        left: 430px;
        right: 20px;
        width: auto;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   LARGE DESKTOP & ULTRA WIDE SCREENS (>= 1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {

    .desktop-nav .site-nav-list,
    .desktop-nav .navbar-nav {
        gap: 2rem;
    }

    .hero-visual-wrapper {
        margin-top: 0;
        z-index: 1;
    }

    .fhl-section-two .who-we-are-bg-marquee span {
        font-size: 207px;
    }

    .fhl-section-two .who-we-are-content {
        padding-top: 4.5rem;
    }
}

/* ==========================================================================
   SECTION 04: WHY BRANDS CHOOSE US RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---- Mobile & Tablet (≤ 991px) ---- */
@media (max-width: 991.98px) {

    .choose-us-top-header {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .choose-us-title {
        font-size: clamp(1.75rem, 6vw, 2.4rem);
        line-height: 1.25;
        margin-bottom: 0.5rem;
        white-space: normal !important;
    }

    .choose-us-subtitle {
        font-size: clamp(0.95rem, 3.8vw, 1.12rem);
        line-height: 1.5;
        max-width: 480px;
    }

    .choose-us-card {
        padding: 1.75rem 1.4rem !important;
        border-radius: 18px !important;
    }

    .choose-us-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
        border-radius: 12px !important;
    }

    .choose-us-step-num {
        font-size: 1.3rem !important;
    }

    .choose-us-card .slide-title {
        font-size: 1.25rem !important;
        line-height: 1.35;
    }

    .choose-us-card .slide-desc {
        font-size: 0.95rem !important;
        line-height: 1.55;
    }

    /* Mobile typography scale-down */
    .choose-us-slide .slide-title {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
        line-height: 1.25;
    }

    .choose-us-slide .slide-desc {
        font-size: clamp(0.95rem, 3.5vw, 1.05rem) !important;
        line-height: 1.5;
    }
}

/* ---- Small mobile (≤ 575px) ---- */
@media (max-width: 575.98px) {
    .choose-us-top-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dial-number {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   SECTION 04: WHY BRANDS CHOOSE US RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 991.98px) {
    .choose-us-title {
        font-size: clamp(1.65rem, 4.8vw, 2.3rem);
    }

    .choose-us-subtitle {
        font-size: 0.95rem;
    }

    .choose-us-card {
        padding: 1.75rem 1.5rem 1.5rem;
        border-radius: 18px;
    }
}

@media (max-width: 767.98px) {
    .fhl-section-four {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    .choose-us-header-row {
        margin-bottom: 1.5rem !important;
    }

    .choose-us-nav-arrows {
        display: none !important;
    }

    .choose-us-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .choose-us-icon-wrapper {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }

    .card-badge-pill {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .choose-us-card .slide-title {
        font-size: 1.2rem;
    }

    .choose-us-card .slide-desc {
        font-size: 0.9rem;
    }
}


/* ==========================================================================
   SECTION 05: BLOG / INSIGHTS RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---- Tablet (≤ 991px) ---- */
@media (max-width: 991.98px) {
    .blog-heading {
        white-space: normal;
        /* allow wrap on tablet */
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .blog-description {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    }

    .blog-card-img {
        height: 200px;
    }
}

/* ---- Mobile (≤ 767px) ---- */
@media (max-width: 767.98px) {
    .blog-heading {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .blog-description {
        font-size: clamp(0.9rem, 4vw, 1rem);
        max-width: 100%;
    }

    .blog-card-body {
        padding: 1rem 1rem 0.75rem;
    }

    .blog-card-title {
        font-size: clamp(1rem, 5vw, 1.25rem);
    }

    .blog-card-desc {
        font-size: 0.9rem;
    }

    .blog-card-date {
        font-size: 0.75rem;
    }

    .blog-card-img {
        height: 180px;
    }

    .blog-read-btn {
        font-size: 0.85rem;
        padding: 7px 18px;
    }

    .blog-card-image-wrapper {
        margin: 0 0.6rem 0.6rem;
    }
}

/* Pre-CTA Logos Responsive */
@media (max-width: 767.98px) {
    .pre-cta-logos-section {
        padding: 40px 0 !important;
    }

    .pre-cta-logos-swiper .swiper-slide {
        height: 85px !important;
        padding: 0 15px !important;
    }

    .pre-cta-logo-img {
        height: 62px !important;
        max-height: 62px !important;
        max-width: 140px !important;
    }
}

/* ==========================================================================
   SECTION 06: CTA RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---- Tablet (≤ 991px) ---- */
@media (max-width: 991.98px) {
    .fhl-section-six {
        padding-bottom: 56px;
    }

    .cta-wrapper {
        width: calc(100% - 60px);
        border-radius: 32px;
    }

    .cta-heading {
        white-space: normal;
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .cta-description {
        font-size: clamp(0.95rem, 2.3vw, 1.15rem);
        max-width: 680px;
    }

    .cta-btn {
        min-width: 248px;
        padding: 16px 36px;
    }
}

/* ---- Mobile (≤ 767px) ---- */
@media (max-width: 767.98px) {
    .fhl-section-six {
        padding-bottom: 40px;
    }

    .cta-wrapper {
        width: calc(100% - 32px);
        border-radius: 28px;
        min-height: auto;
        height: auto;
    }

    .cta-content {
        min-height: auto;
        padding: 32px 18px;
    }

    .cta-heading {
        font-size: clamp(1.35rem, 5.8vw, 1.85rem);
        white-space: normal;
    }

    .cta-description {
        font-size: clamp(0.88rem, 3.8vw, 1rem);
        max-width: 100%;
        line-height: 1.4;
    }

    .cta-btn {
        min-width: 200px;
        padding: 14px 24px;
        font-size: 0.95rem;
        margin-top: 1.5rem !important;
    }

    .whatsapp-float-btn {
        width: 46px;
        height: 46px;
        bottom: 70px;
        right: 16px;
        font-size: 1.55rem;
    }

    .back-to-top-btn {
        width: 42px;
        height: 42px;
        bottom: 16px;
        right: 16px;
        font-size: 0.95rem;
    }
}