/* ============================================================
   MM Geomatics Surveys — Responsive Styles
   Bootstrap 5.3.3 breakpoints
   xs: <768px | sm: ≥768px | md: ≥992px | lg: ≥1200px
   ============================================================ */

/* ----------  Tablet & Below (≤991px)  ---------- */
@media (max-width: 991px) {
    .section-title {
        margin-bottom: 50px;
    }
    .section-title h2 {
        font-size: 36px;
    }
    .services-post {
        margin-bottom: 30px;
    }
    .about-img {
        margin-bottom: 30px;
        text-align: center;
    }
    .navbar-nav > li > a {
        font-size: 13px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ----------  Mobile (≤767px)  ---------- */
@media (max-width: 767px) {
    /* Navigation: stacked, full width links */
    .navbar-top .navbar-nav > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }
    .navbar-collapse {
        background: #fff;
        border-top: 1px solid #f2f2f2;
    }
    .navbar-contact { flex-wrap: wrap; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #eaeaea; }
    .navbar-contact li { padding: 4px 8px; border: none; }
    .navbar-contact li:last-child { border: none; }

    /* Hero */
    .hero-wrap .hero-text h1 {
        font-size: 32px;
        line-height: 1.15;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }
    .hero-wrap .hero-text .lead {
        font-size: 17px;
    }
    .hero-wrap .hero-text .sub {
        font-size: 15px;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 28px;
    }
    .section-title p {
        font-size: 15px;
    }

    /* Sectors & Services: single column */
    .services-post {
        margin-bottom: 25px;
        text-align: center;
    }
    .services-post h2 {
        font-size: 20px;
    }

    /* Portfolio: single column, larger tap targets */
    #portfolio-list li {
        width: 100%;
        margin-bottom: 20px;
    }
    .portfolio-caption h4 {
        font-size: 18px;
    }

    /* Team: single column */
    .team-member {
        margin-bottom: 30px;
        text-align: center;
    }
    .team-member img {
        max-width: 250px;
        margin: 0 auto;
    }

    /* Contact form: full width */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    /* Back to top button spacing */
    #go-top {
        margin: 15px 0;
        display: inline-block;
    }

    /* Leaflet map height on mobile */
    #map {
        height: 250px !important;
    }

    /* Footer */
    #footer .col-md-8,
    #footer .col-md-4 {
        text-align: center;
    }
}

/* ----------  Small phones (≤480px)  ---------- */
@media (max-width: 480px) {
    .hero-wrap .hero-text h1 {
        font-size: 28px;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .col-xs-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ----------  Touch-friendly tap targets (all mobile)  ---------- */
@media (max-width: 991px) {
    a.btn,
    button.btn,
    .navbar-toggle {
        min-height: 44px;
        line-height: 1.2;
    }
}

/* ----------  Prevent horizontal scroll  ---------- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}


