/* ============================================
   RESPONSIVE STYLES
   Breakpoints follow Bootstrap 5:
   xxl >=1400, xl >=1200, lg >=992, md >=768, sm >=576
   ============================================ */


/* ============================================
   LARGE LAPTOPS (max-width: 1399.98px)
   ============================================ */
@media (max-width: 1399.98px) {
    :root {
        --fs-5xl: 48px;
        --fs-4xl: 38px;
    }

    .banner__title {
        font-size: 48px;
    }
}


/* ============================================
   TABLETS / SMALL LAPTOPS (max-width: 1199.98px)
   ============================================ */
@media (max-width: 1199.98px) {
    :root {
        --space-5xl: 96px;
        --header-height: 80px;
        --fs-5xl: 42px;
        --fs-4xl: 34px;
        --fs-3xl: 30px;
    }

    .header__nav-ul {
        gap: var(--space-lg);
    }

    .banner__title {
        font-size: 42px;
    }

    .banner__content {
        max-width: 560px;
    }

    .stats__number {
        font-size: 42px;
    }

    .about__content,
    .features__content {
        padding-left: 0;
        padding-right: 0;
    }

    /* Business units - 4 per row on smaller laptops */
    .units__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ============================================
   TABLETS (max-width: 991.98px)
   ============================================ */
@media (max-width: 991.98px) {
    :root {
        --space-5xl: 72px;
        --space-4xl: 60px;
        --header-height: 74px;
        --fs-5xl: 36px;
        --fs-4xl: 30px;
        --fs-3xl: 26px;
        --fs-2xl: 24px;
    }

    /* Header & Mobile Menu */
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-base);
        gap: var(--space-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .header__nav.is__open {
        right: 0;
    }

    .header__nav-ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .header__nav-list {
        width: 100%;
        border-bottom: 1px solid var(--color-border-light);
    }

    .header__nav-link,
    .body__header.is__sticky .header__nav-link {
        display: block;
        padding: var(--space-md) 0;
        width: 100%;
        font-size: var(--fs-base);
        color: var(--color-dark);
    }

    .header__nav-link:hover,
    .header__nav-link.active,
    .body__header.is__sticky .header__nav-link:hover,
    .body__header.is__sticky .header__nav-link.active {
        color: var(--color-primary);
    }

    .header__nav-link::after {
        display: none;
    }

    .header__cta {
        width: 100%;
        margin-top: var(--space-md);
    }

    .header__cta .btn__primary {
        width: 100%;
    }

    /* Mobile menu overlay */
    body.menu__open::before {
        content: "";
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease forwards;
    }

    /* Banner */
    .banner__title {
        font-size: 36px;
    }

    .banner__text {
        font-size: var(--fs-base);
    }

    /* About */
    .about__media {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: var(--space-2xl);
    }

    .about__media-badge {
        position: static;
        margin-top: -50px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        transform: translateY(-30px);
        width: fit-content;
    }

    /* Features */
    .features__media {
        margin-bottom: var(--space-2xl);
    }

    /* Stats */
    .stats__number {
        font-size: 48px;
    }

    .stats__number--static {
        font-size: 40px;
    }

    .stats__icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    /* CTA */
    .cta__inner {
        padding: var(--space-2xl);
        text-align: center;
    }

    .col-lg-4.text-lg-end {
        text-align: center !important;
    }

    /* Contact */
    .contact__info {
        margin-bottom: var(--space-md);
    }

    /* Enquiry modal */
    .enquiry__modal-aside-inner,
    .enquiry__modal-main-inner {
        padding: var(--space-xl);
    }

    .enquiry__modal-heading {
        font-size: var(--fs-xl);
    }

    /* Business units - 3 per row on tablets */
    .units__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================
   MOBILE LANDSCAPE / LARGE PHONES (max-width: 767.98px)
   ============================================ */
@media (max-width: 767.98px) {
    :root {
        --space-5xl: 56px;
        --space-4xl: 48px;
        --space-3xl: 48px;
        --space-2xl: 32px;
        --fs-5xl: 30px;
        --fs-4xl: 26px;
        --fs-3xl: 24px;
        --fs-2xl: 22px;
        --fs-xl: 20px;
    }

    body {
        font-size: 15px;
    }

    /* Banner */
    .body__banner {
        height: auto;
        min-height: 540px;
        max-height: none;
        padding: var(--space-4xl) 0;
    }

    .banner__title {
        font-size: 30px;
    }

    .banner__text {
        font-size: var(--fs-sm);
    }

    .banner__action {
        flex-direction: column;
        width: 100%;
    }

    .banner__action .btn__primary,
    .banner__action .btn__outline {
        width: 100%;
    }

    /* Section tags - center alignment fix */
    .text-center .section__tag {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Services */
    .services__card {
        padding: var(--space-xl);
    }

    .services__card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Business units - 2 per row on phones */
    .units__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .units__item {
        min-height: 90px;
        padding: var(--space-md);
    }

    /* Thank-you page */
    .thankyou__inner {
        padding: var(--space-2xl) var(--space-lg);
    }

    .thankyou__icon {
        width: 78px;
        height: 78px;
        font-size: 38px;
    }

    .thankyou__title {
        font-size: var(--fs-2xl);
    }

    .thankyou__steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .thankyou__action {
        flex-direction: column;
    }

    .thankyou__action .btn__primary,
    .thankyou__action .btn__outline,
    .thankyou__action .btn__outline--dark {
        width: 100%;
    }

    .thankyou__contact-list {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .units__logo {
        max-height: 50px;
    }

    /* Stats */
    .section__stats {
        padding: var(--space-3xl) 0;
        background-attachment: scroll;
    }

    .stats__number {
        font-size: 32px;
    }

    /* CTA */
    .cta__inner {
        padding: var(--space-xl);
    }

    .cta__title {
        font-size: var(--fs-xl);
    }

    /* Contact */
    .contact__info,
    .contact__form {
        padding: var(--space-xl);
    }

    .contact__info-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* Enquiry modal - smaller padding on mobile */
    .enquiry__modal-aside-inner,
    .enquiry__modal-main-inner {
        padding: var(--space-lg);
    }

    .enquiry__modal-aside {
        min-height: 200px;
    }

    .enquiry__modal-heading {
        font-size: var(--fs-lg);
    }

    .enquiry__modal-close {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
    }

    /* Footer */
    .body__footer {
        padding-top: var(--space-3xl);
        text-align: left;
    }

    .footer__top {
        padding-bottom: var(--space-xl);
    }

    .footer__bottom .text-md-end {
        text-align: left !important;
        margin-top: var(--space-xs);
    }
}


/* ============================================
   SMALL PHONES (max-width: 575.98px)
   ============================================ */
@media (max-width: 575.98px) {
    :root {
        --fs-5xl: 26px;
        --fs-4xl: 22px;
        --fs-3xl: 20px;
        --header-height: 70px;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header__logo-img {
        max-height: 44px;
    }

    .banner__title {
        font-size: 26px;
    }

    .banner__title span {
        font-size: 22px;
    }

    .banner__content {
        padding: var(--space-md) 0;
    }

    .section__title {
        font-size: 22px;
    }

    .about__media-badge {
        padding: var(--space-md);
        min-width: 150px;
    }

    .about__media-badge-num {
        font-size: 32px;
    }

    .services__card {
        padding: var(--space-lg);
    }

    .features__item {
        gap: var(--space-md);
        padding: var(--space-md) 0;
    }

    .features__item-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .stats__item {
        padding: var(--space-xl) var(--space-md);
    }

    .stats__icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        margin-bottom: var(--space-sm);
    }

    .stats__number {
        font-size: 42px;
    }

    .stats__number--static {
        font-size: 34px;
    }

    .stats__suffix {
        font-size: var(--fs-sm);
    }

    .stats__label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .btn__primary,
    .btn__outline {
        padding: 12px 24px;
        font-size: 12px;
    }

    .body__scroll-top {
        width: 42px;
        height: 42px;
        right: 16px;
        bottom: 16px;
    }
}


/* ============================================
   EXTRA SMALL PHONES (max-width: 374.98px)
   ============================================ */
@media (max-width: 374.98px) {
    .banner__title {
        font-size: 22px;
    }

    .section__title {
        font-size: 20px;
    }

    .services__card-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
}
