/* ============================================================================
   CRM-Publishing — Shared Parallax Editorial Pages System
   Used by: services.blade.php, packages.blade.php, for-authors.blade.php, contact.blade.php
   ============================================================================ */

.ep-hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(ellipse 85% 60% at 50% 0%, rgba(102, 14, 28, 0.52) 0%, transparent 65%),
        radial-gradient(ellipse 65% 50% at 85% 90%, rgba(229, 193, 88, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 2, 4, 0.92) 0%, rgba(12, 2, 4, 0.96) 100%);
}

/* ---------- Multi-Layer Parallax Backdrop ---------- */
.ep-parallax-backdrop {
    position: absolute;
    inset: -14% 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ep-parallax-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.ep-grid-lines {
    background-image:
        linear-gradient(to right, rgba(229, 193, 88, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(229, 193, 88, 0.035) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
}

.ep-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(88px);
    opacity: 0.48;
}

.ep-orb-1 {
    top: 4%;
    left: -6%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(229, 193, 88, 0.16) 0%, transparent 70%);
}

.ep-orb-2 {
    bottom: -8%;
    right: -6%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 18, 36, 0.36) 0%, transparent 70%);
}

.ep-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(5.5rem, 17vw, 14.5rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(229, 193, 88, 0.06);
    user-select: none;
    white-space: nowrap;
}

.ep-mote {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 229, 150, 0.9) 0%, rgba(229, 193, 88, 0) 70%);
    opacity: 0.45;
    animation: ep-float 8.5s ease-in-out infinite;
}

.ep-mote-1 { top: 20%; left: 14%; width: 5px; height: 5px; animation-delay: 0s; }
.ep-mote-2 { top: 54%; left: 78%; width: 4px; height: 4px; animation-delay: -2.4s; }
.ep-mote-3 { top: 74%; left: 26%; width: 6px; height: 6px; animation-delay: -5.1s; }
.ep-mote-4 { top: 26%; right: 18%; width: 4px; height: 4px; animation-delay: -3.5s; }

@keyframes ep-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.25; }
    50%      { transform: translate3d(0, -18px, 0) scale(1.25); opacity: 0.72; }
}

/* ---------- Metallic Gold Accent ---------- */
.ep-gold-text {
    background: linear-gradient(125deg, #d4a63a 0%, #ffe8a3 48%, #c59225 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Editorial Glass Cards & Parallax Columns ---------- */
.ep-section {
    position: relative;
    overflow: clip;
}

.ep-col-wrap {
    will-change: transform;
}

.ep-card {
    position: relative;
    border-radius: 1.2rem;
    border: 1px solid rgba(229, 193, 88, 0.18);
    background: linear-gradient(155deg, rgba(25, 6, 10, 0.84) 0%, rgba(11, 2, 4, 0.94) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow:
        0 26px 56px -30px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 229, 150, 0.1);
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ep-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        380px circle at var(--ep-mx, 50%) var(--ep-my, 50%),
        rgba(229, 193, 88, 0.13),
        transparent 58%
    );
    transition: opacity 0.35s ease;
}

.ep-card-interactive:hover {
    border-color: rgba(229, 193, 88, 0.46);
    box-shadow:
        0 34px 70px -30px rgba(0, 0, 0, 0.98),
        0 0 34px -14px rgba(229, 193, 88, 0.32),
        inset 0 1px 0 rgba(255, 229, 150, 0.2);
}

.ep-card-interactive:hover::before {
    opacity: 1;
}

/* Shimmering top metallic light beam */
.ep-beam {
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #ffe596, transparent);
    opacity: 0.78;
    animation: ep-beam-slide 6.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ep-beam-slide {
    0%   { left: -35%; opacity: 0; }
    20%  { opacity: 0.85; }
    80%  { opacity: 0.85; }
    100% { left: 105%; opacity: 0; }
}

/* Hollow-to-gold editorial numeral */
.ep-numeral {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    line-height: 0.9;
    -webkit-text-stroke: 1px rgba(229, 193, 88, 0.6);
    color: transparent;
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.ep-card-interactive:hover .ep-numeral {
    color: #e5c158;
    text-shadow: 0 0 22px rgba(229, 193, 88, 0.38);
}

/* Icon medallion */
.ep-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    border: 1px solid rgba(229, 193, 88, 0.28);
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.14) 0%, rgba(229, 193, 88, 0.03) 100%);
    color: #e5c158;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ep-card-interactive:hover .ep-icon-box {
    transform: scale(1.06);
    border-color: rgba(255, 229, 150, 0.6);
    box-shadow: 0 0 18px rgba(229, 193, 88, 0.32);
}

/* Scroll reveal */
.ep-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--ep-delay, 0ms),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--ep-delay, 0ms);
}

.ep-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Form input styling */
.ep-input {
    width: 100%;
    border-radius: 0.85rem;
    border: 1px solid rgba(229, 193, 88, 0.22);
    background: rgba(10, 1, 3, 0.78);
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ep-input::placeholder {
    color: rgba(239, 229, 213, 0.35);
}

.ep-input:focus {
    border-color: #e5c158;
    box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.16);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ep-mote,
    .ep-beam {
        animation: none !important;
    }
    .ep-parallax-layer,
    .ep-col-wrap,
    .ep-card,
    .ep-reveal {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}
