/* ==========================================================================
   Site header refinement (overrides assets/css/main.css's .header-2)
   Loaded after main.css — keeps every ID/class the header JS depends on
   (#header-sticky, #mobile-menu, .mobile-menu, .sidebar__toggle,
   .offcanvas__info/__overlay/__close) untouched; visual-only overrides.
   ========================================================================== */

:root {
  /* Warm mahogany / brass palette pulled from the hero banner's wood-panel + gold-badge tones */
  --hdr-bg-1: #241608;
  --hdr-bg-2: #3c220f;
  --hdr-bg-3: #55341a;
  --hdr-accent: #e85f17;
  --hdr-accent-2: #ff8a3d;
  --hdr-accent-grad: linear-gradient(135deg, var(--hdr-accent-2), var(--hdr-accent));
  --hdr-glow: rgba(232, 95, 23, 0.38);
}

/* ---------------- Top bar / container ---------------- */
.header-2 {
  background: linear-gradient(120deg, var(--hdr-bg-1) 0%, var(--hdr-bg-2) 55%, var(--hdr-bg-3) 100%);
  border: none;
  border-bottom: 1px solid rgba(200, 146, 47, 0.28);
}

.header-2 .container-fluid {
  padding-left: clamp(20px, 4vw, 64px) !important;
  padding-right: clamp(16px, 3vw, 40px) !important;
}

.header-2 .header-main {
  padding: 14px 0;
  transition: padding 0.3s ease;
}

/* ---------------- Sticky (scrolled) state ---------------- */
.sticky.header-2 {
  border-bottom-color: transparent;
}

.sticky {
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(20, 15, 10, 0.1) !important;
}

.sticky.header-2 .header-main {
  padding: 8px 0;
}

/* ---------------- Logo ---------------- */
.header-2 .header-logo-2 img,
.header-2 .header-logo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 4px 18px var(--hdr-glow);
}

.header-2 .logo a:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.sticky.header-2 .header-logo img {
  width: 52px !important;
  height: 52px;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(20, 15, 10, 0.06), 0 4px 14px rgba(20, 15, 10, 0.15);
}

/* ---------------- Nav: floating capsule with pill links ----------------
   Scoped to the TOP-LEVEL menu only (#mobile-menu > ul > li > a) via direct
   child combinators — a plain ".main-menu ul li a" descendant selector would
   also match the nested ".submenu" dropdown list and wreck its layout/bg. */
.header-2 #mobile-menu > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  padding: 6px;
}

.sticky.header-2 #mobile-menu > ul {
  background: rgba(20, 15, 10, 0.045);
  border-color: rgba(20, 15, 10, 0.09);
}

.header-2 #mobile-menu > ul > li {
  margin-inline-end: 0 !important;
}

.header-2 #mobile-menu > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease;
}

.header-2 #mobile-menu > ul > li > a .nav-ico {
  font-size: 12.5px;
  opacity: 0.75;
}

.header-2 #mobile-menu > ul > li > a .fa-chevron-down {
  font-size: 10px;
  margin-left: 0;
  transition: transform 0.25s ease;
}

.header-2 #mobile-menu > ul > li:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

.header-2 #mobile-menu > ul > li > a:hover,
.header-2 #mobile-menu > ul > li:hover > a {
  background: rgba(255, 255, 255, 0.1);
}

.sticky.header-2 #mobile-menu > ul > li > a:hover,
.sticky.header-2 #mobile-menu > ul > li:hover > a {
  background: rgba(20, 15, 10, 0.06);
}

.header-2 #mobile-menu > ul > li.active > a {
  background: var(--hdr-accent-grad);
  color: #fff !important;
  box-shadow: 0 4px 14px var(--hdr-glow);
}

.header-2 #mobile-menu > ul > li.active > a .nav-ico {
  opacity: 1;
}

/* Submenu polish */
.header-2 .header-main .header-left .main-menu ul li .submenu {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 15, 10, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.header-2 .header-main .header-left .main-menu ul li .submenu li a {
  border-radius: 8px;
  padding-left: 14px !important;
}

.header-2 .header-main .header-left .main-menu ul li .submenu li a:hover {
  background: #f9f2e4;
  color: var(--hdr-accent) !important;
}

/* ---------------- Right side: contact chip ---------------- */
.header-2 .header-main .header-right {
  gap: 18px;
}

.header-2 .header-main .header-right .countact-call {
  display: none;
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky.header-2 .header-main .header-right .countact-call {
  background: rgba(20, 15, 10, 0.04);
  border-color: rgba(20, 15, 10, 0.08);
}

@media (min-width: 1200px) {
  .header-2 .header-main .header-right .countact-call {
    display: flex !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .header-2 #mobile-menu > ul > li > a {
    padding: 10px 13px !important;
    font-size: 14.5px;
  }
  .header-2 .header-main .header-right {
    gap: 10px;
  }
}

.header-2 .header-main .header-right .countact-call .icon {
  width: 42px;
  height: 42px;
  line-height: 42px;
  background: var(--hdr-accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px var(--hdr-glow);
}

.header-2 .header-main .header-right .countact-call .content span {
  font-size: 11.5px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-2 .header-main .header-right .countact-call .content h6 {
  font-size: 14.5px;
  margin: 0;
}

/* ---------------- CTA button ---------------- */
.header-2 .header-main .header-right .site-header-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--hdr-accent-grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 18px var(--hdr-glow);
}

.header-2 .header-main .header-right .site-header-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px var(--hdr-glow);
}

@media (min-width: 768px) {
  .header-2 .header-main .header-right .site-header-cta {
    display: inline-flex;
  }
}

/* ---------------- Hamburger / offcanvas toggle ---------------- */
.header-2 .header-main .header-right .sidebar__toggle {
  width: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
  font-size: 16px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-2 .header-main .header-right .sidebar__toggle:hover {
  background: var(--hdr-accent) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.sticky.header-2 .header-main .header-right .sidebar__toggle {
  color: var(--header, #181818) !important;
  background: rgba(20, 15, 10, 0.05) !important;
  border-color: rgba(20, 15, 10, 0.1);
}

.sticky.header-2 .header-main .header-right .sidebar__toggle:hover {
  color: #fff !important;
  background: var(--hdr-accent) !important;
}

/* ---------------- Collapse inline nav below lg; rely on offcanvas ---------------- */
@media (max-width: 991px) {
  .header-2 .header-main .header-left .mean__menu-wrapper {
    display: none;
  }
}

/* ---------------- Offcanvas trigger nav (meanmenu) — match brand ---------------- */
.mean-container .mean-bar {
  background: transparent;
  padding: 0;
  min-height: 0;
}

.mean-container a.meanmenu-reveal {
  display: none !important;
}

.mean-container .mean-nav {
  background: transparent;
  margin-top: 0;
}

.mean-container .mean-nav ul li a {
  color: var(--header, #181818);
  border-top: 1px solid var(--border-2, #eee);
  text-transform: capitalize;
  font-weight: 600;
  font-size: 14.5px;
}

.mean-container .mean-nav ul li a:hover {
  color: var(--hdr-accent);
}

.mean-container .mean-nav ul li a.mean-expand {
  border: none !important;
  color: var(--hdr-accent);
}

/* ==========================================================================
   Inner-page banner (.breadcrumb-wrapper — "About Us", "Family Law", etc.)
   assets/img/breadcrumb/bg.jpg and overlay.png referenced by main.css don't
   exist on disk, so every page fell back to a flat near-black overlay that
   clashed with the header's warm mahogany/gold theme. Re-themed to match.
   ========================================================================== */
.breadcrumb-wrapper::before {
  background: linear-gradient(135deg, var(--hdr-bg-1) 0%, var(--hdr-bg-2) 50%, var(--hdr-bg-3) 100%);
  border-bottom: 1px solid rgba(232, 95, 23, 0.25);
}

.breadcrumb-wrapper .page-heading .breadcrumb-list {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
}

.breadcrumb-wrapper .page-heading .breadcrumb-list li i {
  color: var(--hdr-accent-2);
}

.breadcrumb-wrapper .page-heading .breadcrumb-list li a:hover {
  color: var(--hdr-accent-2);
}

/* ==========================================================================
   Floating social rail (.floating-social, in includes/footer.php — present
   on every page). It's `position:fixed; top:50%` — centered on the
   *viewport*, not the page — so on narrow screens it sits on top of
   whatever content happens to be mid-screen at any given scroll position
   (e.g. it collided with the homepage counter stats). Anchoring it to the
   bottom-right corner on mobile avoids overlapping in-flow content; the
   separate .whatsapp-float button already occupies the bottom-left.
   ========================================================================== */
@media (max-width: 767px) {
  .floating-social {
    top: auto;
    bottom: 20px;
    right: 12px;
    transform: none;
    gap: 8px;
  }

  .floating-social a {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
}
