/* =============================================================
   front-page.css — extracted from front-page.php inline <style>
   2026-04-22. Contains all homepage section styles: hero,
   about, services, vision, benefits, projects.
   Only enqueued on is_front_page(). Overridden by style.css.
   ============================================================= */

/* Hero styles moved entirely to style.css (single source of truth) */


/*******************************************************
 * ABOUT SECTION (من نحن؟)
 *******************************************************/

/* Main container (background, spacing) */
.about-section {
  width: 100%;
  background-color: #f9f9f9; /* or a gradient if you prefer */
  padding: 60px 20px; 
  direction: rtl; /* Arabic right-to-left text */
}

/* Center content and limit max width */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column grid: left = logo, right = text & buttons */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; 
  gap: 2rem;
  align-items: center; /* vertically center content */
}
@media (max-width: 768px) {
  /* Stacks columns on small screens */
  .about-grid {
grid-template-columns: 1fr;
text-align: center;
  }
}

/* Each column */
.about-col {
  /* no extra styling by default */
}

/* LOGO COLUMN */
.about-col-left {
  display: flex;
  justify-content: center; /* center the logo horizontally */
  align-items: center;
}
.about-logo {
  width: 200px; /* adjust as needed */
  height: auto;
  display: block;
}

/* RIGHT COLUMN */
.about-col-right {
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  text-align: right; /* maintain Arabic alignment on desktop */
}
@media (max-width: 768px) {
  .about-col-right {
text-align: center; /* if you want center text on mobile */
  }
}

/* Title */
.about-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f3d1e; /* brand color */
}

/* Description */
.about-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

/* Buttons container */
.about-buttons {
  display: flex; 
  gap: 1rem;
  flex-wrap: wrap; 
  /* justify-content: flex-start; if you want them left-aligned */
}

/* Individual button styling */
.about-btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  background-color: #0f3d1e;
  color: #fff;
  transition: background-color 0.3s, transform 0.3s;
}
.about-btn:hover {
  background-color: #1e6b35;
  transform: translateY(-2px);
}

/************************************************************
 * SERVICES (Wave + Flag-Style Cards) with 5 columns on desktop
 * and 2 columns on mobile, plus a bigger hover effect
 ************************************************************/
.services-wave-section {
  position: relative;
  padding: 100px 20px;
  direction: rtl; 
  text-align: center; 
  overflow: hidden;
  background: #f9f9f9;
}
/* Container — above waves */
.services-content-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Title & Subtitle */
.services-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.services-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

/* Grid => 5 columns on desktop, 2 columns on mobile */
.services-grid-flag {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for large screens */
  justify-items: center;
}

@media (max-width: 768px) {
  .services-grid-flag {
grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile already set */
gap: 1rem; /* Reduce gap on mobile */
padding: 0 10px; /* Add some padding on the sides */
width: 100%; /* Ensure width is contained */
box-sizing: border-box; /* Include padding in width calculation */
  }
  
  .service-flag-card {
width: 100%; /* Make cards take full width of their grid cell */
max-width: 160px; /* Limit maximum width */
margin: 0 auto; /* Center the cards */
  }
}

/* Each card => white rectangle with diagonal “flag” banner at top */
.service-flag-card {
  background: #fff;
  width: 220px; /* smaller base width to allow 5 in a row */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden; 
  position: relative;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-flag-card:hover {
  transform: translateY(-4px) scale(1.02) rotate(-0.5deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .service-flag-card {
width: 180px;
  }
}

/* Diagonal banner => .flag-header using clip-path */
.flag-header {
  position: relative;
  background: linear-gradient(90deg, #0f3d1e, #1e6b35);
  height: 80px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-icon {
  font-size: 2rem;
  color: #fff;
  z-index: 2;
}

/* Body => service name + short description */
.flag-body {
  padding: 16px;
}
.flag-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f3d1e; 
  margin-bottom: 0.4rem;
}
.flag-body p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.4;
}

/* Optional overlay on hover for more “pop” 
   We can do a partial gradient overlay 
*/
.service-flag-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0), rgba(0,0,0,0.15));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.service-flag-card:hover::before {
  opacity: 0.1;
}

/* Ensure text is above the overlay */
.service-flag-card > * {
  position: relative;
  z-index: 2;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .flag-header {
height: 60px;
  }
  .service-icon {
font-size: 1.8rem;
  }
  .flag-body h3 {
font-size: 0.95rem;
  }
  .flag-body p {
font-size: 0.8rem;
  }
  
  .services-title {
color: #000;
}

  .services-subtitle {
color: #000;
}
}

/************************************************************
 * VISION SECTION (Wave BG + 2-Column + Big Icon + Tab Card)
 ************************************************************/
.vision-wave-section {
  position: relative;
  padding: 80px 20px;
  direction: rtl;
  color: #fff;
  overflow: hidden;
  background: #f9f9f9;
  text-align: center;
}
/* Container */
.vision-container {
  position: relative;
  z-index: 2; /* above wave */
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0; /* spacing for content */
}

/* Vision/Mission/Goals layout is now handled by .vm-* classes in style.css */

/************************************************************
 * 4 BENEFITS (Diagonal BG + Glass Cards + 3D TILT)
 * + Wave Top & Bottom + Fade-In (Enhanced Vibrant Style)
 * Colors Adjusted => Icons Green, Texts Black
 ************************************************************/

/* Parent Section => wave top & bottom + diagonal BG */
.benefits-diagonal-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  direction: rtl;
  overflow: hidden;
  text-align: center;
}
/* Main container */
.benefits-diagonal-container {
  position: relative;
  z-index: 3; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Section Title => now black */
.benefits-diagonal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000; 
  margin-bottom: 2rem;
}
/* fade-up-active — triggered by IntersectionObserver on scroll */
.fade-up-active {
  transform: translateY(0);
  opacity: 1;
}