/* =========================================
   Design Tokens + Themes
   ========================================= */

/* Light theme (default) */
:root,
html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #eef2f7;
  --ink: #0f172a;
  /* text */
  --muted: #475569;
  /* secondary text */
  --primary: #d35400;
  /* Akakus brand */
  --primary-600: #b64900;
  --accent: #f39c12;

  --ok: #16a34a;
  --warn: #eab308;
  --danger: #dc2626;

  --svc-property: #64748b;
  --svc-car: #ef7c0f;
  --svc-health: #16a34a;
  --svc-engineering: #7c3aed;
  --svc-marine: #0e4f8a;
  --svc-travel: #0d9488;
  --svc-fire: #c0392b;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-1: 0 6px 18px rgba(15, 23, 42, .08);
  --shadow-2: 0 10px 28px rgba(15, 23, 42, .12);

  --font: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  --fs-xs: .8rem;
  --fs-sm: .92rem;
  --fs: 1rem;
  --fs-lg: 1.125rem;
  --fs-2xl: clamp(1.8rem, 2.2vw + 1rem, 2.4rem);
  --fs-3xl: clamp(2.2rem, 3vw + 1rem, 3rem);

  --border: #e5e7eb;
  --soft-border: #edf1f5;

  --header-bg: rgba(255, 255, 255, .75);
  --header-border: rgba(15, 23, 42, .06);
  --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .45));
}

/* Dark theme */
html[data-theme="dark"] {
  --bg: #0e141e;
  --surface: #121a26;
  --surface-2: #172233;
  --ink: #e9eef5;
  --muted: #b9c2cf;
  --border: rgba(255, 255, 255, .08);
  --soft-border: rgba(255, 255, 255, .06);
  --header-bg: rgba(18, 26, 38, .78);
  --header-border: rgba(255, 255, 255, .08);
  --hero-overlay: linear-gradient(180deg, rgba(17, 21, 29, .55), rgba(17, 21, 29, .75));
}

/* Motion */
:root {
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 420ms;
  --ease-1: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.visually-hidden-focusable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  white-space: normal;
  background: var(--surface-2);
  padding: 8px 12px;
  border-radius: 8px;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  transition: transform var(--dur-1) var(--ease-1), background var(--dur-1), color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
  border: 1px solid transparent;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(211, 84, 0, .22);
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

html[data-theme="dark"] .btn-outline {
  border-color: #2b3244;
}

.btn-outline:hover {
  background: var(--surface-2);
  text-decoration: none;
}

/* Floating buttons */
.floating-buttons {
  position: fixed;
  inset-inline-start: 16px;
  inset-block-end: 16px;
  display: grid;
  gap: 10px;
  z-index: 60;
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-1) var(--ease-1), background var(--dur-1);
}

.floating-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}

.whatsapp-btn {
  position: relative;
}

.whatsapp-btn i {
  color: #25d366;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .35);
  animation: pulse 1.8s var(--ease-1) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.9);
    opacity: .7
  }

  70% {
    transform: scale(1.15);
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

/* =========================================
   Header / Navbar
   ========================================= */

#header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.navbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  display: grid;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-weight: 900;
  letter-spacing: .4px;
}

.logo-text span:last-child {
  font-weight: 700;
  color: var(--accent);
}

/* شعار متكيف مع الثيم: حل عملي عند وجود سواد في الشعار */
.theme-adaptive {
  transition: filter var(--dur-1) var(--ease-1), opacity var(--dur-1);
}

html[data-theme="dark"] .theme-adaptive {
  /* يجعل الأسود أبيض مع الحفاظ على الحواف */
  filter: brightness(0) invert(1) contrast(1.05) drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  transition: background var(--dur-1), color var(--dur-1);
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}

/* Header controls container */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================
   Language control (dropdown with flags)
   ========================================= */
.lang-control {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: box-shadow var(--dur-1), transform var(--dur-1), background var(--dur-1), border-color var(--dur-1);
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.lang-label {
  font-weight: 800;
  font-size: .95rem;
}

/* =========================================
   Language control — Flag Icons (round)
   ========================================= */

/* زر اللغة */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: box-shadow var(--dur-1), transform var(--dur-1), background var(--dur-1), border-color var(--dur-1);
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.lang-label {
  font-weight: 800;
  font-size: .95rem;
}

/* أيقونة العلم الحالية في الزر + أعلام القائمة */
.flag-current,
.lang-menu .fi {
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  flex: 0 0 24px;
  background-position: center;
  background-size: cover;
  /* تغطية كاملة داخل الدائرة */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) inset, 0 1px 2px rgba(0, 0, 0, .06);
}

/* حدود أوضح في الوضع الداكن */
html[data-theme="dark"] .flag-current,
html[data-theme="dark"] .lang-menu .fi {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 1px 2px rgba(0, 0, 0, .35);
}

/* قائمة اللغات */
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  min-inline-size: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 6px;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 70;
}

.lang-control.open .lang-menu {
  display: block;
  animation: fadeIn var(--dur-2) var(--ease-1);
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.lang-menu li:hover {
  background: var(--surface-2);
}

.lang-menu li[aria-selected="true"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}


.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  min-inline-size: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 6px;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 70;
}

.lang-control.open .lang-menu {
  display: block;
  animation: fadeIn var(--dur-2) var(--ease-1);
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.lang-menu li:hover {
  background: var(--surface-2);
}

.lang-menu li[aria-selected="true"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   Theme toggle (pill) — محاذاة متناسقة
   ========================================= */
.theme-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.theme-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: 104px;
  block-size: 38px;
  border-radius: 9999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding-inline: 12px;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--soft-border);
  transition: background var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
}

.theme-icon-left,
.theme-icon-right {
  font-size: 16px;
  opacity: .7;
  transition: opacity var(--dur-1);
}

.theme-knob {
  position: absolute;
  inset-block-start: 4px;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  transition: inset-inline-start var(--dur-2) var(--ease-1), background var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
  inset-inline-start: 4px;
  /* الوضع الفاتح */
}

html[data-theme="dark"] .theme-pill {
  background: #1b2637;
  border-color: #2b3244;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

html[data-theme="dark"] .theme-knob {
  background: #0f1622;
  border-color: #2b3244;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .theme-knob {
  inset-inline-start: calc(100% - 30px - 4px - 2px);
}

/* محاذاة دقيقة إلى اليسار في RTL */
html[dir="ltr"][data-theme="dark"] .theme-knob {
  inset-inline-start: calc(100% - 30px - 4px - 2px);
}

html[data-theme="light"] .theme-icon-left {
  opacity: .4;
}

html[data-theme="dark"] .theme-icon-right {
  opacity: .4;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
}

/* =========================================
   Hero Slider
   ========================================= */

.hero-slider {
  position: relative;
  min-block-size: min(88vh, 820px);
  display: grid;
  align-items: stretch;
  overflow: clip;
  isolation: isolate;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--dur-2) var(--ease-1), transform 800ms var(--ease-1);
}

.slide.active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 0;
}

.slide .container {
  position: relative;
  z-index: 1;
}

.slide-content {
  max-inline-size: 760px;
  padding: 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px) saturate(1.2);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-2);
  transform: translateY(6px);
  animation: lift-in 700ms var(--ease-1) both;
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(6px);
  }
}

html[data-theme="dark"] .slide-content {
  background: linear-gradient(180deg, rgba(17, 21, 29, .5), rgba(17, 21, 29, .25));
  border: 1px solid rgba(255, 255, 255, .06);
}

.slide h1 {
  margin: 0 0 6px;
  font-size: var(--fs-3xl);
  font-weight: 900;
}

.slide h1 span {
  color: var(--accent);
}

.slide h2 {
  margin: 0 0 12px;
  font-size: var(--fs-2xl);
  color: var(--primary);
}

.slide p {
  color: var(--muted);
  margin-block: 10px 18px;
  font-size: var(--fs-lg);
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-arrow {
  position: absolute;
  inset-block-end: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: pointer;
  transition: transform var(--dur-1), background var(--dur-1), box-shadow var(--dur-1);
}

.slider-arrow:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.slider-arrow.prev {
  inset-inline-start: 24px;
}

.slider-arrow.next {
  inset-inline-start: 76px;
}

.slider-nav {
  position: absolute;
  inset-block-end: 28px;
  inset-inline-end: 24px;
  display: inline-flex;
  gap: 10px;
  z-index: 3;
}

.slider-dot {
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .35);
  background: transparent;
  position: relative;
  cursor: pointer;
}

html[data-theme="dark"] .slider-dot {
  border-color: rgba(255, 255, 255, .55);
}

.slider-dot.active {
  background: #000;
  border-color: #000;
}

html[data-theme="dark"] .slider-dot.active {
  background: #fff;
  border-color: #fff;
}

.slider-progress {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, .25);
  clip-path: inset(0 100% 0 0 round 999px);
}

html[data-theme="dark"] .slider-progress {
  border-color: rgba(255, 255, 255, .35);
}

.hero-wave {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  width: 100%;
  height: 140px;
  fill: var(--bg);
  z-index: 2;
}

/* =========================================
   Sections
   ========================================= */

.section {
  padding-block: 64px;
}

.section-title {
  text-align: center;
  margin-block-end: 28px;
}

.section-title h2 {
  font-size: var(--fs-2xl);
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  inline-size: 72px;
  block-size: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 99px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--dur-1), background var(--dur-1), box-shadow var(--dur-1), border-color var(--dur-1);
}

.about-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
  border-color: #cbd5e1;
}

html[data-theme="dark"] .about-card:hover {
  border-color: rgba(255, 255, 255, .14);
}

.about-icon {
  inline-size: 46px;
  block-size: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  margin-block-end: 8px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform var(--dur-1), border-color var(--dur-1), background var(--dur-1), box-shadow var(--dur-1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}

html[data-theme="dark"] .service-card:hover {
  border-color: rgba(255, 255, 255, .14);
}

.service-img {
  inline-size: 56px;
  block-size: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
}

.service-content h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.service-content p {
  margin: 0;
  color: var(--muted);
}

/* service color badges */
.service-card.property .service-img {
  background: var(--svc-property);
}

.service-card.car .service-img {
  background: var(--svc-car);
}

.service-card.health .service-img {
  background: var(--svc-health);
}

.service-card.engineering .service-img {
  background: var(--svc-engineering);
}

.service-card.marine .service-img {
  background: var(--svc-marine);
}

.service-card.travel .service-img {
  background: var(--svc-travel);
}

.service-card.fire .service-img {
  background: var(--svc-fire);
}

/* Branches / Map */
.map-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-block-end: 12px;
  flex-wrap: wrap;
}

.map-toolbar input[type="search"] {
  inline-size: min(520px, 100%);
  padding: .8rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 12px;
}

#map {
  inline-size: 100%;
  block-size: 420px;
  border-radius: var(--radius-lg);
  overflow: clip;
  outline: 1px solid var(--soft-border);
  box-shadow: var(--shadow-1);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.contact-info li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 700;
}

.form-control {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: .8rem .9rem;
  border-radius: 12px;
  outline: none;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, .18);
}

textarea.form-control {
  min-block-size: 140px;
  resize: vertical;
}

.error {
  color: var(--danger);
  font-size: var(--fs-xs);
  min-block-size: 1.2em;
}

.toast {
  margin-top: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: .7rem .9rem;
  border-radius: 10px;
}

html[data-theme="dark"] .toast {
  background: #14221a;
  color: #d6f4e6;
  border-color: #2c6e49;
}

.toast.hidden {
  display: none;
}

.form-note {
  color: var(--muted);
  margin-top: 10px;
}

.link {
  color: var(--accent);
  text-decoration: underline;
}

/* =========================================
   Footer — نسخة احترافية وأنيقة
   ========================================= */

.footer {
  margin-top: 44px;
  background:
    radial-gradient(900px 400px at 18% -10%, rgba(243, 156, 18, .10), transparent 60%) no-repeat,
    conic-gradient(from 210deg at 90% -20%, rgba(211, 84, 0, .08), transparent 25%) no-repeat,
    var(--surface-2);
  border-top: 1px solid var(--border);
}

html[data-theme="dark"] .footer {
  background:
    radial-gradient(900px 400px at 18% -10%, rgba(243, 156, 18, .08), transparent 60%) no-repeat,
    conic-gradient(from 210deg at 90% -20%, rgba(211, 84, 0, .06), transparent 25%) no-repeat,
    #0c0e14;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer .container {
  padding-block: 36px;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-grid--4 {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
}

.footer-links a:hover {
  background: var(--surface);
  text-decoration: none;
}

.footer-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.footer-logo {
  inline-size: 48px;
  block-size: 48px;
  object-fit: contain;
}

.contact-info-footer {
  list-style: none;
  padding: 0;
  margin: 10px 10px 0;
  display: grid;
  gap: 8px;
}

.contact-info-footer li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 5px;
  align-items: start;
  color: var(--muted);
}

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--soft-border), transparent);
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}

.footer-mini-links {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-mini-links a {
  color: var(--muted);
}

.footer-mini-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.text-center {
  text-align: center;
}

.small {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* =========================================
   Utilities
   ========================================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hidden {
  display: none !important;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .about-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .slide-content {
    padding: 16px;
  }

  .slide h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .slide h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  }

  .hero-slider {
    min-block-size: 72vh;
  }

  .slider-arrow.prev {
    inset-inline-start: 16px;
  }

  .slider-arrow.next {
    inset-inline-start: 64px;
  }

  .slider-nav {
    inset-inline-end: 16px;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Mobile menu (overlay)
   ========================================= */

.nav-links.open {
  position: fixed;
  inset: 76px 12px auto 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 6px;
  padding: 10px;
  z-index: 55;
}
.phone-number {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
  display: inline-block;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 8px; /* هذه هي التي ترجع الرقم بجانب الأيقونة */
}

.contact-info-footer li {
  display: flex;
  align-items: center;
  gap: 8px; /* هذه هي التي ترجع الرقم بجانب الأيقونة */
}