@import url("/css/purui-reference.css?v=20260908-grid1");
@import url("/css/lang-dropdown.css");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Noto+Sans+Arabic:wght@400;600;700&display=swap");

:root {
  --ar-teal: #0a5c5c;
  --ar-teal-dark: #064040;
  --ar-teal-light: #0e7a7a;
  --ar-gold: #c9a227;
  --ar-gold-light: #e8c547;
  --ar-sand: #faf7f2;
  --ar-cream: #f3efe6;
  --ar-text: #1c2b2b;
  --ar-muted: #5c6b6b;
  --ar-line: #ddd5c8;
  --ar-white: #ffffff;
  --ar-max: 1200px;
  --ar-font: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ar-display: "Cairo", "Noto Sans Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body {
  margin: 0;
  font-family: var(--ar-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ar-text);
  background: var(--ar-white);
  text-align: right;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

.ar-wrap {
  width: min(var(--ar-max), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ── */
.ar-header {
  background: var(--ar-white);
  border-bottom: 3px solid var(--ar-teal);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(10, 92, 92, .08);
}
.ar-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.ar-logo img {
  height: 42px;
  max-width: 280px;
  object-fit: contain;
}
.ar-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  flex-wrap: nowrap;
}
.ar-nav a {
  font-family: var(--ar-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ar-text);
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
}
.ar-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 3px;
  background: var(--ar-gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.ar-nav a:hover,
.ar-nav a.active { color: var(--ar-teal); }
.ar-nav a.active::after,
.ar-nav a:hover::after { transform: scaleX(1); }
.ar-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ar-header .lang-dropdown__item.is-current {
  background: rgba(10, 92, 92, .1);
}
.ar-header .lang-dropdown__check {
  color: var(--ar-teal);
}
.ar-cta-header {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--ar-gold) 0%, #a88620 100%);
  color: #fff;
  font-family: var(--ar-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  transition: .2s;
}
.ar-cta-header:hover {
  box-shadow: 0 8px 24px rgba(201, 162, 39, .35);
  transform: translateY(-1px);
}
.ar-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.ar-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ar-teal);
  margin: 5px 0;
}

/* ── Buttons ── */
.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--ar-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .25s;
}
.ar-btn--teal {
  background: var(--ar-teal);
  color: #fff;
  border-color: var(--ar-teal);
}
.ar-btn--teal:hover {
  background: var(--ar-teal-dark);
  border-color: var(--ar-teal-dark);
}
.ar-btn--gold {
  background: linear-gradient(135deg, var(--ar-gold) 0%, #a88620 100%);
  color: #fff;
  border-color: var(--ar-gold);
}
.ar-btn--gold:hover { filter: brightness(1.05); }
.ar-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.ar-btn--outline:hover {
  background: #fff;
  color: var(--ar-teal);
}
.ar-btn--link {
  color: var(--ar-teal);
  font-weight: 700;
  padding: 0;
  border: none;
  background: none;
}
.ar-btn--link:hover { color: var(--ar-gold); }
.ar-btn--sm { padding: 10px 18px; font-size: 13px; }

/* ── Hero ── */
.ar-hero {
  position: relative;
  background: var(--ar-sand);
  overflow: hidden;
}
.ar-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image:
    repeating-linear-gradient(45deg, var(--ar-teal) 0, var(--ar-teal) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, var(--ar-gold) 0, var(--ar-gold) 1px, transparent 0, transparent 50%);
  background-size: 24px 24px;
}
.ar-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}
.ar-hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  background: rgba(10, 92, 92, .1);
  border-inline-start: 4px solid var(--ar-gold);
  font-size: 13px;
  font-weight: 700;
  color: var(--ar-teal);
}
.ar-hero h1 {
  margin: 0 0 20px;
  font-family: var(--ar-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ar-teal-dark);
}
.ar-hero-lead {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--ar-muted);
  line-height: 1.85;
  max-width: 520px;
}
.ar-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ar-hero-panel {
  background: linear-gradient(160deg, var(--ar-teal) 0%, var(--ar-teal-dark) 100%);
  border-radius: 12px;
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ar-hero-panel::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 160px;
  height: 160px;
  border: 3px solid rgba(201, 162, 39, .3);
  border-radius: 50%;
}
.ar-hero-panel img {
  max-height: 280px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
  position: relative;
  z-index: 1;
}
.ar-hero-panel-caption {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  opacity: .85;
  position: relative;
  z-index: 1;
}

/* ── Stats ── */
.ar-stats {
  background: var(--ar-teal);
  padding: 0;
}
.ar-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.ar-stat {
  padding: 28px 16px;
  text-align: center;
  border-inline-start: 1px solid rgba(255,255,255,.12);
}
.ar-stat:first-child { border-inline-start: 0; }
.ar-stat strong {
  display: block;
  font-family: var(--ar-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ar-gold-light);
}
.ar-stat span {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

/* ── Section ── */
.ar-section { padding: 72px 0; }
.ar-section--sand { background: var(--ar-sand); }
.ar-section-header {
  margin-bottom: 44px;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.ar-section-header--start {
  text-align: start;
  margin-inline: 0;
}
.ar-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ar-gold);
  text-transform: uppercase;
}
.ar-section-header h2 {
  margin: 0 0 12px;
  font-family: var(--ar-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--ar-teal-dark);
}
.ar-section-header p {
  margin: 0;
  color: var(--ar-muted);
  font-size: 16px;
  line-height: 1.75;
}
.ar-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ── Category cards (واضح التصنيف) ── */
.ar-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ar-cat-card {
  background: var(--ar-white);
  border: 1px solid var(--ar-line);
  border-radius: 10px;
  overflow: hidden;
  transition: .3s;
  text-align: center;
}
.ar-cat-card:hover {
  border-color: var(--ar-teal);
  box-shadow: 0 16px 40px rgba(10, 92, 92, .12);
  transform: translateY(-4px);
}
.ar-cat-card-top {
  height: 6px;
  background: linear-gradient(90deg, var(--ar-teal), var(--ar-gold));
}
.ar-cat-card-body {
  padding: 28px 20px;
}
.ar-cat-card img {
  height: 100px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.ar-cat-card h3 {
  margin: 0 0 8px;
  font-family: var(--ar-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ar-teal-dark);
}
.ar-cat-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ar-muted);
  line-height: 1.65;
}

/* ── Sector tiles ── */
.ar-sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ar-sector {
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  border: 1px solid var(--ar-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ar-white);
  transition: .25s;
}
.ar-sector:hover {
  box-shadow: 0 12px 32px rgba(10, 92, 92, .1);
  border-color: var(--ar-teal);
}
.ar-sector img {
  width: 200px;
  object-fit: cover;
  flex-shrink: 0;
}
.ar-sector-body {
  padding: 24px 28px;
  flex: 1;
}
.ar-sector-body h3 {
  margin: 0 0 8px;
  font-family: var(--ar-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ar-teal-dark);
}
.ar-sector-body p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ar-muted);
  line-height: 1.7;
}
.ar-sector-body span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ar-gold);
}

/* ── Features row ── */
.ar-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ar-feature {
  padding: 28px 22px;
  background: var(--ar-white);
  border-radius: 10px;
  border: 1px solid var(--ar-line);
  text-align: center;
}
.ar-feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ar-teal), var(--ar-teal-light));
  color: #fff;
  font-family: var(--ar-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ar-feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ar-teal-dark);
}
.ar-feature p {
  margin: 0;
  font-size: 13px;
  color: var(--ar-muted);
  line-height: 1.65;
}

/* ── Inner page ── */
.ar-page-hero {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--ar-teal-dark) 0%, var(--ar-teal) 100%);
  color: #fff;
  border-bottom: 4px solid var(--ar-gold);
}
.ar-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.ar-breadcrumb a { color: rgba(255,255,255,.85); }
.ar-page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--ar-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
}
.ar-page-hero p {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  line-height: 1.75;
}

/* ── Two col / spec ── */
.ar-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.ar-panel {
  padding: 32px;
  background: var(--ar-white);
  border: 1px solid var(--ar-line);
  border-radius: 10px;
  border-inline-start: 4px solid var(--ar-gold);
}
.ar-panel h3 {
  margin: 0 0 16px;
  font-family: var(--ar-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ar-teal-dark);
}
.ar-list li {
  padding: 10px 28px 10px 0;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--ar-line);
  line-height: 1.65;
}
.ar-list li::before {
  content: "◆";
  position: absolute;
  inset-inline-end: 0;
  top: 12px;
  font-size: 8px;
  color: var(--ar-gold);
}
.ar-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ar-line);
  font-size: 14px;
}
.ar-table th,
.ar-table td {
  padding: 14px 18px;
  border: 1px solid var(--ar-line);
  text-align: start;
}
.ar-table th {
  width: 36%;
  background: var(--ar-cream);
  font-weight: 700;
  color: var(--ar-teal-dark);
}

/* ── Contact ── */
.ar-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.ar-contact-aside {
  background: var(--ar-cream);
  border: 1px solid var(--ar-line);
  border-radius: 10px;
  padding: 32px;
}
.ar-contact-aside h2 {
  margin: 0 0 24px;
  font-family: var(--ar-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ar-teal-dark);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ar-gold);
}
.ar-info-row {
  margin-bottom: 22px;
}
.ar-info-row strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ar-gold);
  margin-bottom: 6px;
}
.ar-info-row span,
.ar-info-row a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ar-text);
  line-height: 1.6;
}
.ar-info-row a:hover { color: var(--ar-teal); }
.ar-form {
  padding: 36px;
  border: 1px solid var(--ar-line);
  border-radius: 10px;
  background: var(--ar-white);
}
.ar-form h2 {
  margin: 0 0 8px;
  font-family: var(--ar-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ar-teal-dark);
}
.ar-form-note {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ar-muted);
}
.ar-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ar-teal-dark);
}
.ar-form input,
.ar-form textarea,
.ar-form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--ar-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  text-align: right;
  direction: rtl;
}
.ar-form input:focus,
.ar-form textarea:focus,
.ar-form select:focus {
  outline: none;
  border-color: var(--ar-teal);
  box-shadow: 0 0 0 3px rgba(10, 92, 92, .12);
}
.ar-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ar-form-row > div { min-width: 0; }

/* ── CTA ── */
.ar-cta {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--ar-teal-dark), var(--ar-teal));
  text-align: center;
  color: #fff;
  border-block: 4px solid var(--ar-gold);
}
.ar-cta h2 {
  margin: 0 0 12px;
  font-family: var(--ar-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
}
.ar-cta p {
  margin: 0 0 28px;
  font-size: 16px;
  opacity: .88;
  max-width: 560px;
  margin-inline: auto;
}

/* ── Footer ── */
.ar-footer {
  background: var(--ar-teal-dark);
  color: rgba(255,255,255,.7);
  padding-top: 56px;
}
.ar-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ar-footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}
.ar-footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}
.ar-footer h4 {
  margin: 0 0 18px;
  font-family: var(--ar-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ar-gold-light);
}
.ar-footer li { margin-bottom: 8px; }
.ar-footer a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
}
.ar-footer a:hover { color: #fff; }
.ar-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ── Fade ── */
.ar-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.ar-fade.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ar-hero-inner,
  .ar-grid-2,
  .ar-contact-grid { grid-template-columns: 1fr; }
  .ar-categories,
  .ar-features { grid-template-columns: repeat(2, 1fr); }
  .ar-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .ar-footer-grid { grid-template-columns: 1fr 1fr; }
  .ar-sector { flex-direction: column; }
  .ar-sector img { width: 100%; height: 180px; }
}
@media (max-width: 768px) {
  .ar-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 76px;
    background: var(--ar-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    z-index: 190;
    gap: 0;
  }
  .ar-nav.open { display: flex; }
  .ar-nav a { padding: 16px 0; border-bottom: 1px solid var(--ar-line); }
  .ar-nav a::after { display: none; }
  .ar-menu-btn { display: block; }
  .ar-cta-header { display: none; }
  .ar-categories,
  .ar-features,
  .ar-sectors,
  .ar-stats-grid,
  .ar-footer-grid { grid-template-columns: 1fr; }
  .ar-stat { border-inline-start: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ar-form-row { grid-template-columns: 1fr; }
}
