/* =========================================
   J&L CONSTRUCTION GROUP
   MAIN STYLESHEET
========================================= */


/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

img {
    max-width: 100%;
}

main {
    width: 100%;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;

    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    padding: 12px 18px;

    display: flex;
    align-items: center;
    gap: 18px;

    z-index: 100;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.95;
}

.navbar a:hover {
    color: #59d7de;
}

.navbar .quote-link {
    background: #0EA5A8;
    padding: 9px 14px;
    border-radius: 999px;
}

.navbar .quote-link:hover {
    background: #0b8c8f;
    color: white;
}


/* =========================================
   HOME HERO
========================================= */

.site-header {
    min-height: 92vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(14, 165, 168, 0.25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #071827 0%,
            #102A43 60%,
            #1f2933 100%
        );

    color: white;
    position: relative;

    padding: 35px 6% 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
    padding-top: 70px;
}

.logo {
    width: 430px;
    max-width: 90%;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3.3rem;
    line-height: 1.12;

    max-width: 1050px;

    margin: 0 auto 22px;
}

.hero-content p {
    font-size: 1.35rem;
    line-height: 1.55;

    color: #dbe7ef;

    max-width: 860px;

    margin: 0 auto 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-block;

    padding: 15px 26px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: 800;

    transition: 0.2s ease;
}

.primary-btn {
    background: #0EA5A8;
    color: white;
}

.primary-btn:hover {
    background: #0b8c8f;
}

.secondary-btn {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.secondary-btn:hover {
    background: white;
    color: #102A43;
}


/* =========================================
   HOME SERVICES
========================================= */

.services-section {
    padding: 90px 7%;
    background: #f4f6f8;
}

.section-heading {
    text-align: center;

    max-width: 850px;

    margin: 0 auto 50px;
}

.section-heading span,
.about-text span {
    color: #0EA5A8;

    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    font-size: 0.85rem;
}

.section-heading h2,
.about-text h2,
.cta-section h2 {
    color: #102A43;

    font-size: 2.6rem;

    margin: 14px 0 18px;

    line-height: 1.15;
}

.section-heading p {
    color: #5b6773;

    font-size: 1.15rem;

    line-height: 1.65;
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 26px;
}

.service-card {
    background: white;

    border-radius: 18px;

    padding: 32px 28px;

    box-shadow:
        0 14px 35px rgba(16, 42, 67, 0.12);

    border-top: 5px solid #0EA5A8;

    min-height: 245px;
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.service-card h3 {
    color: #102A43;

    font-size: 1.35rem;

    margin-bottom: 14px;
}

.service-card p {
    color: #5b6773;
    line-height: 1.65;
}


/* =========================================
   HOME ABOUT PREVIEW
========================================= */

.about-preview {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 40px;

    padding: 90px 7%;

    background: white;

    align-items: center;
}

.about-text p {
    color: #4b5563;

    font-size: 1.08rem;

    line-height: 1.75;

    margin-bottom: 16px;
}

.text-link {
    color: #0EA5A8;

    font-weight: 800;

    text-decoration: none;
}

.about-card {
    background:
        linear-gradient(
            135deg,
            #102A43,
            #0EA5A8
        );

    color: white;

    padding: 42px;

    border-radius: 22px;

    box-shadow:
        0 18px 40px rgba(16, 42, 67, 0.22);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.about-card p {
    line-height: 1.7;
    font-size: 1.05rem;
}


/* =========================================
   PAGE HERO
   ABOUT / SERVICES / PROJECTS / CONTACT
========================================= */

.about-hero {
    padding: 105px 7% 70px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #102A43,
            #1f3f60
        );

    color: white;
}

.about-hero h1 {
    font-size: 3.2rem;

    margin-bottom: 15px;

    color: white;
}

.about-subtitle {
    font-size: 1.35rem;

    color: white;

    margin-bottom: 20px;

    font-weight: 600;
}

.about-intro {
    max-width: 850px;

    margin: 22px auto 0;

    font-size: 1.15rem;

    line-height: 1.75;

    color: #d9e6f2;
}

.about-hero p {
    color: #d9e6f2;
}

.about-logo {
    width: 300px;
    max-width: 90%;

    margin-bottom: 25px;
}


/* =========================================
   ABOUT PAGE
========================================= */

.leadership-section {
    padding: 80px 7%;
    background: white;
}

.leadership-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    margin-top: 40px;
}

.leader-card {
    background: #f8fafc;

    padding: 40px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.leader-card img {
    width: 280px;
    height: 320px;

    object-fit: cover;

    border-radius: 12px;

    display: block;

    margin: 0 auto 20px;
}

.leader-photo {
    width: 100%;
    height: 280px;

    object-fit: cover;

    border-radius: 12px;

    margin-bottom: 20px;
}

.leader-photo-placeholder {
    height: 280px;

    background: #dbe7ef;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    font-weight: bold;

    color: #102A43;
}

.leader-card h3 {
    color: #102A43;

    margin-top: 15px;
    margin-bottom: 8px;
}

.leader-card h4 {
    color: #0EA5A8;

    margin-bottom: 18px;
}

.leader-card p {
    line-height: 1.7;

    color: #4b5563;
}

.company-overview {
    padding: 90px 7%;

    background: #f4f6f8;
}

.company-overview p {
    max-width: 900px;

    margin: 0 auto 20px;

    line-height: 1.8;

    color: #4b5563;

    font-size: 1.05rem;
}


/* =========================================
   SERVICES PAGE
========================================= */

.services-hero-page {
    padding: 105px 7% 65px;

    background: #f4f6f8;

    text-align: center;
}

.services-hero-page h1 {
    color: #102A43;

    font-size: 3rem;

    line-height: 1.15;

    margin: 14px 0 20px;
}

.services-page-grid {
    padding: 40px 7% 90px;

    background: #f4f6f8;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 28px;
}

.service-detail-card {
    background: white;

    padding: 35px 30px;

    border-radius: 18px;

    box-shadow:
        0 14px 35px rgba(16, 42, 67, 0.12);

    border-top: 5px solid #0EA5A8;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(16, 42, 67, 0.18);
}

.service-detail-card h2 {
    color: #102A43;

    font-size: 1.5rem;

    margin-bottom: 15px;
}

.service-detail-card p {
    color: #4b5563;

    line-height: 1.7;
}

.services-detail-section {
    padding: 90px 7%;

    background: #f4f6f8;

    display: grid;

    gap: 28px;
}

.service-wide-card {
    background: white;

    border-radius: 18px;

    padding: 35px;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    align-items: start;

    box-shadow:
        0 14px 35px rgba(16, 42, 67, 0.12);

    border-left: 6px solid #0EA5A8;
}

.service-wide-card h2 {
    color: #102A43;

    font-size: 1.7rem;

    margin-bottom: 12px;
}

.service-wide-card p {
    color: #4b5563;

    font-size: 1.05rem;

    line-height: 1.75;
}

.service-detail-icon {
    font-size: 2.8rem;

    background: #e6f7f8;

    width: 70px;
    height: 70px;

    border-radius: 16px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================
   PROJECTS PAGE
========================================= */

.projects-section {
    padding: 70px 7% 80px;

    background: #f4f6f8;
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
}

.project-card {
    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 14px 35px rgba(16, 42, 67, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(16, 42, 67, 0.18);
}

.project-card > img {
    width: 100%;
    height: 260px;

    object-fit: cover;

    display: block;
}

.project-info {
    padding: 28px;
}

.project-info h2 {
    color: #102A43;

    font-size: 1.45rem;

    margin-bottom: 12px;
}

.project-info p {
    color: #4b5563;

    line-height: 1.65;
}

.projects-summary {
    max-width: 900px;

    margin: 70px auto 0;

    text-align: center;

    padding: 0 20px;
}

.projects-summary h2 {
    font-size: 2rem;

    margin-bottom: 20px;

    color: #123a6b;
}

.projects-summary p {
    font-size: 1.1rem;

    line-height: 1.8;

    color: #555;
}


/* =========================================
   BATHROOM PROJECT BUTTON
========================================= */

.bathroom-main-image {
    cursor: pointer;
}

.view-project-btn {
    margin-top: 18px;

    padding: 11px 18px;

    background: #0EA5A8;

    color: white;

    border: none;

    border-radius: 7px;

    font-weight: 700;

    cursor: pointer;

    font-family: inherit;

    font-size: 0.95rem;

    transition: 0.2s ease;
}

.view-project-btn:hover {
    background: #0b8c8f;
}


/* =========================================
   PROJECT LIGHTBOX
========================================= */

.project-lightbox {
    display: none;

    position: fixed;

    z-index: 9999;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    align-items: center;
    justify-content: center;
}

.project-lightbox img {
    max-width: 85%;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;

    top: 22px;
    right: 38px;

    color: white;

    font-size: 45px;

    font-weight: bold;

    line-height: 1;

    cursor: pointer;

    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.55);

    color: white;

    border: none;

    font-size: 40px;

    padding: 15px;

    cursor: pointer;

    border-radius: 8px;

    z-index: 10001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(14, 165, 168, 0.8);
}


/* =========================================
   QUOTE / CONTACT PAGE
========================================= */

.quote-section {
    padding: 90px 7%;

    background: #f4f6f8;

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 45px;

    align-items: start;
}

.quote-info {
    background: white;

    padding: 40px;

    border-radius: 18px;

    box-shadow:
        0 14px 35px rgba(16, 42, 67, 0.12);

    border-top: 5px solid #0EA5A8;
}

.quote-info span {
    color: #0EA5A8;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    font-size: 0.85rem;
}

.quote-info h2 {
    color: #102A43;

    font-size: 2rem;

    margin: 14px 0 18px;
}

.quote-info p {
    color: #4b5563;

    line-height: 1.7;

    margin-bottom: 16px;
}

.contact-details {
    margin-top: 25px;
}

.contact-details a {
    color: #0EA5A8;

    text-decoration: none;

    font-weight: 700;
}

.quote-form {
    background: white;

    padding: 40px;

    border-radius: 18px;

    box-shadow:
        0 14px 35px rgba(16, 42, 67, 0.12);
}

.quote-form label {
    display: block;

    margin-bottom: 8px;

    color: #102A43;

    font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;

    padding: 14px 16px;

    margin-bottom: 20px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    font-size: 1rem;

    font-family: inherit;

    background: white;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;

    border-color: #0EA5A8;

    box-shadow:
        0 0 0 3px rgba(14, 165, 168, 0.15);
}

.quote-form button {
    border: none;

    cursor: pointer;

    width: 100%;

    font-size: 1rem;
}

.form-note {
    margin-top: 18px;

    font-size: 0.9rem;

    line-height: 1.6;

    color: #6b7280;

    text-align: center;
}


/* =========================================
   CTA
========================================= */

.cta-section {
    text-align: center;

    padding: 75px 7%;

    background: #102A43;

    color: white;
}

.cta-section h2 {
    color: white;

    font-size: 2.6rem;

    margin: 14px 0 18px;

    line-height: 1.15;
}

.cta-section p {
    font-size: 1.18rem;

    margin-bottom: 28px;

    color: #dbe7ef;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #071827;

    color: #dbe7ef;

    text-align: center;

    padding: 28px 20px;

    line-height: 1.7;
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 850px) {

    /* Navigation */

    .navbar {
        width: 92%;

        flex-wrap: wrap;

        justify-content: center;

        border-radius: 18px;

        gap: 12px;

        padding: 12px;
    }

    .navbar a {
        font-size: 0.85rem;
    }

    .navbar .quote-link {
        padding: 8px 12px;
    }


    /* Home Hero */

    .site-header {
        min-height: auto;

        padding: 150px 20px 70px;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 2.1rem;

        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;

        line-height: 1.6;
    }

    .logo {
        width: 300px;

        max-width: 90%;
    }


    /* Page Headers */

    .about-hero {
        padding: 120px 20px 60px;
    }

    .about-hero h1 {
        font-size: 2.1rem;

        line-height: 1.2;
    }

    .about-subtitle,
    .about-intro {
        font-size: 1rem;

        line-height: 1.6;
    }

    .about-logo {
        width: 300px;

        max-width: 90%;
    }


    /* Home */

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .about-preview {
        grid-template-columns: 1fr;

        padding: 60px 20px;
    }


    /* About */

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .leader-card {
        padding: 28px;
    }

    .leader-card img {
        width: 220px;
        height: 220px;

        object-fit: cover;

        border-radius: 50%;

        display: block;

        margin: 0 auto 20px;
    }

    .company-overview {
        padding: 60px 20px;
    }


    /* Services */

    .services-detail-section {
        padding: 60px 20px;
    }

    .service-wide-card {
        grid-template-columns: 1fr;

        padding: 30px;
    }

    .service-detail-icon {
        margin-bottom: 5px;
    }

    .service-wide-card h2 {
        font-size: 1.5rem;
    }

    .service-wide-card p {
        font-size: 1rem;
    }


    /* Projects */

    .projects-section {
        padding: 60px 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        width: 100%;
    }

    .project-card > img {
        height: 240px;
    }

    .projects-summary {
        margin: 50px auto 0;

        padding: 0 10px;
    }


    /* Contact */

    .quote-section {
        grid-template-columns: 1fr;

        padding: 60px 20px;
    }

    .quote-info,
    .quote-form {
        padding: 30px;
    }


    /* CTA */

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }


    /* Footer */

    footer {
        padding: 24px 20px;
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 600px) {

    .about-hero {
        padding: 115px 18px 50px;
    }

    .project-lightbox img {
        max-width: 90%;
        max-height: 76vh;
    }

    .lightbox-close {
        top: 18px;
        right: 20px;

        font-size: 38px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 28px;

        padding: 10px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .project-info {
        padding: 22px;
    }

    .quote-info,
    .quote-form {
        padding: 24px;
    }

    .service-wide-card {
        padding: 25px;
    }
}
