/* =======================
   colors
======================= */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-blue {
    background-color: var(--primary-blue) !important;
}

.text-blue {
    color: var(--primary-blue) !important;
}

.border-blue {
    border-color: var(--primary-blue) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.bg-white {
    background-color: var(--text-white) !important;
}

.bg-section {
    background-color: var(--bg-section) !important;
}

.fs-13 {
    font-size: clamp(10px, 1vw, 13px);
}

.fs-15 {
    font-size: clamp(12px, 1.2vw, 15px);
}

.fs-19 {
    font-size: clamp(11px, 1.5vw, 19px);
}

.fs-20 {
    font-size: clamp(10px, 1.5vw, 20px);
}

.fs-22 {
    font-size: clamp(11px, 1.5vw, 22px);
}

.fs-30 {
    font-size: clamp(15px, 2vw, 30px);
}

.fs-40 {
    font-size: clamp(20px, 3vw, 40px);
}

.fs-60 {
    font-size: clamp(27px, 4vw, 60px);
}

.fs-50 {
    font-size: clamp(30px, 3vw, 50px);
}

.fs-90 {
    font-size: clamp(40px, 6.5vw, 90px);
}

.hero-section {
    position: relative;
    background-color: var(--primary-blue);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-bg-image {
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.letter-spacing-4 {
    letter-spacing: 4px;
}

.text-justify {
    text-align: justify;
}

::placeholder {
    color: var(--text-white) !important;
    padding: 0 10px !important;
    font-weight: 300 !important;
}

/* =======================
   Consultation Button
======================= */
.btn-consultation {
    background: linear-gradient(90deg, #ed7c0f 0%, #fcbf49 100%);
    height: 70px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-consultation .icon-circle {
    width: 54px;
    height: 54px;
    transition: transform 0.3s ease;
}

.btn-consultation:hover .icon-circle {
    transform: scale(1.05);
}

/* =======================
   Navbar Shrink Behavior
======================= */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.navbar-shrink {
    background-color: var(--primary-blue) !important;
    padding-top: 15px !important;
    padding-bottom: 5px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* =======================
   Footer
======================= */
.main-footer {
    position: relative;
    padding-top: clamp(50px, 10vw, 200px) !important;
    margin-top: -50px;
    /* Image is on top, gradient is underneath it */
    background-image:
        url("/frontend/images/bg-footer.webp"),
        linear-gradient(to bottom, transparent 20%, #ef7a0b 100%);
    background-size: cover, cover;
    background-position:
        center bottom,
        center;
    background-repeat: no-repeat, no-repeat;
}

.main-footer-content {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(15px, 5.5vw, 88px) !important;
    padding-top: clamp(15px, 4vw, 64px) !important;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    color: var(--primary-blue);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 20px;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.back-to-top {
    width: 50px;
    height: 50px;
    background-color: var(--text-white);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.play-btn {
    width: clamp(80px, 12vw, 160px);
    height: clamp(80px, 12vw, 160px);
    text-decoration: none;
    z-index: 2;
    margin: 40px;
    margin-top: 100px;
}

.btn-scroll {
    width: 70px;
    height: 70px;
    border: none;
    cursor: pointer;
}

.navbar-nav li {
    border-top: 1px solid #fff;
    padding-top: 15px;
}

.about-us-right-column {
    background-image:
        url("/frontend/images/about-bg-end.webp"),
        linear-gradient(90deg, #ed7c0f 0%, #fcbf49 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    min-height: 500px;
}

/* =======================
   Responsive
======================= */
@media (max-width: 991.98px) {
    .mobile-offcanvas-bg {
        background-color: var(--primary-blue) !important;
    }
}

@media (max-width: 500px) {
    .letter-spacing-4 {
        letter-spacing: 0px;
    }

    .play-btn {
        margin: 0 !important;
        margin-top: 100px !important;
    }

    .btn-scroll {
        width: 50px;
        height: 50px;
    }

    #about-us {
        transform: translateY(50px) !important;
    }

    .about-us-right-column {
        min-height: 300px;
    }

    .industries {
        margin-top: -100px !important;
    }

    .custom-serve {
        line-height: 45px !important;
    }

    .custom-why-petro-chain {
        min-height: 300px !important;
    }

    .custom-why-petro-chain-margin {
        margin-left: 20px !important;
    }

    .back-to-top-order {
        order: -1;
    }

    .back-to-top {
        background-color: var(--primary-blue);
        color: var(--text-white);
    }
}
