/* ══════════════════════════════════════════════
   InVivoLabs — Shared Hero Section
   Add to head-assets.php:
   <link rel="stylesheet" href="/css/hero.css">
   ══════════════════════════════════════════════ */

/* ── Base hero ── */
.ivl-hero {
    position: relative;
    padding: 80px 0 85px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-color, #0d6efd) 0%, var(--hero-color-dark, #0a58ca) 100%);
}
.ivl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.ivl-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.ivl-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.ivl-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.ivl-hero .btn {
    font-weight: 600;
}

/* ── Optional badge (e.g. "40+ CROs listed") ── */
.ivl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    padding: 7px 18px;
    color: rgba(255,255,255,0.95);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.ivl-hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: ivl-pulse 2s ease-in-out infinite;
}
@keyframes ivl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ══════════════════════════════════════════════
   Color themes — one per page
   Just add the modifier class to .ivl-hero:
   <section class="ivl-hero ivl-hero--directory">
   ══════════════════════════════════════════════ */

/* Default / Homepage — blue */
.ivl-hero--home {
    --hero-color: #0d6efd;
    --hero-color-dark: #0a58ca;
}

/* Directory / Search */
.ivl-hero--directory {
    --hero-color: #0d6efd;
    --hero-color-dark: #0a58ca;
}

/* Advertise / List Your CRO — deeper blue */
.ivl-hero--advertise {
    --hero-color: #1a56db;
    --hero-color-dark: #12399a;
}

/* Services */
.ivl-hero--services {
    --hero-color: #0e7490;
    --hero-color-dark: #0a5e74;
}

/* Resources / Blog */
.ivl-hero--resources {
    --hero-color: #4338ca;
    --hero-color-dark: #3525ab;
}

/* About */
.ivl-hero--about {
    --hero-color: #1e40af;
    --hero-color-dark: #172f85;
}

/* Contact */
.ivl-hero--contact {
    --hero-color: #047857;
    --hero-color-dark: #065f46;
}

/* Intrathecal / Specialty pages */
.ivl-hero--specialty {
    --hero-color: #1a56db;
    --hero-color-dark: #12399a;
}

/* Contract Research Organizations info page */
.ivl-hero--info {
    --hero-color: #1e40af;
    --hero-color-dark: #172f85;
}