﻿/* =============================================================
   ClikSell — Role Landing Pages (Client, Promoter, Agent, Commercial)
   Path: wwwroot/css/LandingPages/RoleLanding.css
   One file, four pages. Shared design system.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --ink: #0D1117;
    --ink-soft: #4B5563;
    --ink-faint: #9CA3AF;
    --gold: #C8A951;
    --gold-light: #E8D49A;
    --gold-dim: rgba(200,169,81,0.12);
    --teal: #165B75;
    --teal-light: #1E7A9A;
    --teal-dim: rgba(22,91,117,0.08);
    --surface: #FFFFFF;
    --off: #F8F7F4;
    --border: rgba(13,17,23,0.09);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 2px 12px rgba(13,17,23,0.06);
    --shadow-md: 0 8px 32px rgba(13,17,23,0.10);
    --shadow-lg: 0 24px 64px rgba(13,17,23,0.14);
}

/* ── Shell override — same pattern as all detail pages ── */
.content:has(.rlp-page) {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    overflow-y: visible !important;
}

.layout-shell:has(.rlp-page) {
    height: auto !important;
    overflow: visible !important;
}

.rlp-page {
    display: block;
    width: 100%;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background: var(--off);
}

    .rlp-page *, .rlp-page *::before, .rlp-page *::after {
        box-sizing: border-box;
    }

    .rlp-page button {
        border: none;
        background: none;
        font: inherit;
        cursor: pointer;
    }

/* ═══════════════════════════════════════════════════════════
   HERO — full-bleed cinematic with background image
═══════════════════════════════════════════════════════════ */
.rlp-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 580px;
    max-height: 900px;
    overflow: hidden;
    background: var(--ink);
    display: flex;
    align-items: flex-end;
}

.rlp-hero-bg {
    position: absolute;
    inset: 0;
}

    .rlp-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transform: scale(1.05);
        animation: rlp-zoom 16s ease-out forwards;
    }

.rlp-hero-bg-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #0D1117 0%, #165B75 50%, #0f2535 100%);
}

    .rlp-hero-bg-fallback::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(ellipse at 20% 80%, rgba(200,169,81,0.12) 0%, transparent 55%), radial-gradient(ellipse at 80% 15%, rgba(22,91,117,0.20) 0%, transparent 55%);
    }

@keyframes rlp-zoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}

.rlp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(13,17,23,0.30) 0%, rgba(13,17,23,0.10) 25%, rgba(13,17,23,0.55) 65%, rgba(13,17,23,0.92) 100% );
}

/* Decorative vertical rules */
.rlp-hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

    .rlp-hero-lines::before,
    .rlp-hero-lines::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
    }

    .rlp-hero-lines::before {
        left: clamp(1.5rem, 7vw, 7rem);
    }

    .rlp-hero-lines::after {
        right: clamp(1.5rem, 7vw, 7rem);
    }

.rlp-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(3rem, 7vh, 6rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.rlp-hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 720px;
    animation: rlp-fadeUp 1s 0.2s var(--ease-out) both;
}

.rlp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

    .rlp-hero-eyebrow::before {
        content: '';
        display: block;
        width: 28px;
        height: 1px;
        background: var(--gold);
    }

.rlp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
}

    .rlp-hero-title em {
        font-style: italic;
        color: var(--gold-light);
    }

.rlp-hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

.rlp-hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.rlp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    border-radius: 100px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

    .rlp-btn-primary:hover {
        background: var(--gold-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(200,169,81,0.4);
    }

    .rlp-btn-primary i {
        font-size: 0.82rem;
    }

.rlp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

    .rlp-btn-ghost:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-2px);
    }

    .rlp-btn-ghost i {
        font-size: 0.82rem;
    }

/* Stat cluster — hero right */
.rlp-hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: rlp-fadeUp 1s 0.45s var(--ease-out) both;
    flex-shrink: 0;
}

.rlp-hero-stat {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
}

.rlp-hero-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-dim);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rlp-hero-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.2rem;
}

.rlp-hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Scroll hint */
.rlp-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    z-index: 10;
    pointer-events: none;
}

.rlp-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: rlp-scrollPulse 2s ease-in-out infinite;
}

@keyframes rlp-scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ═══════════════════════════════════════════════════════════
   TRUST BAR — scrolling marquee
═══════════════════════════════════════════════════════════ */
.rlp-trust-bar {
    background: var(--ink);
    padding: 1rem 0;
    overflow: hidden;
}

.rlp-trust-track {
    display: flex;
    gap: 3rem;
    animation: rlp-marquee 30s linear infinite;
    width: max-content;
}

.rlp-trust-bar:hover .rlp-trust-track {
    animation-play-state: paused;
}

.rlp-trust-item {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .rlp-trust-item::after {
        content: '·';
        color: var(--gold);
        font-size: 1.1rem;
    }

@keyframes rlp-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════════════════════ */
.rlp-features {
    background: var(--surface);
    padding: 7rem clamp(1.5rem, 4vw, 3rem);
}

.rlp-features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.rlp-features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.rlp-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.rlp-section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0;
}

    .rlp-section-heading em {
        font-style: italic;
        color: var(--teal);
    }

.rlp-section-body {
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.8;
    max-width: 420px;
    margin: 0;
}

.rlp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rlp-feature-card {
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .rlp-feature-card:hover {
        background: var(--surface);
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }

.rlp-feature-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.rlp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.rlp-feature-card:hover .rlp-feature-icon {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.rlp-feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}

.rlp-feature-card p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.8;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   SPLIT SECTION — image + text
═══════════════════════════════════════════════════════════ */
.rlp-split {
    background: var(--off);
    padding: 7rem clamp(1.5rem, 4vw, 3rem);
}

.rlp-split-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

    .rlp-split-inner.rlp-split--reverse {
        direction: rtl;
    }

        .rlp-split-inner.rlp-split--reverse > * {
            direction: ltr;
        }

.rlp-split-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

    .rlp-split-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s var(--ease-out);
    }

    .rlp-split-image:hover img {
        transform: scale(1.04);
    }

/* Fallback when no image */
.rlp-split-image-fallback {
    border-radius: 24px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--teal-dim), var(--gold-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--ink-faint);
}

.rlp-split-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .rlp-split-content .rlp-section-body {
        max-width: 100%;
    }

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════ */
.rlp-cta {
    background: var(--ink);
    padding: 7rem clamp(1.5rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}

    .rlp-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: radial-gradient(ellipse at 10% 50%, rgba(200,169,81,0.10) 0%, transparent 55%), radial-gradient(ellipse at 90% 50%, rgba(22,91,117,0.15) 0%, transparent 55%);
    }

.rlp-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.rlp-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.rlp-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
}

    .rlp-cta-heading em {
        font-style: italic;
        color: var(--gold-light);
    }

.rlp-cta-body {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 480px;
}

.rlp-cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes rlp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rlp-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.rlp-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

    .rlp-animate.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delays */
    .rlp-animate:nth-child(2) {
        transition-delay: 0.1s;
    }

    .rlp-animate:nth-child(3) {
        transition-delay: 0.2s;
    }

    .rlp-animate:nth-child(4) {
        transition-delay: 0.3s;
    }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .rlp-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rlp-split-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

        .rlp-split-inner.rlp-split--reverse {
            direction: ltr;
        }

    .rlp-hero-right {
        display: none;
    }
}

@media (max-width: 640px) {
    .rlp-hero {
        height: 100svh;
        max-height: none;
        align-items: flex-end;
    }

    .rlp-hero-title {
        font-size: 2.6rem;
    }

    .rlp-hero-inner {
        padding-bottom: 2.5rem;
    }

    .rlp-features-grid {
        grid-template-columns: 1fr;
    }

    .rlp-features-header {
        flex-direction: column;
    }

    .rlp-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .rlp-scroll-hint {
        display: none;
    }
}
