/* ============================================================
   HOMEPAGE STYLES — Children's Visions / Water Win Swim
   Standalone stylesheet for the modernized homepage.
   ============================================================ */

:root {
    --color-primary: #0077b6;
    --color-primary-dark: #005f8a;
    --color-primary-light: #90e0ef;
    --color-accent: #f4b400;
    --color-accent-warm: #e8913a;
    --color-bg-light: #f0f8ff;
    --color-bg-white: #ffffff;
    --color-bg-dark: #1a2a3a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-white: #ffffff;
    --color-open: #2e7d32;
    --color-almost-full: #f9a825;
    --color-full: #999999;
    --font-sans: 'Segoe UI', Arial, Helvetica, sans-serif;
    --max-width: 1100px;
    --nav-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* --- Sticky Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: var(--nav-height);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(220, 220, 220, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-text-white);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.site-nav.scrolled .nav-links a {
    color: var(--color-text);
    text-shadow: none;
}

.site-nav.scrolled .nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: var(--color-text-white) !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    text-shadow: none !important;
    transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-white) !important;
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-text-white);
    margin: 5px 0;
    border-radius: 2px;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.site-nav.scrolled .nav-hamburger span {
    background: var(--color-text);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 60, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-text-white);
    padding: 20px;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 0 0 32px;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.4);
}

.hero-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 119, 182, 0.5);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* --- Section Base --- */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    margin: 0 0 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.section--about {
    background: var(--color-bg-white);
}

.instructors-grid {
    display: flex;
    justify-content: center;
}

.instructor-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.instructor-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 0 4px;
}

.instructor-card .about-title {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0 0 8px;
    font-style: italic;
}

.instructor-card .about-credentials {
    display: flex;
    gap: 10px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.instructor-card p {
    margin: 0 0 14px;
    color: var(--color-text);
    line-height: 1.7;
}

/* --- Features Section --- */
.section--features {
    background: var(--color-bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* --- Classes Section --- */
.section--classes {
    background: var(--color-bg-white);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.class-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--color-bg-white);
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.class-card--open { border-color: var(--color-open); }
.class-card--almost-full { border-color: var(--color-almost-full); }
.class-card--full { border-color: var(--color-full); }

.class-card h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: var(--color-text);
}

.class-card__meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0 0 6px;
}

.class-card__status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 10px 0;
}

.class-card--open .class-card__status {
    background: #e8f5e9;
    color: var(--color-open);
}

.class-card--almost-full .class-card__status {
    background: #fff8e1;
    color: #e65100;
}

.class-card--full .class-card__status {
    background: #f5f5f5;
    color: var(--color-full);
}

.class-card__cta {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.class-card__cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-white);
}

.class-card--full .class-card__cta {
    background: var(--color-full);
    cursor: default;
    pointer-events: none;
}

.classes-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* --- Class Levels Section --- */
.section--levels {
    background: var(--color-bg-light);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.level-card {
    background: var(--color-bg-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-primary);
}

.level-card h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: var(--color-primary-dark);
}

.level-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* --- Gallery Section --- */
.section--gallery {
    background: var(--color-bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Google Reviews Section --- */
.section--reviews {
    background: var(--color-bg-light);
}

.google-reviews {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.google-reviews .reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.google-reviews .reviews-badge .google-g {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.google-reviews .reviews-stars {
    color: var(--color-accent);
    font-size: 32px;
    letter-spacing: 2px;
}

.google-reviews .reviews-summary {
    font-size: 16px;
    color: var(--color-text-light);
    margin: 4px 0 24px;
}

.google-reviews .reviews-summary strong {
    color: var(--color-text);
    font-size: 18px;
}

.google-reviews .review-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.google-reviews .review-card {
    background: var(--color-bg-white);
    border-radius: 10px;
    padding: 18px 20px;
    max-width: 210px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.google-reviews .review-card .card-stars {
    color: var(--color-accent);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.google-reviews .review-card .reviewer-name {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #999;
}

.google-reviews .reviews-link {
    font-size: 0.9rem;
}

.google-reviews .reviews-link a {
    color: var(--color-primary);
    font-weight: 600;
}

.google-reviews .reviews-link a:hover {
    color: var(--color-primary-dark);
}

/* --- CTA Section --- */
.section--cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center;
    padding: 70px 24px;
}

.section--cta h2 {
    font-size: 2.2rem;
    color: var(--color-text-white);
    margin: 0 0 12px;
}

.section--cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin: 0 0 30px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 44px;
    background: var(--color-text-white);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    color: var(--color-primary-dark);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 24px 30px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--color-text-white);
    font-size: 1rem;
    margin: 0 0 16px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
}

.footer-col a:hover {
    color: var(--color-text-white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin: 0;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--color-text) !important;
        font-size: 1.2rem;
        text-shadow: none !important;
    }

    .nav-hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-logo {
        width: 130px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .instructor-card {
        max-width: 100%;
    }

    .about-credentials {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .google-reviews .review-cards {
        flex-direction: column;
        align-items: center;
    }

    .google-reviews .review-card {
        max-width: 100%;
    }

    .section--cta h2 {
        font-size: 1.6rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}
