/* ============================================
   ZAD Al Sahraa - Professional Theme
   RTL • Dark Blue + Gray + White
   ============================================ */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2744;
  --secondary: #4a5568;
  --light: #f7fafc;
  --white: #ffffff;
  --accent: #2b6cb0;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Segoe UI', sans-serif;
  direction: rtl;
  color: var(--secondary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ----- Header ----- */
.site-header {
  background: var(--primary);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  padding: 0.75rem 0;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo container: white background to match logo.jpg white background */
.site-header .logo-wrap {
  background: var(--white);
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
}

.site-header .navbar-brand img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-header .navbar-brand span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15);
}

.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0.6rem;
}

.site-header .navbar-toggler-icon {
  filter: invert(1);
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2d3748 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(43, 108, 176, 0.3) 0%, transparent 50%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .btn-whatsapp {
  background: #25d366;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.hero .btn-whatsapp:hover {
  background: #20bd5a;
  color: var(--white);
  transform: translateY(-2px);
}

/* ----- Sections ----- */
section {
  padding: 4rem 0;
}

.section-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--secondary);
  margin-bottom: 2.5rem;
}

.bg-light-custom {
  background: var(--light);
}

/* ----- Why Choose Us ----- */
.why-card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-card .icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--secondary);
}

/* ----- About intro ----- */
.about-intro p {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ----- Page headers (inner pages) ----- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3rem 0;
  margin-bottom: 0;
}

.page-header h1 {
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
}

/* ----- About page blocks ----- */
.about-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.about-block h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.about-block p {
  margin: 0;
  color: var(--secondary);
}

/* ----- Contact ----- */
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.contact-form label {
  font-weight: 600;
  color: var(--primary);
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: background 0.2s;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.contact-info-card {
  background: var(--light);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.contact-info-card h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.map-wrapper {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  background: var(--light);
}

.map-wrapper iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

/* Footer logo: white background to match logo.jpg */
.site-footer .footer-logo {
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer .footer-logo img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.site-footer .footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: var(--white);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ----- WhatsApp float button ----- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1020;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, background 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: #20bd5a;
  color: var(--white);
}

/* ----- Utilities ----- */
.text-primary-custom {
  color: var(--primary) !important;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  section {
    padding: 3rem 0;
  }

  .site-footer .footer-logo,
  .site-footer .footer-links {
    text-align: center;
  }

  .site-footer .footer-links {
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .lead {
    font-size: 1rem;
  }
}
