/* ============================================================
   PAGE HERO — Shared component for all portal pages
   ============================================================ */

/* ── Base section ── */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background:
        radial-gradient(ellipse 70% 100% at 100% -10%,  rgba(45, 154, 90, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at -5%  105%,   rgba(45, 154, 90, 0.09) 0%, transparent 60%),
        linear-gradient(160deg, #eef7f1 0%, #ffffff 38%, #f8fbf8 100%);
    border-bottom: 1px solid var(--color-border);
}

/* Decorative soft circle – top right */
.page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 154, 90, 0.13) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative ring outline – bottom left */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 40px solid rgba(45, 154, 90, 0.06);
    pointer-events: none;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

/* ── Eyebrow badge ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(45, 154, 90, 0.10);
    border: 1px solid rgba(45, 154, 90, 0.22);
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 22px;
    line-height: 1;
}

.eyebrow::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 154, 90, 0.22);
}

/* ── Title ── */
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin: 0 0 18px;
    max-width: 860px;
}

/* ── Body copy ── */
.page-hero p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 0 28px;
}

.page-hero p:last-child {
    margin-bottom: 0;
}

/* ── Action buttons row ── */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 28px;
}

/* ── Inner content wrapper ── */
.hero-content {
    max-width: 820px;
}

/* ── Split layout (contact pages) ── */
.page-hero-inner,
.contact-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 56px;
    align-items: end;
}

/* ── Side card (contact panels) ── */
.hero-side-card,
.contact-mini-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(45, 154, 90, 0.20);
    border-radius: 16px;
    padding: 28px 28px 26px;
    box-shadow:
        0 2px 0 rgba(45, 154, 90, 0.08),
        0 12px 40px rgba(45, 154, 90, 0.10);
    backdrop-filter: blur(6px);
    position: relative;
}

.hero-side-card::before,
.contact-mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(45, 154, 90, 0.04) 0%, transparent 55%);
    pointer-events: none;
}

.hero-side-card strong,
.contact-mini-card strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-side-card p,
.contact-mini-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-muted);
    margin: 0;
    max-width: none;
}

/* ── Hero meta chips (material pages) ── */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .page-hero-inner,
    .contact-hero-inner {
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .page-hero {
        padding: 56px 0 44px;
    }

    .page-hero-inner,
    .contact-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-side-card,
    .contact-mini-card {
        max-width: 480px;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 44px 0 36px;
    }

    .page-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .page-hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
