/* ==========================================
   INDUSTRIES SECTION
   Legacy Protection Services
   Scale matched + subtle grey background
========================================== */

.industries-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Same subtle grey as services section */
    position: relative;
}

/* Reusing section-intro styles from services section */
/* The .section-intro, .section-label, .section-title, .section-text 
   are already defined in your services section CSS - no need to duplicate */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem to match services spacing */
    margin: 3rem 0 2rem 0;
}

.industry-card {
    background: var(--color-white);
    border-radius: 1rem;  /* Matches intro-image-card and service-card */
    padding: 1.25rem;  /* Reduced from 1.5rem */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-4px);  /* Matches service-card */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.2);
}

.industry-icon {
    width: 50px;  /* Reduced from 60px */
    height: 50px;  /* Reduced from 60px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 12px;  /* Reduced from 14px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.industry-icon i {
    font-size: 1.4rem;  /* Reduced from 1.6rem */
    color: var(--color-primary);
}

.industry-card h3 {
    font-size: 1rem;  /* Reduced from 1.1rem - matches service-card h3 */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.industry-card p {
    font-size: 0.8rem;  /* Reduced from 0.85rem - matches service-card p */
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.industry-tags span {
    background: rgba(214, 154, 59, 0.08);
    padding: 0.2rem 0.65rem;  /* Reduced padding */
    border-radius: 30px;
    font-size: 0.65rem;  /* Reduced from 0.7rem */
    font-weight: 500;
    color: var(--color-primary-dark);
}

.industries-bottom {
    text-align: center;
    margin-top: 2rem;
}

/* ========== ENHANCED RESPONSIVENESS ========== */

/* Tablet landscape & smaller desktops */
@media (max-width: 1100px) {
    .industries-grid {
        gap: 1.25rem;
    }
    
    .industry-card {
        padding: 1rem;
    }
    
    .industry-icon {
        width: 45px;
        height: 45px;
    }
    
    .industry-icon i {
        font-size: 1.2rem;
    }
    
    .industry-card h3 {
        font-size: 0.95rem;
    }
    
    .industry-card p {
        font-size: 0.75rem;
    }
    
    .industry-tags span {
        font-size: 0.6rem;
        padding: 0.15rem 0.55rem;
    }
}

/* Tablet portrait */
@media (max-width: 991px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .industries-bottom .btn {
        min-width: 200px;
    }
}

/* Mobile landscape */
@media (max-width: 640px) {
    .industries-grid {
        gap: 1rem;
    }
    
    .industry-card {
        padding: 0.875rem;
    }
    
    .industry-icon {
        width: 42px;
        height: 42px;
    }
    
    .industry-icon i {
        font-size: 1.1rem;
    }
    
    .industry-card h3 {
        font-size: 0.9rem;
    }
    
    .industry-card p {
        font-size: 0.7rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .industry-card {
        text-align: left;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .industry-icon {
        margin: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }
    
    .industry-card h3 {
        margin-bottom: 0.25rem;
    }
    
    .industry-tags {
        justify-content: flex-start;
    }
    
    .industries-bottom .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .industries-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Touch device optimization */
@media (hover: none) {
    .industry-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(0, 0, 0, 0.06);
    }
}