/* ==========================================================================
   Services Pages CSS - شركة رزام للمحاماة
   متوافق مع جميع الشاشات خاصة الجوال
   ========================================================================== */

:root {
    --gold: #c9a227;
    --gold-hover: #b8931f;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background: var(--white);
    color: var(--dark);
    line-height: 1.8;
}

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

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 18px;
}

.logo img { height: 40px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--dark);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--gold);
}

.dropdown-menu i { color: var(--gold); width: 20px; }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 60px 0 80px;
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--gold); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,162,39,0.2);
    border: 1px solid rgba(201,162,39,0.3);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-bottom: 20px;
}

.hero-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.city-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
}

.city-tag i { color: var(--gold); }

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.trust-item i { color: var(--gold); }

/* Section Styles */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Intro Content */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 2;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(201,162,39,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--gold);
}

.service-icon i {
    font-size: 28px;
    color: var(--gold);
    transition: color 0.3s;
}

.service-card:hover .service-icon i {
    color: var(--dark);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Why Us Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-num {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.why-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: right;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--gold); }

.faq-question i {
    color: var(--gold);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.8;
}

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

.related-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.related-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(201,162,39,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.related-card .icon i {
    font-size: 24px;
    color: var(--gold);
}

.related-card h4 {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i { color: var(--gold); margin-top: 3px; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 999;
}

.mobile-nav.active { display: block; }

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li { border-bottom: 1px solid var(--gray-200); }

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--dark);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav .btn-cta { display: none; }
    .mobile-toggle { display: flex; }
    
    .hero { padding: 40px 0 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-desc { font-size: 1rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn-cta { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 15px; }
    
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.5rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    
    .why-item { flex-direction: column; text-align: center; }
    .why-num { margin: 0 auto; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact li { justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-cities { justify-content: center; }
    .related-grid { grid-template-columns: 1fr; }
    .service-card { padding: 20px; }
}
