﻿/* =============================================
   wwwroot/css/why-choose-us.css
   SunShine Premium Why Choose Us Section
   ============================================= */

:root {
    --green-deep: #071a10;
    --green-primary: #0e3521;
    --green-secondary: #1a5230;
    --gold-bright: #FFD700;
    --gold-mid: #F9A826;
    --gold-deep: #FF8C00;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-hover: 0 25px 50px rgba(249, 168, 38, 0.15);
}

/* ---------- Section Base ---------- */
.why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

    /* Ambient Floating Orbs */
    .why-choose-section::before {
        content: '';
        position: absolute;
        top: 10%;
        left: -200px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: floatOrb 10s ease-in-out infinite;
    }

    .why-choose-section::after {
        content: '';
        position: absolute;
        bottom: 10%;
        right: -200px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 140, 0, 0.06), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: floatOrb 12s ease-in-out infinite reverse;
    }

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

/* ---------- Content (Left) ---------- */
.why-content {
    padding: 1rem 2rem 1rem 0;
}

.section-badge {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: var(--green-deep);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-title {
    color: var(--green-deep);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

    .section-title .highlight {
        background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.section-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ---------- Feature Grid 2×2 ---------- */
.why-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.why-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .why-feature-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(255, 215, 0, 0.4);
    }

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    /* Gold-gradient icon backgrounds */
    .feature-icon-box.quality {
        background: linear-gradient(135deg, #FFD700, #F9A826);
    }

    .feature-icon-box.technicians {
        background: linear-gradient(135deg, #FFC857, #FF8C00);
    }

    .feature-icon-box.support {
        background: linear-gradient(135deg, #FFE57F, #FFD700);
    }

    .feature-icon-box.warranty {
        background: linear-gradient(135deg, #FFF2D7, #FFC857);
    }

.why-feature-item:hover .feature-icon-box {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.feature-info h5 {
    color: var(--green-deep);
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.feature-info p {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

/* ---------- Bonus List ---------- */
.why-bonus-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.05));
    border-radius: 14px;
    border-left: 4px solid var(--gold-bright);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

    .bonus-item i {
        color: #198754; /* Success green */
        font-size: 1rem;
        flex-shrink: 0;
    }

/* ---------- Actions ---------- */
.why-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .why-actions .btn {
        display: inline-flex;
        align-items: center;
        padding: 0.85rem 2rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
        text-decoration: none;
    }

    .why-actions .btn-primary {
        background: linear-gradient(135deg, var(--green-deep), var(--green-secondary));
        color: var(--gold-bright);
        box-shadow: 0 8px 20px rgba(7, 26, 16, 0.35);
    }

        .why-actions .btn-primary:hover {
            background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
            color: var(--green-deep);
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
        }

    .why-actions .btn-outline-primary {
        background: transparent;
        color: var(--gold-deep);
        border-color: var(--gold-mid);
    }

        .why-actions .btn-outline-primary:hover {
            background: var(--gold-bright);
            color: var(--green-deep);
            border-color: var(--gold-bright);
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(255, 215, 0, 0.35);
        }

/* ---------- Visual (Right) ---------- */
.why-visual {
    position: relative;
    padding: 2rem 0 2rem 2rem;
    min-height: 600px;
}

.why-image-main {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(7, 26, 16, 0.15);
    z-index: 2;
    border: 4px solid #ffffff;
}

    .why-image-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

    .why-image-main:hover img {
        transform: scale(1.05);
    }

.why-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%, rgba(7, 26, 16, 0.3) 100%);
    pointer-events: none;
}

/* ---------- Floating Badges ---------- */
.why-float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 4;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-top {
    top: 1rem;
    right: 0;
    animation-delay: 0s;
}

.badge-bottom {
    bottom: 1rem;
    left: 0;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .badge-text strong {
        color: var(--green-deep);
        font-size: 1.05rem;
        font-weight: 800;
    }

    .badge-text span {
        color: #6c757d;
        font-size: 0.75rem;
        font-weight: 600;
    }

/* ---------- Decorative Dots ---------- */
.why-accent-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.dot-1 {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
}

.dot-2 {
    width: 150px;
    height: 150px;
    bottom: -20px;
    right: -20px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15), transparent 70%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .why-content {
        padding-right: 1rem;
    }

    .why-visual {
        padding-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .why-choose-section {
        padding: 4rem 0;
    }

    .why-content {
        padding: 1rem 0;
    }

    .why-visual {
        padding: 2rem 0;
        min-height: auto;
    }

    .why-image-main {
        height: 480px;
    }

    .badge-top {
        top: 1rem;
        right: 1rem;
    }

    .badge-bottom {
        bottom: 1rem;
        left: 1rem;
    }
}

@media (max-width: 767.98px) {
    .why-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .why-image-main {
        height: 400px;
    }

    .why-actions {
        flex-direction: column;
    }

        .why-actions .btn {
            width: 100%;
            justify-content: center;
        }
}

@media (max-width: 575.98px) {
    .why-image-main {
        height: 340px;
    }

    .why-float-badge {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .badge-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .badge-text strong {
        font-size: 0.9rem;
    }

    .badge-text span {
        font-size: 0.65rem;
    }

    .why-bonus-list {
        padding: 1rem 1.25rem;
    }

    .bonus-item {
        font-size: 0.85rem;
    }
}
