/* Amwaj — industry landing pages (/<slug>/, /ar/<slug>/) and the /industries/ hub.
   Loaded after site.css on those pages only. Built by seo/engine/seo_industry.py. */

/* ---------- Landing header: logo · Visit website · language · Book a consultation ---------- */
.ind-header .header-inner { justify-content: space-between; }
.ind-header .header-actions { gap: 10px; }
.ind-visit { font-size: .9375rem; font-weight: 600; color: var(--ink); padding: 10px 12px; border-radius: var(--radius-sm); }
.ind-visit:hover { color: var(--navy-700); background: var(--blue-50); }
.ind-header .header-cta { display: inline-flex; }
@media (max-width: 640px) {
  .ind-visit { display: none; }
  .ind-header .header-cta { padding: 10px 14px; font-size: .8125rem; }
  .ind-header .lang-switch { padding-inline: 10px; }
}

/* ---------- Ghost button on dark backgrounds ---------- */
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.ind-hero {
  position: relative; overflow: hidden; color: #c9d4f5;
  background:
    radial-gradient(900px 520px at 92% 0%, rgba(26, 111, 255, .30), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(10, 162, 245, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  padding-block: clamp(32px, 5vw, 56px) clamp(48px, 6vw, 88px);
}
.ind-hero > .container { position: relative; z-index: 1; }
.ind-hero .breadcrumbs ol { color: #8f9dcc; }
.ind-hero .breadcrumbs li + li::before { color: rgba(255, 255, 255, .25); }
.ind-hero .breadcrumbs a:hover { color: #fff; }
.ind-hero .breadcrumbs [aria-current] { color: #dfe6ff; }
.ind-tag { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: #7fb3ff; margin-bottom: 16px; }
html[lang="ar"] .ind-tag { letter-spacing: 0; text-transform: none; font-size: .9375rem; font-weight: 600; }
.ind-hero h1 { color: #fff; font-size: clamp(2.25rem, 1.1rem + 4vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; max-width: 920px; margin-bottom: 22px; }
html[lang="ar"] .ind-hero h1 { line-height: 1.32; letter-spacing: 0; }
.ind-hero h1 span { background: linear-gradient(90deg, #8fc2ff, #5fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ind-hero-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.65; max-width: 700px; color: #b9c6ee; }
.ind-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ind-rules { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ind-rules h2 { color: #fff; font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
html[lang="ar"] .ind-rules h2 { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 1.0625rem; font-weight: 600; }
.ind-rules ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ind-rule { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9375rem; line-height: 1.6; color: #c9d4f5; }
.ind-rules ul:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.ind-sect { color: #7fb3ff; font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.ind-rule a { display: inline-block; margin-top: 6px; color: #8fc2ff; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.ind-rule a:hover { color: #fff; }

/* Rotating hero treatments (layouts 1–5) */
.ind-hero--v2 { background: radial-gradient(800px 480px at 50% 0%, rgba(26, 111, 255, .34), transparent 62%), linear-gradient(180deg, #0a1a5c, var(--navy-950)); }
.ind-hero--v3 { background: radial-gradient(900px 520px at 8% 0%, rgba(10, 162, 245, .26), transparent 60%), linear-gradient(160deg, var(--navy-950), #12256f); }
.ind-hero--v4 { text-align: center; }
.ind-hero--v4 h1, .ind-hero--v4 .ind-hero-lead { margin-inline: auto; }
.ind-hero--v4 .hero-actions, .ind-hero--v4 .breadcrumbs ol { justify-content: center; }
.ind-hero--v4 .ind-rule { text-align: start; }
.ind-hero--v5 { background: radial-gradient(1000px 600px at 100% 100%, rgba(26, 111, 255, .30), transparent 60%), linear-gradient(200deg, var(--navy-900), #050b2b); }
.ind-hero--hub { text-align: center; }
.ind-hero--hub h1, .ind-hero--hub .ind-hero-lead { margin-inline: auto; }
.ind-hero--hub .hero-actions, .ind-hero--hub .breadcrumbs ol { justify-content: center; }

/* ---------- Sections ---------- */
.ind-sec { padding-block: clamp(56px, 8vw, 104px); background: #fff; }
.ind-sec:nth-of-type(even) { background: var(--blue-50); }
.ind-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.ind-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.12; letter-spacing: -.025em; }
html[lang="ar"] .ind-head h2 { line-height: 1.4; letter-spacing: 0; }
.ind-lead { margin-top: 14px; font-size: 1.0625rem; line-height: 1.7; color: var(--text); }

.ind-answer-text { max-width: 820px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.75; color: var(--ink);
  padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--blue-500); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ind-answer-text a, .ind-why a, .ind-cards a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }

.ind-why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: none; }
.ind-why li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.ind-num { display: block; font-family: var(--font-mono); font-size: .875rem; color: var(--blue-500); margin-bottom: 14px; }
.ind-why h3, .ind-card h3, .ind-plan h3, .ind-review h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.ind-why p, .ind-card p, .ind-plan p, .ind-review p { font-size: .9375rem; line-height: 1.65; color: var(--text); }

.ind-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; }
.ind-card::before { content: ""; position: absolute; inset-inline-start: 24px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); }

.ind-table-wrap { max-width: none; }
.ind-table-wrap table { margin: 0; background: #fff; }
.ind-table-wrap tbody th { font-weight: 600; color: var(--ink); background: var(--blue-50); text-align: start; min-width: 140px; }
.ind-table-wrap thead th:last-child { background: var(--blue-500); color: #fff; }
.ind-table-wrap tbody td:last-child { background: rgba(26, 111, 255, .06); color: var(--ink); }

.ind-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-plan li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.ind-plan-label { display: inline-block; font-family: var(--font-mono); font-size: .8125rem; color: var(--gold-ink); background: #fbf3e6; border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
html[lang="ar"] .ind-plan-label { font-family: var(--font-sans); font-weight: 600; }

.ind-dark { position: relative; color: #c9d4f5; background: radial-gradient(900px 520px at 8% 0%, rgba(26, 111, 255, .28), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)) !important; }
.ind-dark .ind-head h2 { color: #fff; }
.ind-dark .ind-lead { color: #aebbe6; }
.ind-dark .eyebrow { color: #e7bd7a; }
.ind-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-metric { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s; }
.ind-metric:hover { border-color: rgba(143, 194, 255, .55); background: rgba(255, 255, 255, .07); }
.ind-metric-v { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 700; line-height: 1; background: linear-gradient(90deg, #8fc2ff, #5fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ind-metric-l { color: #c9d4f5; font-size: .9375rem; line-height: 1.5; }
[dir="rtl"] .ind-metric-v { align-self: flex-start; }

.ind-review { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.ind-review li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; }
.ind-review-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ind-faq .faq { margin-top: 0; }
.ind-guides .posts { margin-top: 0; }

/* ---------- CTA band ---------- */
.ind-band { position: relative; overflow: hidden; text-align: center; color: #c9d4f5; padding-block: clamp(56px, 8vw, 96px);
  background: radial-gradient(800px 420px at 50% 0%, rgba(26, 111, 255, .40), transparent 62%), linear-gradient(180deg, var(--navy-700), var(--navy-950)); }
.ind-band > .container { position: relative; z-index: 1; }
.ind-band h2 { color: #fff; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 14px; }
html[lang="ar"] .ind-band h2 { line-height: 1.4; letter-spacing: 0; }
.ind-band p { max-width: 640px; margin-inline: auto; font-size: 1.0625rem; line-height: 1.7; }
.ind-band .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Hub ---------- */
.ind-hub-group + .ind-hub-group { margin-top: clamp(40px, 6vw, 64px); }
.ind-hub-group h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); margin-bottom: 20px; }
.ind-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-hub-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s; }
.ind-hub-card:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ind-hub-card b { font-size: 1.125rem; color: var(--ink); }
.ind-hub-card span { font-size: .9375rem; line-height: 1.6; color: var(--text); flex: 1; }
.ind-hub-card i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-700); font-size: .9375rem; }
.ind-hub-card i svg { width: 16px; height: 16px; }
[dir="rtl"] .ind-hub-card i svg, [dir="rtl"] .ind-band .btn svg.i-arrow, [dir="rtl"] .ind-hero .btn svg.i-arrow, [dir="rtl"] .ind-review-actions .btn svg.i-arrow { transform: scaleX(-1); }

/* ---------- Compact footer ---------- */
.ind-footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px) 40px; }
.ind-footer .footer-brand p { margin-top: 16px; max-width: 46ch; line-height: 1.7; }
.ind-footer .footer-contact li + li, .ind-footer-links li + li { margin-top: 12px; }
.ind-footer-links a { color: #dfe6ff; }
.ind-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ind-footer .lang-switch { color: #dfe6ff; border-color: rgba(255, 255, 255, .22); background: transparent; }
.ind-footer .lang-switch:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .45); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ind-why { grid-template-columns: repeat(2, 1fr); }
  .ind-rules ul, .ind-rules ul:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ind-cards, .ind-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-plan, .ind-metrics, .ind-review { grid-template-columns: 1fr; }
  .ind-footer-grid { grid-template-columns: 1fr 1fr; }
  .ind-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ind-why, .ind-cards, .ind-hub-grid, .ind-rules ul, .ind-rules ul:has(> li:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .ind-footer-grid { grid-template-columns: 1fr; }
  .ind-hero .hero-actions .btn, .ind-band .hero-actions .btn, .ind-review-actions .btn { width: 100%; }
  .ind-answer-text { padding: 20px; }
}

/* Mobile stacked compare table: row label (th) spans the full card */
@media (max-width: 640px) {
  .prose table.t-stack th[scope="row"] { display: block; width: 100%; box-sizing: border-box; background: var(--blue-50); color: var(--ink); font-weight: 600;
    padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
}
