body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background-color: #D9D9D9;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;

}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #bf1e2e;
    border-radius: 2px;
}

/* The hidden overlay menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    color: white;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu a:hover {
    transform: scale(1.05);
    color: #bf1e2e;
}


.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    align-self: flex-end;
    cursor: pointer;
}

/* Hide desktop nav items below 768px */
@media (max-width: 768px) {
    .nav-items {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

.nav-items {
    gap: 20px;
}

.logo {
    height: 10vh;
}

ul {
    display: flex;
    flex-direction: row;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    font-size: 20px;
    color: #bf1e2e;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a:hover {
    transform: scale(1.05);
    color: white;
}

/* Carousel container */
.carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

/* Stack slides and fade */
.carousel .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
}

/* Visible slide */
.carousel .slide.active {
    opacity: 1;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .carousel .slide {
        transition: none;
    }
}

.site-header {
    display: flex;
    flex-direction: row;
    font-size: 70px;
    font-weight: 600;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)),
        url(images/qview.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    height: 80vh;
}

.site-card {
    display: flex;
    flex-direction: row;
    font-size: 70px;
    font-weight: 600;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)),
        url(images/intercom.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    height: 80vh;
}

.site-card-two {
    display: flex;
    flex-direction: row;
    font-size: 70px;
    font-weight: 600;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)),
        url(images/pumps.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    height: 80vh;
}

.site-card-three {
    display: flex;
    flex-direction: row;
    font-size: 70px;
    font-weight: 600;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)),
        url(images/site-intercom.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    height: 80vh;
}

.site-header-p {
    margin: 80px;
}

.service-ul {
    display: flex;
    flex-direction: column;
}

.service-li {
    list-style: circle;
    font-size: 22px;
    margin-bottom: 20px;
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: 400;
    padding: 30px;
}


h2 {
    font-size: 50px;
    color: #bf1e2e;
    font-weight: 600;
}

.video-container {
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 30px;
}

.video-text {
    font-size: 20px;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    background-color: black;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.footer-items {
    padding: 0px;
    margin: 0px;
    gap: 20px;
}

.footer-item {
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-item:hover {
    color: #bf1e2e;
    transform: scale(1.05);
}

.copyright {
    color: white;
    margin: 0px;
    color: #D9D9D9;
    font-weight: 200;
    display: flex;
    justify-content: center;
}

.container {
    margin: 80px;
    font-size: 22px;
}

h3 {
    font-size: 30px;
}

/* -------------------- Responsive Enhancements -------------------- */

/* Make images scale nicely */
img {
    max-width: 100%;
    height: auto;
}

/* Scale large hero text responsively (caps at your original 70px) */
.site-header,
.site-card,
.site-card-two,
.site-card-three {
    font-size: clamp(28px, 6vw, 70px);
}

/* Keep slide content readable and centered on narrow screens */
.site-header-p {
    margin: clamp(20px, 6vw, 80px);
    max-width: 1100px;
}

/* Adjust carousel height at different breakpoints */
@media (max-width: 1024px) {
    .carousel {
        height: 70vh;
    }

    nav {
        padding: 16px;
    }

    .logo {
        height: 8vh;
    }
}

@media (max-width: 768px) {

    /* Stack nav on tablet/portrait and tighten spacing */

    ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 6px;
    }

    li {
        margin: 6px 0;
    }

    a {
        font-size: 18px;
    }

    .carousel {
        height: 60vh;
    }

    .site-header-p {
        margin: 24px;
    }

    .header-container {
        margin: 20px;
        font-size: 22px;
    }

    .container {
        padding: 20px;
    }

    h2 {
        font-size: clamp(28px, 6vw, 44px);
    }

    .video-container {
        width: 92%;
        margin: 20px auto;
    }

    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .footer-items {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 52vh;
    }

    .logo {
        height: 7vh;
    }

    nav {
        padding: 12px;
    }

    a {
        font-size: 16px;
    }

    .site-header-p {
        margin: 16px;
    }

    .header-container {
        padding: 16px;
        font-size: 18px;
    }

    .container {
        margin: 16px;
        font-size: 18px;
    }

    h2 {
        font-size: clamp(24px, 7vw, 36px);
    }

    .video-container {
        width: 100%;
        border-radius: 10px;
        margin: 16px 0;
    }

    .footer-nav {
        gap: 8px;
        padding: 12px 16px;
    }
}