/*
 * SSA Legal V38 — Full Responsive UI & Interaction Polish
 * 01 Oct 2026
 * Additive final override layer. Keeps the approved visual design intact while
 * hardening layout, touch targets, floating actions and icon consistency.
 */

/* --------------------------------------------------------------------------
   1. GLOBAL RESPONSIVE SAFETY
   -------------------------------------------------------------------------- */
html,
body{
  max-width:100%;
  overflow-x:clip;
}

main,
section,
.shell,
.section-head,
.hero-v7-content,
.expertise-v7-grid,
.expertise-v7-list,
.team-v29-slider,
.team-v29-viewport,
.team-v29-grid,
.footer-grid,
.footer-bottom{
  min-width:0;
}

img,
video,
iframe{
  max-width:100%;
}

img,
video{height:auto}

:is(h1,h2,h3,h4,p,li,a,span,strong,small){
  overflow-wrap:break-word;
}

/* --------------------------------------------------------------------------
   2. CRISP, CONSISTENT EXTERNAL-LINK ICONS
   -------------------------------------------------------------------------- */
.expertise-v7-card-top i.ui-arrow.ui-arrow-ne{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  flex:0 0 40px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #ded4bf!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.96)!important;
  color:#17140e!important;
  box-shadow:0 5px 16px rgba(47,38,22,.06)!important;
  transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease,transform .22s ease!important;
}

.expertise-v7-card-top i.ui-arrow.ui-arrow-ne::before{
  width:17px!important;
  height:17px!important;
}

.expertise-v7-card:hover .expertise-v7-card-top i.ui-arrow.ui-arrow-ne,
.expertise-v7-card:focus-visible .expertise-v7-card-top i.ui-arrow.ui-arrow-ne{
  border-color:#cda94e!important;
  background:#17140e!important;
  color:#ebca75!important;
  box-shadow:0 8px 22px rgba(26,22,14,.14)!important;
  transform:translateY(-1px)!important;
}

/* All text-arrow actions use a comfortable interaction box without altering
   their visual typography. */
.text-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:40px;
}

.text-link::after,
html[dir="rtl"] .text-link::after{
  width:15px!important;
  height:15px!important;
  flex-basis:15px!important;
  margin:0!important;
}

/* --------------------------------------------------------------------------
   3. FLOATING ACTIONS — NO CONTENT-COVERING PILL
   -------------------------------------------------------------------------- */










.floating-contact,
html[dir="ltr"] .floating-contact,
html[dir="rtl"] .floating-contact{
  right:auto!important;
  left:auto!important;
  inset-inline-start:auto!important;
  inset-inline-end:21px!important;
  bottom:max(88px,calc(74px + env(safe-area-inset-bottom)))!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#25d366!important;
  box-shadow:0 11px 26px rgba(12,120,61,.27),0 0 0 1px rgba(255,255,255,.96)!important;
  z-index:11990!important;
  transition:opacity .2s ease,visibility .2s ease,transform .2s ease,box-shadow .2s ease!important;
}

.floating-contact svg{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  min-height:26px!important;
}

/* The WhatsApp shortcut becomes redundant while Sabah's full panel is open. */


/* Sabah's full dialog must remain viewport-safe on every device. */


/* --------------------------------------------------------------------------
   4. HEADER / MOBILE NAV TOUCH & SAFE-AREA HARDENING
   -------------------------------------------------------------------------- */
.site-header .nav-toggle,
.site-header .mobile-nav-close{
  min-width:44px!important;
  min-height:44px!important;
}

.site-header .mobile-language-switch a{
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  display:grid!important;
  place-items:center!important;
}

.site-header .main-nav a,
.site-header .nav-dropdown>button,
.site-header .mobile-nav-cta a{
  touch-action:manipulation;
}

/* --------------------------------------------------------------------------
   5. FORMS — IOS ZOOM / TAP-TARGET PROTECTION
   -------------------------------------------------------------------------- */


:is(button,.button,input,select,textarea,a){
  -webkit-tap-highlight-color:transparent;
}

/* --------------------------------------------------------------------------
   6. HOME PRACTICE AREA RESPONSIVE REFINEMENT
   -------------------------------------------------------------------------- */
.expertise-v7-card{
  min-width:0;
}

.expertise-v7-card h3,
.expertise-v7-feature h3{
  text-wrap:balance;
}

.expertise-v7-card p,
.expertise-v7-feature p{
  text-wrap:pretty;
}

/* --------------------------------------------------------------------------
   7. TEAM / RESOURCES / FOOTER ACTION TARGETS
   -------------------------------------------------------------------------- */
.team-v29-resume-link,
.team-v29-card-link,
.team-directory-actions-v27 a,
.profile-jump-v27,
.resume-chip-v27,
.footer-social-link-v31{
  touch-action:manipulation;
}

.footer-social-link-v31{
  min-height:42px;
  padding-block:7px;
}

.footer-social-link-v31 svg{flex:0 0 auto}

/* --------------------------------------------------------------------------
   8. TABLET / COMPACT DESKTOP
   -------------------------------------------------------------------------- */
@media (max-width:1280px){
  .expertise-v7-head{gap:34px}
  .expertise-v7-card{padding:clamp(22px,2.4vw,28px)}
  .expertise-v7-card h3{font-size:clamp(1.55rem,2.6vw,2rem)}
}

@media (max-width:1100px){
  .site-header .nav-shell{column-gap:12px}
  .footer-grid{gap:30px}

  /* Compact tablet dock: keep the two global actions in one bottom band so
     they do not consume a tall vertical strip over cards. */
  
  .floating-contact,
  html[dir="ltr"] .floating-contact,
  html[dir="rtl"] .floating-contact{
    inset-inline-start:auto!important;
    inset-inline-end:84px!important;
    bottom:max(19px,calc(16px + env(safe-area-inset-bottom)))!important;
  }

  /* Once the desktop nav becomes a drawer, the content should retain clean
     breathing room under the sticky header. */
  .page-hero,.hero-v7-frame{scroll-margin-top:76px}
}

@media (max-width:960px){
  .expertise-v7-grid{gap:16px!important}
  .expertise-v7-feature{min-height:460px!important}
  .expertise-v7-list{gap:14px!important}

  .section-head{
    gap:22px!important;
  }

  .footer-bottom{
    justify-content:flex-start!important;
    row-gap:7px!important;
  }
}

/* --------------------------------------------------------------------------
   9. PHONE / SMALL TABLET — A-TO-Z RESPONSIVE PASS
   -------------------------------------------------------------------------- */
@media (max-width:760px){
  /* Force the logical start inset back to auto. Older V7 mobile CSS assigns
     both inline sides and caused the Sabah button to jump to the opposite edge. */
  

  

  

  /* Horizontal bottom action dock: only one 50px-high overlay band instead
     of two vertically stacked buttons covering card copy. */
  .floating-contact,
  html[dir="ltr"] .floating-contact,
  html[dir="rtl"] .floating-contact{
    right:auto!important;
    left:auto!important;
    inset-inline-start:auto!important;
    inset-inline-end:70px!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
  }

  .floating-contact svg{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
  }

  

  

  

  /* Prevent iOS Safari from auto-zooming form fields. */
  

  .button,
  button:not(.lightbox-nav),
  .text-link,
  .team-v29-resume-link,
  .team-directory-actions-v27 a,
  .profile-jump-v27,
  .resume-chip-v27{
    min-height:44px;
  }

  .text-link{padding-block:7px}

  .expertise-v7-head p{max-width:100%!important}
  .expertise-v7-feature{
    min-height:400px!important;
    padding:24px!important;
    border-radius:24px!important;
  }
  .expertise-v7-feature h3{font-size:clamp(2rem,9vw,2.6rem)!important}
  .expertise-v7-feature p{line-height:1.68!important}
  .expertise-v7-list{grid-template-columns:1fr!important;gap:12px!important}
  .expertise-v7-card{
    min-height:0!important;
    padding:22px!important;
    border-radius:22px!important;
  }
  .expertise-v7-card h3{
    margin-top:18px!important;
    font-size:clamp(1.6rem,7.3vw,2rem)!important;
  }
  .expertise-v7-card p{line-height:1.62!important}
  .expertise-v7-card-top i.ui-arrow.ui-arrow-ne{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    flex-basis:38px!important;
  }
  .expertise-v7-card-top i.ui-arrow.ui-arrow-ne::before{
    width:16px!important;
    height:16px!important;
  }

  .resource-empty-state,
  .legal-updates-empty-note,
  .legal-resource-card{
    border-radius:20px!important;
  }

  .footer-social-v31{gap:8px!important}
  .footer-social-link-v31{min-height:44px;padding:8px 10px;margin:0!important}

  .footer-bottom{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    text-align:start!important;
  }
  .footer-separator-v37{display:none!important}
}

@media (max-width:540px){
  .site-header .main-nav{
    padding-inline:18px!important;
  }

  .site-header .mobile-nav-head{
    margin-inline:-18px!important;
    padding-inline:14px!important;
  }

  .expertise-v7-feature{
    min-height:370px!important;
    padding:21px!important;
  }

  .expertise-v7-mark{
    width:104px!important;
    height:104px!important;
    top:24px!important;
    inset-inline-end:22px!important;
  }

  .expertise-v7-number{
    top:24px!important;
    inset-inline-start:22px!important;
  }

  .team-v29-resume-link{
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
  }

  .cookie-note{
    width:calc(100% - 20px)!important;
    padding:14px!important;
    gap:12px!important;
  }
}

@media (max-width:390px){
  

  

  

  .floating-contact,
  html[dir="ltr"] .floating-contact,
  html[dir="rtl"] .floating-contact{
    inset-inline-end:66px!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
  }

  .floating-contact svg{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
    min-height:23px!important;
  }

  .expertise-v7-feature{min-height:350px!important}
  .expertise-v7-card{padding:20px!important}
}

/* Landscape phones: keep the nav/dialog usable without consuming the full
   visible canvas behind browser chrome. */
@media (max-width:900px) and (orientation:landscape) and (max-height:560px){
  .site-header .nav-shell{min-height:62px!important}
  .site-header .brand-full-logo{height:62px!important}
  .site-header .brand-full-logo-img{height:52px!important}
  
}

/* Keyboard focus must remain obvious after the visual polish. */


@media (prefers-reduced-motion:reduce){
  .floating-contact,.expertise-v7-card-top i.ui-arrow.ui-arrow-ne{
    transition:none!important;
  }
}

/* Final header/footer micro-hardening after device screenshots. */
.breadcrumbs a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
}

.footer-grid a{
  min-height:32px;
  display:flex;
  align-items:center;
}

@media (max-width:1100px){
  /* An opaque compact header prevents underlying hero/trust copy from bleeding
     through while the navigation is in drawer mode. */
  .site-header{
    background:#10100e!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}
