/* ═══ آیین، سیستم گرافیک لندینگ ═══ */

.landing-page {
    position: relative;
    isolation: isolate;
}

.landing-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background-image:
        radial-gradient(circle at 1px 1px, var(--pattern-dot) 1px, transparent 0);
    background-size: 28px 28px;
}

.landing-page > * {
    position: relative;
    z-index: 1;
}

/* ── Hero: پنل شیشه‌ای + قوس امضا ── */

.landing-page .hero {
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(5, 14, 22, 0.92) 0%, transparent 100%);
}

.hero-panel {
    position: relative;
    z-index: 3;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 0;
    text-align: center;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-brick), var(--brand-warm-light), var(--brand-light));
}

.hero-logo {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-eyebrow {
    color: var(--brand-brick-light);
    background: rgba(201, 166, 107, 0.12);
    border-color: rgba(201, 166, 107, 0.32);
    letter-spacing: 0.12em;
    text-transform: none;
}

.hero-title {
    font-family: var(--font-display);
    background: linear-gradient(180deg, #fff 0%, rgba(226, 200, 150, 0.92) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    font-weight: 400;
    letter-spacing: 0.01em;
}

.btn-g {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 45%, var(--brand-warm) 100%);
    box-shadow: 0 12px 32px rgba(13, 122, 111, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(201, 166, 107, 0.25);
}

.btn-g:hover {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand-warm-light) 100%);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--brand-brick), var(--brand-warm-light));
}

/* ── سکشن: هدر ── */

.sec-head-center,
.cta-banner-inner {
    text-align: center;
}

.sec-head-center .sec-title::after,
.cta-banner .sec-title::after {
    margin-inline: auto;
}

.sec-tag {
    position: relative;
    padding-right: 1.1rem;
    background: transparent;
    border: none;
    color: var(--brand-brick-light);
    letter-spacing: 0.14em;
    font-size: 10px;
    text-transform: uppercase;
}

.sec-tag::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-warm-light);
    box-shadow: 0 0 12px rgba(56, 196, 180, 0.5);
}

.sec-title {
    font-family: var(--font-display);
    font-weight: 800;
}

.sec-title::after {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-brick), var(--brand-warm-light), transparent);
    border-radius: 0;
}

.sec-head-center .sec-title::after {
    background: linear-gradient(90deg, transparent, var(--brand-brick), var(--brand-warm-light), transparent);
}

.sec-surface,
.sec-surface-alt,
.sec-surface-tint {
    position: relative;
}

.sec-surface::before,
.sec-surface-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-brick-muted), transparent);
    pointer-events: none;
}

/* ── About: قاب عکس معماری ── */

.about-photo {
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.about-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 48px;
    z-index: 2;
    pointer-events: none;
    border: 2px solid rgba(201, 166, 107, 0.45);
    border-bottom: none;
    border-radius: var(--radius-arch);
}

.about-photo::after {
    background: linear-gradient(160deg, transparent 50%, rgba(5, 14, 22, 0.55) 100%);
}

.orb { display: none; }

.a-badge {
    border-color: var(--card-border);
    background: var(--surface-elevated);
    border-right: 2px solid var(--brand-brick-muted);
}

.a-badge i {
    color: var(--brand-brick-light);
}

.about-stats .stat-card {
    border-top: 2px solid var(--brand-brick-muted);
    background: var(--surface-elevated);
}

.about-stats .stat-card:hover {
    border-color: rgba(201, 166, 107, 0.35);
    background: rgba(26, 79, 140, 0.06);
}

.stat-num {
    font-family: var(--font-display);
    color: var(--brand-brick-light);
}

/* ── مقاطع: شبکهٔ متحرک پس‌زمینه + کارت سینمایی ── */

#levels,
#testimonials {
    isolation: isolate;
}

#levels::after,
#testimonials::after {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--pattern-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--pattern-line) 1px, transparent 1px),
        radial-gradient(circle at 1px 1px, var(--pattern-dot) 1.1px, transparent 0);
    background-size: 56px 56px, 56px 56px, 28px 28px;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.85;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 28%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 28%, transparent 78%);
    animation: sectionGridDrift 32s linear infinite;
}

@keyframes sectionGridDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(56px, 56px, 0);
    }
}

.level-strip-item {
    border-radius: var(--radius);
    box-shadow: var(--shadow-glow);
}

.level-strip-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(201, 166, 107, 0.2);
}

.level-strip-overlay {
    background: linear-gradient(to top, rgba(5, 14, 22, 0.94) 0%, rgba(5, 14, 22, 0.15) 58%);
}

.level-strip-title {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ── گالری + تور ── */

.gallery-mosaic-item {
    border-radius: 14px;
    box-shadow: var(--shadow-glow);
}

.gallery-tour-card {
    border-radius: 16px;
}

.gallery-tour-overlay {
    background:
        linear-gradient(160deg, rgba(5, 14, 22, 0.25) 0%, rgba(13, 122, 111, 0.62) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 12px,
            rgba(255, 255, 255, 0.03) 12px,
            rgba(255, 255, 255, 0.03) 13px
        );
}

.gallery-tour-play {
    border: 2px solid rgba(201, 166, 107, 0.45);
}

/* ── فوق‌برنامه: کارت مجله ── */

.program-rail-thumb {
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.program-rail-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(201, 166, 107, 0.15);
    border-radius: inherit;
}

.program-rail-title {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ── اخبار: editorial ── */

.news-featured-main {
    border-top: 3px solid var(--brand-brick);
    box-shadow: var(--shadow-glow);
}

.news-compact {
    border-right: 2px solid transparent;
    transition: border-color 0.25s, transform 0.25s;
}

.news-compact:hover {
    border-right-color: var(--brand-brick);
    transform: translateX(-3px);
}

.news-event-row {
    border-right: 2px solid var(--brand-brick-muted);
}

/* ── نظرات ── */

.quote-text::before {
    color: var(--brand-brick);
    opacity: 0.65;
}

.quote-text {
    font-family: var(--font-display);
    font-weight: 500;
}

/* ── CTA ── */

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(280px, 50vw);
    height: 40px;
    z-index: 2;
    pointer-events: none;
    border: 2px solid rgba(201, 166, 107, 0.35);
    border-bottom: none;
    border-radius: var(--radius-arch);
}

.cta-banner-bg {
    filter: brightness(0.62) saturate(1.08);
}

.cta-banner-overlay {
    background:
        linear-gradient(135deg, rgba(5, 14, 22, 0.88) 0%, rgba(26, 79, 140, 0.45) 50%, rgba(13, 122, 111, 0.35) 100%);
}

/* ── Nav accent (لندینگ) ── */

body:has(.landing-page) .tg-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-brick) 20%, var(--brand-warm-light) 50%, var(--brand-light) 80%, transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

body:has(.landing-page) .tg-nav.is-scrolled::after {
    opacity: 1;
}

html.light-theme .hero-title {
    background: linear-gradient(180deg, #ffffff 0%, #e8eef4 55%, #e2c896 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.landing-page .btn-o:hover {
    border-color: rgba(201, 166, 107, 0.45);
    color: var(--brand-brick-light);
}

@media (max-width: 768px) {
    .landing-page .hero {
        min-height: max(520px, 100svh);
        height: 100svh;
        align-items: center;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
        padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    }

    .landing-page .hero::after {
        height: 58%;
        background: linear-gradient(to top, rgba(5, 14, 22, 0.96) 0%, rgba(5, 14, 22, 0.35) 55%, transparent 100%);
    }

    .landing-page .hero-slider .slide img {
        object-position: center 26%;
    }

    .landing-page .hero-panel {
        padding: 0.85rem 1rem 0;
        width: 100%;
    }

    .landing-page .hero-panel::before {
        width: 44px;
        height: 2px;
    }

    .landing-page .hero-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 0.65rem;
    }

    .landing-page .hero-eyebrow {
        font-size: 10px;
        padding: 0.28rem 0.65rem;
        margin-bottom: 0.5rem;
    }

    .landing-page .hero-title {
        font-size: clamp(1.75rem, 7.8vw, 2.35rem);
        line-height: 1.18;
    }

    .landing-page .hero-sub {
        font-size: 14px;
        line-height: 1.65;
        max-width: 32ch;
        margin-inline: auto;
        margin-bottom: 1.1rem;
    }

    .landing-page .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
    }

    .landing-page .hero-actions .btn-g {
        width: min(100%, 260px);
        padding: 0.85rem 1.25rem;
        font-size: 14px;
    }

    .landing-page .hero-link {
        font-size: 13px;
        padding: 0.35rem 0;
    }

    .landing-page .hero-dots {
        bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
        gap: 0.45rem;
    }

    .landing-page .hero-dot {
        width: 6px;
        height: 6px;
    }

    .landing-page .hero-dot.is-active {
        width: 18px;
    }

    .landing-page .news-compact-img {
        width: 120px;
    }
}

@media (max-width: 400px) {
    .landing-page .hero-title {
        font-size: clamp(1.55rem, 7.2vw, 2rem);
    }
}

/* ── Shell: nav + footer روی لندینگ ── */

body:has(.landing-page) .tg-nav {
    background: rgba(5, 14, 22, 0.18);
}

body:has(.landing-page) .tg-nav.is-scrolled {
    background: rgba(5, 14, 22, 0.92);
}

html.light-theme body:has(.landing-page) .tg-nav {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(26, 79, 140, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html.light-theme body:has(.landing-page) .tg-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(26, 79, 140, 0.14);
    box-shadow: 0 4px 20px rgba(18, 48, 80, 0.08);
}

body:has(.landing-page) .nav-links .nav-cta {
    padding-inline: 1.1rem;
}

body:has(.landing-page) .site-footer {
    margin-top: 0;
}

body:has(.landing-page) .to-top {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-warm));
    border: 0.5px solid rgba(201, 166, 107, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body:has(.landing-page) .to-top:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-warm-light));
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .slide img {
        transform: none !important;
        transition: none !important;
    }

    #levels::after,
    #testimonials::after {
        animation: none;
    }
}
