﻿/* File: Content/css/WhyChooseSamco.css */
/* Why Choose SAMCO Section Styles */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== SECTION CONTAINER ===== */
.why-samco-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    position: relative;
    overflow: hidden;
}

    .why-samco-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #ca8a04, #65a30d, #dc2626);
        z-index: 1;
    }

.samco-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    padding: 0 20px;
}

.section-title {
    font-size: 3.2rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 5px;
        background: linear-gradient(90deg, #ca8a04, #65a30d);
        border-radius: 3px;
        box-shadow: 0 2px 10px rgba(202, 138, 4, 0.3);
    }

.section-subtitle {
    font-size: 1.4rem;
    color: #334155;
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.7;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(202, 138, 4, 0.1);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
    padding: 0 10px;
}

/* ===== FEATURE CARD ===== */
.feature-card {
    position: relative;
    border-radius: 20px;
    min-height: 280px;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

    .feature-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    }

/* Feature Background */
.feature-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: 1;
    opacity: 0.05;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-bg {
    opacity: 0.08;
}

/* Feature Content */
.feature-content {
    position: relative;
    padding: 40px 35px;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
}

/* Feature Number */
.feature-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ca8a04, #eab308);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(202, 138, 4, 0.3);
    z-index: 3;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, #eab308, #fbbf24);
}

/* Feature Icon */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    overflow: visible;
}

    .feature-icon::before {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 25px;
        background: linear-gradient(135deg, #eab308, #65a30d);
        opacity: 0.15;
        z-index: 1;
        transition: all 0.3s ease;
    }

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
    transform: scale(1.05);
}

.icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1);
}

/* Feature Title */
.feature-title {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

    .feature-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        border-radius: 2px;
        background: linear-gradient(90deg, #ca8a04, #65a30d);
        transition: width 0.3s ease;
    }

.feature-card:hover .feature-title::after {
    width: 80px;
}

/* Feature Description */
.feature-desc {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    font-weight: 500;
    flex: 1;
    padding-right: 10px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(202, 138, 4, 0.1);
    position: relative;
    overflow: hidden;
}

    .stats-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #ca8a04, #65a30d, #dc2626);
    }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .stat-item:hover {
        background: #fefce8;
        transform: translateY(-5px);
    }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ca8a04;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(202, 138, 4, 0.1);
}

.stat-label {
    font-size: 1.2rem;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

    .feature-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .feature-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .feature-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .feature-card:nth-child(6) {
        animation-delay: 0.6s;
    }

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.8s ease-out forwards;
    opacity: 0;
}

    .stat-item:nth-child(1) {
        animation-delay: 0.7s;
    }

    .stat-item:nth-child(2) {
        animation-delay: 0.8s;
    }

    .stat-item:nth-child(3) {
        animation-delay: 0.9s;
    }

    .stat-item:nth-child(4) {
        animation-delay: 1s;
    }

@keyframes pulseStat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.stat-item:hover .stat-number {
    animation: pulseStat 1s ease-in-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .why-samco-section {
        padding: 80px 15px;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        padding: 18px 25px;
    }

    .feature-content {
        padding: 35px 30px;
    }

    .feature-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        top: -18px;
        right: -18px;
    }

    .feature-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 20px;
    }

    .icon {
        font-size: 2.8rem;
    }

    .feature-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .feature-desc {
        font-size: 1.05rem;
    }

    .stats-section {
        padding: 40px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 60px;
        gap: 25px;
    }

    .section-title {
        font-size: 2.4rem;
    }

        .section-title::after {
            width: 120px;
        }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 15px 20px;
        margin-top: 20px;
    }

    .feature-card:hover {
        transform: translateY(-10px);
    }

    .feature-icon::before {
        inset: -4px;
    }

    .stats-section {
        padding: 30px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .why-samco-section {
        padding: 60px 10px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 15px;
    }

    .features-grid {
        gap: 20px;
        margin-bottom: 50px;
    }

    .feature-card {
        border-radius: 15px;
        min-height: 260px;
    }

    .feature-bg {
        border-radius: 15px;
    }

    .feature-content {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .feature-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: -15px;
        right: -15px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        border-radius: 15px;
        margin-bottom: 20px;
    }

        .feature-icon::before {
            border-radius: 20px;
        }

    .icon {
        font-size: 2.2rem;
    }

    .feature-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

        .feature-title::after {
            width: 50px;
            height: 2px;
        }

    .feature-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    .stats-section {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .stat-item,
    .feature-card:hover,
    .feature-number,
    .icon,
    .stat-item:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Focus styles */
.feature-card:focus-within {
    outline: 3px solid #ca8a04;
    outline-offset: 5px;
}

.stat-item:focus-within {
    outline: 2px solid #65a30d;
    outline-offset: 3px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .why-samco-section {
        background: white !important;
        padding: 40px 20px !important;
    }

    .feature-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

        .feature-card:hover {
            transform: none !important;
        }

    .feature-bg {
        opacity: 0.03 !important;
    }

    .stats-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ===== HOVER STABILITY FIXES ===== */
/* Ensure all content stays visible */
.feature-card * {
    position: relative;
    z-index: inherit;
}

/* Prevent any overflow hiding */
.feature-card,
.feature-content {
    overflow: visible !important;
}

    /* Color variations for cards */
    .feature-card:nth-child(1) .feature-bg {
        background: linear-gradient(135deg, #ca8a04, #eab308);
    }

    .feature-card:nth-child(2) .feature-bg {
        background: linear-gradient(135deg, #65a30d, #84cc16);
    }

    .feature-card:nth-child(3) .feature-bg {
        background: linear-gradient(135deg, #0891b2, #06b6d4);
    }

    .feature-card:nth-child(4) .feature-bg {
        background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    }

    .feature-card:nth-child(5) .feature-bg {
        background: linear-gradient(135deg, #dc2626, #ef4444);
    }

    .feature-card:nth-child(6) .feature-bg {
        background: linear-gradient(135deg, #0f766e, #14b8a6);
    }

/* Smooth transitions */
.feature-card,
.feature-number,
.feature-icon,
.feature-icon::before,
.icon,
.feature-title,
.feature-title::after,
.feature-desc,
.stat-item,
.stat-number {
    transition: all 0.3s ease;
}
