/* ==============================================================
   INNOSOL — "What We Do" services block
   Shared by the homepage and the services page
   (markup: partials/services-block.php). Also provides the hp-section,
   hp-head, hp-eyebrow and link styles the homepage sections reuse.
   ============================================================== */

/* -------------------- Section scaffolding -------------------- */
.hp-section { padding: 88px 0; background: #fff; }
.hp-section--soft { background: var(--surface-soft); }

.hp-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.hp-head h2 { font-size: calc(clamp(1.75rem, 1.1rem + 2.2vw, 2.6rem) - 2px); margin-bottom: 14px; text-wrap: balance; }
.hp-head p { font-size: 0.935rem; line-height: 1.7; }

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 0.675rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-indigo);
}
.hp-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-orange); }

.hp-arrow { flex-shrink: 0; transition: transform var(--dur) ease; }
.btn:hover .hp-arrow,
.hp-link:hover .hp-arrow { transform: translateX(3px); }

.hp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-family: var(--font-display);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--brand-indigo);
}
.hp-link:hover { color: var(--brand-indigo-deep); text-decoration: underline; text-underline-offset: 4px; }
.hp-sublink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.775rem;
    color: var(--text-2);
    text-decoration: underline;
    text-decoration-color: rgba(74,85,104,0.4);
    text-underline-offset: 3px;
}
.hp-sublink:hover { color: var(--brand-indigo); text-decoration-color: currentColor; }

/* Service cards */
.hp-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hp-service {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 24px;
    background: #fff;
    border: 1px solid rgba(11,18,32,0.08);
    border-radius: 20px;
    transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.hp-service::before {
    content: "";
    position: absolute;
    top: -1px; left: 28px; right: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--brand-indigo), var(--brand-orange));
}
.hp-service:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(44,48,147,0.12); border-color: rgba(44,48,147,0.18); }
.hp-service-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(44,48,147,0.08);
    color: var(--brand-indigo);
}
.hp-service h3 { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.3; }
.hp-service > p { margin-bottom: 18px; font-size: 0.855rem; line-height: 1.65; }
.hp-ticks { display: grid; gap: 8px; margin-bottom: 22px; }
.hp-ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.825rem; line-height: 1.45; color: var(--ink-700); }
.hp-ticks svg { flex-shrink: 0; margin-top: 1px; color: var(--brand-orange-dark); }
/* Primary action and "Service details" stack the same way on every card,
   so the rows line up across the three cards. */
.hp-service-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(11,18,32,0.08);
}



/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
    .hp-service-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
}

@media (max-width: 767px) {
    .hp-section { padding: 56px 0; }
    .hp-head { margin-bottom: 28px; text-align: left; }
    .hp-head p { font-size: 0.875rem; }
    .hp-service-grid { gap: 16px; }
    .hp-ticks { gap: 6px; margin-bottom: 16px; }
}

@media (max-width: 600px) {
    .hp-service { padding: 28px 22px 18px; }
}

@media (min-width: 360px) and (max-width: 600px) {
    .hp-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
}
