/* Customers + Resources pages — shared styles for the "library" of
 * case studies, press coverage and educational articles. Extends
 * style.css (nav, buttons, footer, section utilities).
 */

/* ─── Hero (page-top intro) ─────────────────────────────────────────── */

.lib-hero {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.lib-hero h1 {
    font-size: 2.6rem;
    max-width: 24ch;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lib-hero-lead {
    max-width: 60ch;
    color: var(--pix-text-soft);
}

.lib-section-h2 {
    margin-bottom: 0.5rem;
}

/* ─── Featured case study block (customers.html) ────────────────────── */

.lib-featured-section {
    padding-top: 2.5rem;
}

.lib-featured {
    background: var(--pix-panel);
    border: 1px solid var(--pix-border-soft);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    position: relative;
}

.lib-featured-badge {
    display: inline-block;
    background: var(--pix-cta);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.lib-featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lib-featured-grid h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.lib-quote {
    background: white;
    border-left: 4px solid var(--pix-cta);
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.75rem;
    border-radius: 0 6px 6px 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--pix-text);
}

.lib-quote p {
    margin: 0 0 0.75rem;
    font-style: italic;
}

.lib-quote footer {
    font-size: 0.9rem;
    color: var(--pix-text-soft);
    font-style: normal;
}

.lib-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--pix-text-soft);
}

.lib-highlights li::before {
    content: "✓";
    color: var(--pix-cta);
    font-weight: 700;
    margin-right: 0.4rem;
}

.lib-highlights strong {
    color: var(--pix-text);
}

/* Big decorative quote-mark on the visual side of the featured block */
.lib-featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.lib-featured-quote-mark {
    font-size: 14rem;
    color: var(--pix-cta);
    opacity: 0.15;
    line-height: 0.6;
    font-family: Georgia, serif;
    user-select: none;
}

/* ─── Cards grid (used by both pages) ───────────────────────────────── */

.lib-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.lib-card {
    background: white;
    border: 1px solid var(--pix-border-soft);
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--pix-text);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lib-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
    color: var(--pix-text);
}

.lib-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

.lib-card p {
    color: var(--pix-text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

.lib-card-tag {
    align-self: flex-start;
    background: rgba(25, 135, 84, 0.1);
    color: var(--pix-cta);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lib-card-tag-press {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.lib-card-tag-coming {
    background: #eeeae2;
    color: var(--pix-muted);
}

.lib-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pix-border-soft);
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--pix-muted);
}

.lib-card-link {
    color: var(--pix-cta);
    font-weight: 600;
    text-decoration: none;
}

.lib-card-link:hover { color: var(--pix-cta-hover); }

/* Placeholder card (customers page — "coming soon" panel) sits alongside
 * real cards but is visually a bit softer so the actual content leads. */
.lib-card-placeholder {
    background: var(--pix-panel);
    border-style: dashed;
    box-shadow: none;
    cursor: default;
}

.lib-card-placeholder:hover {
    transform: none;
    box-shadow: none;
}

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

@media (max-width: 991px) {
    .lib-hero h1 { font-size: 2rem; }
    .lib-featured { padding: 2rem 1.5rem; }
    .lib-featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .lib-featured-visual { display: none; } /* hide the decorative quote on tablet+ */
    .lib-highlights { grid-template-columns: 1fr; }
}
