/*
Theme Name: Aldalbahi Legal
Theme URI: https://aldalbahi.com
Author: Aldalbahi Law Firm
Author URI: https://aldalbahi.com
Description: قالب احترافي لمكتب نايف الدلبحي للمحاماة والاستشارات القانونية
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: aldalbahi
Tags: rtl-language, law, legal, arabic, professional
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== CSS VARIABLES ===== */
:root {
    --gold: #B8973A;
    --gold-light: #D6AE7B;
    --gold-dark: #8B6E2A;
    --navy: #4f635b;
    --navy-light: #3d4f48;
    --navy-mid: #5c7268;
    --white: #ffffff;
    --gray-light: #F8F7F4;
    --gray-mid: #E8E6E0;
    --gray-text: #6B7280;
    --text-dark: #2d3d38;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}
/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-mid);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--navy);
    padding: 10px 0;
}

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

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-mid);
    font-size: 14px;
}

.header-contact-item svg { color: var(--gold-light); flex-shrink: 0; }
.header-contact-item span { color: var(--white); }

.header-main {
    padding: 15px 0;
    background: var(--white);
}

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

.site-logo img {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav ul li a {
    color: var(--navy);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: var(--gold);
    background: rgba(184, 151, 58, 0.08);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-consult {
    background: var(--gold);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-consult:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    color: var(--navy);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.ls-wrapper,
#layerslider,
[id^="layerslider"] {
    width: 100% !important;
}

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

.section-light { background: var(--white); }
.section-gray { background: var(--gray-light); }
.section-navy { background: var(--navy); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-navy .section-title h2 { color: var(--white); }
.section-navy .section-title h2::after { background: var(--gold-light); }

.section-title p {
    color: var(--gray-text);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

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

.about-content h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.about-content h2 span { color: var(--gold); }

.about-content p {
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: var(--radius);
    border-right: 3px solid var(--gold);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(184, 151, 58, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.about-feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.about-feature-text p {
    font-size: 13px;
    color: var(--gray-text);
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge .number {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.about-badge .label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

/* ===== SERVICES ===== */
.services-section {
    padding: 80px 0;
    background: var(--gray-light);
}

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

.service-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,62,0.85) 0%, rgba(13,27,62,0.3) 60%, transparent 100%);
}

.service-card-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: rgba(184, 151, 58, 0.9);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
    z-index: 2;
}

.service-card-content h3 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-card-content p {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(13,27,62,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.service-card:hover .service-card-hover { opacity: 1; }

.service-card-hover a {
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--gold-light);
    padding: 10px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-card-hover a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.services-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--white);
    padding: 13px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== STATS ===== */
.stats-section {
    padding: 70px 0;
    background: var(--navy);
}

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

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(214, 174, 123, 0.2);
    background: rgba(255,255,255,0.04);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(214, 174, 123, 0.4);
}

.stat-card .number {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.stat-card .label {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 500;
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: var(--gold);
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    margin-bottom: 32px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--white);
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== MAP ===== */
.map-section { padding: 0; }
.map-section iframe { display: block; width: 100%; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
    height: 70px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(214,174,123,0.3);
}

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

.footer-links li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-contact-item svg {
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

.footer-bottom span { color: var(--gold-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 26px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card .number { font-size: 36px; }
}
