/*
 * Thrust Batteries - Global Responsive Redesign stylesheet
 * Loaded dynamically on all pages to apply layout updates, responsive details, and premium CTA styling.
 */

:root {
    --brand-red: #e31e24;
    --brand-red-hover: #b9151b;
    --brand-dark: #181f27;
    --white: #ffffff;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-brand: 0 12px 24px -6px rgba(227, 30, 36, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. SCROLL REVEAL & STYLING FIX FOR ABOUT-US SECTION */
html, body {
    overflow-x: hidden !important;
}

/* 2. INNER BANNER MOBILE ALIGNMENT (Factory Glimpse, About Us, etc.) */
@media (max-width: 767px) {
    .banner-container.inner-banner img {
        /* object-position: right center !important; */
    }
}

/* 3. HOME PAGE MOBILE SPACING (col stacking padding) */
@media (max-width: 991px) {
    .d-box-container {
        padding: 50px 0 !important;
    }
    .d-box-container .c-text-container {
        margin-bottom: 35px !important;
    }
}

/* 4. REDESIGNED CTA SECTION STYLES */
.cert-section-padding {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.cert-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.cert-cta {
    background: linear-gradient(135deg, #181f27 0%, #301416 100%);
    border-radius: var(--border-radius-lg);
    padding: 56px 48px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cert-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: rgba(227, 30, 36, 0.08);
    border-radius: var(--border-radius-full);
    pointer-events: none;
}

.cert-cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.cert-cta-content {
    flex: 1 1 500px;
}

.cert-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    color: var(--white) !important;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cert-cta p {
    font-family: 'Lato', sans-serif;
    color: #e2e8f0 !important;
    margin-bottom: 0;
    max-width: 650px;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.6;
}

.cert-cta-action {
    flex: 0 0 auto;
}

.cert-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: var(--brand-red);
    color: var(--white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-brand);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.cert-cta-btn:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(227, 30, 36, 0.35);
    color: var(--white) !important;
}

/* Dynamic Entrance Animations */
.cert-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cert-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .cert-cta {
        padding: 36px 24px;
        text-align: center;
    }
    
    .cert-cta-flex {
        justify-content: center;
        gap: 24px;
    }
    
    .cert-cta-content {
        flex: 1 1 100%;
    }
    
    .cert-cta-btn {
        width: 100%;
    }
}
