/* 
   Premium Law Firm Styles
   Theme: Navy Blue, Gold, and White 
*/

:root {
    /* Colors */
    --primary-color: #d4af37; /* Elegant Gold */
    --primary-hover: #b5952f;
    --dark-bg: #0f172a; /* Deep Navy Blue */
    --darker-bg: #0b1120;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #d4af37 100%);
    
    /* Typography */
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* English Font Override */
body[dir="ltr"] {
    font-family: var(--font-english);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

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

.text-white {
    color: var(--white);
}

.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--darker-bg);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--darker-bg);
}

html[dir="ltr"] .arrow-icon {
    transform: rotate(180deg);
}

/* Header */
.header {
    background-color: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
}

html[dir="ltr"] .hero-overlay {
    background: linear-gradient(to left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--border-color);
    margin-bottom: 40px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.top-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: inherit;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: -35px auto 20px;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    border: 2px solid var(--primary-color);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-weight: 700;
    padding: 0 20px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.9rem;
    padding: 0 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 30px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.read-more:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Why Us */
.why-us {
    position: relative;
    background-image: url('../assets/images/why_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.why-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
}

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

.features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    flex: 1 1 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: right;
    box-shadow: var(--shadow-sm);
}

html[dir="ltr"] .feature-card {
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.1);
}

.feature-watermark {
    position: absolute;
    bottom: -15px;
    left: 15px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 1;
    transition: all 0.4s ease;
}

html[dir="ltr"] .feature-watermark {
    left: auto;
    right: 15px;
}

.feature-card:hover .feature-watermark {
    color: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.feature-content {
    position: relative;
    z-index: 2;
}

.feature-card .feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.team-card {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-color);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.team-icon-avatar {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.team-card:hover .team-icon-avatar {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.team-name {
    margin: 0 0 10px;
    color: var(--dark-bg);
    font-size: 1.4rem;
    font-weight: 800;
}

.team-role {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.team-card-body {
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.team-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-bg);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.team-exp-badge i {
    color: var(--primary-color);
}

.team-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 0;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Consultation Section Modernized */
.consultation {
    position: relative;
    background-color: var(--dark-bg);
}

.consultation-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.consultation-info .text-right {
    text-align: right;
}

html[dir="ltr"] .consultation-info .text-right {
    text-align: left;
}

.no-underline::after {
    display: none;
}

.cons-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cons-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-5px);
}

html[dir="ltr"] .contact-method:hover {
    transform: translateX(5px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-details span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.method-details strong {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.consultation-form-wrapper {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

html[dir="ltr"] .input-group i {
    right: auto;
    left: 20px;
}

.input-group.textarea-group i {
    top: 25px;
    transform: none;
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

html[dir="rtl"] .form-input {
    padding: 16px 50px 16px 20px;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-input:focus + i, .input-group:focus-within i {
    color: var(--primary-color);
}

.form-input option {
    background: var(--dark-bg);
    color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.full-width {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 8px;
    justify-content: center;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    color: var(--text-light);
    padding-top: 60px;
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-about {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Styles for Phase 2 */
.bg-light { background-color: var(--light-bg); }
.about-text { font-size: 1.1rem; color: var(--text-main); margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.about-us .top-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary-color); }

/* Page Header (Services) */
.page-header { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; background-image: url('../assets/images/hero_bg.jpg'); background-size: cover; background-position: center; margin-bottom: 60px; }
.page-header-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.85); }
.page-header-content { position: relative; z-index: 10; text-align: center; }
.page-title { color: var(--white); font-size: 3rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.5); position: relative; display: inline-block; }
.page-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--primary-color); }

/* Service Details Grid */
.service-details-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.service-card-detail { background: var(--white); padding: 50px; border-radius: 8px; box-shadow: var(--shadow-md); border-top: 4px solid var(--primary-color); }
.service-text-large { font-size: 1.15rem; line-height: 1.9; color: var(--text-main); margin-bottom: 30px; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; text-align: center; }
.mt-3 { margin-top: 1rem; }

/* Sidebar */
.service-sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.sidebar-widget h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--dark-bg); border-right: 3px solid var(--primary-color); padding-right: 15px; }
html[dir="ltr"] .sidebar-widget h3 { border-right: none; border-left: 3px solid var(--primary-color); padding-right: 0; padding-left: 15px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 12px; }
.sidebar-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.sidebar-links a::before { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-color); font-size: 0.9rem; }
html[dir="ltr"] .sidebar-links a::before { content: '\f105'; }
.sidebar-links a:hover { color: var(--primary-color); transform: translateX(-5px); }
html[dir="ltr"] .sidebar-links a:hover { transform: translateX(5px); }
.contact-widget { background: var(--dark-bg); color: var(--white); border: none; }
.contact-widget h3 { color: var(--white); border-color: var(--primary-color); }

@media (max-width: 992px) {
    .service-details-grid { grid-template-columns: 1fr; }
}
