/* 
   KMG Legal - Premium Hero Redesign
   Concept: Split Layout with Advanced Glassmorphism
*/

/* --- Navigation Fix for Homepage --- */
.hero-section1 .web-pulse-header {
    position: absolute;
    width: 100%;
    z-index: 1000;
}

/* 
   Only target top-level links for white color on hero.
   Exclude submenus/mega-menus by specifically targeting first-level UL.
*/
.hero-section1 .web-p-u-l-s-e-menu > .nav > li > a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* 
   When header is sticky (has blue-white solid background on scroll), 
   revert the nav links to dark color for visibility.
*/
.hero-section1 .webpulse-soluction.stricky-fixed .web-p-u-l-s-e-menu > .nav > li > a {
    color: #333333 !important;
    text-shadow: none;
}

.hero-section1 .web-p-u-l-s-e-menu > .nav > li > a:hover {
    color: #ab9169 !important;
}

/* Ensure submenus and mega-menus always have dark text for readability on their white background */
.hero-section1 .cs-dropdown a, 
.hero-section1 .cs-dropdown-mega-menu a,
.hero-section1 .mega-menu-list a,
.hero-section1 .mega-menu-list h6 {
    color: #333333 !important;
    text-shadow: none !important;
}

.hero-section1 .cs-dropdown a:hover, 
.hero-section1 .cs-dropdown-mega-menu a:hover {
    color: #ab9169 !important;
}

/* --- Hero Redesign Concept --- */
.hero-section1 {
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url(../images/premium-hero-bg.png) !important;
    background-position: center !important;
    background-size: cover !important;
    background-attachment: fixed; /* Parallax effect */
    min-height: 100vh;
}

@media (max-width: 767px) {
    .hero-section1 {
        background-attachment: scroll !important; /* Disable parallax on mobile for better performance */
    }
}

.firm-hero-content {
    padding: 180px 0 80px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 5px solid #ab9169 !important;
    border-radius: 24px;
    padding: 70px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(171, 145, 105, 0.5);
}

.hero-main-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: "Lora", serif !important;
}

.hero-main-title span {
    display: block;
    color: #ab9169 !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 20px;
    font-family: "Jost", sans-serif !important;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 45px;
    max-width: 95%;
}

.hero-subtitle strong {
    color: #ab9169;
}

/* Trust Badges - Partner Thumbnails */
.team-badge-container {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
}

.team-badge-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #ab9169;
    margin-right: -12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
    object-fit: cover;
    background: #000;
}

.team-badge-img:hover {
    transform: translateY(-8px) scale(1.15);
    z-index: 10;
    border-color: #fff;
}

.expert-text {
    margin-left: 25px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Button Refinement */
.btn-gold-hero {
    background: #ab9169;
    color: #fff !important;
    padding: 16px 45px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(171, 145, 105, 0.3);
    transition: all 0.4s ease;
}

.btn-gold-hero:hover {
    background: #fff;
    color: #ab9169 !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(171, 145, 105, 0.5);
}

.hero-section1 .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    transition: all 0.4s ease;
}

.hero-section1 .btn-outline-light:hover {
    background: #ab9169 !important;
    border-color: #ab9169 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(171, 145, 105, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-main-title { font-size: 3.2rem; }
}

@media (max-width: 991px) {
    .glass-card { padding: 50px; }
    .hero-main-title { font-size: 2.8rem; }
}

@media (max-width: 767px) {
    .firm-hero-content { padding: 140px 15px 60px; }
    .glass-card { 
        padding: 35px 25px; 
        border-left-width: 0 !important;
        border-top: 5px solid #ab9169 !important;
        text-align: center;
    }
    .hero-main-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .team-badge-container { justify-content: center; }
    .btn-gold-hero { width: 100%; display: block; }
}
