/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #FFFFFF;
    color: #333;
    line-height: 1.6;
}

/* LOGO */
.logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* HERO – FULL WIDTH + CENTERED */
.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 480px;
    background-image: url('/img/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #E8F8FF; /* fallback color */
}

.hero-route {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 320px; /* or whatever height you want */
    background-image: url('/img/pool-route-hero.jpg'); /* your new image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #E8F8FF;
}

.hero-leakdetection {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 320px; /* or whatever height you want */
    background-image: url('/img/leak-detection.jpg'); /* your new image */
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;
    background-color: #E8F8FF;
}


/* NAVIGATION (FULL WIDTH) */
.main-nav {
    background: #0A2A43;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* NAV LINKS */
.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    background: #1FB6D9;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.main-nav a:hover {
    background: #17A3C2;
    transform: translateY(-2px);
}

/* HAMBURGER BUTTON */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: #0A2A43;
    cursor: pointer;
    margin-left: auto;
    padding: 10px 20px;
}

/* INDEX PAGE HEADER (force light blue background) */
.index-header {
    background: #E8F8FF;
    text-align: center;
    padding: 60px 20px;
}

/* HEADER */
.site-header {
    background: #E8F8FF;
    padding: 20px 0 0 0; /* remove bottom padding */
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* SECTIONS */
section {
    padding: 50px 20px;
    max-width: 900px;
    margin: auto;
}

section h2 {
    color: #0A2A43;
    margin-bottom: 15px;
    font-size: 1.9rem;
}

section p {
    margin-bottom: 15px;
}

/* LINKS */
a.learn-more {
    color: #1FB6D9;
    font-weight: bold;
    text-decoration: none;
}

a.learn-more:hover {
    text-decoration: underline;
}

/* BULLETS */
ul.checklist {
    padding-left: 20px;   /* moves bullets right */
    margin-left: 0;       /* keeps alignment clean */
    list-style-position: outside;
}


/* DROP DOWNS */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}


/* PHOTOS */
.product-photo {
    width: 100%;
    max-width: 350px;   /* controls the largest allowed size */
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
    display: block;
    object-fit: cover;  /* prevents weird stretching */
}



/* FOOTER */
.site-footer {
    background: #0A2A43;
    color: #E8F8FF;
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 4px solid #1FB6D9;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer h4 {
    margin-bottom: 14px;
    font-size: 1.25rem;
    color: #1FB6D9;
    font-weight: 600;
}

.site-footer p {
    margin: 0 0 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-inner div {
    flex: 1;
    min-width: 220px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 0.9rem;
    color: #E8F8FF;
}

.footer-inner a {
    color: #1FB6D9;
    text-decoration: none;
    font-weight: 500;
}

.footer-inner a:hover {
    text-decoration: underline;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 35px;
        text-align: left;
    }
}

/* MOBILE NAVIGATION */
@media (max-width: 1100px) {

    /* Show hamburger */
    .nav-toggle {
        display: block;
    }

    /* Stack header items */
    .header-inner {
        flex-direction: row;
    }

    /* Hide nav links until opened */
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px;
        display: none;
    }

    /* When active, show menu */
    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 90%;
        text-align: center;
    }
}

/* GLOBAL BUTTON STYLE */
a.btn-primary,
.btn-primary {
    display: inline-block;
    background: #1FB6D9;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: 0.25s ease;
}

a.btn-primary:hover,
.btn-primary:hover {
    background: #17A3C2;
    transform: translateY(-2px);
}


/* CONTACT FORM */
form {
    background: #E8F8FF;
    padding: 25px;
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #CCC;
    border-radius: 8px;
    font-size: 1rem;
}

form button {
    background: #1FB6D9;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.25s ease;
}

form button:hover {
    background: #17A3C2;
    transform: translateY(-2px);
}
