.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.7vh;
    align-items: stretch;
}

.service-card {
    background: #FFFFFF;
    border-radius: 1.48vh;
    padding: 3.7vh 2.96vh;
    box-shadow: 0 0.37vh 1.85vh rgba(26, 36, 16, 0.08);
    border: 0.093vh solid rgba(26, 36, 16, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 37.04vh;
    z-index: 10;
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-0.74vh) scale(1.02);
    box-shadow: 0 1.85vh 5.56vh rgba(26, 36, 16, 0.15), 0 0.74vh 2.31vh rgba(26, 36, 16, 0.1), 0 0 0 0.093vh rgba(26, 36, 16, 0.1);
    border-color: rgba(26, 36, 16, 0.2);
    background: #ffffff;
}

.service-card.featured {
    border: 0.185vh solid #1a2410;
    box-shadow: 0 0.74vh 2.96vh rgba(26, 36, 16, 0.12);
    position: relative;
    padding: 3.7vh 2.96vh;
}

.service-card.featured::before {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3.7vh;
}

.service-letter {
    font-size: 5.56vh;
    font-weight: 300;
    color: #b3ce3a;
    line-height: 1;
    margin-top: -0.74vh;
}

.service-category {
    color: rgba(107, 124, 50, 0.5);
    font-size: 1.39vh;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
    margin: 0;
    pointer-events: none;
}

.card-content {
    flex: 1;
    position: relative;
}

.service-title {
    font-size: 1.39vh;
    font-weight: 400;
    color: #000000;
    margin-bottom: 1.48vh;
    line-height: 1.3;
    max-width: 85%;
    text-align: left;
}

.service-title .font-bold {
    font-weight: 700;
}

.corner-arrow {
    width: 1.11vh;
    height: 1.11vh;
    border-right: 0.185vh solid #64748B;
    border-top: 0.185vh solid #64748B;
    position: absolute;
    right: 1.11vh;
    top: 0.37vh;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.11vh;
    margin-bottom: 1.48vh;
    overflow: hidden;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.28vh;
    padding: 0.46vh 1.11vh;
    background: #D9D9D973;
    border-radius: 0.46vh;
    font-size: 1.02vh;
    color: #545454;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.tag svg {
    width: 1.11vh;
    height: 1.11vh;
}

.service-description {
    color: #545454;
    line-height: 1.6;
    pointer-events: none;
}

.service-description p {
    margin: 0;
    font-size: 1.02vh;
}

.service-icon {
    margin-bottom: 2.22vh;
}

.card-button {
    position: absolute;
    bottom: 1.85vh;
    right: 1.85vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .card-button {
    opacity: 1;
}

.button-wrapper {
    position: relative;
    display: inline-block;
    padding: 0.185vh;
    border-radius: 4.63vh;
    background: linear-gradient(135deg, #4A5D23, transparent);
    transition: all 0.5s ease;
}

.button-wrapper:hover {
    background: linear-gradient(135deg, #6B7C32, transparent);
}

.button-wrapper:hover .button-icon {
    transform: rotate(-45deg);
}

.button-link {
    display: flex;
    align-items: center;
    gap: 0.74vh;
    padding: 1.11vh 2.22vh;
    background: white;
    color: #0F172A;
    border: none;
    border-radius: 4.63vh;
    font-size: 0.93vh;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-text {
    font-size: 0.81vh;
    font-weight: 600;
    padding-right: 0.74vh;
}

.button-icon {
    width: 2.59vh;
    height: 2.59vh;
    background: #4A5D23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.5s ease;
}

.button-icon svg {
    width: 0.81vh;
    height: 0.81vh;
}

.service-card.cta-card {
    background: linear-gradient(135deg, #b3ce3a, #a8c42a);
    border-color: #b3ce3a;
}

.service-card.cta-card .service-category {
    color: rgba(255, 255, 255, 0.8);
}

.service-card.cta-card .service-title {
    color: white;
}

.service-card.cta-card .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.cta-card .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-card.cta-card .corner-arrow {
    border-color: rgba(255, 255, 255, 0.6);
}

.service-card.cta-card .button-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
}

.service-card.cta-card .button-wrapper:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
}

.service-card.cta-card .button-link {
    background: rgba(255, 255, 255, 0.95);
    color: #b3ce3a;
}

.service-card.cta-card .button-icon {
    background: #b3ce3a;
    color: white;
}

.service-card.cta-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0vh;
}

.service-card.cta-card .service-letter {
    margin: 0 auto;
    font-size: 12.04vh;
}

.service-card.cta-card .service-title {
    margin: 0;
    font-size: 1.39vh;
}

.cta-corner-arrow {
    position: absolute;
    width: 1.85vh;
    height: 1.85vh;
    z-index: 10;
}

.cta-corner-arrow::before,
.cta-corner-arrow::after {
    content: '';
    position: absolute;
    background: white;
}

.cta-corner-top-right {
    top: 1.85vh;
    right: 1.85vh;
}

.cta-corner-top-right::before {
    width: 1.85vh;
    height: 0.185vh;
    top: 0;
    right: 0;
}

.cta-corner-top-right::after {
    width: 0.185vh;
    height: 1.85vh;
    top: 0;
    right: 0;
}

.cta-corner-bottom-left {
    bottom: 1.85vh;
    left: 1.85vh;
}

.cta-corner-bottom-left::before {
    width: 1.85vh;
    height: 0.185vh;
    bottom: 0;
    left: 0;
}

.cta-corner-bottom-left::after {
    width: 0.185vh;
    height: 1.85vh;
    bottom: 0;
    left: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2.78vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:focus-visible,
.button-link:focus-visible {
    outline: 0.185vh solid #4A5D23;
    outline-offset: 0.185vh;
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5vh !important;
        padding: 0 4vw !important;
    }

    .service-card {
        min-height: 30vh !important;
        padding: 3vh 4vw !important;
    }

    .card-header {
        margin-bottom: 2.5vh !important;
    }

    .service-letter {
        font-size: 4vh !important;
    }

    .service-category {
        font-size: 1vh !important;
    }

    .service-title {
        font-size: 1.5vh !important;
        margin-bottom: 1.2vh !important;
        line-height: 1.3 !important;
    }

    .service-description p {
        font-size: 1.2vh !important;
        line-height: 1.5 !important;
    }

    .tag {
        font-size: 1.1vh !important;
        padding: 0.35vh 0.85vh !important;
        gap: 0.25vh !important;
        border-radius: 0.4vh !important;
    }
    
    .tag svg {
        width: 1.1vh !important;
        height: 1.1vh !important;
    }

    .service-tags {
        gap: 0.8vh !important;
        margin-bottom: 1.2vh !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .card-button {
        bottom: 1.5vh !important;
        right: 1.5vw !important;
    }

    .button-link {
        padding: 0.8vh 1.5vh !important;
        font-size: 0.8vh !important;
    }

    .button-text {
        font-size: 0.7vh !important;
    }

    .button-icon {
        width: 2vh !important;
        height: 2vh !important;
    }

    .button-icon svg {
        width: 0.7vh !important;
        height: 0.7vh !important;
    }

    .service-card.cta-card .service-letter {
        font-size: 8vh !important;
    }

    .service-card.cta-card .service-title {
        font-size: 1.2vh !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5vh !important;
        padding: 0 3vw !important;
    }

    .service-card {
        min-height: 40vh !important;
        padding: 2.5vh 2.5vw !important;
    }

    .card-header {
        margin-bottom: 3vh !important;
    }

    .service-letter {
        font-size: 4.5vh !important;
    }

    .service-category {
        font-size: 1.1vh !important;
    }

    .service-title {
        font-size: 1.7vh !important;
        margin-bottom: 1.3vh !important;
    }

    .service-description p {
        font-size: 1.3vh !important;
    }

    .tag {
        font-size: 1.05vh !important;
        padding: 0.4vh 0.9vh !important;
    }
    
    .tag svg {
        width: 1.05vh !important;
        height: 1.05vh !important;
    }

    .service-tags {
        gap: 1vh !important;
        margin-bottom: 1.3vh !important;
    }

    .service-card.cta-card .service-letter {
        font-size: 10vh !important;
    }

    .service-card.cta-card .service-title {
        font-size: 1.3vh !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        gap: 3vh !important;
        padding: 0 2vw !important;
    }

    .service-card {
        min-height: 42vh !important;
        padding: 3vh 2.5vw !important;
    }

    .card-header {
        margin-bottom: 3.2vh !important;
    }

    .service-letter {
        font-size: 5vh !important;
    }

    .service-category {
        font-size: 1.2vh !important;
    }

    .service-title {
        font-size: 1.8vh !important;
        margin-bottom: 1.4vh !important;
    }

    .service-description p {
        font-size: 1.35vh !important;
    }

    .tag {
        font-size: 1.1vh !important;
        padding: 0.4vh 1.05vh !important;
    }
    
    .tag svg {
        width: 1.1vh !important;
        height: 1.1vh !important;
    }

    .service-tags {
        gap: 1.2vh !important;
        margin-bottom: 1.4vh !important;
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3.7vh !important;
        padding: 0 !important;
    }

    .service-card {
        min-height: 37.04vh !important;
        padding: 3.7vh 2.96vh !important;
    }

    .card-header {
        margin-bottom: 3.7vh !important;
    }

    .service-letter {
        font-size: 5.56vh !important;
    }

    .service-category {
        font-size: 1.39vh !important;
    }

    .service-title {
        font-size: 1.39vh !important;
        margin-bottom: 1.48vh !important;
    }

    .service-description p {
        font-size: 1.02vh !important;
    }

    .tag {
        font-size: 1.02vh !important;
        padding: 0.46vh 1.11vh !important;
    }
    
    .tag svg {
        width: 1.11vh !important;
        height: 1.11vh !important;
    }

    .service-tags {
        gap: 1.11vh !important;
        margin-bottom: 1.48vh !important;
    }
}
