/* ===========================================================================
   BR Services Grid - service cards (dark theme, gold accent)
   =========================================================================== */
.pxl-sg { --pxl-sg-accent: #bd9a5f; position: relative; }
.pxl-sg-wrap { position: relative; }

/* ---------- Header ---------- */
.pxl-sg--header { position: relative; z-index: 1; margin-bottom: 50px; }
.pxl-sg.align-center .pxl-sg--header { text-align: center; }
.pxl-sg.align-center .pxl-sg--header > * { margin-left: auto; margin-right: auto; }
.pxl-sg.align-center .pxl-sg--eyebrow { justify-content: center; }
.pxl-sg--eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--pxl-sg-accent); font-size: 13px; font-weight: 600;
    letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 16px;
}
.pxl-sg--eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--pxl-sg-accent); opacity: .8; }
.pxl-sg--title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 700; margin: 0 0 16px; letter-spacing: -.01em; }
.pxl-sg--intro { margin: 0; font-size: 16px; line-height: 1.8; color: color-mix(in srgb, currentColor 62%, transparent); max-width: 620px; }

/* ---------- Grid ---------- */
.pxl-sg--grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pxl-sg--grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pxl-sg--grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Card ---------- */
.pxl-sg-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    transition: transform .5s cubic-bezier(.22,1,.36,1), border-color .4s ease, box-shadow .5s ease, background .4s ease;
}
.pxl-sg-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--pxl-sg-accent) 45%, transparent);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 34px 62px -34px rgba(0, 0, 0, .85);
}
.pxl-sg-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #151515; }
.pxl-sg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.pxl-sg-card:hover .pxl-sg-card__media img { transform: scale(1.06); }

.pxl-sg-card__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.pxl-sg-card__title { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
.pxl-sg-card__title a { color: inherit; text-decoration: none; transition: color .3s ease; }
.pxl-sg-card:hover .pxl-sg-card__title a { color: var(--pxl-sg-accent) !important; }
.pxl-sg-card__text { margin: 0 0 20px; font-size: 15px; line-height: 1.75; color: color-mix(in srgb, currentColor 60%, transparent); }
.pxl-sg-card__more {
    margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
    color: var(--pxl-sg-accent) !important; font-weight: 600; font-size: 14px; letter-spacing: .3px;
    text-decoration: none; width: fit-content;
}
.pxl-sg-card__more i { font-size: 12px; transition: transform .3s ease; }
.pxl-sg-card__more:hover i { transform: translateX(5px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .pxl-sg--grid, .pxl-sg--grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pxl-sg--grid, .pxl-sg--grid.cols-2, .pxl-sg--grid.cols-3 { grid-template-columns: 1fr; } .pxl-sg--header { margin-bottom: 36px; } }

/* ---------- color-mix fallback ---------- */
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    .pxl-sg--intro { color: rgba(255, 255, 255, .62); }
    .pxl-sg-card__text { color: rgba(255, 255, 255, .6); }
    .pxl-sg-card:hover { border-color: rgba(189, 154, 95, .45); }
}
