:root {
    --primary-color: #0056b3;
    --secondary-color: #28a745;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --hero-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
    background: var(--light-color);
    padding: 5px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    text-decoration: none;
    color: var(--text-color);
}

.cart-btn {
    background: #ffc107;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
}

nav {
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-quote {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-quote:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.badge {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* ================= PRODUCTS ================= */

.products{
    padding:80px 0;
    background:#f5f6f8;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.product-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

.product-card img{
    width:100%;
    height:255px;
    object-fit:cover;
    display:block;
}

.product-info{
    padding:18px;
}

.product-info h3{
    font-size:22px;
    margin-bottom:8px;
    color:#0f172a;
}

.product-info p{
    color:#5b6475;
    margin-bottom:15px;
}

.gauge-select label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
    color:#374151;
}

.gauge-btns{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:8px;
    margin-top:10px;
    margin-bottom:20px;

}

.gauge-btn{
    flex:1;
    background:#f2f2f2;
    font-weight:600;
    transition:.3s;
    width: 100%;
    padding: 10px 5px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}
@media (max-width:768px){
    .gauge-btns{
        grid-template-columns:repeat(2,1fr);
    }
}

.gauge-btn.active{
    background:#1ea64b;
    color:#fff;
}
.rebar-buttons{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
}

/* Size & Qty */

.product-controls{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:15px;
}

.control-group{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f7f7f7;
    border-radius:15px;
    padding:12px;
}

.control-group label{
    font-size:15px;
    font-weight:500;
    color:#4b5563;
}

.number-input{
    display:flex;
    align-items:center;
    gap:10px;
    border:none;
}

.number-input button{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#ececec;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

.number-input button:hover{
    background:#dcdcdc;
}

.number-input input{
    width:60px;
    height:38px;
    border:1px solid #ddd;
    border-radius:10px;
    text-align:center;
    font-weight:bold;
    background:#fff;
}

/* Price */

.price-badge{
    background:#ff9800;
    color:#fff;
    display:inline-block;
    padding:8px 18px;
    border-radius:30px;
    font-weight:bold;
    margin-bottom:15px;
}

/* Total */

.total-price{
    background:#f1f2f4;
    border-radius:14px;
    padding:15px;
    text-align:center;
    color:#6b7280;
    font-weight:600;
    margin:18px 0;
}

/* WhatsApp */

.btn-whatsapp{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    background:#f1f2f4;
    color:#374151;
    text-decoration:none;
    padding:15px;
    border-radius:30px;
    font-weight:700;
    transition:.3s;
}

.btn-whatsapp:hover {
    opacity: 0.9;
}


/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {

    .container{
        padding:0 12px;
    }

    /* Hero */

    .hero{
        padding:50px 0;
    }

    .hero .container{
        flex-direction:column;
        gap:30px;
    }

    .hero h1{
        font-size:2rem;
        text-align:center;
    }

    .hero p{
        font-size:1rem;
        text-align:center;
    }

    .hero-btns{
        justify-content:center;
    }

    .hero-stats{
        grid-template-columns:1fr;
    }

    /* Navigation */

    nav .container{
        flex-direction:column;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    .nav-links li{
        margin:0;
    }

    /* Products */

    .product-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .product-card{
        width:100%;
    }

    .product-card img{
        height:220px;
    }

    .product-info{
        padding:15px;
    }

    .product-info h3{
        font-size:20px;
        line-height:1.3;
    }

    /* Gauge Buttons */

    .gauge-btns{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:6px;
    }

    .gauge-btn{
        width:100%;
        font-size:12px;
        padding:10px 4px;
    }

    /* Controls */

    .control-group{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

    .number-input{
        width:100%;
        justify-content:flex-end;
    }

    .number-input input{
        width:55px;
    }

    /* Price */

    .price-badge{
        width:100%;
        text-align:center;
    }

    .total-price{
        width:100%;
    }

    .btn-whatsapp{
        width:100%;
        padding:14px;
    }

    /* Contact */

    .contact-grid{
        grid-template-columns:1fr;
    }

    /* WhatsApp Float */

    .whatsapp-float{
        right:15px;
        bottom:15px;
        padding:10px 15px;
    }

    .whatsapp-float span{
        display:none;
    }

}
/* Rebar buttons mobile layout */
@media (max-width:768px){

    .gauge-btns{
        grid-template-columns:repeat(2,1fr);
    }

    .gauge-btn{
        font-size:12px;
        padding:8px 4px;
    }

}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}
.about-section,
.contact-section {
    padding: 80px 0;
}

.about-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 40px;
    color: #25D366;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
}


/* Responsive */
@media(max-width:768px){

    .product-grid{
        grid-template-columns:1fr;
    }

    .product-controls{
        flex-direction:column;
    }

    .hero .container{
        flex-direction:column;
    }

    .hero-image img{
        width:100%;
        height:auto;
    }

    .btn-whatsapp{
        width:100%;
    }
}
