/* ============================================================
   عاج سمنت — Components & Sections (Light · Minimal)
   ============================================================ */

/* ---------- chrome ---------- */
.skip-link { position: fixed; top: -60px; right: 16px; z-index: var(--z-modal); background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; font-weight: var(--fw-bold); transition: top var(--d-fast) var(--ease); }
.skip-link:focus { top: 16px; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-overlay); background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: var(--r-pill); font-weight: var(--fw-bold); font-size: .98rem; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: transform var(--d-fast) var(--ease), background var(--d-base), color var(--d-base), border-color var(--d-base), box-shadow var(--d-base); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform var(--d-base) var(--ease); }
.btn:hover .arr { transform: translateX(-5px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--ink); color: var(--bg); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); transition: background var(--d-base), border-color var(--d-base), box-shadow var(--d-base); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(247,244,239,.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(32,29,24,.22)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word strong { font-weight: var(--fw-black); font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.brand-word em { font-style: normal; font-size: .58rem; letter-spacing: .24em; color: var(--muted-2); }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { padding: .5rem .8rem; font-size: .93rem; color: var(--muted); border-radius: 8px; position: relative; transition: color var(--d-fast); }
.nav-links a::after { content: ""; position: absolute; right: .8rem; left: .8rem; bottom: .35rem; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform var(--d-base) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--d-base) var(--ease), opacity var(--d-fast); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 79; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; opacity: 0; visibility: hidden; transition: opacity var(--d-base), visibility var(--d-base); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-links { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.mobile-links a { font-size: 1.4rem; font-weight: var(--fw-bold); color: var(--ink); }
.mobile-links a.btn { font-size: 1.05rem; margin-top: .5rem; }
.mobile-contact { margin-top: 1rem; }
.mobile-contact a { color: var(--clay); font-size: 1.2rem; font-weight: var(--fw-bold); }

/* ---------- hero (split, minimal) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; padding-bottom: 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { max-width: 620px; }
.hero-eyebrow, .hero-copy .eyebrow { color: var(--muted-2); }
.hero-title { font-size: var(--t-h1); line-height: 1.05; margin: 1.2rem 0 0; font-weight: var(--fw-black); letter-spacing: -.02em; }
.hero-title i { font-style: normal; }
.hero-sub { margin-top: 1.5rem; font-size: var(--t-lead); color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-badges li { position: relative; padding-right: 1.1rem; color: var(--muted); font-size: .95rem; }
.hero-badges li::before { content: "—"; position: absolute; right: 0; color: var(--clay); }
.hero-badges b { color: var(--ink); font-weight: var(--fw-semi); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -16px -16px 16px 16px; border: 1px solid var(--sand); border-radius: var(--r-lg); z-index: 0; pointer-events: none; }
.hero-photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); background-image: url("../assets/hero.jpg"); background-size: cover; background-position: center; box-shadow: var(--shadow-md); }
.hero-cap { position: absolute; bottom: 14px; right: 14px; left: 14px; display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); font-size: .82rem; color: var(--ink); font-weight: var(--fw-semi); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted-2); font-size: .74rem; letter-spacing: .2em; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-hint .mouse i { width: 3px; height: 6px; border-radius: 2px; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .scroll-hint .mouse i { animation: scrolly 1.6s var(--ease) infinite; } }
@keyframes scrolly { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(11px); opacity: 0; } }

/* ---------- benefits ---------- */
.benefits-grid { grid-template-columns: repeat(3, 1fr); }
.b-card { padding: 2rem 1.8rem; border-radius: var(--r-lg); background: var(--bg-pure); border: 1px solid var(--line); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base), border-color var(--d-base); }
.b-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.b-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem; background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.b-ico svg { width: 26px; height: 26px; }
.b-card h3 { font-size: var(--t-h5); margin-bottom: .5rem; }
.b-card p { color: var(--muted); font-size: .97rem; }

/* ---------- feature band / before-after ---------- */
.feature-band { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-text h2 { margin: .9rem 0 1.1rem; }
.feature-mini { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.feature-mini > div { display: flex; flex-direction: column; }
.fm-num { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: var(--fw-black); line-height: 1; color: var(--ink); }
.fm-l { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.feature-visual { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-visual img, .feature-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-2); }
.feature-photo { background-image: url("../assets/apply.jpg"); background-size: cover; background-position: center; }
/* before/after kept for compatibility but simplified */
.ba { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.ba-after, .ba-before, .ba-img { position: absolute; inset: 0; }
.ba-before { width: 52%; overflow: hidden; border-left: 2px solid var(--bg); }
.ba-label { position: absolute; bottom: 12px; padding: .35rem .8rem; font-size: .78rem; font-weight: var(--fw-semi); background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: var(--r-pill); border: 1px solid var(--glass-line); color: var(--ink); }
.ba-after .ba-label { right: 12px; } .ba-before .ba-label { left: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; right: 52%; width: 2px; transform: translateX(50%); pointer-events: none; }
.ba-line { position: absolute; inset: 0; background: var(--ink); }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.ba-grip i { font-style: normal; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.ba.kbd .ba-grip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

/* ---------- products ---------- */
.products-sec { background: var(--bg); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.product { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-pure); border: 1px solid var(--line); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base), border-color var(--d-base); }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-img { position: relative; aspect-ratio: 5/4; background-size: cover; background-position: center; background-color: var(--cream-2); }
.product-type { position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: var(--fw-semi); color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--glass-line); padding: .3rem .7rem; border-radius: var(--r-pill); }
.product-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: var(--t-h6); }
.product-en { font-size: .68rem; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; margin-top: .25rem; }
.product-body p { color: var(--muted); font-size: .92rem; margin-top: .6rem; flex: 1; }
.product-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--ink); font-weight: var(--fw-bold); font-size: .88rem; }
.product-cta .arr { transition: transform var(--d-base) var(--ease); }
.product:hover .product-cta .arr { transform: translateX(-5px); }

/* ---------- projects / gallery (minimal: caption below) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter { padding: .5rem 1.1rem; border-radius: var(--r-pill); font-size: .9rem; font-weight: var(--fw-semi); color: var(--muted); background: transparent; border: 1px solid var(--line-2); transition: all var(--d-fast) var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.active { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.gallery { column-count: 3; column-gap: clamp(1rem, 2vw, 1.6rem); }
.card { display: block; width: 100%; margin-bottom: clamp(1.2rem, 2.4vw, 2rem); break-inside: avoid; cursor: pointer; background: transparent; }
.card-media { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; background-image: var(--g, linear-gradient(160deg, #e8e2d6, #d9d1c2)); background-size: cover; background-position: center; box-shadow: var(--shadow-xs); transition: box-shadow var(--d-base), transform var(--d-base) var(--ease); }
.card.tall .card-media { aspect-ratio: 4/5.6; }
.card-media-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform var(--d-slow) var(--ease); }
.card:hover .card-media { box-shadow: var(--shadow-md); }
.card:hover .card-media-img { transform: scale(1.04); }
.card-zoom { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--glass-line); color: var(--ink); opacity: 0; transform: scale(.7); transition: all var(--d-base) var(--ease); }
.card:hover .card-zoom { opacity: 1; transform: scale(1); }
.card.tour .card-zoom::after { content: "۳۶۰°"; font-size: .58rem; font-weight: var(--fw-bold); }
.card-body { padding: .9rem .2rem 0; }
.card-cat { display: inline-block; font-size: .7rem; font-weight: var(--fw-bold); letter-spacing: .1em; color: var(--clay); text-transform: uppercase; }
.card-title { font-size: var(--t-h6); font-weight: var(--fw-bold); color: var(--ink); margin-top: .3rem; }
.card-finish { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.card.hide { display: none; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: var(--r-md); }

/* lightbox (light backdrop) */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(247,244,239,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity var(--d-base), visibility var(--d-base); }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; width: min(980px, 92vw); aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.lb-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.lb-stage.zoom .lb-media { transform: scale(1.55); cursor: zoom-out; }
.lb-cap { position: absolute; bottom: 0; inset-inline: 0; padding: 1.4rem; background: linear-gradient(0deg, rgba(32,29,24,.7), transparent); color: var(--bg); }
.lb-cap h3 { color: #fff; font-size: var(--t-h5); }
.lb-cap p { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: .3rem; }
.lb-close, .lb-nav { position: absolute; background: var(--bg-pure); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow-sm); transition: background var(--d-fast), color var(--d-fast); }
.lb-close { top: 18px; left: 18px; width: 44px; height: 44px; font-size: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.4rem; }
.lb-nav:hover, .lb-close:hover { background: var(--ink); color: var(--bg); }
.lb-prev { right: 18px; } .lb-next { left: 18px; }
.lb-tour { position: absolute; top: 16px; right: 16px; z-index: 4; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: var(--r-pill); background: var(--bg-pure); border: 1px solid var(--line); color: var(--ink); font-size: .82rem; font-weight: var(--fw-semi); box-shadow: var(--shadow-sm); transition: all var(--d-fast); }
.lb-tour:hover, .lb-tour[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lb-tour-ic { font-size: .7rem; }
.lb-pan-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3; padding: .5rem 1rem; border-radius: var(--r-pill); background: var(--bg-pure); border: 1px solid var(--line); color: var(--ink); font-size: .84rem; font-weight: var(--fw-semi); opacity: 0; pointer-events: none; box-shadow: var(--shadow-sm); }
.lb-stage.pano .lb-pan-hint { animation: hintfade 3s ease 1s forwards; }
@keyframes hintfade { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
.lb-stage.pano .lb-media { background-size: auto 130%; background-repeat: repeat-x; cursor: grab; }
.lb-stage.pano.grabbing .lb-media { cursor: grabbing; }

/* ---------- services ---------- */
.services { background: var(--cream); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service { padding: 2rem 1.8rem 1.9rem; border-radius: var(--r-lg); background: var(--bg-pure); border: 1px solid var(--line); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-tag { font-size: .68rem; letter-spacing: .16em; font-weight: var(--fw-bold); color: var(--clay); text-transform: uppercase; }
.service h3 { font-size: var(--t-h5); margin: .7rem 0 .6rem; }
.service p { color: var(--muted); font-size: .96rem; min-height: 3.2em; }
.service-points { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.service-points li { font-size: .8rem; color: var(--ink); padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); }
.service-go { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; color: var(--ink); font-weight: var(--fw-bold); font-size: .9rem; }
.service-go .arr { transition: transform var(--d-base) var(--ease); }
.service:hover .service-go .arr { transform: translateX(-5px); }

/* ---------- trust / counters ---------- */
.trust { background: var(--ink); color: var(--bg); }
.trust .eyebrow, .trust h2 { color: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); text-align: center; }
.stat { position: relative; padding: 1rem; }
.stat + .stat::before { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(247,244,239,.16); }
.stat-num { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: var(--fw-black); line-height: 1; color: var(--bg); letter-spacing: -.02em; }
.stat-label { color: rgba(247,244,239,.7); font-size: .95rem; margin-top: .7rem; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.step { padding: 2rem 1.6rem; border-radius: var(--r-lg); background: var(--bg-pure); border: 1px solid var(--line); transition: transform var(--d-base) var(--ease), border-color var(--d-base); }
.step:hover { transform: translateY(-5px); border-color: var(--ink); }
.step-n { display: inline-block; font-size: 1.3rem; font-weight: var(--fw-black); color: var(--clay); margin-bottom: 1rem; }
.step h3 { font-size: var(--t-h6); margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- testimonials ---------- */
.testimonials { background: var(--cream); }
.tst { max-width: 860px; margin-inline: auto; }
.tst-viewport { overflow: hidden; border-radius: var(--r-xl); }
.tst-track { display: flex; transition: transform var(--d-slow) var(--ease); }
.tst-card { flex: 0 0 100%; padding: clamp(2rem, 5vw, 3.4rem); text-align: center; }
.tst-stars { color: var(--clay); letter-spacing: .22em; margin-bottom: 1.3rem; }
.tst-text { font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.85; color: var(--ink); font-weight: var(--fw-med); }
.tst-text::before { content: "“"; color: var(--clay); font-size: 2.2em; line-height: 0; vertical-align: -.4em; margin-left: .1em; }
.tst-who { margin-top: 1.6rem; display: flex; align-items: center; justify-content: center; gap: .9rem; }
.tst-thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--line); }
.tst-who-meta { text-align: right; }
.tst-name { font-weight: var(--fw-bold); color: var(--ink); }
.tst-role { color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.tst-nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.2rem; }
.tst-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); font-size: 1.2rem; display: grid; place-items: center; transition: all var(--d-fast); }
.tst-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tst-dots { display: flex; gap: .5rem; }
.tst-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); transition: all var(--d-fast); }
.tst-dots button.active { background: var(--ink); width: 24px; border-radius: 99px; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 860px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem .2rem; text-align: right; font-size: var(--t-h6); font-weight: var(--fw-bold); color: var(--ink); transition: color var(--d-fast); }
.acc-q:hover { color: var(--clay); }
.acc-ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; transition: transform var(--d-base) var(--ease), background var(--d-base), color var(--d-base); }
.acc-item.open .acc-ico { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height var(--d-base) var(--ease); }
.acc-a-inner { padding: 0 .2rem 1.4rem; color: var(--muted); font-size: 1rem; }

/* ---------- offices ---------- */
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.office { display: flex; flex-direction: column; padding: 1.6rem 1.5rem; border-radius: var(--r-lg); background: var(--bg-pure); border: 1px solid var(--line); transition: border-color var(--d-base), transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.office:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.office.factory { border-color: var(--ink); }
.office-badge { font-size: .68rem; font-weight: var(--fw-bold); letter-spacing: .14em; color: var(--clay); text-transform: uppercase; }
.office h3 { font-size: var(--t-h6); margin: .5rem 0 .7rem; }
.office-addr { color: var(--muted); font-size: .9rem; line-height: 1.85; flex: 1; }
.office-foot { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.office-phone { color: var(--ink); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
a.office-phone:hover { color: var(--clay); }
.office-map { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-size: .86rem; font-weight: var(--fw-semi); }
.office-map:hover { color: var(--clay); }

/* ---------- partner ---------- */
.partner { background: var(--cream); }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.partner-copy h2 { margin: .9rem 0 1.1rem; }
.partner-points { margin-top: 1.7rem; display: flex; flex-direction: column; gap: .9rem; }
.partner-points li { display: flex; align-items: flex-start; gap: .75rem; color: var(--text); }
.pp-ic { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: var(--fw-bold); margin-top: .15rem; }
.partner-form { padding: clamp(1.6rem, 3vw, 2.6rem); }
.partner-form h3 { font-size: var(--t-h4); margin-bottom: 1.4rem; }
.partner-photo { margin-top: 2rem; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.partner-photo-img { width: 100%; aspect-ratio: 16/10; max-height: 360px; background-image: url("../assets/partner.jpg"); background-size: cover; background-position: center; transition: transform var(--d-slow) var(--ease); }
.partner-photo:hover .partner-photo-img { transform: scale(1.03); }
.partner-photo figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 1rem 1.2rem; background: linear-gradient(0deg, rgba(32,29,24,.78), transparent); color: #fff; font-size: .88rem; font-weight: var(--fw-semi); }

/* ---------- contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { margin: .9rem 0 1.1rem; }
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.ci-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; }
.ci-k { display: block; font-size: .8rem; color: var(--muted-2); }
.ci-v { font-weight: var(--fw-bold); color: var(--ink); font-size: 1.02rem; }
a.ci-v:hover { color: var(--clay); }
.contact-socials { display: flex; gap: .6rem; margin-top: 2rem; }
.soc { padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: .86rem; font-weight: var(--fw-semi); color: var(--ink); transition: all var(--d-fast) var(--ease); }
.soc:hover { border-color: var(--ink); }
.advisor-open { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; padding: .7rem 1.2rem; border-radius: var(--r-pill); border: 1px solid var(--ink); color: var(--ink); font-weight: var(--fw-bold); font-size: .9rem; transition: all var(--d-fast); }
.advisor-open:hover { background: var(--ink); color: var(--bg); }
.ao-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ad07a; }

/* glass card / forms */
.glass { background: var(--bg-pure); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.contact-form, .partner-form { padding: clamp(1.6rem, 3vw, 2.6rem); }
.contact-form h3 { font-size: var(--t-h4); margin-bottom: 1.4rem; }
.field { position: relative; margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field select, .field textarea { width: 100%; padding: 1.15rem 1.1rem .55rem; border-radius: var(--r-sm); background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-size: 1rem; transition: border-color var(--d-fast), box-shadow var(--d-fast); resize: vertical; }
.field textarea { padding-top: 1.1rem; min-height: 90px; }
.field select { padding-top: 1.05rem; padding-bottom: .8rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: left 1.1rem center, left .85rem center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(32,29,24,.08); }
.field label { position: absolute; right: 1.1rem; top: .95rem; color: var(--muted-2); font-size: 1rem; pointer-events: none; transition: all var(--d-fast) var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: .34rem; font-size: .66rem; color: var(--clay); }
.field .lbl-static { top: .34rem; font-size: .66rem; color: var(--clay); }
.field input.invalid, .field select.invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.form-note { margin-top: 1rem; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: #2e7d4f; } .form-note.err { color: #c0392b; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--cream); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .brand { color: var(--ink); }
.footer-about, .footer-brand p { color: var(--muted); margin: 1.1rem 0 1.3rem; max-width: 320px; font-size: .96rem; }
.footer-col h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: .94rem; padding: .3rem 0; transition: color var(--d-fast); }
.footer-col a:hover { color: var(--ink); }
.footer-extra { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.8rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.footer-licenses { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-content: center; }
.lic { display: flex; align-items: center; gap: .75rem; padding: .85rem .95rem; border-radius: var(--r-md); background: var(--bg-pure); border: 1px solid var(--line); transition: border-color var(--d-fast); }
.lic:hover { border-color: var(--ink); }
.lic-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--cream); border: 1px solid var(--line); }
.lic-ic svg { width: 20px; height: 20px; }
.lic b { display: block; font-size: .9rem; color: var(--ink); }
.lic span { font-size: .76rem; color: var(--muted); padding: 0; }
.footer-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 200px; }
.fmap-info { padding: 1.5rem; background: var(--bg-pure); display: flex; flex-direction: column; gap: .45rem; }
.fmap-info h4 { font-size: var(--t-h6); color: var(--ink); }
.fmap-addr { color: var(--muted); font-size: .9rem; }
.fmap-hours { color: var(--clay); font-size: .85rem; }
.fmap-info .btn { margin-top: auto; align-self: flex-start; }
.fmap-canvas { position: relative; background: repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 26px), var(--cream); }
.fmap-pin { position: absolute; top: 47%; left: 52%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: translate(-50%,-100%) rotate(-45deg); }
.fmap-ping { position: absolute; top: 47%; left: 52%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%,-50%); border: 2px solid var(--ink); }
@media (prefers-reduced-motion: no-preference) { .fmap-ping { animation: ping 2.4s ease-out infinite; } }
@keyframes ping { 0% { opacity: .7; transform: translate(-50%,-50%) scale(.35); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.8); } }
.footer-bottom { display: flex; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; gap: .35rem 1.6rem; padding: 1.4rem 0 6rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .86rem; }
.footer-made { color: var(--muted); }
.footer-made a { color: var(--clay); font-weight: var(--fw-bold); }
.footer-made a:hover { color: var(--ink); text-decoration: underline; }

.to-top { position: fixed; bottom: 84px; right: 22px; z-index: var(--z-overlay); width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 1.2rem; font-weight: var(--fw-bold); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all var(--d-base) var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* WhatsApp */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: var(--z-overlay); width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.55); transition: transform var(--d-base) var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.ci-wa { color: #25d366 !important; }
.ci-wa svg { width: 22px; height: 22px; }

/* ---------- chatbot (light) ---------- */
.chat-fab { position: fixed; bottom: 22px; left: 22px; z-index: var(--z-chat); display: inline-flex; align-items: center; gap: .55rem; padding: .65rem .7rem; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: var(--fw-bold); box-shadow: var(--shadow-md); transition: transform var(--d-base) var(--ease); }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab .cf-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(247,244,239,.14); }
.chat-fab .cf-ic svg { stroke: var(--bg); }
.chat-fab .cf-txt { padding-left: .5rem; font-size: .9rem; }
.chat-fab .cf-pulse { position: absolute; top: 6px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: #3ad07a; box-shadow: 0 0 0 0 rgba(58,208,122,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(58,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(58,208,122,0); } }
.chat-panel { position: fixed; bottom: 22px; left: 22px; z-index: var(--z-chat); width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100svh - 44px)); display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-pure); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.96); opacity: 0; visibility: hidden; transform-origin: bottom left; transition: all var(--d-base) var(--ease); }
.chat-panel.open { transform: none; opacity: 1; visibility: visible; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.chat-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: 0 0 auto; }
.chat-ava svg { width: 22px; height: 22px; stroke: var(--bg); }
.chat-h-meta { flex: 1; }
.chat-h-meta b { display: block; color: var(--ink); font-size: .98rem; }
.chat-h-meta span { font-size: .76rem; color: #2e7d4f; display: inline-flex; align-items: center; gap: .35rem; }
.chat-h-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ad07a; }
.chat-close { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 1.2rem; display: grid; place-items: center; transition: all var(--d-fast); }
.chat-close:hover { background: var(--cream-2); color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
.chat-msg { max-width: 84%; padding: .7rem .95rem; border-radius: 16px; font-size: .94rem; line-height: 1.7; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat-msg.bot { align-self: flex-start; background: var(--cream); border: 1px solid var(--line); border-bottom-right-radius: 5px; color: var(--text); }
.chat-msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-left-radius: 5px; font-weight: var(--fw-med); }
.chat-msg b { color: inherit; }
.chat-link { display: inline-block; margin-top: .5rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: .85rem; font-weight: var(--fw-bold); text-decoration: none; }
.chat-link:hover { background: var(--clay); }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .8rem 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: typ 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .2s; } .chat-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typ { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem 1.1rem .2rem; }
.chat-chip { font-size: .82rem; padding: .42rem .8rem; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line-2); color: var(--ink); transition: all var(--d-fast); }
.chat-chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chat-foot { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); }
.chat-hint { margin-top: .5rem; text-align: center; font-size: .68rem; color: var(--muted-2); letter-spacing: .01em; }
.chat-input { display: flex; gap: .5rem; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; max-height: 96px; padding: .7rem .9rem; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-size: .94rem; line-height: 1.5; }
.chat-input textarea:focus { outline: none; border-color: var(--ink); }
.chat-send { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; background: var(--ink); display: grid; place-items: center; transition: transform var(--d-fast); }
.chat-send svg { stroke: var(--bg); }
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: .5; }
.chat-quote { margin-top: .4rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.chat-quote .cq-row { display: flex; justify-content: space-between; padding: .45rem .7rem; font-size: .86rem; background: var(--cream); }
.chat-quote .cq-row.cq-total { background: var(--ink); color: var(--bg); font-weight: var(--fw-bold); }
.chat-quote .cq-row span:last-child { font-variant-numeric: tabular-nums; }

/* ============================================================
   CREATIVE LAYER (editorial numerals · marquee · statement · palette)
   ============================================================ */
/* oversized section index numerals */
.sec-num { position: absolute; top: clamp(.4rem, 2vw, 1.4rem); inset-inline-start: clamp(1rem, 5vw, 4.5rem); font-size: clamp(5.5rem, 14vw, 11rem); font-weight: 800; line-height: 1; color: rgba(32,29,24,.05); z-index: 0; pointer-events: none; font-variant-numeric: tabular-nums; user-select: none; }
.section > .container { position: relative; z-index: 1; }

/* keyword marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-pure); padding: 1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 2.4rem; white-space: nowrap; animation: marq 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(1.05rem, 2.6vw, 1.7rem); font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.marquee-track i { color: var(--clay); font-style: normal; font-size: .7em; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* statement band */
.statement-band { background: linear-gradient(rgba(32,29,24,.84), rgba(32,29,24,.9)), url("../assets/texture-dark.jpg"); background-size: cover; background-position: center; color: var(--bg); padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.statement-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(247,244,239,.035) 0 1px, transparent 1px 15px); pointer-events: none; }
.statement { position: relative; z-index: 1; font-size: clamp(1.9rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.22; color: var(--bg); letter-spacing: -.02em; max-width: 20ch; }
.statement span { color: var(--sand); }

/* manufacturer badge */
.made-badge { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; padding: .5rem 1.05rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: var(--fw-bold); letter-spacing: -.01em; box-shadow: var(--shadow-sm); }
.made-badge .made-ic { color: var(--sand); font-size: 1rem; line-height: 1; }

/* خود‌رنگ palette */
.palette { margin-bottom: clamp(2.5rem, 5vw, 3.6rem); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line); }
.palette-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1.4rem; }
.palette-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.palette-head h3 { font-size: var(--t-h5); }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: .5rem; }
.swatch { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--c); border: 1px solid rgba(32,29,24,.08); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.swatch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px); }
.swatch:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-sm); z-index: 2; }
.swatch::after { content: attr(data-name); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: .7rem; padding: .22rem .5rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.swatch:hover::after { opacity: 1; }

/* unified card grammar — clay top accent */
.b-card, .service, .step { border-top: 3px solid var(--clay); }
.product-body { border-top: 3px solid var(--clay); }

/* warm wash to tie hero/feature imagery to the palette */
.feature-photo { position: relative; }
.feature-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(154,111,78,.10), rgba(217,209,194,.04)); mix-blend-mode: multiply; pointer-events: none; }

/* ---------- products: tinted bucket + chip + detail modal ---------- */
.product { cursor: pointer; }
.product:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.product-img { position: relative; overflow: hidden; aspect-ratio: 1/1; background-color: #f7f7f7; }
.product-tint { display: none; }
.product-type { z-index: 3; }
.product-chip { position: absolute; top: 12px; left: 12px; bottom: auto; z-index: 3; width: 18px; height: 18px; border-radius: 50%; background: var(--pc); border: 2px solid #fff; box-shadow: var(--shadow-xs); }
.product-name-on { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem .8rem .8rem; text-align: center; font-weight: var(--fw-bold); font-size: .98rem; color: var(--ink); background: linear-gradient(to top, rgba(255,255,255,.96) 45%, rgba(255,255,255,0)); letter-spacing: -.01em; }

.pmodal { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(32,29,24,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity var(--d-base), visibility var(--d-base); }
.pmodal.open { opacity: 1; visibility: visible; }
.pmodal-card { position: relative; display: grid; grid-template-columns: .85fr 1fr; width: min(880px, 95vw); max-height: 90vh; overflow: hidden; background: var(--bg-pure); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translateY(18px) scale(.98); transition: transform var(--d-base) var(--ease); }
.pmodal.open .pmodal-card { transform: none; }
.pmodal-close { position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-pure); border: 1px solid var(--line); color: var(--ink); font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 3; }
.pmodal-close:hover { background: var(--ink); color: var(--bg); }
.pmodal-visual { position: relative; overflow: hidden; background: #f7f7f7; }
.pmodal-img { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }
.pmodal-tint { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .6; }
.pmodal-info { padding: clamp(1.6rem, 3vw, 2.4rem); overflow-y: auto; }
.pmodal-type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--clay); text-transform: uppercase; }
.pmodal-name { font-size: var(--t-h4); margin: .4rem 0 .1rem; }
.pmodal-en { font-size: .7rem; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; }
.pmodal-long { color: var(--muted); margin: 1rem 0 1.2rem; font-size: .96rem; line-height: 1.9; }
.pmodal-specs { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.pspec { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; background: var(--cream); border-radius: var(--r-sm); font-size: .9rem; }
.pspec span { color: var(--muted); } .pspec b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pmodal-uses { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.puse { font-size: .8rem; color: var(--ink); padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); }
.pmodal-cta { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- process journey ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.journey::before, .journey::after { content: ""; position: absolute; top: 26px; height: 2px; }
.journey::before { right: 9%; left: 9%; background: var(--sand); z-index: 0; }
.journey::after { right: 9%; width: 0; background: var(--clay); z-index: 1; transition: width 1.3s var(--ease) .2s; }
.journey.in::after { width: 82%; }
.jstep { position: relative; z-index: 2; text-align: center; padding: 0 .4rem; }
.jdot { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 2px solid var(--clay); margin-bottom: 1.2rem; transition: transform var(--d-base) var(--ease), background var(--d-base); }
.jstep:hover .jdot { transform: scale(1.08); background: var(--clay); }
.jstep:hover .jnum { color: var(--bg); }
.jnum { font-size: 1.05rem; font-weight: 800; color: var(--clay); transition: color var(--d-base); }
.jstep h3 { font-size: var(--t-h6); margin-bottom: .5rem; }
.jstep p { color: var(--muted); font-size: .92rem; }

/* ---------- contact CTAs + floating sculpture ---------- */
.contact { position: relative; overflow: hidden; }
.contact > .container { position: relative; z-index: 1; }
.contact-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.contact-sculpture { position: absolute; left: 2%; bottom: 6%; width: 230px; height: 300px; z-index: 0; pointer-events: none; }
.contact-sculpture span { position: absolute; display: block; }
.cs-arch { width: 140px; height: 220px; right: 24px; bottom: 0; border-radius: 70px 70px 14px 14px; background: linear-gradient(160deg, var(--cream), var(--stone)); box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(32,29,24,.05); animation: floatA 7.5s var(--ease-io) infinite; }
.cs-slab { width: 104px; height: 64px; left: 0; bottom: 54px; border-radius: 14px; background: linear-gradient(160deg, var(--bg-pure), var(--cream-2)); box-shadow: var(--shadow-sm); animation: floatB 9s var(--ease-io) infinite; }
.cs-ball { width: 44px; height: 44px; right: 4px; top: 6px; border-radius: 50%; background: linear-gradient(160deg, var(--clay-soft), var(--clay)); box-shadow: var(--shadow-sm); animation: floatC 6s var(--ease-io) infinite; }
@keyframes floatA { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes floatB { 50% { transform: translateY(12px) rotate(2deg); } }
@keyframes floatC { 50% { transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) { .cs-arch, .cs-slab, .cs-ball { animation: none; } }

/* ============================================================
   ARTICLES / مقاله‌ها
   ============================================================ */
.articles { background: var(--cream); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.article-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--clay); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.article-img { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.article-cat { position: absolute; top: 12px; right: 12px; background: rgba(32,29,24,.82); color: var(--bg); font-size: .76rem; font-weight: var(--fw-bold); padding: .3rem .7rem; border-radius: 999px; }
.article-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: var(--t-h6); line-height: 1.4; margin-bottom: .5rem; }
.article-body p { color: var(--muted); font-size: .92rem; line-height: 1.75; margin-bottom: 1rem; flex: 1; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.article-read { color: var(--muted-2); font-size: .82rem; }
.article-cta { color: var(--clay); font-weight: var(--fw-bold); font-size: .9rem; }
.article-cta .arr { transition: transform var(--d-base); display: inline-block; }
.article-card:hover .article-cta .arr { transform: translateX(-4px); }

/* article modal */
.amodal { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(32,29,24,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity var(--d-base), visibility var(--d-base); }
.amodal.open { opacity: 1; visibility: visible; }
.amodal-card { position: relative; width: min(680px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform var(--d-base) var(--ease); }
.amodal.open .amodal-card { transform: none; }
.amodal-close { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(32,29,24,.55); color: #fff; font-size: 1.05rem; cursor: pointer; transition: background var(--d-base); }
.amodal-close:hover { background: var(--ink); }
.amodal-hero { position: relative; aspect-ratio: 21/9; background-size: cover; background-position: center; }
.amodal-cat { position: absolute; bottom: 12px; right: 16px; background: var(--clay); color: #fff; font-size: .8rem; font-weight: var(--fw-bold); padding: .32rem .8rem; border-radius: 999px; }
.amodal-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.amodal-read { color: var(--muted-2); font-size: .82rem; }
.amodal-title { font-size: var(--t-h3); line-height: 1.32; margin: .5rem 0 1rem; }
.amodal-content { color: var(--ink-2, var(--muted)); }
.amodal-content p { margin-bottom: 1rem; line-height: 1.95; color: var(--muted); }
.amodal-content b { color: var(--ink); }
.amodal-content ul { margin: 0 1.1rem 1rem; padding: 0; list-style: disc; }
.amodal-content li { color: var(--muted); line-height: 1.9; margin-bottom: .4rem; }
.amodal-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 460px; }
  .benefits-grid, .services-grid, .products-grid, .offices-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { column-count: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .contact-grid, .partner-grid { grid-template-columns: 1fr; }
  .feature-visual { order: -1; }
  .partner-form { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-extra { grid-template-columns: 1fr; }
  .contact-sculpture { display: none; }
}
@media (max-width: 720px) {
  :root { --section-y: clamp(3.4rem, 11vw, 5rem); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn-gold { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .stat + .stat::before { display: none; }
  .benefits-grid, .services-grid, .products-grid, .offices-grid, .articles-grid { grid-template-columns: 1fr; }
  .gallery { column-count: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-map { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .chat-fab .cf-txt { display: none; }
  .journey { grid-template-columns: 1fr; gap: 1.4rem; }
  .journey::before, .journey::after { display: none; }
  .jstep { display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; row-gap: .2rem; text-align: right; padding: 0; }
  .jdot { grid-row: 1 / span 2; align-self: center; margin-bottom: 0; }
  .jstep h3 { grid-column: 2; align-self: end; margin-bottom: 0; }
  .jstep p { grid-column: 2; align-self: start; }
  .pmodal-card { grid-template-columns: 1fr; max-height: 90vh; }
  .pmodal-visual { aspect-ratio: 16/10; min-height: 180px; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-licenses { grid-template-columns: 1fr; }
}

/* fallback when backdrop-filter unsupported */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .nav.scrolled { background: rgba(247,244,239,.97); }
  .hero-cap, .product-type, .card-zoom, .ba-label { background: var(--bg-pure); }
}

/* ============================================================
   PREMIUM POLISH LAYER — tactile depth + a11y + micro‑graphics
   ============================================================ */

/* fine grain texture over the whole page — barely there, adds a hand‑plastered feel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* keyboard focus — visible clay ring for accessibility (mouse clicks stay clean) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible, .swatch:focus-visible, .filter:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

/* section numerals — add a small clay tick so they read as deliberate graphic marks */
.sec-num { transition: color var(--d-slow, .6s) var(--ease); }
.section:hover .sec-num, .products-sec:hover .sec-num { color: rgba(176,106,72,.08); }

/* card media gets a soft inner vignette for depth */
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(32,29,24,.06), inset 0 -40px 60px -40px rgba(32,29,24,.28);
  border-radius: inherit; opacity: 0; transition: opacity var(--d-base) var(--ease);
}
.card:hover .card-media::after { opacity: 1; }

/* chips & quick replies — gentle press feedback */
.chat-chip:active, .filter:active, .tst-btn:active { transform: translateY(1px); }

/* product tint cards — a touch more life on hover */
.product:hover .product-img { transform: scale(1.03); }
.product-img { transition: transform var(--d-base) var(--ease); }

/* refined selection colour */
::selection { background: rgba(176,106,72,.22); color: var(--ink); }

/* premium scroll‑progress: clay→ink gradient instead of flat */
.scroll-progress span { background: linear-gradient(90deg, var(--clay), var(--ink)); }
