/* ===============================
   RESET & GLOBAL
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   NAVBAR / HEADER
   (matches: navbar, nav-container, logo img, nav-links)
================================ */
.navbar {
  background: #0b2c3d;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo (HEADER) */
.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;        /* هيدر */
  width: auto;
  max-height: 60px;
  display: block;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f1c40f;
}

/* ===============================
   HERO SECTION
================================ */
.hero {
  height: 70vh;
  background: linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.55)
    ),
    url("../images/background.jpeg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  color: #eee;
  font-size: 18px;
}

/* ===============================
   SECTIONS
================================ */
section {
  padding: 60px 40px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #0b2c3d;
}

/* ===============================
   SERVICES
================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-box {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 100%;
  height: 200px;              /* ارتفاع ثابت للكارت */
  object-fit: contain;        /* الصورة كاملة بدون قص */
  object-position: center;    /* في النص */
  background-color: #f5f5f5;  /* خلفية لو الصورة رأسية */
  margin-bottom: 15px;
  display: block;
}


.service-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0b2c3d;
}

.service-box p {
  font-size: 15px;
}

/* ===============================
   CONTACT PAGE
================================ */
.contact-container {
  max-width: 800px;
  margin: auto;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form button {
  background: #0b2c3d;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.contact-form button:hover {
  background: #f1c40f;
  color: #000;
}

/* ===============================
   FOOTER
   (matches: footer, footer-container, footer-box, footer-logo)
================================ */
.footer {
  background: #0b2c3d;
  color: #fff;
  padding: 50px 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

.footer-box h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f1c40f;
}

.footer-box p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Footer Logo (صغير ومظبوط) */
.footer-logo {
  height: 50px;
  width: auto;
  max-height: 50px;
  margin-bottom: 12px;
  display: block;
}

/* Footer Links */
.footer-box a {
  color: #fff;
  transition: color 0.3s;
}

.footer-box a:hover {
  color: #f1c40f;
}

.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li {
  margin-bottom: 8px;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 13px;
  color: #ddd;
}

/* ===============================
   WHATSAPP FLOAT BUTTON
   (matches: whatsapp-float)
================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    gap: 10px;
    padding: 15px 20px;
  }

  .logo img {
    height: 35px;
    max-height: 35px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  section {
    padding: 45px 20px;
  }

  .footer-logo {
    height: 25px;
    max-height: 25px;
  }
}
