/* ==========================================
   Unified public pages — matches homepage
   ========================================== */

/* Inner pages — video hero with light blue overlay */
.site-video-hero,
.contact-video-hero {
  position: relative;
  min-height: clamp(340px, 42vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(6.5rem, 11vw + 3rem, 9rem) 0 3.5rem;
}

.site-video-hero__media,
.contact-video-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-video-hero__media video,
.contact-video-hero__media video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.site-video-hero__overlay,
.contact-video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 31, 63, 0.62) 0%,
    rgba(31, 76, 140, 0.48) 55%,
    rgba(47, 103, 173, 0.42) 100%
  );
  z-index: 1;
}

.site-video-hero__content,
.contact-video-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.site-video-hero__content h1,
.contact-video-hero__content h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.site-video-hero__line,
.contact-video-hero__line {
  display: block;
  width: 72px;
  height: 4px;
  margin: 0 auto 1rem;
  background: var(--orange, #f28c28);
  border-radius: 2px;
}

.site-video-hero__content p,
.contact-video-hero__content p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .site-video-hero,
  .contact-video-hero {
    min-height: 320px;
    padding-bottom: 2.5rem;
  }
}

/* Inner page hero — image background + title overlay */
.page-image-hero {
  position: relative;
  min-height: clamp(340px, 42vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(6.5rem, 11vw + 3rem, 9rem) 0 3.5rem;
}

.page-image-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-image-hero__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.02);
  animation: pageImageHeroMotion 14s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform;
}

.page-image-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.28) 100%
  );
  z-index: 1;
}

.page-image-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.page-image-hero__content h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.page-image-hero__line {
  display: block;
  width: 72px;
  height: 4px;
  margin: 0 auto;
  background: var(--orange, #f28c28);
  border-radius: 2px;
}

/* Subtle Ken Burns — light drift + minimal zoom, then holds */
@keyframes pageImageHeroMotion {
  from {
    transform: translate(-50%, -50%) scale(1.02);
  }
  to {
    transform: translate(-50%, -48.8%) scale(1.045);
  }
}

@media (max-width: 768px) {
  .page-image-hero {
    min-height: 320px;
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-image-hero__bg {
    animation: none;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Inner page hero (home hero style, compact) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6.5rem, 11vw + 3rem, 9rem) 0 4rem;
  background: linear-gradient(135deg, var(--accent-dark, #0b1f3f) 0%, var(--accent-color, #1f4c8c) 100%);
  color: #fff;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  inset-inline-end: -5%;
  width: 40%;
  height: 120%;
  background: rgba(255, 255, 255, 0.02);
  transform: skewX(-15deg);
  z-index: 1;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.page-hero h1 .highlight {
  color: var(--orange, #f28c28);
}

.page-hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Section shell */
.site-section {
  padding: 4.5rem 0;
  font-family: "Cairo", sans-serif;
}

.site-section--white {
  background: #ffffff;
}

.site-section--light {
  background: #f4f8fb;
}

/* Section header — same as home «من نحن» */
.section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.section-header h2,
.section-header h3 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--accent-dark, #0b1f3f);
  margin-bottom: 0.65rem;
}

.section-header-line {
  display: block;
  width: 72px;
  height: 4px;
  margin: 0 auto;
  background: var(--orange, #f28c28);
  border-radius: 2px;
}

.section-lead {
  max-width: 760px;
  margin: 1rem auto 2.5rem;
  text-align: center;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.85;
  color: #5c5b5b;
}

/* Cards grid */
.site-cards-grid {
  display: grid;
  gap: 1.25rem;
}

.site-cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.site-cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.site-cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Card — same as home about-feature-card */
.site-card {
  background: #f8fafc;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease;
}

.site-card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: var(--orange, #f28c28);
  box-shadow: 0 14px 36px rgba(31, 76, 140, 0.1);
}

.site-card--left {
  text-align: start;
}

.site-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--orange, #f28c28);
  background: rgba(242, 140, 40, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange, #f28c28);
  font-size: 1.65rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.site-card--left .site-icon {
  margin-inline: 0;
}

.site-card:hover .site-icon {
  background: var(--orange, #f28c28);
  color: #fff;
  transform: scale(1.08);
}

.site-card h3,
.site-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color, #1f4c8c);
  margin-bottom: 0.65rem;
}

.site-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5c5b5b;
  margin: 0;
}

.site-card address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5c5b5b;
  margin-bottom: 0.75rem;
}

.site-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange, #f28c28);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-card-link:hover {
  color: var(--accent-color, #1f4c8c);
}

/* Stats bar */
.site-stats {
  margin-top: -3rem;
  position: relative;
  z-index: 3;
  padding-bottom: 1rem;
}

.site-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 8px 32px rgba(31, 76, 140, 0.1);
  overflow: hidden;
}

.site-stat-item {
  padding: 1.75rem 1rem;
  text-align: center;
  border-inline-start: 1px solid #e9ecef;
}

.site-stat-item:first-child {
  border-inline-start: none;
}

.site-stat-number {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--orange, #f28c28);
  line-height: 1.2;
}

.site-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-light, #7f8c8d);
}

/* Two-column content */
.site-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.site-split-text p {
  margin-bottom: 1.15rem;
  line-height: 1.85;
  color: #5c5b5b;
  font-size: 0.98rem;
}

.site-split-text p:last-child {
  margin-bottom: 0;
}

.site-split-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 76, 140, 0.12);
  object-fit: cover;
}

/* Panel card (forms, contact blocks) */
.site-panel {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(31, 76, 140, 0.06);
  height: 100%;
}

.site-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark, #0b1f3f);
  margin-bottom: 1rem;
}

.site-panel .section-header {
  text-align: start;
  margin-bottom: 0.75rem;
}

.site-panel .section-header-line {
  margin-inline: 0;
}

/* Form fields */
.site-form .form-control {
  border: 1px solid #dce4f1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-family: "Cairo", sans-serif;
}

.site-form .form-control:focus {
  border-color: var(--accent-color, #1f4c8c);
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(31, 76, 140, 0.12);
}

.site-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* CTA button — home about-btn style */
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange, #f28c28);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--orange, #f28c28);
  font-family: "Cairo", sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
}

.site-btn:hover {
  background: var(--accent-color, #1f4c8c);
  border-color: var(--accent-color, #1f4c8c);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 76, 140, 0.2);
}

.site-btn i {
  transition: transform 0.3s ease;
}

.site-btn:hover i {
  transform: translateX(-4px);
}

html[dir="ltr"] .site-btn:hover i {
  transform: translateX(4px);
}

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange, #f28c28);
  background: rgba(242, 140, 40, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.65rem;
}

.site-info-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf1f7;
}

.site-info-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color, #1f4c8c);
  margin-bottom: 0.5rem;
}

.site-info-block p {
  margin: 0.15rem 0;
  color: #5c5b5b;
  font-size: 0.92rem;
}

/* Partner block header on contact */
.partner-offices-intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.partner-offices-intro img {
  max-width: 150px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}

.partner-offices-intro-text h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--accent-dark, #0b1f3f);
  margin-bottom: 0.4rem;
}

.partner-offices-intro-text p {
  color: #5c5b5b;
  margin: 0;
  line-height: 1.7;
  max-width: 640px;
}

.partner-offices-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e9ecef;
}

.site-card-city {
  color: var(--accent-color, #1f4c8c);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
  .site-cards-grid--2,
  .site-cards-grid--3,
  .site-cards-grid--4 {
    grid-template-columns: 1fr;
  }

  .site-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-stat-item:nth-child(odd) {
    border-inline-start: none;
  }

  .site-stat-item {
    border-bottom: 1px solid #e9ecef;
  }

  .site-stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .site-stats-grid {
    grid-template-columns: 1fr;
  }

  .site-stat-item {
    border-inline-start: none !important;
    border-bottom: 1px solid #e9ecef;
  }

  .site-stat-item:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Direction — English LTR / Arabic RTL (public pages)
   ========================================================================== */

html[dir="ltr"] .site-split-text,
html[dir="ltr"] .site-panel,
html[dir="ltr"] .site-panel .section-header,
html[dir="ltr"] .site-card--left,
html[dir="ltr"] .partner-offices-intro-text,
html[dir="ltr"] .partner-info {
  text-align: left;
}

html[dir="rtl"] .site-split-text,
html[dir="rtl"] .site-panel,
html[dir="rtl"] .site-panel .section-header,
html[dir="rtl"] .site-card--left,
html[dir="rtl"] .partner-offices-intro-text,
html[dir="rtl"] .partner-info {
  text-align: right;
}

html[dir="ltr"] .site-form-footer,
html[dir="ltr"] .contact-form .policy-check {
  flex-direction: row;
}

html[dir="ltr"] .tracking-form {
  flex-direction: row;
}

html[dir="ltr"] .tracking-form input {
  text-align: left;
}

html[dir="rtl"] .tracking-form input {
  text-align: right;
}

html[dir="ltr"] .partner-benefit {
  flex-direction: row;
  text-align: left;
}

html[dir="rtl"] .partner-benefit {
  flex-direction: row;
  text-align: right;
}

html[dir="ltr"] .footer-partner-links li a:hover {
  transform: translateX(3px);
}

html[dir="rtl"] .footer-partner-links li a:hover {
  transform: translateX(-3px);
}
