/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

ul {
    list-style: none;
}

.button {
    display: inline-block;
    background: #35424a;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    background: #e8491d;
}

.dark {
    background: #35424a;
    color: #fff;
    padding: 20px;
}

/* Header */
header {
    background: #35424a;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

header li {
    display: inline;
    padding: 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #e8491d;
    font-weight: bold;
}

header a:hover {
    color: #e8491d;
    font-weight: bold;
}

/* Hero Section with Slideshow */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 60px; /* Account for fixed header */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 80%;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-slideshow {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Features Section */
#features {
    padding: 60px 0;
    text-align: center;
    background: #f4f4f4;
}

.feature-box {
    display: inline-block;
    width: 30%;
    padding: 20px;
    margin: 0 1.5%;
    vertical-align: top;
}

.feature-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* Newsletter Section */
#newsletter {
    padding: 30px 0;
    background: #35424a;
    color: #fff;
}

#newsletter h2 {
    float: left;
}

#newsletter form {
    float: right;
    margin-top: 15px;
}

#newsletter input[type="email"] {
    padding: 10px;
    height: 40px;
    width: 250px;
    border: none;
    border-radius: 5px 0 0 5px;
}

#newsletter button {
    height: 40px;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 20px;
    background: #e8491d;
    color: #fff;
}

/* Showcase Sections (for other pages) */
#about-showcase, #services-showcase, #contact-showcase {
    padding: 100px 0 60px;
    background: #35424a;
    color: #fff;
    text-align: center;
}

/* About Page */
#about-content {
    padding: 40px 0;
}

#about-content article {
    float: left;
    width: 65%;
    padding-right: 30px;
}

#about-content aside {
    float: right;
    width: 30%;
    margin-top: 20px;
}

/* Services Page */
#services {
    padding: 40px 0;
    text-align: center;
}

.service-box {
    display: inline-block;
    width: 30%;
    padding: 20px;
    margin: 0 1.5%;
    vertical-align: top;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.service-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

#quote {
    padding: 40px 0;
    text-align: center;
}

#quote form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

#quote input, #quote textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#quote textarea {
    height: 150px;
}

/* Contact Page */
#contact {
    padding: 40px 0;
}

.contact-form {
    float: left;
    width: 60%;
    padding-right: 30px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 200px;
}

.contact-info {
    float: right;
    width: 35%;
}

.social {
    margin-top: 20px;
}

.social a {
    display: inline-block;
    margin-right: 10px;
}

.social img {
    width: 40px;
    height: 40px;
}

/* Footer */
footer {
    padding: 20px 0;
    background: #e8491d;
    color: #fff;
    text-align: center;
    clear: both;
}

/* Responsive Design */
@media (max-width: 480px) {
    header #branding,
    header nav,
    header nav li,
    #newsletter h2,
    #newsletter form,
    #about-content article,
    #about-content aside,
    .contact-form,
    .contact-info {
        float: none;
        text-align: center;
        width: 100%;
    }
    
    header {
        padding: 20px;
    }
    
    #hero {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .feature-box, .service-box {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
    
    #newsletter form {
        margin-top: 20px;
    }
    
    #newsletter input[type="email"] {
        width: 100%;
        margin-bottom: 5px;
    }
    
    #about-content article {
        padding-right: 0;
    }
    
    .contact-form {
        padding-right: 0;
        margin-bottom: 40px;
    }

}