/* =========================================================
   MegVolt Tech Website
   Version: 0.2 — Modular Rebuild

   File:
   /assets/css/home/hero.css

   Purpose:
   - Homepage hero layout
   - Dark industrial hero background
   - Hero typography
   - Hero CTAs
   - Equipment composition
   - Decorative MegVolt red energy elements
   - Responsive behaviour

   Dependencies:
   - /assets/css/main.css
   - /modules/home/hero.php
   ========================================================= */


/* =========================================================
   1. HERO SECTION
   ========================================================= */

.home-hero {
    position: relative;

    width: 100%;
    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #090909 0%,
            #111111 42%,
            #181818 72%,
            #0d0d0d 100%
        );
}


/* Subtle industrial lighting across the visual area */

.home-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 78% 48%,
            rgba(215, 25, 32, 0.16) 0%,
            rgba(215, 25, 32, 0.07) 23%,
            rgba(215, 25, 32, 0.02) 42%,
            rgba(215, 25, 32, 0) 64%
        );

    pointer-events: none;
}


/* Very subtle diagonal industrial texture */

.home-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 61%,
            rgba(255, 255, 255, 0.018) 61%,
            rgba(255, 255, 255, 0.018) 61.2%,
            transparent 61.2%,
            transparent 100%
        );

    pointer-events: none;
}


/* =========================================================
   2. HERO CONTAINER
   ========================================================= */

.home-hero__container {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(480px, 1.1fr);

    align-items: center;

    gap: clamp(2rem, 4vw, 5rem);

    min-height: clamp(620px, 73vh, 760px);

    padding-top: clamp(4rem, 6vw, 6rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
}


/* =========================================================
   3. HERO CONTENT
   ========================================================= */

.home-hero__content {
    position: relative;
    z-index: 5;

    max-width: 690px;
}

.home-hero__eyebrow {
    position: relative;

    display: inline-flex;
    align-items: center;

    margin-bottom: var(--space-5);
    padding-left: 52px;

    color: var(--color-red);

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-hero__eyebrow::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 38px;
    height: 2px;

    background: var(--color-red);

    transform: translateY(-50%);
}


/* =========================================================
   4. HERO TITLE
   ========================================================= */

.home-hero__title {
    max-width: 680px;

    margin-bottom: var(--space-6);

    color: var(--color-white);

    font-size:
        clamp(
            3rem,
            4.6vw,
            4.9rem
        );

    font-weight: 800;
    line-height: 1.02;

    letter-spacing: -0.05em;
}

.home-hero__title span {
    display: block;

    color: var(--color-red);
}


/* =========================================================
   5. HERO DESCRIPTION
   ========================================================= */

.home-hero__description {
    max-width: 620px;

    margin-bottom: var(--space-8);

    color: rgba(255, 255, 255, 0.68);

    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.75;
}


/* =========================================================
   6. HERO ACTIONS
   ========================================================= */

.home-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: var(--space-4);
}

.home-hero__primary,
.home-hero__secondary {
    min-height: 52px;

    padding-inline: 1.7rem;
}


/* Override global dark outline button for dark hero */

.home-hero__secondary {
    color: var(--color-white);

    border-color: rgba(255, 255, 255, 0.72);
}

.home-hero__secondary:hover,
.home-hero__secondary:focus-visible {
    color: var(--color-black);

    background: var(--color-white);
    border-color: var(--color-white);
}


/* =========================================================
   7. HERO VISUAL
   ========================================================= */

.home-hero__visual {
    position: relative;

    width: 100%;
    height: 560px;

    min-width: 0;

    isolation: isolate;
}


/* =========================================================
   8. EQUIPMENT BASE
   ========================================================= */

.hero-product {
    position: absolute;

    display: block;

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 24px rgba(0, 0, 0, 0.38)
        );

    user-select: none;
    pointer-events: none;
}


/* =========================================================
   9. EQUIPMENT POSITIONING
   Desktop baseline — LOCKED
   ========================================================= */


/* TRAX 220
   Large rear equipment / right */

.hero-product-trax {
    width: 58%;
    max-width: 410px;

    left: 68%;
    top: 10%;

    transform: translateX(-25%);

    z-index: 1;
}


/* DLRO
   Main foreground equipment */

.hero-product-dlro {
    width: 52%;
    max-width: 370px;

    left: 15%;
    bottom: 0;

    z-index: 2;
}


/* MIT515
   Smaller equipment / far left */

.hero-product-mit {
    width: 28%;
    max-width: 210px;

    left: -10%;
    bottom: 8%;

    z-index: 3;
}


/* =========================================================
   10. RED GLOW
   ========================================================= */

.home-hero__glow {
    position: absolute;

    left: 51%;
    top: 49%;

    width: 470px;
    height: 470px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(215, 25, 32, 0.23) 0%,
            rgba(215, 25, 32, 0.10) 32%,
            rgba(215, 25, 32, 0.035) 52%,
            rgba(215, 25, 32, 0) 72%
        );

    transform: translate(-50%, -50%);

    filter: blur(4px);

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   11. ENERGY LINES
   ========================================================= */

.home-hero__energy-line {
    position: absolute;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(215, 25, 32, 0),
            rgba(215, 25, 32, 0.72),
            rgba(215, 25, 32, 0)
        );

    transform-origin: center;

    z-index: 0;

    pointer-events: none;
}

.home-hero__energy-line--one {
    width: 430px;

    left: 7%;
    top: 38%;

    transform: rotate(-18deg);

    opacity: 0.58;
}

.home-hero__energy-line--two {
    width: 340px;

    left: 35%;
    bottom: 23%;

    transform: rotate(19deg);

    opacity: 0.34;
}


/* =========================================================
   12. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1441px) {

    .home-hero__visual {
        height: 590px;
    }

}


/* =========================================================
   13. INTERMEDIATE DESKTOP
   ========================================================= */

@media (max-width: 1250px) {

    .home-hero__container {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(430px, 1.05fr);

        gap: 2rem;

        min-height: 620px;
    }

    .home-hero__title {
        font-size:
            clamp(
                2.8rem,
                4.4vw,
                4rem
            );
    }

    .home-hero__visual {
        height: 520px;
    }

}


/* =========================================================
   14. TABLET / STACKED HERO
   ========================================================= */

@media (max-width: 1000px) {

    .home-hero__container {
        grid-template-columns: 1fr;

        gap: var(--space-10);

        min-height: auto;

        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }

    .home-hero__content {
        max-width: 760px;
    }

    .home-hero__title {
        max-width: 720px;

        font-size:
            clamp(
                2.8rem,
                7vw,
                4.4rem
            );
    }

    .home-hero__description {
        max-width: 680px;
    }

    .home-hero__visual {
        width: min(100%, 720px);
        height: 500px;

        margin-inline: auto;
    }


    /* Responsive composition */

    .hero-product-trax {
        width: 52%;
        max-width: 390px;

        left: 57%;
        top: 7%;

        transform: none;
    }

    .hero-product-dlro {
        width: 47%;
        max-width: 350px;

        left: 26%;
        bottom: 0;
    }

    .hero-product-mit {
        width: 25%;
        max-width: 185px;

        left: 7%;
        bottom: 8%;
    }

    .home-hero__glow {
        left: 52%;

        width: 420px;
        height: 420px;
    }

}


/* =========================================================
   15. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-hero__container {
        gap: 2rem;

        padding-top: 3.5rem;
        padding-bottom: 2.5rem;
    }

    .home-hero__eyebrow {
        margin-bottom: var(--space-4);

        padding-left: 42px;

        font-size: 0.7rem;
    }

    .home-hero__eyebrow::before {
        width: 30px;
    }

    .home-hero__title {
        margin-bottom: var(--space-5);

        font-size:
            clamp(
                2.45rem,
                11vw,
                3.6rem
            );

        line-height: 1.04;
    }

    .home-hero__description {
        margin-bottom: var(--space-6);

        font-size: 1rem;
        line-height: 1.7;
    }

    .home-hero__actions {
        gap: var(--space-3);
    }

    .home-hero__primary,
    .home-hero__secondary {
        min-height: 48px;

        padding-inline: 1.3rem;
    }

    .home-hero__visual {
        height: 390px;
    }

    .hero-product {
        filter:
            drop-shadow(
                0 14px 18px rgba(0, 0, 0, 0.34)
            );
    }

    .hero-product-trax {
        width: 55%;

        left: 50%;
        top: 5%;
    }

    .hero-product-dlro {
        width: 50%;

        left: 22%;
        bottom: 0;
    }

    .hero-product-mit {
        width: 27%;

        left: 3%;
        bottom: 7%;
    }

    .home-hero__glow {
        left: 52%;
        top: 50%;

        width: 330px;
        height: 330px;
    }

    .home-hero__energy-line--one {
        width: 280px;

        left: 10%;
    }

    .home-hero__energy-line--two {
        width: 230px;

        left: 30%;
    }

}


/* =========================================================
   16. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .home-hero__container {
        padding-top: 3rem;
    }

    .home-hero__title {
        font-size:
            clamp(
                2.2rem,
                11.5vw,
                3rem
            );
    }

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

    .home-hero__primary,
    .home-hero__secondary {
        width: 100%;
    }

    .home-hero__visual {
        height: 320px;
    }

    .hero-product-trax {
        width: 57%;

        left: 47%;
        top: 4%;
    }

    .hero-product-dlro {
        width: 52%;

        left: 22%;
    }

    .hero-product-mit {
        width: 27%;

        left: 1%;
        bottom: 8%;
    }

    .home-hero__glow {
        width: 270px;
        height: 270px;
    }

    .home-hero__energy-line {
        opacity: 0.25;
    }

}