/* ===== Variables ===== */
:root {
  --primary: #c41e3a;
  --primary-dark: #a01830;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-light: #f8f8f8;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-links a:hover { color: var(--primary); }
.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-info a,
.contact-info .hours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.contact-info a:hover { color: var(--primary); }

/* ===== Main Navigation ===== */
.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav .logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-links .btn-nav {
  background: var(--primary);
  color: #fff !important;
  margin-right: 8px;
}
.nav-links .btn-nav:hover {
  background: var(--primary-dark);
  color: #fff !important;
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 80px;
  background: var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.hero-brand {
  text-align: center;
}
.hero-logo {
  margin-bottom: 20px;
}
.hero-logo .logo-img {
  width: 180px;
  height: auto;
  max-height: 200px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.abstract-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.hero-brand .brand-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}
.hero-brand .brand-name.brand-gradient {
  background: linear-gradient(90deg, #1e3a5f 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-brand .brand-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}
.hero-brand .brand-tagline .brand-for {
  font-weight: 700;
  background: linear-gradient(90deg, #1e3a5f 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content .hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px 0;
  color: var(--text);
}
.hero-content .hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px 0;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Services ===== */
.services {
  padding: 80px 0 100px;
  background: var(--bg-light);
}
.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px 0;
  color: var(--text);
}
.section-title .highlight {
  color: var(--primary);
  display: inline-block;
  padding: 0 4px;
  border: 2px solid var(--primary);
  border-radius: 4px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px 0;
  font-size: 1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 50px 50px;
  border-color: transparent transparent var(--primary) transparent;
  opacity: 0.15;
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.card-icon svg { width: 28px; height: 28px; }
.card-icon.consultancy,
.card-icon.academic { color: #1D3557; background: rgba(29,53,87,0.1); }
.card-icon.digital { color: #555; background: rgba(0,0,0,0.06); }
.card-icon.financial { color: var(--primary); background: rgba(196,30,58,0.1); }
.card-icon.admin { color: #555; background: rgba(0,0,0,0.06); }
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text);
  line-height: 1.4;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.6;
}
.card-link {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.85; }

/* ===== CTA Bar ===== */
.cta-bar {
  background: #2d2d2d;
  color: #fff;
  padding: 28px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}
.cta-bar .btn-primary:hover { background: var(--primary-dark); }

/* ===== Location & Map ===== */
.location {
  padding: 60px 0 80px;
  background: var(--bg);
}
.location .section-title { margin-bottom: 8px; }
.location-address {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 28px;
}
.btn-map svg { flex-shrink: 0; }
.location .container { text-align: center; }
.map-embed {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe { display: block; }

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 28px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}
.footer-brand .footer-title {
  font-weight: 700;
  color: #ccc;
  margin: 0 0 4px 0;
  font-size: 0.95rem;
}
.footer p { margin: 4px 0; font-size: 0.9rem; }
.footer a { color: #ccc; }
.footer a:hover { color: #fff; }
.footer-social { margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-brand { order: 1; }
  .hero-content { order: 2; }
  .hero-content .hero-title { font-size: 2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 16px 0;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-sep { display: none; }
  .mobile-menu-btn { display: flex; margin-right: auto; }
  .main-nav .logo { margin-right: 0; margin-left: auto; }
  .nav-links .btn-nav { margin: 8px 0 0 0; }
  .hero { padding: 40px 0 60px; }
  .hero-content .hero-title { font-size: 1.65rem; }
  .section-title { font-size: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .top-bar-inner { flex-direction: column; align-items: flex-start; }
  .contact-info { flex-direction: column; gap: 8px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
}
