/* ==================================================
   Shared home section styles
================================================== */

.btr-home-section {
    padding: 88px 0;
}

.btr-section-heading {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
}

.btr-section-heading h2 {
    margin: 0 0 14px;
    color: #0b0b0d;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;
}

.btr-section-heading p {
    margin: 0;
    color: #60606a;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ==================================================
   Shared soft card interactions
================================================== */

.btr-service-card,
.btr-benefit-card,
.btr-accreditation-card {
    position: relative;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        background-color 0.5s ease;
}

.btr-service-card:hover,
.btr-service-card:focus-within,
.btr-benefit-card:hover,
.btr-benefit-card:focus-within,
.btr-accreditation-card:hover,
.btr-accreditation-card:focus-within {
    transform: translateY(-3px);

    border-color: rgba(79, 34, 125, 0.14);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.065),
        0 3px 10px rgba(79, 34, 125, 0.03);
}


/* ==================================================
   Core services
================================================== */

.btr-services-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 320px), 1fr)
    );
    gap: 32px;
}

.btr-service-card {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e8e8eb;
    border-radius: 18px;

    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.btr-service-image {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.btr-service-image::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 45%;

    content: "";

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        #ffffff
    );

    pointer-events: none;
}

.btr-service-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.btr-service-card:hover .btr-service-image img,
.btr-service-card:focus-within .btr-service-image img {
    transform: scale(1.018);
}

.btr-service-content {
    position: relative;
    padding: 0 32px 34px;
}

.btr-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    margin-top: -28px;
    margin-bottom: 18px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #6d3fa4 0%,
        #4b237a 60%,
        #3d1b68 100%
    );

    border-radius: 16px;

    box-shadow:
        0 10px 25px rgba(75, 35, 122, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease,
        filter 0.5s ease;
}

.btr-service-card:hover .btr-service-icon,
.btr-service-card:focus-within .btr-service-icon {
    transform: translateY(-1px) scale(1.015);

    filter: saturate(1.03);

    box-shadow:
        0 13px 28px rgba(75, 35, 122, 0.29),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btr-service-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btr-service-card h3 {
    margin: 0 0 14px;

    color: #0b0b0d;
    font-size: 1.55rem;
    line-height: 1.25;
}

.btr-service-description {
    min-height: 96px;

    color: #64646c;
    line-height: 1.7;
}

.btr-service-description p:last-child {
    margin-bottom: 0;
}

.btr-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 28px;

    color: #4f227d;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.4s ease,
        gap 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.btr-card-link:hover,
.btr-card-link:focus-visible {
    gap: 13px;
    color: #6d3fa4;
    text-decoration: none;
}


/* ==================================================
   Why BTR cards
================================================== */

.btr-benefits-section {
    background: #fbfbfc;
}

.btr-benefits-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 24px;
}

.btr-benefit-card {
    padding: 28px 24px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e8e8eb;
    border-radius: 16px;
}

.btr-benefit-card:hover,
.btr-benefit-card:focus-within {
    background: #ffffff;
}

.btr-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 20px;

    color: #c57abb;
    background: #f8eff7;
    border-radius: 50%;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.5s ease,
        background-color 0.5s ease,
        box-shadow 0.5s ease;
}

.btr-benefit-card:hover .btr-benefit-icon,
.btr-benefit-card:focus-within .btr-benefit-icon {
    transform: translateY(-1px) scale(1.035);

    color: #ffffff;
    background: #bd73b6;

    box-shadow: 0 8px 20px rgba(189, 115, 182, 0.16);
}

.btr-benefit-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btr-benefit-card h3 {
    margin: 0 0 12px;

    color: #0b0b0d;
    font-size: 1.15rem;
    line-height: 1.35;

    transition: color 0.45s ease;
}

.btr-benefit-card:hover h3,
.btr-benefit-card:focus-within h3 {
    color: #4f227d;
}

.btr-benefit-description {
    color: #686870;
    line-height: 1.65;
}

.btr-benefit-description p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   Statistics
================================================== */

.btr-statistics-section {
    position: relative;
    overflow: hidden;

    padding: 72px 0;

    color: #ffffff;

    background: linear-gradient(
        105deg,
        #412076 0%,
        #572a84 50%,
        #ad75af 100%
    );
}

.btr-statistics-section::before,
.btr-statistics-section::after {
    position: absolute;

    content: "";

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;

    pointer-events: none;
}

.btr-statistics-section::before {
    top: 40px;
    left: 40px;

    width: 160px;
    height: 160px;
}

.btr-statistics-section::after {
    top: -55px;
    right: 75px;

    width: 240px;
    height: 240px;
}

.btr-statistics-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.btr-statistic {
    padding: 18px;

    text-align: center;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.5s ease,
        border-color 0.5s ease;
}

.btr-statistic:hover,
.btr-statistic:focus-within {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.055);
}

.btr-statistic-value {
    display: flex;
    align-items: baseline;
    justify-content: center;

    font-size: clamp(2.7rem, 6vw, 4rem);
    line-height: 1;
    font-weight: 800;

    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.btr-statistic:hover .btr-statistic-value,
.btr-statistic:focus-within .btr-statistic-value {
    transform: scale(1.018);
}

.btr-counter-number {
    display: inline-block;
}

.btr-counter-suffix {
    display: inline-block;
    margin-left: 2px;
}

.btr-statistic-label {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}


/* ==================================================
   Accreditations
================================================== */

.btr-accreditations-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(175px, 1fr)
    );
    gap: 18px;

    max-width: 800px;
    margin: 0 auto;
}

.btr-accreditation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 96px;
    padding: 20px;

    text-align: center;

    background: #fafafa;
    border: 1px solid #e6e6e9;
    border-radius: 15px;
}

.btr-accreditation-card:hover,
.btr-accreditation-card:focus-within {
    background: #ffffff;
}

.btr-accreditation-card h3 {
    margin: 0;

    color: #555560;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;

    transition: color 0.45s ease;
}

.btr-accreditation-card:hover h3,
.btr-accreditation-card:focus-within h3 {
    color: #4f227d;
}

.btr-accreditation-logo {
    margin-bottom: 12px;
}

.btr-accreditation-logo img {
    width: auto;
    max-width: 120px;
    max-height: 55px;

    object-fit: contain;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.btr-accreditation-card:hover .btr-accreditation-logo img,
.btr-accreditation-card:focus-within .btr-accreditation-logo img {
    transform: scale(1.018);
}


/* ==================================================
   Responsive
================================================== */

@media (max-width: 767px) {
    .btr-home-section {
        padding: 64px 0;
    }

    .btr-section-heading {
        margin-bottom: 38px;
    }

    .btr-services-grid,
    .btr-benefits-grid {
        grid-template-columns: 1fr;
    }

    .btr-statistics-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .btr-service-content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .btr-accreditations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btr-service-card:hover,
    .btr-service-card:focus-within,
    .btr-benefit-card:hover,
    .btr-benefit-card:focus-within,
    .btr-accreditation-card:hover,
    .btr-accreditation-card:focus-within {
        transform: translateY(-2px);
    }
}

@media (max-width: 420px) {
    .btr-accreditations-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   Reduced motion accessibility
================================================== */

@media (prefers-reduced-motion: reduce) {
    .btr-service-card,
    .btr-benefit-card,
    .btr-accreditation-card,
    .btr-service-image img,
    .btr-service-icon,
    .btr-benefit-icon,
    .btr-accreditation-logo img,
    .btr-statistic,
    .btr-statistic-value,
    .btr-card-link,
    .btr-service-card h3,
    .btr-benefit-card h3,
    .btr-accreditation-card h3 {
        transition: none;
    }

    .btr-service-card:hover,
    .btr-service-card:focus-within,
    .btr-benefit-card:hover,
    .btr-benefit-card:focus-within,
    .btr-accreditation-card:hover,
    .btr-accreditation-card:focus-within,
    .btr-statistic:hover,
    .btr-statistic:focus-within,
    .btr-service-card:hover .btr-service-image img,
    .btr-service-card:focus-within .btr-service-image img,
    .btr-service-card:hover .btr-service-icon,
    .btr-service-card:focus-within .btr-service-icon,
    .btr-benefit-card:hover .btr-benefit-icon,
    .btr-benefit-card:focus-within .btr-benefit-icon,
    .btr-accreditation-card:hover .btr-accreditation-logo img,
    .btr-accreditation-card:focus-within .btr-accreditation-logo img,
    .btr-statistic:hover .btr-statistic-value,
    .btr-statistic:focus-within .btr-statistic-value {
        transform: none;
    }
}