/* ============================================
   Legal Consultation - Main Stylesheet
   Brand: Navy #002040, Amber #E0A040
   ============================================ */

@font-face {
    font-family: 'Janna LT';
    src: url('../fonts/ArbFONTS-Janna-LT-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Janna LT';
    src: url('../fonts/alfont_com_Janna-LT-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --burgundy: #002040;
    --burgundy-dark: #001530;
    --burgundy-light: #1a4d73;
    --gold: #E0A040;
    --gold-light: #E8B868;
    --gold-dark: #C08820;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ---- Global ---- */
html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: 'Janna LT', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    margin: 0;
}
body[dir="rtl"] { font-family: 'Janna LT', 'Segoe UI', Tahoma, sans-serif; }
a { color: var(--burgundy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--burgundy-dark); }

.section-title {
    position: relative; display: inline-block; margin-bottom: 2rem; padding-bottom: 0.75rem;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--gold);
}
[dir="rtl"] .section-title::after { left: auto; right: 0; }

/* ---- Navbar ---- */
.navbar-legal {
    background-color: var(--white); box-shadow: var(--shadow); padding: 0.3rem 0; transition: var(--transition);
}
.navbar-legal .navbar-brand { font-size: 1.3rem; font-weight: 800; color: var(--burgundy) !important; letter-spacing: -0.5px; }
.navbar-legal .navbar-brand span { color: var(--gold); }
.navbar-legal .nav-link {
    color: var(--text-dark) !important; font-weight: 700; padding: 0.5rem 0.85rem !important;
    font-size: 19px; white-space: nowrap; position: relative; transition: var(--transition);
}
.navbar-legal .nav-link:hover, .navbar-legal .nav-link.active { color: var(--burgundy) !important; }
.navbar-legal .nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--gold); transition: var(--transition);
}
.navbar-legal .nav-link:hover::after, .navbar-legal .nav-link.active::after { width: 70%; }
.navbar-legal .btn-lang {
    background-color: var(--burgundy); color: var(--white); border: none; padding: 0.3rem 0.8rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600; transition: var(--transition);
}
.navbar-legal .btn-lang:hover { background-color: var(--gold); color: var(--burgundy-dark); }

.btn-outline-burgundy { color: #fff; border-color: var(--burgundy); background: var(--burgundy); }
.btn-outline-burgundy:hover, .btn-outline-burgundy:focus { background-color: var(--burgundy-dark); border-color: var(--burgundy-dark); color: #fff; }

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: var(--white); padding: 4rem 0 5rem; position: relative; overflow: hidden;
}
.hero-banner-section { position: relative; width: 100%; overflow: hidden; }
.hero-banner-img { width: 100%; height: auto; display: block; }
.hero-banner-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.45);
    display: flex; align-items: flex-start; justify-content: center; padding-top: 3rem; color: #fff; z-index: 1;
}
.hero-banner-overlay h1 { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-banner-overlay .lead { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    border-radius: 50%; background: rgba(198, 167, 94, 0.1);
}
.hero-section::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
    border-radius: 50%; background: rgba(198, 167, 94, 0.08);
}
.hero-section h1 { font-size: 3rem; font-weight: 800; color: var(--white); margin-bottom: 1.5rem; line-height: 1.3; }
.hero-section .lead { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; }
.hero-section .gold-line { width: 80px; height: 4px; background: var(--gold); margin-bottom: 1.5rem; }
[dir="rtl"] .hero-section .lead { margin-left: auto; }

/* ---- Buttons ---- */
.btn-burgundy {
    background-color: var(--burgundy); color: var(--white); border: 2px solid var(--burgundy);
    padding: 0.6rem 2rem; border-radius: 4px; font-weight: 600; transition: var(--transition);
}
.btn-burgundy:hover { background-color: var(--burgundy-dark); border-color: var(--burgundy-dark); color: var(--white); }
.btn-gold {
    background-color: var(--gold); color: var(--burgundy-dark); border: 2px solid var(--gold);
    padding: 0.6rem 2rem; border-radius: 4px; font-weight: 600; transition: var(--transition);
}
.btn-gold:hover { background-color: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

/* ---- Practice Areas / Cards ---- */
.practice-card {
    background: var(--white); border: none; border-radius: 8px; box-shadow: var(--shadow);
    padding: 2rem; text-align: center; transition: var(--transition); height: 100%;
}
.practice-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.practice-card .icon-wrapper {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    color: var(--white); font-size: 2rem;
}
.practice-card h5 { color: var(--burgundy); margin-bottom: 0.75rem; }
.practice-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Section Styles ---- */
.section-padding { padding: 5rem 0; }
.section-bg { background-color: var(--light-gray); }

/* ---- About / Mission Cards ---- */
.info-card {
    background: var(--white); border-radius: 8px; box-shadow: var(--shadow);
    padding: 2.5rem; margin-bottom: 2rem; border-left: 4px solid var(--gold);
}
[dir="rtl"] .info-card { border-left: none; border-right: 4px solid var(--gold); }

/* ---- Laws & Papers ---- */
.law-card {
    background: var(--white); border-radius: 8px; box-shadow: var(--shadow);
    padding: 1.5rem; margin-bottom: 1.5rem; transition: var(--transition); border-top: 3px solid var(--burgundy);
}
.law-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.law-card .category-badge {
    display: inline-block; background: var(--burgundy); color: var(--white);
    padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem;
}
.law-card h5 { color: var(--burgundy-dark); margin-bottom: 0.5rem; }
.law-card .meta { color: var(--text-muted); font-size: 0.85rem; }

/* ---- Filter Bar ---- */
.filter-bar {
    background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 2rem;
}
.filter-bar .form-control, .filter-bar .form-select { border: 1px solid var(--medium-gray); border-radius: 4px; }
.filter-bar .form-control:focus, .filter-bar .form-select:focus { border-color: var(--burgundy); box-shadow: 0 0 0 0.2rem rgba(0, 32, 64, 0.15); }

/* ---- Contact ---- */
.contact-info-card {
    background: var(--burgundy); color: var(--white); border-radius: 8px; padding: 2.5rem; height: 100%;
}
.contact-info-card h4 { color: var(--gold); margin-bottom: 2rem; }
.contact-info-card .contact-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; }
.contact-info-card .contact-item i { color: var(--gold); font-size: 1.25rem; margin-top: 0.2rem; }
.contact-form-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 2.5rem; }

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 2rem; position: relative; margin: 1rem 0;
}
.testimonial-card::before {
    content: '\201C'; font-size: 4rem; color: var(--gold); position: absolute; top: -10px; left: 15px;
    font-family: Georgia, serif; line-height: 1;
}
[dir="rtl"] .testimonial-card::before { left: auto; right: 15px; }
.testimonial-card .testimonial-text { font-style: italic; color: var(--text-muted); padding-top: 1.5rem; margin-bottom: 1rem; }
.testimonial-card .testimonial-author { font-weight: 700; color: var(--burgundy); }

/* ---- Footer ---- */
.footer { background: var(--burgundy-dark); color: rgba(255,255,255,0.8); padding: 4rem 0 1.5rem; }
.footer h5 { color: var(--gold); margin-bottom: 1.5rem; font-weight: 700; }
.footer a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer a:hover { color: var(--gold); padding-left: 5px; }
[dir="rtl"] .footer a:hover { padding-left: 0; padding-right: 5px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 3rem;
    text-align: center; font-size: 0.9rem;
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: var(--white); padding: 4rem 0 3rem; text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header .breadcrumb { justify-content: center; background: transparent; margin-bottom: 0; }
.page-header .breadcrumb-item a { color: var(--gold); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Pagination ---- */
.pagination .page-link { color: var(--burgundy); border-color: var(--medium-gray); }
.pagination .page-item.active .page-link { background-color: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.pagination .page-link:hover { background-color: var(--light-gray); color: var(--burgundy-dark); }

/* ---- Admin Dashboard ---- */
.admin-sidebar {
    background: var(--burgundy-dark); min-height: 100vh; color: var(--white); padding-top: 1rem;
    width: 260px; position: fixed; top: 0; left: 0; z-index: 1000; transition: var(--transition);
}
[dir="rtl"] .admin-sidebar { left: auto; right: 0; }
.admin-sidebar .sidebar-brand { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1rem; }
.admin-sidebar .sidebar-brand h4 { color: var(--gold); font-size: 1.1rem; margin: 0; }
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important; padding: 0.75rem 1.5rem !important;
    display: flex; align-items: center; gap: 0.75rem; transition: var(--transition); border-radius: 0;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: var(--white) !important; background: rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link.active { border-left: 3px solid var(--gold); }
[dir="rtl"] .admin-sidebar .nav-link.active { border-left: none; border-right: 3px solid var(--gold); }
.admin-sidebar .nav-link i { width: 20px; text-align: center; }

/* Sidebar Accordion */
.sidebar-accordion .sidebar-group { margin: 2px 0; }
.sidebar-toggle { justify-content: flex-start; position: relative; font-weight: 600; color: rgba(255,255,255,0.85) !important; }
.sidebar-toggle .sidebar-arrow { position: absolute; right: 1rem; font-size: 0.7rem; transition: transform 0.3s ease; width: auto !important; }
[dir="rtl"] .sidebar-toggle .sidebar-arrow { right: auto; left: 1rem; }
.sidebar-toggle:not(.collapsed) .sidebar-arrow { transform: rotate(180deg); }
.sidebar-submenu { padding: 4px 0; background: rgba(0,0,0,0.15); border-radius: 0; }
.sidebar-submenu .nav-link {
    padding: 0.55rem 1.5rem 0.55rem 2.8rem !important; font-size: 0.88rem;
    color: rgba(255,255,255,0.6) !important; border-left: none !important; position: relative;
}
[dir="rtl"] .sidebar-submenu .nav-link { padding: 0.55rem 2.8rem 0.55rem 1.5rem !important; border-right: none !important; }
.sidebar-submenu .nav-link::before {
    content: ''; position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all 0.3s ease;
}
[dir="rtl"] .sidebar-submenu .nav-link::before { left: auto; right: 1.5rem; }
.sidebar-submenu .nav-link:hover::before, .sidebar-submenu .nav-link.active::before { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.sidebar-submenu .nav-link:hover { color: var(--white) !important; background: rgba(255,255,255,0.05); }
.sidebar-submenu .nav-link.active { color: var(--white) !important; background: rgba(255,255,255,0.1); border-left: 3px solid var(--gold) !important; }
[dir="rtl"] .sidebar-submenu .nav-link.active { border-left: none !important; border-right: 3px solid var(--gold) !important; }
.sidebar-submenu .nav-link i { font-size: 0.85rem; }
.sidebar-bottom-links { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; }

.admin-content { margin-left: 260px; padding: 2rem; min-height: 100vh; background: var(--light-gray); }
[dir="rtl"] .admin-content { margin-left: 0; margin-right: 260px; }
.admin-topbar {
    background: var(--white); padding: 1rem 2rem; box-shadow: var(--shadow); margin-bottom: 2rem;
    border-radius: 8px; display: flex; justify-content: space-between; align-items: center;
}
.stat-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 1.5rem; transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
    width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; color: var(--white);
}
.stat-card .stat-icon.bg-burgundy { background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light)); }
.stat-card .stat-icon.bg-gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.stat-card .stat-icon.bg-success-grad { background: linear-gradient(135deg, #198754, #28a745); }
.stat-card .stat-icon.bg-info-grad { background: linear-gradient(135deg, #0d6efd, #3d8bfd); }
.stat-card h3 { font-size: 2rem; color: var(--text-dark); margin-bottom: 0; }
.stat-card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.9rem; }

/* Admin Table */
.admin-table { overflow-x: auto; }
.admin-table th { background: var(--burgundy); color: var(--white); font-weight: 600; border: none; padding: 1rem; }
.admin-table td { padding: 0.85rem 1rem; vertical-align: middle; }
.admin-table td:last-child { white-space: nowrap; }

.status-badge { padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-badge.new { background: #cff4fc; color: #055160; }
.status-badge.responded { background: #d1e7dd; color: #0f5132; }
.status-badge.draft { background: #fff3cd; color: #664d03; }
.status-badge.approved { background: #d1e7dd; color: #0f5132; }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section { padding: 5rem 0 3rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-banner-overlay h1 { font-size: 2.2rem; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    [dir="rtl"] .admin-sidebar { transform: translateX(100%); }
    [dir="rtl"] .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 767.98px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-banner-overlay h1 { font-size: 1.5rem; }
    .hero-banner-overlay .lead { font-size: 1rem; }
    .section-padding { padding: 3rem 0; }
    .page-header { padding: 3rem 0 2rem; }
    .page-header h1 { font-size: 2rem; }
}
@media print {
    .navbar-legal, .footer, .btn, .filter-bar { display: none !important; }
    .memo-preview { border: none; max-height: none; }
}

/* ===== Top Bar ===== */
.top-bar {
    background: linear-gradient(135deg, #001530 0%, #002040 100%); color: rgba(255,255,255,0.85);
    font-size: 15px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-info span { font-size: 14.5px; letter-spacing: 0.3px; }
.top-bar-info i { color: var(--gold, #c9a84c); margin-inline-end: 4px; }
.top-bar-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; color: #fff; font-size: 16px; text-decoration: none;
    transition: all 0.3s ease; background: rgba(255,255,255,0.1);
}
.top-bar-icon:hover { color: #fff; background: var(--social-color, #c9a84c); transform: scale(1.2); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* ===== Social Media Icons - Footer ===== */
.social-icons-footer { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon-footer {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; color: #fff; font-size: 17px; text-decoration: none; transition: all 0.3s ease;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
}
.social-icon-footer:hover {
    color: #fff; background: var(--social-color, #c9a84c); transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); border-color: var(--social-color, #c9a84c);
}
