/* ============================================
   ALTUS CXO - SERVICES CARDS
   v3 - full width, larger sizing
   ============================================ */

.services-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 40px;
    box-sizing: border-box;
}

.services-card {
    background: var(--altus-light-bg, #f6f5f5);
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.services-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.services-card__inner {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.services-card__icon {
    margin-bottom: 20px;
}

.services-card__icon .fas {
    font-size: 36px;
    color: #1dce79;
}

.services-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #303030;
    margin: 0 0 14px;
    line-height: 1.3;
}

.services-card__tagline {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    color: #303030;
    line-height: 1.6;
    margin: 0 0 28px;
    flex: 1;
}
.services-card__cta {
    margin-top: auto;
}

.services-card__btn {
    display: inline-block;
    background: #1dce79;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none !important;
    transition: opacity 0.2s;
    line-height: 1.4;
}

.services-card__btn:hover {
    opacity: 0.85;
}

.services-card__btn--no-link {
    background: transparent;
    color: #1dce79 !important;
    border: 1px solid #aca69c;
    cursor: default;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 24px 40px;
    }
}

@media (max-width: 767px) {
    .services-cards {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
        gap: 16px;
    }
    .services-card__inner {
        padding: 32px 24px;
    }
    .services-card__title {
        font-size: 22px;
    }
    .services-card__tagline {
        font-size: 15px;
    }
}



/* ClearXO promo card */
.services-card--filler {
    background: #c4bfb8 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2227.713%22%20height%3D%2224.0%22%3E%0A%20%20%3Cpath%20d%3D%22M6.928%2C0%20L13.856%2C4.0%20L13.856%2C12.0%20L6.928%2C16.0%20L0%2C12.0%20L0%2C4.0%20Z%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.08%29%22%20stroke-width%3D%220.7%22/%3E%0A%20%20%3Cpath%20d%3D%22M20.785%2C0%20L27.713%2C4.0%20L27.713%2C12.0%20L20.785%2C16.0%20L13.856%2C12.0%20L13.856%2C4.0%20Z%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.08%29%22%20stroke-width%3D%220.7%22/%3E%0A%20%20%3Cline%20x1%3D%226.928%22%20y1%3D%2216.0%22%20x2%3D%226.928%22%20y2%3D%2224.0%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.08%29%22%20stroke-width%3D%220.7%22/%3E%0A%20%20%3Cline%20x1%3D%2220.785%22%20y1%3D%2216.0%22%20x2%3D%2220.785%22%20y2%3D%2224.0%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.08%29%22%20stroke-width%3D%220.7%22/%3E%0A%3C/svg%3E") repeat;
}

.services-card--filler .services-card__icon .fas {
    color: var(--altus-dark, #303030);
}

.services-card--filler .services-card__title {
    color: var(--altus-dark, #303030);
    font-size: 26px;
    font-weight: 700;
}

.services-card--filler .services-card__tagline {
    color: #ffffff;
}

.services-card--filler .services-card__btn {
    background: var(--altus-dark, #303030);
    color: #ffffff !important;
}

.services-card--filler .services-card__btn:hover {
    opacity: 0.85;
}

/* Span 1-3 columns based on remainder */
.services-card--span-1 { grid-column: span 1; }
.services-card--span-2 { grid-column: span 2; }
.services-card--span-3 { grid-column: span 3; }
/* span-4: full-width banner layout */
.services-card--span-4 { grid-column: span 4; }

.services-card--span-4 .services-card__inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding: 32px 36px;
}

.services-card--span-4 .filler-card__primary {
    flex: 1;
    height: auto;
}

.services-card--span-4 .filler-card__extended {
    display: block;
    flex: 2;
}

.services-card--span-4 .filler-card__desc {
    font-size: 15px;
    margin: 0 0 12px;
}

.services-card--span-4 .filler-card__features {
    grid-template-columns: repeat(4, auto);
    gap: 8px 24px;
}

/* On tablet (2-col grid), cap span at 2 */
@media (max-width: 1100px) {
    .services-card--span-3,
    .services-card--span-4 { grid-column: span 2; }

    .services-card--span-4 .services-card__inner {
        flex-direction: column;
        padding: 28px 24px;
    }

    .services-card--span-4 .filler-card__primary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .services-card--span-4 .filler-card__features {
        grid-template-columns: 1fr 1fr;
    }
}

/* On mobile (1-col), no spanning */
@media (max-width: 480px) {
    .services-card--span-2,
    .services-card--span-3,
    .services-card--span-4 { grid-column: span 1; }
}

/* ---- Filler card layout variants ---- */

/* Extended content hidden by default (span-1) */
.filler-card__extended {
    display: none;
}

.filler-card__primary {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* span-2: horizontal split, show extended */
.industry-card--span-2 .industry-card__inner,
.services-card--span-2 .services-card__inner {
    flex-direction: row;
    align-items: center;
    gap: 36px;
}

.industry-card--span-2 .filler-card__primary,
.services-card--span-2 .filler-card__primary {
    flex: 1;
    height: auto;
}

.industry-card--span-2 .filler-card__extended,
.services-card--span-2 .filler-card__extended {
    display: block;
    flex: 1;
}

/* span-3: horizontal split, more room for extended */
.industry-card--span-3 .industry-card__inner,
.services-card--span-3 .services-card__inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.industry-card--span-3 .filler-card__primary,
.services-card--span-3 .filler-card__primary {
    flex: 1;
    height: auto;
}

.industry-card--span-3 .filler-card__extended,
.services-card--span-3 .filler-card__extended {
    display: block;
    flex: 2;
}

/* Extended content typography */
.filler-card__desc {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 20px;
}

.filler-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filler-card__features li {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: var(--altus-dark, #303030);
}

.filler-card__features .fas {
    color: #ffffff;
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive: collapse to vertical on tablet/mobile */
@media (max-width: 1100px) {
    .industry-card--span-2 .industry-card__inner,
    .industry-card--span-3 .industry-card__inner,
    .services-card--span-2 .services-card__inner,
    .services-card--span-3 .services-card__inner {
        flex-direction: column;
    }

    .filler-card__features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .filler-card__extended {
        display: none !important;
    }
}

/* ---- Clickable full-card links ---- */
.services-card {
    position: relative;
    cursor: pointer;
}

.services-card a.services-card__btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.services-card__inner {
    position: relative;
    z-index: 0;
}

.services-card a.services-card__btn {
    position: relative;
    z-index: 2;
}

/* No-link cards shouldn't be clickable */
.services-card:has(.services-card__btn--no-link) {
    cursor: default;
}
