/**
 * SEO Enhancement Styles
 * تحسينات SEO للصفحة الرئيسية
 * شركة رزام للمحاماة والاستشارات القانونية
 */

/* ===== Top Banner - الرد خلال 30 دقيقة ===== */
/* ===== Top Banner Badges Enhancement (WhatsApp + Call) ===== */
.top-banner-badge {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    user-select: none;
}

.top-banner-badge:hover {
    transform: translateY(-1px) scale(1.03);
    background: rgba(255, 215, 0, 0.28);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.top-banner-badge:active {
    transform: translateY(0) scale(0.99);
}

.top-banner-badge .badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.22);
    border: 1px solid rgba(255, 215, 0, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.top-banner-badge .badge-icon i {
    font-size: 1rem;
}

/* WhatsApp Badge - أخضر لطيف بدون كسر الهوية */
.top-banner-badge--wa {
    border-color: rgba(255, 215, 0, 0.75);
}

.top-banner-badge--wa .badge-icon {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.45);
}

.top-banner-badge--wa .badge-icon i {
    animation: wa-wiggle 1.6s ease-in-out infinite;
}

/* Call Badge */
.top-banner-badge--call .badge-icon {
    background: rgba(0, 180, 255, 0.12);
    border-color: rgba(0, 180, 255, 0.35);
}

@keyframes wa-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.1); }
    75% { transform: rotate(8deg) scale(1.05); }
}

.top-banner {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.top-banner-icon {
    font-size: 1.5rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

.top-banner-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top-banner-text span {
    color: #ffd700;
    font-weight: 800;
}

.top-banner-badge {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: glow 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

/* ===== Services Section CTA ===== */
.services-cta-banner {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 50%, #c9a227 100%);
    color: #1a1a2e;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.3);
    position: relative;
    overflow: hidden;
}

.services-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.services-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.services-cta-icon {
    font-size: 2.5rem;
    animation: bounce-phone 1s ease-in-out infinite;
}

@keyframes bounce-phone {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.services-cta-text {
    font-size: 1.4rem;
    font-weight: 800;
}

.services-cta-text .highlight {
    color: #1a5f2a;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 8px;
}

.services-cta-btn {
    background: #1a1a2e;
    color: #ffd700;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.services-cta-btn:hover {
    background: transparent;
    color: #1a1a2e;
    border-color: #1a1a2e;
    transform: scale(1.05);
}

.services-cta-btn i {
    transition: transform 0.3s ease;
}

.services-cta-btn:hover i {
    transform: translateX(-5px);
}

/* ===== Popular Badge - الأكثر طلبًا ===== */
.service-card {
    position: relative;
}

.service-card.popular {
    border: 3px solid #c9a227;
    transform: scale(1.02);
}

.service-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    z-index: 10;
    animation: badge-pulse 2s ease-in-out infinite;
}

.popular-badge i {
    font-size: 1rem;
    animation: fire-flicker 0.5s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes fire-flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.popular-location {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ===== Service Card CTA Enhancement ===== */
.service-card-cta {
    background: linear-gradient(135deg, rgba(26, 95, 42, 0.1) 0%, rgba(201, 162, 39, 0.1) 100%);
    border: 1px dashed #c9a227;
    border-radius: 10px;
    padding: 12px 15px;
    margin-top: 15px;
    text-align: center;
}

.service-card-cta-text {
    font-size: 0.9rem;
    color: #1a5f2a;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-card-cta-text i {
    color: #c9a227;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .services-cta-banner {
        padding: 15px 20px;
    }
    
    .services-cta-text {
        font-size: 1.2rem;
    }
    
    .services-cta-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .top-banner {
        padding: 10px 15px;
    }
    
    .top-banner-content {
        gap: 10px;
    }
    
    .top-banner-text {
        font-size: 0.95rem;
    }
    
    .top-banner-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .services-cta-banner {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .services-cta-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .services-cta-text {
        font-size: 1.1rem;
    }
    
    .services-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .popular-badge {
        top: -10px;
        right: 15px;
        padding: 6px 15px;
        font-size: 0.75rem;
    }
    
    .service-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .top-banner-icon {
        font-size: 1.2rem;
    }
    
    .top-banner-text {
        font-size: 0.85rem;
    }
    
    .services-cta-text {
        font-size: 1rem;
    }
    
    .services-cta-text .highlight {
        display: block;
        margin: 5px auto;
    }
    
    .popular-badge {
        flex-direction: column;
        gap: 3px;
        padding: 8px 12px;
    }
    
    .popular-location {
        font-size: 0.7rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .top-banner,
    .services-cta-banner,
    .popular-badge {
        display: none;
    }
}
