:root {
  --primary-color: #2b72a1;
  --primary-dark: #225d84;
  --secondary-color: #6eadd1;
  --secondary-soft: #dcecf6;
  --ink-color: #173247;
  --muted-color: #5c7486;
  --surface-color: #ffffff;
  --surface-alt: #f4f8fb;
  --border-color: rgba(43, 114, 161, 0.14);
  --shadow-soft: 0 24px 60px rgba(24, 61, 88, 0.1);
  --shadow-card: 0 18px 40px rgba(25, 67, 98, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", "Cairo", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(110, 173, 209, 0.25), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #eef5fa 100%);
  color: var(--ink-color);
  direction: rtl;
  text-align: right;
}

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

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

main {
  overflow: hidden;
}

.section-space {
  padding: 96px 0;
}

.section-space-sm {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(220, 236, 246, 0.5));
}

.container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(43, 114, 161, 0.1);
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 0 6px rgba(110, 173, 209, 0.16);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}

.section-heading.centered {
  text-align: center;
  display: block;
}

.section-heading h2,
.hero-copy h1,
.page-hero h1 {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink-color);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.hero-copy p,
.page-hero p,
.lead-text,
.card-text,
.footer-about,
.timeline-card p,
.blog-card p,
.faq-copy p,
.cta-box p,
.location-card p {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.9;
  font-size: 1.02rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-main,
.btn-outline-main,
.btn-light-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-main {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 16px 30px rgba(43, 114, 161, 0.24);
}

.btn-main:hover,
.btn-outline-main:hover,
.btn-light-main:hover {
  transform: translateY(-3px);
}

.btn-outline-main {
  border: 1px solid rgba(43, 114, 161, 0.25);
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.78);
}

.btn-light-main {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(43, 114, 161, 0.08);
}

.top-strip {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
  color: #fff;
  font-size: 0.95rem;
}

.top-strip .container {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-strip-info,
.top-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-navbar {
  padding: 16px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(43, 114, 161, 0.24);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
}

.brand-copy strong {
  display: block;
  font-size: 1.2rem;
  color: var(--ink-color);
}

.brand-copy span {
  color: var(--muted-color);
  font-size: 0.92rem;
}

.navbar-toggler {
  border: 1px solid rgba(43, 114, 161, 0.16);
  border-radius: 16px;
  padding: 10px 12px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.main-nav {
  gap: 8px;
}

.main-nav .nav-link {
  color: var(--ink-color);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: rgba(43, 114, 161, 0.1);
  color: var(--primary-color);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(43, 114, 161, 0.08);
  color: var(--ink-color);
  font-weight: 700;
}

.hero-section {
  position: relative;
  padding: 56px 0 84px;
}

.hero-shell {
  padding: 18px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(43, 114, 161, 0.08);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 8px);
  background: linear-gradient(135deg, #0f2e42, #2b72a1 55%, #6eadd1);
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-carousel::before {
  width: 380px;
  height: 380px;
  top: -140px;
  left: -120px;
}

.hero-carousel::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -100px;
}

.hero-slide {
  padding: 64px 48px;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.hero-copy .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 1.08rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.hero-media-wrap {
  position: relative;
  padding-inline-start: 20px;
}

.hero-media {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.hero-media img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

.floating-panel {
  position: absolute;
  bottom: 30px;
  left: 0;
  max-width: 250px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.floating-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-color);
  font-size: 1rem;
}

.floating-panel span {
  color: var(--muted-color);
  line-height: 1.7;
  font-size: 0.95rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 12px 0;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 114, 161, 0.18);
}

.carousel-dots button.active {
  background: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(43, 114, 161, 0.12);
}

.carousel-navs {
  display: flex;
  gap: 10px;
}

.carousel-navs button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  color: var(--primary-color);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.service-card,
.feature-card,
.timeline-card,
.blog-card,
.stat-card,
.location-card,
.contact-card,
.keyword-card {
  position: relative;
  height: 100%;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::after,
.feature-card::after,
.timeline-card::after,
.blog-card::after,
.location-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto auto -70px -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 173, 209, 0.18), transparent 70%);
  pointer-events: none;
}

.service-card:hover,
.feature-card:hover,
.timeline-card:hover,
.blog-card:hover,
.stat-card:hover,
.location-card:hover,
.contact-card:hover,
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(27, 69, 101, 0.14);
  border-color: rgba(43, 114, 161, 0.25);
}

.service-card.clickable-card {
  cursor: pointer;
}

.service-card h3,
.feature-card h3,
.timeline-card h3,
.blog-card h3,
.location-card h3,
.contact-card h3,
.faq-copy h2,
.cta-box h2,
.page-hero h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink-color);
  line-height: 1.5;
}

.service-card p,
.feature-card p,
.blog-card p,
.contact-card p,
.location-card p {
  margin-bottom: 0;
}

.card-icon,
.info-icon,
.metric-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(43, 114, 161, 0.12), rgba(110, 173, 209, 0.2));
  color: var(--primary-color);
  margin-bottom: 20px;
}

.card-icon svg,
.info-icon svg,
.metric-icon svg {
  width: 32px;
  height: 32px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary-color);
  font-weight: 700;
}

.split-panel {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(43, 114, 161, 0.08), rgba(110, 173, 209, 0.12));
  border: 1px solid rgba(43, 114, 161, 0.1);
  box-shadow: var(--shadow-soft);
}

.split-panel.dark-panel {
  background: linear-gradient(135deg, #123249, #275f87 55%, #6eadd1);
  color: #fff;
}

.split-panel.dark-panel h2,
.split-panel.dark-panel h3,
.split-panel.dark-panel p,
.split-panel.dark-panel li {
  color: #fff;
}

.split-panel ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.split-panel li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 16px;
  color: var(--muted-color);
  line-height: 1.9;
}

.split-panel li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 0 6px rgba(43, 114, 161, 0.1);
}

.location-card,
.contact-card {
  text-align: center;
}

.location-card a,
.contact-card a {
  color: var(--primary-color);
  font-weight: 800;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 280px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 44, 63, 0.05), rgba(15, 44, 63, 0.78));
  color: #fff;
}

.gallery-overlay span {
  font-size: 1.08rem;
  font-weight: 800;
  transform: translateY(14px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.gallery-card:hover .gallery-overlay span {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card .step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(43, 114, 161, 0.1);
  color: var(--primary-color);
  font-weight: 800;
}

.timeline-card .step-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 3.3rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(43, 114, 161, 0.12);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stat-card {
  text-align: center;
  padding: 36px 26px;
}

.stat-card .metric-value {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}

.stat-card p {
  margin: 0;
  color: var(--muted-color);
}

.blog-card {
  padding: 0;
}

.blog-card .blog-thumb {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.blog-card .blog-thumb img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.08);
}

.blog-content {
  padding: 28px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted-color);
  font-size: 0.96rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 800;
}

.success-shell,
.cta-box,
.page-hero,
.faq-shell {
  padding: 42px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(43, 114, 161, 0.08);
  box-shadow: var(--shadow-soft);
}

.success-shell {
  background: linear-gradient(135deg, #123249, #275f87 58%, #6eadd1);
  color: #fff;
}

.success-shell h2,
.success-shell p {
  color: #fff;
}

.success-shell .stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.success-shell .stat-card .metric-value,
.success-shell .stat-card p {
  color: #fff;
}

.cta-box {
  background: linear-gradient(135deg, rgba(43, 114, 161, 0.98), rgba(110, 173, 209, 0.98));
  color: #fff;
}

.cta-box h2,
.cta-box p {
  color: #fff;
}

.page-hero {
  margin-top: 42px;
  background: linear-gradient(135deg, rgba(43, 114, 161, 0.1), rgba(110, 173, 209, 0.18));
}

.breadcrumb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted-color);
  font-weight: 700;
}

.faq-shell {
  overflow: hidden;
}

.faq-image {
  height: 100%;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
}

.faq-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accordion-item {
  border: 1px solid rgba(43, 114, 161, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.accordion-item + .accordion-item {
  margin-top: 16px;
}

.accordion-button {
  font-weight: 800;
  color: var(--ink-color);
  background: #fff;
  border: 0;
  box-shadow: none;
  padding: 22px 24px;
}

.accordion-button:not(.collapsed) {
  background: rgba(43, 114, 161, 0.08);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  color: var(--muted-color);
  line-height: 1.9;
}

.accordion-body a {
  color: var(--primary-color);
  font-weight: 800;
}

.keyword-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(43, 114, 161, 0.1);
  box-shadow: 0 10px 24px rgba(34, 93, 132, 0.06);
  color: var(--ink-color);
  font-weight: 700;
}

.site-footer {
  padding: 88px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #0f2838, #183f5a 52%, #2b72a1);
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer a {
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-brand .brand-icon {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.footer-about {
  color: rgba(255, 255, 255, 0.84);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li + li {
  margin-top: 12px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.86);
  transition: color var(--transition), transform var(--transition);
}

.footer-list a:hover {
  color: #fff;
  transform: translateX(-4px);
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.map-frame {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(43, 114, 161, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 430px;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199.98px) {
  .hero-slide {
    padding: 48px 32px;
    min-height: auto;
  }

  .hero-media-wrap {
    padding-inline-start: 0;
    margin-top: 28px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .top-strip .container,
  .section-heading {
    display: block;
  }

  .top-strip-actions {
    margin-top: 8px;
  }

  .nav-contact {
    justify-content: center;
    margin-top: 18px;
  }

  .hero-section {
    padding-top: 32px;
  }

  .hero-shell,
  .page-hero,
  .cta-box,
  .success-shell,
  .faq-shell,
  .split-panel {
    padding: 30px;
  }

  .floating-panel {
    position: static;
    max-width: none;
    margin-top: 18px;
  }

  .faq-image {
    min-height: 320px;
    margin-bottom: 26px;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 72px 0;
  }

  .section-space-sm {
    padding: 58px 0;
  }

  .hero-slide {
    padding: 36px 22px;
  }

  .hero-copy h1,
  .section-heading h2,
  .page-hero h1 {
    line-height: 1.45;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .feature-card,
  .timeline-card,
  .stat-card,
  .location-card,
  .contact-card,
  .blog-content {
    padding: 24px;
  }

  .carousel-controls,
  .footer-bottom .container {
    display: block;
  }

  .carousel-navs {
    margin-top: 18px;
  }

  .map-frame iframe {
    height: 340px;
  }
}
