/* ============================================
   مكتب المستشار حسين الوشاحي
   Professional Law Office - RTL Arabic
   ============================================ */

:root {
    --bg-primary: #0e1a2b;
    --bg-secondary: #152536;
    --gold: #b8860b;
    --gold-light: #daa520;
    --gold-matte: #9a7b2e;
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-muted: #b0b8c4;
    --border-subtle: rgba(184, 134, 11, 0.2);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --font-family: 'Cairo', sans-serif;
    --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========== Header ========== */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* ========== Hero ========== */
.hero {
    padding: var(--spacing-2xl) 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-profile {
    flex-shrink: 0;
}

.profile-picture {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 2px solid var(--gold-matte);
    border-radius: 4px;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 var(--spacing-sm);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gold-matte);
    margin: 0 0 var(--spacing-md);
    font-weight: 500;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-matte);
    margin: var(--spacing-md) 0;
}

.hero-statement {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

/* ========== Sections Common ========== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-xl);
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-matte);
}

/* ========== About ========== */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 720px;
}

.about-text {
    margin: 0 0 var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1rem;
}

.about-highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========== Specializations ========== */
.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.spec-card {
    padding: var(--spacing-lg);
    border: 1px solid var(--border-subtle);
    background-color: rgba(255, 255, 255, 0.02);
}

.spec-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== Achievements ========== */
.achievements {
    background-color: var(--bg-secondary);
}

.achievements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.achievements-list li {
    position: relative;
    padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-xl);
    color: var(--text-secondary);
    font-size: 1rem;
}

.achievements-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold-matte);
}

/* ========== Values ========== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.value-item {
    padding: var(--spacing-md);
    text-align: center;
}

.value-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== Contact ========== */
.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.contact-block {
    padding: var(--spacing-md) 0;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--gold-matte);
    margin: 0 0 var(--spacing-xs);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

/* ========== Footer ========== */
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
    }

    .hero-profile {
        margin-bottom: var(--spacing-md);
    }

    .profile-picture {
        width: 160px;
        height: 160px;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--spacing-2xl);
        gap: var(--spacing-md);
        transition: right var(--transition-fast);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-list.is-open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .specializations-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.25rem;
    }
}
