/* Keep the sticky navigation in document flow so page headings are never covered. */
body {
    padding-top: 0 !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.sis-preloader .sis-loading-container {
    flex-direction: column;
}

.preloader-brand-copy {
    position: absolute;
    top: calc(50% + 70px);
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 90vw;
    transform: translateX(-50%);
    text-align: center;
}

.preloader-brand-copy strong {
    color: #087638;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: .13em;
}

.preloader-brand-copy small {
    margin-top: 7px;
    color: #607269;
    font-size: clamp(.68rem, 1.7vw, .8rem);
    font-weight: 700;
    letter-spacing: .04em;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    border-bottom: 1.5px solid #087638 !important;
    background: rgba(255, 255, 255, .98);
}

/* Ensure paragraph content is justified on all devices */
main p,
.footer-about-copy {
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* Home hero subtitle high-contrast styling */
.unicare-home-hero .sisf-subtitle,
.unicare-home-hero .sisf-e-colored {
    color: #82e2a5 !important;
}

.unicare-home-hero .sisf-subtitle::before,
.unicare-home-hero .sisf-subtitle::after {
    background-color: #82e2a5 !important;
}

/* Keep every action-button icon clear and upright in both interaction states. */
.sis-btn-default i {
    z-index: 2;
    color: #fff !important;
    transform: rotate(0deg) !important;
}

.sis-btn-default:hover i,
.sis-btn-default:focus-visible i {
    color: #fff !important;
    transform: rotate(0deg) !important;
}

/* Green primary buttons use readable white labels throughout the site. */
.sis-btn-default:not(.btn-light) {
    color: #fff !important;
}

/* The home CTA's first button is intentionally white, so retain its dark label. */
.home-cta .sis-btn-default:not(.btn-light) {
    color: #0b4d2d !important;
}

.home-cta .sis-btn-default:not(.btn-light):hover,
.home-cta .sis-btn-default:not(.btn-light):focus-visible {
    color: #fff !important;
}

/* High-contrast primary CTA on green Product page panels. */
.products-quality .sis-btn-default:not(.btn-light),
.detail-cta .sis-btn-default:not(.btn-light) {
    border-color: #fff !important;
    background: #fff !important;
    color: #0b4d2d !important;
}

.products-quality .sis-btn-default:not(.btn-light) i,
.detail-cta .sis-btn-default:not(.btn-light) i {
    border-color: #0b4d2d !important;
    background: #0b4d2d !important;
}

.products-quality .sis-btn-default:not(.btn-light):hover,
.products-quality .sis-btn-default:not(.btn-light):focus-visible,
.detail-cta .sis-btn-default:not(.btn-light):hover,
.detail-cta .sis-btn-default:not(.btn-light):focus-visible {
    border-color: #fff !important;
    background: #0b4d2d !important;
    color: #fff !important;
}

/* Keep only the three Products overview category icons fully visible. */
.product-categories-section .category-image > span {
    right: 18px !important;
    bottom: 18px !important;
}

@media (min-width: 992px) {
    .site-header .product-nav-control {
        gap: 6px;
    }

    .site-header .product-nav-control .nav-link {
        padding-right: 0 !important;
    }

    .site-header .product-dropdown-toggle {
        width: 14px;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* Compact Products caret drawn with CSS so it renders without an icon font. */
.site-header .product-dropdown-toggle::after {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.site-header .product-nav-item:hover .product-dropdown-toggle::after,
.site-header .product-dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
}

.numbers-section .number-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.numbers-section .number-card strong,
.numbers-section .number-card p {
    width: 100%;
    text-align: center !important;
}

.numbers-section .number-card strong {
    font-size: clamp(2rem, 3.5vw, 3.1rem);
}

@media (min-width: 1200px) {
    .site-header .navbar-collapse {
        position: absolute;
        left: min(50%, calc(100% - 640px));
        width: max-content;
        margin: 0 !important;
    }

    .site-header .navbar {
        position: relative;
    }

    .site-header .navbar-nav {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .industry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .industry-grid > article {
        grid-column: auto !important;
    }
}

main {
    padding-top: 12px;
}

main .section {
    padding-top: 40px !important;
}

/* Footer contact details: consistent icon column and clean left-aligned content. */
.site-footer .footer-nav a {
    font-family: "IBM Plex Sans", sans-serif;
}

.site-footer .footer-contact > h3 {
    font-family: "IBM Plex Serif", serif;
}

.site-footer .contact-list {
    display: grid;
    gap: 12px;
}

.site-footer .contact-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 0;
}

.site-footer .contact-list li > i {
    width: 20px;
    margin-top: 6px;
    text-align: center;
}

.site-footer .contact-list span,
.site-footer .contact-list a {
    display: block;
    min-width: 0;
    line-height: 1.65;
    text-align: left !important;
    overflow-wrap: anywhere;
}

.site-footer .footer-address address {
    min-width: 0;
    margin: 0;
    font-style: normal;
    line-height: 1.55;
}

.site-footer .footer-address address span {
    display: block;
    overflow-wrap: normal;
}

.site-footer .footer-follow {
    margin-top: 24px;
}

/* Footer layout uses its own CSS Grid, independent of Bootstrap columns. */
.site-footer .footer-inner {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 48px 15px;
}

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.site-footer .copyright {
    text-align: center;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 24px;
    row-gap: 32px;
}

.site-footer .footer-column {
    min-width: 0;
}

.site-footer .footer-company,
.site-footer .footer-contact {
    grid-column: 1 / -1;
}

.site-footer .footer-about-copy {
    max-width: none;
    text-align: justify !important;
    text-justify: inter-word;
}

@media (min-width: 992px) {
    .site-footer .footer-inner {
        padding-right: 0;
        padding-left: 30px;
    }

    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .68fr) minmax(0, 1.32fr);
        column-gap: clamp(22px, 2.2vw, 36px);
        row-gap: 0;
        width: calc(100% - 14px);
        margin-left: 14px;
    }

    .site-footer .footer-company,
    .site-footer .footer-contact {
        grid-column: auto;
    }

    .site-footer .footer-company {
        padding-right: 16px;
    }
}

@media (min-width: 1200px) {
    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, .7fr) minmax(0, .73fr) minmax(0, 1.32fr);
        column-gap: clamp(36px, 2.5vw, 48px);
        row-gap: 0;
        width: calc(100% - 20px);
        margin-left: 20px;
    }

    .site-footer .footer-company,
    .site-footer .footer-contact {
        grid-column: auto;
    }

    .site-footer .footer-company {
        padding-right: 28px;
    }

    .floating-contact {
        gap: 9px;
    }

    .floating-contact .float-action,
    .floating-contact .sis-back-to-top-button,
    .floating-contact .sis-back-to-top-button .sis-back-to-top {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
    }

    .floating-contact .float-action i,
    .floating-contact .sis-back-to-top i {
        font-size: 1.08rem !important;
    }
}

.site-footer .footer-follow h3 {
    margin-bottom: 14px;
}

.site-footer .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer .footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.05rem;
    transition: transform .25s ease,background-color .25s ease,border-color .25s ease;
}

.site-footer .footer-social-links a:hover,
.site-footer .footer-social-links a:focus-visible {
    border-color: #71c891;
    background: #087638;
    color: #fff;
    transform: translateY(-3px);
}

.site-footer .footer-social-links .instagram {
    border-color: transparent;
    background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);
}

.site-footer .footer-social-links .facebook {
    border-color: #1877f2;
    background: #1877f2;
}

.site-footer .footer-social-links .youtube {
    border-color: #ff0000;
    background: #ff0000;
}

.site-footer .footer-social-links .whatsapp {
    border-color: #25d366;
    background: #25d366;
}

/* Preserve each social network's own color during hover/focus. */
.site-footer .footer-social-links .instagram:hover,
.site-footer .footer-social-links .instagram:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);
}

.site-footer .footer-social-links .facebook:hover,
.site-footer .footer-social-links .facebook:focus-visible {
    border-color: #1877f2;
    background: #1877f2;
}

.site-footer .footer-social-links .youtube:hover,
.site-footer .footer-social-links .youtube:focus-visible {
    border-color: #ff0000;
    background: #ff0000;
}

.site-footer .footer-social-links .whatsapp:hover,
.site-footer .footer-social-links .whatsapp:focus-visible {
    border-color: #25d366;
    background: #25d366;
}

/* Keep the floating contact rail compact on every device size. */
.floating-contact .float-action,
.floating-contact .sis-back-to-top-button,
.floating-contact .sis-back-to-top-button .sis-back-to-top {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
}

/* Shared responsive safeguards for all public pages. */
main img,
main iframe {
    max-width: 100%;
}

main iframe {
    width: 100%;
}

main h1,
main h2,
main h3,
.site-footer,
.site-header {
    overflow-wrap: break-word;
}

/* Reduce excess vertical space in the compact information-card grids. */
.home-icon-card,
.about-feature-card,
.product-benefit-card {
    padding: 23px 22px !important;
}

.home-icon-card .home-card-icon,
.about-feature-card > i,
.product-benefit-card > span {
    margin-bottom: 15px !important;
}

.detail-group-card {
    padding: 24px 25px !important;
}

.detail-group-card .group-icon {
    margin-bottom: 15px;
}

.detail-group-card > p {
    min-height: 54px;
}

/* Keep the original inset background while reducing non-product final panels. */
.home-cta,
.about-purpose,
.gallery-cta,
.contact-cta {
    width: auto !important;
    margin-right: 18px !important;
    margin-bottom: 18px !important;
    margin-left: 18px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    border-radius: 14px !important;
}

.home-cta > .container,
.about-purpose > .container,
.gallery-cta > .container,
.contact-cta > .container {
    width: 100%;
    max-width: none !important;
    padding-right: clamp(22px, 6vw, 110px);
    padding-left: clamp(22px, 6vw, 110px);
}

.home-cta h2,
.about-purpose h2,
.gallery-cta h2,
.contact-cta h2 {
    margin-top: 8px;
    margin-bottom: 14px;
}

.home-cta p,
.about-purpose p,
.gallery-cta p,
.contact-cta p {
    margin-bottom: 13px;
}

.home-cta .button-group,
.about-purpose .sis-btn-default {
    margin-top: 14px !important;
}

main > section:has(+ .home-cta),
main > section:has(+ .about-purpose),
main > section:has(+ .gallery-cta),
main > section:has(+ .contact-cta) {
    padding-bottom: 32px !important;
}

@media (max-width: 991px) {
    main {
        padding-top: 10px;
    }

    .detail-group-card > p {
        min-height: 0;
    }

    .site-header .navbar-collapse {
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Hamburger menu toggle button - only visible on small devices */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        border-radius: 12px !important;
        background: #087638 !important;
        border: 0 !important;
        flex-shrink: 0;
    }

    .menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 2.5px !important;
        margin: 2.5px auto !important;
        border-radius: 2px !important;
        background: #fff !important;
    }

    /* Keep gallery masonry uniform on tablet 2-column layout */
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .gallery-item,
    .gallery-item:nth-child(3n+1) {
        grid-row: auto !important;
        height: 260px !important;
    }

    .detail-lead-image {
        height: 400px !important;
    }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .site-header .navbar-brand {
        min-width: 0;
        max-width: calc(100% - 64px);
    }

    .site-header .brand-copy {
        min-width: 0;
    }

    .site-header .brand-copy strong {
        font-size: clamp(.9rem, 4vw, 1.08rem);
        letter-spacing: .07em;
    }

    .site-header .brand-copy small {
        font-size: .67rem;
        letter-spacing: .02em;
    }

    .about-banner .sisf-m-content {
        width: min(100%, 620px);
    }

    .about-banner-tagline {
        overflow-wrap: anywhere;
    }

    .discovery-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 575px) {
    main {
        padding-top: 8px;
    }

    main p,
    .footer-about-copy {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    .home-icon-card,
    .about-feature-card,
    .product-benefit-card,
    .detail-group-card,
    .value-card {
        padding: 20px 18px !important;
    }

    .home-cta,
    .about-purpose,
    .gallery-cta,
    .contact-cta {
        margin-right: 8px !important;
        margin-bottom: 8px !important;
        margin-left: 8px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .home-cta > .container,
    .about-purpose > .container,
    .gallery-cta > .container,
    .contact-cta > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-footer .footer-address address span {
        line-height: 1.5;
    }

    .floating-contact .float-action span {
        display: none;
    }

    .floating-contact {
        gap: 7px;
        right: 12px;
        bottom: 16px;
    }

    .floating-contact .float-action,
    .floating-contact .sis-back-to-top-button,
    .floating-contact .sis-back-to-top-button .sis-back-to-top {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    /* Digital Catalog Showcase Responsive Wrapping */
    .catalog-category-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 18px !important;
        padding-bottom: 10px !important;
    }

    .catalog-category-header h3 {
        font-size: 1.2rem !important;
    }

    .catalog-category-header span {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }

    .catalog-img-wrap {
        height: 190px !important;
        padding: 12px !important;
    }

    .catalog-body {
        padding: 16px 16px 18px !important;
    }

    .catalog-body h4 {
        font-size: 1.08rem !important;
    }

    .catalog-spec {
        font-size: 0.82rem !important;
    }

    .catalog-pack {
        font-size: 0.76rem !important;
        margin-bottom: 12px !important;
    }

    /* Gallery Masonry 1-column on mobile */
    .gallery-masonry {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gallery-item,
    .gallery-item:nth-child(3n+1) {
        grid-row: auto !important;
        height: 240px !important;
    }

    .discovery-grid {
        grid-template-columns: 1fr !important;
    }

    /* Prevent mobile browser zoom on form input focus */
    .enquiry-card input,
    .enquiry-card select,
    .enquiry-card textarea {
        font-size: 16px !important;
    }

    .contact-map {
        height: 280px !important;
    }

    /* Home Quality 3 Mini Cards */
    .home-quality-card {
        padding: 10px 4px !important;
    }

    .home-quality-card img {
        height: 65px !important;
        margin-bottom: 5px !important;
    }

    .home-quality-card span {
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
    }

    /* Industry list compact sizing */
    .industry-thumb {
        width: 58px !important;
        height: 58px !important;
    }

    .industry-grid article {
        padding: 12px 14px !important;
        gap: 12px !important;
    }

    .industry-info h3 {
        font-size: 1.02rem !important;
    }

    .industry-info p {
        font-size: 0.82rem !important;
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    /* Responsive image stacks */
    .about-collage {
        min-height: 340px !important;
        padding: 0 20px 24px 0 !important;
    }

    .about-collage-main {
        width: 94% !important;
        height: 300px !important;
    }

    .about-collage-small {
        width: 48% !important;
        height: 130px !important;
        border-width: 4px !important;
    }

    .products-intro-images {
        min-height: 330px !important;
        padding: 0 20px 24px 0 !important;
    }

    .products-main-image {
        width: 94% !important;
        height: 300px !important;
    }

    .products-small-image {
        width: 48% !important;
        height: 130px !important;
        border-width: 4px !important;
    }

    .gallery-intro-images {
        min-height: 320px !important;
    }

    .gallery-intro-images img {
        height: 250px !important;
    }

    .detail-lead-image {
        height: 260px !important;
    }

    .quality-feature-item {
        padding: 12px 14px !important;
        gap: 12px !important;
    }

    .q-icon {
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .sis-btn-default {
        font-size: 14px !important;
        padding: 2px 2px 2px 16px !important;
        gap: 8px !important;
    }

    .sis-btn-default i {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }

    .hero-support-title {
        font-size: 0.94rem !important;
    }

    .hero-tagline {
        font-size: 0.8rem !important;
        letter-spacing: .04em !important;
    }

    .section {
        padding: 3.5rem 0 !important;
    }
}

@media (max-width: 380px) {
    .site-header .navbar-brand img {
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
    }

    .site-header .brand-copy strong {
        font-size: 0.82rem !important;
        letter-spacing: .03em !important;
    }

    .site-header .brand-copy small {
        font-size: 0.55rem !important;
        letter-spacing: 0 !important;
    }

    .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        padding: 9px !important;
    }

    .sis-btn-default {
        font-size: 13px !important;
        padding: 2px 2px 2px 14px !important;
        letter-spacing: 0 !important;
    }

    .sis-btn-default i {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    .home-cta,
    .about-purpose,
    .gallery-cta,
    .contact-cta,
    .unicare-home-hero,
    .products-quality {
        margin-right: 6px !important;
        margin-left: 6px !important;
    }

    .about-banner-tagline {
        font-size: 0.82rem !important;
    }

    .floating-contact .float-action,
    .floating-contact .sis-back-to-top-button,
    .floating-contact .sis-back-to-top-button .sis-back-to-top {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
    }

    .floating-contact .float-action i,
    .floating-contact .sis-back-to-top i {
        font-size: 0.95rem !important;
    }
}

