/* ===== Variables ===== */
:root {
  --primary: #0a3d62;
  --primary-dark: #062a44;
  --primary-light: #1e5f8a;
  --accent: #f39c12;
  --accent-hover: #e67e22;
  --electric: #00d2ff;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #e1e8ed;
  --shadow: 0 4px 24px rgba(10, 61, 98, 0.1);
  --shadow-lg: 0 12px 48px rgba(10, 61, 98, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 80px;
  --hero-height: 580px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__item i {
  color: var(--accent);
}

.top-bar__item strong {
  color: var(--electric);
  letter-spacing: 0.5px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
}

.logo__name {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.3;
}

.logo__tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

.nav__list {
  display: flex;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: rgba(10, 61, 98, 0.08);
}

.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(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.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);
}

/* ===== Hero & Slider ===== */
.hero {
  position: relative;
  height: var(--hero-height);
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 42, 68, 0.88) 0%,
    rgba(10, 61, 98, 0.75) 50%,
    rgba(10, 61, 98, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 720px;
  color: #fff;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 156, 18, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--electric);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--accent);
  color: #fff;
}

.slider-btn--prev { right: 20px; }
.slider-btn--next { left: 20px; }

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.4);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn--full {
  width: 100%;
}

/* ===== Credentials ===== */
.credentials {
  background: var(--primary);
  padding: 0;
  margin-top: -1px;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.credential-card {
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

.credential-card:first-child {
  border-left: none;
}

.credential-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.credential-card--accent {
  background: rgba(243, 156, 18, 0.15);
}

.credential-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(243, 156, 18, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.credential-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.credential-card__number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--electric);
  letter-spacing: 1px;
  direction: ltr;
  unicode-bidi: embed;
}

/* ===== Promo ===== */
.promo {
  padding: 80px 0;
  background: var(--bg);
}

.promo__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.promo__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.promo__logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(10, 61, 98, 0.2));
}

.promo__ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 3px dashed var(--accent);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.promo__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 800;
}

.promo__lead {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.promo__features {
  margin-bottom: 32px;
}

.promo__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}

.promo__features i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.about__card-inner {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.about__card-inner img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

.about__card-inner h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.about__card-inner > p {
  opacity: 0.85;
  margin-bottom: 24px;
}

.about__card-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.about__card-items span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* ===== Vision ===== */
.vision__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vision-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vision-card--featured {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  transform: scale(1.03);
}

.vision-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.vision-card--featured .vision-card__icon {
  background: rgba(243, 156, 18, 0.25);
  color: var(--accent);
}

.vision-card--featured p {
  opacity: 0.92;
}

.vision-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(10, 61, 98, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
}

.vision-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.vision-card--featured h3 {
  color: #fff;
}

.vision-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.contact-item:hover {
  box-shadow: var(--shadow);
}

.contact-item--highlight {
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.06), rgba(243, 156, 18, 0.08));
  border-color: var(--accent);
}

.contact-item__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-item a,
.contact-item p {
  display: block;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-item strong {
  color: var(--primary);
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Contact Form */
.contact-form {
  background: var(--bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-alt);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
  min-height: 24px;
}

.form-status.success {
  color: #27ae60;
}

.form-status.error {
  color: #e74c3c;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding-top: 48px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer__brand img {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}

.footer__brand h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__legal {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.8;
}

.footer__legal strong {
  color: var(--electric);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .promo__inner,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .promo__visual {
    order: -1;
    min-height: 200px;
  }

  .vision__grid,
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vision-card--featured {
    transform: none;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --hero-height: 420px;
  }

  .hero {
    margin-top: var(--header-height);
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vision__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
    align-items: center;
  }

  .footer__links {
    align-items: center;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .slider-btn--prev { right: 10px; }
  .slider-btn--next { left: 10px; }

  .hero__content {
    padding: 32px 20px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .section {
    padding: 60px 0;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .logo__tagline {
    display: none;
  }
}
