/*--------------------------------------------------------------
SERVICES PAGE
Card grid for pages/practises.blade.php. Standalone file loaded
through @stack('styles'), outside the compiled style.css build.
--------------------------------------------------------------*/

.services-page {
    padding: 190px 0 100px;
}

.services-page__head {
    max-width: 760px;
    margin-bottom: 50px;
}

.services-page__title {
    color: var(--white, #ffffff);
    font-family: var(--font-family-cormorant, "Cormorant Garamond", serif);
    font-size: 64px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.services-page__lead {
    color: var(--main-primary, #8B9F9F);
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
}

.services-page__lead .title-yellow {
    color: var(--orange-dark, #D89A26);
}

/*--------------------------------------------------------------
Card
--------------------------------------------------------------*/

.service-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(139, 159, 159, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease-out, transform 0.3s ease-out;
}

.service-block:hover {
    border-color: var(--orange-dark, #D89A26);
    transform: translateY(-4px);
}

.service-block__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.service-block__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85);
    transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

.service-block:hover .service-block__media img {
    transform: scale(1.05);
    filter: saturate(1);
}

.service-block__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px 28px 30px;
}

.service-block__title {
    font-family: var(--font-family-cormorant, "Cormorant Garamond", serif);
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.service-block__title a {
    color: var(--white, #ffffff);
    transition: color 0.3s ease-out;
}

.service-block__title a:hover {
    color: var(--orange-light, #FFCD70);
}

/* Teaser only: the full text lives on each service's own page */
.service-block__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--main-primary, #8B9F9F);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-block__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    align-self: flex-start;
    margin-top: auto;
    width: auto;
    color: var(--orange-dark, #D89A26);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.service-block__more:hover {
    color: var(--orange-light, #FFCD70);
}

.service-block__more img {
    width: 14px;
    height: 14px;
}

@media (max-width: 991px) {
    .services-page {
        padding: 150px 0 70px;
    }

    .services-page__title {
        font-size: 44px;
    }

    .services-page__lead {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .services-page__title {
        font-size: 36px;
    }

    .service-block__body {
        padding: 22px 20px 24px;
    }

    .service-block__title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-block,
    .service-block__media img {
        transition: none;
    }
}

/*--------------------------------------------------------------
Related services (components/related-services.blade.php)
--------------------------------------------------------------*/

.related-services {
    padding: 70px 0 10px;
}

.related-services__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.related-services__title {
    color: var(--white, #ffffff);
    font-family: var(--font-family-cormorant, "Cormorant Garamond", serif);
    font-size: 40px;
    font-style: italic;
    font-weight: 700;
    margin: 0;
}

.related-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(139, 159, 159, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease-out;
}

.related-service:hover {
    border-color: var(--orange-dark, #D89A26);
}

.related-service img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-service span {
    padding: 14px 16px 16px;
    color: var(--white, #ffffff);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.related-service:hover span {
    color: var(--orange-light, #FFCD70);
}

@media (max-width: 575px) {
    .related-services__title {
        font-size: 30px;
    }

    .related-service span {
        padding: 10px 12px 12px;
        font-size: 14px;
    }
}
