﻿/* ========================================
   M&A Lawfirm - Landing Page
   Brand Identity Colors
   ======================================== */

:root {
    /* Brand Colors - Black & Gold */
    --primary-dark: #0A0A0A;
    --primary: #141414;
    --primary-light: #1F1F1F;
    --gold: #C9A84C;
    --gold-light: #D4B96A;
    --gold-dark: #B8960F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-bg: #FAFAFA;
    --text-dark: #0A0A0A;
    --text-muted: #6c757d;
    --border-light: #e8e8e8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    color: var(--white);
    font-weight: 600;
    font-size: 1em;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9em;
    padding: 8px 16px !important;
    transition: all 0.3s;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
    background: rgba(201,168,76,0.1);
}

.btn-lang {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s;
}

.btn-lang:hover {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
}

.btn-client-login {
    background: var(--gold);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s;
}

.btn-client-login:hover {
    background: var(--gold-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section {
    min-height: 100vh;
    padding-top: 150px;
    background: url('../img/team_bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(20,20,20,0.88) 50%, rgba(31,31,31,0.82) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: radial-gradient(circle at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(201,168,76,0.3);
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.gold-text {
    display: block;
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
}

.hero-subtitle {
    font-size: 1.1em;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--primary-dark);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s;
    border: none;
}

.btn-hero-primary:hover {
    background: var(--gold-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,168,76,0.3);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.hero-gavel {
    position: absolute;
    right: -100px;
    bottom: -50px;
    font-size: 400px;
    color: rgba(201,168,76,0.05);
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 100px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-line {
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.label-line.light {
    background: rgba(255,255,255,0.3);
}

.section-title {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== ABOUT ===== */
.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    background: url('../img/about_law.jpg') center/cover no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '⚖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    opacity: 0.1;
}

.about-experience {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(201,168,76,0.3);
}

.exp-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

.exp-text {
    font-size: 0.8em;
    font-weight: 600;
}

.about-text {
    font-size: 1.05em;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(201,168,76,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.about-feature strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9em;
    color: var(--text-muted);
    margin: 0;
}

/* ===== VMV CARDS ===== */
.vmv-section {
    background: var(--light-bg);
}
.vmv-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.vmv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.vmv-card.featured {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.vmv-card.featured h3 {
    color: var(--gold);
}

.vmv-card.featured p {
    color: rgba(255,255,255,0.8);
}

.vmv-icon {
    width: 70px;
    height: 70px;
    background: rgba(201,168,76,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5em;
    color: var(--gold);
}

.vmv-card.featured .vmv-icon {
    background: rgba(201,168,76,0.2);
}

.vmv-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.vmv-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}
.vmv-card h3 {
    color: var(--primary-dark);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===== GOALS ===== */
.goal-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    height: 100%;
    transition: all 0.3s;
}

.goal-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(201,168,76,0.1);
}

.goal-icon {
    width: 80px;
    height: 80px;
    background: rgba(201,168,76,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8em;
    color: var(--gold);
}

.goal-card p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== SERVICES ===== */
.services-section {
    background: url('../img/services_bg.jpg') center/cover no-repeat;
    position: relative;
}
.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(20,20,20,0.9) 100%);
}

.service-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.service-card:hover {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8em;
    color: var(--gold);
}

.service-card h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05em;
}

/* ===== PARTNER SERVICES ===== */
.partner-service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.partner-service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(201,168,76,0.1);
}

.partner-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,168,76,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4em;
    color: var(--gold);
}

.partner-service-card h6 {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95em;
    margin: 0;
}

/* ===== DEPARTMENTS ===== */
.departments-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #000000 100%);
    position: relative;
}

.dept-card-link {
    text-decoration: none;
    display: block;
}

.dept-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.dept-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(19,42,42,0.55) 0%, rgba(19,42,42,0.85) 100%);
    transition: all 0.4s;
}

.dept-card:hover .dept-overlay {
    background: linear-gradient(180deg, rgba(19,42,42,0.45) 0%, rgba(19,42,42,0.8) 100%);
}

.dept-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.dept-content .dept-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,168,76,0.2);
    border: 2px solid rgba(201,168,76,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4em;
    color: var(--gold);
    transition: all 0.3s;
}

.dept-card:hover .dept-icon {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
    transform: scale(1.1);
}

.dept-content h6 {
    color: var(--white);
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 8px;
}

.dept-content .dept-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.8em;
    line-height: 1.5;
    margin: 0;
}

/* Department Backgrounds - Real Law Photos */
.dept-bg-litigation {
    background: url('../img/departments/litigation_law.jpg') center/cover no-repeat;
}
.dept-bg-companies {
    background: url('../img/departments/companies_law.jpg') center/cover no-repeat;
}
.dept-bg-contracts {
    background: url('../img/departments/contracts_law.jpg') center/cover no-repeat;
}
.dept-bg-government {
    background: url('../img/departments/government_law.jpg') center/cover no-repeat;
}
.dept-bg-youth {
    background: url('../img/departments/youth_law.jpg') center/cover no-repeat;
}
.dept-bg-debt {
    background: url('../img/departments/debt_law.jpg') center/cover no-repeat;
}
.dept-bg-realestate {
    background: url('../img/departments/realestate_law.jpg') center/cover no-repeat;
}
.dept-bg-arbitration {
    background: url('../img/departments/arbitration_law.jpg') center/cover no-repeat;
}
/* ===== DEPARTMENT DETAILS ===== */
.dept-detail-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 36px;
    height: 100%;
}

.dept-detail-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(201,168,76,0.2);
}

.dept-detail-item {
    margin-bottom: 20px;
}

.dept-detail-item h6 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.dept-detail-item p,
.dept-detail-text p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== TEAM ===== */
.team-section {
    background: url('../img/team_bg.jpg') center/cover no-repeat;
    position: relative;
    z-index: 1;
}
.team-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(20,20,20,0.88) 100%);
}

.team-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-dark);
}

.team-card h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    color: var(--gold);
    font-size: 0.9em;
    font-weight: 600;
}

.team-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.85em;
    margin: 12px 0;
    line-height: 1.6;
}

.team-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto;
}

.team-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CLIENTS ===== */
/* ===== CLIENTS ===== */
.client-col {
    padding-top: 4px;
    padding-bottom: 4px;
}

.client-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    transition: all 0.35s ease;
    animation: clientCardIn 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    transform: translateY(15px);
}
@keyframes clientCardIn {
    to { opacity: 1; transform: translateY(0); }
}
.client-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(201,168,76,0.15);
    transform: translateY(-5px);
}

.client-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1em;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}
.client-card:hover .client-card-icon {
    transform: scale(1.1);
}

.client-card-name {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    min-height: 2.1em;
    display: flex;
    align-items: center;
}

/* ===== PARTNERS ===== */
.partner-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(201,168,76,0.1);
}

.partner-card h5 {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1em;
    margin: 0 0 8px 0;
}

.partner-desc {
    color: var(--text-muted);
    font-size: 0.85em;
    margin: 0;
}

.partner-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,168,76,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4em;
    color: var(--gold);
}

/* ===== CONTACT ===== */
.contact-section {
    background: url('../img/contact_bg.jpg') center/cover no-repeat;
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(20,20,20,0.9) 100%);
}
/* Section content z-index */
.team-section .container,
.services-section .container,
.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-card .form-control {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95em;
}

.contact-form-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(201,168,76,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1em;
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    color: var(--white);
    font-size: 0.9em;
    margin-bottom: 2px;
}

.contact-info-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
    margin: 0;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1em;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

/* ===== FOOTER ===== */
.footer-section {
    background: #050505;
    padding: 60px 0 30px;
}

.footer-brand .brand-logo {
    font-size: 1.5em;
}

.footer-brand h5 {
    color: var(--white);
    font-weight: 700;
    margin: 8px 0;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9em;
}

.footer-title {
    color: var(--gold);
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.85em;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */

/* Hero Content Entrance - Staggered */
.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease 0.2s forwards;
}
.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease 0.4s forwards;
}
.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease 0.6s forwards;
}
.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease 0.8s forwards;
}
.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease 1s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations - IntersectionObserver */
.animate-in {
    animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered children animation */
.stagger-in > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-in.animate-in > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-in.animate-in > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

/* Card Hover Effects */
.vmv-card,
.goal-card,
.service-card,
.partner-service-card,
.partner-card,
.team-card,
.dept-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vmv-card:hover,
.goal-card:hover,
.service-card:hover,
.partner-service-card:hover,
.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(28,56,56,0.15);
}
.dept-card:hover .dept-overlay {
    opacity: 0.7;
}
.dept-card:hover .dept-content {
    transform: translateY(-5px);
}
.dept-card:hover .dept-icon {
    transform: scale(1.15);
    background: var(--gold);
    color: var(--primary-dark);
}
.dept-icon {
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.dept-content {
    transition: transform 0.35s ease;
}

/* Button hover glow */
.btn-hero-primary {
    transition: all 0.3s ease;
}
.btn-hero-primary:hover {
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

/* Navbar smooth scroll transition */
.navbar-brand img {
    transition: height 0.3s ease;
}

/* Back to top bounce */
.back-to-top.show {
    animation: bounceIn 0.4s ease;
}
@keyframes bounceIn {
    0% { transform: translateY(20px); opacity: 0; }
    60% { transform: translateY(-5px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* Section label line animation */
.section-label .label-line {
    width: 0;
    transition: width 0.5s ease;
}
.animate-in .section-label .label-line,
.section-label .label-line {
    width: 40px;
}

/* Scroll child animations */
.animate-child {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth section fade-in on scroll */
.section-padding {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-padding.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.hero-section {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1199px) {
    .hero-title { font-size: 2.8em; }
    .section-title { font-size: 2.2em; }
    .dept-card { height: 280px; }
}

@media (max-width: 991px) {
    .navbar { padding: 10px 0; }
    .navbar-brand img { height: 55px; }
    .navbar-brand { gap: 8px; }
    .navbar-toggler { padding: 4px 8px; font-size: 1.1rem; }
    .navbar-collapse {
        background: rgba(28,56,56,0.98);
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
    }
    .navbar-nav { text-align: center; }
    .nav-link { padding: 10px 16px !important; font-size: 1em; }
    .d-flex.align-items-center { justify-content: center; margin-top: 15px; }
    .hero-section { padding-top: 80px; }
    .hero-title { font-size: 2.5em; }
    .hero-gavel { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .hero-stat-divider { display: none; }
    .section-title { font-size: 2em; }
    .dept-card { height: 260px; }
    .dept-content h6 { font-size: 0.95em; }
    .team-card { margin-bottom: 20px; }
    .footer-section .col-lg-4,
    .footer-section .col-lg-2,
    .footer-section .col-lg-3 { text-align: center; margin-bottom: 20px; }
    .footer-section { padding: 40px 0 20px; }
    .footer-social { justify-content: center; }
    .footer-copy { text-align: center; margin-top: 10px; }
    .contact-form-card { margin-bottom: 30px; }
}

@media (max-width: 767px) {
    .navbar-brand img { height: 50px; }
    .hero-section { min-height: auto !important; padding: 100px 0 40px !important; }
    .hero-content { opacity: 1 !important; visibility: visible !important; text-align: center !important; }
    .hero-title { font-size: 1.8em; margin-bottom: 15px; }
    .hero-subtitle { font-size: 0.9em; line-height: 1.7; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; gap: 12px; align-items: center; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; padding: 12px 20px; }
    .hero-stats { justify-content: center; gap: 15px; }
    .hero-badge { font-size: 0.75em; padding: 8px 16px; }
    .row { --bs-gutter-x: 12px; }
    .container, .container-sm, .container-md, .container-lg, .container-xl { padding-left: 12px; padding-right: 12px; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.6em; text-align: center; }
    .section-label { font-size: 0.8em; justify-content: center; }
    .about-image { height: 300px; }
    .about-experience { bottom: -15px; right: 10px; padding: 14px 20px; }
    .vmv-card { padding: 30px 20px; margin-bottom: 16px; }
    .vmv-icon { width: 60px; height: 60px; font-size: 1.3em; }
    .goal-card { padding: 20px 15px; }
    .goal-icon { width: 60px; height: 60px; font-size: 1.4em; }
    .service-card { padding: 30px 20px; }
    .service-icon { width: 60px; height: 60px; font-size: 1.4em; }
    .partner-service-card { padding: 20px 15px; }
    .dept-card { height: 200px; }
    .dept-content { padding: 20px 15px; }
    .dept-content h6 { font-size: 0.85em; }
    .dept-detail-card { padding: 24px; margin-bottom: 20px; }
    .team-card { padding: 30px 20px; }
    .team-avatar { width: 80px; height: 80px; }
    .team-card h4 { font-size: 1.1em; }
    .client-card { padding: 14px 10px; }
    .client-card-icon { width: 40px; height: 40px; font-size: 0.9em; }
    .client-card-name { font-size: 0.7em; }
    .partner-card { padding: 20px 15px; }
    .partner-card h5 { font-size: 0.9em; }
    .contact-form-card { padding: 24px 20px; }
    .footer-section { padding: 40px 0 20px; }
    .footer-brand { text-align: center; margin-bottom: 25px; }
    .footer-title { text-align: center; }
    .footer-links { text-align: center; }
    .footer-contact { text-align: center; }
    .footer-section .col-lg-4, .footer-section .col-lg-2, .footer-section .col-lg-3 { text-align: center; margin-bottom: 25px; }
    .footer-social { justify-content: center; margin-top: 10px; }
    .footer-copy { text-align: center; margin-top: 15px; }
    .brand-logo { font-size: 1.4em; }
    .btn-lang { padding: 5px 12px; font-size: 0.8em; }
    .btn-client-login { padding: 6px 14px; font-size: 0.8em; }
    img { max-width: 100%; height: auto; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5em; }
    .section-title { font-size: 1.4em; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat-divider { display: none; }
    .stat-number { font-size: 1.3em; }
    .dept-card { height: 180px; }
    .about-experience { position: relative; bottom: auto; right: auto; display: inline-block; margin-top: 15px; }
    .client-card { padding: 12px 8px; }
    .client-card-icon { width: 35px; height: 35px; font-size: 0.8em; border-radius: 10px; }
    .client-card-name { font-size: 0.65em; }
}
/* ===== RTL ===== */
[dir="rtl"] .hero-pattern { right: auto; left: -100px; }
[dir="rtl"] .hero-gavel { left: 5%; right: auto; }
[dir="rtl"] .about-experience { right: auto; left: 10px; }
[dir="rtl"] .back-to-top { left: auto; right: 30px; }

/* ===== COMPREHENSIVE TEXT VISIBILITY ===== */

/* Light background sections (dark text) */
.about-section .section-label,
.about-section .section-title,
.vmv-section .section-label,
.vmv-section .section-title,
.goal-section .section-label,
.goal-section .section-title,
.bg-light .section-label,
.bg-light .section-title,
.bg-white .section-label,
.bg-white .section-title {
    color: var(--primary-dark) !important;
}

.about-section .section-title,
.vmv-section .section-title,
.bg-light .section-title,
.bg-white .section-title {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

.about-section .section-label,
.vmv-section .section-label,
.bg-light .section-label,
.bg-white .section-label {
    color: var(--gold) !important;
    opacity: 1 !important;
}

.about-section p,
.vmv-section p,
.bg-light p,
.bg-white p {
    opacity: 1 !important;
}

.about-text {
    color: #555 !important;
    opacity: 1 !important;
}

.about-feature strong {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

.about-feature p {
    color: #666 !important;
    opacity: 1 !important;
}

/* VMV Cards */
.vmv-card h3 {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

.vmv-card p {
    color: #555 !important;
    opacity: 1 !important;
}

.vmv-card.featured {
    background: var(--primary-dark);
}

.vmv-card.featured h3 {
    color: var(--gold) !important;
}

.vmv-card.featured p {
    color: rgba(255,255,255,0.9) !important;
}

/* Goal Cards */
.goal-card h5 {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

.goal-card p {
    color: #555 !important;
    opacity: 1 !important;
}

/* Dark background sections (light text) */
.services-section .section-label,
.services-section .section-title,
.team-section .section-label,
.team-section .section-title,
.contact-section .section-label,
.contact-section .section-title,
.departments-section .section-label,
.departments-section .section-title {
    color: var(--gold) !important;
    opacity: 1 !important;
}

.services-section .section-title,
.team-section .section-title,
.contact-section .section-title,
.departments-section .section-title {
    color: var(--white) !important;
}

.services-section .section-label,
.team-section .section-label,
.contact-section .section-label,
.departments-section .section-label {
    color: var(--gold) !important;
}

.services-section p,
.team-section p,
.contact-section p,
.departments-section p {
    color: rgba(255,255,255,0.8) !important;
    opacity: 1 !important;
}

/* Department detail section (white bg) */
#litigation-detail .section-label,
#litigation-detail .section-title {
    color: var(--primary-dark) !important;
}

.dept-detail-item h6 {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

.dept-detail-item p {
    color: #555 !important;
    opacity: 1 !important;
}

.dept-detail-title {
    color: var(--gold-dark) !important;
    opacity: 1 !important;
}

/* Partners section (light bg) */
.section-padding.bg-light .section-label,
.section-padding.bg-light .section-title {
    color: var(--primary-dark) !important;
}

.partner-card h5 {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

.partner-desc {
    color: #666 !important;
    opacity: 1 !important;
}

/* Clients section (white bg) */
.section-padding.bg-white .section-label,
.section-padding.bg-white .section-title {
    color: var(--primary-dark) !important;
}

.client-card {
    opacity: 1 !important;
}
.client-card-name {
    color: var(--primary-dark) !important;
    opacity: 1 !important;
}

/* Contact section specifics */
.contact-info-item strong {
    color: var(--white) !important;
}

.contact-info-item p {
    color: rgba(255,255,255,0.7) !important;
}

/* Footer */
.footer-section h5,
.footer-section h6 {
    opacity: 1 !important;
}

.footer-contact p {
    color: rgba(255,255,255,0.7) !important;
}

.footer-links a {
    color: rgba(255,255,255,0.7) !important;
}

.footer-copy {
    color: rgba(255,255,255,0.5) !important;
}

/* Ensure all text starts visible before animation fires */
.section-padding > .container > * {
    opacity: 1 !important;
}
/* VMV SECTION - SPECIFIC FIXES */
.vmv-section {
    background: #f0f0eb !important;
}

.vmv-section .text-center .section-label {
    color: #b8960f !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.vmv-section .text-center .section-label span {
    color: #b8960f !important;
    opacity: 1 !important;
}

.vmv-section .text-center .section-label .label-line {
    background: #b8960f !important;
    opacity: 1 !important;
}

.vmv-section .text-center .section-title {
    color: #1C3838 !important;
    font-weight: 800 !important;
    font-size: 2.3em !important;
    opacity: 1 !important;
}

.vmv-card h3 {
    color: #1C3838 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.vmv-card p {
    color: #666 !important;
    font-size: 0.95em !important;
    line-height: 1.8 !important;
    opacity: 1 !important;
}

.vmv-card.featured h3 {
    color: #C9A84C !important;
}

.vmv-card.featured p {
    color: rgba(255,255,255,0.9) !important;
}