/* ==========================================================
   Webyan Custom — Integration Additions
   تكملة لعناصر مدمجة مع Razor Components
   ========================================================== */

/* ───────────────────────────
   Global Layout Fixes
   ─────────────────────────── */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* إصلاح مشكلة intl-tel-input التي تسبب scrollbar أفقي */
.iti {
  width: 100%;
}

.iti__country-list {
  max-width: calc(100vw - 2rem);
  overflow-x: hidden;
}

/* منع أي عنصر من تجاوز حدود الشاشة أفقياً */
.container,
.container-fluid,
.container-wide,
.container-narrow,
.wb-container,
.site-header,
.site-footer,
.wy-footer,
section,
.hero2,
.trust-bar {
  /* max-width: 100%; */
  overflow-x: clip;
}

/* إخفاء لوحة الإعدادات العائمة القديمة (settings-panel من مكوّن Cultur) */
.settings-panel {
  display: none !important;
}

/* إخفاء نص "Loading..." من Zoho SalesIQ أثناء التهيئة */
#zsiq_float .siqbtn-hover,
#zsiq_float .zsiq_loading,
.zsiq_loading,
.siq_loading {
  display: none !important;
}

/* إخفاء نص Loading في المودال قبل تحميل المحتوى */
#main-modal-content:empty,
generic-modal-body:empty {
  display: none !important;
}

/* ───────────────────────────
   Section Spacing
   ─────────────────────────── */
.section {
  padding: 80px 0;
}

.section-mist {
  background: var(--surface-mist, #f5f7fb);
}

/* ───────────────────────────
   Footer
   ─────────────────────────── */
.wy-footer {
  background: var(--brand-navy-deep, #1a2a5e);
  color: var(--text-inverse, #fff);
}

.wy-footer-main {
  padding: 4rem 0 2.5rem;
}

.wy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .wy-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .wy-footer-grid {
    grid-template-columns: 1fr;
  }
}

.wy-footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.wy-footer-tagline {
  margin: 1rem 0 0.75rem;
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  line-height: 1.6;
}

.wy-footer-newsletter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.wy-footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: .55rem 1rem;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .875rem;
  outline: none;
}

.wy-footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, .45);
}

.wy-footer-newsletter button {
  padding: .55rem 1.25rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--brand-cyan, #24c2ec);
  color: #fff;
  border: none;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}

.wy-footer-newsletter button:hover {
  opacity: .85;
}

.wy-footer-links h5,
.wy-footer-contact h5 {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.wy-footer-links ul,
.wy-footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.wy-footer-links a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}

.wy-footer-links a:hover {
  color: var(--brand-cyan, #24c2ec);
}

.wy-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255, 255, 255, .65);
  font-size: .875rem;
}

.wy-footer-contact svg {
  flex-shrink: 0;
  margin-top: .15rem;
  stroke: var(--brand-cyan, #24c2ec);
}

.wy-footer-contact a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
}

.wy-footer-contact a:hover {
  color: var(--brand-cyan, #24c2ec);
}

.wy-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.25rem 0;
}

.wy-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wy-footer-bottom p {
  color: rgba(255, 255, 255, .5);
  font-size: .8125rem;
  margin: 0;
}

.wy-footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: .875rem;
}

.wy-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.wy-footer-social a:hover {
  background: var(--brand-cyan, #24c2ec);
  color: #fff;
}

/* ───────────────────────────
   Header Nav Dropdown (Desktop)
   ─────────────────────────── */
.header-nav-dropdown {
  position: relative;
}

.header-nav-parent {
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}

.header-nav-dropdown .sub-menu,
.header-nav-dropdown ul {
  position: absolute;
  top: calc(100% + .5rem);
  inset-inline-start: 0;
  min-width: 200px;
  background: var(--surface-white, #fff);
  border: 1px solid var(--border-soft, #e7ecf4);
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(38, 60, 132, .12));
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 900;
}

:root[data-theme="dark"] .header-nav-dropdown .sub-menu,
:root[data-theme="dark"] .header-nav-dropdown ul {
  background: var(--surface-mist, #f5f7fb);
}

.header-nav-dropdown:hover .sub-menu,
.header-nav-dropdown:hover ul,
.header-nav-dropdown:focus-within .sub-menu,
.header-nav-dropdown:focus-within ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ───────────────────────────
   Mobile Drawer Additions
   ─────────────────────────── */
.drawer-logo img {
  height: 30px;
  width: auto;
}

.drawer-lang-wrap {
  margin: 1rem 1.5rem;
}

.drawer-lang-btn {
  width: 100%;
  text-align: start;
  padding: .6rem 1rem;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--border-soft, #e7ecf4);
  background: transparent;
  color: var(--text-primary, #0f1733);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.drawer-lang-btn:hover {
  background: var(--brand-cyan-pale, #e0f7fd);
  color: var(--brand-cyan-deep, #0899c4);
}

.drawer-dropdown {
  border: none;
  border-bottom: 1px solid var(--border-soft, #e7ecf4);
}

.drawer-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-primary, #0f1733);
}

.drawer-dropdown summary::-webkit-details-marker {
  display: none;
}

.drawer-sub {
  list-style: none;
  padding: .25rem 0 .25rem 1.75rem;
  margin: 0;
}

.drawer-sub li a {
  display: block;
  padding: .5rem 1.5rem;
  font-size: .875rem;
  color: var(--text-secondary, #4a5578);
  text-decoration: none;
  transition: color .2s;
}

.drawer-sub li a:hover {
  color: var(--brand-navy, #263c84);
}

/* ───────────────────────────
   توافق مع Bootstrap (تجاوز التعارضات)
   ─────────────────────────── */
.site-header {
  z-index: 1050;
}

/* فوق Bootstrap modals backdrop */

/* تعطيل box-sizing conflict */
.wy-footer *,
.wy-footer *::before,
.wy-footer *::after {
  box-sizing: border-box;
}