/**
 * MME Impact Lab — Shared inner-page components
 * Used by Work, About, Team, Contact, Careers, Blog
 */

/* ─── Page hero ─── */
.pg-hero {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(6rem, 12vh, 8rem) 0 clamp(4rem, 8vh, 5.5rem);
    background-color: #050e1c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pg-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 14, 28, 0.5) 0%, rgba(5, 14, 28, 0.78) 50%, rgba(5, 14, 28, 0.9) 100%),
        linear-gradient(105deg, rgba(5, 14, 28, 0.72) 0%, rgba(5, 14, 28, 0.35) 55%, rgba(5, 14, 28, 0.68) 100%);
}

.pg-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 15%, transparent 72%);
}

.pg-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 2;
    pointer-events: none;
}

.pg-hero-glow--left {
    width: 400px;
    height: 400px;
    top: 12%;
    left: -100px;
    background: rgba(44, 171, 74, 0.2);
}

.pg-hero-glow--right {
    width: 360px;
    height: 360px;
    bottom: 0;
    right: -80px;
    background: rgba(41, 107, 180, 0.2);
}

.pg-hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 920px;
}

.pg-hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 3vh, 1.75rem);
    animation: pgHeroFadeIn 0.9s ease-out both;
}

@keyframes pgHeroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.pg-hero-title {
    margin: 0;
    max-width: 22ch;
}

.pg-hero-title-top,
.pg-hero .hero-title-line-1 {
    display: block;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7dd99a;
    margin-bottom: 0.65rem;
}

.pg-hero-title-main,
.pg-hero .hero-title-highlight-premium {
    display: block;
    font-size: clamp(2rem, 5.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #a8e6b8 50%, #5eb3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}

.pg-hero-title-sub,
.pg-hero .hero-title-accent {
    display: block;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    -webkit-text-fill-color: unset;
    background: none;
}

.pg-hero-lead {
    max-width: 46ch;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.pg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0;
}

.pg-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pg-hero-btn--primary {
    color: #0f2744 !important;
    background: linear-gradient(135deg, #f1bb1b, #e5a80a);
    box-shadow: 0 10px 32px rgba(241, 187, 27, 0.35);
    border: none;
}

.pg-hero-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(241, 187, 27, 0.45);
    color: #0f2744 !important;
}

.pg-hero-btn--ghost {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.pg-hero-btn--ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: #7dd99a;
    color: #ffffff !important;
}

.pg-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 760px;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.pg-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.pg-hero-stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(44, 171, 74, 0.2);
    color: #7dd99a;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pg-hero-stat-body {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.1rem;
}

.pg-hero-stat-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pg-hero-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pg-hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
    animation: pgHeroScrollBounce 2.5s ease-in-out infinite;
    cursor: pointer;
    background: none;
    border: none;
}

.pg-hero-scroll:hover {
    color: #7dd99a;
}

@keyframes pgHeroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* CMS legacy hero title wrapper */
.pg-hero .hero-main-title-premium,
.pg-hero .hero-content-premium {
    margin: 0;
    max-width: 100%;
}

.pg-hero .hero-title-line-2 {
    display: block;
}

/* ─── Section headers ─── */
.pg-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}

.pg-section-header h2,
.pg-section-header .section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem) !important;
    font-weight: 800 !important;
    color: #0f2744 !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.pg-section-header h2::after,
.pg-section-header .section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 0.85rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
}

.pg-section-header h2 span {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-section-lead,
.pg-section-header .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #5a6874;
    margin: 0;
}

/* ─── Filters panel ─── */
.pg-filters-wrap {
    position: relative;
    margin-top: -2.5rem;
    z-index: 10;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.pg-filters {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 12px 40px rgba(22, 50, 79, 0.1);
    border: 1px solid rgba(41, 107, 180, 0.08);
}

.pg-filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.pg-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pg-filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f2744;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pg-filter-group select,
.pg-filter-group input {
    height: 48px;
    border: 1px solid rgba(41, 107, 180, 0.15);
    border-radius: 12px;
    padding: 0 1rem;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-filter-group select:focus,
.pg-filter-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(41, 107, 180, 0.12);
}

.pg-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-blue), #1a4d8c);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41, 107, 180, 0.3);
}

/* ─── CTA panel ─── */
.pg-cta {
    position: relative;
    padding: clamp(4rem, 8vw, 5.5rem) clamp(1rem, 3vw, 2rem);
    overflow: hidden;
}

.pg-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #0f2744 40%, #163a5c 100%);
}

.pg-cta-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.pg-cta-panel {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    backdrop-filter: blur(12px);
}

.pg-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 1rem;
    letter-spacing: -0.03em;
    max-width: 24ch;
}

.pg-cta-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 2rem;
}

.pg-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.75rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-cta-btn--primary {
    color: #0f2744 !important;
    background: linear-gradient(135deg, #f1bb1b, #e8a80f);
    box-shadow: 0 10px 28px rgba(241, 187, 27, 0.35);
}

.pg-cta-btn--primary:hover {
    transform: translateY(-3px);
    color: #0f2744 !important;
}

.pg-cta-btn--ghost {
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
}

.pg-cta-btn--ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #7dd99a;
    color: #ffffff !important;
}

/* ─── Reveal ─── */
.pg-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.pg-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Hero responsive ─── */
@media (max-width: 768px) {
    .pg-hero {
        min-height: auto;
        padding-top: 5.5rem;
        padding-bottom: 4rem;
        background-attachment: scroll !important;
    }

    .pg-hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .pg-hero-btn {
        width: 100%;
    }

    .pg-hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .pg-hero-stat {
        justify-content: center;
    }

    .pg-hero-scroll {
        display: none;
    }

    .pg-filters-form {
        grid-template-columns: 1fr;
    }

    .pg-filters-wrap {
        margin-top: -1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-hero-inner,
    .pg-hero-scroll,
    .pg-reveal {
        animation: none;
        transition: none;
    }

    .pg-hero-btn:hover,
    .pg-filter-btn:hover,
    .pg-cta-btn:hover {
        transform: none;
    }

    .pg-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Hidden honeypot for visitor forms (reCAPTCHA spam protection) */
.visitor-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.visitor-honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}
