/*
Theme Name: SmartFix Pro - Screen Repair Alexandria
Theme URI: https://center.smart-fix-eg.com/
Author: Smart Fix Center (محمد عبدالستار علواني)
Author URI: https://center.smart-fix-eg.com/
Description: قالب ووردبريس احترافي متكامل مخصص لمراكز صيانة الشاشات والتلفزيونات في الإسكندرية. متوافق 100% مع معايير السيو (SEO)، وسرعة التصفح، وسياسات إعلانات جوجل الصارمة لخدمات الصيانة غير المعتمدة والورش المستقلة. يدعم خط كايرو، وتصميم عصري بمنحنيات أنيقة وتأثيرات بصرية جذابة.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartfix-pro
Domain Path: /languages/
Tags: responsive-layout, custom-colors, custom-menu, featured-images, theme-options, translation-ready, rtl-language-support
*/

:root {
    --primary-color: #0b2545;
    --primary-light: #134074;
    --accent-color: #00b4d8;
    --accent-hover: #0077b6;
    --secondary-color: #f77f00;
    --gold-color: #fcbf49;
    --dark-bg: #03045e;
    --light-bg: #f8fafc;
    --surface-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --font-cairo: 'Cairo', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 16px 36px rgba(11, 37, 69, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cairo);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Compliance Banner */
.google-ads-notice-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-bottom: 2px solid var(--secondary-color);
}
.google-ads-notice-bar a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Header & Navbar */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-logo img {
    height: 48px;
    width: auto;
}
.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
}
.brand-subtitle {
    font-size: 0.8rem;
    color: var(--accent-hover);
    display: block;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav .current-menu-item a {
    color: var(--accent-hover);
    background: rgba(0, 180, 216, 0.08);
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-phone {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.btn-phone:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-whatsapp-header {
    background: #25d366;
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.btn-whatsapp-header:hover {
    background: #1ebc59;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    color: #fff;
    padding: 80px 24px 100px;
    overflow: hidden;
}
.hero-curved-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.hero-curved-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.hero-curved-bottom path {
    fill: var(--light-bg);
}
.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero-badge {
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid var(--accent-color);
    color: #e0f2fe;
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--gold-color);
}
.hero-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.8;
}
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}
.hero-feature-item .icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(247, 127, 0, 0.4);
}
.btn-primary:hover {
    background: #e07000;
    transform: translateY(-3px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.15);
}
.hero-slider-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

/* Section Common */
.section-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle {
    color: var(--accent-hover);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.section-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}
.service-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
    transform: scale(1.06);
}
.service-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}
.service-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.service-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.65;
    flex-grow: 1;
}
.service-meta-list {
    list-style: none;
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.service-meta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--text-main);
}
.service-meta-list li .check {
    color: var(--success-color);
    font-weight: bold;
}
.service-action-btn {
    background: rgba(0, 180, 216, 0.08);
    color: var(--accent-hover);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    display: block;
    transition: var(--transition);
}
.service-action-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Trust & Credentials Banner (Google Ads Safe) */
.compliance-credentials-card {
    background: linear-gradient(135deg, #0b2545 0%, #1e3a5f 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
}
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}
.cred-badge-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--gold-color);
}
.cred-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 4px;
}
.cred-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

/* Diagnostic Quick Tool */
.diagnostic-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--accent-color);
    margin: 50px 0;
}
.diagnostic-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-cairo);
    font-size: 0.95rem;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

/* Blog & SEO Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.article-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.article-thumb {
    height: 200px;
    overflow: hidden;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body {
    padding: 24px;
}
.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
}
.article-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}
.article-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.read-more-link {
    font-weight: 700;
    color: var(--accent-hover);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Legal & Compliance Footer */
.site-footer {
    background: #0b1a2d;
    color: #cbd5e1;
    padding-top: 70px;
    border-top: 4px solid var(--secondary-color);
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}
.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
}
.footer-links a:hover {
    color: #fff;
    padding-right: 6px;
}
.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-top: 20px;
}
.footer-bottom {
    background: #060e19;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-features {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    .main-nav {
        display: none;
    }
    .hero-title {
        font-size: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}
