/* ============================================================
   MedStart — Home Page
   Hero section, search box, stats, "How It Works", CTA
   ============================================================ */

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 55%, var(--color-navy-light) 100%);
    color: var(--color-white);
    padding: 7rem 1.5rem 6.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(100, 223, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 172, 231, 0.18) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(100, 223, 255, 0.15);
    border: 1px solid rgba(100, 223, 255, 0.35);
    color: var(--color-sky);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--color-white);
}

.hero-title span {
    color: var(--color-sky);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin: 0 auto 6rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero search box */
.hero-search-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem;
    backdrop-filter: blur(4px);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.hero-search-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
    gap: 0.65rem;
    align-items: end;
}

.hero-search-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-search-field input[type="text"],
.hero-search-field select {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--radius) - 2px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, background 0.2s;
}

.hero-search-field input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.hero-search-field select option {
    background: var(--color-navy);
    color: var(--color-white);
}

.hero-search-field input[type="text"]:focus,
.hero-search-field select:focus {
    outline: none;
    border-color: var(--color-sky);
    background: rgba(255, 255, 255, 0.15);
}

.hero-search-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364DFFF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.btn-search {
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.58rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.btn-search:hover {
    background: var(--color-sky);
    color: var(--color-navy);
    transform: translateY(-1px);
}

.btn-search svg {
    flex-shrink: 0;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sky);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .hero-search-row {
        grid-template-columns: 1fr 1fr;
    }
    .hero-search-field:first-child {
        grid-column: 1 / -1;
    }
    .btn-search {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hero-search-row {
        grid-template-columns: 1fr;
    }
    .hero-search-field:first-child {
        grid-column: auto;
    }
    .hero-stats {
        gap: 1.5rem;
    }
}

/* ── Home page: View All Programs CTA container ── */
.home-cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* ── Home page: How It Works section ── */
.how-it-works-section {
    background: var(--color-white);
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.how-it-works-title {
    text-align: center;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}

.how-it-works-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.how-it-works-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.how-it-works-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 172, 231, 0.1);
    border: 2px solid rgba(0, 172, 231, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.how-it-works-card h3 {
    font-size: 1rem;
    color: var(--color-navy);
    margin: 0 0 0.4rem;
}

.how-it-works-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}
