:root {
    --primary: #6D4C41;
    --secondary: #C89B3C;
    --accent: #8D6E63;
    --dark: #2E2E2E;
    --light: #F8F6F3;
    --white: #FFFFFF;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    height: 50px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 46, 46, 0.7), rgba(46, 46, 46, 0.7)), url('https://images.unsplash.com/photo-1581428982868-e410dd447b57?w=1600') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent);
}

.btn-secondary {
    background-color: #25D366;
    color: var(--white);
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #1ebe57;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid var(--secondary);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
    text-align: center; /* لتوسيط النصوص والأزرار */
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 20px;
}

/* Work Stages */
.stages-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.stage-item {
    flex: 1;
    min-width: 150px;
}

.stage-num {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 4px solid var(--light);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-img:hover {
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Areas */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.areas-list span {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.areas-list .all-areas {
    background-color: var(--secondary);
    font-weight: bold;
}

/* FAQ */
.faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--white);
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.faq-answer p {
    padding-bottom: 15px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.w-100 {
    width: 100%;
}

.address-box {
    margin-top: 15px;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px;
    text-align: center;
}

.hours-grid div {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 30px 0;
}

/* تنسيق الفوتر ليكون الحقوق يمين والتوقيع يسار */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.designer-signature {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid var(--secondary);
    border-radius: 5px;
    transition: var(--transition);
}

.designer-signature:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-wa, .float-call {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.float-wa { background-color: #25d366; }
.float-call { background-color: var(--primary); }
.float-wa:hover, .float-call:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .nav { display: none; } /* يفضل إضافة قائمة جانبية للجوال */
    
    /* إعدادات الفوتر في شاشة الجوال */
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
}
