/* =============================================
   NARISARALOOK OIL - Custom Overrides
   Logo, Header, Mobile, Trust, Certifications
   ============================================= */

/* --- 1. HEADER LOGO SIZE (35% reduction) --- */
.logo a img {
    width: auto !important;
    height: auto !important;
    max-height: 120px;
    object-fit: contain;
}
.sticky-header .logo a img {
    max-height: 80px;
}
.mobile-menu .nav-logo a img {
    max-height: 60px;
}

/* --- 2. FOOTER LOGO SIZE (50% reduction) --- */
.footer-logo a img {
    width: auto !important;
    max-width: 280px;
    height: auto !important;
    object-fit: contain;
}

/* --- 2. HEADER VERTICAL ALIGNMENT --- */
.header-style4 {
    display: flex;
    align-items: center;
}
.header-style4 .container-fluid {
    display: flex;
    align-items: center;
}
.header-style4 .outer-box {
    display: flex !important;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.header-style4_left {
    display: flex;
    align-items: center;
}
.header-style4_left .logo {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}
.header-style4_right {
    display: flex;
    align-items: center;
}
.main-menu.style4 .navigation > li > a {
    padding: 22px 0 22px !important;
}
.main-menu.style4 .navigation > li > a.home {
    padding: 22px 0 22px !important;
}
.header-style4_right__btn a {
    line-height: 44px !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
    font-size: 14px !important;
}

/* --- 3. HEADER TOP BAR --- */
.header-top-style4 {
    background: #1a1a2e;
}
.header-contact-info3 ul li {
    font-size: 13px;
    margin-right: 25px;
}

/* --- 10. MOBILE HEADER + FOOTER LOGO --- */
@media only screen and (max-width: 1199px) {
    .logo a img {
        max-height: 90px;
    }
    .footer-logo a img {
        max-width: 220px;
    }
    .header-style4_left .logo {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .nav-outer .mobile-nav-toggler {
        padding: 18px 0 !important;
    }
    .mobile-nav-toggler .icon-bar {
        background: #ec7d1b !important;
        height: 3px !important;
        width: 28px !important;
    }
}
@media only screen and (max-width: 767px) {
    .logo a img {
        max-height: 70px;
    }
    .footer-logo a img {
        max-width: 180px;
    }
    .header-style4_left .logo {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .quote-form-section {
        padding: 30px 0 !important;
    }
    .quote-form-wrapper {
        padding: 15px !important;
    }
    .quote-form-wrapper .row {
        margin: 0;
    }
    .quote-form-wrapper .col-xl-6 {
        padding: 0 5px;
    }
    .certification-logos-row .cert-logo-box {
        margin-bottom: 20px;
    }
    .trust-badges-row .trust-badge-item {
        margin-bottom: 20px;
    }
}
@media only screen and (max-width: 480px) {
    .logo a img {
        max-height: 55px;
    }
    .footer-logo a img {
        max-width: 160px;
    }
}

/* --- 4. CERTIFICATION LOGOS SECTION --- */
.certification-logos-section {
    background: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.certification-logos-section h3 {
    color: #2739a7;
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.certification-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.cert-logo-box {
    text-align: center;
    padding: 20px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    min-width: 140px;
    transition: all 0.3s ease;
}
.cert-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.cert-logo-box .cert-icon {
    font-size: 48px;
    color: #ec7d1b;
    margin-bottom: 10px;
    display: block;
}
.cert-logo-box h5 {
    color: #2739a7;
    font-size: 14px;
    margin: 0;
    font-weight: 700;
}
.cert-logo-box p {
    color: #888;
    font-size: 11px;
    margin: 5px 0 0;
}

/* --- 6. TRUST BADGES SECTION --- */
.trust-badges-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2739a7 100%);
    padding: 60px 0;
    color: #fff;
}
.trust-badges-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
}
.trust-badges-section .subtitle {
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
}
.trust-badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}
.trust-badge-item {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.trust-badge-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}
.trust-badge-item .badge-icon {
    font-size: 42px;
    color: #ec7d1b;
    margin-bottom: 12px;
    display: block;
}
.trust-badge-item .badge-number {
    font-size: 28px;
    font-weight: 700;
    color: #ec7d1b;
    display: block;
    margin-bottom: 5px;
}
.trust-badge-item h5 {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}
.trust-badge-item p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin: 5px 0 0;
}

/* --- 7. FACTORY GALLERY SECTION --- */
.factory-gallery-section {
    padding: 60px 0;
    background: #fff;
}
.factory-gallery-section h2 {
    text-align: center;
    color: #2739a7;
    margin-bottom: 10px;
    font-size: 32px;
}
.factory-gallery-section .subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
}
.factory-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.factory-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.factory-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.factory-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.factory-gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 15px;
    color: #fff;
}
.factory-gallery-item .gallery-overlay h4 {
    color: #fff;
    font-size: 16px;
    margin: 0;
}
.factory-gallery-item .gallery-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin: 3px 0 0;
}

/* --- GENERAL UTILITY --- */
.section-link-btn {
    display: inline-block;
    background: #ec7d1b;
    color: #fff;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}
.section-link-btn:hover {
    background: #2739a7;
    color: #fff;
    transform: translateY(-2px);
}
