﻿/* =============================================================================
   seo-pages.css  —  صفحات سئو و فرم شناور CTA (کاشانه لاهیجان)
   پالت برند: amber #f59e0b + orange #f96100
   ============================================================================= */

:root {
    --sp-amber: #f59e0b;
    --sp-orange: #f96100;
    --sp-ink: #1f2733;
    --sp-soft: #667085;
    --sp-line: #e8ecf1;
    --sp-bg: #f7f9fc;
}

/* ---------- قالب صفحه ---------- */
.sp-wrap {
    padding: 45px 0 60px;
    background: #fff;
}

.sp-wrap.sp-center {
    padding: 70px 0 90px;
    background: var(--sp-bg);
}

.sp-lead {
    font-size: 17px;
    line-height: 2.1;
    color: #33404f;
    background: #fffaf2;
    border-right: 4px solid var(--sp-amber);
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 28px;
}

.sp-body {
    font-size: 16px;
    line-height: 2.15;
    color: #3a4657;
}

    .sp-body p {
        margin-bottom: 16px;
    }

.sp-h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sp-ink);
    margin: 38px 0 16px;
    position: relative;
    padding-right: 16px;
}

    .sp-h2:before {
        content: "";
        position: absolute;
        right: 0;
        top: 8px;
        width: 5px;
        height: 22px;
        border-radius: 3px;
        background: linear-gradient(180deg, var(--sp-amber), var(--sp-orange));
    }

.sp-note {
    color: var(--sp-soft);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 14px;
}

.sp-box {
    background: var(--sp-bg);
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 28px 0;
}

.sp-box-features {
    background: #fff;
    border-right: 4px solid var(--sp-orange);
}

/* جدول */
.sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

    .sp-table th {
        background: #fff5e6;
        color: #8a4b00;
        font-weight: 700;
        padding: 12px 10px;
        text-align: right;
        border-bottom: 1px solid var(--sp-line);
        white-space: nowrap;
    }

    .sp-table td {
        padding: 11px 10px;
        border-bottom: 1px solid #f1f4f8;
        color: #3f4c5c;
    }

    .sp-table tr:last-child td {
        border-bottom: none;
    }

    .sp-table a {
        color: #1f5fa8;
    }

/* فهرست نکات */
.sp-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
}

    .sp-features li {
        position: relative;
        padding-right: 26px;
        font-size: 15px;
        line-height: 1.9;
        color: #3a4657;
    }

        .sp-features li:before {
            content: "";
            position: absolute;
            right: 0;
            top: 9px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--sp-amber), var(--sp-orange));
        }

/* لینک‌سازی داخلی */
.sp-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sp-links li {
        padding: 9px 0;
        border-bottom: 1px dashed #e7ecf2;
    }

        .sp-links li:last-child {
            border-bottom: none;
        }

    .sp-links a {
        font-size: 15px;
        font-weight: 600;
        color: #23425f;
    }

        .sp-links a:hover {
            color: var(--sp-orange);
        }

    .sp-links span {
        display: block;
        font-size: 13px;
        color: var(--sp-soft);
        margin-top: 2px;
    }

/* کارت آگهی */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 10px;
}

.sp-card {
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}

    .sp-card:hover {
        box-shadow: 0 10px 26px rgba(20, 40, 70, .1);
        transform: translateY(-2px);
    }

.sp-card-img {
    display: block;
    height: 150px;
    background: linear-gradient(135deg, #fdf1dd, #ffe6cf);
    overflow: hidden;
}

    .sp-card-img img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

.sp-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-ink);
    line-height: 1.9;
    padding: 12px 12px 4px;
    display: block;
}

.sp-card-meta {
    list-style: none;
    padding: 0 12px;
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #4a5768;
}

    .sp-card-meta li span {
        color: var(--sp-soft);
    }

.sp-card-more {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-orange);
    border-top: 1px solid #f4f6f9;
}

/* ستون کنار */
.sp-aside-card {
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    background: #fff;
}

    .sp-aside-card h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--sp-ink);
        margin-bottom: 10px;
    }

    .sp-aside-card p {
        font-size: 13.5px;
        line-height: 1.95;
        color: var(--sp-soft);
        margin-bottom: 12px;
    }

.sp-aside-cta {
    background: linear-gradient(160deg, #fff8ec, #fff);
    border-right: 4px solid var(--sp-amber);
}

.sp-aside-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sp-aside-list li {
        padding: 7px 0;
        border-bottom: 1px dashed #eef2f6;
        font-size: 13.5px;
    }

        .sp-aside-list li:last-child {
            border-bottom: none;
        }

    .sp-aside-list a {
        color: #2a4557;
    }

        .sp-aside-list a:hover {
            color: var(--sp-orange);
        }

    .sp-aside-list small {
        display: block;
        color: var(--sp-soft);
        font-size: 12px;
    }

.sp-btn-cta,
.sp-btn-ghost {
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    transition: all .2s ease;
}

.sp-btn-cta {
    background: linear-gradient(135deg, var(--sp-amber), var(--sp-orange));
    color: #fff !important;
}

    .sp-btn-cta:hover {
        filter: brightness(1.06);
        color: #fff;
    }

.sp-btn-ghost {
    border: 1px solid #ffd7ac;
    color: #a04a00 !important;
    background: #fff;
}

    .sp-btn-ghost:hover {
        background: #fff6ea;
    }

/* CTA پایانی */
.sp-faq-cta {
    background: linear-gradient(135deg, #1f2733, #2b3442);
    padding: 36px 0;
    color: #fff;
}

    .sp-faq-cta .sp-h2 {
        color: #fff;
        margin-top: 0;
    }

    .sp-faq-cta p {
        color: #c9d3de;
        font-size: 14.5px;
        line-height: 2;
    }

/* 404 / 403 */
.sp-404 {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    padding: 40px 30px;
}

    .sp-404 h1 {
        font-size: 24px;
        color: var(--sp-ink);
        margin-bottom: 14px;
    }

    .sp-404 p {
        color: var(--sp-soft);
        line-height: 2;
        margin-bottom: 20px;
    }

/* =============================================================================
   فرم شناور CTA
   ============================================================================= */
.ka-cta-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--sp-amber), var(--sp-orange));
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(249, 97, 0, .35);
    cursor: pointer;
    transform: translateX(-120%);
    transition: transform .45s cubic-bezier(.175, .885, .32, 1.275);
    font-family: inherit;
}

    .ka-cta-fab.ka-in {
        transform: translateX(0);
        display: inline-flex;
    }

    .ka-cta-fab i {
        font-size: 18px;
    }

.ka-cta-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 32, .55);
    backdrop-filter: blur(4px);
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

    .ka-cta-overlay.ka-open {
        display: flex;
    }

.ka-cta-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 470px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    animation: kaPop .35s cubic-bezier(.175, .885, .32, 1.275);
}

@keyframes kaPop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ka-cta-head {
    background: linear-gradient(135deg, var(--sp-amber), var(--sp-orange));
    color: #fff;
    padding: 18px 20px;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

    .ka-cta-head h4 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: #fff;
    }

    .ka-cta-head small {
        display: block;
        font-size: 12.5px;
        opacity: .92;
        margin-top: 4px;
    }

.ka-cta-x {
    background: rgba(255, 255, 255, .18);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    flex: 0 0 auto;
}

.ka-cta-progress {
    height: 4px;
    background: #f1f4f8;
}

    .ka-cta-progress > i {
        display: block;
        height: 4px;
        width: 0;
        background: linear-gradient(90deg, var(--sp-amber), var(--sp-orange));
        transition: width .3s ease;
    }

.ka-cta-body {
    padding: 20px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.ka-cta-q {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--sp-ink);
    margin-bottom: 14px;
}

.ka-cta-opts {
    display: grid;
    gap: 9px;
}

.ka-cta-opt {
    display: block;
    width: 100%;
    text-align: right;
    border: 1.5px solid #e6ebf1;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #2d3a4a;
    transition: all .18s ease;
}

    .ka-cta-opt:hover {
        border-color: var(--sp-amber);
        background: #fffaf1;
    }

    .ka-cta-opt strong {
        display: block;
        font-weight: 700;
        font-size: 14.5px;
    }

    .ka-cta-opt small {
        display: block;
        color: var(--sp-soft);
        font-size: 12.5px;
        margin-top: 3px;
    }

.ka-cta-input {
    width: 100%;
    border: 1.5px solid #e6ebf1;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    direction: ltr;
    text-align: right;
    color: #1f2733;
    margin-bottom: 10px;
}

    .ka-cta-input:focus {
        outline: none;
        border-color: var(--sp-amber);
        box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
    }

.ka-cta-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--sp-amber), var(--sp-orange));
    cursor: pointer;
    margin-top: 6px;
}

    .ka-cta-btn:disabled {
        opacity: .6;
        cursor: default;
    }

.ka-cta-skip {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--sp-soft);
    font-family: inherit;
    font-size: 13px;
    padding: 10px 0 2px;
    cursor: pointer;
    text-decoration: underline;
}

.ka-cta-hint {
    font-size: 12.5px;
    color: var(--sp-soft);
    line-height: 1.9;
    margin-bottom: 10px;
}

.ka-cta-sugg {
    display: grid;
    gap: 8px;
    margin: 6px 0 16px;
}

.sp-suggest {
    border: 1px solid #ffe2c2;
    background: #fffaf2;
    border-radius: 12px;
    padding: 10px 12px;
}

.sp-suggest-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

    .sp-suggest-head span {
        font-size: 11.5px;
        color: #995c00;
        background: #ffeccc;
        border-radius: 6px;
        padding: 1px 7px;
    }

.sp-suggest-body {
    font-size: 12.5px;
    color: #5b6777;
    line-height: 1.9;
    margin-top: 3px;
}

.ka-cta-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-ink);
    text-align: center;
    direction: ltr;
    letter-spacing: 1px;
    margin: 6px 0 12px;
}

.ka-cta-row {
    display: flex;
    gap: 8px;
}

    .ka-cta-row > * {
        flex: 1;
    }

.ka-cta-ok {
    background: #e9f9ef;
    border: 1px solid #bce8cd;
    color: #14603a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.95;
    margin-top: 10px;
}

.ka-cta-err {
    color: #c62828;
    font-size: 12.5px;
    margin-top: 8px;
}

/* موبایل */
@media (max-width: 991px) {
    .sp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-features {
        grid-template-columns: 1fr;
    }

    .sp-aside {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .sp-grid {
        grid-template-columns: 1fr;
    }

    .sp-wrap {
        padding: 26px 0 40px;
    }

    .ka-cta-fab {
        left: 14px;
        bottom: 14px;
        padding: 11px 16px;
        font-size: 13px;
    }

    .sp-box {
        padding: 16px 14px;
    }
}
