/**
 * Service Page Styles
 * صفحات الخدمات القانونية - مكتب غرس القانوني
 */

/* ===== Service Hero ===== */
.service-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary, #1a365d) 0%, var(--primary-light, #2c5282) 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.5;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.service-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    font-size: 0.95rem;
}

.service-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-breadcrumb a:hover {
    color: var(--secondary, #c9a227);
}

.service-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.service-breadcrumb .current {
    color: var(--secondary, #c9a227);
    font-weight: 600;
}

/* Hero Icon */
.service-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary, #c9a227);
}

.service-hero-icon svg {
    width: 40px;
    height: 40px;
    color: var(--secondary, #c9a227);
}

/* Title */
.service-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
    font-family: var(--font-heading, 'Amiri', serif);
}

.service-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 35px;
    line-height: 1.7;
}

/* Hero CTA */
.service-hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Service Content ===== */
.service-content {
    padding: 80px 0;
    background: #fff;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

/* Main Content */
.service-main-content {
    max-width: 100%;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.service-description h2 {
    font-size: 1.8rem;
    color: var(--primary, #1a365d);
    margin: 40px 0 20px;
    font-weight: 600;
}

.service-description h3 {
    font-size: 1.4rem;
    color: var(--primary, #1a365d);
    margin: 30px 0 15px;
    font-weight: 600;
}

.service-description p {
    margin-bottom: 20px;
}

.service-description ul,
.service-description ol {
    margin: 20px 0;
    padding-right: 25px;
}

.service-description li {
    margin-bottom: 10px;
}

/* Service Features */
.service-features {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 20px;
}

.service-features h2 {
    font-size: 1.6rem;
    color: var(--primary, #1a365d);
    margin: 0 0 25px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--secondary, #c9a227);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.feature-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* Service Steps */
.service-steps {
    margin-top: 50px;
}

.service-steps h2 {
    font-size: 1.6rem;
    color: var(--primary, #1a365d);
    margin: 0 0 30px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary, #1a365d) 0%, var(--primary-light, #2c5282) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--primary, #1a365d);
    margin: 0 0 8px;
}

.step-content p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ===== Sidebar ===== */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: var(--primary, #1a365d);
    margin: 0 0 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary, #c9a227);
}

/* Contact Card */
.contact-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: var(--primary, #1a365d);
    color: #fff;
}

.contact-method.whatsapp:hover {
    background: #25d366;
}

.contact-method svg {
    flex-shrink: 0;
}

/* Other Services */
.other-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-services-list li {
    border-bottom: 1px solid #e2e8f0;
}

.other-services-list li:last-child {
    border-bottom: none;
}

.other-services-list a {
    display: block;
    padding: 12px 0;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 20px;
}

.other-services-list a::before {
    content: '←';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.other-services-list a:hover {
    color: var(--secondary, #c9a227);
    padding-right: 25px;
}

.other-services-list a:hover::before {
    opacity: 1;
}

/* Experience Card */
.experience-card {
    background: linear-gradient(135deg, var(--secondary, #c9a227) 0%, #d4af37 100%);
    color: #fff;
    text-align: center;
}

.experience-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.experience-text {
    font-size: 1rem;
    opacity: 0.95;
}

/* ===== FAQ Section ===== */
.service-faq {
    padding: 80px 0;
    background: #f8fafc;
}

.service-faq h2 {
    font-size: 2rem;
    color: var(--primary, #1a365d);
    text-align: center;
    margin: 0 0 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary, #1a365d);
    text-align: right;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== CTA Section ===== */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary, #1a365d) 0%, var(--primary-light, #2c5282) 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.service-cta h2 {
    font-size: 2.2rem;
    margin: 0 0 20px;
    font-weight: 700;
}

.service-cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 0 35px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary, #c9a227) 0%, #d4af37 100%);
    color: #fff;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--secondary, #c9a227);
    color: var(--secondary, #c9a227);
}

.btn-outline-gold:hover {
    background: var(--secondary, #c9a227);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary, #1a365d);
}

.btn-lg {
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .service-content-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-card.experience-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 100px 0 60px;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1.05rem;
    }
    
    .service-content {
        padding: 50px 0;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card.experience-card {
        grid-column: span 1;
    }
    
    .service-faq,
    .service-cta {
        padding: 50px 0;
    }
    
    .service-cta h2 {
        font-size: 1.7rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .service-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .service-hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .step-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
