/* =========================
   الأساس
========================= */

*{
box-sizing:border-box;
}

html,
body{
margin:0;
padding:0;
width:100%;
background:#f4f1eb;
color:#3f4943;
font-family:Cairo,sans-serif;
}

body{
overflow-x:hidden;
}


/* =========================
   الصفحة
========================= */

.page{
width:100%;
max-width:920px;
margin:auto;
}


/* =========================
   الصورة
========================= */

.hero{
position:relative;
width:100%;
overflow:hidden;
background:#e8e3d9;
box-shadow:0 12px 28px rgba(62,68,60,.13);
}

.hero img{
display:block;
width:100%;
height:290px;
object-fit:cover;
}

.hero:after{
content:"";
position:absolute;
left:0;
right:0;
bottom:0;
height:90px;

background:linear-gradient(
transparent,
rgba(45,50,43,.25)
);

pointer-events:none;
}


/* اسم الشات */

.hero-name{
position:absolute;
z-index:2;
right:22px;
bottom:18px;

display:flex;
align-items:center;
gap:8px;

color:#fff;

font-size:14px;
font-weight:600;

text-shadow:0 2px 7px rgba(0,0,0,.35);
}

.hero-name i{
color:#d4ae62;
font-size:16px;
}


/* =========================
   شريط الترحيب
   الحواف هنا فقط
========================= */

.welcome{
height:54px;

margin:12px 10px;

display:flex;
align-items:center;

background:#fffdf9;

border:1px solid #ded6c8;
border-radius:13px;

overflow:hidden;

box-shadow:0 4px 13px rgba(68,65,55,.06);
}


/* أيقونة الشريط */

.welcome-symbol{
width:58px;
height:54px;

display:flex;
align-items:center;
justify-content:center;

background:#eee8dc;

color:#9a7a43;

font-size:18px;

flex-shrink:0;
}


/* نص الشريط */

.welcome-text{
flex:1;

padding:0 18px;

white-space:nowrap;
overflow:hidden;

font-size:11px;
font-weight:500;

color:#626b64;
}

.welcome-text span{
display:inline-block;
animation:welcomeMove 17s linear infinite;
}

.welcome-text i{
margin:0 8px;
color:#b39154;
}

@keyframes welcomeMove{

0%{
transform:translateX(-105%);
}

100%{
transform:translateX(105%);
}

}


/* =========================
   المربعات الأربعة
   منفصلة + سطر واحد
========================= */

.services{
display:grid;

grid-template-columns:
repeat(4,1fr);

gap:9px;

padding:0 10px;

background:transparent;
}


/* المربع */

.service{
height:68px;

display:flex;
align-items:center;
justify-content:center;

gap:8px;

position:relative;

background:#fffdf9;

border:1px solid #ddd5c7;
border-radius:12px;

text-decoration:none;

color:#515b54;

font-size:10px;
font-weight:600;

box-shadow:
0 4px 12px rgba(68,65,55,.055);

transition:
transform .22s ease,
box-shadow .22s ease,
background .22s ease;

animation:serviceUp .55s ease both;
}


/* الحركة */

.service:nth-child(1){
animation-delay:.04s;
}

.service:nth-child(2){
animation-delay:.10s;
}

.service:nth-child(3){
animation-delay:.16s;
}

.service:nth-child(4){
animation-delay:.22s;
}


.service:hover{
transform:translateY(-3px);

background:#ffffff;

box-shadow:
0 9px 18px rgba(68,65,55,.10);
}


/* خط ذهبي صغير */

.service:after{
content:"";

position:absolute;

bottom:0;
right:50%;

width:0;
height:2px;

background:#b79659;

transition:.25s ease;
}

.service:hover:after{
width:30px;
right:calc(50% - 15px);
}


@keyframes serviceUp{

from{
opacity:0;
transform:translateY(24px);
}

to{
opacity:1;
transform:translateY(0);
}

}


/* أيقونة المربع */

.service-icon{
width:31px;
height:31px;

display:flex;
align-items:center;
justify-content:center;

background:#edf0e9;

color:#71806f;

border-radius:8px;

font-size:13px;

transition:.2s ease;
}

.service:hover .service-icon{
background:#eee5d5;
color:#a07e42;
}


/* =========================
   رأس الدردشة
========================= */

.chat-bar{
height:61px;

margin-top:13px;

display:flex;
align-items:center;
justify-content:space-between;

padding:0 17px;

background:#e9ece6;

box-shadow:0 4px 14px rgba(68,65,55,.055);
}


/* معلومات الدردشة */

.chat-info{
display:flex;
align-items:center;
gap:10px;
}

.chat-icon{
width:35px;
height:35px;

display:flex;
align-items:center;
justify-content:center;

background:#dfe5dc;

color:#687966;

font-size:14px;
}

.chat-info strong{
display:block;

font-size:11px;
font-weight:600;

color:#465149;
}

.chat-info small{
display:block;

margin-top:1px;

font-size:8px;

color:#8c958e;
}


/* متصل */

.online{
display:flex;
align-items:center;
gap:6px;

font-size:9px;

color:#7d877f;
}

.online-dot{
width:7px;
height:7px;

border-radius:50%;

background:#7fa083;

box-shadow:
0 0 0 4px rgba(127,160,131,.12);

animation:onlinePulse 1.8s infinite;
}

@keyframes onlinePulse{

50%{
box-shadow:
0 0 0 7px rgba(127,160,131,0);
}

}


/* =========================
   CBOX
========================= */

.cbox{
width:100%;

background:#fff;

overflow:hidden;

box-shadow:
0 6px 20px rgba(68,65,55,.07);
}

.cbox-form{
width:100%;
height:200px;
overflow:hidden;
}

.cbox-main{
width:100%;
height:900px;
overflow:auto;
-webkit-overflow-scrolling:touch;
}

.cbox iframe{
display:block;
width:100%;
height:100%;
border:0;
}


/* =========================
   الفوتر
========================= */

.footer{
height:38px;

display:flex;
align-items:center;
justify-content:center;

background:#e9ece6;

color:#89918b;

font-size:9px;
}


/* =========================
   الهاتف
========================= */

@media(max-width:600px){

.hero img{
height:220px;
}

.hero-name{
right:14px;
bottom:14px;
font-size:11px;
}

.hero-name i{
font-size:13px;
}


/* الشريط */

.welcome{
height:48px;
margin:9px 7px;
}

.welcome-symbol{
width:48px;
height:48px;
font-size:16px;
}

.welcome-text{
padding:0 12px;
font-size:9px;
}


/* المربعات */

.services{
gap:6px;
padding:0 7px;
}

.service{
height:62px;
gap:5px;
font-size:8px;
border-radius:10px;
}

.service-icon{
width:27px;
height:27px;
font-size:11px;
border-radius:7px;
}


/* رأس الدردشة */

.chat-bar{
height:54px;
margin-top:11px;
padding:0 10px;
}

.chat-icon{
width:30px;
height:30px;
}

.chat-info{
gap:7px;
}

.chat-info strong{
font-size:10px;
}

.chat-info small{
font-size:7px;
}

.online{
font-size:8px;
}

.cbox-form{
height:200px;
}

.cbox-main{
height:850px;
}

}


/* =========================
   شاشات صغيرة جداً
========================= */

@media(max-width:360px){

.services{
gap:4px;
}

.service{
height:60px;
flex-direction:column;
gap:3px;
font-size:7px;
}

.service-icon{
width:25px;
height:25px;
font-size:10px;
}

}