/* =========================================================
   HOME PAGE
   Layout and spacing only. Theme colors are unchanged.
   Loaded on index.html only.
========================================================= */

.home-page {
    background: #ffffff;
    color: #4a4a4a;
    font-family: "Google Sans Flex", sans-serif;
}

.home-page img {
    max-width: 100%;
}

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

.home-page 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;
}

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

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

.home-page header .branding img {
    width: 118px;
    height: auto;
    margin-right: 16px;
}

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

.home-page header .company-info h1 span {
    color: #003C8F;
}

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

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

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

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

.home-page header nav a:hover,
.home-page header nav a[href="index.html"] {
    color: #00AEEF;
}

.home-page header nav a:hover::after,
.home-page header nav a[href="index.html"]::after {
    width: 100%;
}

.home-page .nav-toggle {
    display: none;
}

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

.home-page .hero {
    height: calc(100vh - 86px);
    min-height: 620px;
    max-height: 860px;
}

.home-page .hero-overlay {
    background:
        linear-gradient(180deg, rgba(0, 28, 64, 0.28) 0%, rgba(0, 24, 56, 0.62) 100%);
}

.home-page .hero-content {
    width: min(880px, calc(100% - 48px));
    max-width: 880px;
    padding: 0 24px 28px;
}

.home-page .hero-subtitle {
    margin: 0 0 16px;
    color: #4FC3F7;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-page .hero-title {
    max-width: 920px;
    margin: 0 auto 18px;
    color: #ffffff;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-page .hero-description {
    max-width: 640px;
    margin: 0 auto 32px;
    color: #E5E5E5;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
}

.home-page .hero .btn,
.home-page .products-button .btn,
.home-page .home-projects .project-button .btn {
    display: inline-block;
    min-height: 0;
    padding: 15px 32px;
    border: 0 !important;
    border-radius: 999px;
    background: #009FE3 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 114, 188, 0.28);
}

.home-page .hero .btn:hover,
.home-page .products-button .btn:hover,
.home-page .home-projects .project-button .btn:hover {
    background: #007BC1 !important;
    transform: translateY(-2px);
}

.home-page .hero-prev,
.home-page .hero-next {
    width: 48px;
    height: 48px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.home-page .hero-prev { left: 22px; }
.home-page .hero-next { right: 22px; }

.home-page .hero-prev:hover,
.home-page .hero-next:hover {
    background: #009FE3;
}

.home-page .hero-dots {
    bottom: 28px;
    gap: 10px;
}

.home-page .hero-dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.55);
}

.home-page .hero-dot.active {
    background: #009FE3;
}

/* ---------------------------------------------------------
   SHARED SECTIONS
--------------------------------------------------------- */

.home-page .home-about,
.home-page .services,
.home-page .products,
.home-page .home-projects {
    padding: 92px 0;
}

.home-page .home-about-container,
.home-page .services-container,
.home-page .products .products-container,
.home-page .home-projects .projects-container {
    width: min(1160px, calc(100% - 48px));
    max-width: 1160px;
}

.home-page .home-about-heading,
.home-page .service-heading,
.home-page .products .products-heading,
.home-page .home-projects .section-title {
    margin-bottom: 42px;
    text-align: center;
}

.home-page .home-about-heading h2,
.home-page .service-heading h2,
.home-page .products .products-heading h2,
.home-page .home-projects .section-title h2 {
    display: inline-block;
    margin: 0;
    color: #003C8F;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.home-page .home-about-heading h2::after,
.home-page .service-heading h2::after,
.home-page .products .products-heading h2::after,
.home-page .home-projects .section-title h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: #00AEEF;
}

.home-page .home-about-heading p,
.home-page .service-heading p,
.home-page .products .products-heading p,
.home-page .home-projects .section-subtitle {
    max-width: 640px;
    margin: 14px auto 0;
    color: #063652;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   ABOUT
--------------------------------------------------------- */

.home-page .home-about {
    background: #ffffff;
}

.home-page .home-about-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 0;
    background: #FDFCF8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 40, 80, 0.08);
}

.home-page .home-about-image {
    min-height: 420px;
    height: auto;
}

.home-page .home-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .home-about-text {
    padding: 48px 44px;
    justify-content: center;
}

.home-page .service-icon,
.home-page .products .product-card .product-icon {
    width: 46px;
    height: 46px;
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e7f4fb;
    color: #0072BC;
    font-size: 18px;
    line-height: 1;
}

.home-page .service-icon i,
.home-page .products .product-card .product-icon i {
    font-size: 18px;
    line-height: 1;
}

.home-page .home-about-text h3 {
    margin: 0 0 14px;
    color: #003C8F;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.home-page .home-about-text p {
    margin: 0 0 14px;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
}

.home-page .home-about-text a,
.home-page .service-pool-content a,
.home-page .service-small a,
.home-page .service-sauna-content a,
.home-page .service-bottom-card a,
.home-page .products .product-card a {
    color: #009FE3;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-page .home-about-text a:hover,
.home-page .service-pool-content a:hover,
.home-page .service-small a:hover,
.home-page .service-sauna-content a:hover,
.home-page .service-bottom-card a:hover,
.home-page .products .product-card a:hover {
    color: #003C8F;
}

/* ---------------------------------------------------------
   SERVICES
--------------------------------------------------------- */

.home-page .services {
    background: #86BFD6;
}

.home-page .services-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.home-page .services .service-heading {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.home-page .services-top,
.home-page .services-right {
    display: contents;
}

.home-page .service-pool,
.home-page .service-small,
.home-page .service-bottom-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #FDFCF8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 40, 80, 0.08);
}

.home-page .service-small {
    background: #F8FBFC;
}

.home-page .service-small.water-feature,
.home-page .service-small.water-supply {
    padding: 0 0 22px;
}

.home-page .service-small.water-feature .service-pool-image,
.home-page .service-small.water-supply .service-pool-image,
.home-page .service-small.water-feature .service-pool-image img,
.home-page .service-small.water-supply .service-pool-image img {
    width: 100%;
    margin: 0;
}

.home-page .service-small.water-feature .service-pool-image,
.home-page .service-small.water-supply .service-pool-image {
    margin-bottom: 18px;
}

.home-page .service-small.water-feature .service-pool-image img,
.home-page .service-small.water-supply .service-pool-image img {
    display: block;
    object-fit: cover;
    object-position: center 42%;
}

.home-page .service-small.water-supply .service-pool-image img {
    object-position: center 60%;
}

.home-page .service-small.water-feature > .service-icon,
.home-page .service-small.water-supply > .service-icon,
.home-page .service-small.water-feature > h3,
.home-page .service-small.water-supply > h3,
.home-page .service-small.water-feature > p,
.home-page .service-small.water-supply > p,
.home-page .service-small.water-feature > a,
.home-page .service-small.water-supply > a {
    margin-left: 24px;
    margin-right: 24px;
}

.home-page .fire-supply { background: #FBFAF7; }
.home-page .maintenance { background: #F8FAFC; }

.home-page .service-pool-image {
    order: -1;
    width: 100%;
    height: 190px;
    min-height: 190px;
    margin: 0;
    overflow: hidden;
}

.home-page .service-pool-image img {
    width: 100%;
    height: 190px;
    min-height: 190px;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.home-page .service-pool-content,
.home-page .service-small,
.home-page .service-sauna-content,
.home-page .service-bottom-card {
    padding: 24px 24px 22px;
}

.home-page .service-pool-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-page .service-pool h3,
.home-page .service-small h3,
.home-page .service-sauna h3,
.home-page .service-bottom-card h3 {
    margin: 0 0 8px;
    color: #003C8F;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.home-page .service-pool p,
.home-page .service-small p,
.home-page .service-sauna p,
.home-page .service-bottom-card p {
    margin: 0 0 14px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
}


.home-page .service-pool-content a,
.home-page .service-small a,
.home-page .service-bottom-card a,
.home-page .products .product-card a {
    margin-top: auto;
    padding-top: 4px;
}

.home-page .service-sauna {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    min-height: 340px;
    margin: 0;
    padding: 0;
    background: #FCFAF6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 40, 80, 0.08);
}

.home-page .service-sauna-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.home-page .sauna-photo {
    height: 100%;
    min-height: 340px;
    overflow: hidden;
}

.home-page .sauna-photo img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-page .services-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin: 0;
}

/* ---------------------------------------------------------
   PRODUCTS
--------------------------------------------------------- */

.home-page .products {
    background: #ffffff;
}

.home-page .products .products-container {
    display: block;
    padding: 0;
}

.home-page .products .products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: auto;
}

.home-page .products .product-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 28px 26px 24px;
    background: #FDFCF8;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 40, 80, 0.07);
    overflow: visible;
}

.home-page .products .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 40, 80, 0.12);
}


.home-page .products .product-card h3 {
    margin: 0 0 8px;
    color: #003C8F;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.home-page .products .product-card p {
    min-height: 0;
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
}

.home-page .products-button {
    margin-top: 36px;
    text-align: center;
}

/* ---------------------------------------------------------
   PROJECTS
--------------------------------------------------------- */

.home-page .home-projects {
    background: #eef8ff;
}

.home-page .home-projects .project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-page .home-projects .project-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 40, 80, 0.08);
    text-decoration: none;
}

.home-page .home-projects .project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.home-page .home-projects .project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 20px 22px 22px;
}

.home-page .home-projects .project-category {
    margin-bottom: 8px;
    color: #0072BC;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .home-projects .project-content h3 {
    margin: 0 0 8px;
    color: #003C8F;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.home-page .home-projects .project-content p {
    margin: 0;
    color: #5F6872;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.home-page .home-projects .project-button {
    margin-top: 36px;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.home-page .footer {
    padding: 72px 0 0;
    background: #111111;
}

.home-page .footer .footer-grid {
    width: min(1160px, calc(100% - 48px));
    align-items: start;
}

.home-page .footer h2,
.home-page .footer h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.home-page .footer h4::after,
.home-page .footer-about h2::after {
    width: 42px;
    height: 2px;
    margin-top: 10px;
    background: #00AEEF;
}

.home-page .footer-about h2::after {
    display: block;
}

.home-page .footer p,
.home-page .footer a,
.home-page .footer li {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.home-page .footer .footer-email,
.home-page .footer .footer-email a,
.home-page footer.footer .footer-grid .footer-email {
    white-space: normal;
    overflow-wrap: anywhere;
}

.home-page #scrollTopBtn {
    border-radius: 999px;
    background: #0d9de3;
}

/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .home-page header .company-info h1 {
        font-size: 18px;
        white-space: normal;
    }

    .home-page header .company-info p {
        font-size: 12px;
        white-space: normal;
    }

    .home-page header .branding img {
        width: 100px;
    }

    .home-page header nav {
        gap: 16px;
    }

    .home-page .hero-title {
        font-size: 44px;
    }

}

@media (max-width: 900px) {

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

    .home-page header .company-info {
        display: none;
    }

    .home-page header .branding img {
        width: 112px;
        margin-right: 0;
    }

    .home-page .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;
    }

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

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

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

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

    .home-page 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);
    }

    .home-page header.nav-open nav {
        display: flex;
    }

    .home-page header nav a {
        padding: 14px 22px;
        font-size: 16px;
        text-align: left;
        border-top: 1px solid rgba(0, 60, 143, 0.08);
    }

    .home-page header nav a::after {
        display: none;
    }

    .home-page .hero {
        height: auto;
        min-height: 100svh;
        max-height: none;
    }

    .home-page .hero-title {
        max-width: none;
        font-size: 36px;
    }

    .home-page .hero-description {
        font-size: 16px;
    }

    .home-page .hero-prev,
    .home-page .hero-next {
        display: none;
    }

    .home-page .services-container,
    .home-page .services-bottom {
        grid-template-columns: 1fr;
    }

    .home-page .products .products-grid,
    .home-page .home-projects .project-grid,
    .home-page .footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-page .home-about-content {
        grid-template-columns: 1fr;
    }

    .home-page .service-sauna {
        grid-template-columns: 1fr 1fr;
    }

    .home-page .service-sauna-content {
        grid-column: 1 / -1;
    }

    .home-page .sauna-photo {
        min-height: 220px;
        height: 220px;
    }

    .home-page .home-about-image {
        min-height: 280px;
        height: 280px;
    }

    .home-page .footer-about {
        grid-column: 1 / -1;
    }

}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 640px) {

    .home-page .home-about,
    .home-page .services,
    .home-page .products,
    .home-page .home-projects {
        padding: 64px 0;
    }

    .home-page .home-about-container,
    .home-page .services-container,
    .home-page .products .products-container,
    .home-page .home-projects .projects-container,
    .home-page .footer .footer-grid {
        width: min(1160px, calc(100% - 32px));
    }

    .home-page .home-about-heading h2,
    .home-page .service-heading h2,
    .home-page .products .products-heading h2,
    .home-page .home-projects .section-title h2 {
        font-size: 32px;
    }

    .home-page .home-about-heading p,
    .home-page .service-heading p,
    .home-page .products .products-heading p,
    .home-page .home-projects .section-subtitle {
        font-size: 15px;
    }

    .home-page .hero-content {
        width: min(880px, calc(100% - 32px));
        padding: 48px 8px 84px;
    }

    .home-page .hero-subtitle {
        font-size: 12px;
        letter-spacing: 0.14em;
    }

    .home-page .hero-title {
        font-size: 30px;
    }

    .home-page .hero-description {
        font-size: 15px;
        margin-bottom: 26px;
    }

    .home-page .home-about-text,
    .home-page .service-pool-content,
    .home-page .service-small,
    .home-page .service-sauna-content,
    .home-page .service-bottom-card,
    .home-page .products .product-card {
        padding: 22px 20px;
    }

    .home-page .services-top,
    .home-page .services-bottom,
    .home-page .products .products-grid,
    .home-page .home-projects .project-grid,
    .home-page .footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-page .service-pool-image,
    .home-page .service-pool-image img,
    .home-page .home-projects .project-card img {
        height: 200px;
    }

    .home-page .footer {
        padding-top: 48px;
    }

    .home-page #scrollTopBtn span {
        display: none;
    }

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

}
