/* ===== المتغيرات ===== */
:root {
    --color-primary: #7B5E44;
    --color-primary-light: #9B8271;
    --color-primary-dark: #5A4430;
    --color-accent: #D4B996;
    --color-bg: #F5F0E9;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E5DED5;
    --shadow-sm: 0 2px 10px rgba(123, 94, 68, 0.05);
    --shadow-md: 0 5px 20px rgba(123, 94, 68, 0.1);
    --shadow-lg: 0 10px 30px rgba(123, 94, 68, 0.15);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== إعادة تعيين ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
}

/* خلفية بأيقونات خفيفة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%237B5E44' opacity='0.05' d='M30,10 L70,10 L90,50 L70,90 L30,90 L10,50 Z'/%3E%3C/svg%3E");
    background-size: 300px;
    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

input,
textarea,
button {
    font-family: 'Tajawal', sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== المحمل ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader i {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* ===== الهيدر ===== */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 700;
}

.logo i {
    font-size: 2.4rem;
    margin-left: 0.8rem;
}

.logo-text {
    font-size: 2.2rem;
}

.logo .accent {
    color: var(--color-accent);
}

.main-nav {
    margin-right: auto;
    margin-left: 4rem;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-login {
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-login i {
    margin-left: 0.8rem;
    font-size: 1.4rem;
}

.btn-login:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 4rem;
    height: 4rem;
    position: relative;
    margin-right: 1.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    right: 0.75rem;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 1.3rem;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 2rem;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 2.7rem;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 2rem;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 2rem;
}

/* ===== قسم البطل ===== */
.hero-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23FFFFFF' opacity='0.05' d='M30,10 L70,10 L90,50 L70,90 L30,90 L10,50 Z'/%3E%3C/svg%3E");
    background-size: 150px;
    z-index: 1;
}

/* ===== قسم التواصل ===== */
.contact-section {
    padding: 8rem 0;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-form-wrapper {
    flex: 1.5;
}

.info-card,
.form-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    height: 100%;
}

.info-header,
.form-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--color-text-light);
}

.info-items {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    margin-bottom: 2.5rem;
}

.info-icon {
    width: 5rem;
    height: 5rem;
    background-color: rgba(123, 94, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 2rem;
    color: var(--color-primary);
}

.info-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.info-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-link {
    color: var(--color-primary);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(123, 94, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    width: 100%;
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
}

.textarea-group .input-icon {
    top: 2rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 4.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-bg);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 94, 68, 0.1);
}

.form-control::placeholder {
    color: #AAA;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.8rem;
    height: 1.8rem;
    margin-left: 1rem;
    accent-color: var(--color-primary);
}

.form-check-label {
    font-size: 1.4rem;
    color: var(--color-text-light);
}

.form-check-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.btn i {
    margin-right: 1rem;
}

/* ===== قسم الخريطة ===== */
.map-section {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== طرق أخرى للتواصل ===== */
.alt-contact-section {
    padding: 8rem 0;
    background-color: var(--color-white);
}

.contact-methods {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.contact-method-card {
    flex: 1;
    background-color: var(--color-bg);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 8rem;
    height: 8rem;
    background-color: rgba(123, 94, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.method-icon i {
    font-size: 3rem;
    color: var(--color-primary);
}

.method-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.method-description {
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    min-height: 5rem;
}

/* ===== الأسئلة الشائعة ===== */
.faq-section {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.faq-icon {
    color: var(--color-primary);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: rgba(123, 94, 68, 0.05);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 20rem;
}

/* ===== قسم CTA ===== */
.cta-section {
    padding: 6rem 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cta-content {
    flex: 2;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.8rem;
    opacity: 0.9;
}

.cta-buttons {
    flex: 1;
    display: flex;
    gap: 1.5rem;
}

.cta-buttons .btn {
    flex: 1;
}

.cta-buttons .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-buttons .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* ===== الفوتر ===== */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    position: relative;
}

.footer-top {
    padding: 6rem 0 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-about {
    flex: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-logo i {
    margin-left: 1rem;
}

.footer-logo .accent {
    color: var(--color-accent);
}

.footer-description {
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.footer-social .social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.footer-links,
.footer-services,
.footer-newsletter {
    flex: 1;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-menu li {
    margin-bottom: 1.2rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--color-accent);
    padding-right: 0.5rem;
}

.newsletter-text {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1.4rem;
}

.newsletter-btn {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--color-white);
}

.newsletter-privacy {
    font-size: 1.2rem;
    opacity: 0.7;
}

.newsletter-privacy a {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 1.4rem;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

.back-to-top {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* ===== تأثيرات AOS ===== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ===== التجاوب مع الشاشات ===== */
@media (max-width: 1200px) {
    html {
        font-size: 58%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 56%;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        gap: 3rem;
    }
    
    .footer-about {
        flex: 100%;
    }
    
    .footer-links,
    .footer-services,
    .footer-newsletter {
        flex: 1 0 40%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 54%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        z-index: 1001;
        padding: 8rem 2rem 2rem;
        margin: 0;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 0 0 2rem 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-links,
    .footer-services,
    .footer-newsletter {
        flex: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .info-card,
    .form-card {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .back-to-top {
        left: 2rem;
        bottom: 2rem;
        width: 4rem;
        height: 4rem;
    }
}

/* ===== تأثيرات إضافية ===== */
.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.success-message i {
    margin-left: 1rem;
    font-size: 2rem;
}

.error {
    border-color: #f44336 !important;
}

.error-message {
    color: #f44336;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
