/**
 * Public cleaner member page — shared SE / GR / CY.
 * Editorial profile composition; brand via --brand / --gradient.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Outfit:wght@400;500;600;700;800&display=swap');

.cp-page {
    --cp-ink: #0f172a;
    --cp-muted: #64748b;
    --cp-line: rgba(15, 23, 42, 0.08);
    --cp-surface: #ffffff;
    --cp-bg: #f4f5f8;
    font-family: 'Outfit', 'Sofia Sans', 'Poppins', ui-sans-serif, system-ui, sans-serif;
    color: var(--cp-ink);
    background: var(--cp-bg);
    padding-bottom: 5.5rem;
}

.dark .cp-page {
    --cp-ink: #f8fafc;
    --cp-muted: #94a3b8;
    --cp-line: rgba(248, 250, 252, 0.1);
    --cp-surface: #0b0b0d;
    --cp-bg: #000000;
}

.cp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cp-hero__wash {
    position: absolute;
    inset: 0;
    height: min(42vh, 22rem);
    background:
        radial-gradient(120% 80% at 10% -10%, color-mix(in srgb, var(--brand) 55%, transparent) 0%, transparent 55%),
        radial-gradient(90% 70% at 90% 0%, color-mix(in srgb, var(--brand-2) 40%, transparent) 0%, transparent 50%),
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 18%, var(--cp-bg)) 0%, var(--cp-bg) 100%);
    z-index: 0;
}

.cp-hero__wash::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.cp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
    .cp-hero__inner {
        padding: 3.5rem 1.5rem 2rem;
    }
}

.cp-identity {
    display: grid;
    gap: 1.25rem;
    align-items: end;
}

@media (min-width: 768px) {
    .cp-identity {
        grid-template-columns: auto 1fr auto;
        gap: 1.75rem;
        align-items: center;
    }
}

.cp-avatar {
    width: 7.25rem;
    height: 7.25rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 3px solid var(--cp-surface);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
    background: color-mix(in srgb, var(--brand) 10%, var(--cp-surface));
    animation: cp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cp-avatar--fallback {
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, var(--cp-surface));
}

@media (min-width: 640px) {
    .cp-avatar {
        width: 8.5rem;
        height: 8.5rem;
    }
}

.cp-identity__copy {
    min-width: 0;
    animation: cp-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.cp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 0.35rem;
}

.cp-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
    color: var(--cp-ink);
}

.cp-headline {
    margin: 0.45rem 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--cp-muted);
    line-height: 1.45;
    max-width: 34rem;
}

.cp-handle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--cp-muted) 85%, transparent);
}

.cp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.cp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--cp-surface) 88%, transparent);
    border: 1px solid var(--cp-line);
    color: var(--cp-ink);
    backdrop-filter: blur(8px);
}

.cp-chip--rating {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.dark .cp-chip--rating {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.cp-chip--ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.dark .cp-chip--ok {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.cp-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    animation: cp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@media (min-width: 768px) {
    .cp-actions {
        min-width: 11.5rem;
        align-items: stretch;
    }
}

.cp-rate {
    text-align: left;
}

@media (min-width: 768px) {
    .cp-rate {
        text-align: right;
    }
}

.cp-rate__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-muted);
}

.cp-rate__value {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
}

.cp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.25rem;
    border-radius: 1rem;
    background-image: var(--gradient);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 35%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cp-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 42%, transparent);
    opacity: 0.96;
}

.cp-cta--ghost {
    background-image: none;
    background: transparent;
    color: var(--cp-ink) !important;
    border: 1px solid var(--cp-line);
    box-shadow: none;
}

.cp-cta--ghost:hover {
    background: color-mix(in srgb, var(--brand) 6%, var(--cp-surface));
    box-shadow: none;
}

.cp-stats {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.25rem 1.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    animation: cp-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

@media (min-width: 640px) {
    .cp-stats {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.cp-stat {
    padding: 0.9rem 0.85rem;
    border-radius: 1.1rem;
    background: var(--cp-surface);
    border: 1px solid var(--cp-line);
}

.cp-stat__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cp-muted);
}

.cp-stat__value {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cp-ink);
}

.cp-intro {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: color-mix(in srgb, var(--cp-ink) 88%, var(--cp-muted));
    animation: cp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cp-vibes {
    max-width: 52rem;
    margin: 0 auto 1.75rem;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cp-vibe {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--brand) 8%, var(--cp-surface));
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    color: var(--cp-ink);
}

.cp-vibe span:first-child {
    font-size: 1.05rem;
    line-height: 1;
}

.cp-body {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

@media (min-width: 640px) {
    .cp-body,
    .cp-intro,
    .cp-vibes {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.cp-section {
    padding: 1.75rem 0;
    border-top: 1px solid var(--cp-line);
}

.cp-section__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    color: var(--cp-ink);
}

.cp-section__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--cp-ink) 86%, var(--cp-muted));
    white-space: pre-line;
}

.cp-grid {
    display: grid;
    gap: 0;
}

@media (min-width: 768px) {
    .cp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .cp-grid .cp-section {
        border-top: 1px solid var(--cp-line);
    }
}

.cp-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .cp-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
    }
}

.cp-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--cp-muted) 12%, var(--cp-surface));
    aspect-ratio: 4 / 3;
    max-height: 18rem;
}

.cp-gallery__item--hero {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
    max-height: 22rem;
}

@media (min-width: 640px) {
    .cp-gallery__item {
        max-height: 16rem;
    }

    .cp-gallery__item--hero {
        /* Wide lead photo only — never let intrinsic image height stretch the grid */
        grid-column: span 2;
        grid-row: auto;
        aspect-ratio: 16 / 10;
        max-height: 20rem;
        min-height: 0;
        align-self: start;
    }
}

.cp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.cp-gallery__item:hover img {
    transform: scale(1.03);
}

.cp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--cp-surface);
    border: 1px solid var(--cp-line);
}

.cp-reviews {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-review {
    padding: 1.1rem 1.15rem;
    border-radius: 1.15rem;
    background: var(--cp-surface);
    border: 1px solid var(--cp-line);
    border-left: 3px solid var(--brand);
}

.cp-review__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.cp-review__name {
    font-weight: 700;
    font-size: 0.92rem;
}

.cp-review__rating {
    font-size: 0.82rem;
    font-weight: 700;
    color: #d97706;
}

.cp-review__body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--cp-ink) 82%, var(--cp-muted));
}

.cp-empty {
    margin: 0;
    font-size: 0.95rem;
    color: var(--cp-muted);
}

.cp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--cp-surface) 92%, transparent);
    border-top: 1px solid var(--cp-line);
    backdrop-filter: blur(14px);
}

@media (min-width: 768px) {
    .cp-sticky {
        display: none;
    }

    .cp-page {
        padding-bottom: 2rem;
    }
}

.cp-sticky .cp-cta {
    width: 100%;
}

@keyframes cp-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-avatar,
    .cp-identity__copy,
    .cp-actions,
    .cp-stats,
    .cp-intro {
        animation: none;
    }

    .cp-gallery__item:hover img {
        transform: none;
    }
}
