/* الألوان: الأبيض والنحاسي الأنيق */
:root {
    --copper: #c88141;
    --copper-dark: #a6652c;
    --copper-light: #fdf5ef;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-muted: #aaaaaa;
    --text-light: #f4f4f4;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.05);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader {
    position: fixed;
    inset: 0;
    background-color: #e5e5e5;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
}
.preloader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(200, 129, 65, 0.2);
    border-top-color: var(--copper);
    animation: spin 1s linear infinite;
    will-change: transform;
}
.preloader-logo {
    width: 110px;
    border-radius: 50%;
    animation: heartbeat 1.2s infinite alternate ease-in-out;
    will-change: transform;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes heartbeat {
    0%   { transform: scale(0.95); }
    100% { transform: scale(1.05); }
}

html {
    overflow-x: hidden;
    /* مسحنا scroll-behavior: smooth عشان هي اللي بتعمل لاج */
}

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

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch; 
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.copper-text { color: var(--copper); }
.bg-light { background-color: var(--bg-light); }

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}
.btn-copper {
    background: var(--copper);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(200, 129, 65, 0.2);
}
.btn-copper:hover {
    background: var(--copper-dark);
    transform: translateY(-3px);
}
.btn-outline {
    border-color: var(--copper);
    color: var(--copper);
}
.btn-outline:hover {
    background: var(--copper);
    color: var(--white);
}
.w-100 { width: 100%; }

.glass-header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.glass-header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (min-width: 992px) {
    .glass-header {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}
.header-wrap {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px;
}
.logo-box {
    display: flex; align-items: center; gap: 15px;
}
.logo { height: 50px; width: 50px; border-radius: 50%; object-fit: cover; }
.logo-text { font-size: 1.5rem; font-weight: 900; color: var(--copper); }

.desktop-nav .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--copper);
    transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--copper);
}
.nav-links a.active::after, .nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--copper); cursor: pointer; }

.hero-split {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-split .hero-content {
    flex: 1; padding: 5%;
}
.hero-split .hero-visual {
    flex: 1; display: flex; justify-content: center; align-items: center;
}
.badge {
    display: inline-block; background: var(--copper-light); color: var(--copper);
    padding: 5px 15px; border-radius: 20px; font-weight: 700; margin-bottom: 20px;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-content h1 span { color: var(--copper); }
.hero-content p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 15px; }

.visual-frame {
    position: relative; width: 80%;
}
.decorative-box {
    position: absolute; top: -20px; right: -20px; width: 100%; height: 100%;
    border: 3px solid var(--copper); border-radius: 20px; z-index: -1;
}
.visual-frame img {
    width: 100%; border-radius: 20px; box-shadow: var(--shadow-soft);
}

.stats-section { margin-top: -50px; position: relative; z-index: 10; }
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    background: var(--white); padding: 40px; border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.stat-card { text-align: center; border-right: 1px solid #eee; }
.stat-card:last-child { border: none; }
.stat-card i { font-size: 2rem; color: var(--copper); margin-bottom: 10px; }
.stat-card h3 { font-size: 2.5rem; color: var(--text-dark); line-height: 1; }
.stat-card p { color: var(--text-gray); }

.section-head { margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; font-weight: 900; }
.services-showcase {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.service-block {
    background: var(--white); padding: 40px 30px; border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 4px solid transparent;
}
.service-block:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-soft); border-color: var(--copper);
}
.icon-wrap {
    width: 70px; height: 70px; background: var(--copper-light); color: var(--copper);
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 1.8rem; margin-bottom: 25px;
}
.service-block h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-block p { color: var(--text-gray); }

.process-section { background-color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; position: relative; }
.process-step { text-align: center; padding: 20px; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--copper); color: var(--white); font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 20px rgba(200, 129, 65, 0.3); }
.process-step h3 { margin-bottom: 10px; color: var(--text-dark); }
.process-step p { color: var(--text-gray); font-size: 0.95rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    height: 250px;
    contain: layout paint;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}
.gallery-overlay h4 {
    color: var(--white); font-size: 1.2rem; margin-bottom: 10px;
}
.view-btn {
    align-self: flex-start;
    background: var(--copper); color: var(--white);
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%;
}

.mt-40 { margin-top: 40px; }
.hidden-gallery-item { display: none !important; }
.fade-in-item { animation: fadeInScale 0.6s var(--ease) forwards; }
@keyframes fadeInScale {
    0%   { opacity: 0; transform: scale(0.8) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-soft); border-right: 4px solid var(--copper); }
.stars { color: #f5b301; margin-bottom: 15px; font-size: 1.1rem; }
.review-text { font-style: italic; color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; }
.client-name { color: var(--text-dark); font-weight: bold; }

.split-contact { display: flex; gap: 50px; align-items: center; }
.contact-info { flex: 1; }
.info-list { margin-top: 40px; }
.info-list li { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.info-icon {
    width: 50px; height: 50px; background: var(--copper); color: var(--white);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem;
}
.info-list strong { display: block; font-size: 1.1rem; }
.info-list span { color: var(--text-gray); }

.contact-form-card {
    flex: 1; background: var(--white); padding: 50px;
    border-radius: 20px; box-shadow: var(--shadow-soft);
}
.input-group { position: relative; margin-bottom: 30px; width: 100%; text-align: right; }
.input-group input, .input-group textarea {
    width: 100%; display: block; padding: 15px 0; border: none; border-bottom: 2px solid #eee;
    background: transparent; outline: none; font-family: inherit; font-size: 1rem;
    transition: border-color 0.3s ease;
}
.input-group label {
    position: absolute; right: 0; top: 15px; color: var(--text-gray);
    transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
    pointer-events: none;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--copper); }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px; font-size: 0.85rem; color: var(--copper);
}

.location-image-style {
    background-color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}
.pre-map-title {
    font-size: 1.6rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}
.relative-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 600px;
}
.relative-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0) 100%);
    z-index: 1; pointer-events: none;
}
.relative-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1; pointer-events: none;
}
.relative-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.map-floating-card {
    position: absolute;
    bottom: 30px; right: 10%; background: #ffffff; padding: 40px 30px;
    border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); width: 380px; text-align: center; z-index: 2;
}
.map-floating-card h3 {
    color: var(--text-dark); font-size: 1.8rem; margin-bottom: 25px; font-weight: 900;
}
.info-row {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; color: var(--text-dark); font-size: 1.05rem; font-weight: 600;
}
.info-row i { color: #cb8864; font-size: 1.2rem; }
.btn-map-dir {
    display: block; width: 100%; background-color: #cb8864; color: #fff; padding: 14px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; margin-top: 25px; transition: background-color 0.3s ease; border: none;
}
.btn-map-dir:hover { background-color: #b37351; color: #fff; }
.contact-card-buttons { display: flex; gap: 15px; margin-top: 15px; }
.btn-card-wa, .btn-card-call {
    flex: 1; padding: 12px; border-radius: 8px; color: #fff; font-weight: bold; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 0.3s ease;
}
.btn-card-wa { background-color: #25D366; }
.btn-card-wa:hover { background-color: #1eab52; color: #fff; }
.btn-card-call { background-color: #333333; }
.btn-card-call:hover { background-color: #000000; color: #fff; }

.mega-footer {
    background-color: var(--text-dark); color: var(--text-light); padding-top: 80px; border-top: 5px solid var(--copper);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-title { color: var(--copper); font-size: 1.5rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; right: 0; bottom: 0; width: 50px; height: 2px; background: var(--copper); }
.footer-desc { color: var(--text-muted); line-height: 1.8; }
.footer-links li, .footer-contact li { margin-bottom: 15px; color: var(--text-muted); }
.footer-links a { transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--copper); transform: translateX(-5px); }
.footer-links i { margin-left: 8px; font-size: 0.8rem; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icon {
    width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: var(--white);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-icon:hover { transform: translateY(-5px); }
.social-icon.fb:hover { background: #1877F2; }
.social-icon.insta:hover { background: #E1306C; }
.social-icon.tiktok:hover { background: #ff0050; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.copyright p { color: var(--text-muted); font-size: 0.95rem; }
.developer-credit { text-align: left; }
.developer-credit p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.dev-name { color: var(--copper); font-size: 1.1rem; font-weight: 700; display: block; margin-top: 5px; letter-spacing: 0.5px; }

.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.reveal-up    { transform: translateY(30px); }
.reveal-left  { transform: translateX(30px); }
.reveal-right { transform: translateX(-30px); }
.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1; transform: none; will-change: auto;
}

section:not(.hero-split):not(.stats-section) {
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

@media (max-width: 991px) {
    .hero-split { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-actions { justify-content: center; }
    .visual-frame { width: 85%; margin: 30px auto 0; }
    .decorative-box { display: block; top: -15px; right: -15px; border-width: 2px; }
    .split-contact { flex-direction: column; align-items: stretch; gap: 40px; }
    .contact-info { text-align: right; }
    .contact-form-card { padding: 35px 20px; width: 100%; }
    .stats-section { margin-top: 40px; }
    .stats-grid { grid-template-columns: 1fr; margin-top: 0; }
    .stat-card { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; }

    .desktop-nav {
        position: absolute; top: 80px; left: 0; width: 100%; background: var(--white);
        box-shadow: 0 15px 25px rgba(0,0,0,0.08); display: none; border-top: 1px solid #f0f0f0; z-index: 1001;
    }
    .desktop-nav.open { display: block; }
    .desktop-nav .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 0; margin: 0; gap: 0; }
    .desktop-nav .nav-links li { width: 100%; text-align: right; border-bottom: 1px solid #f5f5f5; }
    .desktop-nav .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; font-size: 1.15rem; padding: 15px 25px; color: var(--text-dark); }
    .desktop-nav .nav-links a::after { display: none; }
    .desktop-nav .nav-links a:hover, .desktop-nav .nav-links a.active { color: var(--copper); background-color: var(--bg-light); }
    .mobile-toggle { display: block; }
    .relative-wrapper { height: 450px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .section-padding { padding: 70px 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .developer-credit { text-align: center; margin-top: 15px; }
    .map-floating-card { right: 5%; left: 5%; width: 90%; bottom: 20px; padding: 30px 20px; }
    .pre-map-title { font-size: 1.3rem; padding: 0 15px; }
}

.page-header { padding: 130px 0 40px; background: var(--copper-light); }
.page-header h1 { font-size: 2.2rem; font-weight: 900; color: var(--copper); }
.page-header p { color: var(--text-gray); margin-top: 8px; }
.page-header p a:hover { color: var(--copper); }

@media (max-width: 768px) {
    html { font-size: 15px; scroll-padding-top: 70px; }
    .container { width: 92%; }
    .section-padding { padding: 52px 0; }
    .section-head { margin-bottom: 30px; }
    .section-head h2 { font-size: 1.6rem; }
    .section-head p { font-size: .95rem; }

    .header-wrap { height: 64px; }
    .logo { height: 40px; width: 40px; }
    .logo-text { font-size: 1.05rem; }
    .logo-box { gap: 10px; }
    .mobile-toggle { font-size: 1.3rem; }
    .desktop-nav { top: 64px; }
    .nav-links a { font-size: 1rem; padding: 12px 22px; }

    .hero-split { min-height: auto; padding-top: 90px; padding-bottom: 24px; }
    .hero-split .hero-content { padding: 3% 4% 0; }
    .badge { font-size: .8rem; padding: 3px 12px; margin-bottom: 12px; }
    .hero-content h1 { font-size: 1.9rem; margin-bottom: 12px; }
    .hero-content p { font-size: .95rem; margin: 0 auto 22px; }
    .hero-actions { flex-wrap: wrap; gap: 10px; }
    .visual-frame { width: 78%; margin-top: 22px; }
    .visual-frame img { border-radius: 14px; }
    .decorative-box { border-radius: 14px; }

    .btn { padding: 10px 24px; font-size: .92rem; }

    .stats-grid { padding: 20px 16px; gap: 14px; border-radius: 16px; }
    .stat-card i { font-size: 1.4rem; margin-bottom: 4px; }
    .stat-card h3 { font-size: 1.7rem; }
    .stat-card p { font-size: .9rem; }

    .services-showcase { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-block { padding: 22px 14px; border-radius: 14px; text-align: center; }
    .icon-wrap { width: 50px; height: 50px; font-size: 1.2rem; margin: 0 auto 12px; }
    .service-block h3 { font-size: 1.05rem; margin-bottom: 8px; }
    .service-block p { font-size: .85rem; line-height: 1.6; }

    .process-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .process-step { padding: 10px 6px; }
    .step-number { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
    .process-step h3 { font-size: 1rem; }
    .process-step p { font-size: .82rem; line-height: 1.6; }

    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery-item { height: 150px; border-radius: 12px; }
    .gallery-overlay { padding: 10px; }
    .gallery-overlay h4 { font-size: .9rem; margin-bottom: 0; }
    .view-btn { display: none; }

    .testimonials-grid { gap: 14px; }
    .testimonial-card { padding: 22px 18px; border-radius: 14px; }
    .review-text { font-size: .9rem; margin-bottom: 12px; line-height: 1.7; }
    .stars { font-size: .95rem; margin-bottom: 8px; }

    .split-contact { gap: 28px; }
    .info-list { margin-top: 22px; }
    .info-list li { margin-bottom: 18px; gap: 14px; }
    .info-icon { width: 42px; height: 42px; font-size: 1rem; }
    .info-list strong { font-size: 1rem; }
    .contact-form-card { padding: 24px 16px; border-radius: 14px; }
    .input-group { margin-bottom: 20px; }
    .input-group input, .input-group textarea { padding: 10px 0; font-size: 16px; }

    .location-image-style { padding-top: 40px; }
    .relative-wrapper { height: 420px; }
    .map-floating-card { padding: 20px 16px; bottom: 12px; border-radius: 12px; }
    .map-floating-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
    .info-row { font-size: .9rem; margin-bottom: 10px; }
    .btn-map-dir { padding: 10px; font-size: .95rem; margin-top: 14px; }
    .btn-card-wa, .btn-card-call { padding: 9px; font-size: .9rem; }

    .mega-footer { padding-top: 44px; }
    .footer-grid { gap: 26px; margin-bottom: 30px; }
    .footer-title { font-size: 1.15rem; margin-bottom: 14px; }
    .footer-desc, .footer-links li, .footer-contact li { font-size: .9rem; margin-bottom: 10px; }
    .social-icon { width: 38px; height: 38px; font-size: 1rem; }
    .footer-bottom { padding: 20px 0; }

    .page-header { padding: 96px 0 28px; }
    .page-header h1 { font-size: 1.5rem; }
}

@media (max-width: 400px) {
    .hero-content h1 { font-size: 1.65rem; }
    .section-head h2 { font-size: 1.45rem; }
    .services-showcase, .process-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
