/* SANAM AL-ADALA — static site styles */
:root {
  --navy: #0f2744;
  --navy-deep: #0a1c30;
  /* ذهبي برونزي أغمق — مظهر فاخر مع تدرج */
  --gold-rgb: 130, 92, 28;
  --gold-dark: #4a340c;
  --gold: #735018;
  --gold-mid: #85601f;
  --gold-light: #9e7528;
  --gold-bright: #b88934;
  --gold-highlight: #d4ba6c;
  --gold-muted: rgba(var(--gold-rgb), 0.4);
  --gold-gradient: linear-gradient(
    168deg,
    var(--gold-highlight) 0%,
    var(--gold-bright) 18%,
    var(--gold-mid) 45%,
    var(--gold) 72%,
    var(--gold-dark) 100%
  );
  --gold-gradient-hover: linear-gradient(
    168deg,
    #e4ca7a 0%,
    var(--gold-bright) 22%,
    var(--gold-mid) 48%,
    var(--gold) 78%,
    #3d2a08 100%
  );
  --gold-text-on-gradient: #0a0e12;
  --white: #ffffff;
  --bg: #f8f9fb;
  --bg-alt: #eef1f5;
  --text: #151d26;
  --text-muted: #5c6570;
  --shadow: 0 16px 48px rgba(15, 39, 68, 0.07);
  --shadow-hover: 0 24px 56px rgba(15, 39, 68, 0.11);
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Playfair Display", Georgia, serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

/* Anchor for «الرئيسية» — أعلى الصفحة (الهيدر اللاصق لا يكفي لوحده لـ #top) */
.scroll-target {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

body.lang-en .hero-title,
body.lang-en .hero-emblem-caption,
body.lang-en .section-title,
body.lang-en .brand-name-en,
body.lang-en .footer-name {
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}

body.lang-en .brand-name-ar {
  display: none;
}

body:not(.lang-en) .brand-name-en {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 28, 48, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name-ar,
.brand-name-en {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold-muted);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-list a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-link.nav-link--active {
  color: var(--gold-highlight);
}

.nav-link.nav-link--active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-lang {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--gold-muted);
  background: transparent;
  color: var(--gold-highlight);
  cursor: pointer;
}

.btn-lang:hover {
  background: rgba(var(--gold-rgb), 0.14);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), color 0.25s ease, border-color 0.25s ease,
    transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(168deg, #ffffff 0%, #f7f5f2 38%, #ebe8e3 100%);
  color: var(--navy);
  border: 1px solid rgba(15, 39, 68, 0.16);
  box-shadow:
    0 2px 10px rgba(5, 12, 22, 0.12),
    0 8px 24px rgba(15, 39, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(15, 39, 68, 0.06);
}

.btn-gold:hover {
  background: linear-gradient(168deg, #ffffff 0%, #faf9f7 45%, #f0ece6 100%);
  border-color: rgba(15, 39, 68, 0.22);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(5, 12, 22, 0.14),
    0 14px 36px rgba(15, 39, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(15, 39, 68, 0.05);
}

.btn-gold.btn-lg {
  background: linear-gradient(168deg, #fefefe 0%, #f5f3ef 35%, #e8e4de 100%);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 14px rgba(5, 12, 22, 0.12),
    0 12px 32px rgba(15, 39, 68, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(15, 39, 68, 0.07);
}

.btn-gold.btn-lg:hover {
  background: linear-gradient(168deg, #ffffff 0%, #faf8f5 40%, #f0ebe4 100%);
  box-shadow:
    0 8px 22px rgba(5, 12, 22, 0.14),
    0 18px 44px rgba(15, 39, 68, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(15, 39, 68, 0.06);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Motion — respect accessibility */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Hero — تدرج كحلي/ذهبي متناسق مع هوية الموقع البصرية */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(
      115deg,
      rgba(5, 12, 22, 0.55) 0%,
      rgba(12, 28, 48, 0.28) 42%,
      rgba(10, 24, 42, 0.22) 58%,
      rgba(6, 14, 26, 0.5) 100%
    ),
    radial-gradient(ellipse 95% 75% at 72% 38%, rgba(var(--gold-rgb), 0.16) 0%, transparent 54%),
    radial-gradient(ellipse 70% 55% at 12% 88%, rgba(var(--gold-rgb), 0.1) 0%, transparent 50%),
    url("../assets/hero.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.35) 0%, transparent 42%, rgba(5, 12, 22, 0.55) 100%),
    linear-gradient(
      85deg,
      rgba(var(--gold-rgb), 0.07) 0%,
      transparent 35%,
      transparent 65%,
      rgba(var(--gold-rgb), 0.05) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: clamp(1.25rem, 4vw, 2rem);
}

.hero-emblem-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero-emblem {
  width: min(112px, 28vw);
  height: min(112px, 28vw);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 5px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(var(--gold-rgb), 0.55);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 28px rgba(var(--gold-rgb), 0.18);
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-emblem {
    animation: hero-float 5.5s ease-in-out infinite;
  }
}

.hero-emblem-caption {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(92deg, var(--gold-bright) 0%, var(--gold-mid) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-kicker,
  .hero-emblem-caption {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--gold-bright);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  }
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-anim--1 {
    animation: fade-up 0.85s var(--ease-out) both;
  }

  .hero-anim--2 {
    animation: fade-up 0.85s 0.12s var(--ease-out) both;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-emblem {
    animation: none !important;
  }

  .hero-anim--1,
  .hero-anim--2 {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .btn-gold:hover,
  .btn-outline-light:hover,
  .btn-outline-navy:hover {
    transform: none;
  }

  .feature-card:hover,
  .service-card:hover {
    transform: none;
  }

  .stat:hover .stat-num {
    transform: none;
  }
}

/* Sections */
.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
}

.section-title-center {
  text-align: center;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: 560px;
  text-align: center;
  color: var(--text-muted);
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.feature-grid > li {
  flex: 1 1 calc(25% - 0.9375rem);
  min-width: 220px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.05);
  border-top: 3px solid var(--gold);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-icon {
  display: flex;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-copy {
  color: var(--text-muted);
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
  min-height: 280px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Services */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  display: flex;
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--navy);
}

.service-card p {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}

.service-more:hover {
  color: var(--gold-bright);
  text-decoration: none;
  transform: translateX(-3px);
}

body.lang-en .service-more:hover {
  transform: translateX(3px);
}

/* Stats */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding-block: 2.5rem;
  border-block: 3px solid var(--gold-muted);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 0.35rem;
  transition: transform 0.35s var(--ease-out);
}

.stat:hover .stat-num {
  transform: scale(1.06);
}

.stat span:last-child {
  font-size: 0.95rem;
  opacity: 0.92;
}

/* CTA */
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 242, 245, 0.98)),
    radial-gradient(circle at 90% 20%, rgba(var(--gold-rgb), 0.11), transparent 50%);
}

.cta-copy .section-title {
  margin-bottom: 0.35rem;
}

.cta-copy p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.contact-list a {
  font-weight: 600;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

.social-link:hover {
  color: var(--navy);
}

.contact-form-wrap {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.form-title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold-muted);
  border-color: var(--gold);
  background: var(--white);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding-block: 3rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  max-width: 26rem;
}

.footer-sitemap h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--gold-bright);
}

.footer-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-sitemap-list a {
  display: block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-sitemap-list a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.footer-made-by-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 1.35rem;
  text-align: center;
}

.footer-made-by {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
}

.footer-made-by__link {
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  margin-inline-start: 0.15rem;
}

.footer-made-by__link:hover {
  text-decoration: underline;
  color: var(--gold-light);
}

.footer-brand-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}

.footer-brand-link:hover {
  opacity: 1;
}

.footer-brand-link:hover .footer-name {
  color: var(--gold-bright);
}

.footer-brand-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 12px;
}

.footer-brand .footer-logo {
  margin-bottom: 1rem;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.footer-name {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--white);
  transition: color 0.25s ease;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer-contact h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--gold-bright);
}

.footer-contact p {
  margin: 0 0 0.5rem;
}

.footer-contact a {
  color: var(--white);
}

.footer-meta {
  position: relative;
  overflow: hidden;
  padding-block: 1.35rem 1.5rem;
}

.footer-meta::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--gold-rgb), 0.25) 18%,
    rgba(196, 154, 52, 0.92) 50%,
    rgba(var(--gold-rgb), 0.25) 82%,
    transparent
  );
  box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.38);
}

.footer-meta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 15% 50%, rgba(var(--gold-rgb), 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 70% 100% at 85% 30%, rgba(100, 140, 190, 0.08) 0%, transparent 42%),
    linear-gradient(165deg, #070f18 0%, #0c2138 38%, #081522 100%);
  pointer-events: none;
}

.footer-meta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.06) 2px,
    rgba(255, 255, 255, 0.06) 3px
  );
}

.footer-meta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  text-align: center;
}

.footer-meta-gem {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--gold-gradient);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.5);
  flex-shrink: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.footer-attribution {
  margin: 0;
  max-width: 36rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(196, 168, 108, 0.82);
  font-weight: 500;
}

body.lang-en .footer-attribution {
  letter-spacing: 0.02em;
}

@media (min-width: 720px) {
  .footer-meta-inner {
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .footer-meta-inner .footer-copy {
    flex: 1;
    text-align: start;
  }

  .footer-meta-inner .footer-attribution {
    flex: 1;
    text-align: end;
  }

  .footer-meta-gem {
    order: 0;
  }
}

/* —— صفحات داخلية —— */
.page-hero {
  position: relative;
  padding: clamp(3rem, 10vw, 5.25rem) 0;
  background: linear-gradient(148deg, var(--navy-deep) 0%, var(--navy) 52%, #142c46 100%);
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at 22% 38%,
    rgba(var(--gold-rgb), 0.14) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.page-hero__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 700;
}

.page-hero__lead {
  margin: 0;
  opacity: 0.88;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Generic dark-navy section (closing CTA blocks, company message, etc.) */
.section--navy {
  background: var(--navy-deep);
  color: var(--white);
}

/* Homepage — قسم رموز قانونية + 3D hover */
.section--navy.law-showcase {
  position: relative;
  overflow: hidden;
}

.law-showcase__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 85% at 50% 110%,
    rgba(var(--gold-rgb), 0.18) 0%,
    transparent 58%
  );
  pointer-events: none;
}

.law-showcase .container {
  position: relative;
  z-index: 1;
}

.section-title--light {
  color: var(--white);
}

.section-lead--on-dark {
  color: rgba(255, 255, 255, 0.82);
}

.law-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.law-tile {
  perspective: 880px;
}

.law-tile__face {
  min-height: 158px;
  padding: 1.35rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(12, 26, 44, 0.92) 48%,
    rgba(6, 14, 24, 0.96) 100%
  );
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.4s ease;
}

.law-tile__svg {
  width: 52px;
  height: 52px;
  color: var(--gold-bright);
  filter: drop-shadow(0 6px 14px rgba(var(--gold-rgb), 0.35));
}

.law-tile__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
  .law-tile--delay-1 .law-tile__face {
    animation: law-face-float 5.5s ease-in-out 0.35s infinite;
  }

  .law-tile--delay-2 .law-tile__face {
    animation: law-face-float 5.8s ease-in-out 0.7s infinite;
  }

  .law-tile--delay-3 .law-tile__face {
    animation: law-face-float 6s ease-in-out 1s infinite;
  }

  .law-tile:not(.law-tile--delay-1):not(.law-tile--delay-2):not(.law-tile--delay-3) .law-tile__face {
    animation: law-face-float 5.2s ease-in-out infinite;
  }

  .law-tile:hover .law-tile__face {
    animation: none;
    transform: rotateY(-11deg) rotateX(7deg) translateZ(18px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45), 0 0 40px rgba(var(--gold-rgb), 0.15);
  }
}

@keyframes law-face-float {
  0%,
  100% {
    transform: translateZ(0) rotateX(2deg);
  }
  50% {
    transform: translateZ(12px) rotateX(-2deg);
  }
}

/* بطاقات بميل ثلاثي الأبعاد عند المرور */
@media (prefers-reduced-motion: no-preference) {
  .tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-out), box-shadow 0.35s ease;
  }

  .tilt-3d:hover {
    transform: perspective(920px) rotateX(5deg) rotateY(-7deg) translateZ(6px);
    box-shadow: var(--shadow-hover);
  }
}

.values-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.07);
}

.value-card__icon {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 4px 12px rgba(var(--gold-rgb), 0.28));
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--navy);
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.process-track {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.process-step {
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold-mid);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--gold-gradient);
  color: var(--gold-text-on-gradient);
}

.process-step__text {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
}

.svc-preview-grid {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.svc-preview-grid > li {
  flex: 1 1 calc(33.333% - 0.834rem);
  min-width: 240px;
}

.svc-preview-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.06);
}

.svc-preview-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--navy);
}

.svc-preview-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.section-cta-row {
  text-align: center;
  margin-top: 0.5rem;
}

.contact-preview-inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.contact-list--compact {
  margin: 1.25rem 0;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: start;
}

.about-copy--lead {
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--navy);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--gold-mid);
}

.pillar-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
  color: var(--navy);
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .law-tile__face {
    animation: none !important;
  }

  .law-tile:hover .law-tile__face {
    transform: none;
  }

  .tilt-3d:hover {
    transform: none;
  }
}

/* Mobile */
@media (max-width: 960px) {
  .feature-grid > li {
    flex-basis: calc(50% - 0.625rem);
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .law-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-preview-grid > li {
    flex-basis: calc(50% - 0.625rem);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--navy-deep);
    border-top: 1px solid var(--gold-muted);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .feature-grid > li {
    flex-basis: 100%;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .law-showcase__grid {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .svc-preview-grid > li {
    flex-basis: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* —— دليل الأعمال والقطاعات المتخصصة —— */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 39, 68, 0.07);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1.35rem;
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
}

.guide-toc__title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.guide-toc__group {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.guide-toc__group:not(:first-of-type) {
  margin-top: 1.1rem;
}

.guide-toc__list {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}

.guide-toc__link {
  display: block;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.15rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.guide-toc__link:hover,
.guide-toc__link:focus-visible {
  background: var(--bg-alt);
  color: var(--navy);
  text-decoration: none;
}

.guide-content {
  min-width: 0;
}

.guide-part-heading {
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-muted);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-dark);
}

.guide-content > .guide-part-heading:first-child {
  margin-top: 0;
}

.guide-section {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
  padding-block: 2.25rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  color: var(--navy);
}

.guide-section__lead {
  margin: 0 0 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1rem;
}

.guide-section h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.guide-section h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--navy);
}

.guide-section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.guide-section ul,
.guide-section ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.guide-section li {
  margin-bottom: 0.4rem;
}

/* Highlight / notice boxes */
.info-box {
  margin: 1.5rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border-inline-start: 4px solid var(--gold-mid);
}

.info-box__title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--navy);
}

.info-box__body p:last-child,
.info-box__body ol:last-child,
.info-box__body ul:last-child {
  margin-bottom: 0;
}

.info-box--notice {
  background: rgba(var(--gold-rgb), 0.08);
  border-inline-start-color: var(--gold-bright);
  font-size: 0.92rem;
}

.info-box--notice .info-box__title {
  color: var(--gold-dark);
}

/* Six-stage timeline */
.timeline-6 {
  list-style: none;
  counter-reset: timeline;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.timeline-6 li {
  counter-increment: timeline;
  position: relative;
  margin: 0;
  padding: 1.1rem 1.1rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold-mid);
}

.timeline-6 li::before {
  content: counter(timeline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--gold-gradient);
  color: var(--gold-text-on-gradient);
}

.timeline-6 li strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Comparison table */
.compare-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: start;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.compare-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.compare-table tbody th {
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* Document download note (no file yet) */
.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0.5rem 0.35rem 0;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px dashed rgba(15, 39, 68, 0.22);
}

.doc-download::before {
  content: "\1F4C4";
}

/* FAQ */
.faq-list {
  margin: 0;
  max-width: 780px;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(15, 39, 68, 0.09);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item__q {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}

.faq-item__a {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item__a a {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Company message + checklist */
.company-message {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.company-message p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.checklist-box {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
}

.checklist-box__title {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.checklist-box__list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist-box__list li {
  position: relative;
  padding-inline-start: 1.85rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.checklist-box__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  border: 2px solid var(--gold-bright);
}

.checklist-box__note {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Legal footer link row */
.footer-legal-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  padding-bottom: 1.1rem;
  text-align: center;
}

.footer-legal-row a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 600;
}

.footer-legal-row a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    max-height: none;
  }

  .timeline-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .timeline-6 {
    grid-template-columns: 1fr;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}
