/*
 * components.css — Shared UI components used across all page types.
 * Extracted from calcium-carbonate-FINAL.html (gold standard).
 */

/* ── Buttons ── */
.btn-accent {
    padding: 13px 28px;
    background: var(--accent);
    color: var(--navy-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 167, 45, 0.3);
}

.btn-ghost {
    padding: 13px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline {
    padding: 10px 20px;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--navy-wash);
}

/* ── Cards ── */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 15px;
    height: 15px;
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 20px 24px;
}

/* ── Tags / Badges ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 4px;
    transition: transform 0.1s;
}

.tag:hover {
    transform: translateY(-1px);
}

.tag-role {
    background: var(--navy-wash);
    color: var(--navy);
}

.tag-ind {
    background: var(--green-wash);
    color: var(--green);
}

.tag-syn {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    font-family: var(--mono);
    font-size: 10px;
}

.family-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 4px;
    background: rgba(233, 167, 45, 0.12);
    color: var(--accent);
    border: 1px solid rgba(233, 167, 45, 0.2);
}

.avail-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 500;
}

.avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
    display: inline-block;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    padding: 12px 32px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.breadcrumbs a {
    color: var(--navy);
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 8px;
    opacity: 0.35;
}

/* ── Section labels ── */
.section-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ── Footer CTA bar ── */
.footer-cta-bar {
    background: var(--navy-dark);
    padding: 56px 40px;
    text-align: center;
}

.footer-cta-bar h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.footer-cta-bar p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
}

.footer-cta-bar .btn-accent {
    display: inline-flex;
    margin: 0 auto;
}

/* ── Property grid ── */
.props {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prop {
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.prop-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.prop-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--mono);
    line-height: 1.45;
    word-break: break-word;
}

/* ── Responsive utilities ── */
@media (max-width: 600px) {
    .props {
        grid-template-columns: 1fr;
    }
}
