/* =========================================
   1. Hero — split words + scroll zoom
========================================= */
.ct-hero {
    position: relative;
    height: 260vh; /* scroll length that drives the zoom + a short hold */
    background-color: var(--color-navy);
}

.ct-hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-hero-stage {
    --zoom: 0;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-word {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'gofteh', sans-serif;
    font-size: clamp(34px, 5vw, 74px);
    color: #ffffff;
    white-space: nowrap;
    z-index: 3;
    opacity: calc(1 - var(--zoom) * 1.6);
    pointer-events: none;
}

.ct-word-right {
    right: calc(50% + 330px + var(--zoom) * 60px);
}

.ct-word-left {
    left: calc(50% + 330px + var(--zoom) * 60px);
}

.ct-hero-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* از کارت کوچک تا بنر بزرگ زوم می‌شود */
    width: calc(620px + (86vw - 620px) * var(--zoom));
    height: calc(380px + (80vh - 380px) * var(--zoom));
    border-radius: calc(24px - 12px * var(--zoom));
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    will-change: width, height;
}

.ct-hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 4;
    opacity: calc(1 - var(--zoom) * 2);
}

/* =========================================
   2. Contact — info, form & map
========================================= */
.ct-contact {
    position: relative;
    background-color: var(--color-navy);
    padding: 130px 0 130px;
    color: #ffffff;
}

.ct-info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding-bottom: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-info-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.ct-info-title {
    font-size: 17px;
    font-weight: bold;
    color: var(--accent-secondary);
    margin: 0 0 6px;
}

.ct-info-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.65);
}

.ct-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-links a,
.ct-info-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 15px;
    text-decoration: none;
    transition: color var(--transition-fast);
    width: fit-content;
}

.ct-info-link {
    display: block;
    margin-bottom: 6px;
}

.ct-links a:hover,
.ct-info-link:hover {
    color: var(--accent-secondary);
}

/* Message row: form + (title & map) */
.ct-message-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
    margin-top: 70px;
}

.ct-form-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 12px 4px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast);
}

.ct-field textarea {
    resize: vertical;
    min-height: 60px;
}

.ct-field select option {
    background: var(--color-navy);
    color: #ffffff;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    border-bottom-color: var(--accent-secondary);
}

.ct-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.ct-send {
    padding: 15px 34px;
    border-radius: var(--pill-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ct-send:hover {
    background: #ffffff;
    color: var(--color-navy);
}

.ct-send-arrow {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--color-navy);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.ct-send-arrow:hover {
    background: var(--accent-secondary);
    color: #ffffff;
    transform: scale(1.05);
}

.ct-message-side {
    display: flex;
    flex-direction: column;
}

.ct-message-title {
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ct-map {
    flex-grow: 1;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
    filter: grayscale(0.3) invert(0.9) hue-rotate(180deg);
}

/* =========================================
   1.5 FAQ — display heading + accordion
========================================= */
.faq-section {
    position: relative;
    background-color: var(--bg-primary);
    padding: 90px 0 120px;
    overflow: hidden;
}

.faq-head {
    margin-bottom: 70px;
}

/* نوار مارکی با محو شدن دو لبه */
.faq-marquee {
    direction: ltr;
    overflow: hidden;
    width: 200px;
    margin-bottom: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.faq-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    animation: faqMarquee 22s linear infinite;
}

.faq-mq {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.faq-mq i {
    font-size: 10px;
    color: var(--accent-primary);
    margin-right: 4px;
}

.faq-mq-sep {
    color: var(--border-color);
}

@keyframes faqMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.faq-title {
    font-family: 'gofteh', sans-serif;
    font-size: clamp(52px, 11vw, 150px);
    line-height: 0.92;
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.faq-t-dark {
    color: var(--text-primary);
}

.faq-t-gray {
    color: #b8bcc4;
}

/* بدنه: عکس + آکاردئون */
.faq-body {
    direction: ltr; /* عکس چپ، آکاردئون راست مثل نمونه */
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.faq-image {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 3 / 3;
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15);
}

.faq-accordion {
    direction: rtl;
    text-align: right;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.faq-q-main {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-num {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: bold;
}

.faq-slash {
    color: var(--text-secondary);
}

.faq-q-text {
    font-family: 'gofteh', sans-serif;
    font-size: clamp(18px, 1.8vw, 26px);
    color: var(--text-primary);
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-navy);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background var(--transition-fast);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

.faq-icon::before {
    width: 15px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 15px;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

/* هاور: سوال و آیکون کمی به هم نزدیک می‌شوند */
.faq-item:hover .faq-q-main {
    transform: translateX(-14px);
}

.faq-item:hover .faq-icon {
    transform: translateX(14px);
    background: var(--accent-primary);
}

/* بازشو نرم پاسخ (ارتفاع با جاوااسکریپت ست می‌شود) */
.faq-a {
    height: 0;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-a p {
    margin: 0;
    padding: 0 4px 28px;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 992px) {
    .faq-section {
        padding: 70px 0 90px;
    }

    .faq-head {
        margin-bottom: 45px;
    }

    .faq-body {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .faq-image {
        max-width: 420px;
        aspect-ratio: 4 / 3;
    }

    .ct-hero {
        height: 220vh;
    }

    .ct-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-bottom: 50px;
    }

    .ct-message-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 50px;
    }

    .ct-message-side {
        order: 2;
    }

    .ct-form-wrap {
        order: 1;
        padding: 30px 22px;
    }
}

@media (max-width: 576px) {
    .ct-word {
        font-size: 30px;
    }

    .ct-word-right {
        right: calc(50% + 129px + var(--zoom) * 30px);
    }

    .ct-word-left {
        left: calc(50% + 126px + var(--zoom) * 30px);
    }

    .ct-hero-frame {
        width: calc(245px + (90vw - 300px) * var(--zoom));
        height: calc(300px + (70vh - 300px) * var(--zoom));
    }

    .ct-info-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ct-form-wrap {
        padding: 26px 18px;
    }
}
