/* ==========================================================================
   /industries/ — built on the global dubaiseo.ai design tokens
   (see /assets/css/style.css :root). Scoped so it never affects other pages.
   ========================================================================== */

/* 5-column footer used on /industries/ (and shared with tools-style pages) */
@media (min-width: 993px) {
    .footer-grid-5 {
        grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
        gap: 46px;
    }
}

/* Header dropdown "See all" accent */
.dropdown-menu a.dropdown-all { font-weight: 600; color: var(--primary-light); }

/* Index: category groups + cards ------------------------------------------ */
.ind-cat { margin-bottom: 54px; }
.ind-cat:last-child { margin-bottom: 0; }
.ind-cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.ind-cat-head h2 { font-size: 1.5rem; color: var(--text-dark); }
.ind-cat-head .count { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.ind-card {
    display: flex; flex-direction: column;
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; text-decoration: none; color: inherit;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ind-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px var(--shadow-lg); border-color: var(--primary-light); }
.ind-card .ind-icon {
    width: 52px; height: 52px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin-bottom: 18px;
}
.ind-card .ind-icon svg { width: 26px; height: 26px; color: #fff; }
.ind-card h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 8px; }
.ind-card p { color: var(--text-body); font-size: 0.93rem; line-height: 1.6; margin: 0 0 18px; }
.ind-card .ind-cta { margin-top: auto; font-weight: 600; color: var(--primary-light); display: inline-flex; align-items: center; gap: 6px; }
.ind-card:hover .ind-cta { color: var(--primary); }

/* "Don't see your industry?" block ---------------------------------------- */
.ind-missing {
    text-align: center; background: var(--bg-alt);
    border: 1px dashed var(--primary-light); border-radius: 16px;
    padding: 40px 30px;
}
.ind-missing h3 { font-size: 1.35rem; color: var(--text-dark); margin-bottom: 10px; }
.ind-missing p { color: var(--text-body); max-width: 620px; margin: 0 auto 22px; line-height: 1.6; }

/* Related industries strip (on niche pages) ------------------------------- */
.ind-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ind-related a {
    display: flex; gap: 12px; align-items: center;
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px;
    padding: 16px; text-decoration: none; color: var(--text-dark); font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ind-related a:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.ind-related .r-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.ind-related .r-ico svg { width: 21px; height: 21px; color: var(--primary); }

.ind-tools-note {
    margin-top: 28px; background: var(--bg-alt);
    border-left: 4px solid var(--primary-light); border-radius: 8px;
    padding: 18px 22px; color: var(--text-body); line-height: 1.65;
}
.ind-tools-note a { color: var(--primary-light); font-weight: 600; }
.ind-tools-note a:hover { color: var(--primary); }

/* Niche landing helpers (reuse site classes; a few extras) ---------------- */
.ind-checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.ind-checklist li { position: relative; padding-left: 30px; color: var(--text-body); line-height: 1.5; }
.ind-checklist li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>") center/12px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>") center/12px no-repeat;
}
@media (max-width: 640px) { .ind-checklist { grid-template-columns: 1fr; } }

.ind-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 10px; }
.ind-metric { text-align: center; background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; padding: 26px 18px; }
.ind-metric .num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.ind-metric .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.ind-steps { counter-reset: step; display: grid; gap: 16px; margin-top: 10px; }
.ind-step { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.ind-step .n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ind-step h4 { margin: 2px 0 6px; color: var(--text-dark); font-size: 1.05rem; }
.ind-step p { margin: 0; color: var(--text-body); line-height: 1.55; }

/* Thematic Pexels imagery -------------------------------------------------- */
.ind-hero-section { padding-top: 32px; padding-bottom: 0; }
.ind-hero-img { border-radius: 18px; overflow: hidden; box-shadow: 0 16px 44px var(--shadow-lg); line-height: 0; }
.ind-hero-img img { width: 100%; aspect-ratio: 24 / 9; object-fit: cover; display: block; }
.ind-band { border-radius: 18px; overflow: hidden; box-shadow: 0 12px 36px var(--shadow-lg); line-height: 0; }
.ind-band img { width: 100%; aspect-ratio: 32 / 9; object-fit: cover; display: block; }
@media (max-width: 640px) {
    .ind-hero-img img { aspect-ratio: 16 / 10; }
    .ind-band img { aspect-ratio: 16 / 9; }
}

/* ===== RTL overrides for /ar/industries/ ===== */
[dir="rtl"] .ind-tools-note { border-left: 0; border-right: 4px solid var(--primary-light); }
[dir="rtl"] .ind-checklist li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ind-checklist li::before { left: auto; right: 0; }

/* 3-image gallery strip (dubai-local-seo district pages) ------------------- */
.ind-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-gallery .g-item { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px var(--shadow-lg); line-height: 0; }
.ind-gallery .g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (max-width: 768px) {
    .ind-gallery { grid-template-columns: 1fr 1fr; }
    .ind-gallery .g-item:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 480px) {
    .ind-gallery { grid-template-columns: 1fr; }
    .ind-gallery .g-item:nth-child(3) { grid-column: auto; }
}
