/* Homepage services cards */
section.services.py-5.bg-light {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 48%, #ffffff 100%) !important;
    overflow: hidden !important;
    padding: 112px 0 !important;
    position: relative !important;
}

section.services.py-5.bg-light::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(140, 106, 47, 0.16) 20%,
        rgba(212, 175, 55, 0.75) 50%,
        rgba(14, 116, 144, 0.18) 80%,
        transparent 100%);
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

section.services.py-5.bg-light::after {
    background:
        linear-gradient(120deg, rgba(140, 106, 47, 0.05) 0 1px, transparent 1px 72px),
        linear-gradient(300deg, rgba(14, 116, 144, 0.045) 0 1px, transparent 1px 88px);
    bottom: 0;
    content: '';
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

section.services.py-5.bg-light .container {
    position: relative;
    z-index: 1;
}

section.services.py-5.bg-light .section-header {
    margin-bottom: 0 !important;
}

section.services.py-5.bg-light .section-header::before {
    content: none !important;
}

section.services.py-5.bg-light .section-header h2 {
    color: #172033 !important;
    font-size: 2.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    margin-bottom: 14px !important;
}

section.services.py-5.bg-light .section-header h2::after {
    animation: none !important;
    background: linear-gradient(90deg, rgba(140, 106, 47, 0), #d4af37, rgba(14, 116, 144, 0.7), rgba(140, 106, 47, 0)) !important;
    background-clip: border-box !important;
    border-radius: 999px !important;
    bottom: -12px !important;
    content: '' !important;
    display: block !important;
    height: 3px !important;
    left: 50% !important;
    position: absolute !important;
    transform: translateX(-50%) !important;
    width: 112px !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
}

section.services.py-5.bg-light .section-header p {
    color: #5d6675 !important;
    font-size: 1.04rem !important;
    margin: 0 auto !important;
    max-width: 620px !important;
}

section.services.py-5.bg-light .services-grid {
    counter-reset: service-card;
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    margin-top: 52px !important;
}

section.services.py-5.bg-light .service-card {
    --service-accent: #8c6a2f;
    --service-accent-rgb: 140, 106, 47;
    --service-soft: #fff8e5;

    align-items: flex-start !important;
    animation: serviceCardIn 0.7s ease forwards;
    background:
        linear-gradient(180deg, rgba(var(--service-accent-rgb), 0.08) 0%, rgba(255, 255, 255, 0) 34%),
        #ffffff !important;
    border: 1px solid rgba(23, 32, 51, 0.09) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.08) !important;
    counter-increment: service-card;
    display: flex !important;
    flex-direction: column !important;
    isolation: isolate;
    min-height: 292px;
    opacity: 0;
    overflow: hidden !important;
    padding: 34px 28px 30px !important;
    position: relative !important;
    text-align: left !important;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease !important;
}

section.services.py-5.bg-light .service-card:nth-child(1) {
    --service-accent: #a16207;
    --service-accent-rgb: 161, 98, 7;
    --service-soft: #fff7ed;
    animation-delay: 0.05s;
}

section.services.py-5.bg-light .service-card:nth-child(2) {
    --service-accent: #0f766e;
    --service-accent-rgb: 15, 118, 110;
    --service-soft: #ecfeff;
    animation-delay: 0.12s;
}

section.services.py-5.bg-light .service-card:nth-child(3) {
    --service-accent: #0369a1;
    --service-accent-rgb: 3, 105, 161;
    --service-soft: #eff6ff;
    animation-delay: 0.19s;
}

section.services.py-5.bg-light .service-card:nth-child(4) {
    --service-accent: #9a3412;
    --service-accent-rgb: 154, 52, 18;
    --service-soft: #fff1eb;
    animation-delay: 0.26s;
}

section.services.py-5.bg-light .service-card:nth-child(5) {
    --service-accent: #1d4ed8;
    --service-accent-rgb: 29, 78, 216;
    --service-soft: #eef4ff;
    animation-delay: 0.33s;
}

section.services.py-5.bg-light .service-card:nth-child(6) {
    --service-accent: #15803d;
    --service-accent-rgb: 21, 128, 61;
    --service-soft: #f0fdf4;
    animation-delay: 0.4s;
}

section.services.py-5.bg-light .service-card:nth-child(7) {
    --service-accent: #be123c;
    --service-accent-rgb: 190, 18, 60;
    --service-soft: #fff1f2;
    animation-delay: 0.47s;
}

section.services.py-5.bg-light .service-card::before {
    background: var(--service-accent);
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform: scaleX(0.42);
    transform-origin: left;
    transition: transform 0.32s ease;
    z-index: 2;
}

section.services.py-5.bg-light .service-card::after {
    color: rgba(23, 32, 51, 0.08);
    content: counter(service-card, decimal-leading-zero);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

section.services.py-5.bg-light .service-card:hover {
    border-color: rgba(var(--service-accent-rgb), 0.38) !important;
    box-shadow: 0 26px 58px rgba(var(--service-accent-rgb), 0.16) !important;
    transform: translateY(-8px) !important;
}

section.services.py-5.bg-light .service-card:hover::before {
    transform: scaleX(1);
}

section.services.py-5.bg-light .service-card:hover::after {
    color: rgba(var(--service-accent-rgb), 0.12);
    transform: translateY(-3px);
}

section.services.py-5.bg-light .service-icon {
    align-items: center !important;
    background:
        linear-gradient(135deg, rgba(var(--service-accent-rgb), 0.12), rgba(var(--service-accent-rgb), 0.04)),
        var(--service-soft) !important;
    border: 1px solid rgba(var(--service-accent-rgb), 0.18) !important;
    border-radius: 8px !important;
    color: var(--service-accent) !important;
    display: flex !important;
    flex: 0 0 auto;
    font-size: 1.8rem !important;
    height: 72px !important;
    justify-content: center !important;
    margin: 0 0 28px !important;
    position: relative !important;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease !important;
    width: 72px !important;
    z-index: 1;
}

section.services.py-5.bg-light .service-icon::before,
section.services.py-5.bg-light .service-icon::after {
    content: none !important;
}

section.services.py-5.bg-light .service-icon i {
    color: currentColor !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    position: relative;
    z-index: 1;
}

section.services.py-5.bg-light .service-card:hover .service-icon {
    background: var(--service-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

section.services.py-5.bg-light .service-card h3 {
    color: #172033 !important;
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    margin: 0 0 14px !important;
    max-width: 13rem;
    position: relative;
    z-index: 1;
}

section.services.py-5.bg-light .service-card h3::after {
    background: rgba(var(--service-accent-rgb), 0.48);
    content: '';
    display: block;
    height: 2px;
    margin-top: 14px;
    transition: width 0.3s ease;
    width: 34px;
}

section.services.py-5.bg-light .service-card:hover h3::after {
    width: 58px;
}

section.services.py-5.bg-light .service-card:hover h3 {
    color: #172033 !important;
    transform: none !important;
}

section.services.py-5.bg-light .service-card p {
    color: #5d6675 !important;
    font-size: 0.98rem !important;
    line-height: 1.72 !important;
    margin: 0 !important;
    max-width: 22rem;
    position: relative;
    z-index: 1;
}

section.services.py-5.bg-light .service-card:hover p {
    color: #4c5665 !important;
    transform: none !important;
}

@keyframes serviceCardIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    section.services.py-5.bg-light {
        padding: 86px 0 !important;
    }

    section.services.py-5.bg-light .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
    }

    section.services.py-5.bg-light .section-header h2 {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 768px) {
    section.services.py-5.bg-light {
        padding: 70px 0 !important;
    }

    section.services.py-5.bg-light .services-grid {
        gap: 18px !important;
        grid-template-columns: 1fr !important;
        margin-top: 40px !important;
    }

    section.services.py-5.bg-light .service-card {
        min-height: 0;
        padding: 28px 24px 26px !important;
    }

    section.services.py-5.bg-light .service-icon {
        height: 64px !important;
        margin-bottom: 22px !important;
        width: 64px !important;
    }

    section.services.py-5.bg-light .service-card h3 {
        max-width: none;
    }

    section.services.py-5.bg-light .section-header h2 {
        font-size: 2rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    section.services.py-5.bg-light .service-card {
        animation: none;
        opacity: 1;
        transition: none !important;
    }

    section.services.py-5.bg-light .service-card:hover,
    section.services.py-5.bg-light .service-card:hover .service-icon {
        transform: none !important;
    }
}

/* Homepage why choose cards */
.why-choose-us .section-header::before {
    content: none !important;
}

.why-choose-us .section-header h2::after {
    animation: none !important;
    background: linear-gradient(90deg, rgba(140, 106, 47, 0), #d4af37, rgba(14, 116, 144, 0.7), rgba(140, 106, 47, 0)) !important;
    background-clip: border-box !important;
    border-radius: 999px !important;
    bottom: -12px !important;
    content: '' !important;
    display: block !important;
    height: 3px !important;
    left: 50% !important;
    position: absolute !important;
    transform: translateX(-50%) !important;
    width: 112px !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
}

.why-choose-us .features-grid {
    counter-reset: why-card;
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)) !important;
    margin-top: 54px !important;
}

.why-choose-us .feature-card {
    --why-accent: #8c6a2f;
    --why-accent-rgb: 140, 106, 47;
    --why-soft: #fff8e5;

    align-items: flex-start !important;
    background:
        linear-gradient(135deg, rgba(var(--why-accent-rgb), 0.1) 0%, rgba(255, 255, 255, 0) 42%),
        #ffffff !important;
    border: 1px solid rgba(23, 32, 51, 0.09) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08) !important;
    counter-increment: why-card;
    display: flex !important;
    flex-direction: column !important;
    min-height: 270px;
    opacity: 1 !important;
    overflow: hidden !important;
    padding: 34px 30px 30px !important;
    position: relative !important;
    text-align: left !important;
    transform: none !important;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease !important;
}

.why-choose-us .feature-card:nth-child(1) {
    --why-accent: #a16207;
    --why-accent-rgb: 161, 98, 7;
    --why-soft: #fff7ed;
}

.why-choose-us .feature-card:nth-child(2) {
    --why-accent: #0f766e;
    --why-accent-rgb: 15, 118, 110;
    --why-soft: #ecfeff;
}

.why-choose-us .feature-card:nth-child(3) {
    --why-accent: #2563eb;
    --why-accent-rgb: 37, 99, 235;
    --why-soft: #eff6ff;
}

.why-choose-us .feature-card:nth-child(4) {
    --why-accent: #9a3412;
    --why-accent-rgb: 154, 52, 18;
    --why-soft: #fff1eb;
}

.why-choose-us .feature-card:nth-child(5) {
    --why-accent: #7c3aed;
    --why-accent-rgb: 124, 58, 237;
    --why-soft: #f5f3ff;
}

.why-choose-us .feature-card:nth-child(6) {
    --why-accent: #be123c;
    --why-accent-rgb: 190, 18, 60;
    --why-soft: #fff1f2;
}

.why-choose-us .feature-card::before {
    animation: none !important;
    background: var(--why-accent) !important;
    bottom: auto !important;
    content: '' !important;
    height: 4px !important;
    left: 0 !important;
    opacity: 1 !important;
    position: absolute !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
    transition: width 0.3s ease !important;
    width: 48% !important;
    z-index: 2 !important;
}

.why-choose-us .feature-card::after {
    color: rgba(23, 32, 51, 0.075);
    content: counter(why-card, decimal-leading-zero);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    right: 22px;
    top: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

.why-choose-us .feature-card:hover {
    border-color: rgba(var(--why-accent-rgb), 0.36) !important;
    box-shadow: 0 26px 58px rgba(var(--why-accent-rgb), 0.16) !important;
    transform: translateY(-8px) !important;
}

.why-choose-us .feature-card:hover::before {
    left: 0 !important;
    width: 100% !important;
}

.why-choose-us .feature-card:hover::after {
    color: rgba(var(--why-accent-rgb), 0.12);
    transform: translateY(-3px);
}

.why-choose-us .feature-icon {
    align-items: center !important;
    background:
        linear-gradient(135deg, rgba(var(--why-accent-rgb), 0.13), rgba(var(--why-accent-rgb), 0.04)),
        var(--why-soft) !important;
    border: 1px solid rgba(var(--why-accent-rgb), 0.2) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--why-accent) !important;
    display: flex !important;
    height: 70px !important;
    justify-content: center !important;
    margin: 0 0 26px !important;
    position: relative !important;
    transform: none !important;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease !important;
    width: 70px !important;
    z-index: 1;
}

.why-choose-us .feature-icon i {
    animation: none !important;
    color: currentColor !important;
    font-size: 1.75rem !important;
    line-height: 1 !important;
    text-shadow: none !important;
    transform: none !important;
}

.why-choose-us .feature-card:hover .feature-icon {
    background: var(--why-accent) !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.why-choose-us .feature-card h3 {
    color: #172033 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    margin: 0 0 13px !important;
    position: relative;
    z-index: 1;
}

.why-choose-us .feature-card h3::after {
    background: rgba(var(--why-accent-rgb), 0.5);
    content: '';
    display: block;
    height: 2px;
    margin-top: 13px;
    transition: width 0.3s ease;
    width: 34px;
}

.why-choose-us .feature-card:hover h3::after {
    width: 58px;
}

.why-choose-us .feature-card p {
    color: #5d6675 !important;
    font-size: 0.97rem !important;
    line-height: 1.72 !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .why-choose-us .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .why-choose-us .features-grid {
        gap: 18px !important;
        grid-template-columns: 1fr !important;
        margin-top: 40px !important;
    }

    .why-choose-us .feature-card {
        min-height: 0;
        padding: 28px 24px 26px !important;
    }

    .why-choose-us .feature-icon {
        height: 64px !important;
        margin-bottom: 22px !important;
        width: 64px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .why-choose-us .feature-card,
    .why-choose-us .feature-icon,
    .why-choose-us .feature-card::before,
    .why-choose-us .feature-card::after {
        transition: none !important;
    }

    .why-choose-us .feature-card:hover,
    .why-choose-us .feature-card:hover .feature-icon {
        transform: none !important;
    }
}
