/* Scoped hero branding styles ONLY (Hero section branding block) */

#hero .hero-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin-bottom: 1.1rem;
    opacity: 1;

    /* ensure it never intrudes on nav/cta */
    position: relative;
}

#hero .hero-branding-row {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
}

#hero .hero-logo {
    height: 85px;
    /* Desktop: 70–90px */
    width: auto;
    display: block;
}

#hero .hero-company {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero .hero-company-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: baseline;
    gap: 0.22rem;
}

/* Aurora highlight reuse */
#hero .hero-company-aurora {
    background: linear-gradient(135deg, var(--gold), var(--aurora));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: hero-aurora-glow 2.6s ease-in-out infinite;
    will-change: filter;
}

#hero .hero-company-handyman {
    color: var(--pure-white);
    -webkit-text-fill-color: unset;
}

#hero .hero-tagline {
    margin-top: 0.55rem;
    font-size: 0.98rem;
    color: rgba(184, 194, 204, 0.68);
    line-height: 1.6;
    max-width: 520px;
}

/* --- Load animations --- */
#hero .hero-logo {
    opacity: 0;
    animation: hero-branding-logo-fade 0.7s ease forwards;
}

#hero .hero-company-name {
    opacity: 0;
    transform: translateY(16px);
    animation: hero-branding-name-slide 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.05s;
}

#hero .hero-tagline {
    opacity: 0;
    animation: hero-branding-tagline-fade 0.45s ease forwards;
    animation-delay: 0.3s;
}

@keyframes hero-branding-logo-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-branding-name-slide {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-branding-tagline-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-aurora-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(0, 255, 136, 0));
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.22));
    }
}

/* Tablet */
@media (max-width: 1023px) {
    #hero .hero-logo {
        height: 65px;
        /* Tablet: 60–70px */
    }

    #hero .hero-company-name {
        font-size: 1.55rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    #hero .hero-logo {
        height: 55px;
        /* Mobile: 50–60px */
    }

    #hero .hero-branding-row {
        align-items: flex-start;
    }

    /* Keep stacked neatly */
    #hero .hero-branding-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    #hero .hero-tagline {
        font-size: 0.88rem;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    #hero .hero-logo,
    #hero .hero-company-name,
    #hero .hero-tagline {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    #hero .hero-company-aurora {
        animation: none !important;
    }
}