/* Consulting hub and partner page. Depends on css/shared.css for variables, header
   and footer, and on css/engineering.css for the section chrome (hero, kicker,
   article container, author card) shared with the articles. Only what is specific
   to these two pages lives here. */

/* ── Availability badge ──────────────────────────────────────────────────── */
/* The hours figure is the first thing a delivery manager scans for, so it gets its
   own affordance in the hero rather than being buried in the closing paragraph. */
.cons-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 2rem;
    padding: 0.55rem 1.3rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.cons-availability::before {
    content: "";
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

/* Selectable plain text rather than a mailto:/tel: link, matching contact.html. A
   mailto does nothing on a machine with no desktop mail client. */
.cons-email,
.cons-phone {
    user-select: all;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.cons-main {
    padding: 20px 0 80px;
}

.cons-main .container {
    max-width: 1100px;
}

.cons-section {
    margin-bottom: 4rem;
}

.cons-section:last-of-type {
    margin-bottom: 0;
}

.cons-section-title {
    font-size: 1.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.cons-section-lead {
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 2.5rem;
}

/* The terms card sits between the capabilities grid and the writing index, so the
   section following it needs the card's own margin cleared off the top. */
.cons-section-spaced {
    margin-top: 4rem;
}

/* ── Capabilities ────────────────────────────────────────────────────────── */
/* Static panels, not links: the only clickable things inside are the inline
   article references, which must stay distinguishable from the surrounding prose. */
/* Restores the standoff the section lead would otherwise provide: this section has
   a title and then goes straight into the grid. */
.cons-section-title + .cons-cap-grid {
    margin-top: 2rem;
}

.cons-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.15rem;
}

.cons-cap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.35rem 1.4rem;
}

/* Last group is a single short line, so it runs the full width rather than
   leaving a ragged half-empty cell at the end of the grid. */
.cons-cap-wide {
    grid-column: 1 / -1;
}

.cons-cap h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0 0 0.55rem;
}

.cons-cap p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0;
}

/* Underlined by default: these links are the point of the section, and a colour
   change alone would not read as clickable inside a run of comma-separated terms. */
.cons-cap a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(147, 51, 234, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cons-cap a:hover,
.cons-cap a:focus-visible {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ── Terms list ──────────────────────────────────────────────────────────── */
.cons-terms {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
}

.cons-terms li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
}

.cons-terms li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ── Closing call to action ──────────────────────────────────────────────── */
/* Deliberately quieter than .eng-author above it: same content, second appearance. */
.cons-cta {
    max-width: 900px;
    margin: 3.5rem auto 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    padding: 2.1rem 2.25rem;
}

.cons-cta h2 {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
}

.cons-cta p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 1.4rem;
}

.cons-cta .eng-author-links {
    justify-content: center;
}

/* ── Card index ──────────────────────────────────────────────────────────── */
.cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* The whole card is the link, so it needs to be a block-level anchor with its
   own focus ring: removing the underline also removes the only default focus
   affordance a keyboard user would get. */
.cons-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.85rem 1.9rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cons-card:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.cons-card:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.cons-card-tag {
    align-self: flex-start;
    background: rgba(147, 51, 234, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(147, 51, 234, 0.35);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.cons-card h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.cons-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Pushes the metadata pair to the bottom so cards of unequal prose length still
   line up along their baselines. */
.cons-card-meta {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cons-card-more {
    margin-top: 0.85rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.cons-card-more::after {
    content: " →";
    transition: none;
}

.cons-card:hover .cons-card-more {
    color: var(--secondary-color);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cons-section-title {
        font-size: 1.55rem;
    }

    .cons-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cons-card {
        padding: 1.5rem 1.35rem;
    }

    .cons-cap-grid {
        grid-template-columns: 1fr;
    }

    .cons-cap {
        padding: 1.15rem 1.2rem;
    }

    .cons-cta {
        padding: 1.75rem 1.35rem;
    }
}

/* Users who ask for reduced motion still get the colour and shadow cues. */
@media (prefers-reduced-motion: reduce) {

    .cons-card,
    .cons-card:hover {
        transform: none;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
}

/* ── Partner page ────────────────────────────────────────────────────────── */
/* Prose column rather than the article pages' contents-rail grid: this page has no
   table of contents, so .eng-main's wide container would set an unreadable measure. */
.partner-main {
    padding: 20px 0 80px;
}

.partner-main .container {
    max-width: 940px;
}

/* Static panels, not links. The partnership models are content, so they must not
   pick up the card grid's hover lift or pointer affordance. */
.cons-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.15rem;
    margin: 1.75rem 0 1.5rem;
}

.cons-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.35rem 1.4rem;
}

.cons-panel h3 {
    font-size: 1.02rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.cons-panel p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0;
}

@media (max-width: 768px) {
    .cons-panels {
        grid-template-columns: 1fr;
    }
}
