/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0a2540;
    --color-primary-dark: #061829;
    --color-secondary: #c8102e;
    --color-accent: #d4af37;
    --color-text: #1a1a2e;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: rgba(0, 0, 0, 0.08);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }
.header-main { padding: 12px 0; }

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
}

.logo-m {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.main-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.search-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover { background: var(--color-bg-light); color: var(--color-secondary); }

/* ===== LANGUAGE SELECTOR (FRONT) ===== */
.language-selector-front { position: relative; }

.lang-btn-front {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-bg-light);
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
}

.lang-btn-front:hover { background: var(--color-primary); color: #fff; }
.lang-btn-front:hover i { color: #fff; }
.lang-btn-front i { color: var(--color-primary); transition: var(--transition); }
.lang-btn-front .current-lang { font-weight: 700; letter-spacing: 1px; }

.lang-menu-front {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--color-border);
    z-index: 1001;
}

.language-selector-front.open .lang-menu-front {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu-front li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.lang-menu-front li:last-child a { border-bottom: none; }
.lang-menu-front li a:hover { background: var(--color-bg-light); color: var(--color-secondary); padding-left: 24px; }
.lang-menu-front li a.active { background: var(--color-primary); color: #fff; }
.lang-menu-front .flag { font-size: 1.2rem; }

.btn-contact {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-contact:hover { background: #a00d24; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
}

.menu-toggle span { width: 24px; height: 2px; background: var(--color-text); transition: var(--transition); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; max-width: 400px;
    height: 100vh;
    background: var(--color-bg);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav.active { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.close-nav {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--color-text);
}

.mobile-nav-links { padding: 24px; }
.mobile-nav-links li { border-bottom: 1px solid var(--color-border); }

.mobile-nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
}

.mobile-nav-links a:hover { color: var(--color-secondary); padding-left: 8px; }

.mobile-lang-selector { padding: 24px; border-top: 1px solid var(--color-border); }
.mobile-lang-selector p { font-size: 0.8rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }

.mobile-lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mobile-lang-grid a { padding: 12px; background: var(--color-bg-light); border-radius: 6px; font-size: 0.9rem; text-align: center; }
.mobile-lang-grid a:hover { background: var(--color-primary); color: #fff; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-background { position: absolute; inset: 0; z-index: -1; }
.hero-bg-image { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.75) 50%, rgba(10, 37, 64, 0.85) 100%); }

.hero-content { max-width: 800px; padding: 60px 0; }

.hero-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; color: #ffffff; line-height: 1; margin-bottom: 24px; }
.hero-title-line { display: block; }
.hero-title-line.accent { color: var(--color-accent); }

.hero-subtitle { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: rgba(255, 255, 255, 0.95); margin-bottom: 16px; }

.hero-description { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin-bottom: 40px; line-height: 1.7; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: #a00d24; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-accent); color: var(--color-primary-dark); }

.hero-stats { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 32px 0; margin-top: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--color-accent); margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS ===== */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }

.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; }
.section-label.light { color: var(--color-accent); }

.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--color-primary); }
.section-title.light { color: #fff; }

.section-description { font-size: 1.125rem; color: var(--color-text-light); margin-top: 16px; line-height: 1.7; }
.section-cta { text-align: center; margin-top: 48px; }

/* ===== FEATURED INSIGHTS ===== */
.featured-insights { padding: 100px 0; background: var(--color-bg); }
.insights-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }

.insight-card { background: var(--color-bg); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); }
.insight-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.insight-card.featured { grid-row: span 2; }

.insight-image { position: relative; height: 200px; overflow: hidden; }
.insight-card.featured .insight-image { height: 320px; }
.insight-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.insight-card:hover .insight-image img { transform: scale(1.05); }

.insight-category { position: absolute; top: 16px; left: 16px; background: var(--color-secondary); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 6px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }

.insight-content { padding: 24px; }
.insight-content h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.insight-card.featured .insight-content h3 { font-size: 1.5rem; }
.insight-content p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 16px; line-height: 1.6; }

.insight-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--color-secondary); }
.insight-link:hover { gap: 12px; }

/* ===== PRACTICE AREAS ===== */
.practice-areas { padding: 100px 0; background: var(--color-bg-light); }
.practices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.practice-item { display: block; padding: 32px; background: var(--color-bg); border-radius: 8px; border: 1px solid var(--color-border); transition: var(--transition); text-align: center; }
.practice-item:hover { border-color: var(--color-secondary); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.practice-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-accent); }
.practice-item h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.practice-item p { font-size: 0.9rem; color: var(--color-text-light); }

/* ===== GLOBAL REACH ===== */
.global-reach { position: relative; padding: 120px 0; overflow: hidden; }
.global-reach-background { position: absolute; inset: 0; z-index: -1; }
.global-reach-background img { width: 100%; height: 100%; object-fit: cover; }
.global-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.85) 100%); }
.global-content { max-width: 700px; }
.global-description { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); margin: 24px 0 40px; line-height: 1.7; }
.global-stats { display: flex; gap: 48px; margin-bottom: 40px; }
.global-stat { text-align: center; }
.global-stat i { font-size: 1.5rem; color: var(--color-accent); margin-bottom: 8px; }
.global-stat-number { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; }
.global-stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; background: var(--color-bg-light); }
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cta-block { display: block; padding: 48px; background: var(--color-bg); border-radius: 8px; border: 1px solid var(--color-border); transition: var(--transition); }
.cta-block:hover { background: var(--color-primary); border-color: var(--color-primary); }
.cta-content { position: relative; }
.cta-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.cta-block:hover .cta-label { color: var(--color-accent); }
.cta-block h2 { font-size: 1.5rem; font-weight: 600; transition: var(--transition); }
.cta-block:hover h2 { color: #fff; }
.cta-arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-text-light); transition: var(--transition); }
.cta-block:hover .cta-arrow { color: var(--color-accent); transform: translateY(-50%) translateX(8px); }

/* ===== FOOTER ===== */
.footer { background: var(--color-primary-dark); color: #fff; padding: 80px 0 40px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 2fr; gap: 80px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer-logo .logo-icon { background: transparent; border: 2px solid var(--color-accent); }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-subtitle { color: var(--color-accent); }
.footer-description { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: #fff; font-size: 1rem; transition: var(--transition); }
.footer-social a:hover { background: var(--color-secondary); transform: translateY(-4px); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.footer-column h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-column ul a:hover { color: #fff; padding-left: 4px; }

.footer-bottom { padding-top: 40px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.footer-legal a { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: #fff; }
.footer-copyright { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .main-nav ul { gap: 16px; }
    .main-nav a { font-size: 0.8rem; }
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .insights-grid { grid-template-columns: 1fr 1fr; }
    .insight-card.featured { grid-column: span 2; grid-row: span 1; }
    .practices-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .hero { padding-top: 80px; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .insights-grid { grid-template-columns: 1fr; }
    .insight-card.featured { grid-column: span 1; }
    .practices-grid { grid-template-columns: 1fr; }
    .global-stats { flex-wrap: wrap; gap: 24px; }
    .cta-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; gap: 32px; }
    .btn-contact { display: none; }
    .lang-btn-front { padding: 8px 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .stat-number { font-size: 2rem; }
    .cta-block { padding: 32px 24px; }
    .footer-legal { flex-direction: column; gap: 12px; }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .main-nav ul { flex-direction: row-reverse; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .lang-menu-front { right: auto; left: 0; }
[dir="rtl"] .insight-category { left: auto; right: 16px; }
[dir="rtl"] .cta-arrow { right: auto; left: 0; }
[dir="rtl"] .footer-column ul a:hover { padding-left: 0; padding-right: 4px; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 37, 64, 0.98);
    z-index: 3000;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 120px;
}

.search-overlay-content { width: 90%; max-width: 700px; position: relative; }
.search-close { position: absolute; top: -60px; right: 0; font-size: 1.5rem; color: #fff; }
.search-container { position: relative; margin-bottom: 30px; }
.search-container i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--color-text-light); font-size: 1.2rem; }
.search-container input {
    width: 100%; padding: 20px 20px 20px 60px;
    font-size: 1.1rem; border: none; border-radius: 8px;
    font-family: var(--font-body);
}
.search-container input:focus { outline: none; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3); }
.search-suggestions p { color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; font-size: 0.9rem; }
.search-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.search-tags a { padding: 10px 20px; background: rgba(255, 255, 255, 0.1); color: #fff; border-radius: 20px; font-size: 0.9rem; }
.search-tags a:hover { background: var(--color-secondary); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }