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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #F5F5DC;
}

.contact-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

nav {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 1rem 0;
    transition: transform 0.3s ease-in-out;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #F5F5DC;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

/* Main Content */
main {
    margin-top: 140px;
    min-height: calc(100vh - 340px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(139,69,19,0.8), rgba(160,82,45,0.8)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
}

.page-hero {
    background: linear-gradient(rgba(139,69,19,0.8), rgba(160,82,45,0.8));
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.page-hero h1 {
    font-size: 2.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p, .page-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #F5F5DC;
    color: #8B4513;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    background: #f8f9fa;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #8B4513;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #8B4513;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* About Us content */
.about-content {
    padding: 4rem 1rem;
}

.about-content .text-block {
    margin-bottom: 2rem;
}

.about-content h2 {
    color: #8B4513;
    margin-bottom: 1rem;
}

/* Services content */
.services-content {
    padding: 4rem 1rem;
}

/* Contact Section (Corrected) */
.contact-info-boxes {
    padding: 4rem 1rem;
    background: #f8f9fa;
}

.contact-info-boxes .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.contact-box:hover {
    transform: translateY(-10px);
}

.contact-icon {
    margin-bottom: 1rem;
    color: #8B4513;
}

.contact-icon i {
    font-size: 2.5rem;
}

.contact-info-details h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.2em;
}

.contact-info-details p {
    margin: 0;
    color: #555;
}

/* Brick Gallery */
.brick-gallery {
    padding: 4rem 1rem;
    background: white;
}

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

.brick-card {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.brick-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
}

.brick-info {
    padding: 1.5rem;
    text-align: center;
}

.brick-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 3rem 1rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #F5F5DC;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #F5F5DC;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hamburger-menu {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #8B4513;
        text-align: center;
        transform: translateY(-200%);
    }

    #menu-toggle:checked + .hamburger-menu + .nav-menu {
        transform: translateY(0);
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    main {
        margin-top: 80px; /* Adjust main content margin for the smaller header */
    }

    .contact-info-boxes .container {
        flex-direction: column; /* Stack vertically on small screens */
        align-items: center;
    }
}