/* ---------- متغیرهای محلی ---------- */
.hvac-banner {
    --banner-radius: 24px;
    --banner-padding: 40px;
    --banner-min-height: 600px;
    --brand-color: #007C91;
    --brand-glow: rgba(20, 184, 166, 0.4);

    position: relative;
    width: 100%;
    min-height: var(--banner-min-height);
    border-radius: var(--banner-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

/* ---------- تصویر پس‌زمینه ---------- */
.hvac-banner__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.hvac-banner:hover .hvac-banner__photo {
    transform: scale(1.03);
}

/* ---------- لایه تاریک روی تصویر ---------- */
.hvac-banner__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 30, 40, 0.3) 0%,
            rgba(0, 20, 30, 0.7) 50%,
            rgba(0, 15, 25, 0.95) 100%
    );
    z-index: 2;
}

/* ---------- درخشش تزئینی ---------- */
.hvac-banner__glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(
            circle,
            var(--brand-glow) 0%,
            transparent 70%
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0.6;
}

/* ---------- نشان برند ---------- */
.brand-badge {
    position: absolute;
    z-index: 10;
    background: rgba(0, 124, 145, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .brand-badge {
        top: 24px;
        right: 24px;
    }
}


.brand-badge:hover {
    background: rgba(0, 124, 145, 1);
    transform: translateY(-2px);
}

.brand-badge__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* ---------- متن هیرو ---------- */
.feature-items {
    position: relative;
    z-index: 5;
    padding: 0 var(--banner-padding) var(--banner-padding);
    margin-top: 24px;
    width: 100%;
}

.hero-copy {
    padding: var(--banner-padding);
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    margin: 0 0 28px 0;
    max-width: 560px;
}

/* ---------- لینک‌های خدمات ---------- */
.service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 18px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.service-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.service-link:hover {
    background: rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

/* ---------- دکمه‌های هیرو ---------- */

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-btn--primary {
    background: #14b8a6;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
}

.hero-btn--primary:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.5);
}

.hero-btn--secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}


.feature-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: #14b8a6;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.feature-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   ریسپانسیو
   ============================================ */

/* تبلت بزرگ و دسکتاپ کوچک */
@media (max-width: 1200px) {
    .hvac-banner {
        --banner-padding: 32px;
        --banner-min-height: 550px;
    }

}

/* تبلت */
@media (max-width: 992px) {
    .hvac-banner {
        --banner-min-height: 500px;
        --banner-padding: 28px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .feature-card {
        padding: 16px 12px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .hvac-banner {
        --banner-min-height: 480px;
        --banner-padding: 20px;
        --banner-radius: 16px;
    }

    .brand-badge {
        top: 16px;
        left: 16px;
        padding: 6px 10px;
    }

    .hero-title {
        margin-bottom: 12px;
    }

    .hero-description {
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .service-links {
        gap: 8px;
        margin-bottom: 24px;
    }

    .service-link {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .service-link svg {
        width: 15px;
        height: 15px;
    }


    .hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 140px;
    }


    .feature-items .feature-card:last-child {
        grid-column: span 2;
    }

    .feature-card {
        padding: 14px 10px;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 8px;
    }

    .feature-title {
        font-size: 0.78rem;
    }

    .feature-description {
        font-size: 0.7rem;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .hvac-banner {
        --banner-min-height: 420px;
        --banner-padding: 16px;
        --banner-radius: 12px;
    }

    .brand-badge {
        top: 12px;
        left: 12px;
        padding: 5px 8px;
    }

    .brand-badge__inner span:first-of-type {
        font-size: 6px;
    }

    .brand-badge__inner span:last-of-type {
        font-size: 5px;
    }

    .hero-title {
        margin-bottom: 10px;
    }

    .hero-description {
        display: none;
    }

    .hero-description br {
        display: none;
    }

    .service-links {
        gap: 6px;
        margin-bottom: 20px;
    }

    .service-link {
        padding: 5px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .service-link svg {
        width: 13px;
        height: 13px;
    }


    .hero-btn {
        width: 100%;
        padding: 6px 10px;
        font-size: 0.85rem;
    }


    .feature-items .feature-card:last-child {
        grid-column: span 1;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: right;
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        margin: 0;
        flex-shrink: 0;
    }

    .feature-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .feature-description {
        font-size: 0.7rem;
    }
}

/* کاهش انیمیشن برای کاربران خاص */
@media (prefers-reduced-motion: reduce) {
    .hvac-banner__photo,
    .hero-btn,
    .feature-card,
    .service-link,
    .brand-badge {
        transition: none !important;
        transform: none !important;
    }
}
