/* =========================================================
   شركة علي بن جمعان الغباري للمحاماة والاستشارات القانونية
   Brand: ink navy + gold, ivory paper, Tajawal / Amiri
   ========================================================= */

:root {
  --ink: #0c1424;
  --ink-2: #14203a;
  --ink-3: #1d2c4a;
  --gold: #c2a15c;
  --gold-2: #a8863f;
  --gold-soft: rgba(194, 161, 92, 0.14);
  --ivory: #f7f5f1;
  --paper: #ffffff;
  --line: #e6e1d8;
  --text: #22303f;
  --muted: #6b7684;
  --muted-light: rgba(255, 255, 255, 0.72);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -28px rgba(12, 20, 36, 0.45);
  --shadow-lg: 0 30px 60px -35px rgba(12, 20, 36, 0.55);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'Amiri', 'Tajawal', serif;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Hidden until focused — clipped rather than pushed off-canvas, because an
   off-canvas offset makes the RTL page scroll sideways. */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 12px;
  inset-inline-start: 16px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 18px;
  background: var(--gold);
  color: #fff;
  z-index: 200;
  border-radius: var(--radius-sm);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 40px, 880px);
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  height: 46px;
  width: auto;
  transition: height 0.35s ease;
}
.brand-mark-dark {
  display: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.brand-name {
  font-family: 'Amiri', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  transition: color 0.35s ease;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted-light);
  transition: color 0.35s ease;
}

.nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav a:hover {
  color: #fff;
}
.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px -22px rgba(12, 20, 36, 0.5);
  padding: 10px 0;
  backdrop-filter: blur(8px);
}
.site-header.scrolled .brand-mark {
  height: 40px;
}
.site-header.scrolled .brand-mark-light {
  display: none;
}
.site-header.scrolled .brand-mark-dark {
  display: block;
}
.site-header.scrolled .brand-name {
  color: var(--ink);
}
.site-header.scrolled .brand-sub {
  color: var(--muted);
}
.site-header.scrolled .nav a {
  color: var(--text);
}
.site-header.scrolled .nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s ease;
}
.site-header.scrolled .nav-toggle {
  border-color: var(--line);
}
.site-header.scrolled .nav-toggle span {
  background: var(--ink);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(168, 134, 63, 0.9);
}
.btn-gold:hover {
  box-shadow: 0 18px 34px -16px rgba(168, 134, 63, 0.95);
}
.btn-outline {
  border-color: var(--gold);
  color: var(--gold-2);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold-soft);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 75% 10%, rgba(194, 161, 92, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 85%, rgba(29, 44, 74, 0.9), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0f1a2e 45%, #0b1220 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  height: 150px;
  width: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}
.hero-title {
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.35;
  margin-bottom: 10px;
}
.hero-title span {
  display: block;
  color: var(--gold);
  font-size: 0.72em;
  margin-top: 6px;
}
.hero-tagline {
  color: #fff;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 500;
  margin: 18px 0 10px;
  position: relative;
  padding-top: 20px;
}
.hero-tagline::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-text {
  color: var(--muted-light);
  max-width: 760px;
  font-size: 17px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------------- Sections ---------------- */
.section {
  padding: 96px 0;
}
.section-ivory {
  background: var(--ivory);
}
.section-dark {
  background: linear-gradient(160deg, #0b1220 0%, #16243f 60%, #0b1220 100%);
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
}
.eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  background: var(--gold-soft);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(25px, 3.4vw, 36px);
}
.rule {
  display: block;
  width: 84px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 3px;
}
.rule-start {
  margin-inline: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-lead {
  margin-top: 18px;
  color: var(--muted);
}
.section-head-light h2 {
  color: #fff;
}
.section-head-light .section-lead {
  color: var(--muted-light);
}
.section-head-light .eyebrow {
  background: rgba(194, 161, 92, 0.18);
  color: var(--gold);
}

/* ---------------- Cards & grids ---------------- */
.grid {
  display: grid;
  gap: 22px;
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}
.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(194, 161, 92, 0.5);
}
.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}
.card-accent {
  border-top: 3px solid var(--gold);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold-2);
  margin-bottom: 16px;
}
.icon svg {
  width: 26px;
  height: 26px;
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
}
.about-text strong {
  color: var(--ink);
}
.values {
  margin-top: 26px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.chips li {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.chips-lg {
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}
.chips-lg li {
  padding: 11px 22px;
  font-size: 15.5px;
  background: var(--paper);
}
.about-cards {
  display: grid;
  gap: 20px;
}

/* ---------------- Consultations ---------------- */
.consult {
  text-align: center;
}
.consult .icon {
  margin-inline: auto;
}
.journey {
  margin-top: 46px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
}
.journey-title {
  font-size: 22px;
  margin-bottom: 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  text-align: center;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15.5px;
  position: relative;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: 'Amiri', serif;
  font-size: 20px;
  font-weight: 700;
}
.journey-cta {
  margin-top: 28px;
}

/* ---------------- Split sections ---------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-top: 6px;
}
.split-text p {
  color: var(--muted);
  margin-top: 16px;
}
.split-list {
  display: grid;
  gap: 14px;
}
.split-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.split-list strong {
  color: var(--ink);
  font-size: 17px;
}
.split-list span {
  color: var(--muted);
  font-size: 15px;
}

.note {
  margin: 34px auto 0;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.note p {
  margin: 0;
  color: var(--muted);
}
.note strong {
  color: var(--ink);
}
.note .icon {
  margin: 0;
  flex-shrink: 0;
}

.shield-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.8;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0f1a2e, #16243f);
  color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.shield-card svg {
  width: 46%;
  height: auto;
  opacity: 0.9;
}

/* ---------------- Portal ---------------- */
.portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.portal-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.portal-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(194, 161, 92, 0.6);
  transform: translateY(-4px);
}
.portal-item h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 8px;
}
.portal-item p {
  color: var(--muted-light);
  font-size: 15px;
  margin: 0;
}

/* ---------------- Why ---------------- */
.why-grid {
  gap: 16px;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-weight: 500;
  color: var(--ink);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------------- FAQ ---------------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 4px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq details[open] {
  border-color: rgba(194, 161, 92, 0.55);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--gold-2);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  content: '–';
}
.faq p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15.5px;
}

/* ---------------- Contact ---------------- */
.contact-card {
  text-align: center;
}
.link-gold {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-2);
  font-weight: 700;
  border-bottom: 1px solid rgba(194, 161, 92, 0.45);
  padding-bottom: 2px;
}
.link-gold:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.contact-list .label {
  font-size: 13.5px;
  color: var(--muted);
}
.contact-list a {
  color: var(--ink);
  font-weight: 700;
  direction: ltr;
}
.contact-list a:hover {
  color: var(--gold-2);
}
.pending {
  color: var(--gold-2);
  font-weight: 500;
  font-size: 15px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 56px 0 26px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  height: 62px;
  width: auto;
}
.footer-brand p {
  margin: 0;
  color: #fff;
  font-family: 'Amiri', serif;
  font-size: 18px;
  white-space: nowrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13.5px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom .dev {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- To top ---------------- */
.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 90;
}
.to-top svg {
  width: 22px;
  height: 22px;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- Privacy page ---------------- */
.page-head {
  background: linear-gradient(160deg, #0b1220 0%, #16243f 100%);
  color: #fff;
  padding: 150px 0 70px;
  text-align: center;
}
.page-head h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
}
.page-head p {
  color: var(--muted-light);
  margin-top: 12px;
}
.prose h2 {
  font-size: 24px;
  margin: 34px 0 10px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin-bottom: 14px;
}
.prose li {
  margin-bottom: 6px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .about-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .shield-card {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 96px 28px 34px;
    background: rgba(9, 15, 28, 0.98);
    flex-direction: column;
    gap: 6px;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    font-size: 18px;
  }
  .nav a {
    color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-header.scrolled .nav a {
    color: #fff;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 130px 0 76px;
  }
  .hero-logo {
    height: 110px;
  }
  .section {
    padding: 68px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  /* The firm's name is wider than a phone screen, so let it wrap there. */
  .footer-brand p {
    white-space: normal;
    font-size: 16px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .brand-text {
    display: none;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .contact-list {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- Client portal (sign-in) ---------------- */
.auth-body {
  background: var(--ink);
  min-height: 100vh;
}
.auth-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 70% 8%, rgba(194, 161, 92, 0.22), transparent 60%),
    radial-gradient(800px 420px at 12% 92%, rgba(29, 44, 74, 0.9), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0f1a2e 45%, #0b1220 100%);
}
.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 34px 34px;
}
.auth-card {
  position: relative;
  width: min(100%, 430px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 34px 30px 26px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.auth-brand img {
  height: 92px;
  width: auto;
  margin: 0 auto 18px;
}
.auth-title {
  color: #fff;
  font-size: 26px;
  margin-bottom: 6px;
}
.auth-sub {
  color: var(--muted-light);
  font-size: 15px;
  margin-bottom: 24px;
}
.auth-form.is-hidden {
  display: none;
}
.field {
  display: block;
  text-align: start;
  margin-bottom: 4px;
}
.field-label {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: 8px;
}
.field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 4px 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field-control:focus-within {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.field-prefix {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  direction: ltr;
}
.field-control input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 18px;
  padding: 12px 0;
  direction: ltr;
  text-align: start;
  letter-spacing: 0.06em;
}
.field-control input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
}
.code-input {
  text-align: center !important;
  letter-spacing: 0.5em !important;
  font-size: 22px !important;
}
.field-control input.invalid {
  color: #ffb4b4;
}
.field-error {
  color: #ff9d9d;
  font-size: 13.5px;
  min-height: 20px;
  margin: 6px 2px 0;
  text-align: start;
}
.auth-submit {
  width: 100%;
  margin-top: 10px;
}
.auth-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-sent {
  color: var(--muted-light);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.ltr {
  direction: ltr;
  display: inline-block;
  color: #fff;
  font-weight: 700;
}
.link-btn {
  background: none;
  border: 0;
  color: var(--gold);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}
.link-btn[disabled] {
  color: rgba(255, 255, 255, 0.35);
  cursor: default;
}
.timer {
  direction: ltr;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}
.auth-note {
  display: none;
  margin-top: 20px;
  background: rgba(194, 161, 92, 0.12);
  border: 1px solid rgba(194, 161, 92, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted-light);
  font-size: 14px;
  text-align: start;
  line-height: 1.8;
}
.auth-note.show {
  display: block;
}
.auth-note strong {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}
.auth-note a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.auth-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-foot a:hover {
  color: var(--gold);
}
.portal-cta {
  margin-top: 34px;
  text-align: center;
}
.portal-cta-note {
  color: var(--muted-light);
  font-size: 14px;
  margin: 12px 0 0;
}

/* ---------------- Service pages (2026-10-23) ---------------- */
/* صفحات شرح الخدمات: ٢٧ قسماً مولّدة من كتالوج النظام نفسه */

.svc-hero {
  position: relative;
  padding: 150px 0 60px;
  color: #fff;
  overflow: hidden;
}
.svc-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 72% 6%, rgba(194, 161, 92, 0.22), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0f1a2e 48%, #0b1220 100%);
}
.svc-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 34px 34px;
}
.svc-hero-inner {
  position: relative;
}
.svc-hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.4;
  margin: 10px 0 12px;
}
.svc-hero p {
  color: var(--muted-light);
  max-width: 70ch;
  line-height: 1.95;
}
.svc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* مسار التصفّح */
.crumbs {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}
.crumbs a {
  color: var(--gold);
}
.crumbs a:hover {
  color: #fff;
}
.crumbs span[aria-hidden] {
  margin: 0 6px;
}

/* قائمة الخدمات داخل القسم */
.svc-scope {
  align-items: start;
}
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-list li {
  position: relative;
  padding: 11px 22px 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
}
.svc-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.svc-list li:last-child {
  border-bottom: 0;
}
.svc-count {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* بطاقة قسم في صفحة الفهرس */
.svc-card h3 {
  font-family: 'Amiri', serif;
  font-size: 21px;
  margin-bottom: 8px;
}
.svc-card h3 a {
  color: var(--ink);
}
.svc-card h3 a:hover {
  color: var(--gold-2);
}
.svc-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

/* بطاقات الخطوات */
.step-card {
  position: relative;
  padding-top: 26px;
}
.step-card .step-no {
  position: absolute;
  top: -16px;
  inset-inline-start: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 22px -14px rgba(168, 134, 63, 0.95);
}
.step-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.step-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* نداء الإجراء في آخر الصفحة */
.svc-cta {
  text-align: center;
}
.svc-cta h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 3vw, 32px);
  color: #fff;
  margin-bottom: 10px;
}
.svc-cta p {
  color: var(--muted-light);
  margin-bottom: 22px;
}
.svc-cta .btn-row {
  justify-content: center;
}

/* شبكات وأقسام إضافية */
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.section-alt {
  background: var(--ivory);
}

@media (max-width: 1000px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .svc-hero {
    padding: 128px 0 48px;
  }
  .cols-2,
  .cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-hero-cta .btn {
    width: 100%;
  }
}

/* ---------------- بطاقة الخدمة رابطاً + مدخل الخدمات ---------------- */
a.card.service {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.card.service h3 {
  transition: color 0.2s ease;
}
a.card.service:hover h3,
a.card.service:focus-visible h3 {
  color: var(--gold-2);
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-2);
}
.svc-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.24s ease;
}
a.card.service:hover .svc-more svg {
  transform: translateX(-4px);
}
a.card.service:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.svc-all {
  margin-top: 34px;
  text-align: center;
}
.svc-all p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------- Contact details (2026-10-23) ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.panel-title {
  font-size: 20px;
  margin: 0 0 16px;
}
.panel-note {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.panel-note.tiny {
  margin: 14px 0 0;
  font-size: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  color: var(--ink);
  transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}
.contact-item:hover {
  border-color: rgba(194, 161, 92, 0.55);
  background: var(--ivory);
  transform: translateY(-2px);
}
.ci-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-icon svg {
  width: 21px;
  height: 21px;
}
.ci-label {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.ci-value {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.ci-value.ltr {
  direction: ltr;
  text-align: right;
}
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.branch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
}
.branch svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold-2);
}
.branch.hq {
  grid-column: 1 / -1;
  background: var(--gold-soft);
  border-color: rgba(194, 161, 92, 0.45);
  color: var(--ink);
}
.branch .tag {
  margin-inline-start: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-2);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
