/* =====================================================
   SM BEARING - COMPLETE STYLE.CSS
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0B1F4D;
    --secondary: #F97316;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #222;
    --gray: #666;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===============================
   HEADER
================================ */

header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    color: #fff;
    line-height: 1;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: .3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

/* ===============================
   PAGE BANNER
================================ */

.page-banner {
    background: linear-gradient(rgba(11, 31, 77, .9),
            rgba(11, 31, 77, .9));
    color: #fff;
    text-align: center;
    padding: 90px 20px;
}

.page-banner h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-banner p {
    opacity: .9;
}

/* ===============================
   HERO
================================ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(11, 31, 77, .88),
            rgba(11, 31, 77, .88)),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    color: white;
    max-width: 700px;
}

.hero h1 {
    font-size: 65px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ===============================
   BUTTONS
================================ */

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ===============================
   SECTION TITLE
================================ */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary);
    font-size: 40px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
}

/* ===============================
   STATS
================================ */

.stats {
    background: var(--light);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-box {
    background: #fff;
    padding: 35px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-box h2 {
    color: var(--secondary);
    font-size: 42px;
}

.stat-box p {
    margin-top: 8px;
}

/* ===============================
   PRODUCTS
================================ */

.products {
    padding: 80px 0;
}

.search-box {
    margin-bottom: 40px;
    text-align: center;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.product-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

/* ===============================
   FEATURES
================================ */

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature {
    background: #fff;
    padding: 25px;
    border-left: 5px solid var(--secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ===============================
   INDUSTRIES
================================ */

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.industry {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 35px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: .3s;
}

.industry:hover {
    background: var(--secondary);
}

/* ===============================
   ABOUT
================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===============================
   FORMS
================================ */

.form-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: none;
}

/* ===============================
   CONTACT
================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===============================
   QUOTE / FORM STYLES
================================ */

#quote-form label {
    display: block;
    margin: 12px 0 6px;
    color: #0b1f4d;
    font-weight: 600;
}

#quote-form input[type="text"],
#quote-form input[type="email"],
#quote-form input[type="tel"],
#quote-form input[type="number"],
#quote-form select,
#quote-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(11, 31, 77, 0.08);
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#quote-form textarea {
    min-height: 140px;
    resize: vertical;
}

#quote-form .btn-primary {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#quote-form .btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

/* Make form columns stack on small screens */
@media (max-width: 768px) {
    #quote-form {
        display: block;
    }

    #quote-form>div {
        grid-column: auto !important;
    }
}

/* ===============================
   CTA
================================ */

.cta {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 90px 20px;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

/* ===============================
   FOOTER
================================ */

footer {
    background: #081634;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-box h3 {
    color: var(--secondary);
    margin-bottom: 12px;
}

.footer-box p {
    line-height: 1.8;
}

/* Footer links: ensure they are white like the address text */
footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
    color: #fff !important;
    text-decoration: none;
}

footer a:hover {
    opacity: 0.95;
}

.footer-box:first-child {
    text-align: left;
}

.footer-box:nth-child(2) {
    text-align: center;
}

.footer-box:last-child {
    text-align: right;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

/* ===============================
   WHATSAPP BUTTON
================================ */

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

/* ===============================
   HAMBURGER / NAV (MOBILE)
================================ */

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    transition: all .25s ease;
}

/* Desktop nav */
nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile behavior */
@media (max-width: 768px) {

    .menu-btn {
        display: inline-flex;
        color: #fff;
        position: absolute;
        right: 18px;
        top: 18px;
        z-index: 1002;
    }

    nav ul {
        display: none;
        position: absolute;
        right: 18px;
        top: 64px;
        background: #081634;
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        gap: 12px;
        min-width: 200px;
    }

    /* If the toggle is applied on the nav element */
    #navMenu.active {
        display: block;
    }

    /* If the toggle is applied on a ul inside nav (#navMenu as ul) */
    #navMenu.active {
        display: block;
    }

    /* When nav (#navMenu) has active, show its child UL */
    #navMenu.active ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* ensure links look ok inside mobile menu */
    nav ul a {
        display: block;
        padding: 8px 12px;
        color: #fff;
        text-decoration: none;
    }

}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    display: block;
}

/* ===============================
   RESPONSIVE
================================ */

@media(max-width:991px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid,
    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 50px;
    }

}

@media(max-width:768px) {

    nav ul {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .page-banner h1 {
        font-size: 34px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-box:first-child,
    .footer-box:last-child {
        text-align: center;
    }

    .section-title h2 {
        font-size: 30px;
    }

}

/* Ensure hero CTA buttons stack with spacing on small screens */
@media (max-width: 600px) {
    .hero .hero-content .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px;
        box-sizing: border-box;
    }

    .hero .hero-content .btn:last-child {
        margin-bottom: 0;
    }
}

/* Ensure hero CTA buttons are inline on desktop */
.hero .hero-content .btn {
    display: inline-block;
    width: auto;
    margin-right: 15px;
}

.hero .hero-content .btn:last-child {
    margin-right: 0;
}

.counter-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 80px 20px;
    background: #f8f9fa;
}

.counter-box {
    background: #fff;
    width: 250px;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    transition: .3s;
}

.counter-box:hover {
    transform: translateY(-8px);
}

.counter-box h2 {
    font-size: 48px;
    color: #ff6600;
    margin-bottom: 10px;
    font-weight: 700;
}

.counter-box p {
    color: #002060;
    font-size: 18px;
    font-weight: 600;
}