/* color-charts.css — Color Charts page */

.cc-intro { padding-block: var(--space-16) var(--space-8); background: var(--bg-page); text-align: center; }
.cc-intro .section-lede { max-width: 800px; margin-inline: auto; color: var(--text-body); }

/* ---- Filter pills (same pattern as home-works) ---- */
.cc-filters { padding-block: var(--space-4) var(--space-8); background: var(--bg-page); }
.cc-filters__list {
    list-style: none; padding: 0; margin: 0;
    display: inline-flex; align-items: center; flex-wrap: wrap;
    justify-content: center;
}
.cc-filters .container { display: flex; justify-content: center; }
.cc-filters__list li { display: inline-flex; align-items: center; }
.cc-filters__list li + li::before {
    content: "|";
    color: var(--text-muted);
    margin: 0 var(--space-4);
    opacity: 0.45;
}
.cc-filter {
    padding: var(--space-2) 0;
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    cursor: pointer;
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.cc-filter[aria-pressed="true"] {
    color: var(--text-heading);
    border-bottom-color: var(--brand-primary);
}
.cc-filter:hover { color: var(--brand-primary); }

/* ---- Swatch grid ---- */
.cc-grid-section { padding-block: var(--space-4) var(--space-16); background: var(--bg-page); }
.cc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}
@media (max-width: 1080px) { .cc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cc-grid { grid-template-columns: 1fr; } }

.swatch {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 240ms ease, box-shadow 240ms ease;
}
.swatch:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 16, 17, 0.12);
}
.swatch__chip {
    aspect-ratio: 4 / 3;
    position: relative;
    transition: filter 180ms ease;
}
.swatch__hex {
    position: absolute;
    bottom: var(--space-3); right: var(--space-3);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono, monospace);
    font-size: var(--fs-xs);
    background: rgba(0, 0, 0, 0.30);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}
.swatch__meta { padding: var(--space-4) var(--space-5) var(--space-5); }
.swatch__name {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
    margin: 0 0 var(--space-2);
}
.swatch__tags {
    display: flex; gap: var(--space-2);
    margin: 0; flex-wrap: wrap;
}
.swatch__tag {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: var(--fw-semibold);
}
.swatch__tag--gauge {
    background: var(--brand-primary-tint);
    color: var(--brand-primary);
}
.swatch__tag--finish {
    background: var(--bg-soft);
    color: var(--text-muted);
}

/* Filter visibility */
.swatch[hidden] { display: none; }

/* ---- Manufacturer cards ---- */
.cc-manufacturers { padding-block: var(--space-16); background: var(--bg-soft); }
.cc-manufacturers__head { text-align: center; margin-bottom: var(--space-10); }

.cc-manufacturers__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}
@media (max-width: 720px) { .cc-manufacturers__grid { grid-template-columns: 1fr; } }

.manuf-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 16, 17, 0.08);
    transition: transform 280ms ease, box-shadow 280ms ease;
    display: flex; flex-direction: column;
}
.manuf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 16, 17, 0.14);
}

/* Dark brand-green header banner with the manufacturer name */
.manuf-card__header {
    position: relative;
    padding: var(--space-8) var(--space-8) var(--space-8);
    background:
        linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-on-dark);
    overflow: hidden;
}
/* Subtle blueprint grid overlay on the header */
.manuf-card__header::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
/* Decorative oversized icon in the bottom-right of the header */
.manuf-card__header::after {
    content: '';
    position: absolute;
    right: -30px; bottom: -30px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.manuf-card__icon {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-on-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--fs-xl);
    margin-bottom: var(--space-4);
    z-index: 1;
}
.manuf-card__tag {
    position: relative;
    z-index: 1;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: var(--fw-semibold);
    color: rgba(255, 255, 255, 0.80);
    margin: 0 0 var(--space-2);
}
.manuf-card__name {
    position: relative;
    z-index: 1;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-on-dark);
    margin: 0 0 var(--space-3);
    line-height: 1.15;
}
.manuf-card__desc {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.90);
    font-size: var(--fs-sm);
    line-height: 1.55;
    margin: 0;
    max-width: 42ch;
}

/* Link list — each entry is a button-style row with icon + label + chevron */
.manuf-card__links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
}
.manuf-card__links li {
    border-top: 1px solid var(--border-subtle);
}
.manuf-card__links li:first-child { border-top: 0; }
.manuf-card__links a {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    color: var(--text-strong);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: background 220ms ease, color 220ms ease;
}
.manuf-card__links a:hover,
.manuf-card__links a:focus-visible {
    background: var(--brand-primary-tint);
    color: var(--brand-primary);
    outline: 0;
}
.manuf-card__links > li > a > i:first-child {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-primary-tint);
    color: var(--brand-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--fs-md);
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.manuf-card__links a:hover > i:first-child {
    background: var(--brand-primary);
    color: var(--text-on-dark);
    transform: scale(1.06);
}
.manuf-card__link-label {
    display: flex; flex-direction: column; gap: 2px;
    line-height: 1.3;
    min-width: 0;
}
.manuf-card__link-label strong {
    color: var(--text-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    transition: color 220ms ease;
}
.manuf-card__link-label em {
    color: var(--text-muted);
    font-style: normal;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: var(--fw-semibold);
}
.manuf-card__links a:hover .manuf-card__link-label strong { color: var(--brand-primary-dark); }
.manuf-card__link-arrow {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    transition: color 220ms ease, transform 220ms ease;
}
.manuf-card__links a:hover .manuf-card__link-arrow {
    color: var(--brand-primary);
    transform: translate(2px, -2px);
}

.cc-manufacturers__note {
    margin-top: var(--space-8);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    max-width: 720px;
    margin-inline: auto;
}
