/* =============================================
   COVERAGE HERO
   ============================================= */
.coverage-hero {
    position: relative;
    height: 88vh;
    min-height: 600px;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15,23,42,.82) 0%, rgba(30,58,110,.7) 60%, rgba(15,23,42,.82) 100%),
        url('../images/cov.jpg') center center / cover no-repeat;
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* subtle animated mesh background */
.coverage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(14,165,233,.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 70%, rgba(37,99,235,.18) 0%, transparent 70%);
    pointer-events: none;
}

/* hero stats — glassy cards */
.hero-stats {
    display: flex;
    gap: 14px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    padding: 1rem 1.4rem;
    border-radius: 14px;
    text-align: center;
    min-width: 110px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(14,165,233,.5);
    transform: translateY(-3px);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .2rem;
    letter-spacing: -1px;
}

.stat-item p { font-size: .8rem; opacity: .8; margin: 0; font-weight: 500; }

/* coverage map orb */
.coverage-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.coverage-map {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(14,165,233,.35) 0%, transparent 55%),
        radial-gradient(circle at 70% 75%, rgba(37,99,235,.3) 0%, transparent 60%),
        rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(14,165,233,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 70px rgba(14,165,233,.3),
        0 0 130px rgba(37,99,235,.15),
        inset 0 0 50px rgba(14,165,233,.12);
}

/* outer ring */
.coverage-map::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(14,165,233,.2);
    animation: rotateRing 12s linear infinite;
}

/* second ring */
.coverage-map::after {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    border: 1px dashed rgba(37,99,235,.15);
    animation: rotateRing 20s linear infinite reverse;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.coverage-map i {
    font-size: 4.5rem;
    color: rgba(255,255,255,.75);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(14,165,233,.6);
}

.coverage-points {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.point {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid rgba(255,255,255,.9);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pointPulse 2s infinite;
    z-index: 4;
}

.point::after {
    content: attr(data-area);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,23,42,.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(14,165,233,.3);
}

.point:hover { transform: scale(1.4); box-shadow: 0 0 20px rgba(34,197,94,.7); }
.point:hover::after { opacity: 1; }

@keyframes pointPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
    70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.point-1 { top: 20%; left: 28%; }
.point-2 { top: 38%; right: 22%; }
.point-3 { bottom: 28%; left: 18%; }
.point-4 { bottom: 18%; right: 28%; }

/* =============================================
   COVERAGE AREAS SECTION
   ============================================= */
.coverage-areas-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.4rem 1rem 3.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: all .3s ease;
    color: #1e293b;
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.search-box i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: .9rem;
}

/* area cards */
.area-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(37,99,235,.08), 0 1px 4px rgba(0,0,0,.04);
    transition: all 0.3s ease;
    height: auto;
    border: 1.5px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #2563eb, #0ea5e9);
    border-radius: 16px 0 0 16px;
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37,99,235,.15);
    border-color: rgba(37,99,235,.25);
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.area-header h3 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.area-header i { color: #2563eb; }

.coverage-badge {
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.coverage-badge:not(.expanding) {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    border: 1px solid #86efac;
}

.coverage-badge.expanding {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.area-content p { color: #64748b; line-height: 1.65; margin-bottom: 1rem; font-size: .9rem; }

.area-features { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }

.feature-tag {
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.08));
    color: #2563eb;
    padding: .3rem .8rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid rgba(37,99,235,.15);
}

.area-contact { border-top: 1px solid #f1f5f9; padding-top: 1rem; }
.area-contact p { margin-bottom: .65rem; color: #1e293b; font-size: .88rem; }

.contact-buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.contact-buttons .btn { flex: 1; min-width: 80px; border-radius: 50px; }

/* areas carousel */
.areas-carousel {
    position: relative;
    padding: 0 56px;
}

.carousel-control-prev.areas-arrow,
.carousel-control-next.areas-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    opacity: 1;
    z-index: 10;
    border: none;
    background: transparent;
    padding: 0;
}

.carousel-control-prev.areas-arrow { left: 0; }
.carousel-control-next.areas-arrow { right: 0; }

.areas-arrow-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 6px 18px rgba(37,99,235,.35);
    transition: all .3s ease;
}

.areas-arrow:hover .areas-arrow-icon,
.areas-arrow:focus .areas-arrow-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 22px rgba(37,99,235,.5);
}

@media (max-width: 480px) {
    .areas-carousel { padding: 0 38px; }
    .areas-arrow-icon { width: 38px; height: 38px; font-size: .8rem; }
}

/* =============================================
   FAMILY SECTION
   ============================================= */
.family-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f0f6ff 0%, #f8fafc 100%);
}

.family-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1.5px solid #e2e8f0;
}

.family-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37,99,235,.15);
    border-color: rgba(37,99,235,.25);
}

.family-card.join-families {
    background: linear-gradient(135deg, #1e3a6e 0%, #2563eb 50%, #0ea5e9 100%);
    border: none;
    color: #fff;
}

.family-card.join-families h4 { color: #fff; }
.family-card.join-families p  { color: rgba(255,255,255,.85); }

.family-card.join-families .family-icon {
    background: rgba(255,255,255,.18);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.family-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
}

.family-card:hover .family-icon { transform: scale(1.08); }
.family-icon i { font-size: 1.75rem; color: #fff; }

.family-card h4   { color: #0f172a; font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.family-card p    { color: #64748b; font-size: .88rem; line-height: 1.65; margin-bottom: 1rem; }
.family-card .location { color: #2563eb; font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
.family-card .location i { margin-right: .3rem; }

.testimonial {
    background: linear-gradient(135deg, #f0f6ff, #eff6ff);
    padding: .85rem 1rem;
    border-radius: 10px;
    border-left: 3px solid #2563eb;
    margin-bottom: 1.25rem;
}

.testimonial p { margin: 0; font-style: italic; color: #475569; font-size: .86rem; }

/* =============================================
   COVERAGE PAGE CTA OVERRIDE
   ============================================= */
.coverage-hero .container { position: relative; z-index: 2; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .coverage-map { width: 260px; height: 260px; }
    .coverage-map::before { inset: -8px; }
    .coverage-map::after  { inset: -18px; }
    .coverage-map i { font-size: 3.5rem; }

    .hero-stats { gap: 10px; }
    .stat-item { min-width: 90px; padding: .75rem 1rem; }
    .stat-item h3 { font-size: 1.6rem; }

    .area-header { flex-direction: column; align-items: flex-start; }
    .contact-buttons .btn { flex: none; }
}

@media (max-width: 480px) {
    .coverage-map { width: 210px; height: 210px; }
    .coverage-map i { font-size: 3rem; }

    .area-card, .family-card { padding: 1.25rem; }
    .feature-tag { font-size: .75rem; }

    .hero-stats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
    .stat-item { flex-shrink: 0; }
}
