/* =================================================================
   8on — CUSTOM SECTIONS stylesheet
   Loaded from index.php only when admin has created custom sections.
   Each block corresponds to one template renderer.
   ================================================================= */
.custom-section { padding: 100px 0; }
.cs-grid {
    display: grid;
    grid-template-columns: repeat(var(--cs-cols, 3), 1fr);
    gap: 24px;
}
@media (max-width: 1000px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cs-grid { grid-template-columns: 1fr; } }

/* ---- icon-cards / contact-cards / download-cards ---- */
.cs-card, .cs-contact-card, .cs-download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all .25s;
}
.cs-card:hover, .cs-contact-card:hover, .cs-download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px -20px rgba(var(--primary-rgb),0.45);
}
.cs-card-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--gradient);
    color: var(--text-on-primary);
    display: inline-grid; place-items: center;
    margin-bottom: 16px;
}
.cs-card-icon svg { width: 30px; height: 30px; }
.cs-card h3, .cs-contact-card h3, .cs-download-card h3 { font-size: 19px; margin: 0 0 8px; color: var(--text); }
.cs-card p,  .cs-contact-card p,  .cs-download-card p  { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.cs-meta { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.cs-contact-card { color: inherit; text-decoration: none; }
.cs-link-pill {
    display: inline-block; margin-top: 12px;
    padding: 6px 14px; border-radius: 100px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 12px; font-weight: 700;
}

/* ---- image-cards / blog-cards / video-cards ---- */
.cs-image-card, .cs-blog-card, .cs-video-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: all .25s;
}
.cs-image-card:hover, .cs-blog-card:hover, .cs-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px -20px rgba(var(--primary-rgb),0.45);
}
.cs-image-card-img, .cs-blog-img, .cs-video-thumb {
    aspect-ratio: 16/10;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}
.cs-image-card-img img, .cs-blog-img img, .cs-video-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.cs-image-card:hover .cs-image-card-img img,
.cs-blog-card:hover .cs-blog-img img,
.cs-video-card:hover .cs-video-thumb img { transform: scale(1.06); }
.cs-image-card-body, .cs-blog-body { padding: 20px; }
.cs-cat, .cs-blog-meta {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.cs-image-card h3, .cs-blog-card h3, .cs-video-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.cs-image-card p, .cs-blog-card p, .cs-video-card p   { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.cs-video-card h3, .cs-video-card p { padding: 16px 18px 0; }
.cs-video-card p { padding-bottom: 18px; }
.cs-video-play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(0,0,0,0.35); color: white;
    opacity: 0; transition: opacity .25s;
}
.cs-video-card:hover .cs-video-play { opacity: 1; }
.cs-video-play svg { width: 56px; height: 56px; }
.cs-video-duration {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.75); color: white;
    padding: 3px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
}
.cs-download-card .btn { margin-top: 14px; }

/* ---- stats-numbers ---- */
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(var(--cs-cols, 4), 1fr);
    gap: 24px;
}
@media (max-width: 800px) { .cs-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.cs-stat { text-align: center; padding: 24px; }
.cs-stat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-soft); color: var(--primary);
    display: inline-grid; place-items: center;
    margin-bottom: 12px;
}
.cs-stat-icon svg { width: 28px; height: 28px; }
.cs-stat-num { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.cs-stat-number {
    font-size: 56px; font-weight: 900;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.cs-stat-suffix { font-size: 28px; font-weight: 900; color: var(--primary); }
.cs-stat-label { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ---- steps ---- */
.cs-steps {
    display: grid;
    grid-template-columns: repeat(var(--cs-cols, 4), 1fr);
    gap: 24px;
}
@media (max-width: 1000px) { .cs-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cs-steps { grid-template-columns: 1fr; } }
.cs-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    text-align: center;
}
.cs-step-num {
    position: absolute; top: -14px; right: 50%; transform: translateX(50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient); color: var(--text-on-primary);
    font-size: 15px; font-weight: 900;
    display: grid; place-items: center;
    box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb),0.5);
}
.cs-step-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-soft); color: var(--primary);
    display: inline-grid; place-items: center;
    margin: 8px 0 14px;
}
.cs-step h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.cs-step p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---- faq accordion ---- */
.cs-faq { max-width: 800px; margin: 0 auto; }
.cs-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.cs-faq-item summary {
    padding: 18px 22px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.cs-faq-item summary::-webkit-details-marker { display: none; }
.cs-faq-item summary::after {
    content: '\002B';
    color: var(--primary);
    font-size: 22px; font-weight: 700;
    transition: transform .25s;
}
.cs-faq-item[open] summary::after { content: '\2212'; }
.cs-faq-answer {
    padding: 0 22px 18px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---- testimonials ---- */
.cs-testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.cs-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.cs-stars span { font-size: 18px; color: var(--border); }
.cs-stars span.on { color: #fbbf24; }
.cs-quote { font-size: 15px; line-height: 1.85; color: var(--text); font-style: italic; margin: 0 0 20px; }
.cs-person { display: flex; align-items: center; gap: 12px; }
.cs-person img, .cs-person-init {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.cs-person-init {
    background: var(--gradient); color: var(--text-on-primary);
    display: grid; place-items: center;
    font-size: 18px; font-weight: 900;
}
.cs-person strong { display: block; color: var(--text); font-size: 14px; }
.cs-person span { font-size: 12px; color: var(--text-light); }

/* ---- logo strip ----
   Premium auto-scrolling marquee inspired by Stripe / Linear / Vercel landing
   strips. The track holds the items doubled; CSS animates translateX(-50%) so
   the second half slides into the first half's exact position — seamless loop.
   Edge mask fades logos in/out instead of clipping them harshly. */
.cs-logos-strip {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    mask-image:         linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.cs-logos-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: cs-logos-scroll 40s linear infinite;
    will-change: transform;
}
/* Pause on hover so the visitor can read a specific logo. */
.cs-logos-strip:hover .cs-logos-track { animation-play-state: paused; }

@keyframes cs-logos-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* In RTL the reading direction is right-to-left, so the strip should slide
   in that direction too — reverse the animation. */
html[dir="rtl"] .cs-logos-track { animation-direction: reverse; }

/* Respect user preference for less motion — freeze the strip. */
@media (prefers-reduced-motion: reduce) {
    .cs-logos-track { animation: none; transform: none; flex-wrap: wrap; justify-content: center; }
}

.cs-logo {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 36px;
    display: grid; place-items: center;
    min-height: 110px;
    min-width: 220px;
    color: var(--text-muted);
    text-decoration: none;
    transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
    position: relative;
    overflow: hidden;
}
/* Soft inner glow that hints at depth — appears more strongly on hover. */
.cs-logo::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb),0.12), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.cs-logo:hover {
    border-color: rgba(var(--primary-rgb), 0.55);
    background: var(--surface);
    transform: translateY(-6px) scale(1.04);
    box-shadow:
        0 18px 40px -12px rgba(var(--primary-rgb), 0.45),
        0 6px 16px -8px rgba(0,0,0,0.4);
}
.cs-logo:hover::after { opacity: 1; }

.cs-logo img {
    max-height: 72px;
    max-width: 170px;
    object-fit: contain;
    /* Light, not heavy — keeps brand colors visible while harmonizing */
    filter: brightness(1.02) saturate(0.95);
    transition: filter .3s, transform .3s;
}
.cs-logo:hover img {
    filter: brightness(1.08) saturate(1.1) drop-shadow(0 4px 14px rgba(var(--primary-rgb),0.45));
    transform: scale(1.08);
}
.cs-logo span {
    font-weight: 900;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.025em;
    font-family: var(--font-display);
}

@media (max-width: 800px) {
    .cs-logos-track { gap: 16px; }
    .cs-logo { min-width: 170px; min-height: 90px; padding: 18px 24px; border-radius: 14px; }
    .cs-logo img { max-height: 52px; max-width: 120px; }
    .cs-logo span { font-size: 18px; }
}

/* ---- pricing cards ---- */
.cs-pricing {
    display: grid;
    grid-template-columns: repeat(var(--cs-cols, 3), 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .cs-pricing { grid-template-columns: 1fr; } }
.cs-price-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all .25s;
}
.cs-price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -25px rgba(var(--primary-rgb),0.5); }
.cs-price-card.cs-color-orange { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 50%); }
.cs-price-head h3 { font-size: 22px; margin: 0 0 4px; color: var(--text); }
.cs-price-head p  { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.cs-price-num { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 18px; }
.cs-price-amount { font-size: 52px; font-weight: 900; color: var(--text); line-height: 1; }
.cs-price-period { font-size: 14px; color: var(--text-muted); }
.cs-price-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.cs-price-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: right; }
.cs-price-features li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--text); }
.cs-price-features li:last-child { border-bottom: 0; }
.cs-price-features li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.cs-price-btn {
    display: block;
    background: var(--gradient); color: var(--text-on-primary);
    padding: 14px 24px; border-radius: 12px;
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    transition: all .2s;
}
.cs-price-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(var(--primary-rgb),0.6); }

/* ---- team cards ---- */
.cs-team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all .25s;
}
.cs-team-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 16px 40px -20px rgba(var(--primary-rgb),0.4); }
.cs-team-photo { margin-bottom: 16px; }
.cs-team-photo img, .cs-team-init {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}
.cs-team-init { background: var(--gradient); color: var(--text-on-primary); display: grid; place-items: center; font-size: 40px; font-weight: 900; }
.cs-team-card h3 { font-size: 18px; margin: 0 0 4px; color: var(--text); }
.cs-team-role { display: block; font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.cs-team-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.cs-team-social { display: flex; justify-content: center; gap: 8px; }
.cs-team-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-alt); color: var(--text-muted);
    display: grid; place-items: center;
    transition: all .2s;
}
.cs-team-social a:hover { background: var(--gradient); color: var(--text-on-primary); transform: translateY(-2px); }

/* ---- timeline ---- */
.cs-timeline { max-width: 800px; margin: 0 auto; position: relative; padding: 0 30px; }
.cs-timeline::before {
    content: ''; position: absolute;
    top: 0; bottom: 0; right: 30px;
    width: 2px; background: var(--border);
}
html[dir="ltr"] .cs-timeline::before { right: auto; left: 30px; }
.cs-tl-item { display: flex; gap: 20px; padding: 20px 0; position: relative; }
.cs-tl-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient); color: var(--text-on-primary);
    display: grid; place-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--primary-soft);
    z-index: 1;
}
.cs-tl-body { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.cs-tl-date { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.cs-tl-body h3 { font-size: 17px; margin: 6px 0 6px; color: var(--text); }
.cs-tl-body p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ---- alternating rows ---- */
.cs-alt-rows { display: flex; flex-direction: column; gap: 60px; }
.cs-alt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.cs-alt-row.cs-alt-reverse > .cs-alt-image { order: 2; }
.cs-alt-image img {
    width: 100%; border-radius: 18px;
    box-shadow: 0 24px 60px -30px rgba(0,0,0,0.4);
}
.cs-alt-text h3 { font-size: 28px; margin: 0 0 14px; color: var(--text); line-height: 1.3; }
.cs-alt-text p  { color: var(--text-muted); line-height: 1.85; margin-bottom: 18px; font-size: 15px; }
.cs-alt-features { list-style: none; padding: 0; margin: 0 0 22px; }
.cs-alt-features li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--text); }
.cs-alt-features li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
@media (max-width: 900px) {
    .cs-alt-row, .cs-alt-row.cs-alt-reverse { grid-template-columns: 1fr; gap: 24px; }
    .cs-alt-row.cs-alt-reverse > .cs-alt-image { order: 0; }
}

/* ---- quote banner ---- */
.cs-quote-banner {
    max-width: 800px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
}
.cs-quote-mark {
    font-size: 100px;
    font-family: serif;
    color: var(--primary);
    line-height: 0.5;
    margin-bottom: 16px;
    opacity: 0.5;
}
.cs-quote-text { font-size: 22px; line-height: 1.7; color: var(--text); margin-bottom: 26px; font-style: italic; }
.cs-quote-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cs-quote-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cs-quote-author strong { display: block; color: var(--text); }
.cs-quote-author span { font-size: 13px; color: var(--text-muted); }
