.header {
  width: 100%;
  height: 100vh;
  max-height: 900px;
  min-height: 500px;
  position: relative;
  overflow: visible;
}

.header > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  clip-path: inset(0);
}

.header > .abs {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 4, 4, 0.66) -1.6%,
    rgba(5, 4, 4, 0.66) 21.95%,
    rgba(5, 4, 4, 0.4224) 54.56%,
    rgba(43, 39, 39, 0) 110.07%
  );
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.header h1 {
  color: var(--y-color-primary);
  font-weight: 300;
  margin: 0;
}

.header p {
  color: var(--y-color-on-primary);
  margin: 0;
}

header .btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 200px;
  color: #fff;
  font-size: 1.25rem;
  transition: background-color 0.3s, transform 0.2s;
  background-color: var(--y-color-btn);
  font-weight: 600;
  z-index: 2;
}

header .btn:hover {
  background-color: var(--y-color-btn-hover, #c0392b);
  transform: scale(1.05);
}

@media (max-width: 820px) {
  .header {
    max-height: 30vh;
    min-height: 200px;
  }

  .header h1 {
    font-size: var(--y-font-size-5xl);
  }

  .header p {
    font-size: 1.5rem;
  }

  header .btn {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }
}

/* زر وقائمة اطلب الآن (الهيرو فقط) */
.y-u-hero-dropdown{position:relative;display:inline-block}
.y-u-hero-dropdown .btn{position:relative}
.y-u-hero-dropdown .btn::after{
  content:" ▾"; font-size:.9em; vertical-align:middle
}

/* تموضع القائمة تحت زر اطلب الآن */
.y-c-hero__dropdown-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  width: max-content;        /* بحجم المحتوى */
  min-width: unset;          /* ألغِ الحد الأدنى */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 0;            /* padding رأسي صغير فقط */
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  z-index: 1000;
  text-align: center;        /* وسط النصوص */
}
.y-u-hero-dropdown [aria-expanded="true"] + .y-c-hero__dropdown-menu{display:block}

/* عناصر القائمة */
.y-c-hero__dropdown-item{
  display: block;
  padding: 6px 14px;         /* توازن بين اليمين واليسار */
  white-space: nowrap;
  color: #000;
  text-decoration: none;
}
.y-c-hero__dropdown-item:hover{
  background: #f6f6f6;
}

@media (max-width: 820px) {
  .y-c-hero__dropdown-menu{
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
  }
}


.header + * {
  position: relative;
  z-index: 0;
  margin-top: 0;
}
