/*!
Theme Name: Shabir Shar & Associates (Child)
Theme URI: https://shabirshar.com
Author: Shabir Shar & Associates
Author URI: https://shabirshar.com
Description: Shabir Shar & Associates — Law Firm child theme (Bosa). Modern, SEO-friendly and conversion-focused design for Karachi, Hyderabad & Sukkur. Optimized for Core Web Vitals and Elementor.
Version: 1.0.0
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: bosa
Text Domain: shabirshar-child
Tags: law-firm, legal, attorney, consulting, corporate, seo, performance, elementor, gutenberg, responsive
*/

/* =========================
   S S  B R A N D  T O K E N S
========================= */
:root{
  --ss-primary: #AB831B;     /* Gold (Primary) */
  --ss-dark:    #3E3D3D;     /* Dark Gray (Secondary/Text accents) */
  --ss-bg:      #FBFBFB;     /* Background */
  --ss-text:    #2b2e32;     /* Neutral text */
}

/* Accessibility helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Base */
html, body {
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: "Open Sans", "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #111111;
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Links */
.entry-content h1 a,
.entry-content h2 a,
.entry-content h3 a,
.entry-content h4 a,
.entry-content h5 a,
.entry-content h6 a {
  text-decoration: underline;
}

a,
.entry-content p a, 
.comment-content p a, 
.entry-content li a, 
.comment-content li a, 
.widget p a, 
.comments-area .comment-list .comment-content a {
  color: var(--ss-primary);
}
a:hover, a:focus,
.entry-content p a:hover, 
.entry-content p a:focus, 
.comment-content p a:hover, 
.comment-content p a:focus, 
.entry-content li a:hover, 
.entry-content li a:focus, 
.comment-content li a:hover, 
.comment-content li a:focus, 
.widget p a:hover,
.widget p a:focus,
.comments-area .comment-list .comment-content a:hover,
.comments-area .comment-list .comment-content a:focus {
  color: var(--ss-primary);
  text-decoration: none;
}

/* Quotes */
.wp-block-quote {
  padding: 30px 30px 30px 50px;
  margin: 30px 0 30px 30px;
}

/* Header Branding */
.site-header .site-branding .site-title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ss-dark);
}
.site-header .site-branding .site-description {
  font-family: "Open Sans", "Lato", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  color: var(--ss-dark);
}

/* Navigation */
.main-navigation ul.menu > li > a {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  color: var(--ss-dark);
}
.main-navigation ul.menu ul li a {
  font-weight: 500;
}

/* Banner / Hero */
.section-banner .banner-content .entry-title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  color: #ffffff;
}
.section-banner .banner-content .entry-meta a {
  font-family: "Open Sans", "Lato", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: capitalize;
}
.section-banner .banner-content .entry-text p {
  font-family: "Open Sans", "Lato", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  text-transform: initial;
}

/* Feature posts / lists */
.feature-posts-content-wrap .feature-posts-content .feature-posts-title,
#primary article .entry-title,
.highlight-post-slider .post .entry-content .entry-title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 700;
}
.feature-posts-content-wrap .feature-posts-content .feature-posts-title {
  font-size: 18px;
  line-height: 1.4;
  text-transform: capitalize;
}
.post .feature-posts-content .cat-links a {
  font-family: "Open Sans", "Lato", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.post .feature-posts-content .entry-meta a,
#primary .entry-meta,
.highlight-post-slider .post .entry-meta a {
  font-family: "Open Sans", "Lato", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: capitalize;
}
#primary article .entry-title {
  font-size: 22px;
  line-height: 1.4;
  text-transform: capitalize;
}
.highlight-post-slider .post .entry-content .entry-title {
  font-size: 20px;
  line-height: 1.4;
  text-transform: none;
}
.highlight-post-slider .post .cat-links a {
  font-family: "Open Sans", "Lato", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
}

/* Sidebar */
.sidebar .widget .widget-title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Page title */
.page-title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: 800;
  text-transform: none;
}

/* Footer */
.site-footer .site-info,
.site-footer .footer-menu ul li a {
  font-family: "Open Sans", "Lato", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-transform: none;
  line-height: 1.6;
  color: var(--ss-dark);
}
.site-footer .footer-menu ul li a:hover {
  color: var(--ss-primary);
}

.site-footer-eight .social-profile {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
}
.site-footer-eight .footer-menu { margin-bottom: 20px; }
.section-feature-pages-area { padding-bottom: 70px; }
.section-feature-pages-area ~ .section-banner { padding-bottom: 70px; }
.section-feature-pages-area .content-wrap { margin-bottom: -30px; }

/* Feature pages tags */
.post .feature-pages-content .feature-pages-title {
  background-color: #ffffff;
  display: inline-block;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 10px 20px;
}

/* Feature/grid visuals */
.feature-pages-content-wrap,
.travel-content-wrap { margin-bottom: 30px; }

.feature-pages-layout-one .feature-pages-image,
.section-feature-posts-two-area .feature-posts-image {
  background-color: #cccccc;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.feature-pages-layout-one .feature-pages-image:before,
.section-feature-posts-two-area .feature-posts-image:before {
  background-color: rgba(0, 0, 0, 0.2);
  content: "";
  width: 100%;
  height: 100%;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 1;
  position: absolute;
  transition: all 0.4s;
  z-index: 1;
}
.feature-pages-layout-one .feature-pages-content,
.section-feature-posts-two-area .feature-posts-content {
  padding: 0 20px;
  position: relative;
  z-index: 2;
  width: 100%;
}
.section-feature-posts-two-area { padding-bottom: 50px; }
.section-feature-posts-two-area .feature-posts-image { height: 260px; }
.section-feature-posts-two-area .feature-big-posts .feature-posts-image { height: 550px; }
.section-feature-posts-two-area .feature-posts-content .feature-posts-title { margin-bottom: 15px; }
.section-feature-posts-two-area .feature-posts-content .cat-links { display:block; margin-bottom:10px; }
.section-feature-posts-two-area .feature-posts-content .cat-links a {
  background-color: var(--ss-primary);
  margin: 2px;
  padding: 5px;
  letter-spacing: 0.8px;
  transition: all 0.4s;
  color:#fff;
}

/* Ads / grid post */
.section-advert { padding-bottom: 70px; }
.section-advert a { display: inline-block; }

.site-content .grid-thumbnail .hentry { border-bottom: none; margin-bottom: 40px; padding-bottom: 0; }
.site-content .grid-thumbnail .list-post .featured-image a { display: block; }
.site-content .grid-thumbnail .list-post .featured-image img { width: 100%; }
.site-content .grid-thumbnail .list-post { display: flex; flex-wrap: wrap; }
.site-content .grid-thumbnail .list-post .featured-image { width: 100px; }
.site-content .grid-thumbnail .list-post .entry-content {
  width: calc(100% - 100px);
  padding-left: 20px;
}
.site-content .grid-thumbnail .list-post .entry-content h3{ margin-bottom: 8px; }

@media screen and (min-width: 576px) {
  .site-content .grid-thumbnail:nth-last-of-type(2) .hentry {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}
@media screen and (min-width: 992px) {
  .site-footer-eight .footer-menu { text-align: left; display:block; margin-bottom:0; }
  .site-footer-eight .footer-menu ul li:first-child { border-left: none; }
}
@media screen and (max-width: 991px) {
  .site-footer-eight .bottom-footer-image-wrap { margin-bottom: 20px; }
}
@media screen and (max-width: 767px) {
  .section-feature-pages-area { padding-bottom: 50px; }
  .section-feature-pages-area ~ .section-banner { padding-bottom: 50px; }
}
@media screen and (max-width: 574px) {
  #masthead.site-header .site-branding .site-description {
    font-size: 12px;
    margin-top: 5px;
  }
}

/* Header category menu */
.header-category-nav .navbar-nav { margin: 0; }
.header-category-nav .navbar-nav ul { padding: 0; margin: 0; }
.header-category-nav .navbar-nav li { list-style: none; position: relative; }
.header-category-nav .navbar-nav li a {
  border-bottom: 1px solid rgba(243, 243, 243, 0.8);
  display: block;
}
.header-category-nav .navbar-nav > li > a {
  background-color: var(--ss-dark);
  border-bottom: none;
  color: #FFF;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.header-category-nav .navbar-nav > li > a:hover,
.header-category-nav .navbar-nav > li > a:focus {
  background-color: var(--ss-primary);
  color: #FFF;
}
.header-category-nav .navbar-nav > li > a i { margin-right: 10px; }
.header-category-nav .navbar-nav li li a {
  color: var(--ss-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
}
.header-category-nav .navbar-nav li li a:hover,
.header-category-nav .navbar-nav li li a:focus { color: var(--ss-primary); }

/* Bottom menu spacing */
.bottom-header .main-navigation ul.menu > li > a { padding: 12px 24px 12px 0; }

.header-category-nav ul li a {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
}

/* WooCommerce tweaks */
body[class*=woocommerce] ul.products li.product .woocommerce-loop-product__title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  text-transform: none;
}
body[class*=woocommerce] ul.products li.product .price {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-transform: none;
}
body[class*=woocommerce] .product-inner .button,
body[class*=woocommerce] .product-inner .added_to_cart {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  background: var(--ss-primary);
  border-color: var(--ss-primary);
  color:#fff;
}

/* Services */
.section-services-area{ padding-bottom: 70px; }
.section-services-area .content-wrap { margin-bottom: -30px; }
.services-content-wrap { margin-bottom: 30px; }
.section-services-area .services-content-wrap {
  box-shadow: 0 0 13px -4px rgba(0, 0, 0, 0.2);
  padding: 25px;
}
.services-content-wrap .featured-image {
  overflow: hidden;
  border-radius: 100%;
  margin-right: 30px;
  margin-left: 30px;
  margin-bottom: 30px;
}
.services-content-wrap .button-container {
  padding-top: 10px;
  margin-top: 30px;
  margin-bottom: -10px;
  position: relative;
}
.services-content-wrap .button-container:before {
  border-top: 1px solid rgba(243, 243, 243, 0.8);
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 100%;
  margin-right: -25px; margin-left: -25px;
}
.services-content-wrap .button-container a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Offcanvas header */
#offcanvas-menu .header-text {
  background-color: #ffffff;
  margin-bottom: 30px;
  padding: 15px;
}
@media screen and (min-width: 992px) {
  .site-footer-eight .footer-menu { margin-bottom: 0; }
}
@media screen and (max-width: 767px) {
  .section-services-area { padding-bottom: 50px; }
}
@media screen and (max-width: 479px) {
  .site-header .header-right svg { width: 14px; }
  .header-cart a.cart-contents span.count { left: 6px; }
  #offcanvas-menu { padding-right: 10px; padding-left: 10px; }
}

/* Team section */
.section-teams-area { margin-bottom: 70px; }
.section-teams-area .row { row-gap: 30px; }
.section-teams-area .teams-content-wrap {
  border: 1px solid rgba(243, 243, 243, 0.8);
  transform: scale(0.97);
  transition: all 0.4s;
}
.section-teams-area .teams-content-wrap:hover {
  border: 1px solid rgba(237, 237, 237, 0.8);
  box-shadow: 0 0 30px 0 rgba(0,0,0,0.15);
  transform: scale(1.0);
}
.teams-content-wrap .featured-image { position: relative; z-index: 1; overflow: hidden; }
.teams-content-wrap .featured-image:before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 100%; width: 100%;
  background-color: rgba(0, 0, 0, 0.10);
  transition: all 0.4s ease-in-out;
}
.teams-content-wrap .featured-image:hover:before { opacity: 0; }
.teams-content-wrap .featured-image img { width: 100%; }
.teams-content-wrap .entry-content { padding: 30px 30px 25px; }
.teams-content-wrap .entry-content a { text-decoration: none; }
.teams-content-wrap .button-container { margin-top: 15px; }
.teams-content-wrap .button-container i { margin-left: 5px; position: relative; font-size: 13px; }
.teams-content-wrap .button-container a:hover i { animation: arrow-left 1s ease-in-out infinite alternate; }
@keyframes arrow-left{ 0%{ margin-left:5px; } 100%{ margin-left:10px; } }

/* Category section */
.section-category-area { margin-bottom: 80px; }
.section-category-area .section-title-wrap{ text-align: center; }
.section-category-area.section-title { padding-bottom: 10px; }
.section-category-area .section-title-wrap .section-title:before{
  left: 50%; transform: translatex(-50%); width: 60px;
}
.section-category-area .content-wrap .row { row-gap: 30px; }
.section-category-area .category-content-wrap { position: relative; text-align: center; }
.section-category-area .category-content-wrap .entry-title {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 10px 20px;
  position: absolute; bottom: 15px; left: 15px; right: 15px;
  margin-bottom: 0;
}
@media screen and (max-width: 574px) {
  .section-category-area .category-content-wrap .featured-image img{
    width: 100%; max-width: 100%;
  }
}

/* Popular brands (re-purposed as badges/logos if needed) */
.section-popular-area { margin-bottom: 80px; }
.section-popular-area .section-title-wrap{ text-align:center; margin-bottom:50px; }
.section-popular-area .section-title-wrap .section-title:before{ left:50%; transform:translatex(-50%); }
.section-popular-area .section-title-wrap p { margin-top: 24px; }
.section-popular-area .content-wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}
.section-popular-area .popular-items {
  flex-basis: 15%; flex-grow:1;
  box-shadow: 0 0 15px 0 rgba(0,0,0,0.06);
  padding: 15px; text-align: center; transition: all 0.4s;
  position: relative; z-index: 1; overflow: hidden; transform: scale(0.97);
}
.section-popular-area .popular-items .entry-title {
  margin-bottom: 0; position: absolute; top: 0; right: 0;
  height: 100%; width: 100%; background-color: rgba(0,0,0,0.5);
  visibility: hidden; transition: visibility 0.3s;
}
.section-popular-area .popular-items .entry-title a {
  display: inline-block; position: relative; z-index: 1; top: 50%;
  transform: translateY(-50%); color: #fff;
}
.section-popular-area .popular-items:hover { transform: scale(1.02); box-shadow: 0 0 20px 0 rgba(0,0,0,0.15); }
.section-popular-area .popular-items:hover .entry-title{ visibility: visible; }
@media screen and (max-width: 991px) {
  .section-popular-area .content-wrap { gap: 30px; }
  .section-popular-area .popular-items { flex-basis: 30%; }
}
@media screen and (max-width: 767px) {
  .section-popular-area .content-wrap { gap: 25px; }
  .section-popular-area .popular-items { flex-basis: 47%; }
}
@media screen and (max-width: 479px) {
  .section-popular-area .popular-items { flex-basis: 50%; }
}

/* Utility helpers */
.bg-ss-primary{ background: var(--ss-primary) !important; color:#fff !important; }
.text-ss-primary{ color: var(--ss-primary) !important; }
.border-ss-primary{ border-color: var(--ss-primary) !important; }
