/* ===================================
   VALUES SECTION - PREMIUM DESIGN
   =================================== */

.values-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Elegant background gradient */
.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(217, 180, 95, 0.03) 0%, transparent 70%);
    z-index: 0;
}

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

.values-section .section-header {
    margin-bottom: var(--spacing-xxl);
}

/* ===================================
   VALUES GRID
   =================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

/* ===================================
   VALUE CARD - PREMIUM DESIGN
   =================================== */

.value-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.05) 0%, rgba(217, 180, 95, 0.02) 100%);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 180, 95, 0.2);
    box-shadow: var(--shadow-medium);
}

.value-card:hover::before {
    opacity: 1;
}

/* ===================================
   VALUE ICON - SOPHISTICATED DESIGN
   =================================== */

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-slow);
    box-shadow: 0 8px 25px rgba(217, 180, 95, 0.25);
}

.value-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(217, 180, 95, 0.2);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(217, 180, 95, 0.35);
}

.value-card:hover .value-icon::before {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-color: rgba(217, 180, 95, 0.4);
}

.value-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 2.5;
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon svg {
    transform: scale(1.1);
}

/* ===================================
   VALUE CONTENT
   =================================== */

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.value-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: transform var(--transition-normal);
}

.value-card:hover .value-title::after {
    transform: translateX(-50%) scaleX(1);
}

.value-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin: var(--spacing-md) 0 0;
}

/* ===================================
   RESPONSIVE GRID
   =================================== */

@media (min-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .values-section {
        padding: var(--spacing-xl) 0;
    }
    
    .values-section .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 500px;
        margin: 0 auto;
    }
    
    .value-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .values-section {
        padding: var(--spacing-lg) 0;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-sm);
    }
    
    .value-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .value-title {
        font-size: 1.3rem;
    }
    
    .value-description {
        font-size: 0.95rem;
    }
}

/* ===================================
   STAGGERED ANIMATIONS
   =================================== */

.value-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

/* Mobile animation optimization */
@media (max-width: 767px) {
    .value-card {
        animation-delay: 0s !important;
    }
    
    .value-card:nth-child(even) {
        animation-delay: 0.1s !important;
    }
}

/* ===================================
   ALTERNATIVE LAYOUT FOR 2X2 GRID
   =================================== */

@media (min-width: 768px) {
    /* Optional: Make it exactly 2x2 on tablet/desktop */
    .values-grid.grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .value-card,
    .value-icon,
    .value-icon svg,
    .value-icon::before {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
    
    .value-card:hover,
    .value-card:hover .value-icon,
    .value-card:hover .value-icon svg {
        transform: none !important;
    }
}

/* Focus states */
.value-card:focus-within {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
}

/* ===================================
   HOVER EFFECTS FOR TOUCH DEVICES
   =================================== */

@media (hover: none) {
    /* Simplify effects on touch devices */
    .value-card:hover {
        transform: translateY(-4px);
    }
    
    .value-card:hover .value-icon {
        transform: scale(1.05);
    }
}
