/* =====================================================
   SBP MACHINERY - COMPLETE CSS
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fa;
    color: #172536;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: auto;
}


/* ================= HEADER ================= */

.header {
    position: sticky;
    top: 0;
    z-index: 9999;

    background: linear-gradient(
        90deg,
        #041827,
        #092f4c,
        #041827
    );

    border-bottom: 3px solid #00a8e8;

    box-shadow: 0 5px 22px rgba(0,0,0,.25);
}

.nav {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #00b5f5,
        #006d9f
    );

    border-radius: 8px;

    color: white;

    font-size: 16px;
    font-weight: 900;

    letter-spacing: 1px;

    box-shadow:
        0 0 20px
        rgba(0,180,245,.3);
}

.brand-text strong {
    display: block;

    color: white;

    font-size: 17px;
}

.brand-text span {
    display: block;

    color: #9fc5d8;

    font-size: 10px;
}


/* ================= NAV ================= */

.desktop-menu {
    display: flex;

    gap: 28px;

    margin-left: auto;
}

.desktop-menu a {
    position: relative;

    color: #dbeaf3;

    font-size: 13px;
    font-weight: 600;

    padding: 10px 0;
}

.desktop-menu a:hover {
    color: #00bfff;
}

.desktop-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #00bfff;

    transition: .25s;
}

.desktop-menu a:hover::after {
    width: 100%;
}


/* ================= CART BUTTON ================= */

.cart-button {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 11px 15px;

    border: 1px solid
        rgba(255,255,255,.25);

    border-radius: 7px;

    background: #008dcc;

    color: white;

    font-weight: 700;

    transition: .2s;
}

.cart-button:hover {
    background: #00a9e8;
    transform: translateY(-2px);
}

.cart-button b {
    width: 21px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    color: #0075a8;

    border-radius: 50%;

    font-size: 11px;
}


/* ================= MOBILE ================= */

.mobile-menu {
    display: none;

    border: none;

    background: none;

    color: white;

    font-size: 27px;
}

.mobile-nav {
    display: none;

    background: #041827;

    padding: 10px 5% 18px;
}

.mobile-nav a {
    display: block;

    padding: 12px 0;

    color: #dbeaf3;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}


/* ================= HERO ================= */

.hero {
    min-height: 640px;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #031a2b,
            #0a3b5d
        );
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(0,170,235,.18),
            transparent 40%
        );
}

.hero-content {
    position: relative;

    z-index: 2;
}

.hero-badge {
    display: inline-block;

    padding: 7px 12px;

    border: 1px solid
        rgba(100,200,240,.35);

    color: #76c8ed;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 800px;

    margin: 22px 0;

    color: white;

    font-size: clamp(42px,6vw,68px);

    line-height: 1.05;
}

.hero h1 span {
    display: block;

    color: #50b7e9;
}

.hero p {
    max-width: 670px;

    color: #c7d8e4;

    font-size: 17px;
}

.hero-buttons {
    display: flex;

    gap: 13px;

    margin-top: 32px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 5px;

    border: none;

    font-size: 13px;

    font-weight: 700;
}

.btn.primary {
    background: #0788ca;

    color: white;
}

.btn.primary:hover {
    background: #056fa8;

    transform: translateY(-2px);
}

.btn.secondary {
    border: 1px solid #7695a9;

    color: white;
}

.btn.secondary:hover {
    background: white;

    color: #092b49;
}

.btn.white {
    background: white;

    color: #092b49;
}

.hero-points {
    display: flex;

    gap: 28px;

    margin-top: 40px;

    color: #b7cbd8;

    font-size: 12px;
}


/* ================= TRUST ================= */

.trust-strip {
    background: white;

    border-bottom:
        1px solid #e1e7ec;
}

.trust-grid {
    min-height: 90px;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    align-items: center;

    text-align: center;
}

.trust-grid strong {
    display: block;

    color: #092b49;

    font-size: 21px;
}

.trust-grid span {
    color: #7b8996;

    font-size: 11px;
}


/* ================= SECTIONS ================= */

.section {
    padding: 90px 0;
}

.section-title {
    max-width: 720px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-title > span,
.about-content > span,
.contact-info > span {
    color: #0785c7;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.7px;
}

.section-title h2,
.about-content h2,
.contact-info h2 {
    margin: 10px 0 13px;

    color: #092b49;

    font-size: 36px;

    line-height: 1.2;
}

.section-title p,
.contact-info > p {
    color: #758392;

    font-size: 14px;
}


/* ================= CATEGORIES ================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 24px;
}

.category-card {
    padding: 32px;

    background: white;

    border: 1px solid #e0e7ed;

    border-radius: 9px;

    transition: .25s;

    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);

    border-color: #0785c7;

    box-shadow:
        0 18px 40px
        rgba(15,47,72,.1);
}

.category-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf5fb;

    border-radius: 8px;

    font-size: 30px;

    margin-bottom: 20px;
}

.category-card h3 {
    color: #102f48;

    font-size: 20px;

    margin-bottom: 10px;
}

.category-card p {
    min-height: 65px;

    color: #748291;

    font-size: 13px;
}

.category-card span {
    display: block;

    margin-top: 20px;

    color: #0785c7;

    font-size: 12px;

    font-weight: 800;
}


/* ================= PRODUCTS ================= */

.products-section {
    background: #f8fafc;
}

.product-toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.search {
    width: 310px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 0 13px;

    background: white;

    border: 1px solid #dce3ea;

    border-radius: 6px;
}

.search input {
    width: 100%;

    padding: 13px 5px;

    border: none;

    outline: none;
}

.filters {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.filter {
    padding: 9px 13px;

    border: 1px solid #d9e0e7;

    background: white;

    border-radius: 5px;

    color: #586777;

    font-size: 11px;

    font-weight: 700;
}

.filter.active,
.filter:hover {
    background: #092b49;

    color: white;

    border-color: #092b49;
}

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 22px;
}

.product {
    overflow: hidden;

    background: white;

    border: 1px solid #e1e7ed;

    border-radius: 9px;

    transition: .2s;
}

.product:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(15,47,72,.09);
}

.product-image {
    height: 210px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eaf2f7,
            #f9fbfc
        );
}

.product-image span {
    position: absolute;

    left: 14px;
    top: 14px;

    padding: 5px 8px;

    background: #092b49;

    color: white;

    border-radius: 4px;

    font-size: 9px;

    font-weight: 800;
}

.product-image div {
    font-size: 85px;

    filter:
        drop-shadow(
            0 10px 8px
            rgba(0,0,0,.12)
        );
}

.product-info {
    padding: 21px;
}

.product-info small {
    color: #0785c7;

    font-size: 9px;

    font-weight: 800;
}

.product-info h3 {
    margin: 6px 0;

    color: #102f48;

    font-size: 18px;
}

.product-info p {
    min-height: 45px;

    color: #778594;

    font-size: 12px;
}

.product-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 15px;

    padding-top: 15px;

    border-top:
        1px solid #edf0f3;
}

.product-bottom strong {
    color: #092b49;

    font-size: 11px;
}

.product-bottom button {
    padding: 9px 11px;

    border: none;

    border-radius: 4px;

    background: #0785c7;

    color: white;

    font-size: 10px;

    font-weight: 700;
}


/* ================= ABOUT ================= */

.about {
    padding: 100px 0;

    background: white;
}

.about-grid {
    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 80px;

    align-items: center;
}

.about-panel {
    min-height: 380px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            140deg,
            #092b49,
            #0b6896
        );

    border-radius: 12px;

    color: white;

    text-align: center;
}

.about-logo {
    font-size: 72px;

    font-weight: 900;

    letter-spacing: 4px;
}

.about-panel strong {
    font-size: 18px;
}

.about-panel span {
    margin-top: 8px;

    color: #b8dff2;

    font-size: 12px;
}

.about-content > p {
    margin-bottom: 16px;

    color: #748291;

    font-size: 14px;
}

.about-points {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 12px;

    margin: 25px 0;
}

.about-points div {
    color: #405568;

    font-size: 12px;

    font-weight: 600;
}


/* ================= CTA ================= */

.cta {
    padding: 60px 0;

    background:
        linear-gradient(
            100deg,
            #092b49,
            #0877ac
        );

    color: white;
}

.cta-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.cta-content span {
    color: #8dd4f6;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.cta-content h2 {
    margin: 7px 0;

    font-size: 32px;
}

.cta-content p {
    color: #c6dae6;

    font-size: 13px;
}


/* ================= CONTACT ================= */

.contact {
    background: #f5f7fa;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;
}

.contact-item {
    display: flex;

    flex-direction: column;

    margin-top: 22px;
}

.contact-item strong {
    color: #092b49;

    font-size: 12px;
}

.contact-item span {
    color: #778594;

    font-size: 13px;
}

.contact-form {
    display: grid;

    gap: 13px;

    padding: 30px;

    background: white;

    border: 1px solid #e0e6ec;

    border-radius: 9px;
}

.contact-form h3 {
    color: #092b49;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #d9e0e7;

    border-radius: 5px;

    outline: none;

    font-size: 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0785c7;
}


/* ================= FOOTER ================= */

footer {
    padding: 60px 0 20px;

    background: #061d31;

    color: #8fa3b3;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1.5fr 1.5fr;

    gap: 40px;
}

.footer-brand {
    color: white;

    font-size: 32px;

    font-weight: 900;

    letter-spacing: 2px;
}

footer h4 {
    color: white;

    margin-bottom: 15px;

    font-size: 13px;
}

footer p,
footer a {
    display: block;

    margin: 8px 0;

    color: #8fa3b3;

    font-size: 11px;
}

footer a:hover {
    color: #65c2ed;
}

.copyright {
    margin-top: 45px;

    padding-top: 18px;

    border-top:
        1px solid #21384b;

    text-align: center;

    font-size: 10px;
}


/* ================= CART ================= */

.cart-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 2000;

    background:
        rgba(0,0,0,.55);
}

.cart-overlay.show {
    display: block;
}

.cart-panel {
    position: fixed;

    top: 0;
    right: -430px;

    z-index: 2100;

    width: min(420px,94%);

    height: 100vh;

    display: flex;

    flex-direction: column;

    background: white;

    box-shadow:
        -10px 0 35px
        rgba(0,0,0,.18);

    transition: right .3s;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px;

    border-bottom:
        1px solid #e5e9ee;
}

.cart-header h2 {
    color: #092b49;
}

.cart-header button {
    border: none;

    background: transparent;

    font-size: 28px;

    color: #667582;
}

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.empty-cart {
    margin-top: 60px;

    text-align: center;

    color: #8794a0;

    font-size: 13px;
}

.cart-item {
    padding: 15px 0;

    border-bottom:
        1px solid #edf0f3;
}

.cart-item h4 {
    color: #17344d;

    font-size: 13px;
}

.cart-item small {
    color: #7b8996;

    font-size: 10px;
}

.cart-controls {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 8px;
}

.cart-controls button {
    width: 26px;
    height: 26px;

    border: 1px solid #dce2e7;

    background: white;

    border-radius: 4px;
}

.remove-item {
    color: #d34c4c !important;

    border: none !important;

    background: transparent !important;
}

.cart-footer {
    padding: 20px;

    border-top:
        1px solid #e5e9ee;
}

.cart-footer p {
    margin-bottom: 12px;

    color: #657584;
}

.full {
    width: 100%;
}


/* ================= WHATSAPP ================= */

.whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 1500;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: white;

    font-size: 24px;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.2);
}


/* ================= RESPONSIVE ================= */

@media(max-width:950px) {

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .category-grid,
    .product-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .product-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .search {
        width: 100%;
    }
}


@media(max-width:650px) {

    .nav {
        min-height: 72px;
    }

    .brand-mark {
        width: 45px;
        height: 45px;

        font-size: 13px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 8px;
    }

    .cart-button span {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-points {
        flex-direction: column;

        gap: 8px;
    }

    .trust-grid {
        grid-template-columns:
            repeat(2,1fr);

        padding: 20px 0;

        gap: 18px;
    }

    .section {
        padding: 65px 0;
    }

    .section-title h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 29px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-bottom {
        flex-direction: column;

        align-items: stretch;
    }

    .product-bottom button {
        width: 100%;
    }
}