/* ═══════════════════════════════════════
   Front Page — Isolated Styles (fp-* prefix)
   All classes scoped to front-page.php
   ═══════════════════════════════════════ */


/* ─── Hero Entrance Animations ─── */
@keyframes fp-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fp-scale-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.fp-hero-enter {
    opacity: 0;
    animation: fp-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fp-hero-enter--1 { animation-delay: 0.1s; }
.fp-hero-enter--2 { animation-delay: 0.2s; }
.fp-hero-enter--3 { animation-delay: 0.35s; }
.fp-hero-enter--4 { animation-delay: 0.5s; }
.fp-hero-enter--5 {
    animation-name: fp-scale-in;
    animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .fp-hero-enter {
        opacity: 1;
        animation: none;
    }
}


/* ─── Hero Section ─── */
.fp-hero {
    background: var(--sl-gradient-hero);
    padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
    margin-top: -72px;
    padding-top: calc(72px + clamp(60px, 10vw, 100px));
    position: relative;
    overflow: hidden;
    color: var(--sl-primary);
}

.admin-bar .fp-hero {
    margin-top: calc(-72px - 32px);
    padding-top: calc(72px + 32px + clamp(60px, 10vw, 100px));
}

@media (max-width: 782px) {
    .admin-bar .fp-hero {
        margin-top: calc(-72px - 46px);
        padding-top: calc(72px + 46px + clamp(60px, 10vw, 100px));
    }
}


/* ─── Hero Layout (2-col grid) ─── */
.fp-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sl-space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .fp-hero__layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--sl-space-4xl);
    }
}


/* ─── Hero Text ─── */
.fp-hero__content {
    text-align: left;
}

.fp-hero__title {
    font-size: var(--sl-text-6xl);
    font-weight: 800;
    color: var(--sl-primary);
    margin-bottom: var(--sl-space-lg);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.fp-hero__desc {
    font-size: var(--sl-text-lg);
    color: var(--sl-text-on-dark-muted);
    line-height: 1.8;
    margin-bottom: var(--sl-space-2xl);
    max-width: 520px;
}

.fp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sl-space-md);
}


/* ─── DVD Bouncing Frame ─── */
.fp-dvd-wrapper {
    position: relative;
}

.fp-dvd-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(77, 157, 232, 0.2);
    border-radius: var(--sl-radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(77, 157, 232, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fp-dvd-frame canvas {
    width: 100%;
    height: 100%;
    display: block;
}


/* ─── Section Header (left-aligned) ─── */
.fp-section-header {
    max-width: 720px;
    margin-bottom: var(--sl-space-3xl);
    text-align: left;
}

.fp-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--sl-radius-full);
    font-size: var(--sl-text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(77, 157, 232, 0.1);
    border: 1px solid rgba(77, 157, 232, 0.2);
    color: var(--sl-secondary);
    margin-bottom: var(--sl-space-lg);
}

/* Badge in dark hero */
.fp-hero .fp-badge {
    background: rgba(77, 157, 232, 0.2);
    border-color: rgba(77, 157, 232, 0.3);
    color: var(--sl-secondary-light);
}

.fp-title {
    font-size: var(--sl-text-5xl);
    font-weight: 700;
    color: var(--sl-text);
    margin-bottom: var(--sl-space-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.fp-desc {
    font-size: var(--sl-text-lg);
    color: var(--sl-text-secondary);
    line-height: 1.7;
    max-width: 640px;
}


/* ─── Card Grids ─── */
.fp-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sl-space-xl);
}

.fp-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sl-space-xl);
}

@media (min-width: 640px) {
    .fp-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fp-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .fp-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ─── Cards (blue left-border accent) ─── */
.fp-card {
    background: var(--sl-bg-white);
    border-radius: var(--sl-radius-md);
    padding: var(--sl-space-xl);
    border-left: 3px solid var(--sl-secondary);
    box-shadow: var(--sl-shadow-sm);
    transition: box-shadow var(--sl-transition-base), transform var(--sl-transition-base);
}

.fp-card:hover {
    box-shadow: var(--sl-shadow-md);
    transform: translateY(-2px);
}

.fp-card h3 {
    font-size: var(--sl-text-2xl);
    margin-bottom: var(--sl-space-sm);
    color: var(--sl-text);
}

.fp-card p {
    color: var(--sl-text-secondary);
    line-height: 1.7;
}


/* ─── Feature Cards (white bg, blue left border) ─── */
.fp-feature-card {
    background: var(--sl-bg-white);
    border-radius: var(--sl-radius-md);
    padding: var(--sl-space-xl);
    border-left: 3px solid var(--sl-secondary);
    box-shadow: var(--sl-shadow-sm);
    transition: box-shadow var(--sl-transition-base), transform var(--sl-transition-base);
}

.fp-feature-card:hover {
    box-shadow: var(--sl-shadow-md);
    transform: translateY(-2px);
}

.fp-feature-card h3 {
    font-size: var(--sl-text-xl);
    margin-bottom: var(--sl-space-sm);
    color: var(--sl-text);
}

.fp-feature-card p {
    color: var(--sl-text-secondary);
    font-size: var(--sl-text-sm);
    line-height: 1.7;
}


/* ─── Icon Boxes ─── */
.fp-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sl-secondary);
    border-radius: var(--sl-radius-md);
    margin-bottom: var(--sl-space-lg);
    flex-shrink: 0;
}

.fp-icon svg {
    color: #fff;
    width: 28px;
    height: 28px;
}


/* ─── Stat Cards (white bg, blue left border) ─── */
.fp-stat {
    background: var(--sl-bg-white);
    border-radius: var(--sl-radius-md);
    padding: var(--sl-space-xl);
    border-left: 3px solid var(--sl-secondary);
    box-shadow: var(--sl-shadow-sm);
    text-align: left;
}

.fp-stat__value {
    font-size: var(--sl-text-4xl);
    font-weight: 800;
    color: var(--sl-text);
    line-height: 1.2;
    margin-bottom: var(--sl-space-xs);
    letter-spacing: -0.02em;
}

.fp-stat__value span {
    display: inline;
}

.fp-stat__label {
    font-size: var(--sl-text-sm);
    color: var(--sl-text-secondary);
    font-weight: 500;
}


/* ─── Card Links (blue text with arrow) ─── */
.fp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sl-space-lg);
    font-size: var(--sl-text-sm);
    font-weight: 600;
    color: var(--sl-secondary);
    text-decoration: none;
    transition: gap var(--sl-transition-fast), color var(--sl-transition-fast);
}

.fp-card-link:hover {
    gap: 10px;
    color: var(--sl-secondary-dark);
}

.fp-card-link svg {
    transition: transform var(--sl-transition-fast);
}

.fp-card-link:hover svg {
    transform: translateX(2px);
}


/* ─── Pre-footer CTA (right-aligned) ─── */
.fp-pre-cta {
    display: flex;
    align-items: center;
    background: var(--sl-bg-off-white);
}

.fp-pre-cta .sl-container {
    padding: var(--sl-space-3xl) 0;
    text-align: right;
}

.fp-pre-cta h2 {
    font-size: var(--sl-text-4xl);
    color: var(--sl-text);
    margin-bottom: var(--sl-space-md);
}

.fp-pre-cta p {
    font-size: var(--sl-text-lg);
    color: var(--sl-text-secondary);
    margin: 0;
}
