﻿:root {
  --brand-primary: #075985;
  --brand-secondary: #0d9488;
  --brand-accent: #f59e0b;
  --brand-soft: #f0f9ff;
  --brand-surface: #ffffff;
  --brand-text: #0f172a;
  --brand-muted: #64748b;
  --brand-border: rgba(7, 89, 133, 0.1);
  --brand-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --brand-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brand-text);
  background:
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(7, 89, 133, 0.05), transparent 40%),
    #f8fafc;
  min-height: 100vh;
}

body.lang-ar {
  font-family: "Cairo", sans-serif;
}

body.lang-en {
  font-family: "Inter", sans-serif;
}

body.lang-ar {
  direction: rtl;
}

body.lang-en {
  direction: ltr;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.language-button:focus {
  box-shadow: 0 0 0 0.15rem rgba(7, 89, 133, 0.1), 0 0 0 0.3rem rgba(245, 158, 11, 0.1);
}

.page-shell {
  padding-top: 2rem;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #fff;
  box-shadow: var(--brand-shadow);
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-primary);
}

.brand-subtitle {
  color: var(--brand-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-link {
  color: var(--brand-text);
  font-weight: 600;
  padding: 0.6rem 1.2rem !important;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-primary);
  background: var(--brand-soft);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.language-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
}

.language-button.active {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.lang-content {
  display: none !important;
}

body.lang-ar .lang-ar,
body.lang-en .lang-en {
  display: block !important;
}

body.lang-ar .lang-ar.d-inline,
body.lang-en .lang-en.d-inline {
  display: inline !important;
}

.hero-section,
.page-banner,
.content-section {
  padding: 4rem 0;
}

.hero-section {
  padding-top: 3rem;
  background: linear-gradient(to bottom, transparent, #fff);
}

.hero-card,
.content-card,
.info-card,
.placeholder-card,
.stat-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  box-shadow: var(--brand-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover,
.content-card:hover,
.info-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--brand-shadow-lg);
}

.hero-card,
.content-card,
.info-card {
  padding: 2.5rem;
}

.section-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-soft);
  color: var(--brand-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid var(--brand-border);
}

.hero-title,
.page-title,
.section-heading h2 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--brand-text);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.025em;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero-text,
.page-intro,
.content-card p,
.info-card p,
.hero-card p,
.footer-text,
.stat-card p {
  color: var(--brand-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-brand,
.btn-outline-brand {
  padding: 0.85rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-brand {
  background: var(--brand-primary);
  color: #fff;
  border: none;
}

.btn-brand:hover,
.btn-brand:focus {
  background: #0369a1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(7, 89, 133, 0.3);
}

.btn-outline-brand {
  border: 2px solid var(--brand-border);
  background: transparent;
  color: var(--brand-primary);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--brand-shadow-lg);
}

.hero-card-content h2,
.content-card h2,
.info-card h2,
.info-card h3,
.content-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--brand-text);
}

.section-soft {
  background: #f8fafc;
}

.section-heading {
  max-width: 60rem;
  margin-bottom: 3.5rem;
}

.section-heading > span {
  display: inline-block !important;
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.stats-grid,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2rem;
}

.stat-card {
  padding: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.content-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--brand-shadow-lg);
}

.vision-card {
  position: relative;
  overflow: hidden;
  background: white;
}

.vision-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  z-index: 1;
}

.vision-card-inner {
  position: relative;
  z-index: 2;
}

.brand-showcase {
  padding: 2rem;
  border-radius: 32px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
}

.brand-showcase-logo {
  border-radius: 24px;
  box-shadow: var(--brand-shadow-lg);
  border: 4px solid #fff;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--brand-shadow);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--brand-shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.placeholder-card {
  min-height: 250px;
  padding: 2rem;
  border-style: solid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.site-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-text {
  color: #94a3b8;
  max-width: 30rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #94a3b8;
  font-weight: 500;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-card {
    margin-top: 3rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .btn-brand, .btn-outline-brand {
    width: 100%;
  }
}

  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(15, 118, 110, 0.05));
}

.placeholder-card-compact {
  min-height: 160px;
  margin-top: 1rem;
}

.site-footer {
  background: #0d2334;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.footer-text {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
}

@media (max-width: 991.98px) {
  .site-navbar {
    padding: 0.8rem 0;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.96);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 24px;
    box-shadow: var(--brand-shadow);
  }

  .nav-link {
    text-align: center;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding-top: 1rem;
  }

  .hero-section,
  .page-banner,
  .content-section {
    padding: 1rem 0 3rem;
  }

  .hero-card,
  .content-card,
  .info-card,
  .placeholder-card {
    border-radius: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-brand,
  .btn-outline-brand {
    width: 100%;
  }
}
