/* Global polish */
* {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
}

/* Better section spacing */
@media (max-width: 991px) {
    section {
        overflow: hidden;
    }

    .display-5,
    .display-6 {
        line-height: 1.18;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Mobile hero polish */
@media (max-width: 575px) {
    .premium-home-hero,
    .about-page-hero,
    .services-page-hero,
    .service-detail-hero,
    .contact-page-hero,
    .gallery-page-hero {
        padding-top: 48px !important;
        padding-bottom: 52px !important;
    }

    .hero-title,
    .display-5 {
        font-size: 2.05rem !important;
        letter-spacing: -0.7px !important;
    }

    .display-6 {
        font-size: 1.75rem !important;
        letter-spacing: -0.4px;
    }

    .lead {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.95rem;
    }
}

/* Header mobile fix */
@media (max-width: 575px) {
    .mt-header {
        padding-top: 8px !important;
        padding-bottom: 10px !important;
    }

    .mt-top-row {
        display: none !important;
    }

    .mt-nav-box {
        border-radius: 16px !important;
        min-height: 60px !important;
        padding: 8px 12px !important;
    }

    .mt-brand {
        gap: 10px !important;
    }

    .mt-logo-box {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
    }

    .mt-brand-text strong {
        max-width: 165px !important;
        font-size: 16px !important;
    }

    .mt-brand-text small {
        display: none !important;
    }

    .mt-mobile-toggle {
        width: 42px !important;
        height: 42px !important;
        border-radius: 13px !important;
    }

    .mt-mobile-panel {
        border-radius: 16px !important;
        padding: 12px !important;
    }

    .mt-mobile-panel a {
        border-radius: 14px !important;
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
}

/* Buttons full width on small screens */
@media (max-width: 575px) {
    .hero-buttons,
    .about-buttons,
    .service-detail-buttons,
    .services-hero-buttons,
    .contact-quick-buttons,
    .contact-page-buttons,
    .footer-cta-buttons,
    .about-cta-buttons,
    .gallery-cta-buttons,
    .service-final-buttons {
        width: 100%;
    }

    .hero-buttons a,
    .hero-buttons .btn,
    .about-buttons a,
    .about-buttons .btn,
    .service-detail-buttons a,
    .services-hero-buttons a,
    .contact-quick-buttons a,
    .contact-page-buttons a,
    .footer-cta-buttons a,
    .about-cta-buttons a,
    .gallery-cta-buttons a,
    .service-final-buttons a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Cards mobile polish */
@media (max-width: 575px) {
    .hero-visual-card,
    .about-main-card,
    .home-contact-form-card,
    .contact-form-box,
    .service-content-card,
    .service-sidebar-card,
    .services-page-card,
    .mt-service-card,
    .mt-testimonial-card,
    .gallery-page-card,
    .mt-gallery-card,
    .footer-top-cta {
        border-radius: 22px !important;
    }

    .home-contact-form-card,
    .contact-form-box,
    .service-content-card,
    .service-sidebar-card,
    .mt-testimonial-card {
        padding: 22px !important;
    }

    .service-section-heading,
    .form-card-header,
    .contact-form-heading {
        gap: 12px !important;
    }

    .service-section-icon,
    .form-card-icon,
    .contact-form-icon {
        width: 54px !important;
        height: 54px !important;
        border-radius: 17px !important;
        font-size: 24px !important;
    }
}

/* Forms mobile polish */
@media (max-width: 575px) {
    .form-control,
    .form-select {
        min-height: 50px !important;
        font-size: 15px !important;
    }

    textarea.form-control {
        min-height: 120px !important;
    }
}

/* Footer mobile polish */
@media (max-width: 575px) {
    .mt-footer {
        padding-top: 42px !important;
    }

    .footer-main {
        padding-bottom: 30px !important;
    }

    .footer-widget {
        margin-top: 8px;
    }

    .footer-bottom {
        padding-bottom: 82px !important;
    }

    .footer-floating-whatsapp {
        width: 54px !important;
        height: 54px !important;
        right: 16px !important;
        bottom: 16px !important;
        font-size: 27px !important;
    }
}

/* Tablet menu fix */
@media (min-width: 992px) and (max-width: 1199px) {
    .mt-brand {
        min-width: 210px !important;
    }

    .mt-brand-text strong {
        font-size: 18px !important;
    }

    .mt-desktop-menu {
        gap: 7px !important;
    }

    .mt-desktop-menu a {
        padding: 10px 11px !important;
        font-size: 12px !important;
    }
}
