/* ==========================================================
   MAZETECH HUB — CONSOLIDATED RESPONSIVE STYLESHEET
   Purpose:
   - One clean responsive file
   - Removes overlapping/duplicate mobile rules
   - Keeps desktop styling untouched
   - Compact mobile cards
   - Two-column card layouts where appropriate
   - Smaller Process / Reviews / Contact cards
   - Safe navbar, hero, footer and floating controls
========================================================== */


/* ==========================================================
   1. LARGE TABLETS / SMALL LAPTOPS
========================================================== */

@media (max-width: 1199.98px) {

    .navbar-brand img {
        height: 56px;
    }

    .brand-title {
        font-size: 1.18rem;
    }

    .brand-subtitle {
        max-width: 250px;
        font-size: .58rem;
    }

    .navbar-nav .nav-link {
        padding-left: .55rem !important;
        padding-right: .55rem !important;
        font-size: .86rem;
    }

    .navbar-quote-btn {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-title,
    .hero h1 {
        font-size: clamp(2.8rem, 5.7vw, 4.5rem);
    }

    .hero-glass {
        padding: 27px;
    }
}


/* ==========================================================
   2. TABLETS / MOBILE NAVIGATION
========================================================== */

@media (max-width: 991.98px) {

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

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

    /* NAVBAR */

    .custom-navbar {
        padding: 8px 0;
        background: rgba(6, 20, 38, .96);
    }

    .navbar-brand img {
        height: 52px;
    }

    .brand-title {
        font-size: 1.08rem;
    }

    .brand-subtitle {
        max-width: 230px;
        font-size: .55rem;
        letter-spacing: .9px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 17px;
        max-height: calc(100dvh - 82px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 18px;

        background: rgba(6, 20, 38, .98);

        box-shadow: 0 20px 50px rgba(0, 0, 0, .30);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .navbar-nav {
        width: 100%;
        margin: 0 !important;
        gap: 4px;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 12px 13px !important;
        border-radius: 11px;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-quote-btn {
        width: 100%;
        margin: 13px 0 0 !important;
    }

    /* HERO */

    .hero {
        min-height: 100svh;
        height: auto;
        padding-top: 105px;
        padding-bottom: 55px;

        text-align: center;

        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: scroll;
    }

    .hero .container {
        width: 100%;
    }

    .hero .row {
        min-height: calc(100svh - 160px);
        height: auto;
        align-items: center;
    }

    .hero-title,
    .hero h1 {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;

        font-size: clamp(2.3rem, 7.5vw, 4rem);
        line-height: 1.08;
        letter-spacing: -.8px;
    }

    .hero-description,
    .hero p {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;

        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-features,
    .hero-buttons {
        justify-content: center;
    }

    .hero-contact-strip {
        position: relative;
        margin-top: 35px;
    }

    .hero-contact-strip .row > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .hero-contact-strip .row > div:last-child {
        border-bottom: 0;
    }

    /* NO HOVER MOVEMENT ON TOUCH-SIZED LAYOUT */

    .why-box,
    .process-step {
        transform: none !important;
    }

    /* FOOTER */

    .footer {
        padding-top: 58px;
    }
}


/* ==========================================================
   3. PHONES / PORTRAIT TABLETS
========================================================== */

@media (max-width: 767.98px) {

    /* ------------------------------------------------------
       GLOBAL
    ------------------------------------------------------ */

    body {
        font-size: 14px;
    }

    section {
        padding: 34px 0 !important;
    }

    .container,
    .container-fluid {
        width: 100%;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .flash-wrapper {
        padding-top: 88px;
    }

    h1 {
        font-size: 1.8rem !important;
        line-height: 1.15;
    }

    h2 {
        font-size: 1.45rem !important;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.05rem !important;
    }

    p {
        font-size: 13px;
        line-height: 1.55;
    }


    /* ------------------------------------------------------
       NAVBAR
    ------------------------------------------------------ */

    .navbar-brand {
        gap: 8px;
        max-width: calc(100% - 58px);
    }

    .navbar-brand img {
        height: 46px;
    }

    .brand-title {
        font-size: 1rem;
        line-height: 1.1;
    }

    .brand-subtitle {
        max-width: 185px;
        font-size: .49rem;
        line-height: 1.25;
        letter-spacing: .6px;
    }

    .custom-toggler {
        width: 44px;
        height: 42px;
        flex: 0 0 44px;
    }


    /* ------------------------------------------------------
       HERO
    ------------------------------------------------------ */

    .hero {
        min-height: auto !important;
        padding-top: 88px !important;
        padding-bottom: 34px !important;
        background-position: 58% center;
    }

    .hero .container {
        padding-bottom: 0;
    }

    .hero .row {
        min-height: auto;
    }

    .hero-title,
    .hero h1 {
        font-size: clamp(2rem, 9.5vw, 2.9rem) !important;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .hero-description,
    .hero p {
        margin-top: 18px;
        font-size: .95rem;
        line-height: 1.65;
    }

    .hero-badge {
        max-width: 100%;
        padding: 9px 14px;

        white-space: normal;

        font-size: .68rem;
        line-height: 1.3;
        letter-spacing: .75px;
    }

    .hero-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;

        margin-top: 20px;
    }

    .hero-features span {
        width: auto;
        min-width: 140px;

        justify-content: center;

        padding: 9px 12px;

        font-size: .76rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;

        margin-top: 24px !important;
    }

    .hero-buttons .btn,
    .hero .btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;

        margin: 0 !important;
        padding: 10px 15px !important;
    }

    .hero-contact-strip {
        margin-top: 28px;
    }

    .hero-contact-strip .row > div {
        width: 100%;
        padding: 10px 8px;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);

        font-size: .76rem;
    }


    /* ------------------------------------------------------
       SECTION TITLES
    ------------------------------------------------------ */

    .section-title {
        margin-bottom: 28px !important;
    }

    .section-title h2 {
        font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
    }

    .section-title p {
        font-size: .9rem;
    }


    /* ------------------------------------------------------
       COMMON CARD RULES
       Remove desktop fixed heights on mobile
    ------------------------------------------------------ */

    .service-card,
    .industry-card,
    .expertise-card,
    .client-card,
    .stat-card,
    .why-box,
    .process-step,
    .project-card,
    .review-card,
    .testimonial-card,
    .quote-form,
    .contact-info,
    main .card {

        min-height: 0 !important;
        height: auto !important;

        border-radius: 14px !important;
    }


    /* ------------------------------------------------------
       TWO-COLUMN MOBILE GRIDS
    ------------------------------------------------------ */

    .services .row,
    .expertise .row,
    .industries .row,
    .why-us .row,
    .projects .row {

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .services .row > [class*="col-"],
    .expertise .row > [class*="col-"],
    .industries .row > [class*="col-"],
    .why-us .row > [class*="col-"],
    .projects .row > [class*="col-"] {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        padding: 0 !important;
        margin: 0 !important;
    }


    /* ------------------------------------------------------
       SERVICES
    ------------------------------------------------------ */

    .service-card {
        width: 100% !important;

        padding: 14px 12px !important;
        margin: 0 !important;
    }

    .service-card i {
        width: 54px !important;
        height: 54px !important;

        margin-bottom: 10px !important;

        font-size: 25px !important;
    }

    .service-card h3,
    .service-card h4 {
        margin: 0 0 6px !important;

        font-size: .92rem !important;
        line-height: 1.25;
    }

    .service-card p,
    .service-card li {
        margin-bottom: 0 !important;

        font-size: .74rem !important;
        line-height: 1.4;
    }


    /* ------------------------------------------------------
       EXPERTISE
    ------------------------------------------------------ */

    .expertise-card {
        width: 100% !important;
        padding: 14px 12px !important;
    }

    .expertise-card i {
        margin-bottom: 9px !important;
        font-size: 1.7rem !important;
    }

    .expertise-card h3 {
        margin-bottom: 7px !important;

        font-size: .92rem !important;
        line-height: 1.25;
    }

    .expertise-card ul {
        margin-bottom: 0;
        padding-left: 15px;
    }

    .expertise-card li {
        margin-bottom: 4px;

        font-size: .72rem;
        line-height: 1.35;
    }


    /* ------------------------------------------------------
       INDUSTRIES
    ------------------------------------------------------ */

    .industry-card {
        padding: 14px 10px !important;
    }

    .industry-card i {
        width: 52px !important;
        height: 52px !important;

        margin-bottom: 10px !important;

        font-size: 24px !important;
    }

    .industry-card h4 {
        margin-bottom: 6px !important;

        font-size: .9rem !important;
        line-height: 1.25;
    }

    .industry-card p {
        margin-bottom: 0;

        font-size: .74rem;
        line-height: 1.4;
    }


    /* ------------------------------------------------------
       WHY CHOOSE US
    ------------------------------------------------------ */

    .why-box {
        display: block !important;

        padding: 14px 12px !important;
        margin-bottom: 0 !important;
    }

    .why-box i {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;

        margin-bottom: 9px;

        font-size: 21px !important;
    }

    .why-box h4 {
        margin-bottom: 5px;

        font-size: .92rem !important;
        line-height: 1.25;
    }

    .why-box p {
        font-size: .74rem !important;
        line-height: 1.4;
    }


    /* ------------------------------------------------------
       PROCESS — SHORTER / CLEANER CARDS
    ------------------------------------------------------ */

    .process {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .process-wrapper {
        max-width: 100% !important;
    }

    .process-step {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        gap: 12px !important;

        padding: 14px 14px !important;
        margin-bottom: 10px !important;

        border-radius: 15px !important;
    }

    .process-number {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;

        font-size: 17px !important;
    }

    .process-step h3 {
        margin: 0 0 4px !important;

        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    .process-step p {
        margin: 0 !important;

        font-size: 12px !important;
        line-height: 1.4 !important;
    }


    /* ------------------------------------------------------
       PROJECT / CLIENT CARDS
    ------------------------------------------------------ */

    .projects {
        padding-bottom: 100px !important;
    }

    .projects .client-card {
        width: 100% !important;

        min-height: 130px !important;
        height: auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 8px !important;

        padding: 14px 10px !important;

        overflow: hidden !important;

        text-align: center !important;
    }

    .projects .client-card i {
        margin: 0 !important;

        font-size: 1.6rem !important;
        line-height: 1 !important;
    }

    .projects .client-card h4 {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 2px !important;

        font-size: .82rem !important;
        line-height: 1.25 !important;

        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .project-card img {
        height: 150px !important;
        object-fit: cover;
    }

    .project-content {
        padding: 14px !important;
    }

    .project-content h3 {
        margin-bottom: 6px;

        font-size: .9rem !important;
    }

    .project-content p {
        margin-bottom: 8px;

        font-size: .74rem;
    }


    /* ------------------------------------------------------
       CUSTOMER REVIEWS / TESTIMONIALS — COMPACT MOBILE
       Consolidated review styles: one clean block only
    ------------------------------------------------------ */

    .reviews {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .review-card,
    .testimonial-card,
    .reviews .card {
        min-height: 0 !important;
        height: auto !important;

        padding: 0 !important;
        margin-bottom: 10px !important;

        border-radius: 14px !important;
        overflow: hidden;
    }

    /* Main content inside review cards */
    .review-card .card-body,
    .testimonial-card .card-body,
    .reviews .card .card-body {
        padding: 12px !important;
    }

    /* Customer name / review heading */
    .review-card h3,
    .review-card h4,
    .review-card h5,
    .testimonial-card h3,
    .testimonial-card h4,
    .testimonial-card h5,
    .reviews .card h3,
    .reviews .card h4,
    .reviews .card h5 {
        margin-top: 0 !important;
        margin-bottom: 4px !important;

        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    /* Review message */
    .review-card p,
    .testimonial-card p,
    .reviews .card p {
        margin-top: 3px !important;
        margin-bottom: 5px !important;

        font-size: 11.5px !important;
        line-height: 1.38 !important;
    }

    /* Date / secondary text */
    .review-card small,
    .testimonial-card small,
    .reviews .card small {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    /* Stars */
    .review-card .stars,
    .testimonial-card .stars,
    .reviews .stars {
        margin-top: 2px !important;
        margin-bottom: 5px !important;

        font-size: 11px !important;
        line-height: 1 !important;
    }

    /* Badges */
    .review-card .badge,
    .testimonial-card .badge,
    .reviews .card .badge {
        padding: 4px 7px !important;
        font-size: 10px !important;
    }

    /* Admin / business response */
    .review-card .bg-primary-subtle,
    .review-card .bg-light,
    .testimonial-card .bg-primary-subtle,
    .testimonial-card .bg-light,
    .reviews .card .bg-primary-subtle,
    .reviews .card .bg-light {
        padding: 8px 10px !important;

        margin-top: 6px !important;
        margin-bottom: 5px !important;

        border-radius: 10px !important;
    }

    /* Review footer */
    .review-card .card-footer,
    .testimonial-card .card-footer,
    .reviews .card .card-footer {
        padding: 7px 12px !important;
    }

    /* Prevent Bootstrap row/column stretching review cards */
    .reviews .row {
        align-items: start !important;
    }

    .reviews .row > [class*="col-"] {
        height: auto !important;
        align-self: start !important;
    }

    /* ------------------------------------------------------
       CONTACT — SHORTER GET IN TOUCH CARD
    ------------------------------------------------------ */

    .quote {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .quote .row {
        align-items: flex-start !important;
    }

    .quote .row > [class*="col-"] {
        height: auto !important;
        align-self: flex-start !important;
    }

    .quote .contact-info,
    .contact-info {
        height: auto !important;
        min-height: 0 !important;

        padding: 16px !important;

        border-radius: 16px !important;
    }

    .contact-info h3 {
        margin-bottom: 10px !important;

        font-size: 19px !important;
    }

    .contact-info > p {
        margin-bottom: 12px !important;

        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .info-item {
        min-height: 0 !important;

        display: flex;
        align-items: center !important;

        gap: 10px !important;

        margin-bottom: 8px !important;
        padding: 6px 0 !important;
    }

    .info-item:last-child {
        margin-bottom: 0 !important;
    }

    .info-item i {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;

        font-size: 17px !important;
    }

    .info-item h5 {
        margin: 0 0 2px !important;

        font-size: 13px !important;
    }

    .info-item p {
        margin: 0 !important;

        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }


    /* ------------------------------------------------------
       QUOTE / CONTACT FORM — SHORTER
    ------------------------------------------------------ */

    .quote .quote-form,
    .quote-form {
        height: auto !important;
        min-height: 0 !important;

        padding: 14px !important;

        border-radius: 16px !important;
    }

    .quote-form .form-control,
    .quote-form .form-select,
    .quote-form input,
    .quote-form select,
    input,
    select {
        min-height: 40px !important;
        height: 40px !important;

        padding: 7px 10px !important;

        font-size: 13px !important;
    }

    .quote-form textarea,
    textarea.form-control,
    textarea {
        min-height: 88px !important;
        height: 88px !important;

        padding: 9px 10px !important;

        font-size: 13px !important;
    }

    .quote-form button[type="submit"] {
        min-width: 0 !important;
        min-height: 40px !important;

        padding: 8px 13px !important;

        font-size: 12.5px !important;
    }


    /* ------------------------------------------------------
       BUTTONS
    ------------------------------------------------------ */

    .btn,
    .primary-btn,
    .secondary-btn,
    .cta-btn {
        min-height: 38px !important;

        padding: 8px 13px !important;

        border-radius: 9px !important;

        font-size: 12.5px !important;
    }


    /* ------------------------------------------------------
       FAQ
    ------------------------------------------------------ */

    .accordion-item {
        margin-bottom: 10px !important;
        border-radius: 13px !important;
    }

    .accordion-button {
        padding: 14px !important;
        font-size: .9rem !important;
    }

    .accordion-body {
        padding: 14px !important;
        font-size: 12.5px !important;
        line-height: 1.55 !important;
    }


    /* ------------------------------------------------------
       FOOTER
    ------------------------------------------------------ */

    .footer {
        padding: 34px 0 18px !important;
    }

    .footer .row {
        row-gap: 26px;
    }

    .footer-logo {
        width: 56px;
        height: 56px;
    }

    .footer h3 {
        font-size: 1.2rem;
    }

    .footer h4 {
        margin-bottom: 14px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }


    /* ------------------------------------------------------
       FLOATING CONTROLS
    ------------------------------------------------------ */

    .whatsapp-float,
    .back-to-top,
    .scroll-top {
        right: 14px !important;

        width: 46px !important;
        height: 46px !important;

        font-size: 1.1rem !important;

        z-index: 9998 !important;
    }

    .whatsapp-float {
        bottom: 14px !important;
    }

    .back-to-top {
        bottom: 68px !important;
    }
}


/* ==========================================================
   4. SMALL PHONES
========================================================== */

@media (max-width: 575.98px) {

    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .navbar-brand img {
        height: 44px;
    }

    .brand-title {
        font-size: .95rem;
    }

    .brand-subtitle {
        display: block;
        max-width: 155px;
        font-size: .45rem;
    }

    .hero-title,
    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.45rem) !important;
    }

    .hero-description,
    .hero p {
        font-size: .9rem;
    }

    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .hero-features span {
        width: 100%;
        min-width: 0;
    }

    /* Make two-column cards slightly tighter */

    .services .row,
    .expertise .row,
    .industries .row,
    .why-us .row,
    .projects .row {
        gap: 8px !important;
    }

    .service-card,
    .industry-card,
    .expertise-card,
    .why-box {
        padding: 12px 9px !important;
    }

    .process-step {
        padding: 12px !important;
    }

    .process-number {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }
}


/* ==========================================================
   5. VERY SMALL PHONES
========================================================== */

@media (max-width: 390px) {

    .brand-subtitle {
        display: none;
    }

    .hero-badge {
        width: 100%;
        border-radius: 14px;
    }

    .hero-title,
    .hero h1 {
        font-size: 1.85rem !important;
    }

    .hero-description,
    .hero p {
        font-size: .85rem;
    }

    .whatsapp-float,
    .back-to-top,
    .scroll-top {
        right: 11px !important;

        width: 44px !important;
        height: 44px !important;
    }

    .projects .client-card {
        min-height: 115px !important;
    }
}


/* ==========================================================
   6. ULTRA-SMALL PHONES
   Switch complex grids to one column only when necessary.
========================================================== */

@media (max-width: 330px) {

    .services .row,
    .expertise .row,
    .industries .row,
    .why-us .row,
    .projects .row {
        grid-template-columns: 1fr !important;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   7. LANDSCAPE PHONES
========================================================== */

@media (max-width: 900px) and (orientation: landscape) {

    .hero {
        min-height: auto !important;

        padding-top: 92px !important;
        padding-bottom: 30px !important;
    }

    .hero-title,
    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero-description,
    .hero p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .hero-features {
        margin-top: 15px;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;

        margin-top: 18px !important;
    }

    .hero-buttons .btn {
        width: auto !important;
        min-width: 160px;
    }

    .hero-contact-strip {
        position: relative;
        margin-top: 25px;
    }
}


/* ==========================================================
   8. TALL PHONE HERO SAFETY
========================================================== */

@media (max-width: 767.98px) and (min-height: 800px) {

    .hero {
        min-height: auto !important;
    }
}


/* ==========================================================
   9. TOUCH DEVICES
========================================================== */

@media (hover: none) and (pointer: coarse) {

    .btn,
    .nav-link,
    .social-links a,
    .whatsapp-float,
    .back-to-top {
        min-height: 40px;
    }

    .service-card:hover,
    .industry-card:hover,
    .expertise-card:hover,
    .client-card:hover,
    .project-card:hover,
    .why-box:hover,
    .process-step:hover,
    .review-card:hover {
        transform: none !important;
    }
}


/* ==========================================================
   10. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}


/* ==========================================================
   11. PRINT
========================================================== */

@media print {

    .custom-navbar,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .hero-contact-strip {
        display: none !important;
    }

    body {
        background: #fff;
    }

    main {
        padding: 0;
    }
}