/* ============================================================================
   Yanouri Global Consulting — design system
   Adapted from the PIF Design System (pif.gov.sa reference, v1.0).
   Tokens are the single source of truth; change them to retheme everything.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Core palette ─────────────────────────────────────── */
  --pif-gold:        #B8975A;
  --pif-gold-light:  #D4B87A;
  --pif-gold-dark:   #8A6F3E;
  --pif-navy:        #0A1628;
  --pif-navy-mid:    #142240;
  --pif-navy-soft:   #1E3258;
  --pif-white:       #FFFFFF;
  --pif-off-white:   #F7F5F0;
  --pif-cream:       #EDE8DE;
  --pif-grey-100:    #F4F4F2;
  --pif-grey-200:    #E0DDD8;
  --pif-grey-400:    #9B9690;
  --pif-grey-600:    #5A5650;
  --pif-grey-800:    #2E2B27;

  /* ── Type ─────────────────────────────────────────────── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* ── Spacing (8pt grid) ───────────────────────────────── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* ── Radius ───────────────────────────────────────────── */
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;

  /* ── Elevation ────────────────────────────────────────── */
  --e1: 0 1px 4px rgba(10,22,40,0.06);
  --e2: 0 2px 16px rgba(10,22,40,0.08);
  --e3: 0 8px 32px rgba(10,22,40,0.14);
  --e4: 0 20px 60px rgba(10,22,40,0.20);

  /* ── Motion ───────────────────────────────────────────── */
  --m-fast: 150ms ease-out;
  --m-base: 200ms ease-in-out;
  --m-mod:  300ms ease-out;

  --maxw: 1200px;
}

/* Arabic switches the display family to a Naskh serif for headings. */
[dir="rtl"] {
  --font-display: 'Noto Naskh Arabic', 'Playfair Display', Georgia, serif;
  --font-body:    'Noto Sans Arabic', 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--pif-off-white);
  color: var(--pif-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Layout primitives ──────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-24) 0; }
.section--tight { padding: var(--sp-16) 0; }
.section--alt { background: var(--pif-white); }
.section--navy { background: var(--pif-navy); color: var(--pif-white); }
.center { text-align: center; }
.measure { max-width: 680px; }
.measure-c { max-width: 680px; margin-inline: auto; }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-16); align-items: center; }

/* ── Typography helpers ─────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pif-gold);
  margin-bottom: var(--sp-3); display: block;
}
.display { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 600; color: var(--pif-navy); line-height: 1.2; }
h1, .h1 { font-size: 40px; }
h2, .h2 { font-size: 32px; line-height: 1.25; }
h3, .h3 { font-size: 24px; line-height: 1.3; }
.h4 { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.4; }
.lead { font-size: 18px; color: var(--pif-grey-600); line-height: 1.7; }
.muted { color: var(--pif-grey-600); }
.section-head { margin-bottom: var(--sp-12); }
.section-head .lead { margin-top: var(--sp-4); }

/* ── Announcement bar ───────────────────────────────────── */
.announce {
  background: var(--pif-gold); color: var(--pif-navy);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-6); text-align: center;
}
.announce a { font-weight: 700; text-decoration: underline; }

/* ── Top navigation ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--pif-navy);
  box-shadow: 0 1px 0 rgba(10,22,40,0.12);
}
.nav-inner { display: flex; align-items: center; gap: var(--sp-6); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.brand-mark { flex-shrink: 0; }
.brand-text { line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.05em; color: var(--pif-gold); text-transform: uppercase; }
.brand-sub { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

.nav-links { display: flex; align-items: stretch; height: 100%; margin-inline-start: var(--sp-6); }
.nav-link {
  display: flex; align-items: center; padding: 0 var(--sp-4);
  font-size: 13.5px; color: rgba(255,255,255,0.7); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color var(--m-fast), border-color var(--m-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--pif-white); }
.nav-link.active { color: var(--pif-gold); border-bottom-color: var(--pif-gold); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-inline-start: auto; }
.lang-switch { display: flex; align-items: center; gap: var(--sp-1); }
.lang-switch a {
  font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none;
  padding: 4px 6px; border-radius: var(--radius-sm); transition: color var(--m-fast);
}
.lang-switch a:hover { color: var(--pif-white); }
.lang-switch a.active { color: var(--pif-gold); font-weight: 700; }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 11px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; background: rgba(255,255,255,0.06);
  border: none; border-radius: var(--radius-sm); color: rgba(255,255,255,0.8);
  cursor: pointer; align-items: center; justify-content: center;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  padding: 13px 26px; line-height: 1; text-decoration: none;
  transition: background var(--m-base), color var(--m-base), border-color var(--m-base);
}
.btn-primary { background: var(--pif-gold); color: var(--pif-navy); }
.btn-primary:hover { background: var(--pif-gold-dark); color: var(--pif-white); }
.btn-outline { background: transparent; color: var(--pif-navy); border: 1.5px solid var(--pif-navy); padding: 11.5px 24.5px; }
.btn-outline:hover { background: var(--pif-navy); color: var(--pif-white); }
.btn-ghost-dark { background: transparent; color: var(--pif-gold); border: 1.5px solid rgba(184,151,90,0.5); padding: 11.5px 24.5px; }
.btn-ghost-dark:hover { background: rgba(184,151,90,0.1); border-color: var(--pif-gold); }
.btn-lg { font-size: 14px; padding: 16px 34px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Arrow CTA inline link */
.arrow-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--pif-navy); text-decoration: none;
  border-bottom: 1.5px solid var(--pif-gold); padding-bottom: 2px;
  transition: gap var(--m-base), color var(--m-base); width: fit-content;
}
.arrow-cta:hover { gap: var(--sp-4); color: var(--pif-gold-dark); }
.arrow-cta svg { width: 16px; height: 16px; }
.arrow-cta--light { color: rgba(255,255,255,0.85); border-color: rgba(184,151,90,0.5); }
.arrow-cta--light:hover { color: var(--pif-gold); }
[dir="rtl"] .arrow-cta svg { transform: scaleX(-1); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--pif-navy); color: var(--pif-white);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(184,151,90,0.12); pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 88% 30%, rgba(184,151,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: var(--sp-24) 0; max-width: 720px; }
.hero h1 { color: var(--pif-white); font-size: 52px; line-height: 1.12; margin-bottom: var(--sp-5); }
.hero .lead { color: rgba(255,255,255,0.6); font-size: 19px; margin-bottom: var(--sp-8); max-width: 560px; }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ── Page header (interior pages) ───────────────────────── */
.page-header {
  background: var(--pif-navy-mid); color: var(--pif-white);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--pif-gold) 0%, var(--pif-gold-light) 50%, transparent 100%);
}
.page-header-inner { padding: var(--sp-16) 0; position: relative; }
.page-header h1 { color: var(--pif-white); font-size: 38px; }
.page-header .lead { color: rgba(255,255,255,0.5); margin-top: var(--sp-3); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; font-size: 12px; margin-bottom: var(--sp-4); }
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--pif-gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); }
.breadcrumb .current { color: rgba(255,255,255,0.85); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--pif-white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--e2); transition: box-shadow var(--m-mod), transform var(--m-mod);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--e3); transform: translateY(-2px); }
.card-img { height: 160px; background: var(--pif-navy-mid); position: relative; overflow: hidden; }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184,151,90,0.22) 0%, transparent 60%); }
.card-img .label { position: absolute; bottom: var(--sp-3); inset-inline-start: var(--sp-4); z-index: 1; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pif-gold); font-weight: 600; }
.card-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pif-gold); font-weight: 600; margin-bottom: var(--sp-2); }
.card-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: var(--sp-3); }
.card-desc { font-size: 14px; color: var(--pif-grey-600); line-height: 1.65; margin-bottom: var(--sp-4); flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--pif-grey-100); }
.card-date { font-size: 11px; color: var(--pif-grey-400); }

/* Service / feature card with icon */
.feature {
  background: var(--pif-white); border-radius: var(--radius-lg); padding: var(--sp-8);
  box-shadow: var(--e2); transition: box-shadow var(--m-mod), transform var(--m-mod);
  border-top: 3px solid transparent; height: 100%;
}
.feature:hover { box-shadow: var(--e3); transform: translateY(-2px); border-top-color: var(--pif-gold); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(184,151,90,0.1); color: var(--pif-gold-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: var(--sp-3); }
.feature p { font-size: 14px; color: var(--pif-grey-600); line-height: 1.65; margin-bottom: var(--sp-4); }
.feature ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.feature li { font-size: 13px; color: var(--pif-grey-600); display: flex; align-items: flex-start; gap: var(--sp-2); }
.feature li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--pif-gold); }

/* Value card (about) */
.value { background: var(--pif-off-white); border-radius: var(--radius-md); padding: var(--sp-6); }
.section--alt .value { background: var(--pif-off-white); }
.value .num { font-size: 11px; font-weight: 700; color: var(--pif-gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.value h3 { font-size: 18px; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-2); }
.value p { font-size: 14px; color: var(--pif-grey-600); line-height: 1.6; }

/* ── Stats ──────────────────────────────────────────────── */
.stat-card { background: var(--pif-navy-mid); border-radius: var(--radius-lg); padding: var(--sp-10) var(--sp-6); text-align: center; }
.section--navy .stat-card { background: var(--pif-navy-soft); }
.stat-number { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--pif-gold); line-height: 1; margin-bottom: var(--sp-2); }
.stat-number .unit { font-size: 26px; color: var(--pif-gold-light); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Badges ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-sm); }
.badge-gold { background: rgba(184,151,90,0.12); color: var(--pif-gold-dark); }
.badge-navy { background: rgba(10,22,40,0.06); color: var(--pif-navy); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ── List w/ check ──────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.checklist li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 15px; color: var(--pif-grey-600); }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--pif-gold); margin-top: 2px; }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band { background: var(--pif-navy); color: var(--pif-white); border-radius: var(--radius-lg); padding: var(--sp-16) var(--sp-12); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(184,151,90,0.14) 0%, transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--pif-white); margin-bottom: var(--sp-4); }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: var(--sp-8); }

/* ── Forms ──────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.input-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.input-group.full { grid-column: 1 / -1; }
.input-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pif-grey-600); }
.input-field {
  font-family: var(--font-body); font-size: 15px; border: 1.5px solid var(--pif-grey-200);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--pif-navy);
  background: var(--pif-white); outline: none; transition: border-color var(--m-fast); width: 100%;
}
.input-field:focus { border-color: var(--pif-gold); }
.input-field::placeholder { color: var(--pif-grey-400); }
textarea.input-field { min-height: 130px; resize: vertical; }
select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9690' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 36px;
}
[dir="rtl"] select.input-field { background-position: left 14px center; }
.form-note { font-size: 13px; color: var(--pif-grey-400); margin-top: var(--sp-3); }
.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md); margin-bottom: var(--sp-6); font-size: 14px; }
.alert-ok { background: rgba(184,151,90,0.12); color: var(--pif-gold-dark); border: 1px solid rgba(184,151,90,0.3); }
.alert-err { background: #fdecec; color: #a3392f; border: 1px solid #f0c5c0; }

/* ── Info panel (contact details) ───────────────────────── */
.info-panel { background: var(--pif-navy); color: var(--pif-white); border-radius: var(--radius-lg); padding: var(--sp-10); height: 100%; }
.info-panel h3 { color: var(--pif-white); margin-bottom: var(--sp-6); }
.info-item { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.info-item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--pif-gold); margin-top: 2px; }
.info-item .k { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.info-item .v { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* ── Divider ────────────────────────────────────────────── */
.divider-gold { height: 2px; border: none; background: linear-gradient(90deg, var(--pif-gold) 0%, transparent 100%); margin: var(--sp-8) 0; max-width: 80px; }
[dir="rtl"] .divider-gold { background: linear-gradient(270deg, var(--pif-gold) 0%, transparent 100%); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--pif-navy); color: var(--pif-white); padding: var(--sp-20) 0 var(--sp-8); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); margin-bottom: var(--sp-12); }
.footer-brand-name { font-size: 15px; font-weight: 700; color: var(--pif-gold); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: var(--sp-4); font-weight: 600; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: var(--sp-3); transition: color var(--m-fast); }
.footer-link:hover { color: var(--pif-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--sp-6); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-socials { display: flex; gap: var(--sp-3); }
.social-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); transition: color var(--m-fast), border-color var(--m-fast); }
.social-icon:hover { border-color: var(--pif-gold); color: var(--pif-gold); }

/* ── Misc ───────────────────────────────────────────────── */
.logo-row { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; }
.logo-chip { background: var(--pif-white); border: 1px solid var(--pif-grey-200); border-radius: var(--radius-md); padding: var(--sp-5) var(--sp-8); font-weight: 700; color: var(--pif-grey-400); font-size: 15px; letter-spacing: 0.04em; }
.prose p { margin-bottom: var(--sp-4); color: var(--pif-grey-600); font-size: 16px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 44px; }
  .split { gap: var(--sp-10); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; height: auto; background: var(--pif-navy-mid); padding: var(--sp-3) 0; margin: 0; box-shadow: var(--e3); }
  .nav-links.open { display: flex; }
  .nav-link { height: auto; padding: var(--sp-3) var(--sp-6); border-bottom: none; border-inline-start: 2px solid transparent; }
  .nav-link.active { border-inline-start-color: var(--pif-gold); border-bottom: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .split, .form-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-16) 0; }
  h1, .h1 { font-size: 32px; } h2, .h2 { font-size: 26px; }
  .hero h1 { font-size: 34px; } .hero .lead { font-size: 17px; }
  .hero-inner, .footer-top { gap: var(--sp-8); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: var(--sp-12) var(--sp-6); }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .stat-number { font-size: 40px; }
}
