/* =====================================================================
   INDUSTRY PAGES — SHARED MODERN STYLES
   Applies to: Retail, Healthcare, Hotels, Manufacturing,
               Restaurants, Supermarkets
   Loaded AFTER functionPages.css (reuses its design tokens:
   --accent, --surface, --border, --text, --text-mid, --text-light,
   --radius-*, --shadow-*, fonts, .hero, .section, .container,
   .showcase-layout, .steps-timeline, .related-grid, buttons, .reveal)
   ===================================================================== */

/* ===== VIDEO HERO (modern overlay) ===== */
.industry-hero {
    min-height: 78vh;
    overflow: hidden;
}

.industry-hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark gradient wash so white hero text stays readable over any video */
.industry-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10,22,40,.92) 0%, rgba(19,35,71,.82) 45%, rgba(26,58,122,.72) 100%);
    pointer-events: none;
}

.industry-hero .hero-grid {
    z-index: 1;
}

.industry-hero .hero-content {
    z-index: 2;
}

/* ===== STATS BAND ===== */
.industry-stats {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
}

.industry-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.industry-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.industry-stat-label {
    font-size: .85rem;
    color: var(--text-light);
    margin-top: .35rem;
}

@media (max-width: 720px) {
    .industry-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
}

/* ===== SHOWCASE IMAGE ===== */
.industry-shot {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    line-height: 0;
}

.industry-shot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SECTION LABEL ===== */
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: .6rem;
}

/* ===== FEATURE CARDS GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.feature-card-icon.green-icon { background: var(--green-light); }
.feature-card-icon.green-icon svg { fill: var(--green); }
.feature-card-icon.purple-icon { background: var(--purple-light); }
.feature-card-icon.purple-icon svg { fill: var(--purple); }
.feature-card-icon.amber-icon { background: var(--amber-light); }
.feature-card-icon.amber-icon svg { fill: var(--amber); }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text);
}

.feature-card p {
    font-size: .92rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Bullet list inside a feature card (used by the "features" section) */
.ind-list {
    list-style: none;
    padding: 0;
    margin: .25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ind-list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.ind-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .15rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23155dee'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ===== DARK BENEFITS BAND ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: background .3s, border-color .3s, transform .3s;
}

.benefit-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.16);
    transform: translateY(-3px);
}

.benefit-card .benefit-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(21,93,238,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.benefit-card .benefit-check svg {
    width: 16px;
    height: 16px;
    fill: #7db4ff;
}

.benefit-card span {
    font-size: .95rem;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
}

/* ===== FAQ ACCORDION (modern — overrides functionPages legacy .faq-item) ===== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-list .faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0;
    transition: border-color .25s, box-shadow .25s;
}

.faq-list .faq-item.open {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
    flex-shrink: 0;
    transition: transform .3s;
}

.faq-list .faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-body-inner {
    padding: 0 22px 18px;
    font-size: .93rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ===== RELATED INDUSTRIES (ensure modern card look) ===== */
.industries-related .related-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .industries-related .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .industry-hero {
        min-height: 70vh;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
