@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap");


:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --orange-start:#f97316;
  --orange-mid:#fb923c;
  --orange-end:#fbbf24;
}

*{box-sizing:border-box;}

body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  scroll-behavior:smooth;
}

a{text-decoration:none;}
a:hover{text-decoration:none;}

/* Topbar */
.topbar{
  background:linear-gradient(90deg,var(--orange-start),var(--orange-end));
  color:#fff;
  font-size:0.9rem;
}
.topbar a{color:#fff;}

/* Navbar */
.navbar{
  background:#ffffff;
  box-shadow:0 1px 12px rgba(15,23,42,.06);
}

.navbar-brand{
  display:flex;
  align-items:center;
  gap:.45rem;
}

.brand-logo{
  height:34px;
  width:auto;
}
@media(max-width:576px){
  .brand-logo{height:28px;}
}

.navbar-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  background:linear-gradient(90deg,var(--orange-start),var(--orange-end));
  -webkit-background-clip:text;
  color:transparent;
}

.brand-line-main{
  font-size:0.95rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.brand-line-sub{
  font-size:0.7rem;
  font-weight:500;
}

/* Nav links */
.nav-link{
  color:#374151 !important;
  font-weight:500;
  margin-inline:.25rem;
}
.nav-link:hover,
.nav-link.active{
  color:var(--orange-start) !important;
}

/* Buttons */
.btn-orange{
  background:linear-gradient(135deg,var(--orange-start),var(--orange-end));
  border:none;
  color:#111827;
  font-weight:600;
  padding:.65rem 1.4rem;
  border-radius:999px;
  box-shadow:0 10px 25px rgba(248,113,22,.35);
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn-orange:hover{
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 16px 32px rgba(248,113,22,.45);
}
.btn-outline-orange{
  border-radius:999px;
  border:1px solid var(--border);
  color:#374151;
  font-weight:500;
  padding:.6rem 1.4rem;
  background:#fff;
  transition:border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-outline-orange:hover{
  border-color:var(--orange-start);
  color:var(--orange-start);
  transform:translateY(-1px);
}

/* Sections */
.section-pad{
  padding:4rem 0;
}
.section-title{
  font-size:2rem;
  font-weight:800;
  margin-bottom:.25rem;
}
.section-subtitle{
  color:var(--muted);
  max-width:36rem;
}

/* Cards */
.card-soft{
  background:var(--card);
  border-radius:1.25rem;
  border:1px solid var(--border);
  box-shadow:0 18px 45px rgba(15,23,42,.04);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-soft:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 55px rgba(15,23,42,.08);
  border-color:#fed7aa;
}

/* Image badge */
.img-badge{
  border-radius:1rem;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 14px 30px rgba(15,23,42,.06);
}
.img-badge img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Pills */
.badge-pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.2rem .8rem;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-size:.8rem;
  border:1px solid #fed7aa;
}
.stat-pill{
  padding:0.7rem 1.1rem;
  border-radius:999px;
  background:#fff7ed;
  font-size:.8rem;
  color:#9a3412;
}

/* Contact card */
.contact-card{
  border-radius:1.5rem;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:0 18px 45px rgba(15,23,42,.04);
}

/* FULL WIDTH HERO SLIDER */
.hero-slider-section{
  position:relative;
  width:100%;
  height:90vh;
  overflow:hidden;
}
.hero-slide-img{
  width:100%;
  height:90vh;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  filter:brightness(70%);
}
.hero-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.45);
}
.hero-caption{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color:#ffffff;
  text-align:left;
  max-width:650px;
}
.hero-caption h1{
  font-size:2.8rem;
  font-weight:800;
  margin-bottom:1rem;
  text-shadow:0 4px 20px rgba(0,0,0,0.45);
}
.hero-caption p{
  font-size:1.1rem;
  opacity:.95;
  margin-bottom:1.5rem;
  text-shadow:0 4px 20px rgba(0,0,0,0.45);
}

/* Logo badge فوق السلايدر */
.hero-logo-badge{
  position:absolute;
  top:1.4rem;
  left:1.4rem;
  z-index:5;
  background:rgba(15,23,42,0.72);
  padding:.4rem 1rem;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:.5rem;
  color:#e5e7eb;
  font-size:.7rem;
  backdrop-filter:blur(4px);
}
.hero-logo-badge img{
  height:26px;
  width:auto;
}
.hero-badge-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.hero-badge-text .brand-line-main{
  font-size:0.75rem;
}
.hero-badge-text .brand-line-sub{
  font-size:0.65rem;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter:invert(1) sepia(1) saturate(5) hue-rotate(330deg);
}

@media(max-width:768px){
  .hero-slider-section,
  .hero-slide-img{
    height:75vh;
  }
  .hero-caption h1{
    font-size:1.9rem;
  }
  .hero-caption p{
    font-size:1rem;
  }
  .hero-logo-badge{
    top:1rem;
    left:1rem;
    padding:.35rem .75rem;
  }
  .hero-logo-badge img{
    height:22px;
  }
}

/* Footer */
.footer{
  background:#0f172a;
  color:#e5e7eb;
  padding:2.5rem 0 1rem;
  margin-top:3rem;
}
.footer a{color:#e5e7eb;}
.footer a:hover{color:#fdba74;}

.footer-brand{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:.5rem;
}
.footer-logo{
  height:32px;
  width:auto;
}
.footer-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.footer-brand-text .brand-line-main{
  font-size:0.9rem;
}
.footer-brand-text .brand-line-sub{
  font-size:0.7rem;
}

/* AOS smooth */
[data-aos]{
  transition-property:transform,opacity;
}

/* CLIENT LOGOS GRID */
.client-logo-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.client-logo-card img {
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: 0.25s ease;
}

.client-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}

.client-logo-card:hover img {
  filter: grayscale(0%);
}

/* ===== Gallery thumbnails: same size ===== */
.gallery-grid .gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 70%;        /* نسبة ارتفاع/عرض موحدة لجميع الصور */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  background: #0f172a;
}

.gallery-grid .gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* يقص الصورة لتناسب الإطار */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.95;
}

/* ===== تحسين عرض الهواتف لكل الأقسام الرئيسية ===== */
@media (max-width: 767.98px) {
  .hero-caption {
    padding-inline: 1rem;
  }

  .hero-caption h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .card-soft {
    padding: 1.25rem !important;
  }

  .managing-director-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .director-photo {
    width: 100%;
    max-width: 260px;
  }

  .topbar .small {
    font-size: 0.75rem;
  }
}
