/* ui15.css: rich emirate pages (/pages/software-company-*). Visual only; loaded last.
   Delete this file + its <link> + the cms-emirate.php include in cms.php to revert. */

/* ---------- Article + sticky sidebar ---------- */
.em-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.em-prose { min-width: 0; padding: clamp(26px, 3.4vw, 52px); background: #fff; border: 1px solid var(--c-line, rgba(11, 27, 58, .12)); border-top: 3px solid #b08a3e; border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(11, 27, 58, .4); }
.em-prose .prose { max-width: none; font-size: clamp(1.02rem, 1.2vw, 1.1rem); line-height: 1.8; color: #2c3a54; }
.em-prose .prose > p:first-child { font-size: 1.2em; line-height: 1.65; color: #1b2a47; }
.em-prose .prose h2 { margin: 2em 0 .6em; font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -.03em; color: #0b1b3a; scroll-margin-top: 110px; }
.em-prose .prose h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, #b08a3e, transparent); }
.em-prose .prose h3 { margin: 1.6em 0 .5em; color: #0b1b3a; }
.em-prose .prose ul { padding-left: 1.2em; }
.em-prose .prose li { margin: .55em 0; }
.em-prose .prose li::marker { color: #b08a3e; font-weight: 700; }
.em-prose .prose a { color: #0b1b3a; font-weight: 600; text-decoration-color: rgba(176, 138, 62, .7); text-underline-offset: 3px; }
.em-updated { margin: 2em 0 0; color: #6a7690; font-size: .85rem; }
.em-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.em-toc { padding: 22px; background: #fff; border: 1px solid var(--c-line, rgba(11, 27, 58, .12)); border-top: 3px solid #b08a3e; border-radius: 6px; box-shadow: 0 24px 44px -32px rgba(11, 27, 58, .3); }
.em-side .side-title { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6a24; }
.em-toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid rgba(11, 27, 58, .12); color: #4a5670; font-size: .9rem; line-height: 1.35; text-decoration: none; transition: color .2s, border-color .2s; }
.em-toc a:hover { color: #0b1b3a; border-left-color: #b08a3e; }
.em-cta { padding: 26px 24px; border-radius: 6px; color: #b8c4de; background: radial-gradient(360px 200px at 90% 0%, rgba(230, 194, 122, .22), transparent 65%), linear-gradient(180deg, #0d2146, #08142e); }
.em-cta .side-title { color: #e6c27a; }
.em-cta p { margin: 0 0 16px; font-size: .94rem; line-height: 1.55; }
.em-cta .btn.btn-primary { width: 100%; justify-content: center; background: #e6c27a !important; border-color: #e6c27a !important; color: #0b1b3a !important; -webkit-text-fill-color: #0b1b3a !important; }
.em-wa { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #fff !important; font-size: .92rem; font-weight: 600; text-decoration: none; }
.em-wa:hover { color: #e6c27a !important; }
.em-wa svg { flex: none; }

/* ---------- Industries as described chips ---------- */
.em-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.em-chips a { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 20px 22px; background: #fff; border: 1px solid var(--c-line, rgba(11, 27, 58, .12)); border-left: 3px solid #b08a3e; border-radius: 4px; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.em-chips a:hover { transform: translateY(-4px); border-color: rgba(176, 138, 62, .7); box-shadow: 0 24px 44px -28px rgba(11, 27, 58, .38); }
.em-chips strong { color: #0b1b3a; font-size: 1.04rem; letter-spacing: -.01em; }
.em-chips span { color: #5b6880; font-size: .88rem; line-height: 1.45; }

/* ---------- Software categories ---------- */
.em-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.em-cat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--c-line, rgba(11, 27, 58, .12)); border-radius: 6px; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.em-cat:hover { transform: translateY(-4px); border-color: rgba(176, 138, 62, .7); box-shadow: 0 24px 44px -28px rgba(11, 27, 58, .38); }
.em-cat-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; background: #0b1b3a; color: #e6c27a; font-weight: 700; font-size: 1.05rem; }
.em-cat-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.em-cat-t strong { color: #0b1b3a; font-size: 1rem; }
.em-cat-t small { color: #5b6880; font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-cat-a { color: #b08a3e; transition: transform .25s; }
.em-cat:hover .em-cat-a { transform: translateX(5px); }
.em-more { margin: clamp(24px, 3vw, 40px) 0 0; text-align: center; }

/* ---------- Other emirates ---------- */
.em-emirates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.em-emirates a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid var(--c-line, rgba(11, 27, 58, .12)); border-radius: 4px; color: #0b1b3a; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.em-emirates a:hover { background: #0b1b3a; color: #fff; border-color: #0b1b3a; }
.em-emirates a span:last-child { color: #b08a3e; transition: transform .2s; }
.em-emirates a:hover span:last-child { transform: translateX(5px); }

@media (max-width: 1000px) {
  .em-layout { grid-template-columns: 1fr; }
  .em-side { position: static; order: -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .em-chips, .em-cats, .em-emirates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .em-side { grid-template-columns: 1fr; }
  .em-chips, .em-cats, .em-emirates { grid-template-columns: 1fr; }
  .em-prose { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .em-chips a:hover, .em-cat:hover { transform: none; } }
