/* CIRBLD — Clean professional design system
   Palette: white / light grey neutrals + one brand navy accent (#1F4E76) */
:root {
  --brand: #1F4E76;
  --brand-dark: #163B5A;
  --ink: #15202B;
  --text: #2F3E4C;
  --muted: #5E6C7A;
  --line: #DDE3E9;
  --bg: #FFFFFF;
  --bg-soft: #F5F7F9;
  --tint: #EAF1F7;

  /* legacy aliases used by inline styles in sub-pages (all mapped to the single accent) */
  --navy-900: #163B5A; --navy-800: #1F4E76; --navy-850: #1F4E76; --navy-950: #12283C;
  --brand-navy: #1F4E76;
  --emerald-400: #A9C8E3; --emerald-500: #1F4E76; --emerald-600: #1F4E76;
  --cyan-400: #A9C8E3;
  --text-primary: #15202B; --text-secondary: #2F3E4C; --text-muted: #5E6C7A;
  --text-on-dark-muted: #5E6C7A;
  --surface-paper: #F5F7F9;

  --font-display: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
  --container-max: 1180px;
  --radius: 8px;
}
[dir="rtl"] { --font-display: 'IBM Plex Sans Arabic', sans-serif; --font-body: 'IBM Plex Sans Arabic', sans-serif; --font-mono: 'IBM Plex Sans Arabic', sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.top-telemetry-bar, .brand-tagline, .pulse-dot, .hero-backdrop { display: none; }

/* Typography */
.mono-tag, .section-eyebrow {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}
[dir="rtl"] .mono-tag, [dir="rtl"] .section-eyebrow { letter-spacing: 0; }
.section-eyebrow.dark { color: var(--brand); }
.section-title, .hero-title, h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; margin-bottom: .9rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 68ch; }
.hero-title { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin-bottom: 1.75rem; }
.text-gradient-emerald, .text-gradient-navy { color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.35rem; border-radius: var(--radius); font-weight: 600; font-size: .94rem; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-primary, .btn-navy { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-navy:hover { background: var(--brand-dark); }
.btn-secondary, .btn-outline-navy { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover, .btn-outline-navy:hover { background: var(--tint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }
.brand-logo img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link { padding: .5rem .9rem; border-radius: 6px; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-link:hover { background: var(--bg-soft); }
.nav-link.active { color: var(--brand); font-weight: 700; }
.nav-badge-new { font-size: .62rem; font-weight: 700; padding: .1rem .4rem; border-radius: 99px; background: var(--tint); color: var(--brand); margin-inline-start: .3rem; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-toggle-btn { display: inline-flex; gap: .4rem; padding: .5rem .85rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .85rem; cursor: pointer; }
.lang-toggle-btn:hover { border-color: var(--brand); }
.mobile-menu-btn { display: none; background: #fff; border: 1px solid var(--line); padding: .45rem .7rem; border-radius: 6px; cursor: pointer; }

/* Hero (home + inner pages) */
.hero-section, .page-hero-compact { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 4.5rem 0; }
.page-hero-compact { padding: 3.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; }
.hero-panel h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.hero-panel li { display: flex; gap: .85rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.hero-panel li:first-of-type { border-top: 0; }
.hero-panel .num { font-weight: 800; color: var(--brand); min-width: 1.6rem; }
.hero-panel strong { display: block; color: var(--ink); font-size: .98rem; }
.hero-panel span.d { font-size: .86rem; color: var(--muted); }

/* Sections */
.section { padding: 4.5rem 0; }
.section.soft, .values-section { background: var(--bg-soft); border-block: 1px solid var(--line); }
.pillars-section { padding: 4.5rem 0; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }

/* Clients */
.trust-bar-section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.trust-bar-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1.25rem; }
.client-logos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.client-logo-card { display: flex; align-items: center; justify-content: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); height: 92px; background: #fff; }
.client-logo-card.dark-plate { background: #3a3f45; }
.client-logo-card img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
.client-logo-card.dark-plate img { filter: none; opacity: 1; }
.client-logo-card:hover img { filter: none; opacity: 1; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; }
.card.featured { border: 2px solid var(--brand); }
.card .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: .6rem; }
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.card ul { margin-bottom: 1.5rem; flex: 1; }
.card li { position: relative; padding-inline-start: 1.1rem; font-size: .92rem; margin-bottom: .45rem; }
.card li::before { content: ''; position: absolute; inset-inline-start: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.card .btn { align-self: flex-start; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value-card { border-top: 3px solid var(--brand); padding-top: 1rem; }
.value-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.value-card p { font-size: .92rem; color: var(--muted); }

.mena-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.mena-market-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: #fff; }
.mena-country-header { display: flex; justify-content: space-between; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.mena-country-name { font-weight: 700; color: var(--ink); }
.mena-country-code { font-size: .72rem; color: var(--muted); font-weight: 600; }
.mena-mandates-list li { font-size: .86rem; color: var(--muted); margin-bottom: .4rem; }

.cta-band { background: var(--brand); color: #fff; padding: 3.5rem 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.7rem; margin-bottom: .3rem; }
.cta-band p { color: #D3E2F0; }
.cta-band .btn { background: #fff; color: var(--brand); }

/* Services page */
.pillar-card-flagship { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 2.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; color: var(--text); }
.pillar-card-flagship h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.pillar-card-flagship p { color: var(--muted); margin-bottom: 1rem; }
.flagship-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--brand); background: var(--tint); padding: .3rem .7rem; border-radius: 99px; margin-bottom: 1rem; }
.architecture-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin: 1.5rem 0; }
.arch-feature-item { display: flex; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; }
.arch-feature-icon { font-weight: 800; color: var(--brand); font-size: .75rem; }
.arch-feature-text strong { display: block; font-size: .9rem; color: var(--ink); }
.arch-feature-text span { font-size: .8rem; color: var(--muted); }
.integration-stack-diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.stack-layer { border: 1px solid var(--line); border-radius: 6px; padding: .85rem 1rem; margin-bottom: .65rem; }
.stack-layer.highlight-layer { background: var(--tint); border-color: var(--brand); }
.stack-layer-tag { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--brand); }
.stack-layer-title { font-weight: 700; color: var(--ink); font-size: .92rem; }
.stack-layer p { color: var(--muted) !important; }

.services-matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.service-detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; }
.service-detail-card:hover { border-color: var(--brand); }
.service-code-pill { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.service-detail-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-detail-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.service-deliverables { border-top: 1px solid var(--line); padding-top: .8rem; font-size: .82rem; color: var(--muted); }
.faq-list { max-width: 860px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: .85rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-question { padding: 1.1rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .94rem; }

/* Contact */
.contact-portal-section { padding: 4rem 0 5rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-info-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 2rem; color: var(--text); }
.contact-info-panel h2 { color: var(--ink); }
.contact-info-panel p { color: var(--muted) !important; }
.contact-info-panel a { color: var(--brand) !important; }
.contact-info-panel div[style*="text-on-dark-muted"] { color: var(--muted) !important; }
.contact-info-panel div[style*="#FFFFFF"] { color: var(--ink) !important; }
.contact-channel-card { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.channel-icon { width: 38px; height: 38px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: .35rem; }
.form-control { width: 100%; padding: .75rem .9rem; border: 1px solid #C5CED7; border-radius: 6px; background: #fff; color: var(--ink); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,78,118,.15); }
.service-chips-selector { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-chip-checkbox input { position: absolute; opacity: 0; }
.service-chip-checkbox span { display: inline-block; padding: .45rem .85rem; border-radius: 99px; font-size: .82rem; font-weight: 600; border: 1px solid #C5CED7; color: var(--text); cursor: pointer; }
.service-chip-checkbox input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.service-chip-checkbox input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-feedback-banner { display: none; margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--brand); }
.form-feedback-banner.visible { display: block; }

/* Footer */
.site-footer { background: #12283C; color: #B9C7D4; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: .98rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .9rem; color: #B9C7D4; }
.footer-links a:hover { color: #fff; }
.social-links-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-icon-btn { width: 38px; height: 38px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; }
.social-icon-btn img { width: 20px; height: 20px; }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.footer-bottom .mono-tag { color: #B9C7D4; margin: 0; display: inline; }

@media (max-width: 960px) {
  .hero-grid, .pillar-card-flagship, .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .services-matrix-grid { grid-template-columns: 1fr 1fr; }
  .values-grid, .mena-cards-grid { grid-template-columns: 1fr 1fr; }
  .client-logos-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; top: 74px; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
  .card-grid, .services-matrix-grid, .values-grid, .mena-cards-grid, .form-row-2, .footer-grid, .architecture-feature-list { grid-template-columns: 1fr; }
  .client-logos-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-card, .pillar-card-flagship { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
