/* ============================================================
   ZAPHIRO HOME HEALTH — Home Page
   Design: Precision Medical Dark
   ============================================================ */

/* ── Hero Section ── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, #0d3060 100%);
    color: #ffffff;
    padding: var(--spacing-3xl) 0;
    padding-bottom: calc(var(--spacing-3xl) + 72px);
    min-height: 82vh;
    overflow: visible;
    z-index: 1;
}

/* Decorative radial glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,180,216,0.14) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,58,138,0.25) 0%, transparent 65%);
    pointer-events: none;
}

/* Thin cyan accent line at bottom of hero */
.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan-500) 40%, var(--cyan-400) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--spacing-2xl);
    align-items: stretch;
}

.hero-text { max-width: 680px; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.25rem, 7.15vw, 5.2rem);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-title .highlight-big {
    font-size: 1.9em;
    line-height: 1;
    display: block;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.465rem, 2.6vw, calc(var(--font-size-2xl) * 1.3));
    margin: 0 0 var(--spacing-md) 0;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
}

.hero-description {
    font-size: calc(var(--font-size-lg) * 1.3);
    margin-bottom: var(--spacing-sm);
    line-height: 1.75;
    color: rgb(250, 250, 250);
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: calc(var(--font-size-sm) * 1.3);
    margin-bottom: var(--spacing-xl);
    color: var(--cyan-400);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-location::before {
    content: '📍';
    font-size: 1.17rem;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Hero image / visual */
.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 90%;
    height: 90%;
    background: rgba(0,180,216,0.07);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    z-index: 0;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 110%;
    max-width: 110%;
    max-height: calc(82vh - 60px);
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 16px 16px 0 0;
    filter: drop-shadow(0 20px 48px rgba(0,0,0,0.40));
}

/* ── Stats Bar ── */
.hero-stats {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -62px;
    z-index: 100;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.25rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 16px 48px rgba(11,37,70,0.22), 0 6px 18px rgba(0,180,216,0.10);
    max-width: 780px;
    width: min(780px, 90%);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    animation: float-up 0.8s ease-out;
}

@keyframes float-up {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero-stats::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    background: var(--bg-light);
    z-index: -1;
    pointer-events: none;
}

.stats-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: space-around;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    min-width: 0;
    flex: 1;
    padding: 0.5rem 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    border-radius: 1.25rem;
    z-index: -1;
    transition: all var(--transition-base);
}



.stat + .stat {
    border-left: none;
    padding-left: 0.5rem;
}

.stat-icon {
    font-size: 2.275rem;
    margin-bottom: 0.4rem;
    display: inline-block;
    animation: bounce 3s ease-in-out infinite;
}

.stat:nth-child(2) .stat-icon {
    animation-delay: 0.2s;
}

.stat:nth-child(3) .stat-icon {
    animation-delay: 0.4s;
}

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

.stat-value {
    font-family: var(--font-heading);
    font-size: calc(var(--font-size-2xl) * 1.3);
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--cyan-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: calc(var(--font-size-sm) * 1.3);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.975rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ── Services Preview ── */
.services-preview {
    background: var(--bg-light);
    padding-top: calc(var(--spacing-3xl) + 85px); /* compensate stats floating effect */
    position: relative;
    overflow: visible;
}

.service-card {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-900), var(--cyan-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    border-radius: 3px 3px 0 0;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card .card-icon {
    margin: 0 0 var(--spacing-md);
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: var(--spacing-sm);
    color: var(--cyan-500);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: calc(var(--font-size-sm) * 1.3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.service-link:hover {
    color: var(--navy-900);
    gap: 0.7rem;
}

/* ── Mission Section ── */
.mission-section {
    background: #ffffff;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.mission-image {
    position: relative;
}

.mission-image-placeholder {
    width: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-light);
}

/* Decorative accent behind image */
.mission-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--cyan-500) 100%);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.12;
}

.mission-content {
    padding: var(--spacing-lg) 0;
}

.mission-text {
    font-size: calc(var(--font-size-lg) * 1.3);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: var(--text-muted);
}

/* ── Hero outline button (white on dark bg) ── */
.hero .btn-primary {
    background: var(--cyan-500);
    border-color: var(--cyan-500);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}

.hero .btn-primary:hover {
    background: var(--cyan-400);
    border-color: var(--cyan-400);
    box-shadow: 0 8px 28px rgba(0,180,216,0.45);
}

.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.50);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding-bottom: var(--spacing-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { max-width: 100%; }

    .hero-buttons { justify-content: center; }

    .hero-location { justify-content: center; }

    .hero-visual {
        position: static;
        width: auto;
        margin-top: var(--spacing-lg);
        justify-content: center;
    }

    .hero-photo {
        max-width: 420px;
        max-height: 420px;
        border-radius: 16px;
        margin: 0 auto;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        transform: none;
        margin-top: var(--spacing-xl);
        left: auto;
        width: 100%;
        max-width: 100%;
        padding: 1.75rem 1.5rem;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: calc(var(--font-size-2xl) * 1.3);
    }

    .stat-label {
        font-size: 1.14rem;
    }

    .services-preview {
        padding-top: var(--spacing-3xl);
    }

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

    .mission-image { order: 2; }
    .mission-content { order: 1; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.925rem; }
    .hero-subtitle { font-size: 1.465rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn { width: 100%; max-width: 320px; }

    .stats-grid { gap: 1rem; flex-direction: column; }
    .stat {
        padding: 1rem 0;
    }
    .stat::before {
        display: none;
    }
    .stat + .stat {
        padding-left: 0;
        border-left: none;
    }
    .stat-value { font-size: calc(var(--font-size-2xl) * 1.3); }
    .stat-icon { font-size: 2.6rem; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn { width: 100%; max-width: 320px; }
}
