/* =========================================================================
   Valoris — Home hero redesign
   Title + subtitle + IP box + feature cards.
   Loaded AFTER the theme style.css so these rules win on the home page.
   ========================================================================= */

/* ---- Vertical hero layout -------------------------------------------- */
.home-hero-section .home-header > .container {
    height: 100%;
}

.hero-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--home-header-height);
    gap: clamp(0.55rem, 1.3vh, 1.05rem);
    padding: clamp(5.75rem, 9vh, 6.5rem) 0 clamp(1.1rem, 2.2vh, 1.6rem);
    text-align: center;
}

/* ---- Logo override (centered, slightly smaller) ---------------------- */
.home-hero-section .hero-stack .logoo {
    max-width: clamp(12.5rem, 19.5vw, 18.5rem);
    margin: 0 auto !important;
    padding: 0;
}

.home-hero-section .hero-stack .logoo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Eyebrow / decorative title ------------------------------------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 1.4vw, 1.15rem);
    margin: 0;
    color: #d9c49a;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.45vw, 1.3rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero-eyebrow .orn {
    position: relative;
    display: inline-block;
    width: clamp(2.4rem, 6vw, 5rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.9));
}

.hero-eyebrow .orn.orn-r {
    background: linear-gradient(90deg, rgba(201, 162, 74, 0.9), transparent);
}

.hero-eyebrow .orn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    background: #d4af5e;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(212, 175, 94, 0.6);
}

.hero-eyebrow .orn.orn-l::after {
    right: -0.18rem;
}

.hero-eyebrow .orn.orn-r::after {
    left: -0.18rem;
}

/* ---- Subtitle -------------------------------------------------------- */
.hero-subtitle {
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(231, 224, 210, 0.78);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(0.92rem, 1.15vw, 1.06rem);
    font-weight: 400;
    line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* ---- Server IP box --------------------------------------------------- */
.hero-ip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-width: min(22rem, 86vw);
    margin: 0.2rem auto 0;
    padding: 0.85rem 1.6rem;
    background: rgba(8, 7, 6, 0.55);
    border: 1px solid rgba(206, 174, 117, 0.4);
    border-radius: 0.85rem;
    color: #ece4d4;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(0.98rem, 1.15vw, 1.12rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-ip:hover {
    border-color: rgba(212, 175, 94, 0.85);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 94, 0.22);
    transform: translateY(-1px);
}

.hero-ip i {
    color: #d4af5e;
    font-size: 1.05em;
    transition: transform 0.25s ease;
}

.hero-ip:hover i {
    transform: scale(1.12);
}

/* ---- Feature cards row ---------------------------------------------- */
.hero-cards-wrap {
    width: 100%;
    margin: clamp(0.5rem, 2vh, 1.5rem) auto 0;
}

.hero-cards-viewport {
    width: 100%;
}

.hero-carousel-arrow {
    display: none; /* desktop: hidden, grid is used */
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.hero-carousel-arrow img {
    width: 2rem;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.hero-carousel-arrow:hover img {
    transform: scale(1.15);
}

.hero-carousel-arrow:active img {
    transform: scale(0.95);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.7rem, 1.1vw, 1.25rem);
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.42rem;
    padding: clamp(0.85rem, 1.2vw, 1.15rem) clamp(0.85rem, 1.1vw, 1.2rem) clamp(0.75rem, 1vw, 1rem);
    background: linear-gradient(180deg, rgba(24, 19, 14, 0.82) 0%, rgba(10, 8, 6, 0.9) 100%);
    border: 1px solid rgba(190, 158, 108, 0.28);
    border-radius: 0.9rem;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 94, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 94, 0.65);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 94, 0.15);
}

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

.hero-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fixed height for every card so icons read as one symmetric set */
    height: clamp(4.6rem, 5.6vw, 5.6rem);
    margin-bottom: 0.15rem;
}

.hero-card-icon img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease;
}

.hero-card:hover .hero-card-icon img {
    transform: scale(1.07);
}

.hero-card-title {
    margin: 0;
    color: #e3d2ab;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card-desc {
    margin: 0;
    color: rgba(223, 215, 199, 0.68);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(0.73rem, 0.86vw, 0.83rem);
    line-height: 1.5;
    min-height: 2.4em;
}

/* ---- Card CTA hexagon ---------------------------------------------- */
.hero-card-cta {
    --cta-clip: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 1.9rem;
    margin-top: 0.5rem;
    clip-path: var(--cta-clip);
    background: rgba(201, 162, 74, 0.55);
    transition: background 0.3s ease;
}

.hero-card-cta::before {
    content: "";
    position: absolute;
    inset: 1.5px;
    clip-path: var(--cta-clip);
    background: #15100a;
    transition: background 0.3s ease;
}

.hero-card-cta i {
    position: relative;
    z-index: 1;
    color: #d8b85c;
    font-size: 0.95rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.hero-card:hover .hero-card-cta {
    background: rgba(212, 175, 94, 0.95);
}

.hero-card:hover .hero-card-cta::before {
    background: #1c1409;
}

.hero-card:hover .hero-card-cta i {
    color: #f2d98a;
}

/* ---- Featured (OYNA) card ------------------------------------------ */
.hero-card.is-featured {
    background: linear-gradient(180deg, rgba(120, 24, 20, 0.6) 0%, rgba(48, 9, 8, 0.86) 100%);
    border-color: rgba(206, 64, 52, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 26px rgba(196, 42, 32, 0.22);
}

.hero-card.is-featured:hover {
    border-color: rgba(232, 86, 70, 0.9);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 32px rgba(214, 52, 40, 0.4);
}

.hero-card.is-featured .hero-card-icon {
    height: clamp(5rem, 6.2vw, 6rem);
}

.hero-card.is-featured .hero-card-icon img {
    filter: drop-shadow(0 0 16px rgba(255, 90, 70, 0.55));
}

.hero-card.is-featured .hero-card-title {
    color: #f2dcb4;
}

.hero-card.is-featured .hero-card-cta {
    background: rgba(214, 78, 64, 0.7);
}

.hero-card.is-featured .hero-card-cta::before {
    background: #2a0c0a;
}

.hero-card.is-featured .hero-card-cta i {
    color: #f0c98a;
}

.hero-card.is-featured:hover .hero-card-cta {
    background: rgba(232, 96, 80, 1);
}

/* ---- Scroll-down hint ---------------------------------------------- */
.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    margin-top: clamp(0.3rem, 1.3vh, 0.85rem);
    padding: 0.15rem 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(231, 224, 210, 0.72);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    transition: color 0.25s ease;
}

.hero-scroll-hint:hover {
    color: #f0e6d2;
}

.hero-scroll-hint i {
    font-size: 1.2rem;
    line-height: 1;
    color: #d4af5e;
    animation: heroScrollBounce 1.8s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.75; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ---- Responsive ----------------------------------------------------- */
/* Tablet — 3 columns, no special featured re-ordering */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 46rem;
    }
}

/* Mobile — single-card carousel with side arrows */
@media (max-width: 767.98px) {
    .hero-cards-wrap {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        max-width: 23rem;
        padding: 0 0.15rem;
    }

    .hero-carousel-arrow {
        display: flex;
    }

    .hero-carousel-arrow img {
        width: 1.7rem;
    }

    .hero-cards-viewport {
        overflow: hidden;
        flex: 1 1 auto;
        min-width: 0;
    }

    .hero-cards {
        display: flex;
        grid-template-columns: none;
        max-width: none;
        gap: 0;
        margin: 0;
        padding: 0;
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }

    .hero-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .hero-card.is-featured {
        order: 0;
    }

    .hero-eyebrow {
        letter-spacing: 0.16em;
    }
}
