/* ARSES Homepage Hero — scoped module styles (Phase H1 static)
 * Company: arses only. Do not reuse for Kamafarham, Adia Travel, or other company sites.
 */

.arses-hero {
    --arses-green-900: #0d3b2e;
    --arses-green-800: #145a42;
    --arses-green-700: #1a7354;
    --arses-green-600: #228b63;
    --arses-cream: #faf8f3;
    --arses-muted: #5a7268;
    --arses-radius-xl: 24px;
    --arses-transition: 0.25s ease;
    --arses-max-width: 1400px;

    position: relative;
    overflow: hidden;
    color: var(--arses-green-900);
}

.arses-hero--v3 {
    display: flex;
    align-items: center;
    min-height: clamp(560px, 88vh, 860px);
    padding: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 48px) clamp(48px, 6vw, 72px);
}

/* Center / background visual layer */
.arses-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #e8f5ef 0%, var(--arses-cream) 45%, #d4ebe0 100%);
}

.arses-hero__visual--fallback {
    background: linear-gradient(135deg, #e8f5ef 0%, var(--arses-cream) 55%, #c5e4d4 100%);
}

.arses-hero__visual-image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 38%;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.arses-hero__visual-image.is-video-active {
    opacity: 0;
}

.arses-hero__visual-image--mobile {
    display: none;
}

.arses-hero--v3:hover .arses-hero__visual-image:not(.is-video-active) {
    transform: scale(1.035);
}

.arses-hero__visual-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 38%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.arses-hero__visual-video.is-ready {
    opacity: 1;
}

.arses-hero__visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        102deg,
        rgba(250, 248, 243, 0.96) 0%,
        rgba(250, 248, 243, 0.88) 28%,
        rgba(250, 248, 243, 0.62) 48%,
        rgba(250, 248, 243, 0.28) 68%,
        rgba(250, 248, 243, 0.06) 85%,
        transparent 100%
    );
    pointer-events: none;
}

.arses-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--arses-max-width);
    margin: 0 auto;
}

.arses-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 320px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

/* Left content */
.arses-hero__content {
    max-width: 620px;
}

.arses-hero__badge {
    margin: 0 0 clamp(18px, 2.5vw, 24px);
}

.arses-hero__badge-text {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--arses-green-800);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
}

.arses-hero__title {
    margin: 0 0 clamp(18px, 2.5vw, 28px);
    font-size: clamp(2.25rem, 4.4vw, 3.625rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.038em;
}

.arses-hero__subtitle {
    margin: 0 0 clamp(28px, 4vw, 40px);
    font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
    color: var(--arses-muted);
    max-width: 50ch;
    line-height: 1.68;
}

.arses-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(16px, 2vw, 20px);
}

.arses-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        background var(--arses-transition),
        color var(--arses-transition),
        border-color var(--arses-transition),
        transform var(--arses-transition),
        box-shadow var(--arses-transition);
}

.arses-hero__action--primary {
    color: #fff;
    background: var(--arses-green-700);
}

.arses-hero__action--primary:hover {
    background: var(--arses-green-800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 0 32px rgba(26, 115, 84, 0.32),
        0 8px 24px rgba(13, 59, 46, 0.14);
}

.arses-hero__action--secondary {
    color: var(--arses-green-800);
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(26, 115, 84, 0.18);
    backdrop-filter: blur(8px);
}

.arses-hero__action--secondary:hover {
    background: rgba(184, 230, 207, 0.25);
    border-color: rgba(26, 115, 84, 0.32);
    color: var(--arses-green-900);
    transform: translateY(-1px);
}

.arses-hero__learn-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: clamp(16px, 2vw, 20px);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--arses-green-700);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
        color var(--arses-transition),
        border-color var(--arses-transition);
}

.arses-hero__learn-link:hover {
    color: var(--arses-green-900);
    border-bottom-color: rgba(26, 115, 84, 0.35);
}

.arses-hero__live-signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: clamp(28px, 4vw, 40px) 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--arses-muted);
    opacity: 0.72;
}

.arses-hero__signal-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--arses-green-600);
    box-shadow: 0 0 0 2px rgba(34, 139, 99, 0.18);
    animation: arses-hero-signal-pulse 2.8s ease-in-out infinite;
}

@keyframes arses-hero-signal-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Right AI panel */
.arses-hero__ai-panel {
    padding: clamp(18px, 2.2vw, 24px);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--arses-radius-xl);
    box-shadow:
        0 20px 56px rgba(13, 59, 46, 0.09),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

.arses-hero__ai-panel:hover {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.arses-hero__ai-panel.is-hidden {
    display: none;
}

.arses-hero__ai-panel-section + .arses-hero__ai-panel-section {
    margin-top: clamp(14px, 2vw, 18px);
    padding-top: clamp(14px, 2vw, 18px);
    border-top: 1px solid rgba(26, 115, 84, 0.07);
}

.arses-hero__ai-panel-heading {
    margin: 0 0 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--arses-muted);
}

.arses-hero__ai-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arses-hero__ai-panel-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--arses-green-900);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    transition: background var(--arses-transition);
}

.arses-hero__ai-panel-card:hover {
    background: rgba(255, 255, 255, 0.72);
}

.arses-hero__ai-panel-text {
    flex: 1;
    min-width: 0;
}

.arses-hero__ai-panel-trend {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--arses-green-600);
    opacity: 0.85;
}

.arses-hero__ai-panel-live {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--arses-green-600);
    box-shadow: 0 0 0 2px rgba(34, 139, 99, 0.2);
}

/* Search */
.arses-hero__search {
    margin-top: clamp(28px, 4vw, 40px);
    max-width: 560px;
}

.arses-hero__search.is-hidden {
    display: none;
}

.arses-hero__search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.arses-hero__search-icon {
    position: absolute;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--arses-muted);
    pointer-events: none;
}

.arses-hero__search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.arses-hero__search-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--arses-green-900);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(26, 115, 84, 0.14);
    border-radius: 999px;
    outline: none;
    backdrop-filter: blur(10px);
    transition:
        border-color var(--arses-transition),
        box-shadow var(--arses-transition),
        background var(--arses-transition);
}

.arses-hero__search-input::placeholder {
    color: var(--arses-muted);
    opacity: 0.85;
}

.arses-hero__search--focused .arses-hero__search-input,
.arses-hero__search-input:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 115, 84, 0.35);
    box-shadow: 0 0 0 3px rgba(34, 139, 99, 0.12);
}

.arses-hero__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Load animation */
.arses-hero.is-loaded .arses-hero__badge,
.arses-hero.is-loaded .arses-hero__title,
.arses-hero.is-loaded .arses-hero__subtitle,
.arses-hero.is-loaded .arses-hero__actions,
.arses-hero.is-loaded .arses-hero__learn-link,
.arses-hero.is-loaded .arses-hero__live-signal,
.arses-hero.is-loaded .arses-hero__ai-panel,
.arses-hero.is-loaded .arses-hero__search {
    animation: arses-hero-fade-up 0.6s ease forwards;
}

.arses-hero.is-loaded .arses-hero__visual-image {
    animation: arses-hero-visual-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes arses-hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arses-hero-visual-reveal {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .arses-hero--v3 {
        min-height: auto;
    }

    .arses-hero__layout {
        grid-template-columns: 1fr;
    }

    .arses-hero__ai-panel {
        max-width: 420px;
    }

    .arses-hero__visual-overlay {
        background: linear-gradient(
            180deg,
            rgba(250, 248, 243, 0.94) 0%,
            rgba(250, 248, 243, 0.82) 45%,
            rgba(250, 248, 243, 0.5) 100%
        );
    }

    .arses-hero__search {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .arses-hero__visual-image {
        display: none;
    }

    .arses-hero__visual-image--mobile {
        display: block;
        object-position: center 30%;
    }

    .arses-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .arses-hero__action {
        width: 100%;
        text-align: center;
    }

    .arses-hero__ai-panel {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arses-hero__visual-image,
    .arses-hero__visual-video,
    .arses-hero__signal-dot,
    .arses-hero__badge,
    .arses-hero__title,
    .arses-hero__subtitle,
    .arses-hero__actions,
    .arses-hero__learn-link,
    .arses-hero__live-signal,
    .arses-hero__ai-panel,
    .arses-hero__search {
        animation: none !important;
    }

    .arses-hero--v3:hover .arses-hero__visual-image {
        transform: none;
    }

    .arses-hero__visual-video {
        display: none;
    }
}
