/**
 * Homepage Styles
 * Extracted from index.php inline <style> block.
 * Enqueued only on the front page via functions.php conditional.
 *
 * @package KwadTech
 */

/* ============================================================
   Service Card Item (Four Pillars section)
   ============================================================ */
.service-card-item {
    position: relative !important;
    overflow: hidden !important;
    min-height: 420px !important;
}

.service-card-item .content {
    position: relative !important;
    margin-top: auto !important;
    transform: translateY(130px) !important;
    transition: transform 0.45s ease !important;
    z-index: 2 !important;
}

.service-card-item:hover .content {
    transform: translateY(0) !important;
}

/* ============================================================
   Challenge Section — Graph Icon
   ============================================================ */
.graph-icon {
    font-size: 18px;
    font-weight: 700;
    color: #0b3b8f;
    transition: all 0.3s ease;
    text-shadow: 0.5px 0 currentColor, -0.5px 0 currentColor;
}

.challenge-card:hover .graph-icon {
    color: #ffffff;
}

/* ============================================================
   Industries Section
   ============================================================ */
.industry-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid #e6edf5;
    transition: all 0.4s ease;
    height: 100%;
}

.industry-card:hover {
    background: #0b3b8f;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 15px;
}

.icon-circle.blue   { background: #eaf1ff; }
.icon-circle.green  { background: #e6f7f5; }
.icon-circle.purple { background: #f1ebff; }

.blue-text   { color: #2f6df6; }
.green-text  { color: #1ca7a6; }
.purple-text { color: #6f42c1; }

.industry-card .title {
    font-weight: 700;
    font-size: 18px;
    color: #0a2540;
}

.industry-card .desc {
    color: #6c7a89;
    font-size: 14px;
}

.underline {
    width: 40px;
    height: 3px;
    margin: 10px 0 15px;
}

.underline.blue   { background: #2f6df6; }
.underline.green  { background: #1ca7a6; }
.underline.purple { background: #6f42c1; }

.service-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5ff;
    color: #0b3b8f;
    font-size: 18px;
    margin-right: 8px;
    transition: 0.3s ease;
}

.badge-custom:hover {
    background-color: #0b3b8f;
    color: #fff;
}

/* Hover: all text white */
.industry-card:hover * {
    color: #ffffff !important;
}

.industry-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.15);
}

.industry-card:hover .badge-custom {
    background: rgba(255, 255, 255, 0.2);
}

.industry-card:hover .arrow {
    border-color: #ffffff;
}

/* ============================================================
   Challenges Section
   ============================================================ */
.main-title {
    font-size: 42px;
    font-weight: 800;
    color: #0a2540;
}

.sub-text {
    color: #6c7a89;
    max-width: 650px;
    margin-top: 10px;
}

.challenge-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e6edf5;
    transition: all 0.35s ease;
    height: 100%;
}

.challenge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.challenge-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #0a2540;
}

.challenge-card p {
    color: #6c7a89;
    font-size: 14px;
}

.image-wrapper img {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

/* ============================================================
   How We Help Section — Service Cards
   ============================================================ */
.card-custom {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #e6edf5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0b3b8f;
    margin-bottom: 15px;
}

/* Challenges section icon-box override */
.challenge-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0b3b8f;
    margin-bottom: 10px;
}

.card-custom h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card-custom p {
    font-size: 14px;
    color: #6c7a89;
}

/* ============================================================
   Case / Outcomes Section
   ============================================================ */
.case-study-section {
    background: #f7f9fc;
}

.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e6edf5;
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card,
.case-card * {
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    background-color: #0b3b8f;
}

.case-card:hover h5,
.case-card:hover p,
.case-card:hover strong,
.case-card:hover .link,
.case-card:hover .tag,
.case-card:hover i,
.case-card:hover a {
    color: #ffffff !important;
}

.case-card:hover .info-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.case-card:hover .floating-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.case-card:hover .tag {
    background: rgba(255, 255, 255, 0.15);
}

.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-icon {
    position: absolute;
    bottom: 15px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.floating-icon.blue   { color: #2f6df6; }
.floating-icon.green  { color: #1ca7a6; }
.floating-icon.purple { color: #6f42c1; }

.case-card .card-body {
    padding: 30px;
}

.case-card .card-body h5 {
    font-weight: 700;
    margin: 15px 0;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef3ff;
    font-size: 13px;
    font-weight: 600;
}

.tag.blue   { color: #2f6df6; }
.tag.green  { color: #1ca7a6; }
.tag.purple { color: #6f42c1; }

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    transition: all 0.3s ease;
}

.info-icon {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #2f6df6;
}

.info-icon.success {
    background: #e6f7f5;
    color: #1ca7a6;
}

.info-block p {
    margin: 0;
    font-size: 14px;
    color: #6c7a89;
    line-height: 1.6;
}

.link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    text-decoration: none;
}

.blue-link   { color: #2f6df6; }
.green-link  { color: #1ca7a6; }
.purple-link { color: #6f42c1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
    .industry-card .title {
        font-size: 15px !important;
    }
}

@media (max-width: 992px) {
    .main-title {
        font-size: 32px;
    }

    .image-wrapper {
        margin-top: 40px;
    }

    .card-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
    }

    .card-img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 26px;
    }
}
