/* GENERAL */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #F5FAFC;
    color: #1A1A1A;
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; }

/* NAV */
.nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #0E355B;
    text-decoration: none;
}

.logo span {
    color: #1AA6D1;
}

.nav nav a {
    margin: 0 12px;
    color: #0E355B;
    font-weight: 600;
    text-decoration: none;
}

.nav nav a:hover {
    color: #1AA6D1;
}

/* =========================
   MOBILE HAMBURGER MENU
========================= */

/* hide hamburger on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #0E355B;
    border-radius: 2px;
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav {
        position: relative;
        padding: 14px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #cbddec;
        flex-direction: column;
        padding: 15px 0;
        z-index: 999;
    }

    .nav nav.active {
        display: flex;
    }

    .nav nav a {
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
}

/* HERO */
.hero {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0%,   /* dark at top */
        rgba(0,0,0,0.4) 20%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0) 60%    /* fully transparent by middle */
    );
}

.hero-content h1 {
    font-size: 2.8rem;
}

/* Lock content 30px from top */
.hero-content {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 700;
}

.hero p {
    margin-top: 15px;
    font-size: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

    .hero-image {
        height: 250px;   /* shorter image */
    }

    .hero-content h1 {
        font-size: 1.9rem;   /* bigger heading */
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1.15rem;  /* bigger intro text */
    }

}

.hero-buttons {
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
    display: inline-block;
}

.primary { background: #1AA6D1; color: white; }
.primary:hover { background: #38D6C7; }

.secondary { border: 2px solid white; color: white; }
.secondary:hover { background: white; color: #0E355B; }

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.feature {
    background: #fff;
    border-radius: 10px;
    overflow: hidden; /* VERY IMPORTANT */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

/* IMAGE */
.feature img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* TITLE */
.feature h3 {
    font-size: 22px;
    margin: 18px 15px 10px;
}

/* TEXT */
.feature p {
    font-size: 15px;
    line-height: 1.5;
    padding: 0 18px 22px;
    color: #555;
}

.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-link:hover .feature {
    transform: translateY(-3px);
    transition: 0.2s ease;
}

/* TABLET */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {

    /* TWO blocks side by side */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature img {
        height: 140px;
    }

    .feature h3 {
        font-size: 18px;
    }

    .feature p {
        font-size: 14px;
        padding: 0 12px 18px;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 480px) {
    
    .features {
        padding: 0 12px;
        gap: 12px;
    }
    
    .feature img {
        height: 120px;
    }

    .feature h3 {
        font-size: 16px;
    }

    .feature p {
        font-size: 13px;
    }
}

/* POOL CARE GUIDE GRID */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
    padding: 0 20px;
}

/* TABLET */
@media (max-width: 1024px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

.seasonal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 40px;
    padding: 0 20px;
}

/* MOBILE */
@media (max-width: 768px) {
    .seasonal-grid {
        grid-template-columns: 1fr;
    }
}

/* ARTICLES */
.articles {
    padding: 60px 20px 10px 20px;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.article-grid article {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.article-grid img {
    width: 100%;
    border-radius: 8px;
}

.read-more {
    color: #1AA6D1;
    text-decoration: none;
}

/* RESOURCES */
.resources {
    padding: 60px 20px;
    background: #E8F8FF;
    text-align: center;
}

.resources ul {
    list-style: none;
    margin-top: 20px;
    font-size: 18px;
}

/* REVIEWS */
.reviews {
    padding: 50px 20px;
    text-align: center;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* SIGNUP */
/* 
.signup {
    padding: 60px 20px;
    background: #1AA6D1;
    color: white;
    text-align: center;
}

.signup form {
    margin-top: 20px;
}

.signup input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 250px;
}

.signup button {
    padding: 12px 20px;
    border: none;
    margin-left: 10px;
    border-radius: 8px;
    background: #0E355B;
    color: white;
    cursor: pointer;
}
*/

/* SIMPLE PAGE HEADER */
.page-header {
    padding: 70px 20px 30px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: #0E355B;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* PRIVACY POLICY PAGE */
.privacy-policy {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px 80px;
}

.privacy-policy h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: #0E355B;
    margin-bottom: 20px;
    line-height: 1.2;
}

.privacy-policy h2 {
    font-size: 28px;
    color: #0E355B;
    margin-top: 50px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.privacy-policy p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
}

.privacy-policy ul {
    margin: 20px 0 25px 25px;
}

.privacy-policy li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
}

.privacy-policy a {
    color: #1AA6D1;
    text-decoration: none;
    font-weight: 500;
}

.privacy-policy a:hover {
    color: #0E355B;
    text-decoration: underline;
}

.privacy-policy strong {
    color: #0E355B;
}

/* MOBILE */
@media (max-width: 768px) {

    .privacy-policy {
        margin: 40px auto;
        padding: 0 18px 60px;
    }

    .privacy-policy h1 {
        font-size: 32px;
    }

    .privacy-policy h2 {
        font-size: 24px;
        margin-top: 40px;
    }

    .privacy-policy p,
    .privacy-policy li {
        font-size: 16px;
    }
}
/* FOOTER */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: #0E355B;
    color: white;
}

.footer a {
    color: #38D6C7;
    text-decoration: none;
}

/* GOOGLE RESPONSIVE */

.ad-container {
    width: 100%;
    margin: 50px auto;
    padding: 10px 0;
    text-align: center;
}

.ad-container {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.inarticle-ad {
    margin: 50px 0;
}

/* PRODUCT SECTIONS */
.product-section {
    margin-bottom: 70px;
    overflow: hidden;
}

/* PRODUCT IMAGE */
.product-section .article-image {
    width: 320px;
    max-width: 100%;
    float: right;
    margin: 0 0 20px 30px;
    border-radius: 10px;
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {

    .product-section .article-image {
        float: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 20px;
        display: block;
    }

}