/*
Theme Name: SmartCloud – Ativo
Theme URI: https://ativo.tech
Author: Smart Cloud / Ativo Tech
Description: قالب ووردبريس بسيط لشركة Ativo Tech مع صفحة رئيسية وصفحات عامة، مع تنسيق احترافي لقسم التواصل والأزرار.
Version: 1.2
Text Domain: smartcloud-ativo
*/

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f3f4f6;
    color: #111827;
    font-family: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

header.site-header {
    background: #ffffff;
    color: #000;
    padding: 28px 20px 22px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.site-header .logo {
    width: 180px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    margin-bottom: 10px;
    background: transparent;
}

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.site-description {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.85;
}

/* ===== NAVBAR ===== */

.main-nav {
    background: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: inline-block;
    margin: 0 10px;
}

.main-nav a {
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
}

.main-nav a:hover {
    color: #2563eb;
}

/* ===== GENERAL CONTAINER / CARDS ===== */

.container {
    max-width: 900px;
    margin: 25px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2ff;
    animation: fadeUp 0.7s ease-out;
    animation-fill-mode: both;
}

h1.entry-title,
h2.section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

/* حركة لطيفة لظهور جميع الصناديق */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES LIST ===== */

.services ul {
    padding: 0;
    list-style: none !important;
    margin: 0;
}

.services li {
    background: #eef0f4;
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.services li:hover {
    transform: translateY(-1px);
    background: #e5f0ff;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}

/* لو القالب الأصلي يضيف نقاط قبل العناصر، نحافظ فقط على الأيقونات الزرقاء */
.container ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* ===== BUTTONS (WHATSAPP & MESSENGER) ===== */

.whatsapp-btn,
.messenger-btn {
    display: block;
    width: 220px;
    margin: 12px auto;
    padding: 12px;
    text-align: center;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s ease;
}

.whatsapp-btn {
    background: #25d366;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.messenger-btn {
    background: #0084ff;
    box-shadow: 0 6px 16px rgba(0, 132, 255, 0.35);
}

.whatsapp-btn:hover,
.messenger-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    opacity: 0.95;
}

/* ===== CONTACT SECTION ===== */

/* تخطيط القسم */
#contact.container {
    display: block !important;
    padding: 30px;
}

/* عنوان تواصل معنا */
#contact.container h2 {
    text-align: right;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

/* خط صغير تحت العنوان */
#contact.container h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 70px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #22c55e);
}

/* محتوى التواصل */
#contact.container .contact {
    text-align: left;
    padding-left: 10px;
    border-left: 3px solid #e5e7eb;
}

/* سطور المعلومات */
#contact.container .contact p {
    margin: 14px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #1a1a1a;
}

/* الأيقونات */
.contact-icon {
    order: 2; /* الأيقونة بعد النص */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s ease;
}

/* ألوان موحدة للأيقونات */
.contact-icon.phone {
    background: #e7f3ff;
    color: #0077cc;
}

.contact-icon.globe {
    background: #e6f8f1;
    color: #0fa958;
}

.contact-icon.mail {
    background: #fcecff;
    color: #b400b8;
}

.contact-icon.fb {
    background: #e7f0ff;
    color: #0866ff;
}

/* تأثير الهوفر على الأيقونات */
.contact-icon:hover {
    transform: scale(1.2);
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
}

/* الروابط داخل قسم التواصل */
#contact.container .contact a {
    color: #005ecb;
    font-weight: 500;
}

#contact.container .contact a:hover {
    text-decoration: underline;
}

/* ===== BLOG LIST ===== */

.blog-list .post {
    margin-bottom: 20px;
}

.blog-list .post-title {
    font-size: 20px;
    margin-bottom: 5px;
}

.blog-list .post-meta {
    font-size: 12px;
    color: #777;
}

/* ===== FOOTER ===== */

.site-footer {
    text-align: center;
    margin: 30px 0 10px;
    color: #666;
    font-size: 14px;
}

.footer-parent {
    text-align: center;
    margin-top: 30px;
}

.footer-parent-logo {
    width: 120px;
    opacity: 0.95;
    max-width: 60%;
}

.footer-parent-text {
    color: #555;
    margin-top: 10px;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
    .container {
        margin: 15px;
        padding: 18px;
    }
    .site-title {
        font-size: 22px;
    }
    .main-nav li {
        margin: 0 6px;
    }
    .main-nav a {
        font-size: 14px;
    }
    #contact.container {
        padding: 20px;
    }
    #contact.container .contact {
        border-left-width: 2px;
    }
}


/* تنسيق الأزرار بشكل أفقي */
.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* المسافة بين الأزرار */
    margin: 20px 0;
}

.contact-buttons a {
    width: 200px; /* تحديد عرض موحّد */
    margin: 0 !important;
}