




/* ==========================================
   Global Reset & Base Styles
   ========================================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: url('/images/wood-bg3.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}




/* 1) استقرار عام */
html {
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges; /* يمنع اختلاف العرض بسبب شريط التمرير */
}


@media (max-width: 768px) {
  /* حماية من التمايل الأفقي بسبب 100vw أو سكروول */
  html, body { max-width: 100%; overflow-x: hidden; }


  /* 4) منع تكبير النص التلقائي على iOS */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

}








/* ==========================================
   Main Navbar – Global Style (Relative Units)
   ========================================== */
/* ===== Desktop (≥768px) ===== */
@media (min-width: 48em) {
 .main-nav {
  display: flex;
  justify-content: space-between;  /* Pastura يسار / USA يمين */
  align-items: center;             /* محاذاة عمودية وسط */
  padding: 1vh 2vw;
  background-color: rgba(105, 64, 64, 0.85);
  height: 12vh;                    /* شريط مرن */
  box-shadow: 0 .2vh .8vh rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 3000;
  box-sizing: border-box;
}

  .nav-links ul {
    display: flex;
    gap: 2vw;
    list-style: none;
    margin: 0;
    padding: 0;
  }

 .main-nav a {
  flex: 0 1 auto;                     /* يسمح لها بالتقلص */
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #fff;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  background: #533939;
  border-radius: 0.5rem;
  white-space: nowrap;                /* ما يتكسر النص */
  max-width: 45%;                     /* نصف عرض الشريط تقريبًا */
  overflow: hidden;                   /* يخفي النص الزايد */
  text-overflow: ellipsis;            /* يضيف … إذا صار النص طويل */
}


  .main-nav a:hover { color: #ffd5d5; }
}

/* ===== Mobile (≤767px) ===== */
@media (max-width: 47.9em) {
 .main-nav {
  display: flex;
  justify-content: space-between;  /* Pastura يسار / USA يمين */
  align-items: center;             /* محاذاة عمودية وسط */
  padding: 1vh 2vw;
  background-color: rgba(105, 64, 64, 0.85);
  height: 10vh;                    /* شريط مرن */
  box-shadow: 0 .2vh .8vh rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
   left: 0;
  width: 100%;
  z-index: 3000;
  box-sizing: border-box;
}






  .nav-links ul {
    display: flex;
    gap: 4vw; /* فراغ أكبر للموبايل */
    list-style: none;
    margin: 0;
    padding: 0;
  }

 .main-nav a {
  flex: 0 1 auto;                     /* يسمح لها بالتقلص */
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #fff;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  background: #533939;
  border-radius: 0.5rem;
  white-space: nowrap;                /* ما يتكسر النص */
  max-width: 45%;                     /* نصف عرض الشريط تقريبًا */
  overflow: hidden;                   /* يخفي النص الزايد */
  text-overflow: ellipsis;            /* يضيف … إذا صار النص طويل */
}


  .main-nav a:hover { color: #ffd5d5; }
}






/* ==========================================
   Contact Page Styles
   ========================================== */
.contact-section {
  max-width: 700px; margin: 18vh auto; padding: 2rem; background-color: #ebe8e8 !important;
  border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}
.info-box, .form-box { display: flex; flex-direction: column; gap: 1rem; }
.info-box h2, .form-box h2 { text-align: center; font-size: 1.8rem; color: #185a39; margin-bottom: 1rem; }
.info-box p { text-align: center; font-size: 1rem; color: #313131; }
.info-box a { color: #10744a; text-decoration: none; }
.info-box a:hover { text-decoration: underline; }
.form-box form { display: flex; flex-direction: column; gap: 1rem; }
.form-box input, .form-box textarea {
  padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid #ddd; border-radius: 6px; width: 100%; box-sizing: border-box;
}
.form-box textarea { min-height: 150px; resize: vertical; }
.form-box button {
  padding: 0.75rem; background-color: #28a745; color: white; font-size: 1.1rem; font-weight: bold; border: none; border-radius: 6px;
  cursor: pointer; transition: background-color 0.3s ease;
}
.form-box button:hover { background-color: #218838; }
#form-status { margin-top: 1rem; text-align: center; font-weight: bold; }








:root {
  --contact-h1-top: 15vh;     /* الإزاحة العمودية */
  --contact-h1-left: 0;    /* الإزاحة الأفقية */
}

.contact-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);  /* حجم مرن */
  font-weight: 800;
  color: #006400;                         /* أخضر رئيسي */
  text-align: center;
  margin: 0 auto;                         /* تمركز افتراضي */
  line-height: 1.2;
  letter-spacing: 0.05em;

  /* إمكانية الإزاحة */
  position: relative;
  top: var(--contact-h1-top);
  left: var(--contact-h1-left);

  /* تحسين المظهر */
  text-shadow: 0 .1rem .25rem rgba(0,0,0,.15);
}


