/* =========================================
   Service Pages CSS — extends style.css
   Used by: service-injury-work.html, service-insurance.html
            and their Arabic variants
   ========================================= */

/* Page hero (smaller than home hero) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 130px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumbs {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
}
.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}
.breadcrumbs span {
    color: var(--white);
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--white);
    line-height: 1.2;
}
.page-hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    max-width: 820px;
    margin-bottom: 28px;
}
.page-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.page-hero-cta .btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.page-hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Main content area */
.service-content {
    padding: 70px 0 90px;
    background: var(--white);
}
.service-content article {
    max-width: 880px;
}

.service-section {
    margin-bottom: 56px;
    scroll-margin-top: 20px;
}
.service-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}
.service-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 28px 0 12px;
    font-weight: 600;
}
.service-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 14px 0 8px;
    font-weight: 600;
}
.service-section p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-color);
    margin-bottom: 14px;
}
.service-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tick list (✓ marks instead of bullets) */
.tick-list {
    list-style: none;
    padding: 0;
    margin: 14px 0;
}
.tick-list li {
    position: relative;
    padding-right: 32px;
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.02rem;
}
.tick-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2em;
}

/* Numbered step list */
.step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    margin: 18px 0;
}
.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-right: 56px;
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 1.03rem;
}
.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    right: 0;
    top: -2px;
    width: 38px;
    height: 38px;
    background: var(--gold-gradient);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Highlight section (USP) */
.service-section.highlight {
    background: linear-gradient(135deg, #fff8e8 0%, #fdf3d4 100%);
    border-right: 4px solid var(--accent-color);
    padding: 30px 32px;
    border-radius: 8px;
    margin: 56px 0;
}
.service-section.highlight h2 {
    border-bottom-color: var(--primary-color);
}

/* Case grid (success stories) */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin: 22px 0;
}
.case-card {
    background: var(--light-bg);
    border: 1px solid #e6e1d4;
    border-radius: 8px;
    padding: 22px 24px;
    transition: var(--transition);
}
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.case-card i {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}
.case-card h4 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--primary-color);
}
.case-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* FAQ (native details/summary) */
.service-section details {
    background: var(--light-bg);
    border: 1px solid #e6e1d4;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 0;
    transition: var(--transition);
}
.service-section details[open] {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}
.service-section summary {
    padding: 14px 22px 14px 22px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    position: relative;
    user-select: none;
}
.service-section summary::-webkit-details-marker { display: none; }
.service-section summary::after {
    content: '+';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform .2s;
}
.service-section details[open] summary::after {
    content: '−';
}
.service-section details p {
    padding: 0 22px 18px;
    margin: 0;
    color: #555;
    line-height: 1.75;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 40px 42px;
    border-radius: 10px;
    margin: 60px 0;
}
.cta-section h2 {
    color: var(--white);
    border-bottom-color: var(--accent-color);
}
.cta-section p {
    color: rgba(255,255,255,0.92);
}
.cta-section .tick-list li::before {
    color: var(--accent-color);
}
.cta-section .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

/* Related services grid */
.service-section.related {
    margin-top: 70px;
    border-top: 1px solid #e6e1d4;
    padding-top: 40px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.related-card {
    background: var(--white);
    border: 1px solid #e6e1d4;
    border-radius: 8px;
    padding: 22px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    display: block;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}
.related-card i {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}
.related-card h4 {
    font-size: 1.1rem;
    margin: 8px 0 6px;
    color: var(--primary-color);
}
.related-card p {
    font-size: 0.92rem;
    color: #666;
    margin: 0;
    line-height: 1.55;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    right: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    z-index: 1000;
    transition: top .2s;
    border-radius: 0 0 6px 6px;
}
.skip-link:focus {
    top: 0;
}

/* Fix: .logo-text uses flex-column but the <a> inside it is inline by default.
   Making it flex-column ensures the firm name and tagline stack vertically. */
.logo-text a {
    display: flex;
    flex-direction: column;
}

/* Arabic-specific tweaks */
/* Headings and bold section labels → Cairo (sharp, authoritative) */
html[lang="ar"] .page-hero h1,
html[lang="ar"] .service-section h2,
html[lang="ar"] .service-section h3,
html[lang="ar"] .service-section h4,
html[lang="ar"] .service-section summary,
html[lang="ar"] .tick-list li strong,
html[lang="ar"] .step-list li strong {
    font-family: var(--font-arabic);
}

/* Body text → Alyamama (warm, readable; falls back to Cairo) */
html[lang="ar"] .service-section p,
html[lang="ar"] .tick-list li,
html[lang="ar"] .step-list li,
html[lang="ar"] .page-hero-lead,
html[lang="ar"] .service-section details p,
html[lang="ar"] .case-card p,
html[lang="ar"] .related-card p {
    font-family: 'Alyamama', 'Cairo', sans-serif;
    line-height: 1.95;
}

/* Mobile */
@media (max-width: 768px) {
    .page-hero { padding: 100px 0 40px; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero-lead { font-size: 1.02rem; }
    .service-content { padding: 40px 0 60px; }
    .service-section h2 { font-size: 1.55rem; }
    .service-section h3 { font-size: 1.2rem; }
    .service-section.highlight { padding: 22px 20px; }
    .cta-section { padding: 28px 24px; }
    .page-hero-cta { flex-direction: column; }
    .page-hero-cta .btn { width: 100%; }
}

@media print {
    .page-hero { background: #fff; color: #000; padding: 20px 0; }
    .page-hero h1, .page-hero-lead, .breadcrumbs, .breadcrumbs a { color: #000; }
    .page-hero-cta, .whatsapp-float, .navbar, .footer { display: none; }
    .service-section { page-break-inside: avoid; }
    .cta-section { background: #f5f5f5 !important; color: #000 !important; }
    .cta-section h2, .cta-section p { color: #000 !important; }
}
