/*--------------------------------------------------------------
Rules that apply only on smaller screens
--------------------------------------------------------------*/

/* Essential Responsive Styles */
@media (max-width: 991px) {
    .title {
        font-size: 24px;
    }
}

@media (max-width: 1000px) {
    .mini-title {
        font-size: 18px;
        padding-right: 4px;
    }
    .hero-sec {
        max-height: initial;
    }
    .hero-img-bg2, .hero-img-bg1 {
        padding: 10rem 0;
    }
}

@media (max-width: 991px) {
    .process-right-pad {
        padding-right: 12px;
    }
    .process-left-pad {
        border-left: none;
        padding-left: 12px;
    }
    .process-img {
        margin-top: 10px;
    }
    .hero-sec {
        max-height: initial;
    }
    .hero-img-bg2, .hero-img-bg1 {
        padding: 10rem 0;
    }
    .navbar-nav {
        padding: 8px 15px 10px;
    }
    .navbar-collapse {
        background-color: #fff;
        position: absolute;
        width: 100%;
        top: 40px;
        left: 0;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        color: #000;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

@media (max-width: 768px) {
    .hero-sec .mini-title {
        font-size: 15px;
        padding-right: 66px;
    }
    .sec-pad {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hero-textdiv {
        left: 0%;
        bottom: 10%;
    }
    .hero-img-bg1, .hero-img-bg2 {
        background-position: top center;
        background-size: cover;
    }
}

@media (max-width: 575px) {
    .title {
        font-size: 22px;
        margin-bottom: 9px !important;
    }
    .mini-title {
        font-size: 16px;
    }
    .nav-pills .nav-link {
        padding: 6px 15px;
    }
    .theme-btn {
        padding: 6px 21px;
    }
    .hero-img-bg2, .hero-img-bg1 {
        padding: 82% 0 4rem;
    }
    .catalogue-icon {
        height: 90px;
        width: auto;
    }
}

@media (max-width: 767px) {
    .project-box {
        padding: 0;
    }
    .project-box::after {
        display: none;
    }
    .hero-img-bg2, .hero-img-bg1 {
        padding: 10rem 0;
    }
}









/* Phones */
.m-gallery { display: none; }
@media (max-width: 767px) {
    .logo { width: 10.5rem; }
    /* banner: full screen, drifting slowly across the building */
    .hero-img-bg1 { background-position: 22% 85%; animation: heroPan 36s ease-in-out infinite alternate; }
    /* project highlight: the two photos side by side, swiped sideways */
    #highlight { padding-bottom: 1rem; }
    #highlight .col-lg-8 { margin-bottom: 0 !important; }
    #projects { padding-top: 2rem; }
    .project-highlight1-img-div, .project-highlight2-img-div { display: none; }
    .m-gallery {
        display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 1.75rem -12px 0 0; padding-right: 12px; scrollbar-width: none;
    }
    .m-gallery::-webkit-scrollbar { display: none; }
    .m-slide { flex: 0 0 84%; height: calc(84vw - 20px); background-size: cover; background-position: center; scroll-snap-align: start; }
    .f-logo-div { flex-wrap: wrap; row-gap: .75rem; }
}
/* Phones: menu, banner text, project cards, footer */
@media (max-width: 767px) {
    .navbar-collapse {
        background-color: #000; top: 100%; left: 50%; transform: translateX(-50%);
        width: 100vw; padding: 4px 24px 22px; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;
    }
    .navbar-nav { padding: 0; align-items: stretch !important; }
    .navbar-expand-lg .navbar-nav .nav-link {
        color: #fff; font-size: 22px; font-weight: 300; text-align: left;
        padding: 16px 0 !important; border-bottom: 1px solid #222;
    }
    #modelInputContainer { width: 100%; opacity: 1; margin-top: 18px; }
    .model-number input[type="text"] { width: 100%; padding: 12px 14px; font-size: 16px; }
    #search-icon { display: none; }
    .hero-sec .mini-title { font-size: 25px; line-height: 1.3; padding-right: 24px; }
    .hero-textdiv { bottom: 7%; }
    .hero-textdiv .theme-btn { margin-top: 6px; }
    .slider-nav { display: none; }
    #main-project-slider {
        gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-right: -12px; padding-right: 12px; scrollbar-width: none;
    }
    #main-project-slider::-webkit-scrollbar { display: none; }
    #main-project-slider .item { flex: 0 0 84%; scroll-snap-align: start; }
    #main-project-slider .project-box { padding-left: 0; padding-right: 0; }
    #main-project-slider .project-box::after { display: none; }
    .f-logo-div { flex-direction: column; align-items: flex-start; row-gap: .9rem; }
    .f-logo-div p { margin-left: 0 !important; }
}
/* Phones: the two largest sizes step down; photos in both swipe rows share one size */
@media (max-width: 767px) {
    .hero-sec .mini-title { font-size: 21px; line-height: 1.3; }
    .title { font-size: 24px; line-height: 1.2; margin-bottom: 12px !important; }
    /* menu links are tap targets, so they use the paragraph size; fields at 16 stop iPhones zooming in on tap */
    .navbar-expand-lg .navbar-nav .nav-link { font-size: 15px; padding: 14px 0 !important; }
    .form-control, .form-control-white, .model-number input[type="text"] { font-size: 16px; }
    #main-project-slider .project-img-div { height: calc(84vw - 20px); }
    #main-project-slider .project-img { background-position: center; }
}
@keyframes heroPan { from { background-position: 22% 85%; } to { background-position: 74% 85%; } }
@media (prefers-reduced-motion: reduce) { .hero-img-bg1 { animation: none; } }
