/*
Theme Name: شركة الخبراء كلين
Theme URI: https://qotb.agency/
Author: وكالة قطب
Author URI: https://qotb.agency/
Description: قالب احترافي لشركة الخبراء كلين - خدمات تنظيف المكيفات والكنب ومكافحة الحشرات
Version: 1.0.0
License: GPL v2
Text Domain: khibra-clean
*/

/* ==================== BASE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --khibra-primary: #0B4F6C;
    --khibra-secondary: #20B2AA;
    --khibra-accent: #D4AF37;
    --khibra-light: #F0F8FF;
    --khibra-white: #ffffff;
    --khibra-dark: #1a1a2e;
    --khibra-text: #333344;
    --khibra-gradient: linear-gradient(135deg, #0B4F6C 0%, #20B2AA 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background: var(--khibra-light);
    color: var(--khibra-text);
    overflow-x: hidden;
    line-height: 1.7;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ==================== FLOATING BUTTONS ==================== */
.kc-float-btns {
    position: fixed;
    left: 15px;
    bottom: 80px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kc-float-btn {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: kc-pulse 2s infinite;
}
.kc-float-btn:hover { transform: scale(1.1); }
.kc-float-btn.call { background: var(--khibra-primary); }
.kc-float-btn.whatsapp { background: #25D366; }

@keyframes kc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(32,178,170,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(32,178,170,0); }
    100% { box-shadow: 0 0 0 0 rgba(32,178,170,0); }
}

/* ==================== HERO ==================== */
.kc-hero {
    min-height: 100vh;
    background: var(--khibra-gradient);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    overflow: hidden;
}
.kc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1.5" fill="rgba(255,255,255,0.12)"/></svg>');
    animation: kc-float 20s linear infinite;
}
@keyframes kc-float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}
.kc-hero-content { position: relative; z-index: 2; max-width: 700px; }
.kc-hero-icon { font-size: 60px; margin-bottom: 15px; display: block; animation: kc-bounce 2s infinite; }
@keyframes kc-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.kc-hero h1 {
    font-size: 2.8rem; font-weight: 900;
    color: var(--khibra-white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.kc-hero-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.95); margin-bottom: 8px; font-weight: 700; }
.kc-hero-desc { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.kc-locations { display: flex; gap: 20px; justify-content: center; margin-bottom: 25px; flex-wrap: wrap; }
.kc-loc {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px; border-radius: 30px;
    color: white; font-weight: 600;
    backdrop-filter: blur(5px);
}
.kc-hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ==================== BUTTONS ==================== */
.kc-btn {
    padding: 14px 35px; border-radius: 50px;
    font-weight: 700; font-size: 1.1rem;
    text-decoration: none; transition: all 0.3s ease;
    border: none; cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    display: inline-flex; align-items: center; gap: 8px;
}
.kc-btn-primary {
    background: var(--khibra-accent);
    color: var(--khibra-dark);
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}
.kc-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(212,175,55,0.6); }
.kc-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}
.kc-btn-secondary:hover { background: rgba(255,255,255,0.3); }

/* ==================== SECTIONS ==================== */
.kc-section { padding: 80px 20px; text-align: center; }
.kc-section-title {
    font-size: 2.2rem; font-weight: 900;
    color: var(--khibra-primary);
    margin-bottom: 40px;
    position: relative; display: inline-block;
}
.kc-section-title::after {
    content: ''; position: absolute;
    bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--khibra-accent);
    border-radius: 2px;
}
.kc-bg-white { background: var(--khibra-white); }
.kc-bg-light { background: var(--khibra-light); }

/* ==================== PRICE CARDS ==================== */
.kc-price-cards {
    display: flex; gap: 30px;
    justify-content: center; flex-wrap: wrap;
    max-width: 900px; margin: 0 auto;
}
.kc-price-card {
    background: var(--khibra-white);
    border-radius: 20px; padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(11,79,108,0.1);
    width: 280px; border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.kc-price-card:hover {
    transform: translateY(-10px);
    border-color: var(--khibra-secondary);
    box-shadow: 0 15px 50px rgba(11,79,108,0.15);
}
.kc-price-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: var(--khibra-gradient);
}
.kc-price-card .kc-icon { font-size: 45px; margin-bottom: 15px; }
.kc-price-card h3 { font-size: 1.2rem; color: var(--khibra-text); margin-bottom: 10px; }
.kc-price { font-size: 3rem; font-weight: 900; color: var(--khibra-primary); }
.kc-price span { font-size: 1rem; color: var(--khibra-text); font-weight: 400; display: block; margin-top: 5px; }

/* ==================== SERVICES GRID ==================== */
.kc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; max-width: 1000px; margin: 0 auto;
}
.kc-service-card {
    background: var(--khibra-white);
    border-radius: 16px; padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 4px solid var(--khibra-secondary);
}
.kc-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(11,79,108,0.1);
}
.kc-service-card .kc-s-icon { font-size: 40px; margin-bottom: 12px; color: var(--khibra-primary); }
.kc-service-card h4 { font-size: 1.1rem; color: var(--khibra-dark); font-weight: 700; }

/* ==================== WHY US ==================== */
.kc-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; max-width: 900px; margin: 0 auto;
}
.kc-why-item { padding: 20px; }
.kc-why-item .kc-w-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.kc-why-item h4 { color: var(--khibra-primary); font-size: 1.1rem; margin-bottom: 8px; }
.kc-why-item p { color: #666; font-size: 0.95rem; }

/* ==================== GUARANTEE ==================== */
.kc-guarantee {
    background: var(--khibra-gradient);
    padding: 60px 20px; text-align: center;
    color: white; position: relative; overflow: hidden;
}
.kc-guarantee::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.kc-guarantee h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.kc-guarantee p { font-size: 1.1rem; opacity: 0.9; position: relative; }

/* ==================== BLOG ==================== */
.kc-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1100px; margin: 0 auto;
}
.kc-blog-card {
    background: var(--khibra-white);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: right;
}
.kc-blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.kc-blog-card img { width: 100%; height: 200px; object-fit: cover; }
.kc-blog-card .kc-blog-content { padding: 25px; }
.kc-blog-card h3 { font-size: 1.2rem; color: var(--khibra-primary); margin-bottom: 10px; }
.kc-blog-card p { color: #666; font-size: 0.95rem; margin-bottom: 15px; }
.kc-blog-card .kc-read-more {
    color: var(--khibra-secondary);
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px;
}
.kc-blog-card .kc-read-more:hover { color: var(--khibra-primary); }

/* ==================== SINGLE / PAGE HEADER ==================== */
.kc-page-header {
    background: var(--khibra-gradient);
    padding: 120px 20px 60px;
    text-align: center;
    color: white;
    position: relative;
}
.kc-page-header h1 {
    font-size: 2.2rem; font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.kc-page-header .kc-breadcrumb {
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* ==================== CONTENT AREA ==================== */
.kc-content {
    max-width: 800px; margin: 0 auto;
    padding: 60px 20px;
    background: var(--khibra-white);
    min-height: 400px;
}
.kc-content h1, .kc-content h2, .kc-content h3 {
    color: var(--khibra-primary);
    margin: 30px 0 15px;
}
.kc-content p { margin-bottom: 15px; color: var(--khibra-text); line-height: 1.8; }
.kc-content img { border-radius: 12px; margin: 20px 0; }
.kc-content a { color: var(--khibra-secondary); font-weight: 600; }
.kc-content a:hover { color: var(--khibra-primary); }

/* ==================== FOOTER ==================== */
.kc-footer {
    background: var(--khibra-dark);
    color: white; padding: 40px 20px 20px;
    text-align: center;
}
.kc-footer-brand {
    font-size: 1.5rem; font-weight: 900;
    color: var(--khibra-secondary); margin-bottom: 10px;
}
.kc-footer-links {
    display: flex; gap: 20px;
    justify-content: center; margin-bottom: 20px;
    flex-wrap: wrap;
}
.kc-footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none; transition: color 0.3s;
}
.kc-footer-links a:hover { color: var(--khibra-accent); }
.kc-footer-designer {
    margin-bottom: 10px;
    font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.kc-footer-designer a {
    color: var(--khibra-accent);
    text-decoration: none; font-weight: 700;
}
.kc-footer-copy {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ==================== NAVIGATION ==================== */
.kc-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(11, 79, 108, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.kc-nav-brand {
    font-size: 1.3rem; font-weight: 900;
    color: white;
}
.kc-nav-menu { display: flex; gap: 25px; list-style: none; }
.kc-nav-menu a {
    color: rgba(255,255,255,0.9);
    font-weight: 600; font-size: 0.95rem;
}
.kc-nav-menu a:hover { color: var(--khibra-accent); }
.kc-nav-toggle {
    display: none;
    background: none; border: none;
    color: white; font-size: 24px; cursor: pointer;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .kc-hero h1 { font-size: 2rem; }
    .kc-hero-subtitle { font-size: 1.1rem; }
    .kc-section-title { font-size: 1.7rem; }
    .kc-price-card { width: 100%; max-width: 320px; }
    .kc-float-btn { width: 50px; height: 50px; font-size: 20px; }

    .kc-nav-menu {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--khibra-primary);
        flex-direction: column; padding: 20px;
        gap: 15px;
    }
    .kc-nav-menu.active { display: flex; }
    .kc-nav-toggle { display: block; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}
