/* =========================================
   PAGE BACKGROUND
   ========================================= */

body {
    background-color: hsl(210, 50%, 99%);
    color: hsl(240, 93%, 11%);
    font-family: Arial, sans-serif;
}


/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    background-color: hwb(253 1% 67%) !important;
}

.navbar .nav-link {
    color: lab(74.38% 36.5 -26.41) !important;
}

.navbar .nav-link:hover {
    color: #ffcc00 !important;
}


/* =========================================
   NAVBAR LOGO
   ========================================= */

.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 50%;
}


/* =========================================
   FOOTER
   ========================================= */

footer,
footer.bg-dark {
    background-color: #00264d !important;
    color: #ffffff !important;
}

footer a,
footer a.text-light {
    color: #ffffff !important;
}

footer a:hover,
footer a:focus {
    color: #ffcc00 !important;
}

footer a.text-success {
    color: #75e69c !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: #ffffff !important;
}

footer p {
    color: #ffffff !important;
}


/* =========================================
   BUTTONS
   ========================================= */

.btn-primary {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #003f82 !important;
    border-color: #003f82 !important;
    color: #ffffff !important;
}

.btn {
    max-width: 100%;
}


/* =========================================
   GALLERY PLACEHOLDERS
   ========================================= */

.ratio {
    background-color: hsl(0, 25%, 80%);
    background-image: none;
}


/* =========================================
   PRODUCT LAYOUT SWITCHER
   ========================================= */

#products.grid .card {
    width: 100%;
}

#products.list .card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#products.list .card img {
    width: 120px;
    height: auto;
    margin-right: 20px;
}

#products.list .card-body {
    text-align: left;
}

#products.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#products.gallery > .col,
#products.gallery > [class*="col-"] {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

#products.gallery .card img {
    height: 200px;
    object-fit: cover;
}


/* =========================================
   ABOUT PRODUCTS SECTION
   ========================================= */

.about-products {
    background: #eef6f2;
    padding: 50px 20px;
    border-radius: 15px;
}

.about-products .section-title {
    font-size: 2rem;
    color: #14532d;
    position: relative;
    display: inline-block;
}

.about-products .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #10b981;
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-products .intro-text {
    max-width: 800px;
    margin: 15px auto 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}

.about-products .feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border: 1px solid #d1fae5;
}

.about-products .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.about-products h5 {
    color: #0f766e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.about-products p {
    font-size: 0.95rem;
    color: #4b5563;
}


/* =========================================
   PRODUCTS & SERVICES CARDS
   ========================================= */

/* Main card */
.card {
    overflow: hidden;
}

/* Product/Service carousel images */
.product-card-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 10px;
    background-color: #f8f9fa;
}

/* Smooth image transition */
.carousel-item .product-card-img {
    transition: transform 0.3s ease;
}

/* Optional subtle hover effect */
.card:hover .product-card-img {
    transform: scale(1.02);
}

/* Keep product/service cards visually consistent */
.card-body {
    display: flex;
    flex-direction: column;
}

.card-body .btn {
    margin-top: auto;
}


/* =========================================
   GENERAL IMAGES & VIDEOS
   ========================================= */

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

img,
video {
    max-width: 100%;
}


/* =========================================
   HERO VIDEO - DESKTOP
   ========================================= */

section.position-relative {
    max-width: 100%;
    overflow: hidden;
    background: #000;
}

section.position-relative video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* =========================================
   HERO VIDEO - ALL PAGES
   ========================================= */

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* =========================================
   RESPONSIVE - TABLET
   ========================================= */

@media (max-width: 991px) {

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar .nav-link {
        padding: 10px 15px;
    }


    /* Hero */

    section.position-relative {
        height: 70vh !important;
        min-height: 450px !important;
        max-height: 650px !important;
    }

    section.position-relative video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    section.position-relative h1 {
        font-size: 2.2rem;
    }

    section.position-relative p {
        font-size: 1rem;
    }


    /* Existing product gallery */

    #products.gallery > .col,
    #products.gallery > [class*="col-"] {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }


    /* New Products & Services cards */

    .product-card-img {
        height: 240px;
        padding: 10px;
    }


    /* Logo */

    .navbar-logo {
        width: 42px;
        height: 42px;
    }
}


/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 767px) {

    body {
        font-size: 15px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar .nav-link {
        padding: 8px 10px;
    }


    /* Navbar logo */

    .navbar-logo {
        width: 38px;
        height: 38px;
        margin-right: 8px;
    }


    /* =====================================
       HERO VIDEO
       ===================================== */

    section.position-relative {
        height: 65vh !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        background: #000;
    }

    section.position-relative video {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }


    /* =====================================
       HERO TEXT
       ===================================== */

    section.position-relative .translate-middle {
        width: 88% !important;
        max-width: 88% !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        padding: 18px !important;
    }

    section.position-relative h1 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    section.position-relative p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    section.position-relative .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }


    /* =====================================
       EXISTING PRODUCT GALLERY
       ===================================== */

    #products.gallery {
        gap: 12px;
    }

    #products.gallery > .col,
    #products.gallery > [class*="col-"] {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #products.gallery .card img {
        height: 220px;
        object-fit: cover;
    }


    /* =====================================
       PRODUCT LIST
       ===================================== */

    #products.list .card {
        flex-direction: column;
        align-items: stretch;
    }

    #products.list .card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        margin-right: 0;
    }

    #products.list .card-body {
        text-align: center;
    }


    /* =====================================
       NEW PRODUCTS & SERVICES IMAGES
       ===================================== */

    .product-card-img {
        height: 230px;
        padding: 12px;
        object-fit: contain;
    }


    /* =====================================
       ABOUT PRODUCTS
       ===================================== */

    .about-products {
        padding: 35px 15px;
        border-radius: 10px;
    }

    .about-products .section-title {
        font-size: 1.6rem;
    }

    .about-products .intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .about-products h5 {
        font-size: 1.1rem;
    }


    /* =====================================
       FOOTER
       ===================================== */

    footer {
        text-align: center;
    }

    footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* =====================================
       BUTTONS
       ===================================== */

    .btn {
        max-width: 100%;
    }
}


/* =========================================
   RESPONSIVE - VERY SMALL PHONES
   ========================================= */

@media (max-width: 480px) {

    /* Hero */

    section.position-relative {
        height: 60vh !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    section.position-relative video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }


    /* Hero text */

    section.position-relative h1 {
        font-size: 1.45rem;
    }

    section.position-relative p {
        font-size: 0.85rem;
    }


    /* Navbar */

    .navbar-brand {
        font-size: 0.9rem;
    }

    .navbar-logo {
        width: 35px;
        height: 35px;
    }


    /* About products */

    .about-products .section-title {
        font-size: 1.4rem;
    }


    /* Existing gallery */

    #products.gallery .card img {
        height: 180px;
    }


    /* New Products & Services images */

    .product-card-img {
        height: 210px;
        padding: 10px;
        object-fit: contain;
    }
}


/* =========================================
   ACCESSIBILITY - CONTRAST FIX
   ========================================= */

.btn-primary {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #003f82 !important;
    border-color: #003f82 !important;
    color: #ffffff !important;
}

footer,
footer.bg-dark {
    background-color: #00264d !important;
    color: #ffffff !important;
}

footer a,
footer a.text-light {
    color: #ffffff !important;
}

footer a:hover,
footer a:focus {
    color: #ffcc00 !important;
}

footer a.text-success {
    color: #75e69c !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: #ffffff !important;
}

footer p {
    color: #ffffff !important;
}
/* =========================================================
   PRODUCT INQUIRY / QUANTITY CONTROL
   ========================================================= */

.inquiry-cart-box {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.quantity-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #1f2937;
}

.quantity-control {
    display: flex;
    align-items: center;
    width: 100%;
}

.quantity-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #0056b3;
    background: #0056b3;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.quantity-btn:hover {
    background: #003f82;
    border-color: #003f82;
}

.quantity-minus {
    border-radius: 6px 0 0 6px;
}

.quantity-plus {
    border-radius: 0 6px 6px 0;
}

.quantity-input {
    width: 70px !important;
    height: 42px;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-left: 0 !important;
    border-right: 0 !important;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input {
    -moz-appearance: textfield;
}

.add-inquiry-btn {
    font-weight: 600;
    min-height: 42px;
    transition: 0.2s ease;
}

.add-inquiry-btn:hover {
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .inquiry-cart-box {
        margin-top: 15px;
    }

    .quantity-btn {
        width: 44px;
        height: 44px;
    }

    .quantity-input {
        height: 44px;
        flex: 1;
        max-width: 80px;
    }

    .add-inquiry-btn {
        width: 100%;
    }
}
/* =========================================================
   INQUIRY SUCCESS MESSAGE
   ========================================================= */

.inquiry-success-message {
    position: fixed;
    top: 90px;
    right: 25px;
    z-index: 9999;

    background: #198754;
    color: #ffffff;

    padding: 14px 18px;
    border-radius: 8px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);

    font-size: 14px;
    line-height: 1.5;

    max-width: 380px;

    opacity: 0;
    transform: translateY(-10px);

    transition: all 0.3s ease;
}

.inquiry-success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.inquiry-success-message strong {
    font-size: 16px;
}

.inquiry-success-message small {
    opacity: 0.9;
}

@media (max-width: 767px) {

    .inquiry-success-message {
        top: 80px;
        left: 15px;
        right: 15px;
        max-width: none;
        text-align: center;
    }
}
/* =========================================================
   INQUIRY NEXT STEP INSTRUCTION
   ========================================================= */

.inquiry-next-step {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   HOME PAGE - ALL PRODUCTS & SERVICES CAROUSEL ARROWS
   ========================================================= */

.card .carousel-control-prev,
.card .carousel-control-next {
    width: 60px;
    opacity: 1 !important;
}

.card .carousel-control-prev-icon,
.card .carousel-control-next-icon {
    width: 45px;
    height: 45px;

    background-color: rgba(0, 0, 0, 0.80);
    background-size: 45% 45%;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 50%;
    filter: none !important;
}

/* Hover */

.card .carousel-control-prev:hover .carousel-control-prev-icon,
.card .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.95);
    transform: scale(1.08);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .card .carousel-control-prev,
    .card .carousel-control-next {
        width: 50px;
    }

    .card .carousel-control-prev-icon,
    .card .carousel-control-next-icon {
        width: 38px;
        height: 38px;
    }
}
