/**
 * Campaign Landing Page Styles — Ansheri (/ansheri/)
 *
 * Scoped to .clp-page (campaign landing page wrapper).
 * Arabic-native, RTL, mobile-first (375px primary target).
 * Intentionally self-contained — no dependency on main theme CSS.
 *
 * @package Tajheez
 * @since   1.0.0
 */

/* ============================================================
   RESET / BASE — scoped to .clp-page
   ============================================================ */

.clp-page *,
.clp-page *::before,
.clp-page *::after {
    box-sizing: border-box;
}

.clp-page {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    color: #2D2926;
    background: #FDFBF7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.clp-page img {
    max-width: 100%;
    display: block;
}

.clp-page a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   MINIMAL HEADER
   ============================================================ */

.clp-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #ffffff;
    border-bottom: 1px solid #EDE9E3;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clp-header__logo img {
    height: 36px;
    width: auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.clp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #652C8F 0%, #8B5CF6 100%);
    min-height: 55vh;
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .clp-hero {
        max-height: 45vh;
    }
}

.clp-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.clp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(101, 44, 143, 0.15) 0%,
        rgba(45, 41, 38, 0.72) 100%
    );
}

.clp-hero__content {
    position: relative;
    z-index: 2;
    padding: 24px 20px 32px;
    color: #ffffff;
}

.clp-hero__headline {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.clp-hero__subheadline {
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 24px;
    opacity: 0.92;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   CTA BUTTON — shared across sections
   ============================================================ */

.clp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 50%, #D4AF37 100%);
    background-size: 200% auto;
    color: #2D2926;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: background-position 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
    min-height: 48px;
}

.clp-btn-primary:hover {
    background-position: right center;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
    color: #2D2926;
}

.clp-btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.clp-btn-primary--full {
    width: 100%;
}

.clp-trust-chip {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */

.clp-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   SECTION — base
   ============================================================ */

.clp-section {
    padding: 48px 0;
}

.clp-section + .clp-section {
    padding-top: 0;
}

.clp-section__title {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: #2D2926;
    margin: 0 0 28px;
    text-align: center;
}

/* ============================================================
   HOW IT WORKS — 3 steps
   ============================================================ */

.clp-steps {
    background: #F8F5F2;
}

.clp-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .clp-steps__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.clp-step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 600px) {
    .clp-step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }
}

.clp-step-card__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #F3E8FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clp-step-card__body {}

.clp-step-card__num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #652C8F;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.clp-step-card__text {
    font-size: 1rem;
    font-weight: 600;
    color: #2D2926;
    line-height: 1.4;
    margin: 0;
}

/* ============================================================
   SOCIAL PROOF — live ads strip
   ============================================================ */

.clp-proof {}

.clp-proof__strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: #EDE9E3 transparent;
}

.clp-proof__strip::-webkit-scrollbar {
    height: 4px;
}
.clp-proof__strip::-webkit-scrollbar-track {
    background: transparent;
}
.clp-proof__strip::-webkit-scrollbar-thumb {
    background: #EDE9E3;
    border-radius: 2px;
}

/* Ad card within proof strip */
.clp-ad-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.clp-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

@media (max-width: 400px) {
    .clp-ad-card {
        flex: 0 0 160px;
    }
}

.clp-ad-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #EDE9E3;
}

.clp-ad-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clp-ad-card:hover .clp-ad-card__image {
    transform: scale(1.04);
}

.clp-ad-card__body {
    padding: 10px 12px 12px;
}

.clp-ad-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2D2926;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clp-ad-card__chip {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #652C8F;
    background: #F3E8FF;
    border-radius: 9999px;
    padding: 2px 9px;
}

/* Empty state if no ads returned */
.clp-proof__empty {
    text-align: center;
    color: #8B8178;
    font-size: 0.9rem;
    padding: 24px 0;
}

/* ============================================================
   OFFER SECTION
   ============================================================ */

.clp-offer {
    background: linear-gradient(135deg, #652C8F 0%, #8B5CF6 100%);
    color: #ffffff;
}

.clp-offer .clp-section__title {
    color: #ffffff;
}

.clp-offer-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.clp-offer-card__badge {
    display: inline-block;
    background: #D4AF37;
    color: #2D2926;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.clp-offer-card__headline {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}

.clp-offer-card__body {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0 0 24px;
}

.clp-offer-card__body strong {
    color: #D4AF37;
}

/* ============================================================
   STICKY CTA BAR (mobile, shows on scroll)
   ============================================================ */

.clp-sticky-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 300;
    background: #ffffff;
    border-top: 1px solid #EDE9E3;
    padding: 12px 16px;
    display: none; /* shown via JS after scroll */
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.clp-sticky-bar.is-visible {
    display: block;
}

@media (min-width: 768px) {
    .clp-sticky-bar {
        display: none !important;
    }
}

/* ============================================================
   MINIMAL FOOTER
   ============================================================ */

.clp-footer {
    background: #2D2926;
    color: rgba(255, 255, 255, 0.72);
    padding: 24px 16px;
    text-align: center;
}

.clp-footer__links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.clp-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    transition: color 0.2s;
}

.clp-footer__links a:hover {
    color: #ffffff;
}

.clp-footer__copy {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — desktop (1280px+)
   ============================================================ */

@media (min-width: 1024px) {
    .clp-hero__content {
        padding: 40px 48px 56px;
    }

    .clp-hero {
        min-height: 60vh;
        max-height: 72vh;
    }
}
