/* ============================================================
   Experior FM — Hero Banner Component
   Full-width hero sections with gradient backgrounds.
   ============================================================ */

.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2D2D2D 50%, #3A3A3A 100%);
    margin-top: 0;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Homepage hero: full viewport height with richer gradient */
.hero--home {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1E1E2E 40%, #2A1A2E 100%);
}

/* Decorative gradient overlay — uses exact logo colors */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(236, 25, 112, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(160, 172, 8, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero--home .hero__overlay {
    background:
        radial-gradient(ellipse at 70% 40%, rgba(236, 25, 112, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 90%, rgba(160, 172, 8, 0.12) 0%, transparent 50%);
}

/* Geometric decoration — logo-matched colors */
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(236, 25, 112, 0.12);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(160, 172, 8, 0.1);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.hero__title {
    font-family: var(--font-family-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
    max-width: 700px;
}

.hero--home .hero__title {
    font-size: var(--text-6xl);
    max-width: 800px;
}

/* ── Rotating Hero Title ── */
.hero__title-static {
    display: block;
    margin-bottom: 0.15em;
}

.hero__title-rotator {
    display: block;
    position: relative;
    height: 1.15em;
    overflow: hidden;
}

/* Each rotating line */
.hero__title-line {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(100%) rotateX(-40deg);
    transform-origin: center bottom;
    transition: none;
    background: linear-gradient(
        90deg,
        var(--color-white) 0%,
        rgba(236, 25, 112, 0.9) 45%,
        rgba(200, 152, 24, 0.9) 65%,
        var(--color-white) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroTextGradient 6s linear infinite;
}

/* Active line — visible */
.hero__title-line--active {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Enter: slide up from below */
.hero__title-line--enter {
    animation: heroLineEnter 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
               heroTextGradient 6s linear infinite;
}

/* Exit: slide up and out */
.hero__title-line--exit {
    animation: heroLineExit 0.7s cubic-bezier(0.55, 0, 0.67, 0.38) forwards,
               heroTextGradient 6s linear infinite;
}

@keyframes heroLineEnter {
    0%   { opacity: 0; transform: translateY(100%) rotateX(-40deg); }
    40%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes heroLineExit {
    0%   { opacity: 1; transform: translateY(0) rotateX(0deg); }
    60%  { opacity: 0; }
    100% { opacity: 0; transform: translateY(-100%) rotateX(40deg); }
}

@keyframes heroTextGradient {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Cursor blink after rotator */
.hero__title-rotator::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10%;
    width: 3px;
    height: 75%;
    background: var(--color-primary);
    border-radius: 2px;
    animation: heroCursorBlink 1s step-end infinite;
    z-index: 2;
}

@keyframes heroCursorBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Reduced motion — no rotation, show first line static */
@media (prefers-reduced-motion: reduce) {
    .hero__title-line {
        animation: none;
        -webkit-text-fill-color: var(--color-white);
    }

    .hero__title-line--active {
        position: relative;
    }

    .hero__title-rotator::after {
        display: none;
    }
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-loose);
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Breadcrumb on inner pages */
.hero__breadcrumb {
    font-family: var(--font-family-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.hero__breadcrumb a:hover {
    color: var(--color-white);
}

.hero__breadcrumb span {
    color: var(--color-primary-light);
}

/* ── Hero Canvas (particle network on homepage) ── */
.hero__canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Animated gradient overlay on homepage hero ── */
.hero--home .hero__overlay {
    background:
        radial-gradient(ellipse at 70% 40%, rgba(236, 25, 112, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 90%, rgba(160, 172, 8, 0.12) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: heroGradientPulse 15s ease-in-out infinite alternate;
}

@keyframes heroGradientPulse {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 50% 100%; }
}

/* ── Hero Services Slider ── */
.hero-slider {
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-slider__slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 var(--space-xs);
    box-sizing: border-box;
}

.hero-slider__card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-md) var(--space-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-slider__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(236, 25, 112, 0.08) 0%,
        transparent 50%,
        rgba(160, 172, 8, 0.06) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    border-radius: inherit;
}

.hero-slider__card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-slider__card:hover::before {
    opacity: 1;
}

.hero-slider__card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Icon container */
.hero-slider__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 25, 112, 0.15);
    color: var(--color-primary-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-base);
}

.hero-slider__icon--secondary {
    background: rgba(160, 172, 8, 0.15);
    color: var(--color-secondary-light);
}

.hero-slider__icon--accent {
    background: rgba(200, 152, 24, 0.15);
    color: var(--color-accent);
}

.hero-slider__card:hover .hero-slider__icon {
    background: rgba(236, 25, 112, 0.25);
    transform: scale(1.05);
}

.hero-slider__card:hover .hero-slider__icon--secondary {
    background: rgba(160, 172, 8, 0.25);
}

.hero-slider__card:hover .hero-slider__icon--accent {
    background: rgba(200, 152, 24, 0.25);
}

/* Typography */
.hero-slider__title {
    font-family: var(--font-family-heading);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    margin-bottom: 4px;
    line-height: var(--line-height-tight);
}

.hero-slider__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--line-height-normal);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dot navigation */
.hero-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-md);
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-slider__dot:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
}

.hero-slider__dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.2);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* ── Hero Brand Name — Large golden display ── */
.hero__title-brand {
    display: block;
    font-size: var(--text-6xl);
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, #C89818 0%, #E8C547 40%, #C89818 60%, #A07A10 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero__title-brand {
        font-size: var(--text-5xl);
    }
}

@media (max-width: 480px) {
    .hero__title-brand {
        font-size: var(--text-4xl);
    }
}

/* ── Accessibility: disable animations for reduced-motion users ── */
@media (prefers-reduced-motion: reduce) {
    .hero__canvas {
        display: none;
    }

    .hero--home .hero__overlay {
        animation: none;
    }

    .hero-slider__track {
        transition: none;
    }

    .hero-slider__card,
    .hero-slider__card::before,
    .hero-slider__icon,
    .hero-slider__dot {
        transition: none;
    }
}
