/* Shared public front responsive fixes */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

/* Do not force containers/columns to 100% — that breaks Bootstrap col-* widths */

/* Bootstrap anti-pattern used across front pages: .row.col-12 */
.row.col-12,
.col-12.row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Fixed header spacing handled by body padding + front-layout.css */
.marginTop {
    margin-top: 1.5rem !important;
}

/* Global media that often causes horizontal scroll */
table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Known fixed-width offenders from home.css */
.roundedend {
    max-width: 100% !important;
}

.oneCard {
    max-width: 100%;
}

.trans > h1 {
    word-break: break-word;
}

/* WhatsApp FAB */
body > a[href*="wa.me"] img {
    width: 56px;
    height: 56px;
}

/* Navbar: prevent brand column from crushing layout */
header.position-fixed,
header.row {
    width: 100%;
    left: 0;
    right: 0;
}

header .navbar {
    width: 100%;
}

header .navbar-brand {
    width: auto !important;
    max-width: 50%;
    margin-right: 0.5rem;
}

header .navbar-brand img {
    width: auto;
    max-width: 90px;
    height: auto;
}

header .navbar-collapse {
    background: #fff;
}

header .navrespo .nav-link {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    padding: 0.55rem 0.35rem !important;
}

/* Footer — sizing lives in front-layout.css (.site-footer) */
.site-footer img {
    max-width: 100%;
}

@media screen and (max-width: 991.98px) {
    .marginTop {
        margin-top: 1rem !important;
    }

    ul li > a {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    .trans > h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    }

    .roundedend {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding-right: 16px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .oneCard {
        width: min(185px, 42vw) !important;
        height: auto !important;
        aspect-ratio: 1;
        left: auto !important;
        top: auto !important;
    }

    .btns > .btnline {
        margin-left: 0 !important;
    }

    header .navbar-collapse {
        border-top: 1px solid #eef2f7;
        margin-top: 0.5rem;
        padding: 0.75rem 0.25rem 1rem;
        box-shadow: 0 12px 24px color-mix(in srgb, var(--c-ink) 8%, transparent);
        border-radius: 0 0 12px 12px;
    }

    header .navbar-collapse .d-flex {
        width: 100%;
        justify-content: stretch;
    }

    header .navbar-collapse .btn {
        flex: 1 1 auto;
    }

    body > a[href*="wa.me"] {
        right: 16px !important;
        bottom: 16px !important;
    }

    body > a[href*="wa.me"] img {
        width: 48px;
        height: 48px;
    }
}

@media screen and (max-width: 575.98px) {
    .marginTop {
        margin-top: 0.75rem !important;
    }

    .container,
    .container-lg {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1,
    .h1 {
        font-size: clamp(1.45rem, 7.5vw, 1.9rem) !important;
        line-height: 1.25 !important;
        word-break: break-word;
    }

    h2,
    .h2 {
        font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
    }

    p,
    li,
    .dynamic-para,
    .dynamic-para * {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .btn.px-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
