:root {
    --toolbar-height: 80px;
}

* {
    box-sizing: border-box;
}


body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

section,
.hero-section,
.about-section,
.services-section,
#testimonials,
#contact {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: calc(var(--toolbar-height) - 25px);
}


/* Header Styles */
header {
    display: flex;
    flex-direction: column;
    background-color: #0f648a;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--toolbar-height);
    z-index: 100;
}

.logo-container img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    width: 600px;
}

nav ul li {
    margin-left: 20px;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 3;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 5px 10px;
    display: inline-block;
    overflow: hidden;
    z-index: 1;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: rgb(23, 23, 23);
    transition: width 500ms ease-out;
    z-index: -1;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.main-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--toolbar-original-nav-height);
    padding: 10px 10%;
    background-color: #0f648a;
    box-sizing: border-box;
}


/* Hamburger Icon Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
}

.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    filter: blur(10px);
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section {
    height: 100vh;
    position: relative;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 50px;
    padding-top: var(--toolbar-height);
    margin-top: var(--toolbar-height) - 10px;
}

.hero-section:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-color: #127baa82;
    transform: skewX(-20deg) translateX(20%);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.hero-image img.loaded {
    opacity: 1;
}

.hero-image img.loaded + .hero-placeholder,
.hero-image.loaded ~ .hero-placeholder {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
}

.hero-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #127baa;
    color: white;
    border: 2px solid #127baa;
}

.primary-btn:hover {
    background-color: transparent;
    color: #127baa;
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: white;
    color: #1a1a1a;
}

/* Main Content Styles */
.about-section {
    display: flex;
    position: relative;
    padding: 70px 10%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero.jpg');
    background-size: cover;
    background-position: center;
}

.about-content {
    flex: 1;
    padding-right: 40px;
}

.section-number {

    font-size: 142px;
    color: #333;
    font-weight: bold;
    opacity: 1;
    margin-bottom: -85px;
}

.section-title {
    margin-left: 43px;
}

h1 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

h2 {
    font-family: 'Inter', sans-serif;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.contact-btn-container {
    margin-top: 30px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: white;
    color: #1a1a1a;
}

/* Services Highlights Styles */
.services-highlights {
    flex: 1;
}

.service-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    margin-bottom: 20px;
    border: 3px solid #666;
    position: relative;
}

.line-3:after {
    content: "";
    display: block;
    height: 2px;
    width: 43px;
    background-color: rgb(101 101 101);
    position: absolute;
    top: 14px;
    -webkit-transform: rotateZ(149deg);
    transform: rotateZ(-45deg);
    overflow: hidden;
    right: -7px;
    z-index: 0;
    -webkit-transition: all 500ms;
    transition: all 500ms;
}

.line-3:before {
    content: "";
    display: block;
    height: 2px;
    width: 79px;
    background-color: rgb(101 101 101);
    position: absolute;
    bottom: 26px;
    -webkit-transform: rotateZ(-45deg);
    transform: rotateZ(-45deg);
    overflow: hidden;
    left: -12px;
    z-index: 0;
    -webkit-transition: all 500ms;
    transition: all 500ms;
}

.icon-container {
    display: inline-block;
    margin-bottom: 15px;
}

.icon-container img {
    width: 40px;
    opacity: 0.7;
}

.service-card .title {
    display: inline-block;
    vertical-align: super;
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    margin-top: 10px;
    line-height: 1.5;
    padding-left: 60px;
}

/* Quote Section Styles */
.quote-section {
    background-color: #121212;
    padding: 80px 10%;
    text-align: center;
}

.quote-container blockquote {
    font-size: 32px;
    font-weight: bold;
    color: #127baa;
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto 20px;
}

.quote-container cite {
    display: block;
    color: #ffffff;
    font-style: normal;
    font-size: 18px;
    margin-top: 20px;
}

/* Services Section Styles */
.services-section {
    padding: 70px 10%;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.service-box {
    border: 1px solid #333;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.service-box h3 {
    font-size: 18px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    margin: 5px auto;
    display: block;
    filter: invert(54%) sepia(81%) saturate(1729%) hue-rotate(177deg) brightness(101%) contrast(102%);
}

.service-box p {
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
}

/* Assessment Section Styles */
.assessment-section {
    padding: 70px 10%;
    background-color: #0e0e0e;
}

.assesment-flex {
    display: flex;
}

.assessment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
}

.assessment-image {
    margin-bottom: 30px;
    max-width: 200px;
}

.assessment-image img {
    width: 100%;
    height: auto;
}

.assessment-text h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.phone-number {
    display: block;
    font-size: 36px;
    color: #127baa;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 10px;
}

.call-text {
    font-size: 18px;
    color: #ffffff;
}

.assessment-form {
    flex: 1;
    background-color: #151515;
    padding: 50px;
}

.assessment-form h2 {
    color: #127baa;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #111;
    border: 1px solid #333;
    color: white;
    font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.submit-btn {
    background-color: #127baa;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0f5b7e;
}

/* Footer Styles */
footer {
    background-color: #0f648a;
    color: white;
    padding: 40px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 180px;
}

footer {
    .footer-content {
        .social {
            flex: 0.5;
            padding: 0 20px;
        }

        .social a {
            color: #fff;
            transition: color 0.3s;
        }

        .social a img {
            width: 64px;
            height: 64px;
        }

        .social .icon:hover {
            a {
                color: #cccccc;
            }

            p {
                color: #cccccc;
            }

            img {
                filter: brightness(0.85);
            }
        }

        .footer-center {
            flex: 1;
            padding: 0 40px;
            display: flex;
            width: 100%;
            text-align: center;
        }

        .footer-links {
            flex: 1;
        }

        .footer-links ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: center;
        }

        .footer-links ul li a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            transition: color 300ms;
        }

        .footer-links ul li a:hover {
            color: #ebebeb;
        }

        .footer-contact p {
            flex: 1;
            margin: 5px 0;
            text-align: center;
        }
    }
    .permit-footer-info {
        text-align: center;
        color: #d1e7f0; /* A slightly lighter shade of white, or adjust to your preference */
        font-size: 0.85em; /* Consistent with the top bar or adjust as needed */
        margin-top: 20px; /* Space from the footer content above */
        margin-bottom: 20px; /* Space before the copyright */
        padding: 0 10%; /* Horizontal padding consistent with other footer/section elements */
        width: 100%;
        max-width: 1440px; /* Consistent with your main content max-width */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .permit-footer-info p {
        margin: 0;
    }
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}


/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation directions */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays for multiple items */
.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .assessment-section {
        flex-direction: column;
    }

    .assessment-content,
    .assessment-form {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-section:after {
        width: 70%;
        transform: skewX(-15deg) translateX(25%);
    }

    .hero-content h2 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-section {
        flex-direction: column;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .service-card::before {
        display: none;
    }

    .quote-container blockquote {
        font-size: 24px;
    }


    .assesment-flex {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: block;
        flex-direction: column;
        background-color: #0f648a;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 100;

        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
        padding-top: 0;
        padding-bottom: 0;
    }

    nav ul.active {
        opacity: 1;
        max-height: 500px;
        padding: 20px;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .hero-section:after {
        width: 100%;
        transform: skewX(-10deg) translateX(40%);
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content {
        padding: 30px;
    }

    .section-number {
        font-size: 130px;
        color: #333;
        font-weight: bold;
        opacity: 1;
        margin-bottom: -90px;
    }

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

    .assessment-text h2 {
        font-size: 22px;
    }

    .phone-number {
        font-size: 28px;
    }

    .footer-logo {
        width: 180px;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}


@media (max-width: 375px) {
    .service-card p {
        padding-left: 36px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .footer-center {
        padding: 0px !important;
    }

    .service-box {
        padding: 5px 15px;
    }

    .icon-container {
        margin-bottom: 0px;
    }
}
@media (min-width: 768px) {
    .hero-section {
        background-image: url('images/hero-mobile.webp');
    }
}

@media (min-width: 1200px) {
    .hero-section {
        background-image: url('images/hero-desktop.webp'); 
    }
}