/* style.css - ?????? ??????? */

/* VARIABLES */
:root{
  --accent: #0b66c3;
  --dark: #0f1724;
  --muted: #6b7280;
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --container-w: 1100px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(16,24,40,0.06);
  --font-sans: "Cairo", sans-serif;
}

/* GLOBAL */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Cairo", sans-serif !important;
  background:var(--bg);
  color:var(--dark);
  line-height:1.6;
  direction: rtl;
}

/* CONTAINER */
.container{max-width:var(--container-w);margin:0 auto;padding:20px}

/* HEADER */
.site-header{
  background:#fff;
  position:sticky;top:0;z-index:60;
  box-shadow:0 2px 8px rgba(0,0,0,0.04)
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:12px 0
}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.logo-img{width:56px;height:56px;object-fit:cover;border-radius:8px}
.logo-text h1{margin:0;font-size:18px}
.logo-text .tagline{margin:0;font-size:12px;color:var(--muted)}

.main-nav{display:flex;gap:14px}
.main-nav a{
  text-decoration:none;color:var(--muted);
  padding:8px 10px;border-radius:8px
}
.main-nav a:hover{
  background:rgba(11,102,195,0.08);
  color:var(--accent)
}

/* HERO */
.hero{
  position:relative;
  min-height:420px;
  display:flex;align-items:center;
  color:#fff;margin-bottom:18px;
  background-image: url("images/hero.jpg");
  background-size:cover;
  background-position:center right;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.hero-overlay{
  position:absolute;inset:0;
  background: linear-gradient(180deg, rgba(11,102,195,0.92), rgba(11,102,195,0.62));
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.hero-content{
  position:relative;display:flex;gap:24px;
  align-items:flex-start;padding:56px 20px;width:100%
}
.hero-text{flex:1;min-width:260px;max-width:740px}
.hero-text h2{margin:0;font-size:36px;font-weight:700}
.hero-text .lead{color:rgba(255,255,255,0.92);margin:12px 0 20px;font-size:16px}
.btn-primary{
  display:inline-block;background:#fff;color:var(--accent);
  padding:12px 18px;border-radius:10px;text-decoration:none;font-weight:700;
  box-shadow: 0 6px 18px rgba(11,102,195,0.12);
}
.card-quick{
  width:320px;min-width:230px;background:rgba(255,255,255,0.06);
  padding:18px;border-radius:12px;color:#fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(2,6,23,0.15);
}

/* SECTIONS */
.section{padding:34px 0}
.card{
  background:var(--card-bg);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* ABOUT */
.about-grid{
  display:flex;gap:20px;
  align-items:center;flex-wrap:wrap
}
.about-text{flex:1}
.muted{color:var(--muted)}
.bullets{padding-inline-start:18px;margin:12px 0}
.about-image img{
  width:320px;height:220px;
  object-fit:cover;border-radius:12px
}

/* SERVICES */
.grid{display:grid;gap:16px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.services .service{
  padding:18px;border-radius:12px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  text-align:center
}
.service h4{margin:0 0 8px}

/* GALLERY */
.gallery-img{
  width:100%;height:160px;
  object-fit:cover;border-radius:8px
}

/* ? CONTACT SECTION  ????? ??? ?????? */
#contact{
  background:#0b1e2b;
  color:#fff;
  padding:50px 0;
  border-radius: 12px;
}

/* ???? ????? ???? ???? */
#contact h3,
#contact p,
#contact a{
  color:#fff !important;
}

/* ????? ??????? ???? ???? */
.contact-grid{
  background:#ffffff;
  border-radius:12px;
  padding:20px;
  display:grid;
  grid-template-columns:1fr 360px;
  gap:18px;
  align-items:start
}

.contact-info p{margin:8px 0;color:#444}
.contact-form{
  display:grid;gap:10px;margin-top:8px
}
.contact-form input,
.contact-form textarea{
  padding:10px;border-radius:8px;
  border:1px solid #e6e9ef;font-size:14px
}

/* map */
.contact-map iframe{
  width:100%;height:100%;min-height:260px;
  border:0;border-radius:8px;display:block
}

/* FOOTER */
.site-footer{
  background:#0b1e2b;

???????, [07/11/2025 05:31 ?]
color:#fff;padding:22px 0;margin-top:20px
}
.footer-inner{
  display:flex;justify-content:space-between;
  align-items:center;gap:12px
}
.small{font-size:13px}
.rights{text-align:left}

/* RESPONSIVE */
@media (max-width:1000px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
  .hero{background-position:center}
  .card-quick{width:100%}
}
@media (max-width:600px){
  .main-nav{display:none}
  .hero{min-height:360px;padding-bottom:18px}
  .hero-text h2{font-size:24px}
  .grid-3{grid-template-columns:1fr}
  .about-image img{width:100%;height:200px}
  .header-inner{padding:8px}
}

/* ? ????? ????? ???? ?? ?????? */
.site-footer {
  color:#fff !important;
}

.site-footer a {
  color:#fff !important;
}

.site-footer .small {
  color:#fff !important;
}

.site-footer .rights {
  color:#fff !important;
}

.fix-phone {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
  display: inline-block;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Hover lift for cards */
.card, .service {
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms;
  will-change: transform;
}
.card:hover, .service:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.12);
}

/* Fade-in on scroll (initial state) */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle underline animation for nav links */
.main-nav a {
  position: relative;
  overflow: visible;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 6px;
  transition: width 260ms ease;
}
.main-nav a:hover::after { width: 60%; }

/* Button ripple container */
.btn-primary { position: relative; overflow: hidden; }

/* Ripple element */
.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(11,102,195,0.18);
  animation: ripple 600ms linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Back to top button */
#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11,102,195,0.18);
  cursor: pointer;
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: opacity 260ms, transform 260ms;
  z-index: 2000;
}
#backToTop.show { opacity: 1; transform: translateY(0) scale(1); }

/* Lightbox modal (gallery) */
#lightbox {
  position: fixed; inset:0;
  display:none; align-items:center; justify-content:center;
  background: rgba(3,6,12,0.75);
  z-index:3000;
}
#lightbox img { max-width:92%; max-height:86%; border-radius:10px; box-shadow:0 26px 80px rgba(0,0,0,0.6); }
#lightbox.show { display:flex; }

/* Parallax tweak (mobile fallback) */
@media (max-width:600px){
  .hero { background-attachment: scroll; background-position: center; }
}

/* إصلاحات للهاتف - مشاكل انزلاق العناصر */
@media (max-width: 600px) {

  /* إصلاح اللوجو والنص المخفي */
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }

  .logo-text h1 {
    font-size: 16px;
  }

  /* إصلاح صندوق معلومات سريعة */
  .card-quick {
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 20px;
    text-align: center;
  }

  /* إصلاح المحتوى داخل البنر */
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  /* إصلاح أي عناصر تتزحلق يمين/يسار */
  .hero, .hero-content, .card-quick {
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .about-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-image img {
    width: 100% !important;
    max-width: 320px; /* حتى لا تكبر زيادة */
    margin: 0 auto;
  }
}

/* ====== Footer Mobile Fix ====== */
@media (max-width: 600px) {

  .site-footer .footer-inner {
    flex-direction: column;      /* يخلي العناصر فوق بعض */
    text-align: center;          /* توسيط كل شيء */
    gap: 10px;                   /* مسافة جميلة بين العناصر */
  }

  .site-footer strong {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
  }

  .site-footer .small {
    text-align: center !important;
    display: block;
    width: 100%;
  }

  .site-footer .rights {
    text-align: center !important;
    width: 100%;
  }

  .site-footer a {
    text-align: center !important;
    display: inline-block;
    margin: 0 6px;
  }
}

#services h3 {
  text-align: right !important;
}

.card-quick p,
.card-quick strong {
  color: #fff !important;
}

/* تلوين كامل قسم معلومات سريعة باللون الأبيض */
.card-quick,
.card-quick p,
.card-quick a,
.card-quick strong {
  color: #fff !important;
}

.card-quick a {
  text-decoration: underline; /* اختياري تحافظ على شكل الرابط */
}

#contact h3 {
  text-align: center !important;
}

/* إصلاح تلميح الهاتف ليبدأ من اليمين */
input[name="phone"]::placeholder {
  direction: rtl !important;
  text-align: right !important;
}

input[name="phone"] {
  direction: rtl !important;
  text-align: right !important;
}
input[name="phone"]::placeholder {
  direction: rtl !important;
  text-align: right !important;
}