
@media (max-width: 767.98px) {

    /* ---------- NAVBAR (MOBILE ONLY) ---------- */

    /* Solid background when collapsed over hero */
    header.masthead {
        background-image: url("/assets/img/bg-masthead-mobile.png") !important;
        background-size: cover;
        background-position: center;
    }
    header.masthead h1 {
        color: #1a1a1a !important;                     /* dark fill */
        -webkit-text-stroke: 3px #d4af37 !important;
        text-stroke: 1px rgba(255,255,255,0.7) !important;          /* light outline */


        margin-top: 1.5rem !important;    /* increase if needed */
        margin-bottom: 1.25rem !important; /* space under the title */



    }

    header.masthead h2 {
        color: #222 !important;                        /* dark fill */
        -webkit-text-stroke: 1px #d4af37 !important;
        text-stroke: 1px #000000 !important;
    }

    .navbar,
    .navbar-collapse {
        background-color: #f5f5f5;
    }

    .navbar-brand img {
        max-height: 40px;
        max-width: 100px;
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-item {
        text-align: center;
        margin: 0.1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.45rem;
        font-size: 0.85rem;
    }

    .navbar-collapse {
        padding-top: 0.25rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* ---------- HERO / MASTHEAD (MOBILE ONLY) ---------- */

    header.masthead {
        padding-top: 5rem;
        padding-bottom: 3rem;
        text-align: center;
    }

    header.masthead h1 {
        font-size: 1.9rem;
        line-height: 1.15;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    header.masthead h2 {
        font-size: 1rem;
        padding: 0 0.75rem;
        line-height: 1.4;
        margin-bottom: 1.8rem;
    }

    header.masthead .btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.95rem;
        width: auto;
    }

    .masthead .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ---------- PROJECTS SECTION (WEBSITE DESIGN & SETUP) ---------- */

    .projects-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .projects-section .row {
        gap: 1.75rem;
    }

    .projects-section img.img-fluid {
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }

    .projects-section h4 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .projects-section p {
        font-size: 0.95rem;
        line-height: 1.55;
        padding: 0 0.5rem;
    }

    /* ---------- BLACK PANELS (QUICKBOOKS / GOOGLE MAPS) ---------- */

    .project {
        padding: 1.75rem 1.25rem;
        border-radius: 0.5rem;
    }

    .project-text h4 {
        font-size: 1.35rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        line-height: 1.3;
        text-align: center;
    }

    .project-text p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .project-text {
        text-align: center !important;
    }

    .row.gx-0.mb-5 img,
    .row.gx-0 img {
        margin-bottom: 1.25rem;
    }
}

/* =========================================================
   TABLET TWEAKS (optional, mild)
   ========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .project {
        padding: 2.25rem;
    }

    .project-text h4 {
        font-size: 1.45rem;
    }

    .project-text p {
        font-size: 1.05rem;
    }
}
