:root {
  --ink: #12202a;
  --ink-soft: #53636d;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --line: #d8dedc;
  --brand: #cf3e7e;
  --brand-deep: #8f2058;
  --brand-pale: #fbeaf2;
  --sand: #f4e5eb;
  --shadow: 0 18px 45px rgba(18, 32, 42, 0.09);
  --radius: 18px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
}

a { color: inherit; }

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

.site-header {
  background: rgba(248, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.header-content,
.footer-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(18, 32, 42, 0.1);
  border-radius: 12px 4px 12px 4px;
}

.header-whatsapp {
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  overflow: hidden;
  position: relative;
  padding: clamp(72px, 11vw, 138px) 0;
  background: linear-gradient(116deg, var(--brand-pale) 0%, var(--paper) 57%, var(--sand) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: min(50vw, 670px);
  aspect-ratio: 1;
  left: -15%;
  bottom: -52%;
  border: 1px solid rgba(207, 62, 126, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(207, 62, 126, 0.045), 0 0 0 90px rgba(207, 62, 126, 0.025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(38px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.25; }

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 span { color: var(--brand); }

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.lead {
  max-width: 625px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible,
a:focus-visible {
  outline: 3px solid #c78d34;
  outline-offset: 3px;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 11px 23px rgba(143, 32, 88, 0.2);
}

.button-primary:hover { background: var(--brand-deep); }

.button-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.contact-panel {
  padding: clamp(25px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid rgba(18, 32, 42, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-label {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-panel dl { margin: 0; }
.contact-panel dl > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-panel dl > div:last-child { padding-bottom: 0; }
.contact-panel dt {
  margin-bottom: 3px;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
}
.contact-panel dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.65;
}

.section { padding: clamp(70px, 9vw, 110px) 0; }

.section-heading {
  max-width: 650px;
  margin-bottom: clamp(32px, 5vw, 55px);
}

.section-heading > p:last-child { color: var(--ink-soft); }

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.service-item p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section-muted { background: var(--brand-deep); color: #fff; }
.section-muted .eyebrow { color: #b8d6cc; }
.section-muted h2 { margin-bottom: 0; }

.process-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 9vw, 120px);
}

.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 58px;
  padding-right: 76px;
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  right: 0;
  top: 2px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  font-size: 0.87rem;
  font-weight: 700;
}

.steps strong,
.steps span { display: block; }
.steps strong { margin-bottom: 1px; }
.steps span { color: #cbe2da; font-size: 0.95rem; }

.contact-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(30px, 5vw, 62px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h2 { margin-bottom: 12px; }
.contact-description { max-width: 580px; margin-bottom: 0; color: var(--ink-soft); }

address {
  min-width: 220px;
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: normal;
}

address a {
  margin-bottom: 5px;
  color: var(--brand-deep);
  font-size: 1.22rem;
  font-weight: 700;
  text-decoration: none;
  direction: rtl;
  text-align: right;
}

.final-cta {
  padding: clamp(50px, 7vw, 82px) 0;
  background: var(--sand);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.final-cta h2 { margin-bottom: 0; }
.final-cta .eyebrow { margin-bottom: 6px; }
.button-light { background: var(--ink); color: #fff; white-space: nowrap; }
.button-light:hover { background: var(--brand-deep); }

.site-footer {
  background: var(--ink);
  color: #dbe2e5;
}

.footer-content {
  min-height: 90px;
  font-size: 0.88rem;
}

.footer-content p { margin: 0; }
.footer-content a { color: #fff; }

.floating-whatsapp {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 0 12px rgba(6, 40, 30, 0.55), 0 8px 22px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
  animation: whatsapp-float 3s ease-in-out infinite;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

.floating-whatsapp:hover {
  background: #1ebe5b;
  transform: scale(1.06);
}

.floating-whatsapp:active { transform: scale(0.97); }
.floating-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }
.floating-whatsapp span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.75); opacity: 0; }
}

@keyframes whatsapp-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .header-content { min-height: 68px; }
  .header-whatsapp { font-size: 0.82rem; }
  .hero-grid,
  .process-layout { grid-template-columns: 1fr; }
  .hero { padding: 67px 0; }
  .contact-panel { max-width: 560px; }
  .service-item { grid-template-columns: 55px 1fr; gap: 15px; }
  .contact-card,
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .contact-card { gap: 26px; }
  address { min-width: unset; }
  .footer-content { min-height: 106px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; }
  .floating-whatsapp { right: 18px; bottom: 18px; width: 52px; height: 52px; box-shadow: 0 0 0 9px rgba(6, 40, 30, 0.55), 0 6px 18px rgba(0, 0, 0, 0.28); }
  .floating-whatsapp svg { width: 27px; height: 27px; }
}

@media (max-width: 390px) {
  .hero-actions,
  .button { width: 100%; }
  .button { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .floating-whatsapp,
  .floating-whatsapp::before { animation: none; }
}

/* أزرار الخدمات السريعة: كل زر يفتح واتساب برسالة جاهزة بعد ضغط الزائر */
.service-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}

.service-action {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid rgba(18, 32, 42, 0.12);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(18, 32, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-action:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 30px rgba(143, 32, 88, 0.16);
}

.service-action:active { transform: translateY(0); }

.service-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand-deep);
}

.service-action-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-action-text { display: grid; gap: 2px; }
.service-action strong { font-size: 1.08rem; line-height: 1.35; }
.service-action small { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.5; }

.service-action-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(143, 32, 88, 0.24);
}

.service-action-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.service-action-primary small { color: rgba(255, 255, 255, 0.86); }
.service-action-primary .service-action-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }

@media (max-width: 760px) {
  .service-actions { grid-template-columns: 1fr; max-width: 560px; }
  .service-action {
    min-height: 74px;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }
}

/* قسم خطوات استخراج الرخصة */
.license-steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
}

.license-steps-intro {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.license-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.license-card-section {
  padding: clamp(20px, 2.5vw, 28px);
}

.license-card-section + .license-card-section {
  border-top: 1px solid var(--line);
}

.license-card-section h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
}

.license-card-section ul {
  margin: 0;
  padding: 0 22px 0 0;
  line-height: 1.85;
}

.license-card-section p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.license-card-highlight {
  background: #0f7d3b;
  color: #fff;
}

.license-card-highlight h3 { color: #fff; }
.license-card-highlight p { color: rgba(255, 255, 255, 0.94); }

.license-card-delivery h3 { margin-bottom: 4px; }

.license-steps-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-pale);
  box-shadow: var(--shadow);
}

.license-steps-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.license-steps-media figcaption {
  padding: 12px 16px 15px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: center;
}

.license-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .license-steps-layout { grid-template-columns: 1fr; gap: 28px; }
  .license-steps-media { order: 2; }
  .license-steps-copy { order: 1; }
}

/* أزرار شروط استخراج الرخصة */
.license-toggle-boxes { display: grid; gap: 10px; }
.license-toggle-box {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(18, 32, 42, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.license-toggle-box.is-active {
  border-color: #0f7d3b;
  box-shadow: 0 12px 28px rgba(20, 148, 71, 0.14);
}
.license-toggle-trigger {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}
.license-toggle-trigger:hover { background: var(--brand-pale); }
.license-toggle-box.is-active .license-toggle-trigger { background: #0f7d3b; color: #fff; }
.license-toggle-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.license-toggle-box.is-active .license-toggle-icon { transform: rotate(180deg); background: rgba(255, 255, 255, 0.2); color: #fff; }
.license-toggle-panel {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.license-toggle-box.is-active .license-toggle-panel { background: #0f7d3b; color: #fff; }
.license-toggle-panel ul { margin: 0; padding: 0 22px 0 0; }
.license-toggle-panel p { margin: 0 0 6px; }
.license-toggle-panel p:last-child { margin-bottom: 0; }
.license-toggle-trigger:focus-visible { outline: 3px solid #c78d34; outline-offset: -3px; }
@media (max-width: 760px) {
  .license-toggle-trigger { min-height: 62px; padding: 14px 17px; font-size: 1rem; }
  .license-toggle-panel { padding: 0 17px 17px; font-size: 0.95rem; }
}
