/* ==========================================================================
   JC Cards — Premium Homepage Card Styles
   Services, Projects, and Blog cards for the homepage
   ========================================================================== */

/* ---------- BASE CARD ---------- */
.jc-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.jc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ---------- CARD IMAGE ---------- */
.jc-card__image {
    position: relative;
    overflow: hidden;
    display: block;
}
.jc-card__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.jc-card:hover .jc-card__image img {
    transform: scale(1.08);
}
.jc-card__image--tall img {
    height: 340px;
}

/* ---------- IMAGE OVERLAY (Services) ---------- */
.jc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,124,30,0.0) 0%, rgba(245,124,30,0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.jc-card:hover .jc-card__overlay {
    opacity: 1;
}
.jc-card__view-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F57C1E;
    font-size: 20px;
    transform: scale(0.5) rotate(-45deg);
    transition: transform 0.35s ease;
}
.jc-card:hover .jc-card__view-btn {
    transform: scale(1) rotate(0deg);
}

/* ---------- PROJECT OVERLAY ---------- */
.jc-card__project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: background 0.35s ease;
}
.jc-card--project:hover .jc-card__project-overlay {
    background: linear-gradient(0deg, rgba(245,124,30,0.85) 0%, rgba(245,124,30,0.15) 70%);
}
.jc-card__project-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.jc-card__badge {
    display: inline-block;
    background: #F57C1E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.jc-card__meta {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}
.jc-card__meta .fa {
    margin-right: 5px;
    color: #F57C1E;
}

/* ---------- CARD BODY ---------- */
.jc-card__body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.jc-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}
.jc-card__title a {
    color: #222;
    text-decoration: none;
    transition: color 0.25s ease;
}
.jc-card__title a:hover {
    color: #F57C1E;
}
.jc-card__excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}
.jc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F57C1E;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.25s ease;
    margin-top: auto;
}
.jc-card__link:hover {
    gap: 14px;
    color: #e06500;
    text-decoration: none;
}
.jc-card__link .fa {
    transition: transform 0.3s ease;
}
.jc-card__link:hover .fa {
    transform: translateX(4px);
}

/* ---------- BLOG DATE BADGE ---------- */
.jc-card__date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #F57C1E;
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.1;
    min-width: 52px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.jc-card__date-day {
    font-size: 22px;
    font-weight: 800;
    display: block;
}
.jc-card__date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* ---------- BLOG AUTHOR ---------- */
.jc-card__author {
    display: inline-block;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.jc-card__author .fa {
    margin-right: 5px;
    color: #F57C1E;
}

/* ---------- SERVICE CARD ON ORANGE BG ---------- */
.bg-primary .jc-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.bg-primary .jc-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

/* ---------- RTL ADJUSTMENTS ---------- */
body.locale-ar .jc-card__link .fa {
    transform: scaleX(-1);
}
body.locale-ar .jc-card__link:hover .fa {
    transform: scaleX(-1) translateX(-4px);
}
body.locale-ar .jc-card__meta .fa {
    margin-right: 0;
    margin-left: 5px;
}
body.locale-ar .jc-card__author .fa {
    margin-right: 0;
    margin-left: 5px;
}
body.locale-ar .jc-card__date-badge {
    left: auto;
    right: 16px;
}
body.locale-ar .jc-card__view-btn .fa {
    transform: scaleX(-1);
}
body.locale-ar .jc-card:hover .jc-card__view-btn {
    transform: scale(1) rotate(0deg);
}
body.locale-ar .jc-card__body {
    text-align: right;
}
body.locale-ar .jc-card__badge {
    align-self: flex-end;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .jc-card__image img {
        height: 200px;
    }
    .jc-card__image--tall img {
        height: 260px;
    }
    .jc-card__body {
        padding: 18px 18px 20px;
    }
    .jc-card__title {
        font-size: 15px;
    }
}

/* ==========================================================================
   Why Choose Us — Background Image Section
   ========================================================================== */
.jc-why-section {
    position: relative;
    background-size: cover !important;
    min-height: 420px;
    display: flex;
    align-items: center;
}
.jc-why-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.jc-why-section__content {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 40px 36px;
}
.jc-why-section__title {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}
.jc-why-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #F57C1E;
    margin-top: 16px;
    border-radius: 2px;
}
.jc-why-section__text {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* RTL for Why Choose Us */
body.locale-ar .jc-why-section__title::after {
    margin-left: auto;
    margin-right: 0;
}
body.locale-ar .jc-why-section__content {
    text-align: right;
}

/* Responsive Why Choose Us */
@media (max-width: 991px) {
    .jc-why-section__content {
        padding: 30px 24px;
    }
    .jc-why-section__title {
        font-size: 26px;
    }
}
@media (max-width: 767px) {
    .jc-why-section {
        min-height: 300px;
    }
    .jc-why-section__content {
        padding: 24px 20px;
    }
    .jc-why-section__title {
        font-size: 22px;
    }
    .jc-why-section__text {
        font-size: 14px;
    }
}

/* ==========================================================================
   Section Heading Subtitles
   ========================================================================== */
.heading-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.heading-section-1.light .heading-subtitle {
    color: rgba(255,255,255,0.85);
}
.heading-section-1.dark .heading-subtitle {
    color: #666;
}

/* ==========================================================================
   Inverted Button — for use on colored backgrounds
   ========================================================================== */
.au-btn.au-btn-primary.au-btn--inverted {
    background: #fff !important;
    color: #f97316 !important;
    border: 2px solid #fff;
    font-weight: 700;
    padding: 12px 36px;
    font-size: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.au-btn.au-btn-primary.au-btn--inverted:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   Testimonials — Premium Section
   ========================================================================== */

/* ── Section Container ── */
.jc-testimonials {
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f7 100%);
}

/* ── Header ── */
.jc-testimonials__header {
    text-align: center;
    margin-bottom: 50px;
}
.jc-testimonials__title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.jc-testimonials__subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.3px;
}
.jc-testimonials__divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 4px;
    margin: 20px auto 0;
}

/* ── Testimonial Card ── */
.jc-testi-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.jc-testi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
[dir="rtl"] .jc-testi-card::before {
    transform-origin: right;
}
.jc-testi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.15);
}
.jc-testi-card:hover::before {
    transform: scaleX(1);
}

/* ── Quote Icon ── */
.jc-testi-card__quote-icon {
    color: rgba(249,115,22,0.12);
    margin-bottom: 16px;
    line-height: 1;
}
.jc-testi-card__quote-icon svg {
    width: 44px;
    height: 44px;
}

/* ── Quote Text ── */
.jc-testi-card__text {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    font-style: italic;
    flex: 1;
    margin-bottom: 24px;
    position: relative;
}

/* ── Card Footer (avatar + info) ── */
.jc-testi-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

/* ── Avatar ── */
.jc-testi-card__avatar {
    flex-shrink: 0;
}
.jc-testi-card__avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(249,115,22,0.2),
                0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}
.jc-testi-card:hover .jc-testi-card__avatar img {
    box-shadow: 0 0 0 3px rgba(249,115,22,0.35),
                0 6px 16px rgba(0,0,0,0.1);
}

/* ── Client Info ── */
.jc-testi-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    line-height: 1.3;
}
.jc-testi-card__role {
    font-size: 13px;
    color: #f97316;
    font-weight: 600;
    line-height: 1.3;
}

/* ── RTL ── */
[dir="rtl"] .jc-testi-card__footer {
    flex-direction: row-reverse;
    text-align: right;
}
[dir="rtl"] .jc-testi-card__quote-icon {
    text-align: right;
}
[dir="rtl"] .jc-testi-card__text {
    text-align: right;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .jc-testimonials__title {
        font-size: 26px;
    }
}
@media (max-width: 767px) {
    .jc-testimonials {
        padding-top: 50px;
        padding-bottom: 30px;
    }
    .jc-testimonials__header {
        margin-bottom: 30px;
    }
    .jc-testimonials__title {
        font-size: 22px;
    }
    .jc-testi-card {
        padding: 28px 22px 24px;
    }
    .jc-testi-card__text {
        font-size: 14px;
    }
}

/* ==========================================================================
   Core Capabilities — Premium Feature Cards
   ========================================================================== */

/* ── Section ── */
.jc-capabilities {
    background: #fff;
}

/* ── Header ── */
.jc-capabilities__header {
    text-align: center;
    margin-bottom: 50px;
}
.jc-capabilities__title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.jc-capabilities__subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.3px;
}
.jc-capabilities__divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 4px;
    margin: 20px auto 0;
}

/* ── Feature Card ── */
.jc-cap-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 24px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Animated Top Bar ── */
.jc-cap-card__top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
[dir="rtl"] .jc-cap-card__top-bar {
    transform-origin: right;
}

/* ── Hover ── */
.jc-cap-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.15);
}
.jc-cap-card:hover .jc-cap-card__top-bar {
    transform: scaleX(1);
}

/* ── Icon Circle ── */
.jc-cap-card__icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5ed 0%, #ffedd5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.4s ease;
    position: relative;
}
.jc-cap-card__icon-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(249,115,22,0.15);
    transition: all 0.4s ease;
}
.jc-cap-card__icon-wrap i {
    font-size: 30px;
    color: #f97316;
    transition: transform 0.3s ease;
}
.jc-cap-card:hover .jc-cap-card__icon-wrap {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}
.jc-cap-card:hover .jc-cap-card__icon-wrap::after {
    border-color: transparent;
    inset: 0;
}
.jc-cap-card:hover .jc-cap-card__icon-wrap i {
    color: #fff;
    transform: scale(1.15);
}

/* ── Title ── */
.jc-cap-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.35;
    transition: color 0.3s;
}
.jc-cap-card:hover .jc-cap-card__title {
    color: #f97316;
}

/* ── Description ── */
.jc-cap-card__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 0;
    flex: 1;
}

/* ── RTL ── */
[dir="rtl"] .jc-cap-card {
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .jc-capabilities__title {
        font-size: 26px;
    }
    .jc-cap-card__icon-wrap {
        width: 70px;
        height: 70px;
    }
    .jc-cap-card__icon-wrap i {
        font-size: 26px;
    }
}
@media (max-width: 767px) {
    .jc-capabilities {
        padding-top: 50px;
        padding-bottom: 30px;
    }
    .jc-capabilities__header {
        margin-bottom: 30px;
    }
    .jc-capabilities__title {
        font-size: 22px;
    }
    .jc-cap-card {
        padding: 30px 20px 24px;
    }
    .jc-cap-card__title {
        font-size: 16px;
    }
}

/* ==========================================================================
   Stats / Counters — Premium Dark Section
   ========================================================================== */

/* ── Section ── */
.jc-stats {
    position: relative;
    padding: 90px 0 60px;
    overflow: hidden;
}

/* ── Background with gradient + pattern ── */
.jc-stats__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
    z-index: 0;
}
.jc-stats__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(249,115,22,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}
.jc-stats__bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
}

/* ── Header ── */
.jc-stats__header {
    text-align: center;
    margin-bottom: 50px;
}
.jc-stats__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}
.jc-stats__divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 4px;
    margin: 20px auto 0;
}

/* ── Stat Card (frosted glass) ── */
.jc-stat-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 36px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Top Accent ── */
.jc-stat-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

/* ── Hover ── */
.jc-stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(249,115,22,0.2);
    box-shadow: 0 16px 40px rgba(249,115,22,0.1);
}
.jc-stat-card:hover .jc-stat-card__accent {
    transform: scaleX(1);
}

/* ── Number ── */
.jc-stat-card__number {
    display: block;
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -1px;
}
.jc-stat-card__suffix {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: -4px;
}

/* ── Label ── */
.jc-stat-card__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── RTL ── */
[dir="rtl"] .jc-stat-card__suffix {
    margin-left: 0;
    margin-right: -4px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .jc-stats {
        padding: 70px 0 40px;
    }
    .jc-stats__title {
        font-size: 26px;
    }
    .jc-stat-card__number {
        font-size: 44px;
    }
    .jc-stat-card__suffix {
        font-size: 28px;
    }
}
@media (max-width: 767px) {
    .jc-stats {
        padding: 50px 0 20px;
    }
    .jc-stats__header {
        margin-bottom: 30px;
    }
    .jc-stats__title {
        font-size: 22px;
    }
    .jc-stat-card {
        padding: 28px 16px 22px;
    }
    .jc-stat-card__number {
        font-size: 38px;
    }
    .jc-stat-card__suffix {
        font-size: 24px;
    }
    .jc-stat-card__label {
        font-size: 12px;
        letter-spacing: 1px;
    }
}
