/* ============================================================================
   PREMIUM LAYER — site-wide polish, alignment fixes & mobile experience.
   Loaded LAST (after the theme CSS) so it overrides without editing the theme.
   Pure presentation: NO markup conditions are affected by this file.
   ============================================================================ */

:root{
  --pm-navy:#0d1b3e;
  --pm-navy-2:#13245a;
  --pm-ink:#1c2536;
  --pm-muted:#5b6577;
  --pm-line:#e7eaf0;
  --pm-bg:#f6f7fb;
  --pm-card:#ffffff;
  --pm-radius:14px;
  --pm-shadow:0 10px 30px rgba(13,27,62,.08);
  --pm-shadow-sm:0 4px 14px rgba(13,27,62,.06);
  --pm-head:"Marcellus","Playfair Display",Georgia,serif;
  --pm-body:"Inter","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
}

/* ---------- global hygiene: kills the #1 cause of mobile misalignment ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ max-width:100%; overflow-x:hidden; }
body{ font-family:var(--pm-body); color:var(--pm-ink); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
img,svg,video,iframe,embed,object{ max-width:100%; }
img{ height:auto; }
table{ max-width:100%; }
a{ transition:color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }

h1,h2,h3,h4,h5,.section-title h2,.sec-title h2{ font-family:var(--pm-head); letter-spacing:.2px; }
h1{ line-height:1.12; }
h2{ line-height:1.18; }

/* container never overflows on small screens */
.container,.container-box{ width:100%; padding-left:15px; padding-right:15px; }
@media (min-width:1200px){ .container{ max-width:1170px; } }

/* ============================================================================
   HEADER
   ============================================================================ */
header.main-header{ height:auto !important; min-height:84px; background:#fff; box-shadow:var(--pm-shadow-sm); }
.header-lawer{ background:#fff; }
.header-lawer .container-box{ max-height:none !important; }
.header-lawer .outer-box{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:nowrap; min-height:84px; }
.header-lawer-left{ display:flex; align-items:center; gap:26px; float:none !important; }
.header-lawer-right{ display:flex; align-items:center; gap:18px; float:none !important; }

.header-lawer .logo{ display:flex; align-items:center; }
.header-lawer .logo img{ max-height:58px; width:auto; object-fit:contain; }

/* primary nav (desktop) */
.main-menu .navigation > li{ position:relative; }
.main-menu .navigation > li > a{
  font-family:var(--pm-body); font-weight:600; font-size:15px; letter-spacing:.2px;
  color:var(--pm-ink); padding:30px 16px; position:relative;
}
.main-menu .navigation > li > a:hover,
.main-menu .navigation > li.current > a{ color:var(--pm-navy); }
.main-menu .navigation > li > a::after{
  content:""; position:absolute; left:16px; right:16px; bottom:22px; height:2px;
  background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform .25s ease; opacity:.85;
}
.main-menu .navigation > li:hover > a::after,
.main-menu .navigation > li.current > a::after{ transform:scaleX(1); }

/* dropdowns */
.main-menu .navigation > li > ul{
  border:0; border-radius:12px; box-shadow:var(--pm-shadow); padding:8px; min-width:230px; overflow:hidden;
}
.main-menu .navigation > li > ul > li > a{ padding:10px 14px; border-radius:8px; font-size:14px; font-weight:500; }
.main-menu .navigation > li > ul > li > a:hover{ background:var(--pm-bg); color:var(--pm-navy); }

/* "years of excellence" badge */
.header-social-links-style1 ul{ margin:0; padding:0; }
.header-social-links-style1 ul li{ list-style:none; top:auto !important; }
.header-social-links-style1 b{
  display:inline-block; background:var(--pm-navy); color:#fff !important; font-weight:600; font-size:12.5px;
  padding:8px 14px; border-radius:999px; line-height:1.2; white-space:nowrap;
}
.cart-box .h-phone{ font-weight:600; color:var(--pm-ink); }
.cart-box .h-phone span{ display:block; font-size:11px; color:var(--pm-muted); font-weight:500; }

/* sticky header */
.sticky-header{ background:#fff; box-shadow:var(--pm-shadow-sm); }
.sticky-header .logo img{ max-height:50px; width:auto; }

/* ============================================================================
   MOBILE NAV TOGGLER (the three-dash button) — premium pill button
   ============================================================================ */
.mobile-nav-toggler{ display:none; margin:0; }
.mobile-nav-toggler .inner{
  display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
  width:46px; height:46px; padding:0 11px; border-radius:12px;
  background:var(--pm-navy); box-shadow:var(--pm-shadow-sm); cursor:pointer;
}
.mobile-nav-toggler .icon-bar{
  display:block; height:2.5px; width:100%; border-radius:3px; background:#fff; opacity:1;
  transition:transform .3s ease, opacity .2s ease;
}

/* ============================================================================
   SLIDE-IN MOBILE MENU — professional off-canvas panel
   ============================================================================ */
.mobile-menu{ position:fixed; right:0; top:0; width:330px; max-width:86vw; height:100%; z-index:9999;
  transform:translateX(101%); transition:transform .4s cubic-bezier(.7,0,.2,1); }
.mobile-menu .menu-backdrop{ position:fixed; inset:0; background:rgba(8,15,35,.55); backdrop-filter:blur(3px);
  opacity:0; visibility:hidden; transition:all .4s ease; z-index:-1; }
.mobile-menu .menu-box{ position:absolute; inset:0; width:100%; height:100%; background:#fff;
  box-shadow:-12px 0 40px rgba(8,15,35,.25); overflow-y:auto; padding:0 0 30px; }
body.mobile-menu-visible{ overflow:hidden; }
body.mobile-menu-visible .mobile-menu{ transform:translateX(0); }
body.mobile-menu-visible .mobile-menu .menu-backdrop{ opacity:1; visibility:visible; }

.mobile-menu .nav-logo{ padding:22px 24px; border-bottom:1px solid var(--pm-line); text-align:left; }
.mobile-menu .nav-logo img{ max-height:48px; width:auto; }
.mobile-menu .close-btn{ position:absolute; right:16px; top:20px; z-index:10; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center; border-radius:10px; background:var(--pm-bg);
  color:var(--pm-navy); font-size:16px; cursor:pointer; transition:background .2s ease; }
.mobile-menu .close-btn:hover{ background:#e9ecf5; color:#c0392b; }

.mobile-menu .navigation{ padding:8px 0; }
.mobile-menu .navigation li{ position:relative; border-bottom:1px solid var(--pm-line); }
.mobile-menu .navigation li a{ display:block; padding:14px 24px; color:var(--pm-ink); font-weight:600;
  font-size:15px; position:relative; }
.mobile-menu .navigation li ul li a{ padding-left:40px; font-weight:500; color:var(--pm-muted); font-size:14px; }
.mobile-menu .navigation li a:hover{ color:var(--pm-navy); background:var(--pm-bg); }
.mobile-menu .navigation li.dropdown .dropdown-btn{ position:absolute; right:8px; top:6px; width:42px; height:42px;
  display:flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; color:var(--pm-navy); }
.mobile-menu .navigation > li > ul,
.mobile-menu .navigation > li > ul > li > ul{ display:none; }
.mobile-menu .social-links{ padding:18px 24px; }
.mobile-menu .social-links ul{ margin:0; padding:0; }
.mobile-menu .social-links li{ list-style:none; border:0; }
.mobile-menu .social-links b{ color:var(--pm-navy); font-weight:600; font-size:13px; }

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width:991px){
  .main-menu .navbar-collapse{ display:none !important; }
  .mobile-nav-toggler{ display:inline-block !important; }
  .header-lawer-left{ width:100%; justify-content:space-between; gap:14px; }
  .header-social-links-style1,.cart-box .h-phone.md-hide{ display:none !important; }
  .header-lawer .outer-box{ min-height:72px; }
  .header-lawer .logo img{ max-height:46px; }
}
@media (min-width:992px){
  .mobile-nav-toggler{ display:none !important; }
}

/* ============================================================================
   CONTENT: premium sections, cards, images, buttons
   ============================================================================ */
section{ overflow:hidden; }

/* generic media cards used in galleries / news / cabinet */
.tenant-logo-area img{ max-height:120px; width:auto; }

.widget address.s1 span,.widget address.s1{ display:block; }
.widget address.s1 span{ display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; color:var(--pm-muted); line-height:1.5; }
.widget address.s1 .id-color{ margin-top:3px; }

/* images that act as thumbnails shouldn't stretch/squish */
.gallery-block img,.news-block img,.team-block img,.image img,.inner-box .image img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* premium buttons (covers theme button classes + the Pay button) */
.theme-btn,.btn-style-one,.btn-style-two,a.btn,button.btn,.readmore,.pay-btn,.btn-pay{
  border-radius:10px !important; font-weight:600; letter-spacing:.2px;
}
.theme-btn:hover,.btn-style-one:hover,a.btn:hover,button.btn:hover{ box-shadow:var(--pm-shadow-sm); transform:translateY(-1px); }

/* ============================================================================
   FOOTER alignment fix (legacy used mismatched col-2 / col-md-2 / col-lg-3)
   ============================================================================ */
.pm-footer .row{ display:flex; flex-wrap:wrap; margin-left:-15px; margin-right:-15px; }
.pm-footer .row > [class*="col-"]{ flex:1 1 240px; max-width:none; padding:14px 15px; min-width:200px; }
.pm-footer .widget,.pm-footer h5{ margin-bottom:14px; }
.pm-footer h5,.pm-footer .id-color{ font-family:var(--pm-head); }
.pm-footer a{ color:var(--pm-muted); }
.pm-footer a:hover{ color:var(--pm-navy); }

.subfooter{ border-top:1px solid var(--pm-line); margin-top:18px; }
.subfooter .de-flex{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.subfooter .social-icons{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
@media (max-width:767px){
  .pm-footer .row > [class*="col-"]{ flex:1 1 100%; }
  .subfooter .de-flex{ justify-content:center; text-align:center; }
}

/* tidy horizontal rhythm on phones */
@media (max-width:575px){
  h1{ font-size:30px; } h2{ font-size:24px; }
  .container,.container-box{ padding-left:16px; padding-right:16px; }
}

/* ============================================================================
   HOMEPAGE premium polish + fix the theme's fragile negative-margin overlaps
   (margin-top:-100px / -15% / -40px) that clip & misalign on tablet/mobile.
   ============================================================================ */
.facts-area{ padding:34px 0; }
.facts-area .facts-box ul{ display:flex; flex-wrap:wrap; gap:18px; justify-content:center; margin:0; padding:0; list-style:none; }
.facts-area .facts-box li{ list-style:none; }
.facts-area .facts-box li a{ display:flex; flex-direction:column; align-items:center; gap:8px; min-width:150px;
  background:var(--pm-card); border:1px solid var(--pm-line); border-radius:var(--pm-radius); padding:22px 26px; box-shadow:var(--pm-shadow-sm); }
.facts-area .facts-box li a:hover{ transform:translateY(-3px); box-shadow:var(--pm-shadow); }
.facts-area .facts-box .icon span,.facts-area .facts-box .icon i{ font-size:30px; color:var(--pm-navy); }
.facts-area .facts-box .title h3{ font-size:16px; margin:0; color:var(--pm-ink); }

/* Secretary block + neutralise the team section's -15% pull-up (it overlapped) */
.pm-secretary{ margin-top:20px; }
#team-page.team-area{ margin-top:30px !important; }

/* President / message blocks — premium framed portrait */
.about-style1-area{ padding:40px 0; }
.about-style1-image-box .image-box img{ border-radius:var(--pm-radius); box-shadow:var(--pm-shadow); width:100%; object-fit:cover; }
.about-style1-image-box .overlay-box{ border-radius:0 0 var(--pm-radius) var(--pm-radius); }
.about-style1-text-box .sec-title .title h5{ color:var(--pm-navy); font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
.about-style1-text-box .border-box{ width:60px; height:3px; background:var(--pm-navy); margin:10px 0 16px; border-radius:3px; }
.about-style1-text-box .big-title h2{ font-family:var(--pm-head); }
.about-style1-text-box p small{ font-size:15px; line-height:1.7; color:var(--pm-muted); }

/* Office bearers / team cards */
.team-area{ padding:40px 0; }
.team-area .single-team-member,.team-area .team-block,.team-area [class*="col-"] .inner-box{ margin-bottom:26px; }
.team-area img{ border-radius:var(--pm-radius); box-shadow:var(--pm-shadow-sm); }

/* Neutralise the theme's pull-up hacks so sections never overlap/clip on small screens */
@media (max-width:1199px){
  .about-style1-area,#team-page.team-area,.team-area[style],.about-style1-text-box[style],
  section[style*="margin-top:-"]{ margin-top:24px !important; }
}
@media (max-width:991px){
  .about-style1-area,#team-page.team-area,.team-area,.about-style1-text-box,
  section[style*="margin-top:-"]{ margin-top:0 !important; }
  .about-style1-text-box{ margin-top:22px !important; }
  .about-style1-area .image-box img{ max-height:420px; }
}

/* ============================================================================
   SEARCH LAWYERS — photo thumbnails + premium results table
   ============================================================================ */
.lw-thumb{ width:48px; height:48px; border-radius:50%; object-fit:cover;
  border:1px solid var(--pm-line); background:#eef1f6; box-shadow:var(--pm-shadow-sm); }
table#example td.lw-photo, table#example th.lw-photo-h{ width:64px; text-align:center; }
table#example td, table#example th{ vertical-align:middle !important; }
table#example thead th{ background:var(--pm-navy); color:#fff; border:0; font-family:var(--pm-body);
  font-weight:600; letter-spacing:.3px; }
table#example.dataTable tbody tr{ transition:background .15s ease; }
table#example.dataTable tbody tr:hover{ background:var(--pm-bg); }
table#example td a.btn-custom{ display:inline-block; padding:7px 18px; border-radius:8px;
  background:var(--pm-navy); color:#fff !important; font-weight:600; }
table#example td a.btn-custom:hover{ box-shadow:var(--pm-shadow-sm); transform:translateY(-1px); }
@media (max-width:575px){ .lw-thumb{ width:40px; height:40px; } }
.lw-membership{ font-size:12px; font-weight:600; color:var(--pm-navy); margin-top:3px; letter-spacing:.2px; }

/* ============================================================================
   MEMBER PROFILE — premium, contact-free
   ============================================================================ */
.pm-prof-photo{ padding:0 !important; overflow:hidden; }
.pm-prof-photo img{ width:100%; height:100%; min-height:380px; object-fit:cover; object-position:top center; display:block; background:#eef1f6; }
.pm-prof-badges{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 6px; }
.pm-badge{ display:inline-flex; align-items:center; gap:7px; background:var(--pm-bg); border:1px solid var(--pm-line);
  color:var(--pm-ink); font-weight:600; font-size:13px; padding:8px 14px; border-radius:999px; line-height:1; }
.pm-badge i{ color:var(--pm-navy); }
.p-title{ color:var(--pm-navy) !important; font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
section[data-bgcolor="white"] h2{ font-family:var(--pm-head); }
.btn-custom,.btn-contact-high{ border-radius:8px !important; }
/* pay panel: a touch more premium without touching the form */
.no-padding.bg-color h3.padding40{ font-family:var(--pm-head); }
@media (max-width:991px){
  .pm-prof-photo{ position:relative !important; width:100% !important; height:auto !important; left:auto !important; right:auto !important; top:auto !important; }
  .pm-prof-photo img{ min-height:260px; max-height:400px; border-radius:var(--pm-radius); margin-top:18px; }
  section[data-bgcolor="white"] .container > .row{ flex-direction:column; }
}
/* Always-on premium member header card */
.pm-member-hero{ padding:34px 0 8px; }
.pm-mh-card{ display:flex; gap:28px; align-items:center; background:var(--pm-card); border:1px solid var(--pm-line);
  border-radius:18px; box-shadow:var(--pm-shadow); padding:26px; }
.pm-mh-photo{ flex:0 0 auto; }
.pm-mh-photo img{ width:150px; height:150px; border-radius:50%; object-fit:cover; object-position:top center;
  border:4px solid #fff; box-shadow:var(--pm-shadow); background:#eef1f6; }
.pm-mh-body{ flex:1 1 auto; min-width:0; }
.pm-eyebrow{ color:var(--pm-navy); font-weight:600; letter-spacing:.6px; text-transform:uppercase; font-size:12.5px; }
.pm-mh-name{ font-family:var(--pm-head); font-size:30px; margin:4px 0 2px; color:var(--pm-ink); }
.pm-mh-sub{ color:var(--pm-muted); margin-bottom:6px; }
.pm-privacy{ color:var(--pm-muted); font-size:13px; margin:10px 0 0; }
.pm-privacy i{ color:var(--pm-navy); }
@media (max-width:767px){
  .pm-mh-card{ flex-direction:column; text-align:center; gap:16px; padding:22px; }
  .pm-mh-photo img{ width:120px; height:120px; }
  .pm-prof-badges{ justify-content:center; }
}
