/* Base Styles */
:root {
    --primary: 28, 85%, 45%; /* #D16104 - Orange for construction theme */
    --primary-dark: 28, 85%, 35%; /* #A64D02 */
    --primary-light: 28, 85%, 60%; /* #FA843A */
    --secondary: 210, 50%, 20%; /* #143A5A - Dark blue */
    --secondary-light: 210, 50%, 30%; /* #1F5888 */
    --text-dark: 210, 10%, 15%; /* #232527 */
    --text-light: 0, 0%, 95%; /* #F2F2F2 */
    --text-muted: 210, 10%, 50%; /* #7D8085 */
    --light: 0, 0%, 98%; /* #FAFAFA */
    --dark: 210, 10%, 10%; /* #18191B */
    --gray-light: 0, 0%, 92%; /* #EAEAEA */
    --gray: 0, 0%, 80%; /* #CCCCCC */
    --success: 120, 60%, 40%; /* #30A846 */
    --warning: 40, 100%, 50%; /* #FFAA00 */
    --danger: 0, 80%, 50%; /* #E62E2E */
    --border-radius: 6px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a:hover {
    color: hsl(var(--primary-dark));
}

ul {
    list-style: none;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: hsl(var(--secondary));
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: hsl(var(--primary));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: hsl(var(--text-muted));
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: hsl(var(--light));
    box-shadow: var(--shadow);
    padding: 1rem 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: hsl(var(--secondary));
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 0.8rem;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.main-nav .nav-list li {
    margin-left: 1.5rem;
}

.main-nav .nav-list a {
    color: hsl(var(--text-dark));
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.main-nav .nav-list a:hover {
    color: hsl(var(--primary));
}

.main-nav .nav-list a:hover::after {
    width: 100%;
}

.main-nav .nav-list .btn-contact {
    padding: 0.5rem 1.2rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--text-light));
    border-radius: var(--border-radius);
}

.main-nav .nav-list .btn-contact:hover {
    background-color: hsl(var(--primary-dark));
}

.main-nav .nav-list .btn-contact::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: hsl(var(--text-dark));
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background-color: hsl(var(--light));
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-muted));
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: hsl(210, 50%, 98%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-features {
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.about-features i {
    color: hsl(var(--success));
    margin-right: 0.8rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: hsl(var(--light));
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon img {
    height: 80px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--secondary));
}

.service-card p {
    color: hsl(var(--text-muted));
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: hsl(210, 50%, 98%);
}

.products-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.product-category.reverse {
    flex-direction: row-reverse;
}

.category-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.category-image img {
    max-height: 300px;
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

.category-content ul {
    margin-bottom: 1.5rem;
}

.category-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.category-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: hsl(var(--light));
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    display: flex;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.testimonial-image {
    flex: 0 0 150px;
}

.testimonial-content {
    flex: 1;
}

.rating {
    color: hsl(var(--warning));
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-muted));
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: hsl(var(--secondary));
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-controls button:hover {
    background-color: hsl(var(--primary-dark));
}

/* Blog Preview Section */
.blog-preview {
    padding: 5rem 0;
    background-color: hsl(210, 50%, 98%);
}

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

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content .date {
    display: block;
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: hsl(var(--secondary));
}

.blog-content p {
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: hsl(var(--primary));
    font-weight: 600;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

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

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

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: hsl(var(--light));
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--secondary));
}

.social-links h3 {
    margin-bottom: 1.2rem;
    color: hsl(var(--secondary));
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-3px);
}

.contact-form-container {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: hsl(var(--secondary));
}

.contact-form-container p {
    margin-bottom: 1.5rem;
    color: hsl(var(--text-muted));
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid hsl(var(--gray));
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsla(var(--primary), 0.2);
}

.contact-form .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-form .checkbox input {
    width: auto;
    margin-top: 0.3rem;
}

.contact-form .checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: hsl(var(--secondary));
    color: hsl(var(--text-light));
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-logo p {
    color: hsla(var(--text-light), 0.8);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.link-group {
    flex: 1;
    min-width: 150px;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.link-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 40px;
    height: 3px;
    background-color: hsl(var(--primary));
    border-radius: 1.5px;
}

.link-group ul li {
    margin-bottom: 0.8rem;
}

.link-group ul li a {
    color: hsla(var(--text-light), 0.8);
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid hsla(var(--text-light), 0.1);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .product-category,
    .product-category.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .category-content ul li {
        text-align: left;
    }
    
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .main-nav .nav-list.active {
        right: 0;
    }
    
    .main-nav .nav-list li {
        margin: 0 0 1.5rem;
        width: 100%;
    }
    
    .main-nav .nav-list a {
        display: block;
        width: 100%;
    }
    
    .main-nav .close-menu {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: hsl(var(--text-dark));
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .link-group h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
