/* V61 — Client-directed service slider and contact refinements.
   Additive, scoped to the actual home/consultation markup. */

/* Remove the visible separator under the fixed/sticky navigation and the
   underlined active navigation marker. Keep the approved dark header. */
html body .site-header,
html body .site-header:not(.is-scrolled),
html body .site-header.is-scrolled {
  border: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
html body .site-header .main-nav > a.active::after,
html body .site-header .main-nav > a[aria-current="page"]::after {
  content: none !important;
  display: none !important;
}

/* Headings: prevent the long client-supplied copy from dominating the page.
   Keep every approved English and Arabic word exactly as supplied. */
#main .expertise-v7 .expertise-v7-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  column-gap: clamp(26px, 5vw, 90px) !important;
  align-items: center !important;
  margin-bottom: clamp(24px, 3vw, 38px) !important;
}
#main .expertise-v7 .expertise-v7-head > div,
#main .expertise-v7 .expertise-v7-head > p {min-width:0;}
#main .expertise-v7 .expertise-v7-head h2,
#main .expertise-v7 .expertise-v7-head h2.display {
  font-size: clamp(1.85rem, 2.65vw, 2.68rem) !important;
  line-height: 1.21 !important;
  max-width: 25ch !important;
  letter-spacing: -.026em !important;
  text-wrap: balance;
}
#main .expertise-v7 .expertise-v7-head > p {
  font-size: clamp(.98rem, 1.12vw, 1.08rem) !important;
  line-height: 1.85 !important;
  max-width: 56ch !important;
  margin: 0 !important;
}
html[lang="ar"] #main .expertise-v7 .expertise-v7-head h2,
html[dir="rtl"] #main .expertise-v7 .expertise-v7-head h2 {
  font-size: clamp(1.68rem, 2.15vw, 2.25rem) !important;
  line-height: 1.56 !important;
  letter-spacing: 0 !important;
  max-width: 100% !important;
  text-align: right !important;
  text-wrap: pretty;
}
html[dir="rtl"] #main .expertise-v7 .expertise-v7-head > p {line-height: 2.05 !important;text-align:right !important;}
#main .expertise-v7 .practice-home-intro-v59 {
  font-size: clamp(.98rem, 1.2vw, 1.09rem) !important;
  font-weight: 750 !important;
  margin: 0 0 23px !important;
}
#main .practice-hero-v59 h1 {font-size:clamp(2.15rem,3.25vw,3.4rem)!important;line-height:1.2!important;}
html[dir="rtl"] #main .practice-hero-v59 h1 {font-size:clamp(1.9rem,2.8vw,2.85rem)!important;line-height:1.48!important;}

/* Image-first horizontal Swiper. The original 5 law-firm photos are retained. */
.expertise-v7 .practice-carousel-v61 {position:relative;min-width:0;max-width:100%;}
.expertise-v7 .practice-carousel-viewport-v61 {width:100%;min-width:0;overflow:hidden;padding:5px 3px 25px;touch-action:pan-y;}
.expertise-v7 .practice-carousel-viewport-v61 .swiper-wrapper {display:flex;align-items:stretch;box-sizing:content-box;}
.expertise-v7 .practice-carousel-viewport-v61 .swiper-slide {height:auto;min-width:0;flex-shrink:0;display:flex;}
.expertise-v7 .practice-showcase-card-v61 {
  --card-bg: #ffffff;
  --card-color: #292820;
  --card-secondary: #746d62;
  --card-pill: #e8cd83;
  width:100%;min-width:0;min-height:462px;display:flex;flex-direction:column;
  overflow:hidden;isolation:isolate;border:1px solid rgba(66,54,32,.08);
  border-radius:20px;background:var(--card-bg);color:var(--card-color);
  box-shadow:0 14px 35px rgba(29,25,17,.07);
  transition:transform .3s ease, box-shadow .3s ease;
}
.expertise-v7 .practice-showcase-tone-2 {--card-bg:#f2e8cf;--card-color:#2d281b;--card-secondary:#665e4e;--card-pill:#fff8e6;}
.expertise-v7 .practice-showcase-tone-3 {--card-bg:#092e2b;--card-color:#fffdf5;--card-secondary:#c5d6d0;--card-pill:#e5c46e;border-color:rgba(255,255,255,.07);}
.expertise-v7 .practice-showcase-card-v61:hover {transform:translateY(-4px);box-shadow:0 22px 52px rgba(29,25,17,.14);}
.expertise-v7 .practice-showcase-photo-v61 {height:206px;display:block;position:relative;overflow:hidden;flex-shrink:0;background:#e8e2d6;}
.expertise-v7 .practice-showcase-photo-v61 img {width:100%;height:100%;display:block;object-fit:cover;object-position:center;transition:transform .55s cubic-bezier(.2,.8,.2,1);}
.expertise-v7 .practice-showcase-card-v61:hover img {transform:scale(1.045);}
.expertise-v7 .practice-showcase-image-caption-v61 {
  position:absolute;inset-inline-start:16px;bottom:16px;max-width:calc(100% - 32px);
  border:1px solid rgba(255,255,255,.55);border-radius:50px;
  background:rgba(18,22,17,.68);color:#fffaec;padding:6px 12px;
  font-size:.65rem;font-weight:750;line-height:1.2;letter-spacing:.03em;
  -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
}
html[dir="rtl"] .expertise-v7 .practice-showcase-image-caption-v61 {letter-spacing:0;}
.expertise-v7 .practice-showcase-content-v61 {
  display:flex;flex-direction:column;flex:1;min-width:0;padding:19px 24px 22px;
}
.expertise-v7 .practice-showcase-mark-v61 {display:inline-flex;width:29px;height:29px;color:var(--card-color);opacity:.72;margin-bottom:12px;}
.expertise-v7 .practice-showcase-mark-v61 svg {display:block;width:29px;height:29px;}
#main .expertise-v7 .practice-showcase-card-v61 h3 {
  color:var(--card-color)!important;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
  font-size:clamp(1.12rem,1.4vw,1.38rem)!important;line-height:1.31!important;
  letter-spacing:-.025em;margin:0 0 10px!important;font-weight:750!important;text-wrap:balance;
}
#main .expertise-v7 .practice-showcase-card-v61 h3 a {color:inherit;text-decoration:none;}
#main .expertise-v7 .practice-showcase-card-v61 p {
  color:var(--card-secondary)!important;font-size:.8rem!important;line-height:1.57!important;
  margin:0 0 19px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-clamp:2;overflow:hidden;max-width:100%;
}
.expertise-v7 .practice-showcase-more-v61 {
  margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;gap:15px;
  border:0;border-radius:999px;min-height:34px;padding:6px 13px;
  background:var(--card-pill);color:#1d2118;font-size:.7rem;font-weight:850;
  transition:background .22s ease,transform .22s ease;
}
.expertise-v7 .practice-showcase-more-v61 svg {width:15px;height:15px;flex-shrink:0;}
.expertise-v7 .practice-showcase-more-v61:hover,
.expertise-v7 .practice-showcase-more-v61:focus-visible {background:#d9ad47;transform:translateY(-2px);}
.expertise-v7 .practice-showcase-more-v61:focus-visible,
.expertise-v7 .practice-showcase-photo-v61:focus-visible,
.expertise-v7 .practice-carousel-actions-v61 button:focus-visible {outline:3px solid #ba922e;outline-offset:3px;}
html[dir="rtl"] #main .expertise-v7 .practice-showcase-card-v61 h3 {font-family:Tahoma,Arial,sans-serif!important;letter-spacing:0!important;line-height:1.65!important;}
html[dir="rtl"] .expertise-v7 .practice-showcase-more-v61 svg {transform:rotate(180deg);}

.expertise-v7 .practice-carousel-footer-v61 {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;}
.expertise-v7 .practice-carousel-counter-v61 {color:#917545;font:750 .79rem/1 Inter,Arial,sans-serif;letter-spacing:.13em;direction:ltr;unicode-bidi:isolate;}
.expertise-v7 .practice-carousel-actions-v61 {display:flex;align-items:center;gap:9px;}
.expertise-v7 .practice-carousel-actions-v61 button {
  display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:1px solid #d2c3a4;
  border-radius:50%;background:#fff;color:#191b17;cursor:pointer;
  transition:background .22s ease,color .22s ease,border-color .22s ease;
}
.expertise-v7 .practice-carousel-actions-v61 button svg {display:block;width:18px;height:18px;}
.expertise-v7 .practice-carousel-actions-v61 button:hover:not(:disabled) {background:#171b16;color:#f4d99d;border-color:#171b16;}
.expertise-v7 .practice-carousel-actions-v61 button:disabled,
.expertise-v7 .practice-carousel-actions-v61 button.swiper-button-disabled {opacity:.36;cursor:default;}
html[dir="rtl"] .expertise-v7 .practice-carousel-actions-v61 button svg {transform:rotate(180deg);}

/* Usable scroll-snap fallback when Swiper's CDN is unreachable. */
.expertise-v7 .practice-carousel-viewport-v61.is-fallback {overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;}
.expertise-v7 .practice-carousel-viewport-v61.is-fallback::-webkit-scrollbar {display:none;}
.expertise-v7 .practice-carousel-viewport-v61.is-fallback .swiper-wrapper {gap:20px;}
.expertise-v7 .practice-carousel-viewport-v61.is-fallback .swiper-slide {width:calc((100% - 40px)/3);flex:0 0 calc((100% - 40px)/3);scroll-snap-align:start;}

/* Correct success state: no notice or attention panel before confirmed POST. */
#main .contact-success-v61[hidden], .contact-success-v61[hidden],
#main .contact-success-copy-v61 small[hidden] {display:none!important;}
#main .contact-success-v61 {
  display:flex;align-items:flex-start;gap:13px;position:relative;
  margin:6px 0 23px!important;padding:16px 47px 16px 17px;
  border:1px solid #e5d4a6;border-radius:14px;
  background:#f9f3e4;box-shadow:0 12px 34px rgba(80,63,29,.08);
  color:#39352a;animation:consult-success-in-v61 .3s ease both;
}
#main .contact-success-check-v61 {display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#153f37;color:#fff;}
#main .contact-success-check-v61 svg {width:16px;height:16px;}
#main .contact-success-copy-v61 {min-width:0;}
#main .contact-success-copy-v61 strong {font-size:.92rem;font-weight:800;display:block;line-height:1.45;margin-bottom:4px;}
#main .contact-success-copy-v61 p {font-size:.84rem!important;line-height:1.64!important;margin:0!important;color:#625843!important;max-width:none!important;}
#main .contact-success-copy-v61 small {display:block;margin-top:8px;color:#6c5b3a;font-size:.75rem;font-weight:700;overflow-wrap:anywhere;}
#main .contact-success-close-v61 {position:absolute;top:9px;inset-inline-end:12px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:#766342;font:400 24px/1 Arial;}
#main .contact-success-close-v61:hover {background:rgba(143,116,55,.1);}
html[dir="rtl"] #main .contact-success-v61 {direction:rtl;padding:16px 17px 16px 47px;text-align:right;}
@keyframes consult-success-in-v61 {from {opacity:0;transform:translateY(-7px);}to {opacity:1;transform:translateY(0);}}

@media (max-width:1100px) {
  #main .expertise-v7 .expertise-v7-head {column-gap:28px!important;}
  #main .expertise-v7 .expertise-v7-head h2 {font-size:clamp(1.7rem,3vw,2.15rem)!important;}
  .expertise-v7 .practice-carousel-viewport-v61.is-fallback .swiper-slide {width:calc((100% - 20px)/2);flex-basis:calc((100% - 20px)/2);}
}
@media (max-width:760px) {
  #main .expertise-v7 .expertise-v7-head {display:block!important;margin-bottom:25px!important;}
  #main .expertise-v7 .expertise-v7-head h2 {font-size:clamp(1.7rem,5.3vw,2.15rem)!important;max-width:100%!important;line-height:1.27!important;}
  html[dir="rtl"] #main .expertise-v7 .expertise-v7-head h2 {font-size:clamp(1.55rem,4.9vw,1.95rem)!important;line-height:1.58!important;}
  #main .expertise-v7 .expertise-v7-head>p {margin-top:18px!important;max-width:100%!important;}
  .expertise-v7 .practice-showcase-card-v61 {min-height:420px;border-radius:18px;}
  .expertise-v7 .practice-showcase-photo-v61 {height:185px;}
  .expertise-v7 .practice-showcase-content-v61 {padding:18px 19px 20px;}
  .expertise-v7 .practice-carousel-viewport-v61.is-fallback .swiper-slide {width:calc(100% - 26px);flex-basis:calc(100% - 26px);}
  .expertise-v7 .practice-carousel-viewport-v61.is-fallback .swiper-wrapper {gap:12px;}
}
@media (max-width:400px) {
  .expertise-v7 .practice-showcase-photo-v61 {height:166px;}
  .expertise-v7 .practice-showcase-card-v61 {min-height:405px;}
  #main .contact-success-v61 {gap:10px;padding:13px 38px 13px 12px;}
  html[dir="rtl"] #main .contact-success-v61 {padding:13px 12px 13px 38px;}
}
@media (prefers-reduced-motion:reduce) {
  .expertise-v7 .practice-showcase-card-v61,
  .expertise-v7 .practice-showcase-photo-v61 img,
  .expertise-v7 .practice-showcase-more-v61 {transition:none!important;}
  #main .contact-success-v61 {animation:none!important;}
}
