
:root {
    --main-text-font-family: "Janna LT-Regular", Helvetica;
    --primary-color: #0580D3;
    --hover-color: #1067a1;
    --secondary-color: #050a30;
    --third-color: #CAE8FF;
    --fourth-color: #EAF2F8;
    --border-color :#D8C9C2; 
    --bg-icons-color: #D8C9C2;
    --icons-color: #060606;
    --bg1-color : #465863; 
    --bg2-color : #182E3C; 
    --bg3-color : #EAF2F8; 
    --text-white: #ffffff;
    --transition: 0.3s ease;
}


@font-face {
    font-family: 'Janna';
    src: url('../fonts/ArbFONTS-ArbFONTS-Janna-LT-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Janna';
    src: url('../fonts/ArbFONTS-ArbFONTS-Janna-LT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Google Material Symbols Rounded Icon Font */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    line-height: 1;
    direction: ltr;
    font-size: 2.40rem;
    vertical-align: middle;
    padding: 1rem;
    max-width: 4.8rem;
    max-height: 4.8rem;
    border-radius: 50%;
}
* {
    outline: 1px solid rgba(255, 0, 0, 0); /* لإظهار حدود العناصر أثناء التطوير */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* لجعل rem = 10px لتسهيل الحساب */
    scroll-behavior: smooth;
}

body {
     font-family: 'Janna', sans-serif;
    direction: rtl;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-white);
}
h1, h2, h3, h4, h5, h6 {
  /* margin-bottom: 2.4rem; */
  line-height: 2.4;
}
.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}
.logo img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition);}



/* --- Components --- */
.btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    border-radius: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-primary { 
    font-family: 'Janna';
    background: var(--primary-color);
     color: var(--text-white); 
     padding: 1.2rem 10rem; 
    }
    .btn-primary:hover {
        background-color: var(--hover-color);
        color: var(--text-white);
        transition: var(--transition);
        transform:translateY(-0.3rem)
    }
.btn-outline {
     border: 2px solid var(--primary-color);
     color: var(--text-white);
     }
.btn-dark { 
    background: var(--secondary-color);
     color: var(--text-white);
      width: 100%; 
    }

.section-title {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    position: relative;
}
p {   
     font-size: 2.4rem;
    margin: 1.6rem  0; 
 }
    


/* -- Header --- */
.main-header {
    padding: 2.4rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    position: absolute;
    left: 0;
    right: 0;
}

.header-container {
    display: flex;
    justify-content: space-between; /* توزيع المساحة بين الشعار وبقية العناصر */
    align-items: center;
    width: 100%;
}


.main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1; 
}


.main-nav ul {
    display: flex;
    gap: 3rem;
    margin-right: auto;
    margin-left: auto; 
    font-size: 2.4rem;
    color: var(--text-white);
}

.main-nav ul a:hover {
    color: var(--primary-color);
    transition: var(--transition);
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-white);
    cursor: pointer;
    margin-right: 0; /* ضمان عدم وجود مساحة تدفعه لليمين */
    margin-left: 0; 
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2.8rem;
    cursor: pointer;
    z-index: 1002;
}


/* ---  Overlay --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 1000;
}
.overlay.active {
    visibility: visible;
    opacity: 1;
}



/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('../images/background-hero.png');
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-white);
    text-align: center;
    position: relative;
    background-size: cover;
    padding-bottom: 8rem;
}
/* .container .rectangulars {
    display: flex;
    justify-content: center;
    align-items: center;
} */

.hero h1 {
    margin-top: 2.4rem;
     font-size: 8rem;
     font-weight:900;
     }

/* .hero-btns { display: flex; gap: 2rem; justify-content: center; margin-top: 3rem; } */
.hero-btns .btn-primary , .hero-btns .btn-outline { font-size: 1.8rem; }
.hero-stats {
    position: absolute;
    bottom: 2.4rem;
    left: 0;
    right: 0;
    width: 100%;
    padding: 5rem 0;
    z-index: 200;
}
.btn-primary {
    margin: 2.4rem 0;
}
.hero-content {
    text-align: center;
}
.hero-content h2 {
    font-size: 4.8rem; 
    color: var(--border-color);

}
.stats {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0 1rem;
}
.stats .stat-item {
    display: flex;
    min-width: 0; 
    padding: 0.8rem 2.4rem;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.8rem;
    white-space: nowrap; /* يمنع النص الداخلي من الانكسار */
}

.stats .stat-item .material-symbols-rounded {

    background-color: var(--bg-icons-color); 
    color: var(--icons-color);
}
.stats .stat-item .text {
    padding: 0 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.6rem;
}
.stats .stat-item .text span {
  font-weight: bolder ;
}



/* ---- about  ----*/
.about {
    background-color: var(--bg3-color);

    
}

    .container .about-container {
    display: flex;
    justify-content: center ;
    align-items:center;
    gap: 6rem;
    padding: 4.8rem 0;
}
    .about img {
    width: 170rem;
    max-width: 100%;
}
.about .about-text {
    
    justify-content: space-between;
    align-items: center;
}


/* ---. (Services) --- */
.services {
    margin-top: 3rem;
}
.services .section-header {
    text-align: center;
}
.services-grid {
    display: grid;
    gap: 2.4rem; 
    margin-top: 4rem;
    grid-template-columns: repeat(3, 1fr); 
}
.services-grid article .card-head span {
    background-color: var(--text-white);
    color: var(--icons-color);
   margin: 1.6rem;
   
}
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: var(--text-white);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 2rem 4rem rgba(0,0,0,0.2);
}
.card-head {
    background: #cae8ff;
     padding: 0.8rem; 
     text-align: center; }
.card-icon {
     font-size: 4rem;
      margin-bottom: 1rem;
     }
.card-body { 
    padding: 3rem;
     min-height: 20rem;
     }
.card-footer { 
    background: var(--primary-color); 
    color: var(--text-white); 
    text-align: center; 
    padding: 1.5rem;
     display: flex;
    margin-top: auto;
    padding: 0.8rem 2.4rem ;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.card-footer:hover  {
    background-color: var(--hover-color);
    color: var(--primary-color);
    transition: var(--transition);
}
.card-footer:hover > a , span {
    color: var(--text-white);
    transition: var(--transition);
}

.card-footer a,
.card-footer a:hover,
.card-footer a:focus {
  background: transparent !important;
 
}
.card-footer .material-symbols-rounded {
    background-color: var(--text-white);
    color: var(--primary-color);
    padding: 0.5rem;
    max-width: 3.5rem;
    max-height: 3.5rem;
}


/* --- cons-order --- */
.cons-order {
     margin-top: 3rem;      
}
.cons-order .cons-order-content {
    background-color: var(--bg1-color);
    color: var(--text-white);
    padding: 4.8rem;
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    -webkit-border-radius: 0.8rem;
    -moz-border-radius: 0.8rem;
    -ms-border-radius: 0.8rem;
    -o-border-radius: 0.8rem;
}


/* ---  Contact --- */
.contact { 
    padding: 8rem 0;
     background: var(--bg3-color);
      margin-top: 4.8rem;
    }
.contact-grid {
   display: flex;
    justify-content: space-between;
    /* السر هنا: stretch تجعل القسمين بنفس الطول تلقائياً */
    align-items: stretch; 
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-form {
    height: 100%;
    width: 50%;
    text-align: center;
    flex-direction: column;
}
.contact-form form {
    flex: 1;
    height: 100%;
     display: flex;
     flex-direction: column;
     gap: 2rem;
     background-color: var(--text-white);
     box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
     padding: 2.4rem;
     border-radius:0.8rem ;
     -webkit-border-radius:0.8rem ;
     -moz-border-radius:0.8rem ;
     -ms-border-radius:0.8rem ;
     -o-border-radius:0.8rem ;
}
.contact-info {
      width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    padding: 4.8rem 0.8rem;
}

.contact-info .info-item  {
    display: flex;
    align-items: center;
    margin-bottom: 2.4rem;
}

.contact-info .info-item a {
    color: var(--primary-color);
}
.contact-info .info-item a:hover {
    color: var(--hover-color);
}
.info-item .material-symbols-rounded {
   margin-left: 2rem;
}
.contact-info .material-symbols-rounded {
    background-color: var(--bg-icons-color);
    color: var(--icons-color);
}
.contact-form , .contact-info {
    width: 50%;
}

.contact-form input, .contact-form textarea {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
}
.contact-form input:focus, .contact-form textarea:focus {
   /* تغيير لون الحواف */
    border-color: var(--primary-color) !important; 
    box-shadow: 0 0 1.6rem rgba(var(--primary-rgb), 1.20);
    transition: border-color var(--transition), box-shadow var(--transition);
}


/* --- footer --- */
.footer {
    background-color: var(--bg2-color);
}

 .footer .container .footer-container {
    padding: 4.8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
 }

.footer .container .footer-container .footer-right {
    text-align: center;
}
/* .footer .container .footer-container .footer-right .btn-primary{
    margin-bottom:2.4rem ;
} */
.footer .container .footer-container .footer-right .footer-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-white);
}
.footer .container .footer-container .footer-right .footer-nav a{
    padding: 0.8rem;
}
.footer .container .footer-container .footer-right .footer-nav a:hover{
    color: var(--primary-color);
    transition: var(--transition);
}

.footer .container .footer-container .footer-middle {
    text-align: center;
    color: var(--text-white);
}
.footer .container .footer-container .footer-middle span {
    font-size: 1.6rem;
}

.footer .container .footer-container .footer-left {
    text-align: center;
}
.footer .container .footer-container .footer-left img {
    width: 150px;
    margin-bottom: 2.4rem;
}
.footer .container .footer-container .footer-left .social-links {
    display: flex;
    justify-content: space-between ;
    align-items: center;
}
.footer .container .footer-container .footer-left .social-links i:hover{
    color: var(--primary-color);
    transition: var(--transition);
}
.footer .container .footer-container .footer-left .social-links i {
    color: var(--text-white);

}
/* --- end footer --- */

/* responsive --- */

@media (max-width: 1024px) {
    .hero {
        height: auto !important; 
        min-height: 70vh; 
        padding-top: 15rem; 
        padding-bottom: 12rem; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero h1 {
        margin-top: 0;
        margin-bottom: 2rem;
    }
  
    .hero-stats {
        position: absolute;
        bottom: 1.6rem;
        padding: 2rem 0;
    }
}


@media (max-width: 991px) {
    .logo img {
        width: 150px;
    }
    .main-nav ul a {
        font-size: 1.8rem;
    }
    .container .about-container {
        flex-direction: column; 
        text-align: center;
        gap: 3rem;
    }

    .about img {
        width: 100%;
    }

.footer .container .footer-container .footer-right .btn-primary{
   padding: 1.2rem 6rem;;
}
}


@media (min-width: 769px) {
    .overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}


@media (max-width: 768px) {
   
   .main-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: var(--bg2-color);
        z-index: 1001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 8rem 2.8rem;
        display: block; 
    }
    .main-nav.active {
        right: 0; /* انزلاق القائمة للداخل */
    }
    .main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
        align-items: flex-start; 
    }

    .main-nav ul li a {
        font-size: 2rem;
        width: 100%;
        display: block;
    }
    .lang-mobile-wrapper {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .menu-toggle {
        display: block;
        font-size: 2.5rem;
        color: var(--text-white);
        cursor: pointer;
        background: none;
        border: none;
    }
    
    .header-container {
        justify-content: space-between;
    }

    .hero {
        padding-top: 12rem;
        padding-bottom: 10rem;
    }
    p {   
     font-size: 1.6rem;
 }
    .hero h1 { font-size: 6rem; }
    .hero h2 { font-size: 2.4rem; }
   
    

    /* .stats {
        gap: 0.8rem; 
        width: 100%;

    } */

    .stats .stat-item {
        padding: 0.8rem 2.4rem;
        flex: 1;
        justify-content: center;
    }

 
    .stats .stat-item .material-symbols-rounded {
        font-size: 1.8rem; 
        padding: 0.5rem;
        max-width: 3.5rem;
        max-height: 3.5rem;
    }

    .stats .stat-item .text {
        padding: 0 0.5rem;
        font-size: 1.1rem; 
    }
    
    .stats .stat-item .text b {
        font-size: 1.3rem;
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        /* gap: 1.5rem; */
    }

    .services-grid {
        grid-template-columns: 1fr; 
    }

    /* .hero-btns {
        flex-direction: column; 
        width: 100%;
        padding: 0 2rem;
    } */

    .btn-primary { 
        padding: 1.2rem 2rem; 
        width: 100%;
    }
    .cons-order .cons-order-content {
        padding: 2rem;
    }
    .contact-grid {
        flex-direction: column; 
        gap: 2.4rem;
    }
    .contact-form, .contact-info {
        text-align: center;
        width: 100%;
        padding: 0;
    }
   
    .contact-form, .contact-info  {
        text-align:center;
        padding: 0 2.4rem;
    }
    .contact-form, .contact-info h2 {
        font-size: 2rem;
    }
    .contact-form, .contact-info .conta .text {
        text-align: right;
    }
    .contact-form {
        text-align:start;
        padding: 0;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer .container .footer-container .footer-middle {
        order: 3;
    }
    .footer .container .footer-container .footer-left img {
        margin-bottom: 0.8rem;
        
    }
  
    .footer .container .footer-container .footer-middle span {
       font-size: 1.2rem;
    }
  

}

@media (max-width: 480px) {
   .stats {
        gap: 0.5rem;
    }
    
    .stats .stat-item .text {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 4.8rem;
    }
        /* .main-nav.active {
        right: -4px;
    } */
}


/* اجعل الحقول تورث نمط النص العام للموقع */
input, textarea, select{
  font: inherit;
  font-size: 1.6rem;
  font-weight: inherit;
  color: inherit;
  direction: rtl;
  text-align: right;
}

/* تنسيق الـ placeholder (شاملة للمتصفحات الرئيسية) */
::placeholder { color: rgba(0,0,0,0.45); opacity: 1; font-family: inherit; font-size: 1.8rem; text-align: right; }
::-webkit-input-placeholder { color: rgba(0,0,0,0.45); opacity: 1; font-family: inherit; font-size: inherit; text-align: right; }
::-moz-placeholder { color: rgba(0,0,0,0.45); opacity: 1; font-family: inherit; font-size: inherit; text-align: right; }
:-ms-input-placeholder { color: rgba(0,0,0,0.45); opacity: 1; font-family: inherit; font-size: inherit; text-align: right; }