/* ============================================
   Why Us Page Styles - Responsive & UX Optimized
   ============================================ */

/* Section Padding */
.why-us {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Section Title Styling */
.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aa8453;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1b1b1b;
}

.section-title + p.lead {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Why Us Item Card */
.why-us-item {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #aa8453, #d4af7a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-us-item:hover::before {
    transform: scaleX(1);
}

.why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(170, 132, 83, 0.2);
}

/* Icon/Image Container */
.why-us-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 10px;
    transition: transform 0.4s ease;
    position: relative;
}

.why-us-item:hover .why-us-icon {
    transform: scale(1.1) rotate(5deg);
}

.why-us-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.why-us-item:hover .why-us-icon img {
    filter: brightness(1.1);
}

/* Content */
.why-us-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.why-us-title {
    font-size: 22px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-item:hover .why-us-title {
    color: #aa8453;
}

.why-us-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    flex: 1;
}

/* Empty State */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px dashed #2196f3;
    border-radius: 12px;
    padding: 60px 30px;
}

.alert-info i {
    color: #2196f3;
    margin-bottom: 20px;
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 28px;
    }

    .section-title + p.lead {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .why-us-item {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .why-us-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .why-us-title {
        font-size: 20px;
        min-height: auto;
    }

    .why-us-description {
        font-size: 14px;
    }

    .mb-30 {
        margin-bottom: 20px !important;
    }

    .alert-info {
        padding: 40px 20px;
    }

    .alert-info i {
        font-size: 2rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .section-title {
        font-size: 32px;
    }

    .why-us-item {
        padding: 35px 25px;
    }

    .why-us-icon {
        width: 110px;
        height: 110px;
    }

    .why-us-title {
        font-size: 21px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section-title {
        font-size: 36px;
    }

    .col-md-6 {
        margin-bottom: 30px !important;
    }

    .why-us-item {
        height: 100%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-4:nth-child(3n+1) .why-us-item:hover {
        z-index: 10;
    }
}

/* ============================================
   RTL Support
   ============================================ */
[dir="rtl"] .why-us-item,
.rtl .why-us-item {
    text-align: center;
}

[dir="rtl"] .why-us-title,
.rtl .why-us-title,
[dir="rtl"] .why-us-description,
.rtl .why-us-description {
    direction: rtl;
}

/* ============================================
   Accessibility & UX Enhancements
   ============================================ */

/* Focus State for Keyboard Navigation */
.why-us-item:focus-within {
    outline: 3px solid #aa8453;
    outline-offset: 3px;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .why-us-item,
    .why-us-icon,
    .why-us-icon img,
    .why-us-title,
    .why-us-item::before {
        transition: none !important;
        animation: none !important;
    }

    .why-us-item:hover {
        transform: none;
    }

    .why-us-item:hover .why-us-icon {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .why-us-item {
        border: 2px solid #000;
    }

    .why-us-title {
        font-weight: 900;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .why-us {
        background: #1a1a1a;
    }

    .why-us-item {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .why-us-title {
        color: #ffffff;
    }

    .why-us-description {
        color: #b0b0b0;
    }

    .section-title {
        color: #ffffff;
    }
}

/* ============================================
   Loading State
   ============================================ */
.why-us-loading {
    text-align: center;
    padding: 60px 20px;
}

.why-us-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #aa8453;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .why-us-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .why-us-item:hover {
        transform: none;
    }
}
