﻿/**
 * Home hero — atmospheric right visual + restrained copy.
 *
 * @package MaxisTheme
 */

.home-hero {
    --home-hero-pad-y: clamp(36px, 6vw, 72px);
    --home-hero-surface: #0b0d10;
    position: relative;
    isolation: isolate;
    overflow: clip;
    margin: 0;
    padding-block: var(--home-hero-pad-y) clamp(48px, 8vw, 96px);
    background: var(--home-hero-surface);
    border-top: 0;
    border-bottom: 1px solid var(--border);
}

.home-hero__glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 42% 38% at 8% 18%, var(--accent-soft), transparent 70%);
}

/* -------------------------------------------------------------------------- */
/* Atmospheric right-side media (no card)                                     */
/* -------------------------------------------------------------------------- */

.home-hero__media {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(62%, 840px);
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    user-select: none;
}

.home-hero__media-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            var(--home-hero-surface) 0%,
            rgba(11, 13, 16, 0.92) 14%,
            rgba(11, 13, 16, 0.55) 34%,
            rgba(11, 13, 16, 0.12) 58%,
            transparent 78%),
        linear-gradient(to top,
            var(--home-hero-surface) 0%,
            rgba(11, 13, 16, 0.72) 18%,
            transparent 42%),
        linear-gradient(to bottom,
            var(--home-hero-surface) 0%,
            transparent 18%);
}

/* -------------------------------------------------------------------------- */
/* Content layer                                                              */
/* -------------------------------------------------------------------------- */

.home-hero__shell {
    position: relative;
    z-index: 2;
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.home-hero__copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 36rem;
}

.home-hero__kicker {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
}

.home-hero__kicker-brand {
    color: var(--text-primary);
}

.home-hero__kicker-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.9;
}

.home-hero__kicker-place {
    color: var(--text-muted);
}

.home-hero__title {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(2.125rem, 4.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-hero__lead {
    margin: 0;
    max-width: 44ch;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.home-hero__cta {
    min-height: 48px;
}

.home-hero__cta--primary,
.home-hero__cta--secondary {
    justify-content: center;
    min-width: 168px;
}

.home-hero__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.home-hero__contact-label {
    color: var(--text-muted);
}

.home-hero__contact-link {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.home-hero__contact-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.home-hero__proof {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hero__proof-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.home-hero__proof-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.home-hero__proof-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 0;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.home-hero__proof-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.home-hero__proof-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-hero__proof-value {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-hero__proof-label {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.home-hero a:focus-visible,
.home-hero button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .home-hero__actions {
        flex-wrap: nowrap;
    }

    .home-hero__media {
        width: min(58%, 760px);
    }

    .home-hero__copy {
        max-width: 34rem;
        padding-right: 12px;
    }

    .home-hero__proof {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .home-hero {
        min-height: calc(100svh - 72px);
        display: flex;
        align-items: center;
        padding-block: clamp(48px, 6vh, 80px) clamp(56px, 8vh, 96px);
    }

    .home-hero__shell {
        width: 100%;
        gap: clamp(40px, 5vw, 64px);
    }

    .home-hero__copy {
        gap: 20px;
        max-width: 38rem;
    }

    .home-hero__media {
        width: min(56%, 900px);
    }

    .home-hero__image {
        object-position: 58% center;
    }

    .home-hero__proof {
        margin-top: 4px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding-top: clamp(28px, 6vw, 40px);
    }

    .home-hero__media {
        top: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: min(52vw, 280px);
        opacity: 0.42;
        animation: none;
    }

    .home-hero__image {
        object-position: center 35%;
    }

    .home-hero__media-fade {
        background:
            linear-gradient(to bottom,
                rgba(11, 13, 16, 0.25) 0%,
                rgba(11, 13, 16, 0.72) 48%,
                var(--home-hero-surface) 92%),
            linear-gradient(to right,
                var(--home-hero-surface) 0%,
                rgba(11, 13, 16, 0.45) 35%,
                transparent 70%);
    }

    .home-hero__shell {
        padding-top: clamp(120px, 38vw, 180px);
        gap: 24px;
    }

    .home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-hero__cta {
        width: 100%;
        min-width: 0;
    }

    .home-hero__proof {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-hero__proof-item {
        padding: 18px 20px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .home-hero__proof-value {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: no-preference) {

    .home-hero__copy,
    .home-hero__proof {
        animation: home-hero-rise 0.7s ease both;
    }

    .home-hero__proof {
        animation-delay: 0.08s;
    }

    .home-hero__media {
        animation: home-hero-fade 0.9s ease both;
    }
}

@keyframes home-hero-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-hero-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-hero__contact-link,
    .home-hero__cta,
    .home-hero__proof-item {
        transition: none;
    }

    .home-hero__proof-item:hover {
        transform: none;
    }
}