/* ============================================================
   Brightwell Pools - eastrandpools.co.za
   ============================================================ */
:root {
    --navy: #0b2c54;
    --navy-dark: #071e3b;
    --blue: #1273b8;
    --sky: #29a9e0;
    --ice: #eaf5fc;
    --bg: #f5fafd;
    --text: #33475b;
    --muted: #5d7285;
    --wa: #25d366;
    --wa-dark: #1da851;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 44, 84, 0.10);
    --shadow-sm: 0 4px 14px rgba(11, 44, 84, 0.08);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--sky); }

.container { width: 90%; max-width: 1150px; margin: 0 auto; }

.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
    padding: 10px 18px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
    padding: 13px 26px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: all 0.25s ease; line-height: 1.2;
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.btn-call { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-call:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 16px 32px; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(11, 44, 84, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand-logo { height: 64px; width: auto; }

.main-nav ul { display: flex; list-style: none; gap: 6px; align-items: center; }
.main-nav a:not(.btn) {
    display: block; padding: 10px 16px; border-radius: 8px;
    font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--navy);
}
.main-nav a:not(.btn):hover { background: var(--ice); color: var(--blue); }
.main-nav a.active { color: var(--blue); background: var(--ice); font-weight: 600; }
.nav-wa { margin-left: 14px; padding: 11px 22px; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; border-radius: 8px; padding: 10px;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--navy); border-radius: 3px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; color: #fff;
    background:
        linear-gradient(105deg, rgba(7, 30, 59, 0.92) 0%, rgba(11, 44, 84, 0.82) 45%, rgba(18, 115, 184, 0.45) 100%),
        url('../img/pool-hero.jpg') center 40% / cover no-repeat;
    padding: 110px 0 130px;
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C240,80 480,0 720,30 C960,60 1200,10 1440,45 L1440,70 L0,70 Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(41, 169, 224, 0.18); border: 1px solid rgba(41, 169, 224, 0.5);
    color: #bfe6f9; font-family: var(--font-head); font-size: 0.85rem; font-weight: 500;
    padding: 7px 16px; border-radius: 50px; margin-bottom: 22px; letter-spacing: 0.4px;
}
.hero h1 {
    color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 700;
    max-width: 720px; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--sky); }
.hero p { max-width: 620px; font-size: 1.08rem; color: #dcebf7; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 0.9rem; color: #cfe6f5; }
.hero-badge .ico { color: var(--sky); width: 1.3em; height: 1.3em; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
    background: linear-gradient(120deg, var(--navy-dark), var(--navy) 55%, var(--blue));
    color: #fff; padding: 70px 0 60px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: #c9def0; max-width: 640px; margin: 0 auto; }
.page-hero .crumbs { font-size: 0.85rem; color: #9fc4e2; margin-bottom: 14px; font-family: var(--font-head); }
.page-hero .crumbs a { color: #cde4f6; }

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-head .eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: 0.8rem; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--sky); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------------- Intro split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-img::before {
    content: ""; position: absolute; inset: 22px -22px -22px 22px;
    border-radius: var(--radius); background: linear-gradient(135deg, var(--ice), #cfe8f8); z-index: -1;
}
.split h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.split p { margin-bottom: 14px; color: var(--muted); }
.check-list { list-style: none; margin: 18px 0 26px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list .ico { color: var(--wa-dark); flex-shrink: 0; margin-top: 4px; }

/* ---------------- Service cards ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
    background: #fff; border-radius: var(--radius); padding: 34px 28px;
    box-shadow: var(--shadow-sm); border: 1px solid #e4eef6;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
    width: 58px; height: 58px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff;
}
.card-icon .ico { width: 28px; height: 28px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; flex-grow: 1; }
.card .card-link { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.card .card-link:hover { color: var(--wa-dark); }

/* Service detail rows (services page) */
.service-row {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 26px; align-items: start;
    background: #fff; border: 1px solid #e4eef6; border-radius: var(--radius);
    padding: 32px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
    scroll-margin-top: 110px;
}
.service-row .card-icon { margin-bottom: 0; width: 66px; height: 66px; }
.service-row h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-row p { color: var(--muted); margin-bottom: 0; }
.service-row .btn { white-space: nowrap; flex-shrink: 0; align-self: center; }

/* ---------------- Why choose us ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-item { text-align: center; padding: 30px 20px; }
.why-item .card-icon { margin: 0 auto 18px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { font-size: 0.92rem; color: var(--muted); }

/* ---------------- Gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    cursor: pointer; box-shadow: var(--shadow-sm); border: 0; padding: 0; background: none;
    display: block; width: 100%;
}
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px;
    background: linear-gradient(transparent, rgba(7, 30, 59, 0.85));
    color: #fff; font-family: var(--font-head); font-size: 0.9rem; font-weight: 500; text-align: left;
}
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(7, 30, 59, 0.92); align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: 18px; right: 26px; background: none; border: 0;
    color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; font-family: var(--font-head);
}

/* ---------------- Testimonials ---------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi {
    background: #fff; border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow-sm); border: 1px solid #e4eef6; position: relative;
}
.testi::before {
    content: "\201C"; position: absolute; top: 6px; right: 22px; font-family: Georgia, serif;
    font-size: 4.6rem; color: var(--ice); line-height: 1;
}
.testi .stars { color: #f5b301; display: flex; gap: 3px; margin-bottom: 14px; }
.testi .stars .ico { width: 17px; height: 17px; }
.testi p { color: var(--text); font-size: 0.96rem; margin-bottom: 20px; font-style: italic; }
.testi .who { display: flex; align-items: center; gap: 13px; }
.testi .avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.testi .who strong { display: block; font-family: var(--font-head); font-size: 0.95rem; color: var(--navy); }
.testi .who span { font-size: 0.8rem; color: var(--muted); }

/* ---------------- Areas ---------------- */
.areas-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #d8e8f4; color: var(--navy);
    font-family: var(--font-head); font-weight: 500; font-size: 0.92rem;
    padding: 10px 20px; border-radius: 50px; box-shadow: var(--shadow-sm);
}
.area-pill .ico { color: var(--sky); }

/* ---------------- CTA band ---------------- */
.cta-band {
    background: linear-gradient(115deg, var(--navy-dark), var(--navy) 60%, var(--blue));
    border-radius: 20px; padding: 54px 46px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 8px; }
.cta-band p { color: #c9def0; max-width: 520px; }

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff; border: 1px solid #e4eef6; border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.94rem; color: var(--muted); }
.contact-card a:hover { color: var(--blue); }

.wa-form {
    background: #fff; border: 1px solid #e4eef6; border-radius: var(--radius);
    padding: 36px; box-shadow: var(--shadow);
}
.wa-form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.wa-form > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-family: var(--font-head); font-weight: 500;
    font-size: 0.86rem; color: var(--navy); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1.5px solid #d8e4ee; border-radius: 10px;
    font-family: var(--font-body); font-size: 0.95rem; color: var(--text); background: #fbfdfe;
    transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--sky); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* ---------------- Footer ---------------- */
.footer-cta {
    background: linear-gradient(115deg, var(--navy-dark), var(--navy) 55%, var(--blue));
    padding: 46px 0; border-top: 4px solid var(--sky);
}
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.footer-cta p { color: #c9def0; font-size: 0.95rem; }

.site-footer { background: var(--navy-dark); color: #b9cde0; }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 40px; padding: 60px 0 44px;
}
.footer-logo { height: 120px; width: auto; margin-bottom: 16px; }
.footer-services { font-size: 0.9rem; color: #8fabc6; }
.site-footer h3 {
    color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px;
}
.site-footer h3::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px;
    background: var(--sky); border-radius: 2px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #b9cde0; font-size: 0.93rem; transition: 0.2s; }
.footer-links a:hover { color: var(--sky); padding-left: 4px; }
.footer-contact { font-size: 0.95rem; line-height: 2; }
.footer-contact strong { color: #fff; }
.footer-phone, .footer-wa-link {
    display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600;
    font-family: var(--font-head);
}
.footer-phone:hover, .footer-wa-link:hover { color: var(--sky); }
.footer-wa-link .ico { color: var(--wa); }
.footer-areas-title { margin-top: 22px; }
.footer-areas { font-size: 0.88rem; color: #8fabc6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 20px 0; }
.footer-bottom p { text-align: center; font-size: 0.84rem; color: #7e9ab8; }

/* ---------------- Floating WhatsApp ---------------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 1500;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); transition: transform 0.25s ease;
}
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--wa); animation: wa-pulse 2s infinite; z-index: -1;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float-tooltip {
    position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
    background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 0.8rem;
    font-weight: 500; padding: 8px 14px; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
    .cards-grid, .testi-grid, .why-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 64px 1fr; }
    .service-row .btn { grid-column: 2; justify-self: start; }
    .service-row .card-icon { width: 56px; height: 56px; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
        background: #fff; flex-direction: column; padding: 30px 6%;
        transform: translateX(105%); transition: transform 0.3s ease; overflow-y: auto;
    }
    .main-nav.open { transform: none; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid #eef4f9; border-radius: 0; }
    .nav-wa { margin: 18px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .cards-grid, .testi-grid, .why-grid, .gallery-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .brand-logo { height: 54px; }
    .hero { padding: 80px 0 110px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-band, .footer-cta-inner { padding: 40px 26px; }
    .wa-form { padding: 26px 20px; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 28px; height: 28px; }
    .wa-float-tooltip { display: none; }
}
