/* Base styles shared across all pages */
* {
    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;
}

/* Problem-Specific Hero */
.problem-hero {
    position: relative;
    color: white;
    padding: 160px 0 90px;
    text-align: center;
    overflow: hidden;
}

.problem-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('septic1.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.problem-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.problem-hero .container {
    position: relative;
    z-index: 2;
}

.problem-eyebrow {
    display: inline-block;
    background: #eaaa0e;
    color: #100e0a;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.problem-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.problem-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 35px;
}

.problem-cta {
    display: inline-block;
    background: #eaaa0e;
    color: #100e0a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.problem-cta:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.quick-contact-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.quick-contact-bar.vertical {
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 25px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.quick-contact-item:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lead-form-intro .quick-contact-item {
    color: #100e0a;
    background: #f8f9fa;
    border-left: 4px solid #eaaa0e;
}

.lead-form-intro .quick-contact-item:hover {
    background: #f0f0f0;
}

.quick-contact-icon {
    font-size: 1.2rem;
}

/* Explainer Section */
.explainer-section {
    padding: 80px 0;
}

.explainer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.explainer-text h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 700;
}

.explainer-text p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.explainer-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.explainer-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    font-weight: 500;
    color: #333;
}

.check-icon {
    color: #eaaa0e;
    font-weight: 700;
    font-size: 1.2rem;
}

.explainer-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Work Gallery */
.work-gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.work-gallery-section h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 10px;
}

.work-gallery-intro {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.work-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3;
}

.work-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-photo:hover img {
    transform: scale(1.06);
}

/* Services List */
.services-list-section {
    padding: 80px 0;
    text-align: center;
}

.services-list-section h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 40px;
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-list-card {
    background: #f8f9fa;
    padding: 35px 25px;
    border-radius: 10px;
    text-align: left;
    border-top: 4px solid #eaaa0e;
}

.service-list-card h3 {
    color: #000;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-list-card p {
    color: #555;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.trust-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.trust-item {
    text-align: center;
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: #eaaa0e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.trust-item h3 {
    color: #000;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.trust-item p {
    color: #555;
    font-size: 0.95rem;
}

.certifications-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.cert-item {
    flex-shrink: 0;
    width: 220px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Lead Form Section */
.lead-form-section {
    padding: 80px 0;
    background: #100e0a;
}

.lead-form-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.lead-form-intro h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.lead-form-intro p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #eaaa0e;
}

.form-group input[type="file"] {
    padding: 8px;
    border-style: dashed;
}

.form-submit {
    text-align: center;
    padding-top: 10px;
}

.submit-btn {
    background: #eaaa0e;
    color: #100e0a;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #d29a0c;
}

/* Footer */
.footer {
    background: #100e0a;
    color: white;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 150px repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.footer-logo-left {
    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 #eaaa0e;
    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: 900px) {
    .explainer-grid {
        grid-template-columns: 1fr;
    }

    .work-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-list-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-form-wrapper {
        grid-template-columns: 1fr;
    }
}

@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);
    }

    .problem-hero h1 {
        font-size: 2.1rem;
    }

    .problem-subtitle {
        font-size: 1.1rem;
    }

    .work-gallery-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo-left {
        display: none;
    }
}
