@layer tokens, base, components, sections, page, utility;

/* Layer order. Repeated in every file so a CSS combiner cannot reorder it. */
@layer tokens, base, components, sections, page, utility;

/* ============================================================
   PPCBud — legacy components still in use (v5.0)

   Everything the design system owns has been removed. What remains
   is only the handful of blocks still referenced by templates:
   case-study cards, review cards and the booking form.

   Wrapped in @layer components so it can never outrank brand.css
   through load order.
   ============================================================ */

@layer components {

.pb-case-studies { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.pb-case-card {
    background: var(--pb-card); border: 1px solid var(--pb-border);
    padding: 32px; transition: transform .2s, border-color .2s;
}

.pb-case-card:hover { transform: translateY(-4px); border-color: rgba(210,255,50,0.3); }

.pb-case-region { font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pb-brand); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--pb-font-body); }

.pb-case-region::before { content:''; width:16px; height:1px; background:var(--pb-brand); }

.pb-case-industry { font-family: var(--pb-font-head); font-weight: 800; font-size: 20px; color: var(--pb-white); margin-bottom: 20px; }

.pb-case-metrics { display: flex; flex-direction: column; gap: 12px; }

.pb-case-metric { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--pb-border); }

.pb-case-metric:last-child { border: none; }

.pb-metric-label { font-size: 10px; color: #666; font-family: var(--pb-font-body); }

.pb-metric-val { font-family: var(--pb-font-head); font-weight: 700; font-size: 16px; color: var(--pb-brand); }

/* ============================================================
   REVIEWS GRID
   ============================================================ */
.pb-reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }

.pb-review-card { background: var(--pb-card); border: 1px solid var(--pb-border); padding: 28px; transition: border-color .2s; }

.pb-review-card:hover { border-color: rgba(210,255,50,0.2); }

.pb-review-stars { color: var(--pb-brand); font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }

.pb-review-text { font-size: 13px; color: #888; line-height: 1.8; margin-bottom: 20px; font-style: italic; font-family: var(--pb-font-body); }

.pb-review-author { display: flex; align-items: center; gap: 12px; }

.pb-review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pb-card2); border: 1px solid var(--pb-border); display: flex; align-items: center; justify-content: center; font-family: var(--pb-font-head); font-weight: 700; font-size: 14px; color: var(--pb-brand); }

.pb-review-name { font-family: var(--pb-font-head); font-weight: 700; font-size: 13px; color: var(--pb-white); }

.pb-review-role { font-size: 10px; color: var(--pb-muted); margin-top: 2px; font-family: var(--pb-font-body); }

.pb-review-metric { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pb-border); font-size: 10px; color: var(--pb-brand); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--pb-font-body); }

/* ============================================================
   BOOKING FORM
   ============================================================ */
.pb-booking-form { background: var(--pb-card); border: 1px solid var(--pb-border); padding: 40px; }

.pb-case-studies, .pb-reviews-grid { grid-template-columns: 1fr; }

}
