/* ===== Variables ===== */
:root {
  --color-primary: #1e5a8a;
  --color-primary-dark: #154568;
  --color-primary-light: #2d7ab5;
  --color-green: #2d8a4e;
  --color-green-light: #3da866;
  --color-gold: #e8a317;
  --color-gold-light: #f5c842;
  --color-bg: #f8fafb;
  --color-bg-alt: #eef4f8;
  --color-text: #1a2e3b;
  --color-text-muted: #5a7285;
  --color-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(30, 90, 138, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 90, 138, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 90, 138, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font: 'Tajawal', sans-serif;
  --header-h: 88px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: 'Inter', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-green);
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.nav__logo:hover {
  color: var(--color-primary-dark);
}

/* ===== اسم الشركة بجانب الشعار ===== */
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
}

.brand-name__title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.35;
}

.brand-name__tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 240px;
}

.brand-name--badge .brand-name__title {
  font-size: 1.05rem;
}

.brand-name--badge .brand-name__tag {
  font-size: 0.65rem;
  max-width: 200px;
}

.brand-name--footer .brand-name__title {
  color: var(--color-white);
  font-size: 1.1rem;
}

.brand-name--contact {
  text-align: right;
}

.brand-name--contact .brand-name__title {
  font-size: 1.35rem;
}

.brand-name--contact .brand-name__tag {
  font-size: 0.85rem;
  max-width: 280px;
}

.contact__brand-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__brand-row .logo-img--contact {
  margin: 0;
  flex-shrink: 0;
  max-height: 140px;
  max-width: 140px;
}

/* ===== Logo (عرض كامل بدون قص) ===== */
.logo-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.logo-img--nav {
  max-height: 64px;
  max-width: 90px;
  flex-shrink: 0;
}

.nav__logo .brand-name__title {
  max-width: 200px;
}

.logo-img--badge {
  max-height: 100%;
  max-width: 100%;
}

.logo-img--contact {
  max-width: min(320px, 100%);
  max-height: 200px;
  margin: 0 auto 1rem;
}

.logo-img--footer {
  max-height: 52px;
  max-width: 160px;
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border: 2px solid rgba(30, 90, 138, 0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.lang-toggle__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav__link--cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  margin-right: 0.5rem;
}

.nav__link--cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Slider ===== */
.slider {
  position: relative;
  margin-top: var(--header-h);
  background: var(--color-primary-dark);
}

.slider__viewport {
  position: relative;
  overflow: hidden;
  background: #0a1628;
}

.slider__logo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: min(380px, 72vw);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--color-primary);
}

.slider__logo-badge .logo-img--badge {
  max-height: 72px;
  max-width: 72px;
  flex-shrink: 0;
}

.slider__logo-badge:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.slider__track {
  display: flex;
  direction: ltr;
  transition: transform 0.6s ease;
}

.slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.slider__banner-img {
  width: 100%;
  height: auto;
  max-height: min(88vh, 820px);
  object-fit: contain;
  object-position: center top;
  display: block;
  margin: 0 auto;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  display: none;
}

.slider__btn:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.05);
}

.slider__btn--prev {
  right: 1rem;
}

.slider__btn--next {
  left: 1rem;
}

.slider__btn.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.slider__dot.is-active,
.slider__dot:hover {
  background: var(--color-white);
  transform: scale(1.2);
}

.slider__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  background: var(--color-bg);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  margin-bottom: 3rem;
}

.section__header--center {
  text-align: center;
}

.section__tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(30, 90, 138, 0.1);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary-dark);
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__content p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.about__content strong {
  color: var(--color-text);
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-right: 4px solid var(--color-green);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ===== Vision / Mission / Goal ===== */
.vmg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vmg-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.vmg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.vmg-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.vmg-card__icon svg {
  width: 28px;
  height: 28px;
}

.vmg-card--vision .vmg-card__icon {
  background: rgba(30, 90, 138, 0.12);
  color: var(--color-primary);
}

.vmg-card--mission .vmg-card__icon {
  background: rgba(45, 138, 78, 0.12);
  color: var(--color-green);
}

.vmg-card--goal .vmg-card__icon {
  background: rgba(232, 163, 23, 0.15);
  color: var(--color-gold);
}

.vmg-card h3 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.vmg-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== Services / Marketing ===== */
.marketing {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.marketing__lead {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.marketing__text {
  opacity: 0.92;
  margin-bottom: 1rem;
}

.marketing__cta-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-gold-light);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-md);
}

.service-item__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  flex-shrink: 0;
}

.service-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.service-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--color-white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 90, 138, 0.1);
  border-radius: 10px;
  color: var(--color-primary);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.contact-card a,
.contact-card p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--color-green);
}

.contact__brand {
  text-align: center;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .slider__banner-img {
    max-height: 65vh;
  }

  .slider__logo-badge {
    max-width: min(300px, 85vw);
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .slider__logo-badge .logo-img--badge {
    max-height: 56px;
    max-width: 56px;
  }

  .brand-name--badge .brand-name__tag {
    display: none;
  }

  .logo-img--nav {
    max-height: 52px;
    max-width: 72px;
  }

  .nav__logo .brand-name__tag {
    display: none;
  }

  .slider__btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .vmg-grid {
    grid-template-columns: 1fr;
  }

  .services__list {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    gap: 0.25rem;
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }

  .nav__link--cta {
    margin-right: 0;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .section {
    padding: 3.5rem 0;
  }

  .marketing {
    padding: 1.75rem;
  }
}

/* ===== LTR / English layout ===== */
html[dir="ltr"] .slider__logo-badge {
  left: 1rem;
  right: auto;
}

html[dir="ltr"] .slider__btn--prev {
  left: 1rem;
  right: auto;
}

html[dir="ltr"] .slider__btn--next {
  right: 1rem;
  left: auto;
}

html[dir="ltr"] .feature-card {
  border-right: none;
  border-left: 4px solid var(--color-green);
}

html[dir="ltr"] .feature-card:hover {
  transform: translateX(4px);
}

html[dir="ltr"] .brand-name--contact {
  text-align: left;
}

html[dir="ltr"] .nav__link--cta {
  margin-right: 0;
  margin-left: 0.5rem;
}

html[dir="ltr"] .nav__logo .brand-name__title {
  max-width: 220px;
}
