/*
 * SERVICES COMPONENT STYLES
 */

.hp-services {
    background-color: var(--h-color-bg);
    position: relative;
    overflow: hidden; /* Contains any decorative backgrounds */
}

/* Header Section */
.hp-services__header {
    max-width: 600px;
    margin: 0 auto var(--h-space-12);
}

.hp-services__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--h-radius-full);
    background-color: rgba(21, 111, 247, 0.08);
    color: var(--h-color-primary);
    font-size: var(--h-text-sm);
    font-weight: var(--h-weight-bold);
    letter-spacing: 0.05em;
    margin-bottom: var(--h-space-4);
    text-transform: uppercase;
}

.hp-services__title {
    font-size: var(--h-text-3xl);
    font-weight: var(--h-weight-bold);
    line-height: var(--h-line-height-tight);
    margin-bottom: var(--h-space-4);
    color: var(--h-color-text);
}

@media (min-width: 768px) {
    .hp-services__title {
        font-size: var(--h-text-4xl);
    }
}

/* Fallback gradient if hero.css is not present */
.hp-services__title .hp-text-gradient {
    background: linear-gradient(135deg, var(--h-color-primary) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-services__description {
    font-size: var(--h-text-lg);
    line-height: var(--h-line-height-relaxed);
}

/* Services Grid */
.hp-services__grid {
    display: grid;
    gap: var(--h-space-6);
    grid-template-columns: 1fr;
    margin-bottom: var(--h-space-16);
    /* Mobile safeguard against blowout */
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .hp-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hp-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Card */
.hp-service-card {
    position: relative;
    background: var(--h-color-surface);
    border: 1px solid var(--h-color-border);
    border-radius: var(--h-radius-xl);
    padding: var(--h-space-8);
    transition: all var(--h-transition-normal);
    display: flex;
    flex-direction: column;
    /* Soft shadow on rest */
    box-shadow: var(--h-shadow-sm);
    /* Safeguards */
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.hp-service-card:hover {
    box-shadow: var(--h-shadow-xl);
    border-color: var(--h-color-border-subtle);
    transform: translateY(-4px);
}

/* Subtle accent background line at top */
.hp-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--h-color-primary));
    opacity: 0.8;
}

/* Icon */
.hp-service-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--h-radius-lg);
    background: color-mix(in srgb, var(--card-accent, var(--h-color-primary)) 10%, transparent);
    color: var(--card-accent, var(--h-color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--h-space-6);
    font-size: 24px;
}

.hp-service-card__icon-wrap .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Typography */
.hp-service-card__title {
    font-size: var(--h-text-xl);
    font-weight: var(--h-weight-semibold);
    margin-bottom: var(--h-space-3);
    color: var(--h-color-text);
    word-break: break-word;
}

.hp-service-card__desc {
    font-size: var(--h-text-base);
    margin-bottom: var(--h-space-6);
    flex-grow: 1; /* Pushes features/button down if content varies */
}

/* Features */
.hp-service-card__features {
    list-style: none;
    margin: 0 0 var(--h-space-6) 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--h-space-2);
}

.hp-service-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--h-space-2);
    font-size: var(--h-text-sm);
    color: var(--h-color-text-secondary);
    line-height: var(--h-line-height-snug);
    word-break: break-word;
}

.hp-service-card__features li .dashicons {
    color: var(--h-color-success);
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA Arrow Button */
.hp-service-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--h-radius-full);
    background: var(--h-color-bg);
    color: var(--h-color-text);
    border: 1px solid var(--h-color-border);
    transition: all var(--h-transition-fast);
    text-decoration: none;
    margin-top: auto; /* Pushes to bottom right conceptually */
    align-self: flex-end; /* Align right */
    flex-shrink: 0;
}

.hp-service-card__btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.hp-service-card:hover .hp-service-card__btn {
    background: var(--card-accent, var(--h-color-primary));
    color: #ffffff;
    border-color: var(--card-accent, var(--h-color-primary));
}

