/* 
   Emirify Installation and Maintenance - Main Stylesheet
   Author: Myrix Labs
   Version: 1.0
*/

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #0056b3;
  --secondary-color: #e63946;
  --accent-color: #ffd166;
  --dark-color: #1d3557;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --body-font: 'Poppins', sans-serif;
  --arabic-font: 'Tajawal', sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--body-font);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed navbar */
}

body.rtl {
  font-family: var(--arabic-font);
  text-align: right;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #003d7a;
}

.btn {
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #d12a37;
  border-color: #d12a37;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.section-title p {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background-color: white;
}

.services-header h1 {
  color: #fff;
}

.navbar {
  padding: 15px 0;
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 80%;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.language-switch {
  font-weight: 600;
  color: var(--secondary-color) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 180px 0;
  color: white;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ===== SERVICES SECTION ===== */
.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 30px;
  height: 100%;
}


.service-detail-card .service-detail-img {
  object-fit: cover;
  object-position: 30% center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-img {
  border-radius: 8px;
  overflow: hidden;
}

.about-content h2 {
  margin-bottom: 20px;
}
.about-header h1 {
  color: var(--light-color);
}
.about-content p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.about-features {
  margin-top: 30px;
}

.about-feature-item {
  margin-bottom: 15px;
}

.about-feature-item i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* ===== DIVISIONS SECTION ===== */
.division-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
  height: 300px;
}

.division-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.division-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  transition: var(--transition);
}

.division-card:hover .division-img {
  transform: scale(1.1);
}

.division-card:hover .division-overlay {
  background: linear-gradient(to top, rgba(0, 86, 179, 0.9), transparent);
}

.division-overlay h3 {
  color: white;
  margin-bottom: 10px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTACT SECTION ===== */
.contact-info-item {
  margin-bottom: 30px;
}

.contact-icon {
  margin-right: 16px; /* or 1rem */
  padding: 0.7rem !important; 
  font-size: 1.1rem; 
  width: 2.2rem;    
  height: 2.2rem;    
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make Contact Us h1 white in contact header */
.contact-header h1 {
  color: #fff;
}

.contact-info-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-info-item h4 {
  margin-bottom: 10px;
}

.contact-info-item p, .contact-info-item a {
  color: var(--gray-color);
}

.contact-form .form-control {
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 20px;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.g-recaptcha {
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--dark-color);
  color: #fff;
}
.site-footer h5{
  color: #fff !important;
}

.footer-logo {
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding-left: 0;
}

.footer-contact li {
  margin-bottom: 10px;
}

.footer-contact li i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-contact a {
  color: #ddd;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .about-img {
    margin-bottom: 30px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}
