:root {
    --ng-mobile-header-height: 72px;
    --ng-mobile-gutter: clamp(18px, 5vw, 32px);
}

html {
    scroll-behavior: smooth;
}

body,
#wrapper,
#main-content {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

@media only screen and (max-width: 992px) {
    html {
        scroll-padding-top: calc(var(--ng-mobile-header-height) + 12px);
    }

    body {
        padding-top: var(--ng-mobile-header-height);
    }

    #wrapper {
        overflow: clip;
    }

    header.header-for-mobile {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1100;
        width: 100%;
        height: var(--ng-mobile-header-height);
        min-height: var(--ng-mobile-header-height);
        padding: 0;
        overflow: hidden;
        background: #ffffff;
        border-bottom: 1px solid rgba(32, 37, 41, 0.08);
        box-shadow: 0 4px 18px rgba(32, 37, 41, 0.08);
    }

    header.header-for-mobile .container {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 100%;
        padding-right: max(var(--ng-mobile-gutter), env(safe-area-inset-right));
        padding-left: max(var(--ng-mobile-gutter), env(safe-area-inset-left));
    }

    header.header-for-mobile .row,
    header.header-for-mobile .col-md-12 {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    header.header-for-mobile .mobile-header__inner {
        position: relative;
        align-items: center;
        gap: 12px;
        min-height: var(--ng-mobile-header-height);
    }

    header.header-for-mobile .header-col-left,
    header.header-for-mobile .header-col-right {
        flex: 0 0 auto;
        padding-top: 0;
    }

    header.header-for-mobile .header-col-right {
        gap: 12px;
        margin-left: auto;
    }

    header.header-for-mobile div#logo {
        width: 96px;
        height: auto;
        line-height: 1;
    }

    header.header-for-mobile div#logo img,
    header.header-for-mobile .mobile-header__logo {
        display: block;
        width: 96px;
        max-width: 96px;
        max-height: 62px;
        object-fit: contain;
    }

    header.header-for-mobile .social-icons {
        display: flex;
        align-items: center;
        margin: 0;
    }

    header.header-for-mobile .mobile-header__donation a.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto !important;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 10px 15px;
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        border: 0;
        border-radius: 8px;
        background: #3ead27;
    }

    header.header-for-mobile #menu-btn {
        display: inline-flex;
        float: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin: 0;
        padding: 0;
        color: #222222;
        border: 0;
        border-radius: 8px;
        background: transparent;
    }

    header.header-for-mobile #menu-btn::before {
        font-size: 28px;
        line-height: 1;
    }

    header.header-for-mobile #menu-btn:hover,
    header.header-for-mobile #menu-btn:focus-visible {
        color: #008477;
        background: rgba(0, 132, 119, 0.08);
        outline: 2px solid rgba(0, 132, 119, 0.3);
        outline-offset: 2px;
    }

    header.header-for-mobile .header-col-mid {
        position: absolute;
        top: var(--ng-mobile-header-height);
        right: 0;
        left: 0;
        width: auto;
        padding: 8px 16px 18px;
        background: #ffffff;
        box-shadow: 0 14px 24px rgba(32, 37, 41, 0.12);
    }

    header.header-for-mobile #mainmenu {
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    header.header-for-mobile #mainmenu > li:empty {
        display: none;
    }

    header.header-for-mobile.header-mobile #mainmenu li a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 4px;
        color: #343a40;
        font-size: 15px;
        line-height: 1.35;
    }

    #main-content .container-fluid {
        padding-right: var(--ng-mobile-gutter);
        padding-left: var(--ng-mobile-gutter);
    }

    #section-hero.vertical-center {
        min-height: calc(100vh - var(--ng-mobile-header-height));
        min-height: calc(100svh - var(--ng-mobile-header-height));
        padding: clamp(58px, 9vh, 92px) var(--ng-mobile-gutter);
        background-position: 42% center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }

    #section-hero::before {
        z-index: 1;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.56) 62%, rgba(0, 0, 0, 0.44) 100%);
    }

    #section-hero::after {
        display: none;
    }

    #section-hero .container-fluid {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    #section-hero .hero-copy {
        width: 100%;
        max-width: 650px;
        margin-left: 0;
        padding: 0;
    }

    #section-hero .hero-title {
        max-width: 15ch;
        margin-bottom: 22px;
        font-size: clamp(2.35rem, 10.5vw, 3.5rem);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -0.035em;
        text-wrap: balance;
    }

    #section-hero .hero-lead {
        max-width: 36rem;
        margin-bottom: 0;
        font-size: clamp(1rem, 4.1vw, 1.15rem);
        font-weight: 500;
        line-height: 1.65;
        text-wrap: pretty;
    }

    #section-hero .hero-actions,
    #section-hero-slider .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        margin-top: 28px;
    }

    #section-hero .hero-actions .btn-custom,
    #section-hero-slider .hero-actions .btn-custom {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        margin: 0;
        padding: 12px 22px;
        font-size: 0.95rem;
        line-height: 1.3;
        text-align: center;
        white-space: nowrap;
    }

    #main-content section:not(#section-hero) {
        padding-right: 0;
        padding-left: 0;
    }

    #section-about .row,
    #section-fondation .row {
        row-gap: 32px;
    }

    #section-about h2,
    #section-services h2,
    #section-fondation h2,
    #section-contact h2,
    #section-products .products-main-title {
        font-size: clamp(2rem, 8vw, 2.55rem) !important;
        line-height: 1.15;
        text-wrap: balance;
    }

    #section-products .container-fluid {
        padding-right: var(--ng-mobile-gutter) !important;
        padding-left: var(--ng-mobile-gutter) !important;
    }

    #section-products .product-item-card {
        width: 100%;
        max-width: 520px;
        margin-right: auto;
        margin-left: 0;
    }

    #section-contact .iti,
    #section-contact .make-appointment__form-box {
        width: 100%;
        max-width: 100%;
    }

    footer.footer .container-fluid {
        padding-right: var(--ng-mobile-gutter);
        padding-left: var(--ng-mobile-gutter);
    }

    .cart-drawer-panel {
        width: min(420px, 100vw);
        max-width: 100vw;
    }

    .cart-floating-trigger {
        right: max(18px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 575px) {
    #section-hero .hero-title {
        max-width: 100%;
    }

    #section-hero .hero-actions {
        flex-direction: column;
    }

    #section-hero .hero-actions .btn-custom {
        flex-basis: auto;
        width: 100%;
    }

    #section-products .products-main-title {
        font-size: 1.85rem !important;
    }

    .btn-see-all-products {
        width: 100%;
        justify-content: center;
        padding-right: 20px;
        padding-left: 20px;
        text-align: center;
    }
}

@media only screen and (max-width: 374px) {
    :root {
        --ng-mobile-gutter: 14px;
    }

    header.header-for-mobile .mobile-header__inner,
    header.header-for-mobile .header-col-right {
        gap: 8px;
    }

    header.header-for-mobile div#logo,
    header.header-for-mobile div#logo img,
    header.header-for-mobile .mobile-header__logo {
        width: 86px;
        max-width: 86px;
    }

    header.header-for-mobile .mobile-header__donation a.btn {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }

    header.header-for-mobile #menu-btn {
        width: 40px;
        min-width: 40px;
    }

    #section-hero .hero-title {
        font-size: 2.1rem;
    }
}

@media only screen and (max-width: 992px) and (max-height: 700px) {
    #section-hero.vertical-center {
        min-height: auto;
        padding-top: 54px;
        padding-bottom: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

