/* Services Section Styles */
.block-services {
    position: relative;
    padding: 8rem 0;
    background-color: #FBF4F0;
    color: #5D524B;
    overflow: hidden;
    z-index: 10;
}

.services-container {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 4rem;
    overflow: hidden;
    /* Ensure no horizontal scrollbar on body */
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #5D524B;
}

.services-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Carousel Track */
.services-scroll-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Full viewport width breakout */
    position: relative;
    padding: 2rem 0;
    /* Space for hover effects */
}

.services-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.services-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
        /* Adjust for gap */
    }
}

/* Card */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(93, 82, 75, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    width: 400px;
    /* Fixed width for carousel */
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    isolation: isolate;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    border-color: #A67C52;
    box-shadow: 0 20px 40px rgba(166, 124, 82, 0.1), 0 0 0 1px #A67C52 inset;
}

/* Card Top */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.card-index {
    font-family: inherit;
    font-size: 0.9rem;
    color: #A67C52;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(93, 82, 75, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.5);
}

.service-card:hover .card-icon-wrapper {
    background: #5D524B;
    border-color: #5D524B;
    transform: rotate(-5deg);
}

.card-icon {
    width: 24px;
    height: 24px;
    stroke: #5D524B;
    transition: all 0.4s ease;
}

.service-card:hover .card-icon {
    stroke: #FEF9ED;
}

/* Card Content */
.card-content {
    margin-top: auto;
}

.card-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5D524B;
}

.card-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #5D524B;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Link */
.card-link {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #A67C52;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-link span {
    margin-right: 0.5rem;
}

.card-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    stroke: currentColor;
    fill: none;
}

.service-card:hover .card-link {
    color: #5D524B;
}

.service-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        width: 300px;
        /* Smaller width on mobile */
        min-height: 400px;
        padding: 2rem 1.5rem;
    }

    .services-track {
        gap: 1rem;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-50% - 0.5rem));
            /* Adjust for gap */
        }

    }
}

/* Rich Content Styles */
.card-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #A67C52;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.card-details {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: #5D524B;
}

.card-details strong {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #5D524B;
}

.card-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.7rem;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 1.2rem;
}

.card-details li::before {
    content: "•";
    color: #A67C52;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-meta {
    margin-top: auto;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    opacity: 0.95;
    border-top: 1px solid rgba(93, 82, 75, 0.1);
    padding-top: 1.5rem;
}

.card-meta p {
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.card-meta p:last-child {
    margin-bottom: 0;
}

.card-meta strong {
    color: #A67C52;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}