/* Expert Services Section */
.homepage-services {
    padding: 3rem 0 6rem 0;
    /* Reduced from 10rem */
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Header Styles (Restored Centered) */
.h-services-header {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
    /* Reduced from 6rem */
    width: 100%;
}

.h-services-center {
    max-width: 900px;
    margin: 0 auto;
}

.h-services-title {
    font-size: clamp(2rem, 4vw, 3rem);
    /* Reduced from 2.5/4 */
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
}

.h-services-title .serif-italic {
    font-size: 1.15em;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #fff;
}


/* Centered Grid Styles */
.services-grid-centered {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    /* Reduced from 3rem */
    row-gap: 3rem;
    /* Reduced from 5rem */
    max-width: 1200px;
    /* Reduced max-width slightly */
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    padding-top: 1.2rem;
    /* Reduced from 1.5rem */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-top-color: #facc15;
    /* Gold highlight on hover */
}

/* NEW ICON STYLES */
.service-icon {
    width: 40px;
    /* Increased from 32px */
    height: 40px;
    /* Increased from 32px */
    color: #facc15;
    margin-bottom: 1rem;
    opacity: 0.9;
    /* Slight increase opacity */
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
    /* Make lines slightly bolder */
}

.service-item:hover .service-icon {
    opacity: 1;
    transform: scale(1.1);
    color: #fff;
    /* Optional: turn white or keep gold */
}

.service-category {
    font-size: 0.75rem;
    /* Reduced from 0.8rem */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 0.8rem;
    /* Reduced from 1.2rem */
    opacity: 0.7;
    font-weight: 500;
}

.service-name {
    font-size: 1.4rem;
    /* Reduced from 1.8rem */
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    color: #facc15;
    /* Gold color for titles */
}

.service-desc {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    max-width: 95%;
}

/* CTA Card Specifics */
.service-cta {
    position: relative;
    justify-content: space-between;
    height: 100%;
    min-height: 200px;
    /* Reduced from 250px */
    background: transparent;
}

.service-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    /* Reduced from 60px */
    height: 50px;
    /* Reduced from 60px */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-arrow-btn:hover {
    background: #facc15;
    border-color: #facc15;
    color: #000;
    transform: rotate(-45deg);
}

.service-item:hover .service-name {
    color: #fff;
    /* Swap to white on hover for dynamic feel */
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid-centered {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid-centered {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .h-services-title {
        font-size: 2.2rem;
    }

    .service-name {
        font-size: 1.3rem;
    }
}