:root {
  --brand: #17375e;
  --brand-strong: #0d2543;
  --brand-soft: #eaf3ff;
  --accent: #f4a41d;
  --accent-soft: #fff2d9;
  --text: #122033;
  --muted: #5c6b7b;
  --border: #dfe8f2;
  --surface: #ffffff;
  --surface-alt: #f7faff;
  --shadow: 0 18px 40px rgba(23, 55, 94, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(244, 164, 29, 0.10), transparent 26%),
    linear-gradient(180deg, #fdfefe 0%, #f7faff 100%);
  color: var(--text);
  line-height: 1.75;
}

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

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

/* === NAVBAR === */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 232, 242, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 16px;
  flex-wrap: wrap;
}

nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand);
  white-space: nowrap;
  margin-right: auto;
}

nav .brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-soft);
}

nav a:not(.brand) {
  color: var(--muted);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

nav a:not(.brand):hover,
nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

/* === MAIN CONTENT === */
main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* === HEADINGS === */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  color: var(--brand-strong);
  margin-bottom: 24px;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--brand-strong);
  margin-bottom: 12px;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  color: var(--brand-strong);
  margin-bottom: 8px;
  font-weight: 800;
}

/* === SECTIONS === */
.section {
  padding: 44px 0 8px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--muted);
  max-width: 720px;
  margin: 8px 0 0;
}

/* === BADGES === */
.section-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 12px;
}

/* === CARDS === */
.card,
.info-card,
.feature-card,
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(18, 32, 51, 0.04);
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.card:hover,
.info-card:hover,
.feature-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 55, 94, 0.12);
  border-color: rgba(23, 55, 94, 0.1);
}

.card p,
.info-card p,
.feature-card p,
.service-card p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.8;
}

.card p:last-child,
.info-card p:last-child,
.feature-card p:last-child,
.service-card p:last-child {
  margin-bottom: 0;
}

/* === GRID LAYOUTS === */
.info-grid,
.features-grid,
.services-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

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

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

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

/* === BUTTONS === */
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.primary-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  padding: 13px 22px;
  box-shadow: 0 12px 28px rgba(23, 55, 94, 0.18);
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23, 55, 94, 0.25);
}

.secondary-action {
  border: 1px solid var(--border);
  padding: 13px 20px;
  background: var(--surface);
  color: var(--brand);
}

.secondary-action:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* === FOOTER === */
footer {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: white;
  text-align: center;
  padding: 32px 16px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
}

footer p {
  margin: 8px 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 12px 16px;
  }

  nav .brand {
    margin-right: 0;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  nav a:not(.brand) {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .info-grid,
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  main,
  .container {
    padding: 28px 0 40px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 8px 12px;
  }

  nav .brand img {
    width: 38px;
    height: 38px;
  }

  nav .brand {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .card,
  .info-card,
  .feature-card,
  .service-card {
    padding: 16px 14px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
