/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: hsl(222, 84%, 5%);
    background-color: hsl(0, 0%, 100%);
}

.arabic-heading {
    font-family: 'Amiri', serif;
}

.arabic-text {
    font-family: 'Cairo', sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: hsl(0, 0%, 100%);
    border-bottom: 1px solid hsl(214, 32%, 91%);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: hsl(142, 76%, 36%);
    margin: 2px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.logo  {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(142, 76%, 36%);
    text-decoration: none;
    font-family: 'Amiri', serif;
	
}

.logo-img {
    height: 150px;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: hsl(222, 84%, 5%);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(142, 76%, 36%);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 100%;
    height: 2px;
    background: hsl(142, 76%, 36%);
}

.header-contact {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.contact-link {
    color: hsl(222, 84%, 5%);
    text-decoration: none;
    transition: color 0.3s;
    direction: ltr;
}

.contact-link:hover {
    color: hsl(142, 76%, 36%);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid hsl(214, 32%, 91%);
}

.mobile-nav-link {
    color: hsl(222, 84%, 5%);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.mobile-nav-link:hover {
    color: hsl(142, 76%, 36%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: hsl(142, 76%, 36%);
    color: hsl(0, 0%, 100%);
}

.btn-primary:hover {
    background: hsl(142, 76%, 30%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: hsl(210, 40%, 95%);
    color: hsl(222, 84%, 5%);
}

.btn-secondary:hover {
    background: hsl(210, 40%, 90%);
}

.btn-outline {
    background: transparent;
    color: hsl(142, 76%, 36%);
    border: 1px solid hsl(142, 76%, 36%);
}

.btn-outline:hover {
    background: hsl(142, 76%, 36%);
    color: hsl(0, 0%, 100%);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: #7A3314; /*linear-gradient(135deg, hsl(142, 76%, 36%) 0%, hsl(142, 76%, 20%) 100%);*/*/
	
	/*background-image: url('img/hero_bg.jpg');*/
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: hsl(0, 0%, 100%);
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Amiri', serif;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background-color: #7A3314;/*linear-gradient(135deg, hsl(142, 76%, 36%) 0%, hsl(142, 76%, 20%) 100%);*/
    color: hsl(0, 0%, 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

.page-description {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Sections */
.services,
.features,
.mission,
.cta,
.vision-mission,
.values,
.experience,
.philosophy,
.contact-content,
.laws-content,
.categories-overview,
.sample-memoranda,
.custom-memoranda,
.legal-notice,
.papers-content,
.custom-documents,
.usage-guidelines,
.disclaimer,
.map-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(222, 84%, 5%);
    font-family: 'Amiri', serif;
}

.section-description {
    font-size: 1.125rem;
    color: hsl(215, 16%, 47%);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.services-grid,
.features-grid,
.values-grid,
.experience-grid,
.categories-grid,
.laws-grid,
.memoranda-grid,
.papers-grid,
.contact-grid,
.vision-mission-grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vision-mission-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.laws-grid,
.memoranda-grid,
.papers-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Cards */
.service-card,
.value-card,
.law-card,
.memoranda-card,
.paper-card,
.contact-card,
.vision-card,
.mission-card {
    background: hsl(0, 0%, 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid hsl(214, 32%, 91%);
    transition: all 0.3s;
}

.service-card:hover,
.value-card:hover,
.law-card:hover,
.memoranda-card:hover,
.paper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon,
.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-title,
.value-title,
.law-title,
.memoranda-title,
.paper-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(222, 84%, 5%);
}

.service-description,
.value-description,
.law-description,
.memoranda-description,
.paper-description {
    color: hsl(215, 16%, 47%);
    line-height: 1.6;
}

.law-number {
    font-size: 0.875rem;
    color: hsl(142, 76%, 36%);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.law-actions,
.memoranda-actions,
.paper-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Categories */
.categories-overview {
    background: hsl(210, 40%, 98%);
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.category-overview-card {
    background: hsl(0, 0%, 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.category-overview-card:hover {
    transform: translateY(-4px);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.category-icon.criminal {
    background: rgba(239, 68, 68, 0.1);
}

.category-icon.civil {
    background: rgba(59, 130, 246, 0.1);
}

.category-icon.commercial {
    background: rgba(34, 197, 94, 0.1);
}

.category-icon.personal {
    background: rgba(168, 85, 247, 0.1);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-count {
    color: hsl(215, 16%, 47%);
    font-size: 0.875rem;
}

/* Law Categories */
.law-category,
.memoranda-category,
.papers-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(222, 84%, 5%);
    font-family: 'Amiri', serif;
}

.category-description {
    color: hsl(215, 16%, 47%);
    margin-bottom: 2rem;
}

/* Papers Specific */
.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-icon-large {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: hsl(142, 76%, 36%);
    color: hsl(0, 0%, 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-meta,
.memoranda-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.paper-type,
.paper-format,
.meta-item {
    background: hsl(210, 40%, 95%);
    color: hsl(142, 76%, 36%);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Features */
.features {
    background: hsl(210, 40%, 98%);
}

.feature-item {
    text-align: center;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(222, 84%, 5%);
}

.feature-description {
    color: hsl(215, 16%, 47%);
}

/* Mission */
.mission {
    background: #7A3314; /*hsl(142, 76%, 36%);*/
    color: hsl(0, 0%, 100%);
    text-align: center;
}

.mission-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Amiri', serif;
}

.mission-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* CTA */
.cta {
    background: hsl(210, 40%, 98%);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(222, 84%, 5%);
    font-family: 'Amiri', serif;
}

.cta-description {
    font-size: 1.125rem;
    color: hsl(215, 16%, 47%);
    margin-bottom: 2rem;
}

/* About Page Specific */
.vision-card,
.mission-card {
    text-align: center;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsl(222, 84%, 5%);
    font-family: 'Amiri', serif;
}

.card-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: hsl(215, 16%, 47%);
}

.experience-item {
    padding: 1.5rem;
    border-right: 4px solid hsl(142, 76%, 36%);
    background: hsl(210, 40%, 98%);
    border-radius: 0.5rem;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(222, 84%, 5%);
}

.experience-description {
    color: hsl(215, 16%, 47%);
}

.philosophy {
    background: hsl(210, 40%, 98%);
    text-align: center;
}

.philosophy-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsl(222, 84%, 5%);
    font-family: 'Amiri', serif;
}

.philosophy-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: hsl(215, 16%, 47%);
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Page */
.contact-info-section {
    background: hsl(210, 40%, 98%);
    padding: 2rem;
    border-radius: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: hsl(142, 76%, 36%);
    color: hsl(0, 0%, 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(222, 84%, 5%);
}

.contact-details p {
    color: hsl(215, 16%, 47%);
}

.contact-details a {
    color: hsl(142, 76%, 36%);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Form Styles */
.contact-form {
    background: hsl(0, 0%, 100%);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: hsl(222, 84%, 5%);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(214, 32%, 91%);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(142, 76%, 36%);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.map-card {
    background: hsl(0, 0%, 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.map-placeholder {
    background: hsl(210, 40%, 98%);
    border-radius: 0.5rem;
    padding: 3rem;
    margin-top: 1rem;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(142, 76%, 36%);
}

/* Custom Sections */
.custom-memoranda,
.custom-documents {
    background: hsl(142, 76%, 36%);
    color: hsl(0, 0%, 100%);
    text-align: center;
}

.custom-memoranda-content,
.custom-documents-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-notice,
.disclaimer {
    background: hsl(210, 40%, 98%);
}

.legal-notice-content,
.disclaimer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.notice-title,
.disclaimer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(222, 84%, 5%);
    font-family: 'Amiri', serif;
}

.notice-text,
.disclaimer-text {
    color: hsl(215, 16%, 47%);
    line-height: 1.8;
}

/* Usage Guidelines */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.guideline-item {
    background: hsl(0, 0%, 100%);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(214, 32%, 91%);
}

.guideline-item h3 {
    color: hsl(142, 76%, 36%);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.disclaimer {
    background: hsl(239, 84%, 67%, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-right: 4px solid hsl(239, 84%, 67%);
}

/* Footer */
.footer {
    background: #7A3314; /* hsl(222, 84%, 5%); */
    color: hsl(0, 0%, 100%);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(215, 16%, 70%);
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsl(215, 16%, 70%);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: hsl(142, 76%, 36%);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: hsl(215, 16%, 70%);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(215, 16%, 25%);
    color: hsl(215, 16%, 70%);
}

/* Responsive Design */
@media (max-width: 768px) {
	
	
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-nav,
    .header-contact {
        display: none;
        direction: rtl;
    }
    
    .mobile-menu.show {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .laws-grid,
    .memoranda-grid,
    .papers-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }