/* شعار شريط التنقل — إطار ذهبي من الصورة فقط (index.php) */

.header-inner--home .brand--home-gold {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.header-inner--home .brand--home-gold:hover,
.header-inner--home .brand--home-gold:focus-visible {
  box-shadow: none;
}

.header-inner--home .brand--home-gold {
  min-width: 0;
  flex-shrink: 1;
}

.header-inner--home .brand--home-gold .brand__logo--home-gold {
  display: block;
  width: min(148px, 100%);
  max-width: 100%;
  height: auto;
  min-width: 0;
}

@media (max-width: 768px) {
  .header-inner--home .brand--home-gold .brand__logo--home-gold {
    max-width: min(132px, calc(100vw - 10rem));
  }
}

/* Homepage section rhythm (index.php only — .main--home) */

.main--home {
  --home-section-gap: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 769px) {
  .main--home {
    --home-section-gap: clamp(2.5rem, 2.8vw, 3.5rem);
  }
}

.main--home > .section {
  padding-top: calc(var(--home-section-gap) / 2);
  padding-bottom: calc(var(--home-section-gap) / 2);
}

.main--home > .news-ticker:not([hidden]) {
  margin-top: 12px;
  margin-bottom: calc(var(--home-section-gap) / 2);
}

.main--home > .news-ticker:not([hidden]) + .section {
  padding-top: calc(var(--home-section-gap) / 2);
}

.main--home > .news-ticker[hidden] + .section {
  padding-top: var(--home-section-gap);
}

.main--home .section__header {
  margin-bottom: clamp(1.15rem, 2.5vw, 1.75rem);
}

.main--home .services-content__header {
  margin-bottom: var(--space-md);
}

/* أزرار نهاية الأقسام (يسار فعلي في RTL ولداخل حاويات LTR) — الصفحة الرئيسية فقط */
.main--home .section-footer-cta {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: var(--space-md) 0 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.main--home .section-footer-cta .btn {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.main--home .contact-header {
  margin-bottom: var(--space-md);
}

/* قسم خدماتنا — بطاقات نصية فقط (index.php، بدون صور البطاقات) */
.main--home .services-section .services-list--text-only {
  gap: var(--space-md) var(--space-lg);
}

.main--home .services-section .services-list--text-only .services-list__item {
  padding-top: 0.55rem;
}

.main--home .services-section .services-list--text-only .services-list__item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.main--home .services-section .services-list--text-only .services-list__item > p:not(.services-list__links) {
  font-size: 0.95rem;
  line-height: 1.5;
}

.main--home .services-section .services-list--text-only .services-list__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.main--home .services-section .services-list--text-only .services-list__link {
  color: var(--color-text);
  text-decoration: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.45);
}

.main--home .services-section .services-list--text-only .services-list__link:hover,
.main--home .services-section .services-list--text-only .services-list__link:focus-visible {
  color: var(--color-gold-soft);
  text-decoration: underline;
}

.main--home .services-section .services-list--text-only .services-list__link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.main--home .services-section .services-list--text-only .services-list__links-sep {
  color: rgba(197, 155, 39, 0.55);
  font-weight: 400;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
