/* ======================================
   Global Styles
   ====================================== */

   :root {
    /* Color Variables */
    --primary-color: #FF8C00;
    --secondary-color: #e67600;
    --background-color: #202020;
    --text-color: #FFFFFF;
    --dark-background: #333333;
    --dark-border: #444444;
    --success-color: #388e3c;
    --success-hover-color: #2e7d32;
    --input-background: #444444;
    --input-border: #555555;
    --placeholder-color: #CCCCCC;
    
    /* Font Variables */
    --font-family: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-size-large: 1.2em;
    --font-weight-bold: 700;
    
    /* Spacing Variables */
    --container-padding: 20px;
    --section-margin-top: 60px;
    --gap-large: 40px;
    --gap-medium: 30px;
    --gap-small: 20px;
}

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

body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ======================================
   Container Styles
   ====================================== */

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

/* ======================================
   Header Styles
   ====================================== */

header {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 15px 0;
    position: relative; /* For absolute positioning of nav-list */
}

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

.logo {
    font-size: 1.5em;
    font-weight: var(--font-weight-bold);
}

/* Navigation Styles */
nav {
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--gap-medium);
}

.nav-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: color 0.3s ease;
}

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

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* ======================================
   Hero Section Styles
   ====================================== */

   #hero {
    background: url('../images/hero.jpg') center/cover no-repeat;
    color: var(--text-color);
    text-align: center;
    padding: 60px 0; /* Removed horizontal padding to allow full-width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero .hero-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: cover; /* Ensures the image covers its container without distortion */
}

#hero .hero-text {
    max-width: 800px; /* Limits text width for readability */
    padding: 0 20px; /* Adds horizontal padding for better text presentation */
}

#hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#hero .btn {
    margin-top: 20px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.3s ease;
    display: inline-block;
}

#hero .btn:hover {
    background-color: var(--secondary-color);
}

/* ======================================
   Services Section Styles
   ====================================== */

#services {
    margin-top: var(--section-margin-top);
}

#services h2 {
    text-align: center;
    margin-bottom: var(--gap-large);
    font-size: 2em;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-large);
}

.service-card {
    display: flex;
    background-color: var(--dark-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--dark-border);
}

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

.service-card img {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-right: 1px solid var(--dark-border);
}

.service-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.service-info h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.5em;
}

.service-info p {
    margin: var(--gap-small) 0;
    line-height: 1.6;
}

.service-info a.btn {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.3s ease;
}

.service-info a.btn:hover {
    background-color: var(--secondary-color);
}

/* ======================================
   Specialized Services Section Styles
   ====================================== */

#dva-commercial-residential {
    margin-top: var(--section-margin-top);
}

#dva-commercial-residential h2 {
    text-align: center;
    margin-bottom: var(--gap-large);
    font-size: 2em;
}

.service-list.dva-commercial-residential {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card.dva-commercial-residential {
    background-color: var(--dark-background);
    padding: 20px;
    border-radius: 10px;
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: calc(30% - 20px); /* Adjust based on design */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card.dva-commercial-residential:hover {
    transform: translateY(-5px);
}

.service-card.dva-commercial-residential img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 15px;
}

.service-card.dva-commercial-residential .service-info {
    padding: 0;
}

.service-card.dva-commercial-residential h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.service-card.dva-commercial-residential p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-card.dva-commercial-residential a.btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 5px;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.3s ease;
}

.service-card.dva-commercial-residential a.btn:hover {
    background-color: var(--secondary-color);
}

/* ======================================
   Service Areas Section Styles
   ====================================== */

#service-areas {
    margin-top: var(--section-margin-top);
}

#service-areas h2 {
    text-align: center;
    margin-bottom: var(--gap-large);
    font-size: 2em;
}

.service-areas .service-card {
    display: flex;
    background-color: var(--dark-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--dark-border);
}

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

.service-areas .service-card img {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-right: 1px solid var(--dark-border);
}

.service-areas .service-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.service-areas .service-info h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.5em;
}

.service-areas .service-info ul {
    list-style: disc;
    margin-left: 20px;
}

.service-areas .service-info p {
    margin: var(--gap-small) 0;
    line-height: 1.6;
}

.service-areas .service-info a.btn {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.3s ease;
}

.service-areas .service-info a.btn:hover {
    background-color: var(--secondary-color);
}

/* ======================================
   About Section Styles
   ====================================== */

#about {
    display: flex;
    gap: var(--gap-large);
    align-items: center;
    margin-top: var(--section-margin-top);
    flex-wrap: wrap;
}

#about img.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
}

#about .about-text {
    flex: 1;
    color: var(--text-color);
    text-align: left;
}

#about .about-text h2 {
    margin-bottom: var(--gap-small);
    font-size: 2em;
    color: var(--primary-color);
}

#about .about-text p {
    line-height: 1.6;
}

/* ======================================
   Reviews Section Styles
   ====================================== */

#reviews {
    background: url('../images/reviews-bg.jpg') center/cover no-repeat;
    color: var(--text-color);
    padding: 60px 20px;
    text-align: center;
}

#reviews h2 {
    margin-bottom: var(--gap-large);
    font-size: 2em;
}

.review-list {
    max-width: 800px;
    margin: 0 auto;
}

.review-list p {
    font-size: 1.1em;
}

/* ======================================
   Contact Form Section Styles
   ====================================== */

#contact {
    margin-top: var(--section-margin-top);
}

#contact h2 {
    text-align: center;
    margin-bottom: var(--gap-large);
    font-size: 2em;
}

.quote-form {
    display: grid;
    gap: var(--gap-small);
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--dark-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.quote-form .form-group {
    display: flex;
    flex-direction: column;
}

.quote-form label {
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.quote-form input,
.quote-form textarea {
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: var(--placeholder-color);
}

.quote-form input:focus,
.quote-form textarea:focus {
    border-color: #66bb6a;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 187, 106, 0.5);
}

.quote-form textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form .btn {
    width: 100%;
    padding: 15px;
    background-color: var(--success-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.125em;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.3s ease;
}

.quote-form .btn:hover {
    background-color: var(--success-hover-color);
}

#form-message {
    margin-top: 20px;
    font-size: 1em;
    color: var(--success-color);
    text-align: center;
}

/* ======================================
   Footer Styles
   ====================================== */

footer {
    background-color: var(--dark-background);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: var(--section-margin-top);
    border-top: 1px solid var(--dark-border);
}

footer p {
    font-size: 1em;
}

/* ======================================
   Responsive Styles
   ====================================== */

@media (max-width: 800px) {
    /* Adjust Container Padding */
    .container {
        padding: 0 15px;
    }
    
    /* Header Navigation - Mobile Styles */
    .nav-list {
        flex-direction: column;
        gap: var(--gap-small);
        position: absolute;
        top: 55px; /* Adjust based on header height */
        right: 10px;
        background-color: var(--background-color);
        width: 180px;
        display: none;
        padding: 10px 0;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        text-align: center;
    }

    .nav-list li a {
        font-size: 1.1em;
        padding: 10px 0;
    }

    /* Show Hamburger Menu */
    .hamburger {
        display: flex;
    }

    /* Adjust Logo Size */
    .logo {
        font-size: 1.2em;
    }

    /* Adjust Header Padding */
    header {
        padding: 10px 0;
    }

    /* Hero Section Adjustments */
    #hero {
        padding: 40px 15px;
    }

    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1em;
    }

    /* About Section Adjustments */
    #about {
        flex-direction: column;
        text-align: center;
    }

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

    /* Service Areas Section Adjustments */
    .service-list.dva-commercial-residential {
        flex-direction: column;
        align-items: center;
    }

    .service-card.dva-commercial-residential {
        width: 100%;
    }

    /* Services Section Adjustments */
    .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-card img {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
    }

    .service-info {
        padding: 20px;
    }

    /* Contact Form Adjustments */
    .quote-form {
        padding: 20px;
    }
}

/* ======================================
   Additional Styles
   ====================================== */

/* Optional: Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Optional: Link Hover Effects */
a {
    transition: color 0.3s ease;
}

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

/* Optional: Button Focus Styles for Accessibility */
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
