@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #122033;
  --text-soft: #51627a;
  --primary: #0d5c9a;
  --primary-dark: #0a4776;
  --accent: #16a34a;
  --line: #d6e1ee;
  --shadow-sm: 0 10px 30px rgba(13, 36, 66, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --nav-height: 88px;
  --footer-height: 74px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(13, 92, 154, 0.08), transparent 33%),
    radial-gradient(circle at 84% 20%, rgba(22, 163, 74, 0.07), transparent 38%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: calc(var(--footer-height) + 34px);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

.separator {
  width: min(1200px, 94%);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 15%, var(--line) 85%, transparent 100%);
  margin: 0.4rem auto;
}

.navbar {
  width: 100%;
  padding: 0.75rem clamp(0.9rem, 2.4vw, 2.4rem);
  background: rgba(8, 26, 47, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  box-shadow: 0 8px 24px rgba(2, 15, 30, 0.3);
  backdrop-filter: blur(8px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-links a {
  color: #e7edf5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-logo-img {
  height: 50px;
  width: 102px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
}

.contact-buttons {
  margin-top: 16px;
  text-align: center;
}

.call-btn,
.whatsapp-btn {
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  color: #ffffff;
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-btn {
  background: var(--primary);
}

.whatsapp-btn {
  background: var(--accent);
}

.call-btn:hover,
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
  color: #d8e4f0;
  font-size: 0.95rem;
  background: #071a2d;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 110;
}

html[lang='ar'] body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
}

html[lang='ar'] .navbar {
  direction: rtl;
}

html[lang='ar'] .nav-links {
  flex-direction: row-reverse;
}

html[lang='ar'] p,
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] h4 {
  font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
  letter-spacing: 0;
}

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

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a {
    font-size: 0.86rem;
    padding: 0.48rem 0.72rem;
  }

  .nav-logo-img {
    width: 84px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 225px;
    --footer-height: 86px;
  }

  body {
    padding-top: calc(var(--nav-height) + 14px);
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    top: 0;
  }

  .nav-logo {
    order: -1;
    text-align: center;
  }

  .nav-logo-img {
    margin: 0 auto;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .call-btn,
  .whatsapp-btn {
    display: block;
    width: min(280px, 90%);
    margin: 10px auto;
  }

  .contact-buttons a {
    display: block;
    width: min(280px, 90%);
    margin: 10px auto;
  }

  footer {
    font-size: 0.84rem;
    line-height: 1.4;
    padding: 0.8rem;
  }
}
