/*
 Theme Name:   Blocksy Child
 Theme URI:    https://tor.sa
 Description:  Child theme for Blocksy — Tor Law Company
 Author:       Tor Law
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* ===== ترويسة زجاجية — Glassmorphic Pill Header ===== */

.ct-header {
  background: transparent !important;
}
.ct-header [data-row="middle"] {
  background: rgba(18, 30, 52, 0.88) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border-bottom: 1px solid rgba(201, 168, 106, 0.15) !important;
}

/* عند التمرير: كحلي صلب تماماً */
.ct-header [data-sticky="auto-hide"] {
  background: #0e1e34 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.ct-header [data-sticky="auto-hide"] [data-row="middle"] {
  background: #0e1e34 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(201, 168, 106, 0.12) !important;
}

/* الصف العلوي */
.ct-header [data-row="top"] {
  background: rgba(12, 20, 36, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ===== بطاقات مستديرة صغيرة حول كل عنصر ===== */
.ct-header .menu-item > a {
  color: rgba(243, 239, 230, 0.8) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 6px 16px !important;
  line-height: 1.4 !important;
  height: auto !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transition: all 0.3s ease !important;
  margin: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.ct-header .menu-item > a:hover {
  color: #c9a86a !important;
  border-color: rgba(201, 168, 106, 0.4) !important;
  background: rgba(201, 168, 106, 0.08) !important;
}

/* الصفحة النشطة */
.ct-header .menu-item.current-menu-item > a,
.ct-header .menu-item.current_page_item > a {
  color: #c9a86a !important;
  border-color: rgba(201, 168, 106, 0.5) !important;
  background: rgba(201, 168, 106, 0.10) !important;
}

/* زر تواصل معنا — pill ذهبي مميز */
.ct-header .menu-item:last-child > a,
.ct-header .menu-item > a[href*="تواصل"],
.ct-header .menu-item > a[href*="contact"] {
  color: #c9a86a !important;
  border: 1px solid rgba(201, 168, 106, 0.55) !important;
  background: rgba(201, 168, 106, 0.08) !important;
}
.ct-header .menu-item:last-child > a:hover,
.ct-header .menu-item > a[href*="تواصل"]:hover,
.ct-header .menu-item > a[href*="contact"]:hover {
  background: rgba(201, 168, 106, 0.18) !important;
  border-color: #c9a86a !important;
  box-shadow: 0 0 16px rgba(201, 168, 106, 0.25) !important;
}

/* ===== القائمة المنسدلة ===== */
.ct-header .sub-menu {
  background: #0e1e34 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5) !important;
  padding: 6px !important;
}
.ct-header .sub-menu .menu-item > a {
  color: rgba(243, 239, 230, 0.75) !important;
  border: none !important;
  background: transparent !important;
  border-radius: 10px !important;
  margin: 2px 0 !important;
  padding: 8px 16px !important;
  height: auto !important;
}
.ct-header .sub-menu .menu-item > a:hover {
  color: #c9a86a !important;
  background: rgba(201, 168, 106, 0.08) !important;
  border: none !important;
}

/* ===== الشعار ===== */
.ct-header .site-branding img {
  transition: filter 0.3s ease !important;
}
.ct-header .site-branding img:hover {
  filter: drop-shadow(0 0 10px rgba(201, 168, 106, 0.3)) !important;
}

/* ===== أيقونات التواصل ===== */
.ct-header .ct-social-box a {
  color: rgba(243, 239, 230, 0.5) !important;
  transition: color 0.25s ease !important;
}
.ct-header .ct-social-box a:hover {
  color: #c9a86a !important;
}

/* ===== الهامبرغر ===== */
.ct-header .ct-header-trigger {
  color: rgba(243, 239, 230, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transition: all 0.3s ease !important;
}
.ct-header .ct-header-trigger:hover {
  border-color: rgba(201, 168, 106, 0.4) !important;
  color: #c9a86a !important;
}