/*
 * Value Construction — responsive / reduced-motion
 *
 * WEB-A03.8: end-of-file media queries from legacy sections 31–33 kept here
 * so they remain last in the modular cascade (same as the monolith).
 * Header ID media queries that originally sat inside 30A-1 remain in header.css.
 */
/* --- from legacy-v4.css lines 1537-1753 --- */
/* ----------------------------------------------------------------------
   31. MOBILE / TABLET
   ---------------------------------------------------------------------- */
@media (max-width: 991px) {
    :root {
        --vc-container: 100%;
    }

    .container,
    .site-content > .container,
    .elementor-section.elementor-section-boxed > .elementor-container,
    .e-con.e-con-boxed > .e-con-inner {
        width: min(100% - 30px, var(--vc-container));
    }

    .vc-hero {
        min-height: 520px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 24px;
    }

    .navbar-nav .dropdown-menu,
    .main-navigation ul ul,
    .sub-menu {
        box-shadow: none !important;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    h1,
    .elementor-widget-heading h1.elementor-heading-title {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    h2,
    .elementor-widget-heading h2.elementor-heading-title {
        font-size: clamp(1.85rem, 8vw, 2.65rem);
    }

    .container,
    .site-content > .container,
    .elementor-section.elementor-section-boxed > .elementor-container,
    .e-con.e-con-boxed > .e-con-inner {
        width: min(100% - 24px, var(--vc-container));
    }

    button,
    input[type="button"],
    input[type="submit"],
    .button,
    a.button,
    .wp-block-button__link,
    .elementor-button {
        min-height: 46px;
        padding: 12px 18px !important;
    }

    .vc-hero {
        min-height: 460px;
    }

    body.woocommerce-account .woocommerce {
        padding: 32px 14px 56px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .woocommerce form.login,
    body.woocommerce-account .woocommerce form.register,
    body.woocommerce-account .woocommerce form.woocommerce-form-login,
    body.woocommerce-account .woocommerce form.woocommerce-form-register {
        padding: 20px;
    }

    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        padding: 12px !important;
    }
}

/* ----------------------------------------------------------------------
   32. REDUCED MOTION
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ----------------------------------------------------------------------
   33. V3 RESPONSIVE HEADER / HERO COMPATIBILITY
   ---------------------------------------------------------------------- */
@media (max-width: 991px) {
    .mg-headwidget .container,
    .mg-headwidget .container-fluid,
    .navbar-wp .container,
    .navbar-wp .container-fluid,
    .mg-headwidget .row,
    .navbar-wp .row {
        min-height: 70px !important;
    }

    .custom-logo,
    .custom-logo-link img,
    .site-logo img,
    .site-branding img,
    .navbar-brand img,
    .mg-logo img {
        height: 46px !important;
        max-height: 46px !important;
        max-width: 190px !important;
    }

    .navbar-wp .navbar-nav > li > a,
    .main-navigation > ul > li > a,
    .main-navigation .menu > li > a,
    .primary-menu > li > a {
        min-height: auto !important;
        padding: 12px 14px !important;
    }

    /* WEB-D02.4A: exclude .vc-header-v2 from homepage-hero first-section rules. */
    .vc-hero,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2),
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2),
    body.home .elementor > .e-con:first-child,
    .vc-hero .elementor-container,
    .vc-hero .e-con-inner,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2) > .elementor-container,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2) > .elementor-container,
    body.home .elementor > .e-con:first-child > .e-con-inner {
        min-height: 560px !important;
    }
}

@media (max-width: 767px) {
    .mg-headwidget .container,
    .mg-headwidget .container-fluid,
    .navbar-wp .container,
    .navbar-wp .container-fluid {
        width: min(100% - 28px, var(--vc-container)) !important;
    }

    .vc-hero,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2),
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2),
    body.home .elementor > .e-con:first-child,
    .vc-hero .elementor-container,
    .vc-hero .e-con-inner,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2) > .elementor-container,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2) > .elementor-container,
    body.home .elementor > .e-con:first-child > .e-con-inner {
        min-height: 520px !important;
    }

    .vc-hero::before,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2)::before,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2)::before,
    body.home .elementor > .e-con:first-child::before {
        background:
            linear-gradient(
                90deg,
                rgba(7, 21, 33, 0.92) 0%,
                rgba(7, 21, 33, 0.76) 70%,
                rgba(7, 21, 33, 0.50) 100%
            ) !important;
    }

    .vc-hero h1,
    .vc-hero h2,
    .vc-hero .elementor-heading-title,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2) h1,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2) h2,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2) .elementor-heading-title,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2) h1,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2) h2,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2) .elementor-heading-title,
    body.home .elementor > .e-con:first-child h1,
    body.home .elementor > .e-con:first-child h2,
    body.home .elementor > .e-con:first-child .elementor-heading-title {
        font-size: clamp(2.55rem, 12vw, 4.2rem) !important;
        line-height: 1.02 !important;
    }

    .vc-hero p,
    body.home .elementor > .elementor-section:first-child:not(.vc-header-v2) p,
    body.home .elementor-section-wrap > .elementor-section:first-child:not(.vc-header-v2) p,
    body.home .elementor > .e-con:first-child p {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }
}

/* ======================================================================
   END — VALUE CONSTRUCTION GLOBAL CONSULTING DESIGN SYSTEM
   ====================================================================== */
