/* ============================================
   SERVICES SECTION STYLES
   ============================================ */

.services-section {
    width: 100%;
    padding: 80px 160px;
    display: flex;
    justify-content: center;
}

.services-inner {
    width: 100%;
    max-width: 1123px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* Section Header */
.services-header {
    width: 100%;
    max-width: 843px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    text-align: left;
}

.services-title {
    font-family: Costaline, serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 100;
    line-height: 1.7;
    color: #181818;
    margin: 0;
}

.services-title .title-highlight {
    font-family: "Alamendro FG", serif;
    font-size: 80px;
    font-weight: 400;
    line-height: 1.1;
    color: #833C1E;
}

.services-description {
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #181818;
    margin: 0;
}

/* Services List */
.services-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* Service Item Link Wrapper */
.service-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Service Item */
.service-item {
    position: relative;
    width: 100%;
    background: #F1F1F1;
    border: 1px solid #B4B2AD;
    display: flex;
    gap: 64px;
    align-items: flex-end;
    padding: 64px 40px;
    transition: border-radius 240ms ease, box-shadow 240ms ease, transform 240ms ease, border-color 240ms ease;
    cursor: pointer;
}

.service-item-link:hover .service-item {
    border-color: #833C1E;
    box-shadow: 0 4px 16px rgba(131, 60, 30, 0.1);
    transform: translateY(-2px);
}

.service-item.rounded-top {
    /* Keep class for markup compatibility, but visuals are applied on hover to match design */
    border-radius: 0;
}

/* Service Image */
.service-image-wrap {
    width: 471.412px;
    height: 298px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Service Content */
.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 298px;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Service Header */
.service-header {
    display: flex;
    gap: 32px;
    align-items: center;
}

.service-number {
    font-family: Costaline, serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 100;
    line-height: 1.7;
    color: #181818;
    white-space: nowrap;
}

/* Highlighted service: color changes on hover only */
.service-item.highlighted .service-number {
    color: #181818;
    /* default */
    transition: color 200ms ease;
}

.service-name {
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #181818;
    margin: 0;
    max-width: 345px;
}

.service-item.highlighted .service-name {
    color: #181818;
    /* default */
    transition: color 200ms ease;
}

/* On hover, apply brown highlight color */
.service-item:hover .service-number,
.service-item:hover .service-name {
    color: #833C1E;
}

.service-description {
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #181818;
    margin: 0;
}

/* Service Arrow */
.service-arrow {
    width: 52.703px;
    height: 33px;
}

.service-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-arrow {
    position: relative;
}

/* Use opacity for smooth arrow swap */
.service-arrow .arrow-default {
    opacity: 1;
    transition: opacity 200ms ease;
}

.service-arrow .arrow-brown {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 200ms ease;
}

/* Hover effect for all service items */
.service-item:hover {
    border-radius: 90px 90px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

/* Arrow swap on hover for any service item - use opacity for smooth transitions */
.service-item:hover .service-arrow .arrow-default {
    opacity: 0;
}

.service-item:hover .service-arrow .arrow-brown {
    opacity: 1;
}

/* Decorative Vector */
.service-vector {
    position: absolute;
    right: 50px;
    bottom: 10px;
    width: 170px;
    height: 151px;
    pointer-events: none;
    z-index: 1;
}

.service-vector img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.single-blog-divider {
    width: 100%;
    max-width: 1307px;
    margin: 64px auto 0 auto;
    text-align: center;
    padding: 0 90px;
    margin: 48px auto;
}

.single-blog-divider img {
    width: 100%;
    height: auto;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    .services-section {
        padding: 60px 80px;
    }

    .services-title {
        font-size: 48px;
    }

    .services-title .title-highlight {
        font-size: 60px;
    }

    .services-description {
        font-size: 16px;
    }

    .service-item {
        gap: 40px;
        padding: 48px 32px;
    }

    .service-image-wrap {
        width: 360px;
        height: 240px;
    }

    .service-content {
        min-height: 240px;
    }

    .service-header {
        gap: 24px;
    }

    .service-number,
    .service-name {
        font-size: 20px;
    }

    .service-description {
        font-size: 16px;
    }

    .service-arrow {
        width: 40px;
        height: 25px;
    }

    .service-vector {
        right: 80px;
        bottom: -35px;
        width: 80px;
        height: 120px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .services-section {
        padding: 40px 20px;
    }

    .services-inner {
        gap: 56px;
    }

    .services-header {
        gap: 24px;
        text-align: center;
        align-items: center;
    }

    .services-title {
        font-size: 32px;
    }

    .services-title .title-highlight {
        font-size: 40px;
    }

    .services-description {
        font-size: 14px;
    }

    .services-list {
        gap: 48px;
    }

    .service-item {
        flex-direction: column;
        gap: 32px;
        padding: 32px 24px;
        align-items: flex-start;
    }

    .service-image-wrap {
        width: 100%;
        height: 200px;
    }

    .service-content {
        min-height: auto;
        width: 100%;
    }

    .service-details {
        gap: 24px;
    }

    .service-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .service-number {
        font-size: 18px;
    }

    .service-name {
        font-size: 18px;
        max-width: 100%;
    }

    .service-description {
        font-size: 14px;
    }

    .service-arrow {
        width: 52px;
        height: 20px;
        margin-top: 32px;
    }

    .service-vector {
        display: none;
        /* right: 40px;
        bottom: -25px;
        width: 60px;
        height: 90px; */
    }

    .single-blog-divider {
        margin: 40px auto 0 auto;
        padding: 0 32px;
        margin: 32px auto;
    }
}