/* components.css — shared UI elements. Expanded as new sections need them. */

/* ---- Eyebrow (small section label above headlines) ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    margin-bottom: var(--space-3);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--brand-primary);
}
.eyebrow--on-dark { color: var(--brand-primary-light); }
.eyebrow--on-dark::before { background: var(--brand-primary-light); }

/* ---- Headings within sections ---- */
.section-title {
    font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl));
    font-weight: var(--fw-bold);     /* 700 — softer than Black 800; matches Roofix */
    color: var(--text-heading);      /* slightly less stark than pure black */
    margin-bottom: var(--space-4);
}
.section-lede {
    font-size: var(--fs-md);
    color: var(--text-body);
    max-width: 56ch;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.btn--primary { background: var(--brand-primary); color: var(--brand-on-primary); }
.btn--primary:hover { background: var(--brand-primary-dark); color: var(--brand-on-primary); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border: 2px solid var(--text-on-dark); }
.btn--ghost:hover { background: var(--text-on-dark); color: var(--brand-primary-dark); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--fs-base); }

/* ---- Pill / badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}

/* ---- Card (generic) ---- */
.card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; background: var(--surface-placeholder); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-5); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.card__excerpt { color: var(--text-body); font-size: var(--fs-base); }
