/* ==========================================
   INDUSTRIES SECTION
   Legacy Protection Services
   Scale matched + subtle grey background
   Mobile-optimized with vertical card layout
   STANDARDIZED TITLES
========================================== */

.industries-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;
    position: relative;
}

/* SECTION INTRO - Standardized title sizes */
.industries-section .section-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.industries-section .section-label {
    display: inline-block;
    background: rgba(214, 154, 59, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
}

/* STANDARDIZED TITLE SIZES - Matching other sections */
.industries-section .section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Desktop */
@media (min-width: 992px) {
    .industries-section .section-title {
        font-size: 1.8rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .industries-section .section-title {
        font-size: 1.5rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .industries-section .section-title {
        font-size: 1.3rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .industries-section .section-title {
        font-size: 1.2rem;
    }
}

.industries-section .section-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .industries-section .section-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .industries-section .section-text {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 2rem 0;
}

.industry-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 1.25rem;
    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);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.2);
}

.industry-icon {
    width: 50px;
    height: 50px;
    background: rgba(214, 154, 59, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.industry-icon i {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.industry-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.industry-card p {
    font-size: 0.8rem;
    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;
    border-radius: 30px;
    font-size: 0.65rem;
    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 - VERTICAL LAYOUT STARTS HERE */
@media (max-width: 640px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .industry-card {
        text-align: center;
        padding: 1.25rem;
    }
    
    .industry-icon {
        width: 55px;
        height: 55px;
        margin: 0 auto 0.75rem;
    }
    
    .industry-icon i {
        font-size: 1.3rem;
    }
    
    .industry-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .industry-card p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .industry-tags {
        justify-content: center;
    }
}

/* Mobile portrait - VERTICAL & CENTERED */
@media (max-width: 480px) {
    .industries-grid {
        max-width: 100%;
        gap: 1rem;
    }
    
    .industry-card {
        padding: 1.125rem;
    }
    
    .industry-icon {
        width: 50px;
        height: 50px;
    }
    
    .industry-icon i {
        font-size: 1.2rem;
    }
    
    .industry-card h3 {
        font-size: 0.95rem;
    }
    
    .industry-card p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .industry-tags span {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    
    .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);
    }
}