/*
Theme Name: Netra Service
Author: Netra
Description: قالب خدمات تنظيف احترافي
Version: 1.0
*/


/* ===== HEADER FINAL CLEAN ===== */

body {
    font-family: 'Cairo', sans-serif;
}

/* الهيدر */
.main-header {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* الكونتينر */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;

    display: flex;
    align-items: center;
}

/* اللوجو */
.logo {
    flex: 1;
}

.logo h1 {
    margin: 0;
    font-size: 26px;
    color: #1E293B;
    transition: 0.3s;
}

.logo span {
    color: #38BDF8;
}

.logo h1:hover {
    transform: scale(1.05);
}

/* المنيو */
.nav {
    flex: 2;
    text-align: center;
}

.nav ul {
    list-style: none;
    display: inline-flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: #1E293B;
    font-size: 17px;
    font-weight: 500;
    padding: 5px 0;
    transition: 0.3s;
}

/* أنيميشن */
.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    right: 0;
    background: #38BDF8;
    transition: 0.4s;
}

.nav a:hover {
    color: #38BDF8;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

/* يمين */
.header-contact {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.phone {
    text-decoration: none;
    color: #1E293B;
    font-weight: bold;
}

/* زر */
.btn {
    background: linear-gradient(135deg, #38BDF8, #0EA5E9);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}

/* زر الموبايل */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ================== */
/* موبايل 🔥 */
/* ================== */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);

        max-height: 0;
        overflow: hidden;
        transition: 0.4s ease;
    }

    .nav.active {
        max-height: 400px;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav li {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .header-contact {
        display: none;
    }
}

/* ========================= */
/* Dropdown Menu 🔥 */
/* ========================= */

/* العنصر الأساسي */
.menu li {
    position: relative;
}

/* القائمة الفرعية */
.menu li ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;

    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.3s ease;
    padding: 10px 0;
}

/* العناصر */
.menu li ul li {
    padding: 0;
}

.menu li ul li a {
    display: block;
    padding: 10px 20px;
    color: #1E293B;
    font-size: 15px;
    transition: 0.3s;
}

/* hover على العنصر الفرعي */
.menu li ul li a:hover {
    background: #F1F5F9;
    color: #38BDF8;
}

/* إظهار القائمة */
.menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* سهم للعناصر اللي فيها قائمة فرعية */
.menu li.menu-item-has-children > a::before {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: 0.3s;
}

.menu li.menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

.menu li ul {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    min-width: 220px;

    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);

    transition: all 0.3s ease;
    padding: 10px 0;
}

/* لما يفتح */
.menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu li ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 6px;
    margin: 2px 10px;
}

.menu li ul li a:hover {
    background: #F1F5F9;
    transform: translateX(-5px);
}

.logo-text a {
    text-decoration: none;
    color: #1E293B;
}

.logo-text span {
    color: #38BDF8;
}

/* ===== HERO SLIDER 🔥 ===== */

.hero-slider {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.slide {
    min-width: 350px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.4s;
    scroll-snap-align: start;
}

.slide:hover {
    transform: translateY(-10px);
}

/* الصورة */
.slide-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* المحتوى */
.slide-content {
    padding: 20px;
}

.slide-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1E293B;
}

.slide-content p {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 15px;
}

/* زر */
.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #38BDF8;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.read-more:hover {
    background: #0EA5E9;
}

/* ===== HERO INTRO 🔥🔥 ===== */

.hero-intro {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 20px;

    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: #fff;

    position: relative;
    overflow: hidden;
}

/* خلفية متحركة 🔥 */
.hero-intro::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 60%);
    animation: moveBg 10s linear infinite;
}

@keyframes moveBg {
    0% { transform: translate(0,0); }
    50% { transform: translate(-20%, -20%); }
    100% { transform: translate(0,0); }
}

/* المحتوى */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* العنوان */
.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.4;

    animation: fadeUp 1s ease;
}

/* النص */
.hero-content p {
    font-size: 18px;
    color: #cbd5f5;
    margin-bottom: 30px;

    animation: fadeUp 1.5s ease;
}

/* الأزرار */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;

    animation: fadeUp 2s ease;
}

/* زر أساسي */
.btn-main {
    background: #38BDF8;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-main:hover {
    background: #0EA5E9;
    transform: translateY(-3px);
}

/* زر ثانوي */
.btn-secondary {
    border: 1px solid #38BDF8;
    color: #38BDF8;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #38BDF8;
    color: #fff;
}

/* أنيميشن */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* موبايل */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}


/* ===== CREATIVE ABOUT 🔥🔥 ===== */

.about-creative {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* خلفية متحركة */
.about-creative::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: #38BDF8;
    border-radius: 50%;
    top: -50px;
    left: -50px;
    opacity: 0.1;
}

.about-wrap {
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 50px;
}

/* النص */
.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 17px;
    color: #cbd5f5;
    line-height: 1.8;
}

/* زر */
.about-btn2 {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: #38BDF8;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.about-btn2:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56,189,248,0.4);
}

/* الصورة */
.about-visual {
    flex: 1;
    text-align: center;
}

.about-visual img {
    width: 320px;
    animation: float 4s ease-in-out infinite;
}

/* حركة */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* موبايل */
@media (max-width: 768px) {
    .about-wrap {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        font-size: 26px;
    }
}

/* ===== SERVICE AREAS 🔥🔥 ===== */

.service-areas {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    text-align: center;
}

.section-title {
    font-size: 34px;
    color: #1E293B;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #64748B;
    margin-bottom: 50px;
}

/* الجريد */
/* عرض الدول جنب بعض */
.areas-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* عرض الدول بشكل كامل */
.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* الكارت */
.area-card {
    width: 180px;
}

/* تأثير خلفية */
.area-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #38BDF8, #0EA5E9);
    top: 0;
    left: 0;
    opacity: 0;
    transition: 0.4s;
    z-index: 0;
}

/* الصورة */
.area-card img {
    width: 70px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

/* النص */
.area-card h3 {
    color: #1E293B;
    font-size: 18px;
    position: relative;
    z-index: 2;
}

/* Hover 🔥 */
.area-card:hover {
    transform: translateY(-10px);
}

.area-card:hover::before {
    opacity: 1;
}

.area-card:hover h3 {
    color: #fff;
}

.area-card:hover img {
    transform: scale(1.1);
}

/* موبايل */
@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }
}

/* ===== SERVICES INTRO 🔥🔥 ===== */

.services-intro {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    text-align: center;
    color: #fff;
}

.services-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.services-sub {
    color: #cbd5f5;
    margin-bottom: 50px;
}

/* الجريد */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* الكارت */
.service-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;

    backdrop-filter: blur(10px);
    transition: 0.4s;

    position: relative;
    overflow: hidden;
}

/* Glow effect */
.service-card::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 60%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: 0.4s;
}

/* hover */
.service-card:hover {
    transform: translateY(-12px);
}

.service-card:hover::before {
    opacity: 1;
}

/* الأيقونة */
.icon-circle {
    width: 80px;
    height: 80px;
    background: #38BDF8;
    border-radius: 50%;

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

    margin: auto;
    margin-bottom: 20px;
}

.icon-circle img {
    width: 40px;
}

/* النص */
.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    color: #cbd5f5;
    font-size: 14px;
}

/* موبايل */
@media (max-width: 768px) {
    .services-title {
        font-size: 26px;
    }
}

/* ===== GLOBAL MOBILE FIX 🔥 ===== */

.container {
    flex-wrap: wrap;
}

/* الصور */
img {
    max-width: 100%;
    height: auto;
}

/* ========================= */
/* HERO FIX */
/* ========================= */

@media (max-width: 768px) {

    .hero-intro {
        height: auto;
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }
}

/* ========================= */
/* ABOUT FIX */
/* ========================= */

@media (max-width: 768px) {

    .about-wrap {
        flex-direction: column;
        text-align: center;
    }

    .about-visual img {
        width: 220px;
    }
}

/* ========================= */
/* SERVICES FIX (أفقي 🔥) */
/* ========================= */

.services-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

.service-card {
    min-width: 85%;
    flex: 0 0 auto;
}

/* ========================= */
/* AREAS FIX 🔥 */
/* ========================= */

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.area-card {
    width: 140px;
}

/* ========================= */
/* HEADER FIX */
/* ========================= */

@media (max-width: 768px) {

    .container {
        justify-content: space-between;
    }

    .logo {
        flex: unset;
    }

    .nav {
        width: 100%;
    }
}

/* ===== FEATURES SECTION 🔥🔥 ===== */

.features-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    text-align: center;
}

.features-title {
    font-size: 34px;
    color: #1E293B;
    margin-bottom: 50px;
}

/* صف أفقي */
.features-row {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
}

/* نخفي السكرول */
.features-row::-webkit-scrollbar {
    display: none;
}

/* الكارت */
.feature-box {
    min-width: 220px;
    background: #fff;
    padding: 25px;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.4s;

    flex: 0 0 auto;
}

/* الدائرة */
.feature-circle {
    width: 70px;
    height: 70px;
    background: #38BDF8;
    border-radius: 50%;

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

    margin: auto;
    margin-bottom: 15px;
}

.feature-circle img {
    width: 35px;
}

/* النص */
.feature-box h3 {
    font-size: 18px;
    color: #1E293B;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 14px;
    color: #64748B;
}

/* hover 🔥 */
.feature-box:hover {
    transform: translateY(-10px);
}

/* موبايل */
@media (max-width: 768px) {

    .features-title {
        font-size: 26px;
    }

    .feature-box {
        min-width: 80%;
    }
}

/* ===== CATEGORY POSTS 🔥🔥 ===== */

.categories-posts {
    padding: 100px 20px;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
    color: #1E293B;
}

/* كل تصنيف */
.category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0F172A;
}

/* صف المقالات */
.posts-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.posts-row::-webkit-scrollbar {
    display: none;
}

/* الكارت */
.post-card {
    min-width: 250px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;

    flex: 0 0 auto;
}

/* الصورة */
.post-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* المحتوى */
.post-content {
    padding: 15px;
}

.post-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1E293B;
}

.post-content a {
    text-decoration: none;
    color: #38BDF8;
    font-size: 14px;
}

/* hover */
.post-card:hover {
    transform: translateY(-8px);
}

/* موبايل */
@media (max-width: 768px) {

    .section-title {
        font-size: 26px;
    }

    .post-card {
        min-width: 80%;
    }
}

/* موبايل: المقالات تحت بعض 🔥 */
@media (max-width: 768px) {

    .posts-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow-x: unset;
    }

    .post-card {
        min-width: 100%;
        width: 100%;
    }

    .post-img img {
        height: 180px;
    }

}

/* ===== POPULAR POSTS 🔥🔥 ===== */

.popular-posts {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
}

.popular-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
}

/* الجريد */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* الكارت */
.popular-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: 0.4s;

    color: #000;
}

.popular-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* الصورة */
.popular-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* المحتوى */
.popular-content {
    padding: 15px;
}

.popular-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1E293B;
}

.popular-content a {
    text-decoration: none;
    color: #38BDF8;
}

/* ========================= */
/* موبايل 🔥 */
/* ========================= */

@media (max-width: 768px) {

    .popular-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .popular-title {
        font-size: 26px;
    }

}