/* =========================================================
   WATER FEATURES PROJECTS
   Layout only. Copy, links and images stay.
========================================================= */

.feature-gallery {
    background: #F8FBFC;
    color: #4a4a4a;
    font-family: "Google Sans Flex", sans-serif;
}

.feature-gallery img {
    max-width: 100%;
}

.feature-gallery .nav-toggle {
    display: none;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.feature-gallery header {
    background: linear-gradient(to right, #ffffff, #eef8ff);
    box-shadow: 0 1px 0 rgba(0, 60, 143, 0.06), 0 8px 24px rgba(0, 40, 80, 0.06);
    padding: 0;
}

.feature-gallery header .container {
    width: min(1160px, calc(100% - 48px));
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.feature-gallery header .branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

.feature-gallery header .sauna-project-slideshow {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    background: transparent;
    flex: 0 0 auto;
}

.feature-gallery header .branding img {
    position: static;
    width: 118px;
    height: auto;
    margin-right: 16px;
    opacity: 1;
    object-fit: contain;
}

.feature-gallery header .company-info h1,
.feature-gallery header .company-info h1 span {
    margin: 0;
    color: #0072BC;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.feature-gallery header .company-info p {
    margin: 4px 0 0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
}

.feature-gallery header nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
}

.feature-gallery header nav a {
    position: relative;
    color: #003C8F;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 0;
    text-decoration: none;
}

.feature-gallery header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #00AEEF;
    transition: width .25s ease;
}

.feature-gallery header nav a:hover,
.feature-gallery header nav a[href="projects.html"] {
    color: #00AEEF;
}

.feature-gallery header nav a:hover::after,
.feature-gallery header nav a[href="projects.html"]::after {
    width: 100%;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.feature-gallery .page-hero.services-hero {
    height: auto;
    min-height: 380px;
    padding: 64px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(0, 28, 64, 0.55), rgba(0, 24, 56, 0.72)),
        url("../images/services/banner.JPG") center center / cover no-repeat;
}

.feature-gallery .page-hero::before {
    display: none;
}

.feature-gallery .services-hero .hero-content {
    width: min(860px, calc(100% - 32px));
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.feature-gallery .services-hero h2 {
    margin: 0;
    color: #ffffff;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.feature-gallery .services-hero h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: #00AEEF;
}

.feature-gallery .services-hero p {
    margin: 16px 0 0;
    color: #E5E5E5;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   GALLERY
--------------------------------------------------------- */

.feature-gallery .projects-page {
    padding: 56px 0 72px;
    background: transparent;
    font-family: "Google Sans Flex", sans-serif;
}

.feature-gallery .projects-container {
    width: min(1160px, calc(100% - 48px));
    max-width: 1160px;
    margin: 0 auto;
}

.feature-gallery .projects-page h2 {
    margin: 8px 0 12px;
    color: #003C8F;
    font-family: "Google Sans Flex", sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.feature-gallery .projects-page h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: #00AEEF;
}

.feature-gallery .projects-page .project-grid + h2 {
    margin-top: 56px;
}

.feature-gallery .projects-page .section-subtitle {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #444444;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}

.feature-gallery .projects-page .project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
}

.feature-gallery .projects-page .project-grid:has(> .project-card.ongoing):not(:has(> .project-card:nth-of-type(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-gallery .projects-page .project-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e7f4fb;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 40, 80, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-gallery .projects-page .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 40, 80, 0.12);
}

.feature-gallery .projects-page .project-card.ongoing {
    border-top: 3px solid #00AEEF;
}

.feature-gallery .projects-page .project-card > img,
.feature-gallery .projects-page .sauna-project-slideshow {
    width: 100%;
    height: 220px;
    background: #e7f4fb;
}

.feature-gallery .projects-page .project-card > img {
    display: block;
    object-fit: cover;
}

.feature-gallery .projects-page .project-content {
    padding: 16px 18px 18px;
    font-family: "Google Sans Flex", sans-serif;
}

.feature-gallery .projects-page .project-content h3 {
    margin: 0 0 10px;
    color: #003C8F;
    font-family: "Google Sans Flex", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.feature-gallery .projects-page .project-content p {
    margin: 0 0 6px;
    color: #555555;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.feature-gallery .projects-page .project-content strong {
    color: #0072BC;
    font-weight: 800;
}

.feature-gallery .project-button {
    margin-top: 28px;
    text-align: center;
}

.feature-gallery .project-button .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #009FE3;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.feature-gallery .project-button .btn:hover {
    background: #007BC1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 114, 188, 0.22);
}

.feature-gallery #scrollTopBtn {
    border-radius: 999px;
    background: #0d9de3;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .feature-gallery header .company-info h1,
    .feature-gallery header .company-info h1 span,
    .feature-gallery header .company-info p {
        white-space: normal;
    }

    .feature-gallery header .company-info h1,
    .feature-gallery header .company-info h1 span {
        font-size: 18px;
    }

    .feature-gallery header .branding img {
        width: 100px;
    }

    .feature-gallery header nav {
        gap: 16px;
    }

    .feature-gallery .services-hero h2 {
        font-size: 40px;
    }

    .feature-gallery .projects-page .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    .feature-gallery header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: min(1160px, calc(100% - 32px));
        min-height: 72px;
    }

    .feature-gallery header .company-info {
        display: none;
    }

    .feature-gallery header .branding img {
        width: 112px;
        margin-right: 0;
    }

    .feature-gallery .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 11px 9px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .feature-gallery .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #003C8F;
        transition: transform .2s ease, opacity .2s ease;
    }

    .feature-gallery header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .feature-gallery header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .feature-gallery header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .feature-gallery header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 8px 0 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: linear-gradient(to right, #ffffff, #eef8ff);
        box-shadow: 0 16px 28px rgba(0, 40, 80, 0.12);
    }

    .feature-gallery header.nav-open nav {
        display: flex;
    }

    .feature-gallery header nav a {
        padding: 14px 22px;
        font-size: 16px;
        text-align: left;
    }

    .feature-gallery header nav a::after {
        display: none;
    }

    .feature-gallery .page-hero.services-hero {
        min-height: 300px;
        padding: 48px 16px;
    }

    .feature-gallery .services-hero h2 {
        font-size: 32px;
    }

    .feature-gallery .projects-page {
        padding: 28px 0 48px;
    }

    .feature-gallery .projects-container {
        width: min(1160px, calc(100% - 32px));
    }

}

@media (max-width: 640px) {

    .feature-gallery .services-hero h2,
    .feature-gallery .projects-page h2 {
        font-size: 28px;
    }

    .feature-gallery .services-hero p,
    .feature-gallery .projects-page .section-subtitle,
    .feature-gallery .projects-page .project-content p {
        font-size: 15px;
    }

    .feature-gallery .projects-page .project-grid,
    .feature-gallery .projects-page .project-grid:has(> .project-card.ongoing):not(:has(> .project-card:nth-of-type(3))) {
        grid-template-columns: 1fr;
    }

    .feature-gallery .project-button .btn {
        width: 100%;
    }

    .feature-gallery #scrollTopBtn span {
        display: none;
    }

    .feature-gallery #scrollTopBtn {
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 50%;
    }

}
