/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo h2 {
    color: #000000;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.logo a:hover h2 {
    color: #eaaa0e;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #eaaa0e;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #eaaa0e;
    background: rgba(234, 170, 14, 0.08);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #eaaa0e 0%, #d29a0c 100%);
    box-shadow: 0 4px 12px rgba(234, 170, 14, 0.3);
}

.nav-link.active::before {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header */
.page-header {
    position: relative;
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.page-header-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 170, 14, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
}

.page-header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 35px;
}

.header-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-feature .icon {
    font-size: 2rem;
}

.header-feature span {
    font-weight: 500;
    font-size: 1rem;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.services-overview h2 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-overview p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Services */
.main-services {
    padding: 80px 0;
}

.service-section {
    margin-bottom: 80px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-section.reverse .service-content {
    direction: rtl;
    grid-template-columns: 1fr 1fr;
}

.service-section.reverse .service-text {
    direction: ltr;
}

.service-text h3 {
    color: #000000;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #eaaa0e;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-cta {
    display: inline-block;
    background: #eaaa0e;
    color: #000000;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.service-cta:hover {
    background: #e55a2b;
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 700px;
}

.service-photo {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.residential-image-slider,
.renovation-image-slider,
.septic-image-slider {
    width: 100%;
    height: 700px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.residential-image-slider:hover,
.renovation-image-slider:hover,
.septic-image-slider:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.5s ease;
}

.slider-image.active {
    opacity: 1;
    z-index: 2;
}

.slider-image.fade-out {
    opacity: 0;
    z-index: 1;
}

.placeholder-image {
    width: 100%;
    height: 350px;
    background: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
}

/* Additional Services */
.additional-services {
    padding: 80px 0;
    background: #f8f9fa;
}

.additional-services h2 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.additional-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.additional-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.additional-card h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.additional-card p {
    color: #666;
}

/* Process Section */
.our-process {
    padding: 80px 0;
}

.our-process h2 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #eaaa0e;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
}

/* Services CTA */
.services-cta {
    padding: 80px 0;
    background: #000000;
    color: white;
    text-align: center;
}

.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: #eaaa0e;
    color: #000000;
}

.cta-button.primary:hover {
    background: #d29a0c;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #000000;
}

/* Footer */
.footer {
    background: #100e0a;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 150px repeat(3, 1fr) 150px;
    gap: 40px;
    align-items: start;
}

.footer-logo-left,
.footer-logo-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: 180px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #eaaa0e;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #eaaa0e;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid #000000;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .header-features {
        gap: 25px;
    }

    .header-feature span {
        font-size: 0.9rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-section.reverse .service-content {
        direction: ltr;
        grid-template-columns: 1fr;
    }

    .service-photo {
        height: 400px;
    }

    .service-image {
        height: 400px;
    }

    .residential-image-slider,
    .renovation-image-slider,
    .septic-image-slider {
        height: 400px;
    }

    .service-text h3 {
        font-size: 1.8rem;
    }

    .services-overview h2,
    .additional-services h2,
    .our-process h2,
    .services-cta h2 {
        font-size: 2rem;
    }

    .additional-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo-left,
    .footer-logo-right {
        display: none;
    }
}
