/* KAN-842: partner-type chooser (/<lang>/list-your-services).
   Tokens come from main.css (--rgb-ink, --color-brand); no page-local
   token system. */

/* Panels: stacked on mobile, side by side from 768px. */
/* Capped so two 2:3 portrait panels fit a laptop screen side by side. */
.pc-panels { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 60rem; margin: 0 auto; }
@media (min-width: 768px) {
    .pc-panels { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.pc-panel {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.25rem;
    /* The photos' own 2:3 portrait ratio, so they are not cropped. */
    aspect-ratio: 2 / 3;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    background: rgb(var(--rgb-ink));
}
.pc-panel:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 4px; }

.pc-panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.45s ease, transform 0.6s ease;
}
.pc-panel__shade {
    position: absolute;
    inset: 0;
    /* Strong enough at the bottom for white copy over the bright professional photo. */
    background: linear-gradient(180deg, rgba(10, 18, 24, 0) 25%, rgba(10, 18, 24, 0.55) 55%, rgba(10, 18, 24, 0.9) 100%);
}
.pc-panel__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
}
@media (min-width: 768px) { .pc-panel__body { padding: 2rem; } }
.pc-panel__title { font-family: 'Inter', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.pc-panel__text { font-size: 0.975rem; line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 28rem; }
.pc-panel__cta {
    align-self: flex-start;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 9999px;
    background: #fff;
    color: rgb(var(--rgb-ink));
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Desktop with a real pointer: greyscale at rest, colour on hover AND on
   keyboard focus. Touch / narrow screens never enter the greyscale state. */
@media (min-width: 768px) and (hover: hover) {
    .pc-panel__img { filter: grayscale(1); }
    .pc-panel:hover .pc-panel__img,
    .pc-panel:focus-visible .pc-panel__img { filter: grayscale(0); transform: scale(1.03); }
    .pc-panel:hover .pc-panel__cta,
    .pc-panel:focus-visible .pc-panel__cta { background: var(--color-brand); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-panel__img, .pc-panel__cta { transition: none; }
    .pc-panel:hover .pc-panel__img,
    .pc-panel:focus-visible .pc-panel__img { transform: none; }
}
