/* ====== CSS VARIABLES ====== */
:root {
    --primary: #e31b23;
    --primary-dark: #b81219;
    --primary-light: #ffebec;
    --secondary: #000000;
    --dark: #121212;
    --dark-grey: #333333;
    --grey: #6c757d;
    --light-grey: #f8f9fa;
    --light: #ffffff;
    
    --font-main: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark-grey);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

p {
    margin-bottom: 1.5rem;
    color: var(--grey);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* ====== TYPOGRAPHY & UTILITIES ====== */
.highlight {
    color: var(--primary);
}

.highlight-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-light);
    z-index: -1;
    transform: rotate(-1deg);
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* ====== BUTTONS ====== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.3);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--light);
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-o { color: var(--primary); }
.logo-s { color: var(--secondary); }
.logo-g { color: var(--primary); }

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-links li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links li a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links li a.btn-primary {
    color: var(--light);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ====== HERO SECTION ====== */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('assets/banner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    color: var(--light);
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: #e0e0e0;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* ====== ABOUT SECTION ====== */
.about {
    background-color: var(--light);
}

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

.about-text p {
    font-size: 1.1rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ebebeb;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
}

.image-composition {
    position: relative;
    height: 500px;
}

.img-box {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background-size: cover;
    background-position: center;
}

.img-1 {
    width: 70%;
    height: 350px;
    top: 0;
    right: 0;
    /* Using hero image for about section overview */
    background: url('assets/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-1::after {
    content: '\f275';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 6rem;
    color: rgba(255,255,255,0.05);
}

.img-2 {
    width: 60%;
    height: 300px;
    bottom: 0;
    left: 0;
    background: url('assets/plumbing.png') center/cover no-repeat;
    border: 10px solid var(--light);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.experience-badge span {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* ====== SERVICES SECTION ====== */
.services {
    background-color: var(--light-grey);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--light);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: calc(33.333% - 1.34rem);
    min-width: 260px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--light);
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ====== PRODUCTS SECTION ====== */
.products {
    background-color: var(--light);
}

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

.product-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Using product images for product cards */
.materials-img { background: url('assets/building.png') center/cover no-repeat; }
.hotel-img { background: url('assets/hotel.png') center/cover no-repeat; }
.electrical-img { background: url('assets/plumbing.png') center/cover no-repeat; }
.safety-img { background: url('assets/safety.png') center/cover no-repeat; }

.product-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.1);
    transition: var(--transition);
}

.product-card:hover .product-img::before {
    background: rgba(0,0,0,0);
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.product-info p {
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ====== CLIENTS SECTION ====== */
.clients {
    background-color: var(--light-grey);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.client-logo {
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-grey);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.client-logo:hover {
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ====== CONTACT CTA ====== */
.contact {
    background-color: var(--dark);
    color: var(--light);
    position: relative;
    text-align: center;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 50%; height: 100%;
    background: var(--primary);
    z-index: 0;
}

.contact-wrapper {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background: var(--primary);
    padding: 5rem 3rem;
    color: var(--light);
}

.contact-info h2 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.detail span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.2rem;
}

.detail strong {
    font-size: 1.1rem;
    font-weight: 500;
}



/* ====== FOOTER ====== */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #a0a0a0;
    max-width: 400px;
    margin-top: 1.5rem;
}

.footer-links h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

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

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #a0a0a0;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* ====== ANIMATIONS & RESPONSIVE ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .image-composition {
        margin-top: 3rem;
    }
    .contact::before {
        width: 100%;
        height: 50%;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li a {
        color: var(--dark);
        font-size: 1.2rem;
    }
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    .mobile-menu-btn.active {
        color: var(--dark);
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stats-container {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .contact-info, .contact-form-container {
        padding: 2.5rem 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
