
/* =====================================
   GENERAL STYLES
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #252525;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

section {
    scroll-margin-top: 90px;
}


/* =====================================
   NAVIGATION
===================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background-color: #172331;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: #d5aa63;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #d5aa63;
}

.nav-contact {
    border: 1px solid #d5aa63;
    padding: 10px 18px;
}


/* =====================================
   HERO SECTION
===================================== */

.hero {
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 100px 8%;

    background:
        linear-gradient(
            rgba(13, 25, 38, 0.88),
            rgba(13, 25, 38, 0.78)
        ),
        url("../images/hero.jpg") center/cover;

    color: white;
}

.hero-content {
    max-width: 750px;
}

.eyebrow {
    color: #c49a56;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-content > p:not(.eyebrow) {
    font-size: 18px;
    max-width: 550px;
    margin-bottom: 35px;
    color: #e4e4e4;
}


/* =====================================
   BUTTONS
===================================== */

.btn {
    display: inline-block;
    background-color: #c49a56;
    color: #172331;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #e1bb7c;
    transform: translateY(-2px);
}


/* =====================================
   GENERAL SECTIONS
===================================== */

.section {
    padding: 100px 8%;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
    color: #172331;
    margin-bottom: 15px;
}

.section-heading > p:last-child {
    color: #666;
}


/* =====================================
   ABOUT SECTION
===================================== */

.about {
    background-color: #ffffff;
}

.about-content {
    max-width: 900px;
    margin: auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #555;
}


/* =====================================
   SERVICES SECTION
===================================== */

.services {
    background-color: #f4f5f6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background-color: white;
    padding: 40px 35px;
    border-top: 4px solid #c49a56;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.04);

    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 22px;
    color: #172331;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
}

.service-card ul {
    padding-left: 22px;
    color: #555;
}

.service-card li {
    margin-bottom: 7px;
    font-size: 15px;
}

.service-card li::marker {
    color: #c49a56;
}


/* =====================================
   WHY CHOOSE US
===================================== */

.credentials {
    background-color: #172331;
}

.credentials .section-heading h2 {
    color: #ffffff;
}

.credentials .section-heading > p:last-child {
    color: #cccccc;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.credential-card {
    background-color: #202f3e;
    padding: 35px;
    border-left: 4px solid #c49a56;
    transition: 0.3s;
}

.credential-card:hover {
    transform: translateY(-5px);
}

.credential-card h3 {
    color: #d5aa63;
    font-size: 20px;
    margin-bottom: 12px;
}

.credential-card p {
    color: #e0e0e0;
    font-size: 15px;
}


/* =====================================
   SERVICE AREA
===================================== */

.service-area {
    background-color: #f4f5f6;
}

.area-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.area-content p {
    color: #555;
    font-size: 17px;
    margin-bottom: 20px;
}


/* =====================================
   PHOTO GALLERY
===================================== */

.gallery {
    background-color: #ffffff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-grid img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 3px;
    transition: 0.3s;
}

.photo-grid img:hover {
    transform: scale(1.02);
}


/* =====================================
   CONTACT SECTION
===================================== */

.contact {
    text-align: center;
    background-color: #172331;
    color: white;
}

.contact .section-heading h2 {
    color: white;
}

.contact > p {
    margin-bottom: 20px;
    color: #dddddd;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.contact-email {
    margin-top: 25px;
    font-size: 16px;
}

.contact-phone a {
    color: #ffffff;
    text-decoration: none;
}

.contact-phone a:hover {
    color: #d4af37;
}


/* NJ HIC REGISTRATION & LEAD RENOVATION CERTIFIED */

.registration-info {
    display: inline-block;
    margin: 0 auto 20px;
    padding: 18px 30px;
    border: 1px solid #c49a56;
    background-color: #202f3e;
}

.registration-info p {
    color: #cccccc;
    font-size: 13px;
    margin-bottom: 5px;
}

.registration-info strong {
    display: block;
    color: #d5aa63;
    font-size: 19px;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.contact-location {
    color: #d5aa63 !important;
    font-size: 14px;
    margin-top: 15px;
}


/* =====================================
   FOOTER
===================================== */

footer {
    background-color: #101a25;
    color: #aaaaaa;
    text-align: center;
    padding: 30px 15px;
    font-size: 13px;
}

footer p {
    margin-bottom: 5px;
}


/* =====================================
   TABLET RESPONSIVENESS
===================================== */

@media (max-width: 900px) {

    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .service-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================
   MOBILE RESPONSIVENESS
===================================== */

@media (max-width: 600px) {

    .navbar {
        padding: 20px 5%;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .nav-contact {
        padding: 7px 12px;
    }

    .hero {
        min-height: 480px;
        padding: 75px 6%;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-content > p:not(.eyebrow) {
        font-size: 16px;
    }

    .section {
        padding: 70px 6%;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .about-content p,
    .area-content p {
        font-size: 15px;
    }

    .service-card,
    .credential-card {
        padding: 28px 24px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid img {
        height: 240px;
    }

    .registration-info {
        max-width: 100%;
        padding: 16px 20px;
    }

}


/* =========================
   CLICKABLE PORTFOLIO
========================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.portfolio-card {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    padding: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #172331;
    text-align: left;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
    transform: scale(1.06);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    background: linear-gradient(
        transparent 25%,
        rgba(0, 0, 0, 0.8)
    );
}

.portfolio-card-overlay strong {
    font-size: 25px;
    margin-bottom: 7px;
}

.portfolio-card-overlay small {
    font-size: 14px;
    color: #e3e3e3;
}

.portfolio-card:hover .portfolio-card-overlay strong {
    color: #d5aa63;
}

.portfolio-card:focus-visible,
.gallery-close:focus-visible,
.lightbox button:focus-visible {
    outline: 3px solid #d5aa63;
    outline-offset: 3px;
}


/* =========================
   EXPANDED PHOTO GALLERY
========================== */

.portfolio-gallery {
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: 0;
    padding: 80px 30px 30px;
    background: #f4f5f6;
    overflow-y: auto;
    border-radius: 0;
}

.portfolio-gallery[hidden],
.lightbox[hidden] {
    display: none;
}

.portfolio-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-gallery-heading h3 {
    font-size: 28px;
    color: #172331;
    margin: 5px 0 0;
}

.gallery-close {
    background: #172331;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.gallery-close:hover {
    background: #c49a56;
    color: #172331;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.portfolio-photo {
    padding: 0;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #172331;
    aspect-ratio: 4 / 3;
}

.portfolio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-photo:hover img,
.portfolio-photo:focus-visible img {
    transform: scale(1.05);
}


/* =========================
   PHOTO LIGHTBOX
========================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    color: white;
    border: none;
    font-size: 35px;
    cursor: pointer;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

#lightboxCounter {
    color: white;
    margin-top: 15px;
}

.lightbox-arrow {
    background: transparent;
    color: white;
    border: none;
    font-size: 35px;
    cursor: pointer;
    padding: 15px;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
    color: #d5aa63;
}


/* =========================
   MOBILE RESPONSIVENESS
========================== */

@media (max-width: 700px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        height: 250px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-gallery {
        padding: 18px;
    }

    .portfolio-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portfolio-gallery-heading h3 {
        font-size: 23px;
    }

    .lightbox {
        gap: 5px;
        padding: 50px 8px;
    }

    .lightbox-content {
        max-width: 80%;
    }

    .lightbox-arrow {
        font-size: 23px;
        padding: 5px;
    }

    .lightbox-close {
        right: 15px;
        top: 12px;
    }

}
