/*
Theme Name: فتاح عمران سازندگان ایرانی
Theme URI: https://fattahomran.ir
Author: فتاح عمران
Description: قالب اختصاصی مدیریت پیمان، طراحی و بازسازی، و مشارکت در ساخت
Version: 1.0.0
Text Domain: fattah-omran
*/

/* =====================================================
   فتاح عمران سازندگان ایرانی — استایل اصلی (RTL)
   پالت: سرمه‌ای #0A1F3D | طلایی #E5B45B | خاکستری بتنی
   ===================================================== */

:root {
    --navy-950: #06111F;
    --navy-900: #081629;
    --navy-800: #0A1F3D;
    --navy-700: #10294D;
    --navy-600: #16345E;
    --gold: #E5B45B;
    --gold-deep: #C98B2D;
    --gold-soft: rgba(229, 180, 91, .14);
    --concrete: #B9B4AB;
    --bg: #F6F5F1;
    --surface: #FFFFFF;
    --ink: #1B2430;
    --muted: #5C6672;
    --line: #E6E2D8;
    --success: #1E8E5A;
    --danger: #C0392B;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(10, 31, 61, .07);
    --shadow-md: 0 10px 30px rgba(10, 31, 61, .12);
    --shadow-lg: 0 24px 60px rgba(10, 31, 61, .18);
    --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --container: 1180px;
    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.9;
    font-size: 16px;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--gold); color: var(--navy-900); }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 800; color: var(--navy-800); }

.icon { width: 1.35em; height: 1.35em; flex-shrink: 0; vertical-align: -0.3em; }

/* ---------- چیدمان ---------- */

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: 88px; }
.section-tight { padding-block: 60px; }
.section-alt { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold-deep); font-weight: 700; font-size: .9rem;
    letter-spacing: .02em; margin-bottom: 10px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold-deep); border-radius: 2px; }
.section-head.center .kicker::after { content: ""; width: 34px; height: 2px; background: var(--gold-deep); border-radius: 2px; }

.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- دکمه‌ها ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.6;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-900); box-shadow: 0 8px 22px rgba(201, 139, 45, .35); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(201, 139, 45, .45); }

.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }

.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }

.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #188A45; }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- هدر ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 22, 41, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(6, 17, 31, .35); background: rgba(6, 17, 31, .97); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-mark { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-size: 1.05rem; font-weight: 900; }
.logo-text small { font-size: .72rem; color: var(--gold); letter-spacing: .14em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a.nav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 9px 14px; border-radius: 8px;
    color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .93rem;
    transition: color .2s, background .2s;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--gold); background: rgba(255, 255, 255, .05); }

.has-sub { position: relative; }
.has-sub .chev { width: 1em; height: 1em; transition: transform .25s; }
.has-sub:hover .chev { transform: rotate(180deg); }
.sub-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 230px; padding: 8px;
    background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: .25s ease; list-style: none;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    color: var(--ink); font-weight: 600; font-size: .9rem;
}
.sub-menu a:hover { background: var(--gold-soft); color: var(--gold-deep); }
.sub-menu .icon { color: var(--gold-deep); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold); font-weight: 800; font-size: 1rem;
    direction: ltr;
}
.header-phone:hover { color: #fff; }

.nav-toggle {
    display: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
    color: #fff; border-radius: 10px; width: 44px; height: 44px;
    align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* منوی موبایل */
.nav-panel {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 200;
    background: var(--navy-900); color: #fff;
    padding: 24px; padding-top: 90px;
    transform: translateX(100%); transition: transform .35s ease;
    overflow-y: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
}
.nav-panel.open { transform: translateX(0); }
.nav-panel ul { list-style: none; }
.nav-panel a { display: block; padding: 13px 10px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav-panel a:hover { color: var(--gold); }
.nav-panel .sub-links a { padding-right: 26px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.nav-panel .panel-phones { margin-top: 24px; display: grid; gap: 10px; }
.nav-panel .panel-phones a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid rgba(229, 180, 91, .4); border-radius: 999px;
    color: var(--gold); font-weight: 800; direction: ltr; border-bottom-width: 1px;
}
.nav-close {
    position: absolute; top: 22px; left: 22px;
    background: rgba(255, 255, 255, .08); border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.nav-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(6, 17, 31, .6); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: .3s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ---------- هیرو صفحه اصلی ---------- */

.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; overflow: hidden; color: #fff; }

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media .hero-poster { width: 100%; height: 100%; object-fit: cover; }

/* پس‌زمینه جایگزین (وقتی ویدیو موجود نیست): نقشه مهندسی متحرک و طیف زنده */
.hero-fallback {
    position: absolute; inset: 0;
    background:
        radial-gradient(1200px 600px at 85% 12%, rgba(229, 180, 91, .24), transparent 55%),
        radial-gradient(900px 700px at 15% 85%, rgba(14, 116, 144, .45), transparent 60%),
        radial-gradient(700px 500px at 50% 50%, rgba(29, 78, 216, .3), transparent 70%),
        linear-gradient(145deg, #091931 0%, #0D2647 40%, #112D54 75%, #050E1A 100%);
    overflow: hidden;
}
.hero-fallback::before {
    content: ""; position: absolute; inset: -50%;
    background-image:
        linear-gradient(rgba(229, 180, 91, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 180, 91, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 70% 50%, #000 25%, transparent 75%);
    animation: grid-pan 32s linear infinite;
    transform: perspective(600px) rotateX(25deg) scale(1.3);
}
.hero-fallback::after {
    content: ""; position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 180, 91, .28) 0%, rgba(14, 116, 144, .15) 50%, transparent 70%);
    top: 10%; right: 15%;
    filter: blur(45px);
    animation: orb-float 14s ease-in-out infinite alternate;
}
@keyframes grid-pan {
    from { background-position: 0 0, 0 0; }
    to { background-position: 64px 128px, 128px 64px; }
}
@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, 60px) scale(1.15); }
    100% { transform: translate(60px, -40px) scale(.95); }
}
/* انیمیشن مدرن «ساخت ساختمان» — از پی تا طبقات بالا */
.bld-scene {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}

/* ---------- جرثقیل برجی ---------- */
.bld-crane {
    position: absolute; left: 5%; bottom: 118px;
    width: 420px; height: 470px;
}
.crane-tower {
    position: absolute; bottom: 0; left: 6px; width: 16px; height: 100%;
    background:
        linear-gradient(90deg, transparent 42%, rgba(229, 180, 91, .6) 46%, rgba(229, 180, 91, .6) 54%, transparent 58%),
        repeating-linear-gradient(180deg, rgba(170, 200, 235, .16) 0 9px, transparent 9px 22px);
    background-color: rgba(26, 48, 82, .55);
    border: 1px solid rgba(170, 200, 235, .28);
    border-radius: 3px;
    box-shadow: 0 0 22px rgba(229, 180, 91, .12);
}
.crane-jib {
    position: absolute; top: 4%; left: 10px; width: 410px; height: 18px;
    transform-origin: left center;
    animation: boom-sway 8s ease-in-out infinite;
}
.crane-jib::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(170, 200, 235, .4), rgba(26, 48, 82, .5));
    border: 1px solid rgba(229, 180, 91, .35);
    border-radius: 4px;
    mask-image: linear-gradient(180deg, transparent 18%, #000 32% 68%, transparent 82%);
}
.crane-counter {
    position: absolute; top: 2px; left: 0; width: 26px; height: 14px;
    background: linear-gradient(90deg, rgba(170, 200, 235, .35), rgba(26, 48, 82, .6));
    border: 1px solid rgba(229, 180, 91, .4); border-radius: 3px;
}
.crane-counter::after {
    content: ""; position: absolute; top: 14px; left: 50%; width: 2px; height: 120px;
    background: linear-gradient(rgba(229, 180, 91, .5), transparent); transform: translateX(-50%);
}
.crane-trolley {
    position: absolute; top: -2px; left: 75%; width: 40px; height: 22px;
    background: linear-gradient(180deg, rgba(170, 200, 235, .5), rgba(26, 48, 82, .55));
    border: 1px solid rgba(229, 180, 91, .5); border-radius: 4px;
    box-shadow: 0 0 16px rgba(229, 180, 91, .25);
}
.crane-trolley::before {
    content: ""; position: absolute; top: 22px; left: 50%;
    width: 2px; height: 168px; margin-left: -1px;
    background: linear-gradient(rgba(220, 232, 255, .4), rgba(220, 232, 255, .2));
}
.crane-panel {
    position: absolute; top: 190px; left: 50%; transform: translateX(-50%);
    width: 118px; height: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(100, 140, 200, .18));
    border: 1px solid rgba(229, 180, 91, .55); border-radius: 3px;
    box-shadow: 0 0 16px rgba(229, 180, 91, .35), inset 0 0 8px rgba(255, 255, 255, .2);
    animation: panel-lift 7.5s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes boom-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2deg); } }
@keyframes panel-lift {
    0%, 16% { transform: translate(-50%, 0); }
    36%, 64% { transform: translate(-50%, 148px); }
    84%, 100% { transform: translate(-50%, 0); }
}

/* ---------- دودکش/آسمان‌خراش در حال ساخت ---------- */
.bld-stack {
    position: absolute; left: 18%; bottom: 118px;
    width: 330px; height: min(56vh, 560px);
}
.bld-foundation {
    position: absolute; bottom: -18px; left: -10%; width: 120%; height: 36px;
    background:
        repeating-linear-gradient(135deg, rgba(229, 180, 91, .28) 0 6px, transparent 6px 12px) 0 0 / 100% 100%,
        linear-gradient(180deg, rgba(120, 150, 200, .3), rgba(26, 48, 82, .6));
    border: 1px solid rgba(229, 180, 91, .35);
    box-shadow: 0 10px 30px rgba(6, 17, 31, .55), inset 0 0 12px rgba(0, 0, 0, .4);
    border-radius: 4px;
}
.bld-tower {
    position: absolute; left: 11%; right: 11%; top: 0; bottom: 0;
    display: flex; flex-direction: column-reverse;
    filter: drop-shadow(0 24px 46px rgba(6, 17, 31, .5));
}
.bld-floor {
    position: relative; flex: 1 1 0; overflow: hidden;
    background: linear-gradient(180deg, rgba(120, 165, 220, .17), rgba(40, 80, 140, .06));
    border: 1px solid rgba(229, 180, 91, .16);
    border-bottom-width: 3px; border-bottom-color: rgba(229, 180, 91, .5);
    opacity: 0;
    transform: translateY(calc(var(--fi, 0) * 100%)) scale(.97);
    filter: blur(8px);
    transition: transform 1.15s cubic-bezier(.16, .78, .2, 1), opacity .65s ease, filter .65s ease;
    will-change: transform, opacity;
}
.bld-floor.show { opacity: 1; transform: none; filter: none; }
.floor-spine {
    position: absolute; left: 0; top: 0; bottom: 0; width: 26%;
    background: linear-gradient(90deg, rgba(14, 34, 58, .7), rgba(20, 44, 74, .35));
    border-inline-end: 1px solid rgba(229, 180, 91, .14);
}
.floor-wins {
    position: absolute; top: 0; right: 0; bottom: 0; left: 26%;
    display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr;
    gap: 7px 8px; padding: 9px 10px;
}
.win {
    display: block; border-radius: 3px;
    background: linear-gradient(180deg, rgba(175, 205, 245, .2), rgba(90, 130, 190, .08));
    border: 1px solid rgba(255, 255, 255, .07);
}
.win.lit {
    background: linear-gradient(180deg, #FFE3A1, #E5B45B);
    box-shadow: 0 0 12px rgba(229, 180, 91, .55), inset 0 0 6px rgba(255, 255, 255, .55);
    animation: win-glow 4s ease-in-out infinite;
}
.win.blink { animation: win-blink 5.5s steps(1, end) infinite; }
@keyframes win-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
@keyframes win-blink {
    0%, 88%, 100% { opacity: 1; } 89%, 93% { opacity: .25; } 94%, 97% { opacity: 1; }
}
.bld-tower::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .07) 45%, transparent 58%);
    background-size: 260% 100%;
    animation: facade-sheen 7s linear infinite;
}
@keyframes facade-sheen { 0% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.bld-glow {
    position: absolute; bottom: -52px; left: 50%; transform: translateX(-50%);
    width: 82%; height: 60px;
    background: radial-gradient(ellipse at center, rgba(229, 180, 91, .3), transparent 68%);
    filter: blur(8px);
}

/* ---------- کارت وضعیت ساخت ---------- */
.bld-hud {
    position: absolute; left: 3%; bottom: 108px; width: 210px;
    padding: 13px 15px 15px;
    background: rgba(8, 22, 41, .62);
    border: 1px solid rgba(229, 180, 91, .4);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(6, 17, 31, .45);
}
.hud-top { display: flex; align-items: center; gap: 8px; }
.hud-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(229, 180, 91, .6);
    animation: hud-pulse 1.7s ease-out infinite;
}
@keyframes hud-pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 180, 91, .55); }
    70% { box-shadow: 0 0 0 10px rgba(229, 180, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 180, 91, 0); }
}
.hud-label { color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 700; }
.bld-hud strong { display: block; margin-top: 9px; color: var(--gold); font-size: .95rem; text-align: center; }
.hud-progress {
    position: relative; margin-top: 9px; height: 6px;
    background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden;
}
.hud-progress i {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(229, 180, 91, .6);
    transition: width .5s ease;
}

/* ---------- واکنش‌گرایی صحنه ---------- */
@media (max-width: 1280px) {
    .bld-stack { width: 270px; height: min(46vh, 450px); }
    .bld-crane { width: 360px; height: 400px; }
    .bld-hud { display: none; }
}
@media (max-width: 1024px) {
    .bld-scene { opacity: .45; }
}
@media (max-width: 768px) {
    .bld-scene { display: none; }
}

.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6, 17, 31, .92) 0%, rgba(6, 17, 31, .55) 45%, rgba(6, 17, 31, .35) 100%); }

.hero-content {
    position: relative; z-index: 2;
    padding-block: 120px 90px;
    max-width: 660px;
    margin-inline-start: auto;
    text-align: right;
}

/* بیل مکانیکی و کامیون خاک‌برداری در هیرو */
.excavator-scene {
    position: absolute; right: 4%; bottom: 30px;
    z-index: 2; pointer-events: none;
    opacity: .92;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,.45));
}
.excavator-svg {
    display: block;
}
@media (max-width: 1200px) {
    .excavator-scene { display: none; }
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(229, 180, 91, .12); border: 1px solid rgba(229, 180, 91, .4);
    color: var(--gold); border-radius: 999px; padding: 7px 18px;
    font-weight: 700; font-size: .85rem; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 900; line-height: 1.35; }
.hero h1 .gold { color: var(--gold); }
.hero-sub { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; color: rgba(255, 255, 255, .92); margin-top: 12px; }
.hero-desc { margin-top: 14px; color: rgba(255, 255, 255, .75); font-size: 1.05rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-call { display: none; gap: 12px; margin-top: 20px; }
.hero-call a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 10px; border-radius: 12px; font-weight: 800; direction: ltr;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
}
.hero-call a:first-child { background: rgba(229, 180, 91, .16); border-color: rgba(229, 180, 91, .55); color: var(--gold); }

.hero-scroll {
    position: absolute; bottom: 96px; right: 50%; transform: translateX(50%); z-index: 2;
    width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 999px;
}
.hero-scroll::before {
    content: ""; position: absolute; top: 8px; right: 50%; transform: translateX(50%);
    width: 5px; height: 10px; border-radius: 4px; background: var(--gold);
    animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 26px; } 100% { opacity: 0; top: 8px; } }

/* ---------- آمار ---------- */

.stats { position: relative; z-index: 5; margin-top: -58px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 28px 22px; text-align: center;
    box-shadow: var(--shadow-md); border-top: 3px solid var(--gold);
    transition: transform .3s ease;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-num { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; color: var(--navy-800); direction: ltr; }
.stat-num .plus { color: var(--gold-deep); }
.stat-label { color: var(--muted); font-weight: 600; margin-top: 4px; font-size: .95rem; }

/* ---------- کارت خدمات ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    min-height: 380px; display: flex; align-items: flex-end;
    box-shadow: var(--shadow-sm); isolation: isolate;
    transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .card-bg { position: absolute; inset: 0; z-index: -2; }
.service-card .card-bg img, .service-card .card-bg svg { width: 100%; height: 100%; object-fit: cover; }
.service-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(6, 17, 31, .95) 8%, rgba(6, 17, 31, .55) 55%, rgba(6, 17, 31, .25) 100%);
    transition: .35s;
}
.service-card-body { padding: 26px; color: #fff; width: 100%; }
.service-icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(229, 180, 91, .15); border: 1px solid rgba(229, 180, 91, .5);
    color: var(--gold); margin-bottom: 16px;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { color: #fff; font-size: 1.3rem; }
.service-card p { color: rgba(255, 255, 255, .78); margin-top: 8px; font-size: .95rem; }
.service-more {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold); font-weight: 700; margin-top: 14px; font-size: .92rem;
    transition: gap .25s;
}
.service-card:hover .service-more { gap: 14px; }

/* ---------- پروژه‌ها ---------- */

.filter-bar {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-end;
    gap: 16px 12px; padding: 32px 12px 10px; margin-bottom: 40px;
}
/* دسته‌ی نرده‌ی تراس */
.filter-bar::before {
    content: ""; position: absolute; top: 6px; right: 0; left: 0; height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16345E, #0A1F3D);
    border-top: 1px solid rgba(229, 180, 91, .55);
    box-shadow: 0 4px 14px rgba(10, 31, 61, .3), inset 0 -2px 0 rgba(255, 255, 255, .07);
}
/* گوی طلایی انتهای دسته */
.filter-bar::after {
    content: ""; position: absolute; top: 2px; right: 8px; width: 7px; height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
.chip {
    position: relative; display: flex; align-items: flex-end; justify-content: center;
    min-width: 62px; height: 52px; padding: 0 14px 8px;
    background: linear-gradient(180deg, #fff, #EDEAE2);
    border: 1.5px solid var(--line); border-bottom: 3px solid #D9D4C9;
    border-radius: 9px 9px 5px 5px;
    color: var(--muted); font-weight: 700; font-size: .88rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
/* ساق اتصال پایه به دسته‌ی نرده */
.chip::before {
    content: ""; position: absolute; bottom: 100%; left: 50%;
    width: 4px; height: 24px; transform: translateX(-50%);
    background: linear-gradient(180deg, #B7B2A6, #D9D4C9);
    border-radius: 4px;
}
.chip:hover { border-color: var(--gold-deep); box-shadow: var(--shadow-md); }
.chip.active {
    background: linear-gradient(180deg, #16345E, #0A1F3D);
    border-color: var(--navy-800); border-bottom-color: var(--navy-900);
    color: #fff;
}
/* برچسبی که موقع هاور از پشت نرده بیرون می‌آید */
.chip-label {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 12px; border-radius: 999px; white-space: nowrap;
    background: rgba(10, 31, 61, .92); color: var(--gold);
    font-weight: 800; font-size: .9rem;
    box-shadow: 0 10px 20px rgba(10, 31, 61, .35);
    opacity: 0; transform: translateY(6px);
    transition: transform .34s cubic-bezier(.2, .9, .25, 1.15), opacity .25s, background .25s, color .25s;
}
.chip.active .chip-label { background: #fff; color: var(--navy-800); }
@media (hover: hover) {
    .chip:hover .chip-label,
    .chip.active .chip-label,
    .chip:focus-visible .chip-label {
        opacity: 1; transform: translateY(-44px);
    }
}
/* دستگاه‌های لمسی و موبایل: برچسب همیشه معلوم است */
@media (hover: none) {
    .chip-label {
        opacity: 1; transform: none;
        background: transparent; color: var(--gold-deep);
        box-shadow: none;
    }
    .chip.active .chip-label { background: transparent; color: var(--gold); }
}
.filter-select {
    padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: .88rem;
}

/* ---------- نرده‌ی تزئینی تراس (جداکننده‌ی بخش‌ها) ---------- */
.rail-divider {
    position: relative; display: flex; justify-content: center; align-items: flex-start;
    width: 190px; height: 48px; margin: 4px auto 0;
}
.rail-divider::before {
    content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16345E, #0A1F3D);
    border-top: 1px solid rgba(229, 180, 91, .5);
    box-shadow: 0 3px 10px rgba(10, 31, 61, .2);
}
.rail-divider::after {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 9px; height: 19px; border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
.rd-post {
    width: 10px; height: 46px; margin: 8px 19px 0; border-radius: 4px;
    background: linear-gradient(180deg, #DDD8CD, #B9B4AB);
    border-top: 3px solid #fff;
}

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projects-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.project-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease;
    display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img, .project-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-media img, .project-card:hover .project-media svg { transform: scale(1.07); }
.project-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.project-card:hover .project-media video { opacity: 1; }
.project-chips { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.chip-tag {
    background: rgba(6, 17, 31, .75); backdrop-filter: blur(6px);
    color: var(--gold); font-size: .75rem; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
}
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-body h3 { font-size: 1.12rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .84rem; }
.project-meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-meta .icon { color: var(--gold-deep); width: 1.1em; height: 1.1em; }
.project-link { margin-top: auto; padding-top: 12px; }
.project-link a { color: var(--gold-deep); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; }
.project-link a:hover { gap: 12px; }
.project-link .icon { transition: transform .2s; }
.project-link a:hover .icon { transform: translateX(-3px); }

.section-cta-row { text-align: center; margin-top: 44px; }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--muted);
    background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line);
}

/* ---------- تایم‌لاین ---------- */

.timeline-wrap { position: relative; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; padding-top: 8px; }
.timeline::before {
    content: ""; position: absolute; top: 24px; right: 4%; left: 4%;
    height: 3px; background: var(--line); border-radius: 2px;
}
.timeline::after {
    content: ""; position: absolute; top: 24px; right: 4%;
    width: var(--progress, 0%); max-width: 92%;
    height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    border-radius: 2px; transition: width .25s linear;
}
.timeline-step { text-align: center; position: relative; padding-top: 0; }
.step-dot {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--line);
    margin: 8px auto 18px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; color: var(--muted);
    position: relative; z-index: 1; transition: .35s;
}
.timeline-step.active .step-dot { background: var(--gold); border-color: var(--gold-deep); color: var(--navy-900); box-shadow: 0 0 0 7px var(--gold-soft); }
.timeline-step h4 { font-size: .98rem; margin-bottom: 6px; }
.timeline-step p { color: var(--muted); font-size: .82rem; line-height: 1.8; }

/* تایم‌لاین عمودی (صفحه فرآیند و موبایل) */
.timeline-vertical { position: relative; padding-right: 34px; max-width: 760px; }
.timeline-vertical::before {
    content: ""; position: absolute; top: 6px; bottom: 6px; right: 11px;
    width: 3px; background: var(--line); border-radius: 2px;
}
.timeline-vertical::after {
    content: ""; position: absolute; top: 6px; right: 11px;
    height: var(--progress, 0%); width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 2px; transition: height .2s linear;
}
.v-step { position: relative; padding-bottom: 38px; }
.v-step:last-child { padding-bottom: 0; }
.v-step .step-dot { position: absolute; right: -34px; top: 4px; margin: 0; width: 26px; height: 26px; font-size: .78rem; }
.v-step.active .step-dot { background: var(--gold); border-color: var(--gold-deep); color: var(--navy-900); }
.v-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.v-step p { color: var(--muted); }
.v-step .step-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--gold-soft); color: var(--gold-deep); font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }

/* ---------- اعتمادسازی ---------- */

.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 48px; }
.trust-logo {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 12px 24px;
    color: var(--muted); font-weight: 700; font-size: .9rem;
    box-shadow: var(--shadow-sm);
}
.trust-logo .icon { color: var(--gold-deep); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); position: relative;
    border-bottom: 3px solid var(--gold);
}
.testimonial-card .quote-ic { color: var(--gold); opacity: .5; width: 38px; height: 38px; margin-bottom: 12px; }
.testimonial-card p { color: var(--ink); font-size: .95rem; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-person .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy-700); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem;
}
.testimonial-person strong { display: block; font-size: .92rem; }
.testimonial-person span { color: var(--muted); font-size: .8rem; }
.stars { display: flex; gap: 2px; color: var(--gold-deep); margin-bottom: 12px; }
.stars .icon { width: 1em; height: 1em; }

/* ---------- هوشمندسازی و IoT ---------- */

.iot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.iot-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.iot-card:hover { transform: translateY(-6px); border-color: rgba(229, 180, 91, .55); background: rgba(255, 255, 255, .08); }
.iot-card .service-icon { margin-bottom: 14px; }
.iot-card h3 { color: #fff; font-size: 1.02rem; }
.iot-card p { color: rgba(255, 255, 255, .68); font-size: .86rem; margin-top: 8px; }

/* ---------- فراخوان نهایی (CTA) ---------- */

.cta-band {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 80% 20%, rgba(229, 180, 91, .18), transparent 60%),
        linear-gradient(150deg, var(--navy-800), var(--navy-950));
    color: #fff;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
}
.cta-inner { position: relative; text-align: center; max-width: 780px; margin-inline: auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cta-inner > p { color: rgba(255, 255, 255, .75); margin-top: 12px; }
.cta-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.cta-phones a {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px;
    border: 1.5px solid rgba(229, 180, 91, .55); color: var(--gold);
    font-weight: 800; font-size: 1.15rem; direction: ltr;
    background: rgba(229, 180, 91, .08); transition: .25s;
}
.cta-phones a:hover { background: var(--gold); color: var(--navy-900); }
.cta-form { margin-top: 36px; }

/* ---------- فرم‌ها ---------- */

.form-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-md);
}
.form-card.on-dark { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; color: inherit; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form-card.on-dark .field input, .form-card.on-dark .field select, .form-card.on-dark .field textarea {
    background: rgba(6, 17, 31, .5); border-color: rgba(255, 255, 255, .18); color: #fff;
}
.form-card.on-dark .field select option { color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold-deep);
    box-shadow: 0 0 0 4px var(--gold-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A6ACB5; }
.form-card.on-dark .field input::placeholder, .form-card.on-dark .field textarea::placeholder { color: rgba(255, 255, 255, .45); }

.hp-field { position: absolute !important; right: -9999px !important; opacity: 0; }

.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: .92rem; margin-bottom: 18px;
}
.alert .icon { width: 1.4em; height: 1.4em; }
.alert-success { background: rgba(30, 142, 90, .12); color: var(--success); border: 1px solid rgba(30, 142, 90, .35); }
.alert-error { background: rgba(192, 57, 43, .1); color: var(--danger); border: 1px solid rgba(192, 57, 43, .3); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.form-card.on-dark .form-note { color: rgba(255, 255, 255, .55); }

/* ---------- هیرو صفحات داخلی ---------- */

.page-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(700px 340px at 85% 10%, rgba(229, 180, 91, .15), transparent 60%),
        linear-gradient(150deg, var(--navy-700), var(--navy-950));
    color: #fff; padding-block: 74px 64px;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin-top: 8px; }
.page-hero p.lead { color: rgba(255, 255, 255, .75); max-width: 640px; margin-top: 12px; font-size: 1.02rem; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }

/* ---------- درباره ما ---------- */

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 28px 22px; box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    border-bottom: 3px solid transparent;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-bottom-color: var(--gold); }
.value-card .service-icon { margin-bottom: 14px; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--muted); font-size: .88rem; margin-top: 8px; }

.prose { max-width: 820px; }
.prose p { margin-bottom: 18px; color: #33404E; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 22px; }
.team-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 6 / 7; overflow: hidden; }
.team-photo img, .team-photo svg { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 18px 20px; text-align: center; }
.team-body h3 { font-size: 1.02rem; }
.team-body span { color: var(--gold-deep); font-size: .84rem; font-weight: 700; }

/* ---------- صفحه خدمت ---------- */

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; max-width: 820px; }
.feature-list li {
    list-style: none; display: flex; align-items: flex-start; gap: 12px;
    background: var(--surface); border-radius: var(--radius-sm);
    padding: 15px 18px; box-shadow: var(--shadow-sm); font-size: .93rem;
}
.feature-list .icon { color: var(--gold-deep); margin-top: 4px; }

.type-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type-card {
    background: var(--surface); border-radius: var(--radius); padding: 24px 20px;
    box-shadow: var(--shadow-sm); text-align: center;
    border-top: 3px solid var(--gold-soft); transition: .3s;
}
.type-card:hover { border-top-color: var(--gold-deep); transform: translateY(-5px); }
.type-card .service-icon { margin-inline: auto; }
.type-card h3 { font-size: 1rem; margin-top: 4px; }
.type-card p { color: var(--muted); font-size: .84rem; margin-top: 8px; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); cursor: zoom-in; }
.ba-item img, .ba-item svg { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.ba-tag {
    position: absolute; top: 14px; right: 14px;
    background: rgba(6, 17, 31, .78); color: #fff; backdrop-filter: blur(6px);
    padding: 6px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.ba-item.after .ba-tag { background: rgba(201, 139, 45, .92); color: var(--navy-900); }

/* ---------- صفحه پروژه ---------- */

.project-hero-media {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
    aspect-ratio: 21 / 9;
}
.project-hero-media img, .project-hero-media svg, .project-hero-media video { width: 100%; height: 100%; object-fit: cover; }

.specs-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.specs-table th, .specs-table td { padding: 14px 20px; text-align: right; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs-table th { color: var(--muted); font-weight: 600; width: 38%; background: #FBFAF7; }
.specs-table td { font-weight: 700; color: var(--navy-800); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img, .gallery-item svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img, .gallery-item:hover svg { transform: scale(1.06); }

.challenge-box {
    background: var(--surface); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--gold);
}
.challenge-box h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.challenge-box h3 .icon { color: var(--gold-deep); }
.challenge-box p { color: var(--muted); font-size: .93rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- بلاگ ---------- */

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-cover { aspect-ratio: 8 / 5; overflow: hidden; }
.post-cover img, .post-cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-cover img, .post-card:hover .post-cover svg { transform: scale(1.05); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.post-cat { color: var(--gold-deep); font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.post-body h3 { font-size: 1.08rem; line-height: 1.6; }
.post-body h3 a:hover { color: var(--gold-deep); }
.post-excerpt { color: var(--muted); font-size: .88rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: 10px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .icon { width: 1.05em; height: 1.05em; color: var(--gold-deep); }

.article { max-width: 800px; }
.article .post-cover-main { border-radius: var(--radius); overflow: hidden; margin-block: 26px; box-shadow: var(--shadow-md); }
.article h2 { font-size: 1.45rem; margin: 34px 0 14px; }
.article h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.article p { color: #33404E; margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-right: 8px; }
.article li { margin-bottom: 8px; color: #33404E; }
.article blockquote {
    border-right: 4px solid var(--gold-deep); background: var(--gold-soft);
    padding: 16px 22px; border-radius: 10px; margin-block: 22px; color: var(--navy-800); font-weight: 600;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .88rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { color: var(--gold-deep); }

/* ---------- تماس ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.contact-card {
    background: var(--surface); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card .service-icon { margin-inline: auto; }
.contact-card .phone-big {
    display: block; font-size: 1.25rem; font-weight: 900; color: var(--navy-800);
    direction: ltr; margin-top: 8px;
}
.contact-card .phone-big:hover { color: var(--gold-deep); }
.contact-card small { color: var(--muted); }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(.85); }

.hours-strip {
    display: flex; align-items: center; gap: 12px;
    background: var(--gold-soft); border: 1px dashed var(--gold-deep);
    border-radius: var(--radius-sm); padding: 14px 18px;
    color: var(--gold-deep); font-weight: 700; font-size: .92rem; margin-top: 18px;
}

/* ---------- فوتر ---------- */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-block: 64px 44px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; color: rgba(255, 255, 255, .6); max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--gold); border-radius: 2px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, .68); font-size: .9rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--gold); padding-right: 4px; }
.footer-phones a {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.18rem; font-weight: 900; color: var(--gold);
    direction: ltr; justify-content: flex-end;
    padding: 6px 0;
}
.footer-phones a:hover { color: #fff; }
.footer-phones a .icon { width: 1.2em; height: 1.2em; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8); transition: .25s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; justify-content: space-between;
    font-size: .82rem; color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .6); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- شناورها ---------- */

.call-bar {
    display: none; position: fixed; bottom: 0; right: 0; left: 0; z-index: 120;
    background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
}
.call-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px; border-radius: 12px; font-weight: 800; font-size: .88rem;
    background: rgba(255, 255, 255, .08); color: #fff; direction: ltr;
}
.call-bar a.wa { flex: 0 0 54px; background: #1FA855; }
.call-bar a.wa .icon { width: 22px; height: 22px; }
.call-bar a.hot { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-900); }

.wa-float {
    position: fixed; bottom: 26px; left: 26px; z-index: 110;
    width: 58px; height: 58px; border-radius: 50%;
    background: #1FA855; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(31, 168, 85, .45);
    transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- لایت‌باکس ---------- */

.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(6, 17, 31, .93); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-btn {
    position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: .2s;
}
.lightbox .lb-btn:hover { background: var(--gold); color: var(--navy-900); }
.lightbox .lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 24px; left: 24px; }
.lb-next { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 26px; right: 50%; transform: translateX(50%); color: rgba(255, 255, 255, .7); font-weight: 700; font-size: .9rem; }

/* ---------- انیمیشن‌های اسکرول ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- ابزار ---------- */

.text-gold { color: var(--gold-deep); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }

/* =====================================================
   ریسپانسیو
   ===================================================== */

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid, .posts-grid, .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid, .team-grid, .type-cards { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
    .timeline::before, .timeline::after { display: none; }
    .timeline-step .step-dot { margin-bottom: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .main-nav, .header-phone { display: none; }
    .nav-toggle { display: flex; }
    .contact-grid { grid-template-columns: 1fr; }
    .call-bar { display: flex; }
    body { padding-bottom: 74px; }
    .wa-float { display: none; }
    .section { padding-block: 64px; }
}

@media (max-width: 680px) {
    .hero-content { padding-block: 100px 70px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-call { display: flex; }
    .projects-grid, .posts-grid, .services-grid, .testimonials-grid,
    .values-grid, .team-grid, .type-cards, .gallery-grid { grid-template-columns: 1fr; }
    .projects-grid.cols-2 { grid-template-columns: 1fr; }
    .two-col, .form-grid, .contact-cards, .ba-grid { grid-template-columns: 1fr; }
    .form-grid.cols-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats-grid { gap: 14px; }
    .stat-card { padding: 20px 14px; }
    .project-hero-media { aspect-ratio: 16 / 10; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .lightbox .lb-next { left: 10px; } .lightbox .lb-prev { right: 10px; }
}

@media (max-width: 420px) {
    .timeline { grid-template-columns: 1fr; }
    .header-cta .btn { padding: 10px 16px; font-size: .85rem; }
}

/* کاهش حرکت برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   ارتقای ظاهری: نوار پیشرفت، دکمه بازگشت به بالا، اسکرول‌بار، درخشش دکمه‌ها و نوار متحرک
   ===================================================== */

/* نوار پیشرفت اسکرول */
.scroll-progress {
    position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 270;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), #FFE9B8, var(--gold));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .12s ease-out;
    pointer-events: none;
}

/* دکمه بازگشت به بالا */
.to-top {
    position: fixed; bottom: 26px; right: 26px; z-index: 120;
    width: 52px; height: 52px; border-radius: 14px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--gold);
    box-shadow: 0 12px 30px rgba(10, 31, 61, .4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(229, 180, 91, .3); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(90deg); }

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #EDEBE4; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
    border-radius: 999px; border: 2px solid #EDEBE4;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* درخشش هنگام هاور روی دکمه‌ها */
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: ""; position: absolute; top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}
.btn:hover::after { left: 135%; }

/* نوار متحرک (مارکی) خدمات */
.ticker {
    position: relative; overflow: hidden;
    background: linear-gradient(90deg, #0A1F3D, #122C52, #0A1F3D);
    border-block: 1px solid rgba(229, 180, 91, .35);
    margin-top: 36px; padding-block: 13px;
}
.ticker::before, .ticker::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker::before { right: 0; background: linear-gradient(270deg, #0A1F3D, transparent); }
.ticker::after { left: 0; background: linear-gradient(90deg, #0A1F3D, transparent); }
.ticker-track {
    display: flex; width: max-content;
    animation: ticker-move 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 24px;
    margin-inline: 24px; padding-inline-start: 24px;
    color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem;
    white-space: nowrap;
}
.ticker-item::before { content: "◆"; color: var(--gold); font-size: .7rem; }
@keyframes ticker-move { to { transform: translateX(-50%); } }

@media (max-width: 680px) {
    .to-top { bottom: 94px; right: 12px; width: 46px; height: 46px; }
}

/* =====================================================
   انتخاب زبان — منوی هاور روی کره
   ===================================================== */
.gtranslate { position: relative; display: inline-flex; align-items: center; min-height: 34px; }
.globe-ic { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08); color: var(--gold);
    cursor: pointer; transition: background .25s, transform .25s, border-color .25s;
}
.lang-btn:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold); transform: scale(1.08); }
.lang-btn .globe-ic { width: 20px; height: 20px; }

.lang-pop {
    position: absolute; top: calc(100% + 10px); right: 0;
    margin: 0; padding: 6px; list-style: none;
    min-width: 168px; border-radius: 14px;
    background: rgba(10, 25, 48, .97); border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .22s, transform .22s, visibility .22s;
    z-index: 240;
}
.gtranslate.is-open .lang-pop,
.gtranslate:hover .lang-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-pop li { margin: 0; }
.lang-pop button {
    display: block; width: 100%; text-align: right;
    padding: 9px 14px; border: 0; border-radius: 9px;
    background: transparent; color: rgba(255, 255, 255, .9);
    font-family: var(--font); font-size: .88rem; font-weight: 500;
    cursor: pointer; direction: rtl; transition: background .18s, color .18s;
}
.lang-pop button:hover { background: rgba(255, 255, 255, .1); color: var(--gold); }
.lang-pop button.is-active {
    background: linear-gradient(135deg, rgba(229, 180, 91, .22), rgba(229, 180, 91, .08));
    color: var(--gold); font-weight: 700;
}
.lang-pop button.is-active::before { content: '✓ '; font-weight: 700; }

.nav-lang {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 4px 6px; margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.nav-lang-label { color: rgba(255, 255, 255, .8); font-weight: 700; font-size: .85rem; }
.nav-panel .lang-pop { right: auto; left: 0; min-width: 180px; }

@media (max-width: 860px) {
    .header-cta > .gtranslate { display: none; }
}



/* =====================================================
   ارتقای گرافیکی لوکس و مدرن (Visual Polish)
   ===================================================== */
.service-card, .project-card, .iot-card, .testimonial-card, .stat-card {
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease !important;
}
.service-card:hover, .project-card:hover, .iot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 31, 61, .16);
}
.service-card img, .project-media img, .post-cover img {
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.service-card:hover img, .project-card:hover .project-media img {
    transform: scale(1.06);
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 4px rgba(229, 180, 91, .2) !important;
    outline: none;
}
.hero-badge {
    backdrop-filter: blur(8px);
    background: rgba(10, 31, 61, .65);
    border: 1px solid rgba(229, 180, 91, .3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.cta-band {
    background: linear-gradient(135deg, var(--navy-950), var(--navy-800), var(--navy-900)) !important;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(229, 180, 91, .07) 0%, transparent 60%);
    pointer-events: none;
}
.chip {
    transition: all .25s ease !important;
}
.chip:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
}
input[type="checkbox"], input[type="radio"], input[type="button"], input[type="submit"], input[type="range"], label, summary {
    cursor: pointer;
}

/* =====================================================
   اسپلش اسکرین (برج میلاد طلایی با قابلیت کلیک و تخریب)
   ===================================================== */
.intro-splash {
    position: fixed; inset: 0; z-index: 99999;
    background: radial-gradient(circle at center, #2C200B 0%, #151006 60%, #080602 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .8s cubic-bezier(.77, 0, .175, 1), visibility .8s ease, transform .8s cubic-bezier(.77, 0, .175, 1);
}
.intro-splash.collapsing {
    opacity: 0; visibility: hidden;
    transform: scale(1.12) translateY(40px);
    pointer-events: none;
}
.intro-splash.collapsing .milad-tower {
    transform: scale(0.35) rotateX(75deg) rotateZ(45deg) translateY(200px);
    opacity: 0; filter: blur(16px);
}
.intro-tower-wrap {
    text-align: center; cursor: pointer; padding: 48px 60px;
    background: rgba(35, 26, 10, .6);
    border: 1px solid rgba(229, 180, 91, .5);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .8), 0 0 50px rgba(229, 180, 91, .2);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.intro-tower-wrap:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 45px 110px rgba(0, 0, 0, .85), 0 0 50px rgba(229, 180, 91, .4);
}

/* شبیه‌سازی برج میلاد تهران با طیف طلایی */
.milad-tower {
    width: 90px; height: 260px; margin: 0 auto 26px;
    position: relative; display: flex; flex-direction: column; align-items: center;
    transition: transform .8s cubic-bezier(.77, 0, .175, 1), opacity .8s ease;
}
.milad-spire {
    width: 3px; height: 35px; background: var(--gold); border-radius: 2px;
    box-shadow: 0 0 15px var(--gold);
}
.milad-pod {
    width: 22px; height: 26px; background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: 50% 50% 40% 40%; margin-top: -2px;
    box-shadow: 0 0 20px rgba(229, 180, 91, .7);
}
.milad-head {
    width: 68px; height: 52px; 
    background: linear-gradient(135deg, rgba(229, 180, 91, .4), rgba(43, 31, 10, .9));
    border: 1.5px solid var(--gold); border-radius: 12px;
    margin-top: -4px;
    box-shadow: inset 0 0 16px rgba(229, 180, 91, .35), 0 5px 25px rgba(0,0,0,.6);
    position: relative;
}
.milad-head::after {
    content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 10px; background: #1B1306; border: 1px solid var(--gold);
    border-radius: 4px;
}
.milad-shaft {
    width: 12px; flex: 1; 
    background: linear-gradient(90deg, rgba(43, 31, 10, .7), rgba(229, 180, 91, .35), rgba(43, 31, 10, .7));
    border-inline: 1px solid rgba(229, 180, 91, .4);
    box-shadow: inset 0 0 10px rgba(229, 180, 91, .2);
}
.milad-base {
    width: 74px; height: 20px; 
    background: linear-gradient(135deg, #1B1306, #080602);
    border: 1.5px solid var(--gold); border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,.7);
}

.intro-prompt h2 { color: #fff; font-size: 1.7rem; margin-bottom: 14px; font-weight: 900; }
.intro-click-badge {
    display: inline-block; padding: 12px 32px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--navy-900); font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 10px 28px rgba(229, 180, 91, .45);
    animation: badge-bounce 1.5s ease-in-out infinite;
}
@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* بیل مکانیکی و کامیون خاک‌برداری (بالاتر آورده شده) */
.excavator-scene {
    position: absolute; right: 6%; bottom: 150px;
    z-index: 2; pointer-events: none;
    opacity: .95;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
}
.excavator-svg { display: block; }
@media (max-width: 1024px) {
    .excavator-scene { display: none; }
}

/* کارگران روی طبقات و چراغ هشدار سقف */
.floor-workers {
    position: absolute; bottom: 4px; left: 0; right: 0; height: 16px;
    pointer-events: none; opacity: 0; transform: translateY(4px);
    transition: opacity .4s ease, transform .4s ease;
}
.bld-floor.show .floor-workers {
    opacity: 1; transform: translateY(0);
}
.worker {
    position: absolute; bottom: 0; width: 6px; height: 14px;
    display: flex; flex-direction: column; align-items: center;
}
.w-helmet {
    width: 7px; height: 3px; background: var(--gold); border-radius: 50% 50% 0 0;
    box-shadow: 0 0 5px var(--gold);
}
.w-body {
    width: 5px; height: 11px; background: #3B82F6; border-radius: 2px;
}

.bld-roof-light {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px; background: #EF4444; border-radius: 50%;
    box-shadow: 0 0 14px #EF4444, 0 0 28px #EF4444;
    opacity: 0; z-index: 5;
    transition: opacity .4s ease;
}
.bld-tower .bld-floor:last-child.show ~ .bld-roof-light {
    opacity: 1;
    animation: roof-blink 0.7s ease-in-out infinite alternate;
}
@keyframes roof-blink {
    from { opacity: .4; transform: translateX(-50%) scale(0.85); }
    to { opacity: 1; transform: translateX(-50%) scale(1.25); box-shadow: 0 0 22px #EF4444, 0 0 45px #EF4444; }
}

