/* Homepage extras — case studies, verticals, process, CTA, extra grids */

.hm-section {
    padding: var(--section-padding-y, 80px) var(--section-padding-x, 5%);
    background: #fff;
}

.hm-section--muted {
    background: #f8fafc;
}

.hm-inner {
    max-width: var(--section-max-width, 1320px);
    margin: 0 auto;
}

.hm-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent, #1276c6);
    margin-bottom: 0.75rem;
}

.hm-title {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary, #13253c);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.hm-lead {
    max-width: 640px;
    color: var(--text-secondary, #31475b);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 var(--space-5, 3rem);
}

.hm-head {
    margin-bottom: var(--space-5, 3rem);
}

.hm-head--center {
    text-align: center;
}

.hm-head--center .hm-lead {
    margin-left: auto;
    margin-right: auto;
}

.hm-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent, #1276c6);
    background: #eaf4ff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #1276c6);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    margin-top: 0.85rem;
}

.hm-link:hover {
    color: #0d5f9f;
}

.hm-btn {
    display: inline-block;
    background: var(--accent, #1276c6);
    color: #fff;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hm-btn:hover {
    background: #0d5f9f;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18, 118, 198, 0.28);
}

.hm-btn--ghost {
    background: #fff;
    color: var(--accent, #1276c6);
}

.hm-btn--ghost:hover {
    background: #eaf4ff;
    color: #0d5f9f;
}

/* Process */
.hm-process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    counter-reset: hm-step;
}

.hm-step {
    position: relative;
    background: #EBF7FF;
    border: 1px solid #e2eaf1;
    border-radius: 20px;
    padding: 1.5rem 1.25rem 1.4rem;
}

.hm-step::before {
    counter-increment: hm-step;
    content: counter(hm-step, decimal-leading-zero);
    display: block;
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent, #1276c6);
    margin-bottom: 0.7rem;
}

.hm-step h3 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 1.05rem;
    color: var(--text-primary, #13253c);
    margin: 0 0 0.5rem;
}

.hm-step p {
    font-size: 0.9rem;
    color: var(--text-secondary, #31475b);
    line-height: 1.55;
    margin: 0;
}

/* Case studies */
.hm-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hm-case {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2eaf1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px -12px rgba(19, 37, 60, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.hm-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(18, 118, 198, 0.28);
}

.hm-case__media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.hm-case__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-case__body {
    padding: 1.25rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hm-case h3 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 1.12rem;
    color: var(--text-primary, #13253c);
    margin: 0.65rem 0 0.5rem;
    line-height: 1.35;
}

.hm-case p {
    font-size: 0.92rem;
    color: var(--text-secondary, #31475b);
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.hm-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hm-metric {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d5f9f;
    background: #eaf4ff;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
}

/* Project mosaic */
.hm-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    margin-top: var(--space-5, 3rem);
}

.hm-project {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2eaf1;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -14px rgba(18, 118, 198, 0.3);
}

.hm-project img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.hm-project__body {
    padding: 1rem 1.05rem 1.15rem;
}

.hm-project h3 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 1rem;
    margin: 0.45rem 0 0.4rem;
    color: var(--text-primary, #13253c);
}

.hm-project p {
    font-size: 0.85rem;
    color: var(--text-secondary, #31475b);
    line-height: 1.5;
    margin: 0;
}

/* Verticals */
.hm-verticals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.hm-vert {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2eaf1;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hm-vert:hover {
    transform: translateY(-3px);
    border-color: var(--accent, #1276c6);
}

.hm-vert img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.hm-vert__body {
    padding: 0.85rem 0.95rem 1rem;
}

.hm-vert h3 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
    color: var(--text-primary, #13253c);
}

.hm-vert p {
    font-size: 0.8rem;
    color: var(--text-secondary, #31475b);
    line-height: 1.45;
    margin: 0;
}

/* Quote grid */
.hm-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: var(--space-5, 3rem);
    text-align: left;
}

.hm-quote {
    background: #EBF7FF;
    border: 1px solid #e2eaf1;
    border-radius: 20px;
    padding: 1.4rem 1.35rem 1.3rem;
}

.hm-quote p {
    font-size: 0.95rem;
    color: var(--text-secondary, #31475b);
    line-height: 1.65;
    margin: 0 0 1.1rem;
    font-style: italic;
}

.hm-quote__who {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dbeafe;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    object-fit: cover;
    object-position: center 20%;
}

.hm-quote__who strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary, #13253c);
}

.hm-quote__who span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary, #31475b);
}

/* CTA band */
.hm-cta {
    padding: var(--section-padding-y, 80px) var(--section-padding-x, 5%);
    background: linear-gradient(100deg, #0b5d9d, #1276c6 48%, #3bb6ee);
    color: #fff;
}

.hm-cta .hm-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hm-cta .hm-kicker {
    color: #d7efff;
}

.hm-cta .hm-title {
    color: #fff;
    margin-bottom: 0.6rem;
}

.hm-cta .hm-lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.hm-cta__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .hm-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hm-cases-grid,
    .hm-quotes {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-projects-grid,
    .hm-verticals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .hm-process-grid,
    .hm-cases-grid,
    .hm-projects-grid,
    .hm-verticals-grid,
    .hm-quotes {
        grid-template-columns: 1fr;
    }

    .hm-cta .hm-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hm-case__media,
    .hm-project img,
    .hm-vert img {
        height: 170px;
    }
}
