@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Corporate & Industrial Construction Theme */
:root {
    /* Brand Colors */
    --primary: #D32F2F;          /* Strong Industrial Red/Orange */
    --primary-dark: #B71C1C;
    --primary-light: #FDECEC;
    
    --secondary: #1C2833;        /* Deep Steel Blue/Grey */
    --secondary-light: #2C3E50;
    
    /* Backgrounds */
    --bg-main: #FFFFFF;          /* Clean white */
    --bg-alt: #F4F6F7;           /* Light grey for alternating sections */
    --bg-dark: #121A21;          /* For footer and dark banner */
    
    /* Typography Colors */
    --text-main: #1D2429;        /* Near black for readability */
    --text-muted: #5D6D7E;       /* Slate grey for secondary text */
    --text-light: #FFFFFF;       /* White text for dark backgrounds */
    
    /* Structure & UI */
    --border-color: #E5E8E8;
    --transition: all 0.25s ease-in-out;
    --radius: 6px;               /* Sharper, more grounded corners */
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Typography Utilities */
.section-title {
    font-size: clamp(28px, 4vw, 38px);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.section-title.left-aligned {
    text-align: left;
}

.section-title.left-aligned::after {
    left: 0;
    transform: none;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn.compact {
    padding: 10px 24px;
    font-size: 14px;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--secondary);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--bg-main);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 45px;
    max-width: 250px;
    object-fit: contain;
}

/* Adjusted for logo contrast if the logo is light text, you may need a dark header. 
   Assuming the logo works on a white background for a professional corporate look. */

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-light);
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(28, 40, 51, 0.85), rgba(28, 40, 51, 0.90)), url('https://images.unsplash.com/photo-1589939705384-5185137a7f0f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 150px 0 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: var(--text-light);
    line-height: 1.15;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: #DFE6E9;
    margin-bottom: 40px;
    max-width: 650px;
    margin-inline: auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Layout Utilities for Sections */
section {
    padding: 90px 0;
}

/* About Section */
.about {
    background: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.highlight-item i {
    color: var(--primary);
    font-size: 24px;
}

.highlight-item span {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
}

.image-box {
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.image-box img {
    border-radius: var(--radius);
    display: block;
    width: 100%;
}

.accent-square {
    display: none; /* Removed the decorative square for a more solid corporate look */
}

/* Products Section */
.products {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.category {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-header i {
    font-size: 32px;
    color: var(--primary);
}

.category-header h3 {
    font-size: 26px;
    color: var(--secondary);
    text-transform: uppercase;
}

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

.card {
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 30px 25px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.card-content h4 {
    font-size: 18px;
    color: var(--secondary);
    line-height: 1.4;
    padding-right: 10px;
}

.badge {
    background: var(--secondary);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-card {
    width: 100%;
    background: var(--bg-alt);
    color: var(--secondary);
    border: none;
    justify-content: space-between;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
}

.btn-card i {
    color: var(--primary);
}

.btn-card:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-card:hover i {
    color: var(--text-light);
}

/* Why Choose Us */
.why-us {
    background: var(--bg-main);
}

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

.feature-card {
    background: var(--bg-alt);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--primary);
    transform: translateY(-3px);
}

.icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    font-size: 38px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    padding: 0;
    background: transparent;
    border: none;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
    padding: 60px;
    border-radius: var(--radius);
    border-left: 8px solid var(--primary);
    box-shadow: var(--shadow-hover);
    color: var(--text-light);
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.cta-content p {
    color: #BDC3C7;
    font-size: 18px;
}

.cta-button .btn-primary {
    background: var(--primary);
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
}

.contact-info {
    padding: 50px 40px;
    background: var(--secondary);
    color: var(--text-light);
}

.info-card {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.info-card p {
    color: #BDC3C7;
    font-size: 15px;
    line-height: 1.6;
}

.contact-link {
    color: #BDC3C7;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--text-light);
}

.map-container {
    min-height: 450px;
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 80px 0 30px;
    color: #ECEFF1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.brand-col {
    padding-right: 40px;
}

.footer-logo {
    height: 55px;
    margin-bottom: 25px;
    opacity: 0.95;
    background: var(--bg-main);
    padding: 5px 15px;
    border-radius: var(--radius);
}

.brand-col p {
    color: #90A4AE;
    font-size: 15px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0; width: 40px; height: 3px;
    background: var(--primary);
}

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

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

.footer-links a {
    color: #90A4AE;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '❯';
    color: #546E7A;
    font-size: 10px;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #90A4AE;
    font-size: 15px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #263238;
    color: #78909C;
    font-size: 14px;
}

/* Floating WhatsApp Button */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-wa:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 30px;
        border-left: none;
        border-top: 8px solid var(--primary);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 350px;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 20px;
        color: var(--secondary);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    header .btn {
        display: none;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .brand-col {
        padding-right: 0;
    }
    
    .highlights {
        grid-template-columns: 1fr;
    }
    
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .contact-info {
        padding: 40px 20px;
    }
}
