/* ============================================================
   Evoltima Services Section — style.css
   Depends on evoltima-base.css for CSS variables
   ============================================================ */

/* ── Section layout ───────────────────────────────────────── */

.evoltima-services {
    background-color: var(--evoltima-bg);
}

/* ── Header row (heading + top-right link) ────────────────── */

.evoltima-services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
}

.evoltima-services__heading {
    font-family: var(--evoltima-font-serif);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 400;
    line-height: 1.35;
    color: var(--evoltima-text);
    margin: 0;
    max-width: 520px;
}

.evoltima-services__header-link {
    flex-shrink: 0;
    font-family: var(--evoltima-font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--evoltima-text-muted);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    margin-top: 6px;
    transition: color 0.2s ease;
}

.evoltima-services__header-link:hover {
    color: var(--evoltima-accent);
}

/* ── Grid ─────────────────────────────────────────────────── */

.evoltima-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--evoltima-gap);
}

/* ── Card ─────────────────────────────────────────────────── */

.evoltima-services__card {
    /* portrait ratio */
    aspect-ratio: 3 / 4;
    min-height: 320px;
}

.evoltima-services__card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--evoltima-bg-card);
    background-size: cover;
    background-position: center top;
    transition: transform 0.4s ease;
}

.evoltima-services__card-inner:hover {
    transform: translateY(-5px);
}

/* dark gradient from bottom */
.evoltima-services__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.30) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    transition: background 0.3s ease;
    pointer-events: none;
}

.evoltima-services__card-inner:hover .evoltima-services__card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.38) 50%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

/* ── Card content (title + description) ──────────────────── */

.evoltima-services__card-content {
    position: relative;
    z-index: 1;
    padding: 0 22px 14px;
}

.evoltima-services__card-title {
    font-family: var(--evoltima-font-serif);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    color: var(--evoltima-text-light);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.evoltima-services__card-desc {
    font-family: var(--evoltima-font-sans);
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.80);
    margin: 0;
}

/* ── Card footer (button) ─────────────────────────────────── */

.evoltima-services__card-footer {
    position: relative;
    z-index: 1;
    padding: 0 22px 22px;
}

.evoltima-services__card-btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background-color: var(--evoltima-btn-bg);
    color: var(--evoltima-btn-text);
    font-family: var(--evoltima-font-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.evoltima-services__card-btn:hover {
    background-color: var(--evoltima-btn-bg-hover);
    color: var(--evoltima-btn-text);
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet: 2 columns */
@media (max-width: 960px) {
    .evoltima-services__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .evoltima-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 540px) {
    .evoltima-services {
        padding: 56px 0;
    }

    .evoltima-services__header {
        margin-bottom: 32px;
    }

    .evoltima-services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .evoltima-services__card {
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }
}
