/*
 * JaduGo v1.0.0 (Page Speed topic) — contact-page.css
 * Moved out of the page template's inline <style> block
 * so browsers cache it across visits (was re-downloaded in every page HTML).
 * Enqueued from jadugo_enqueue_assets() in functions.php, only on this page.
 */
.jadugo-contact-page { max-width: 1100px; margin: 0 auto; padding: 0 0 60px; font-family: 'Inter', sans-serif; }

/* Slider (v3.8.0: uses universal Smart Slider) */
.mc-slider-section {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0a0a;
    margin: 24px 0 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.mc-slider-section .mss { position:absolute; inset:0; height:100%; border-radius:0; }
.mc-slide-gradient {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #3742fa 0%, #8B5CF6 50%, #2563EB 100%);
    position: relative;
    overflow: hidden;
}
.mc-slide-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.18) 0%, transparent 60%);
    animation: mc-shimmer 4s ease-in-out infinite;
}
@keyframes mc-shimmer {
    0%, 100% { transform: translateX(-20%) scale(1); opacity: 0.6; }
    50% { transform: translateX(20%) scale(1.1); opacity: 1; }
}

/* Page Header */
.mc-page-header { text-align: center; margin-bottom: 32px; padding: 0 20px; }
.mc-page-icon {
    width: 72px; height: 72px; margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3742fa, #8B5CF6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 30px;
    box-shadow: 0 10px 28px rgba(55,66,250,0.4);
    animation: mc-icon-float 3s ease-in-out infinite;
}
@keyframes mc-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.mc-page-title {
    font-size: 34px; font-weight: 800; margin: 0 0 8px;
    background: linear-gradient(135deg, #3742fa, #2563EB);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.mc-page-subtitle { font-size: 15px; color: #6b7280; margin: 0; }

/* Cards Grid — 2x2 on desktop, 1 col on mobile */
.mc-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 16px;
}

/* Card */
.mc-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f3f4f6;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: mc-card-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mc-card:nth-child(1) { animation-delay: 0.1s; }
.mc-card:nth-child(2) { animation-delay: 0.2s; }
.mc-card:nth-child(3) { animation-delay: 0.3s; }
.mc-card:nth-child(4) { animation-delay: 0.4s; }
@keyframes mc-card-reveal {
    to { opacity: 1; transform: translateY(0); }
}
.mc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: #3742fa;
}
.mc-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.mc-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.mc-card:hover .mc-card-media img { transform: scale(1.08); }
.mc-card-media-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 56px;
    animation: mc-icon-float 3s ease-in-out infinite;
}
/* Floating icon badge (overlays top-right of media) */
.mc-card-icon-badge {
    position: absolute;
    top: 14px; right: 14px;
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff !important; font-size: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 2;
}
.mc-card:hover .mc-card-icon-badge {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.mc-card-body { padding: 22px; position: relative; }
.mc-card-title {
    font-size: 19px; font-weight: 700; color: #111827; margin: 0 0 8px;
    transition: color 0.25s;
}
.mc-card:hover .mc-card-title { color: #3742fa; }
.mc-card-desc {
    font-size: 13px; color: #6b7280; line-height: 1.55; margin: 0 0 18px;
    min-height: 60px;
}

.mc-card-open-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #3742fa, #8B5CF6);
    color: #fff !important;
    font-size: 13px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 14px rgba(55,66,250,0.4);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
}
.mc-card-open-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.mc-card-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(55,66,250,0.6);
    color: #fff !important;
    background: linear-gradient(135deg, #4c5bff, #4780ed);
}
.mc-card-open-btn:hover::before { width: 200%; height: 200%; }
.mc-card-open-btn i {
    position: relative; z-index: 1;
    transition: transform 0.25s;
}
.mc-card-open-btn:hover i { transform: translateX(3px); }

/* Service badge (for the 24/7 card with no Open button) */
.mc-card-service-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46; font-size: 12px; font-weight: 700;
    border: 1px solid #6ee7b7;
}
.mc-card-service-badge i { color: #10b981; animation: mc-clock-tick 1.5s ease-in-out infinite; }
@keyframes mc-clock-tick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Per-card accent borders (colorful) */
.mc-card-youtube { border-top: 4px solid #ff0000; }
.mc-card-facebook { border-top: 4px solid #1877f2; }
.mc-card-email { border-top: 4px solid #ea4335; }
.mc-card-service { border-top: 4px solid #10b981; }

/* Responsive */
@media (max-width: 768px) {
    .mc-cards-grid { grid-template-columns: 1fr; }
    .mc-slider-section { height: 240px; }
    .mc-page-title { font-size: 26px; }
    .mc-page-icon { width: 60px; height: 60px; font-size: 26px; }
    .mc-card-media { height: 160px; }
}
@media (max-width: 480px) {
    .mc-cards-grid { gap: 16px; padding: 0 12px; }
    .mc-card-media-fallback { font-size: 44px; }
    .mc-card-icon-badge { width: 42px; height: 42px; font-size: 18px; top: 10px; right: 10px; }
    .mc-card-body { padding: 18px; }
    .mc-card-title { font-size: 17px; }
    .mc-card-desc { font-size: 12px; min-height: 50px; }
}
