/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #ffffff;
    color: #1a2332;
    line-height: 1.6;
}

/* Focus States for Accessibility */
:focus {
    outline: 2px solid #c49b3f;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #c49b3f;
    outline-offset: 2px;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #c49b3f;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a2332 0%, #2a3a4a 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: #c49b3f;
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #b08a2e;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    color: #c49b3f;
    border: 2px solid #c49b3f;
    padding: 10px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #c49b3f;
    color: white;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 32px;
    right: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: #c49b3f;
    opacity: 0.3;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
}

/* FAQ */
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.faq-item button {
    cursor: pointer;
}

.faq-item button svg {
    transition: transform 0.3s ease;
}

.faq-item button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0;
    background-color: #f8f7f4;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1a2332;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #c49b3f;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #a0aec0;
}

.breadcrumbs .current {
    color: #c49b3f;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-section {
        min-height: 480px;
    }
    
    h1 {
        font-size: 28px !important;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c49b3f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b08a2e;
}

/* Selection */
::selection {
    background-color: #c49b3f;
    color: white;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Touch targets for mobile */
@media (max-width: 768px) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}