/* =========================
   GOOGLE RESET
========================= */

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

:root{
    --primary:#0A2540;
    --secondary:#1d3557;
    --accent:#ff8c42;
    --light:#f8f9fa;
    --dark:#222;
    --white:#fff;
    --shadow:0 10px 30px rgba(0,0,0,0.1);
}

body{
    font-family:'Poppins', sans-serif;
    color:var(--dark);
    line-height:1.6;
    overflow-x:hidden;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

.section{
    padding:90px 0;
}

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

.section-title h2{
    font-size:2.3rem;
    color:var(--primary);
    margin-bottom:10px;
}

.section-title p{
    color:#666;
}

/* =========================
   HEADER
========================= */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(8px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    z-index:1000;
    box-shadow:0 2px 15px rgba(0,0,0,0.05);
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:50px;
    height:50px;
    object-fit:contain;
}

.logo h2{
    color:var(--primary);
    font-size:1.5rem;
    font-weight:700;
    margin:0;
}

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

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

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

.menu-btn{
    display:none;
    font-size:1.5rem;
    cursor:pointer;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:120px 20px;
    background:
    linear-gradient(
    rgba(10,37,64,.75),
    rgba(10,37,64,.75)),
    url("https://tradesmanelectric.com/wp-content/uploads/2025/08/2edc95d4-7c7a-4e0f-ae2f-9f75c4b8f807.png")
    center/cover;
    color:white;
}

.hero-content{
    max-width:850px;
}

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

.hero p{
    font-size:1.1rem;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

/* =========================
   BUTTONS
========================= */

.btn{
    display:inline-block;
    padding:14px 30px;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
    font-weight:600;
}

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

.primary-btn:hover{
    transform:translateY(-3px);
}

.secondary-btn{
    border:2px solid white;
    color:white;
}

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

/* =========================
   ABOUT
========================= */

.about-content{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
}

.about-text p{
    margin-top:15px;
}

.about-card{
    background:var(--primary);
    color:white;
    padding:30px;
    border-radius:15px;
    box-shadow:var(--shadow);
}

/* =========================
   SERVICES
========================= */

.services{
    background:#f4f7fa;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.service-card{
    background:white;
    padding:35px 25px;
    border-radius:15px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-10px);
}

.service-card i{
    font-size:2.5rem;
    color:var(--accent);
    margin-bottom:15px;
}

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

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

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

.product-card{
    padding:20px;
    border-radius:15px;
    background:white;
    border-top:5px solid var(--accent);
    box-shadow:var(--shadow);
    transition:.3s;
    overflow:hidden;
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
}

.product-card h3{
    color:var(--primary);
    margin-bottom:10px;
}

.product-card p{
    color:#666;
    font-size:0.95rem;
}
.product-card:hover{
    transform:translateY(-8px);
}

.product-card h3{
    color:var(--primary);
    margin-bottom:12px;
}

/* =========================
   WHY US
========================= */

.why-us{
    background:var(--primary);
    color:white;
}

.why-us .section-title h2{
    color:white;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.why-card{
    background:rgba(255,255,255,.08);
    padding:35px;
    border-radius:15px;
    text-align:center;
}

.why-card i{
    font-size:2.5rem;
    margin-bottom:15px;
}

/* =========================
   CONTACT
========================= */

.contact-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:start;
}

.contact-info,
.contact-form{
    background:#f7f7f7;
    padding:35px;
    border-radius:15px;
    box-shadow:var(--shadow);
}

.contact-info h3{
    margin-bottom:20px;
    color:var(--primary);
}

.contact-info p{
    margin-bottom:18px;
    line-height:1.8;
}

.contact-info a{
    color:var(--primary);
    text-decoration:none;
    font-weight:500;
}

.contact-info a:hover{
    color:var(--accent);
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    border:1px solid #ddd;
    border-radius:8px;
    font-family:inherit;
}

.contact-form textarea{
    min-height:150px;
    resize:vertical;
}

.contact-form button{
    border:none;
    cursor:pointer;
}

@media(max-width:768px){

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

}

/* =========================
   FOOTER
========================= */

.footer{
    background:#081c30;
    color:white;
    text-align:center;
    padding:40px 20px;
}

.footer h3{
    margin-bottom:10px;
}

/* =========================
   WHATSAPP BUTTON
========================= */

.whatsapp-btn{
    position:fixed;
    right:20px;
    bottom:20px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#25D366;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:1.8rem;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    z-index:999;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .hero h1{
        font-size:2.8rem;
    }

    .about-content,
    .contact-wrapper{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .menu-btn{
        display:block;
    }

    .logo img{
        width:40px;
        height:40px;
    }

    .logo h2{
        font-size:1rem;
    }

    .navbar{
        position:absolute;
        top:80px;
        left:-100%;
        width:100%;
        background:white;
        transition:.4s;
        box-shadow:0 5px 15px rgba(0,0,0,.1);
    }

    .navbar.active{
        left:0;
    }

    .nav-links{
        flex-direction:column;
        padding:25px;
        gap:20px;
    }

    .hero h1{
        font-size:2.2rem;
    }

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

    .section{
        padding:70px 0;
    }

    .section-title h2{
        font-size:1.9rem;
    }

    .header{
        padding:0 5%;
    }
}

@media(max-width:480px){

    .hero h1{
        font-size:1.8rem;
    }

    .btn{
        width:100%;
    }

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

    .logo h2{
        font-size:1.1rem;
    }

    .section-title h2{
        font-size:1.7rem;
    }
}