/* -----------------------------------------------------------------------------
   Hero — hero section structure, floating image layout, status card
   Used on home/overview and all sub-page hero variants
----------------------------------------------------------------------------- */

/* --- HERO STRUCTURE --- */
.hero-custom {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-shape {
    position: absolute;
    top: 0; right: 0; width: 55%; height: 100%;
    background-color: var(--light-green);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
    transform: translateY(-100%);
    animation: slideDownShape 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideDownShape {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.container-hero { position: relative; z-index: 1; }

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.8rem;
    border-left: 4px solid var(--primary-green);
    padding-left: 15px;
}

@media screen and (max-width: 1023px) {
    .hero-shape { width: 100%; opacity: 0.2; clip-path: none; }
    .hero-image-container { height: 400px; }
    .hero-custom {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* --- MOBILE (tablet stacked + phone) --- */
@media screen and (max-width: 768px) {
    .hero-custom {
        padding: 48px 0 !important;
        min-height: auto !important;
        text-align: center !important;
    }

    /* Replace left border accent with bottom border for centered context */
    .hero-tagline {
        border-left: none;
        border-bottom: 1px solid var(--primary-green);
        padding-left: 0;
        padding-bottom: 6px;
        display: inline-block;
    }

    /* Center all text content explicitly */
    .hero-custom .title,
    .hero-custom .subtitle,
    .hero-custom p {
        text-align: center !important;
    }

    /* hero-body-text: reset max-width so the paragraph block spans full width
       (without this, max-width: 520px causes the block to sit left-aligned
       on viewports 521px–768px while the h1 above appears fully centered) */
    .hero-body-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Center CTA buttons — override Bulma's default justify-content: flex-start */
    .hero-custom .buttons {
        justify-content: center !important;
    }

    /* Full-width, centered stats row */
    .hero-info-footer {
        max-width: 100%;
        justify-content: center;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    /* Reduce floating image area on phone */
    .hero-image-container {
        height: 280px;
        margin-top: 1.5rem;
    }

    /* Hide decorative right-column content (logo, icon) on small screens */
    .hero-custom .column.is-4,
    .hero-custom .column.is-5 {
        display: none;
    }
}

/* Cascade animation delays for hero children */
.hero-custom .fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.hero-custom .fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.hero-custom .fade-in-section:nth-child(3) { transition-delay: 0.3s; }
.hero-custom .fade-in-section:nth-child(4) { transition-delay: 0.4s; }
.hero-custom .fade-in-section:nth-child(5) { transition-delay: 0.5s; }


/* --- FLOATING IMAGE LAYOUT --- */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overview (home) hero — image fills container so status-card-hero
   stays anchored to the image corner at all breakpoints */
.hero-custom .hero-image-container .custom-image {
    height: 480px;
    width: 100%;
}

.floating-wrapper {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.main-img-wrap {
    width: 70%;
    height: 60%;
    z-index: 2;
    transform: scale(0.9);
    transition-delay: 0.3s;
}

.secondary-img-wrap {
    width: 35%;
    height: 30%;
    top: 5%;
    left: 5%;
    z-index: 3;
    transform: translateX(-40px) translateY(-40px);
    transition-delay: 0.5s;
}

.tertiary-img-wrap {
    width: 40%;
    height: 35%;
    bottom: 10%;
    right: 0;
    z-index: 4;
    transform: translateX(40px) translateY(40px);
    transition-delay: 0.7s;
}

.floating-wrapper.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

.floating-img {
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2);
    border: 0px solid #fafafa;
    transition: box-shadow 0.3s ease;
}
.floating-img:hover {
    box-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.25);
}
.floating-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- STATUS CARD --- */
.status-card-hero {
    position: absolute;
    bottom: 8%;
    right: 1.2%;
    padding: 12px 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-green);
    z-index: 10;
    border-radius: var(--radius-small);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

.status-indicator::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--primary-green);
    border-radius: 50%;
    animation: pulse-ring 1.0s infinite;
}


/* --- SHARED HERO H1 --- */
.hero-h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}
.hero-h1--light { color: var(--navbar-bg); }
.hero-h1--light span { color: var(--primary-green); }
.hero-h1--dark { color: #ffffff; }
.hero-h1--dark span { color: var(--primary-green); }

/* --- SHARED HERO BODY TEXT --- */
.hero-body-text {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-body-text--light { color: var(--text-secondary); }
.hero-body-text--dark { color: rgba(255, 255, 255, 0.65); }


/* --- HERO INFO FOOTER --- */
.hero-info-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    max-width: 80%;
    margin-top: 3rem;
}
.info-label {
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 500;
}
.info-value {
    color: var(--navbar-bg);
    font-weight: 500;
}
