/* =====================================
   1- الإعدادات العامة (Global Settings)
===================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;         /*هذه من أهم الخصائص في CSS الحديثة. لتحكم بعرض الشاشة*/
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f5;
    color: #272204;
    overflow-x: hidden;
}
html{

    scroll-behavior:smooth;
}
/*=====================================================
    Container

    الغرض:
    - يحتوي جميع عناصر الموقع.
    - يمنع امتداد المحتوى على الشاشات الكبيرة.
    - يترك مسافة مريحة من الجانبين على الجوال.

    width:100%
    يجعل العنصر يشغل عرض الشاشة بالكامل.

    max-width:1200px
    يمنع زيادة عرض المحتوى على الشاشات الكبيرة.

    margin:auto
    يوسّط الـ Container داخل الصفحة.

    padding:0 1rem
    يترك مسافة داخلية يمين ويسار حتى لا يلتصق
    المحتوى بحافة الشاشة.
=====================================================*/
.container {
    width: min(100% - 32px, 1300px);
    margin-inline: auto;
}


.site-header {
    padding-top: 12px;
}
/* =====================================
   2- شريط التنقل (Navbar)
===================================== */
.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 14px 24px;

    background: #f3f2f0;
    border-right: 12px solid #b9b138;
    border-bottom: 4px solid #b9b138;
    border-radius: 10px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 10px 12px;

    color: #240404;
    font-weight: 600;
    text-decoration: none;

    border-radius: 7px;
    transition: 0.3s;
}
.nav-links a:hover {
    background: rgba(7, 7, 7, 0.1);
}

/*==================================*/

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #240404;
    text-decoration: none;
}

.brand h1 {
    margin: 0;
    font-size: 1.4rem;
    white-space: nowrap;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.menu-btn {
    display: none;

    padding: 5px 12px;
    font-size: 1.8rem;
    line-height: 1;

    color: #240404;
    background: transparent;
    border: 1px solid #b9b138;
    border-radius: 7px;

    cursor: pointer;
}
/* سنضيف أكواد الـ Navbar هنا */

/*=========================================
3- Hero Section
=========================================*/

.hero{
   display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
   border-top: 5px solid #b9b138;
}


.hero-text{
    text-align: center;
}

.hero-text h2{
  
    margin-bottom:10px;
      font-size:3.5rem;
      padding:30px;
}

.hero-text p{
    font-size: 1.8rem;
    color: #240404;
    line-height: 1.8;
    max-width: 700px;
    margin: auto;
}
.hero-buttons{
    margin-top:30px;
    display:flex;
       gap:20px;
    flex-wrap:wrap;
      justify-content: center;
}
.btn{
      padding:14px 30px;
    border-radius:8px;
    font-weight:600;
    transition:.3s;
    cursor:pointer;
    min-width:160px;
    text-align:center;
}
.btn-primary{

  background:#c79b32;
    color:#fff;
}
.btn-primary:hover{

    background:#a97f1f;
}
.hero-image img{
    width:100%;
    height:180px;
    display:flex;

}
.hero-text{
    flex:1;
}



.btn-secondary{
 background:#222;
    color:#c79b32;
   border:2px solid #c79b32;
}
.btn-secondary:hover{

    background:#c79b32;
    color:white;
    text-decoration:none;
}
.services{

    padding:80px 0;
}
.services h2{
   text-align:center;
    margin-bottom:40px;
    font-size:2rem;
    
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.service-card{

     background:#fff;
    border-radius:15px;
    overflow:hidden;
    text-decoration:none;
    color:#222;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
  min-width: 0;
    transition:.35s;
}
.service-card:hover{

    transform:translateY(-8px);
}
.service-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: #f8f8f8;
}
.service-card h3{

    margin:20px 20px 10px;

    color:#222;

    font-size:1.3rem;
}
.service-card p{

    padding:0 20px 20px;
    color:#666;
    line-height:1.8;
}
/*=========================================
4- Responsive Design ضبط العرض مع الجوال
=========================================*/

@media (max-width:768px){

    .hero{
        flex-direction:column;
    }

    .hero-text{
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .services-grid{
        grid-template-columns:1fr;
    }
    .hero-text h2{
  
    margin-bottom:10px;
      font-size:1.8rem;
      padding:10px;
}
.about .container{
    flex-direction:column;
   
}

.about-content{
    text-align:center;

}
}
 .service-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.service-card:hover img{

    transform:scale(1.05);
}
/*=========================================
5- About Section
=========================================*/

.about{

    padding:20px 0;
    background: #f3f2f0; 
}
.about .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}
.about-content{
    flex:1;
}

.about-content h2{
    font-size:2.5rem;
    margin-bottom:20px;
    color:#222;
}

.about-content p{
    line-height:2;
    color:#555;
    margin-bottom:30px;
}
.service-page{
    max-width:900px;
    margin:auto;
    padding:40px 20px;
}

/*=========================================
صفحات الخدمات
=========================================*/

.service-header{

    padding:20px;

    text-align:right;
}

.back-btn{

    display:inline-block;

    background:#222;

    color:white;

    padding:12px 24px;

    border-radius:8px;

    text-decoration:none;

    transition:.3s;
}

.back-btn:hover{

    background:#c79b32;
}

.service-page{

    max-width:900px;

    margin:auto;

    padding:20px;
}

.service-poster{

    width:100%;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    display:block;
}

.service-footer{

    text-align:center;

    padding:40px;
}
.more{

    display:block;

    padding:0 20px 20px;

    color:#c79b32;

    font-weight:bold;
}
.why-us{

    padding:80px 0;
}

.why-us h2{

    text-align:center;
    margin-bottom:40px;
    font-size:2rem;
}

.why-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;
}

.why-card{

    background:#fff;

    padding:30px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

    transition:.3s;
}

.why-card:hover{

    transform:translateY(-8px);
}

.why-card h3{

    color:#c79b32;

    margin-bottom:15px;
}

.why-card p{

    color:#666;

    line-height:1.8;
}
/*===============================
تواصل معنا
=============================*/
.contact{

    padding:80px 0;

    text-align:center;
}

.contact h2{

    font-size:2rem;

    margin-bottom:20px;
}

.contact-text{

    color:#666;

    margin-bottom:40px;
}

.contact-info{
 
      display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;
}

.contact-card{
  width:320px;

    min-height:380px;

    background:#fff;

   padding:30px;

    border-radius:15px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

    transition:.3s;
}

.contact-card:hover{

    transform:translateY(-8px);
}

.contact-card h3{

    color:#c79b32;

    margin-bottom:15px;
}
/*==========================
Contact
==========================*/

.contact{

    padding:80px 20px;

    text-align:center;

    background:#f8f8f8;

    border-radius:15px;

    margin-top:70px;
}

.contact h2{

    font-size:2rem;

    margin-bottom:20px;
}

.contact p{

    color:#666;

    margin-bottom:35px;

    line-height:1.8;
}

.contact-buttons{

    display:flex;

    justify-content:center;

    gap:50px;

    flex-wrap:wrap;
}

.footer{

    background:#222;

    color:#fff;

    text-align:center;

    padding:25px;

    margin-top:60px;
}
/*==================================
    Service Pages
==================================*/

.service-header{

    padding:60px 20px;

    text-align:center;

    background:#f8f8f8;

    border-radius:15px;

    margin:40px auto;
}

.service-header h1{

    font-size:2.5rem;

    color:#222;

    margin-bottom:20px;
}

.service-header p{

    max-width:800px;

    margin:auto;

    line-height:1.9;

    color:#555;
}

/* صورة الخدمة */

.service-poster{

    margin:50px auto;

    text-align:center;
}

.service-poster img{

    width:100%;

    max-width:1000px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

/* وصف الخدمة */

.service-description{

    padding:40px 20px;

    text-align:center;
}

.service-description p{

    max-width:900px;

    margin:auto;

    line-height:2;

    color:#444;

    font-size:1.1rem;
}
.features-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin-top:40px;
}

.feature-card{

    background:#fff;

    padding:30px;

    border-radius:12px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    transition:.3s;
}

.feature-card:hover{

    transform:translateY(-8px);
}

.feature-card h3{

    color:#b9b138;

    margin-bottom:15px;
}

.feature-card p{

    line-height:1.8;

    color:#555;
}
.service-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:60px 0;

    flex-wrap:wrap;
}
.service-info{

    padding:70px 0;
}

.service-info h2{

    text-align:center;

    margin-bottom:40px;
}

.info-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;
}

.info-card{

    background:#ffffff;

    padding:25px;

    border-radius:12px;

    text-align:center;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.3s;
}

.info-card:hover{

    transform:translateY(-6px);
}

.info-card h3{

    color:#b9b138;

    margin-bottom:15px;
}
.expert-tip{

    background:#fff8e8;

    border-right:6px solid #b9b138;

    padding:35px;

    border-radius:12px;

    margin:50px auto;
}

.expert-tip h2{

    color:#8a7f1d;

    margin-bottom:20px;
}

.expert-tip p{

    line-height:2;

    color:#444;

    font-size:1.05rem;
}

/*=========================
    Service Gallery
==========================*/

.service-gallery{

    padding:70px 0;
}

.service-gallery h2{

    text-align:center;

    margin-bottom:40px;

    color:#333;
}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:20px;
}

.gallery-grid img{

    width:100%;

    height:230px;

    object-fit:contain; /*يجعل الصورة تغطي البطاقة كامة*/

    border-radius:12px;

    transition:.3s;

    cursor:pointer;

    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.gallery-grid img:hover{

    transform:scale(1.05);

    box-shadow:0 10px 25px rgba(0,0,0,.2);
}
@media (max-width: 768px) {

    .container {
        width: min(100% - 24px, 1300px);
    }

    .navbar {
        padding: 10px 12px;
        border-right-width: 7px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand h1 {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.4;
    }

    .logo {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .menu-btn {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        z-index: 1000;

        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        padding: 12px;

        background: #ffffff;
        border: 1px solid #ddd;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        text-align: center;
        padding: 12px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
        display: block;
    }

    .hero {
        flex-direction: column;
        gap: 15px;
    }

    .hero-text h2 {
        margin-bottom: 8px;
        padding: 12px 5px;
        font-size: 1.65rem;
        line-height: 1.5;
    }

    .hero-text p {
        padding-inline: 8px;
        font-size: 1rem;
        line-height: 1.9;
    }

    .services,
    .why-us,
    .contact {
        padding: 45px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-card img {
        height: 200px;
    }

    .about .container {
        flex-direction: column;
        gap: 25px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-image img {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin-inline: auto;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        margin-top: 35px;
        padding-inline: 12px;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-card {
        width: 100%;
        min-height: auto;
        padding: 22px 16px;
    }

    .footer {
        margin-top: 30px;
        padding: 20px 12px;
        font-size: 0.9rem;
        line-height: 1.8;
    }
}