/* ═══════════════════════════════════════════
   Module Detail Page Styles
   (e.g. JetHR feature pages)
   ═══════════════════════════════════════════ */

/* Hero Section
   ─────────────────────────────────────────── */
.page-hero {
    padding: 180px 0 100px;
    background: var(--dd-gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(187, 49, 199, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--dd-white);
    max-width: 960px;
    margin: 0 auto 20px;
    font-size: var(--font-size-hero);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.page-hero .hero-sub {
    color: rgba(255,255,255,0.6);
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

.page-hero .btn {
    position: relative;
    z-index: 2;
}

/* Hero Showcase Image
   ─────────────────────────────────────────── */
.hero-showcase {
    background: var(--dd-navy);
    padding: 80px 0;
    position: relative;
    overflow: visible;
}

.hero-img-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: radial-gradient(
        ellipse at center,
        rgba(187, 49, 199, 0.18) 0%,
        rgba(123, 47, 217, 0.1) 35%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-img-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 60px rgba(10, 10, 40, 0.5),
        0 0 80px rgba(187, 49, 199, 0.08);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both,
               heroFloat 6s ease-in-out 1.4s infinite;
    transition: box-shadow 0.4s var(--ease-smooth);
}

.hero-img-frame img {
    width: 100%;
    display: block;
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* CTA Band — inherits from components.css (gradient #bb31c7 → #7b2fd9) */

/* Feature Section
   ─────────────────────────────────────────── */
.module-features {
    padding: var(--space-16) 0;
    background: var(--dd-navy);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-12);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-6);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row-reverse {
    direction: rtl; /* flip the layout */
}

.feature-row-reverse > * {
    direction: ltr; /* reset text direction */
}

/* Feature Text
   ─────────────────────────────────────────── */
.feature-text h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, var(--font-size-2xl));
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--space-4);
    color: var(--dd-white);
}

.feature-text p {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: var(--dd-light-gray);
    max-width: 520px;
}

/* Feature Visual
   ─────────────────────────────────────────── */
.feature-visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth);
}

.feature-visual img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Responsive
   ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        max-width: 100%;
    }

    .page-hero .hero-sub {
        max-width: 100%;
    }

    .hero-showcase {
        padding: 0 0 var(--space-6);
    }

    .module-features {
        padding: var(--space-10) 0;
    }

    .feature-row,
    .feature-row-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-6);
        margin-bottom: var(--space-8);
    }

    .feature-visual {
        order: -1; /* image first on mobile */
    }

    .feature-text p {
        max-width: 100%;
    }

    .cta-contacts {
        flex-direction: column;
        align-items: center;
    }
}
