/*
Theme Name: Alwaleed
Theme URI: https://alwaleedgc.com
Author: Farooq Hassan
Author URI: https://alwaleedgc.com
Description: A bilingual construction company theme for WordPress in English and Arabic.
Version: 1.0
Text Domain: alwaleed
*/

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #222;
}

h1, h2, h3 {
  margin-bottom: 20px;
  font-weight: 600;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.hero {
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
}

header.hero .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 50px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  margin: auto;
}

header.hero img {
  max-width: 150px;
  margin-bottom: 20px;
}

.buttons {
  margin-top: 20px;
}

.btn {
  background-color: #0073aa;
  padding: 10px 20px;
  color: white;
  border-radius: 5px;
  margin: 5px;
  display: inline-block;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.about img,
.vision img,
.project-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact button {
  background-color: #0073aa;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #005f8d;
}

.contact-details p {
  margin: 5px 0;
}

footer {
  background-color: #f8f8f8;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.lang-switcher {
  text-align: right;
  padding: 10px 20px;
}

.lang-btn {
  margin-left: 10px;
  font-weight: bold;
}

.why-us ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.why-us ul li::before {
  content: '✔️';
  margin-right: 10px;
  color: green;
}

/* RTL Support */
html[dir='rtl'] body {
  text-align: right;
}

html[dir='rtl'] .btn.secondary {
  border-color: white;
}
nav.main-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav.main-menu ul li {
  display: inline;
}

nav.main-menu ul li a {
  color: #0073aa;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s;
}

nav.main-menu ul li a:hover {
  background: #0073aa;
  color: white;
}
.project-gallery img {
  width: 100%;
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}
/* === Alwaleed Enhancements (May 27) === */

/* Ensure logo height in header */
.site-logo img {
  max-height: 60px;
}

/* Header container layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

/* Improve language switcher layout */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.lang-btn {
  font-weight: bold;
  transition: 0.3s;
}

.lang-btn:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* Highlight active menu item */
nav.main-menu ul li.current-menu-item a {
  background-color: #0073aa;
  color: white;
}

/* Responsive menu gap fix */
nav.main-menu ul {
  flex-wrap: wrap;
}
/* === Header Enhancements (Logo + Language Menu) === */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  height: 80px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.site-logo img {
  height: 100%;
  max-height: 80px;
  object-fit: contain;
}

nav.main-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-menu ul li a {
  color: #0073aa;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s;
}

nav.main-menu ul li a:hover {
  background-color: #0073aa;
  color: white;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.lang-btn:hover {
  text-decoration: underline;
}

/* === Responsive Header === */

.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 30px;
  border: none;
  cursor: pointer;
  color: #0073aa;
}

/* Mobile Menu Logic */
@media (max-width: 768px) {
  nav.main-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px;
    border-top: 1px solid #ddd;
  }

  body.menu-open nav.main-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-container {
    position: relative;
  }
}
