/**
 * Home Hero — eFormax IT company
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 */

.hh-hero {
    --hh-primary: #00332b;
    --hh-primary-mid: #004236;
    --hh-accent: #f7d15e;
    --hh-bg: #e6f4f9;
    --hh-surface: #f0f8fb;
    --hh-white: #ffffff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #00332b;
    color: var(--hh-white);
    min-height: clamp(32rem, 88vh, 46rem);
    display: flex;
    align-items: flex-end;
    padding: 5.5rem 0 4.25rem;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.site-main--full > .ck-content {
    overflow-x: clip;
}

.site-main--full > .ck-content > *:first-child.hh-hero {
    margin-top: 0;
}

.ck-content .hh-hero h1,
.ck-content .hh-hero p,
.ck-content .hh-hero a {
    color: inherit;
}

.ck-content .hh-hero h1 {
    margin: 0 0 1.1rem;
}

.hh-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hh-hero__media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transform: scale(1.04);
    animation: hh-media- ken 22s ease-in-out infinite alternate;
}

.hh-hero__media-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0, 51, 43, 0.94) 0%, rgba(0, 66, 54, 0.82) 42%, rgba(0, 51, 43, 0.55) 68%, rgba(0, 51, 43, 0.35) 100%),
        linear-gradient(180deg, rgba(0, 51, 43, 0.35) 0%, rgba(0, 51, 43, 0.15) 40%, rgba(0, 51, 43, 0.75) 100%);
}

.hh-hero:not(:has(.hh-hero__media-img)) .hh-hero__media-wash {
    background:
        linear-gradient(135deg, #00332b 0%, #004236 45%, #0a5548 100%);
}

.hh-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 30% 50%, #000 10%, transparent 70%);
    animation: hh-grid-drift 30s linear infinite;
}

.hh-hero__orb {
    position: absolute;
    border-radius: 50%;
}

.hh-hero__orb--1 {
    width: min(48vw, 380px);
    height: min(48vw, 380px);
    top: -10%;
    right: 8%;
    background: radial-gradient(circle, rgba(247, 209, 94, 0.32) 0%, transparent 70%);
    animation: hh-orb-float 14s ease-in-out infinite;
}

.hh-hero__orb--2 {
    width: min(36vw, 280px);
    height: min(36vw, 280px);
    bottom: -12%;
    left: 5%;
    background: radial-gradient(circle, rgba(230, 244, 249, 0.2) 0%, transparent 70%);
    animation: hh-orb-float 18s ease-in-out infinite reverse;
}

.hh-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hh-hero__content {
    max-width: 40rem;
}

.hh-hero__brand {
    margin-bottom: 1.5rem;
}

.hh-hero__logo {
    display: block;
    width: auto;
    height: clamp(3rem, 7vw, 4rem);
    max-width: min(240px, 72vw);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hh-hero__wordmark {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--hh-white);
    line-height: 1.05;
}

.hh-hero__eyebrow {
    display: inline-block;
    margin: 0 0 1.1rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hh-primary);
    background: var(--hh-accent);
    border-radius: 8px;
}

.hh-hero__title {
    margin: 0 0 1.1rem;
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.032em;
    line-height: 1.12;
    color: var(--hh-white);
}

.hh-hero__accent {
    color: var(--hh-accent);
}

.hh-hero__lede {
    margin: 0 0 1.85rem;
    font-size: clamp(1.015rem, 1.6vw, 1.1875rem);
    line-height: 1.65;
    color: rgba(240, 248, 251, 0.9);
    max-width: 34rem;
}

.hh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem 1rem;
    align-items: center;
}

.hh-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.05rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 10px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.hh-hero__btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.hh-hero__btn--primary {
    background: var(--hh-accent);
    color: var(--hh-primary) !important;
    box-shadow: 0 14px 32px rgba(247, 209, 94, 0.3);
}

.hh-hero__btn--primary:hover {
    transform: translateY(-2px);
    background: #ffe08a;
    color: var(--hh-primary) !important;
    box-shadow: 0 18px 40px rgba(247, 209, 94, 0.4);
}

.hh-hero__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--hh-white) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(6px);
}

.hh-hero__btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--hh-accent);
    color: var(--hh-accent) !important;
}

@keyframes hh-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 56px 56px; }
}

@keyframes hh-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-16px, 12px) scale(1.05); }
}

@keyframes hh-media-ken {
    from { transform: scale(1.04) translate(0, 0); }
    to { transform: scale(1.1) translate(-1.5%, 1%); }
}

@media (min-width: 992px) {
    .hh-hero {
        align-items: center;
        padding: 6.5rem 0 5rem;
    }

    .hh-hero__content {
        max-width: 42rem;
    }
}

@media (max-width: 767.98px) {
    .hh-hero {
        min-height: auto;
        padding: 3.5rem 0 3rem;
        align-items: flex-end;
    }

    .hh-hero__media-img {
        object-position: center center;
        opacity: 0.55;
    }

    .hh-hero__media-wash {
        background:
            linear-gradient(180deg, rgba(0, 51, 43, 0.72) 0%, rgba(0, 51, 43, 0.88) 45%, rgba(0, 51, 43, 0.96) 100%);
    }

    .hh-hero__logo {
        height: 2.65rem;
        max-width: 190px;
    }

    .hh-hero__title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .hh-hero__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hh-hero__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-hero__grid,
    .hh-hero__orb,
    .hh-hero__media-img {
        animation: none !important;
    }
}
