/* =========================================
   ESAR DIGITAL
   REUSABLE COMPONENTS
   ========================================= */


/* =========================================
   SERVICE CARD
   ========================================= */

   .service-card {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 30px;

    background: var(--white);

    border: 1px solid var(--light-border);
    border-radius: 14px;

    color: var(--light-text);

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(7, 26, 51, 0.06);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


/* ---------- Service Card Top ---------- */

.service-card__top {
    position: relative;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    min-height: 62px;

    margin-bottom: 38px;

    z-index: 2;
}


/* ---------- Service Number ---------- */

.service-card__number {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 26px;

    padding: 0 8px;

    background: var(--esar-navy);

    border-radius: 3px;

    color: var(--white);

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 1.2px;
}


/* ---------- Service Icon ---------- */

.service-card__icon {
    position: relative;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin: 0;

    background: var(--esar-navy);

    border: 1px solid rgba(255, 204, 0, 0.30);

    border-radius: 50%;

    color: var(--esar-gold);

    box-shadow:
        0 10px 22px rgba(7, 26, 51, 0.16);

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);

    z-index: 2;
}


.service-card__icon svg {
    display: block;

    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------- Service Content ---------- */

.service-card__content {
    position: relative;

    flex: 1;

    z-index: 2;
}


.service-card__title {
    position: relative;

    margin: 0;

    padding-left: 17px;

    color: var(--light-text);

    font-size: 21px;
    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.4px;
}


.service-card__title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 3px;
    height: 20px;

    background: var(--esar-gold);

    border-radius: 2px;
}


.service-card__description {
    max-width: 365px;

    margin: 14px 0 0;

    color: var(--light-text-secondary);

    font-size: 13px;

    line-height: 1.75;
}


/* ---------- Service Link ---------- */

.service-card__link {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 28px;

    padding-top: 17px;

    border-top: 1px solid rgba(7, 26, 51, 0.10);

    color: var(--esar-navy);

    font-size: 11px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    z-index: 2;

    transition:
        color var(--transition);
}


.service-card__link > span:first-child {
    transition:
        color var(--transition),
        transform var(--transition);
}


.service-card__arrow {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--esar-gold);

    border-radius: 50%;

    color: var(--esar-navy);

    font-size: 15px;

    line-height: 1;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition);
}


/* ---------- Service Card Hover ---------- */

.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(255, 204, 0, 0.45);

    box-shadow:
        0 22px 45px rgba(7, 26, 51, 0.14);
}


.service-card:hover .service-card__icon {
    background: var(--esar-gold);

    border-color: var(--esar-gold);

    color: var(--esar-navy);

    transform: translateY(-2px) rotate(4deg);

    box-shadow:
        0 12px 26px rgba(7, 26, 51, 0.20);
}


.service-card:hover .service-card__link > span:first-child {
    transform: translateX(2px);
}


.service-card:hover .service-card__arrow {
    transform: translateX(5px);

    background: var(--esar-navy);

    color: var(--esar-gold);
}


/* ---------- Service Card: Dark ---------- */

.service-card--dark {
    background: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.10);

    color: var(--dark-text);
}


.service-card--dark .service-card__number {
    background: var(--esar-gold);

    color: var(--esar-navy);
}


.service-card--dark .service-card__icon {
    background: rgba(255, 204, 0, 0.10);

    color: var(--esar-gold);
}


.service-card--dark .service-card__title {
    color: var(--dark-text);
}


.service-card--dark .service-card__description {
    color: var(--dark-text-secondary);
}


.service-card--dark .service-card__link {
    border-color: rgba(255, 255, 255, 0.10);

    color: var(--esar-gold);
}


.service-card--dark:hover {
    background: rgba(255, 255, 255, 0.065);

    border-color: rgba(255, 204, 0, 0.42);

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.20);
}


/* =========================================
   INDUSTRY CARD
   ========================================= */

.industry-card {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 30px;

    border: 1px solid transparent;
    border-radius: 14px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.industry-card__icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    font-size: 16px;
    font-weight: 700;
}


.industry-card__title {
    margin: 0 0 12px;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.35;
}


.industry-card__description {
    margin: 0 0 22px;

    font-size: 14px;

    line-height: 1.7;
}


.industry-card__link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        gap var(--transition),
        color var(--transition);
}


.industry-card__link:hover {
    gap: 12px;
}


.industry-card--light {
    background: var(--white);

    border-color: var(--light-border);

    color: var(--light-text);
}


.industry-card--light .industry-card__icon {
    background: var(--esar-navy);

    color: var(--esar-gold);
}


.industry-card--light .industry-card__description {
    color: var(--light-text-secondary);
}


.industry-card--light .industry-card__link {
    color: var(--esar-navy);
}


.industry-card--light:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 204, 0, 0.55);

    box-shadow: 0 16px 40px rgba(7, 26, 51, 0.08);
}


.industry-card--dark {
    background: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.10);

    color: var(--dark-text);
}


.industry-card--dark .industry-card__icon {
    background: rgba(255, 204, 0, 0.12);

    color: var(--esar-gold);
}


.industry-card--dark .industry-card__description {
    color: var(--dark-text-secondary);
}


.industry-card--dark .industry-card__link {
    color: var(--esar-gold);
}


.industry-card--dark:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.07);

    border-color: rgba(255, 204, 0, 0.40);
}


/* =========================================
   STAT CARD
   ========================================= */

.stat-card {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.stat-card__value {
    display: block;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -1px;
}


.stat-card__label {
    display: block;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.5;
}


.stat-card--light .stat-card__value {
    color: var(--esar-navy);
}


.stat-card--light .stat-card__label {
    color: var(--light-text-secondary);
}


.stat-card--dark .stat-card__value {
    color: var(--esar-gold);
}


.stat-card--dark .stat-card__label {
    color: var(--dark-text-secondary);
}


/* =========================================
   PROCESS STEP
   ========================================= */

.process-step {
    display: flex;

    align-items: flex-start;

    gap: 22px;

    height: 100%;
}


.process-step__number {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 700;
}


.process-step__content {
    flex: 1;
}


.process-step__title {
    margin: 3px 0 10px;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.35;
}


.process-step__description {
    margin: 0;

    font-size: 14px;

    line-height: 1.7;
}


.process-step--light .process-step__number {
    background: var(--esar-navy);

    color: var(--esar-gold);
}


.process-step--light .process-step__title {
    color: var(--light-text);
}


.process-step--light .process-step__description {
    color: var(--light-text-secondary);
}


.process-step--dark .process-step__number {
    background: var(--esar-gold);

    color: var(--esar-navy);
}


.process-step--dark .process-step__title {
    color: var(--dark-text);
}


.process-step--dark .process-step__description {
    color: var(--dark-text-secondary);
}


/* =========================================
   TESTIMONIAL CARD
   ========================================= */

.testimonial-card {
    position: relative;

    height: 100%;

    padding: 32px;

    border: 1px solid transparent;

    border-radius: 14px;
}


.testimonial-card__quote {
    margin-bottom: 10px;

    font-size: 50px;
    font-weight: 800;

    line-height: 0.8;
}


.testimonial-card__text {
    margin: 0 0 26px;

    font-size: 15px;

    line-height: 1.75;
}


.testimonial-card__author {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.testimonial-card__name {
    font-size: 14px;
    font-weight: 700;
}


.testimonial-card__role {
    font-size: 12px;
}


.testimonial-card--light {
    background: var(--white);

    border-color: var(--light-border);

    box-shadow: 0 8px 30px rgba(7, 26, 51, 0.05);
}


.testimonial-card--light .testimonial-card__quote {
    color: var(--esar-gold);
}


.testimonial-card--light .testimonial-card__text {
    color: var(--light-text-secondary);
}


.testimonial-card--light .testimonial-card__name {
    color: var(--light-text);
}


.testimonial-card--light .testimonial-card__role {
    color: var(--light-text-muted);
}


.testimonial-card--dark {
    background: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.10);
}


.testimonial-card--dark .testimonial-card__quote {
    color: var(--esar-gold);
}


.testimonial-card--dark .testimonial-card__text {
    color: var(--dark-text-secondary);
}


.testimonial-card--dark .testimonial-card__name {
    color: var(--dark-text);
}


.testimonial-card--dark .testimonial-card__role {
    color: var(--dark-text-muted);
}


/* =========================================
   RESOURCE CARD
   ========================================= */

.resource-card {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 30px;

    border: 1px solid transparent;

    border-radius: 14px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.resource-card__category {
    display: inline-block;

    margin-bottom: 16px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.resource-card__title {
    margin: 0 0 13px;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.35;
}


.resource-card__description {
    margin: 0 0 22px;

    font-size: 14px;

    line-height: 1.7;
}


.resource-card__link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        gap var(--transition),
        color var(--transition);
}


.resource-card__link:hover {
    gap: 12px;
}


.resource-card--light {
    background: var(--white);

    border-color: var(--light-border);

    color: var(--light-text);

    box-shadow: 0 8px 30px rgba(7, 26, 51, 0.04);
}


.resource-card--light .resource-card__category {
    color: var(--esar-navy);
}


.resource-card--light .resource-card__description {
    color: var(--light-text-secondary);
}


.resource-card--light .resource-card__link {
    color: var(--esar-navy);
}


.resource-card--light:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 204, 0, 0.50);

    box-shadow: 0 16px 40px rgba(7, 26, 51, 0.08);
}


.resource-card--dark {
    background: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.10);

    color: var(--dark-text);
}


.resource-card--dark .resource-card__category {
    color: var(--esar-gold);
}


.resource-card--dark .resource-card__description {
    color: var(--dark-text-secondary);
}


.resource-card--dark .resource-card__link {
    color: var(--esar-gold);
}


.resource-card--dark:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.07);

    border-color: rgba(255, 204, 0, 0.40);
}


/* =========================================
   CTA
   ========================================= */

.cta {
    position: relative;

    overflow: hidden;
}


.cta__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 60px 0;
}


.cta__content {
    max-width: 720px;
}


.cta__title {
    margin: 0 0 14px;

    font-size: clamp(30px, 4vw, 46px);

    font-weight: 800;

    line-height: 1.15;
}


.cta__description {
    max-width: 620px;

    margin: 0;

    font-size: 15px;

    line-height: 1.7;
}


.cta__action {
    flex-shrink: 0;
}


.cta--dark {
    background: var(--esar-navy);

    color: var(--dark-text);
}


.cta--dark .cta__description {
    color: var(--dark-text-secondary);
}


.cta--light {
    background: var(--light-bg);

    color: var(--light-text);
}


.cta--light .cta__description {
    color: var(--light-text-secondary);
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 767px) {

    .service-card,
    .industry-card,
    .testimonial-card,
    .resource-card {
        padding: 25px;
    }


    .service-card__top {
        min-height: 58px;

        margin-bottom: 32px;
    }


    .service-card__icon {
        width: 54px;
        height: 54px;
    }


    .service-card__icon svg {
        width: 21px;
        height: 21px;
    }


    .process-step {
        gap: 16px;
    }


    .process-step__number {
        width: 44px;
        height: 44px;
    }


    .process-step__title {
        font-size: 17px;
    }


    .cta__inner {
        flex-direction: column;

        align-items: flex-start;

        padding: 45px 0;
    }


    .cta__action {
        width: 100%;
    }


    .cta__action .btn {
        width: 100%;
    }

}