/*
Theme Name: Hello Elementor — Emad Child
Theme URI: https://emad-hosseini.ir/
Description: Update-safe child theme for Emad Hosseini's custom cinema system and site integrations.
Author: Emad Hosseini
Template: hello-elementor
Version: 1.0.3
Text Domain: hello-elementor-emad-child
*/

/* Keep the floating header on the site's locally hosted Persian typeface.
 * The header template previously requested Vazirmatn without loading it,
 * which made browsers fall back to Tahoma after theme updates. */
#en-header,
#en-header button,
#en-header a,
#en-header input{font-family:IranSansx,IRANSansX,Tahoma,sans-serif!important}

body.page-id-552{background:#0d0f12;color:#f5f0e8}
.page-id-552 .page-header{display:none}
.page-id-552 .page-content{margin:0}
.page-id-552 .site-main{background:#0d0f12}
.ehc{--bg:#0d0f12;--panel:#171a1f;--ink:#f5f0e8;--muted:#9b9da1;--accent:#d77a58;--line:#2a2d33;direction:rtl;background:var(--bg);color:var(--ink);font-family:IranSansx,IRANSansX,Tahoma,sans-serif;overflow:hidden}
.ehc *{box-sizing:border-box}
.ehc a{color:inherit;text-decoration:none}
.ehc svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ehc-wrap{width:min(1180px,calc(100% - 48px));margin:auto}
.ehc.e-con,.ehc .e-con{--padding-top:0;--padding-right:0;--padding-bottom:0;--padding-left:0;--gap:0px}
.ehc .ehc-wrap.e-con{width:min(1180px,calc(100% - 48px));max-width:1180px;margin-inline:auto}
.ehc .ehc-hero-grid.e-con{display:grid!important}
.ehc .ehc-section-head.e-con{display:flex!important}
.ehc .ehc-eyebrow .elementor-heading-title{color:var(--accent);font-size:13px;font-weight:800;letter-spacing:.04em}
.ehc .ehc-hero-intro p{margin:0;color:#c7c4bf;font-size:19px;line-height:2.1}
.ehc .ehc-section-copy p{max-width:420px;margin:0;color:var(--muted);font-size:16px;line-height:2}
.ehc-section{padding:110px 0}
.ehc.elementor-element{overflow:hidden}
.ehc .elementor-widget{margin-bottom:0}
.ehc .elementor-widget-shortcode,.ehc .elementor-shortcode{width:100%}
.ehc-module-recent .ehc-rail-actions{justify-content:flex-end;margin:-72px 0 26px}
.ehc-eyebrow{margin:0 0 16px;color:var(--accent);font-size:13px;font-weight:800;letter-spacing:.04em}
.ehc-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:48px}
.ehc-section-head h2{margin:0;font-size:clamp(34px,4vw,58px);font-weight:850;line-height:1.25;letter-spacing:-1.2px}
.ehc-section-head p{max-width:420px;margin:0;color:var(--muted);font-size:16px;line-height:2}
.ehc-hero{position:relative;min-height:760px;display:flex;align-items:center;padding:190px 0 110px;background:radial-gradient(circle at 14% 25%,rgba(215,122,88,.19),transparent 26%),linear-gradient(135deg,#101318,#0b0d10)}
.ehc-hero:after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent)}
.ehc-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);align-items:end;gap:90px}
.ehc-hero h1{margin:0 0 26px;font-size:clamp(72px,10vw,144px);font-weight:900;line-height:.95;letter-spacing:-5px}
.ehc-hero-intro{max-width:650px;margin:0;color:#c7c4bf;font-size:19px;line-height:2.1}
.ehc-hero-mark{position:relative;height:370px;border:1px solid var(--line);border-radius:180px 180px 14px 14px;overflow:hidden;background:#12151a}
.ehc-hero-mark:before{content:"";position:absolute;width:310px;height:310px;border:44px solid var(--accent);border-radius:50%;left:-115px;top:-90px;opacity:.88}
.ehc-hero-mark:after{content:"";position:absolute;width:170px;height:230px;right:34px;bottom:-80px;background:#f1e7da;transform:rotate(28deg)}
.ehc-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ehc-stat{padding:28px 24px;border-left:1px solid var(--line)}
.ehc-stat:last-child{border-left:0}
.ehc-stat strong{display:block;font-size:36px;line-height:1.2}
.ehc-stat span{display:block;margin-top:8px;color:var(--muted);font-size:13px}
.ehc-tabs{display:flex;gap:8px;margin-bottom:38px}
.ehc-tab{appearance:none;border:1px solid var(--line);background:transparent;color:var(--muted);padding:13px 24px;border-radius:999px;font:800 14px IranSansx,Tahoma,sans-serif;cursor:pointer}
.ehc-tab.is-active{background:var(--ink);border-color:var(--ink);color:#111}
.ehc-tab-panel[hidden]{display:none}
.ehc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.ehc-card{min-width:0}
.ehc-card-link{display:block}
.ehc-card-poster{position:relative;aspect-ratio:2/3;overflow:hidden;border-radius:16px;background:var(--panel);box-shadow:0 22px 50px rgba(0,0,0,.28);isolation:isolate}
.ehc-card-poster>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.ehc-card-link:hover .ehc-card-poster>img{transform:scale(1.035)}
.ehc-poster-fallback{display:block;width:100%;height:100%;background:linear-gradient(150deg,#252930,#111318)}
.ehc-poster-fallback span{position:absolute;width:72%;aspect-ratio:1;border:22px solid var(--accent);border-radius:50%;left:-28%;top:-10%}
.ehc-poster-fallback i{position:absolute;width:56%;height:35%;background:#ebe0d3;right:-18%;bottom:-7%;transform:rotate(-28deg)}
.ehc-card-hover{position:absolute;inset:auto 0 0;z-index:2;display:flex;flex-wrap:wrap;gap:7px;padding:54px 16px 16px;background:linear-gradient(transparent,rgba(6,7,9,.96));opacity:0;transform:translateY(12px);transition:.3s ease}
.ehc-card-link:hover .ehc-card-hover{opacity:1;transform:none}
.ehc-card-hover span{font-size:11px;border:1px solid rgba(255,255,255,.25);padding:5px 8px;border-radius:999px}
.ehc-type-icon{position:absolute;top:12px;right:12px;z-index:3;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(8,9,11,.72);backdrop-filter:blur(8px)}
.ehc-type-icon svg{width:18px;height:18px}
.ehc-status-dot{position:absolute;top:16px;left:16px;z-index:3;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(215,122,88,.16)}
.ehc-card-copy{padding:19px 4px 0}
.ehc-card-copy h3{margin:0;font-size:19px;font-weight:850;line-height:1.6}
.ehc-card-copy p{margin:5px 0 0;color:var(--muted);font-size:13px}
.ehc-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:15px;color:var(--muted);font-size:11px}
.ehc-progress-meta b{color:var(--ink)}
.ehc-progress{height:4px;margin-top:7px;background:#2b2e34;border-radius:99px;overflow:hidden}
.ehc-progress i{display:block;height:100%;background:var(--accent);border-radius:99px}
.ehc-rail-section{background:#12151a;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ehc-rail-actions{display:flex;gap:8px}
.ehc-rail-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer;font-size:22px}
.ehc-rail{display:flex;gap:24px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 0 18px}
.ehc-rail::-webkit-scrollbar{display:none}
.ehc-rail .ehc-card{flex:0 0 250px;scroll-snap-align:start}
.ehc-feature-grid{display:grid;grid-template-columns:1.3fr .7fr .7fr;grid-auto-rows:320px;gap:20px}
.ehc-feature-grid .ehc-card:first-child{grid-row:span 2}
.ehc-feature-grid .ehc-card-poster{height:100%;aspect-ratio:auto}
.ehc-feature-grid .ehc-card-copy{position:absolute;z-index:4;right:0;left:0;bottom:0;padding:70px 24px 24px;background:linear-gradient(transparent,rgba(5,6,8,.96))}
.ehc-feature-grid .ehc-card-link{position:relative;height:100%}
.ehc-feature-grid .ehc-card-copy h3{font-size:23px}
.ehc-feature-grid .ehc-card-copy p{color:#d3d0ca}
.ehc-creators{background:#f1ebe2;color:#15171a}
.ehc-creators .ehc-eyebrow{color:#a65337}
.ehc-creators .ehc-eyebrow .elementor-heading-title{color:#a65337}
.ehc-creators .ehc-section-head p{color:#696b6e}
.ehc-creators .ehc-section-copy p{color:#696b6e}
.ehc-creator-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ehc-creator{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #d7cec2;border-radius:14px}
.ehc-creator img,.ehc-creator-fallback{width:66px;height:66px;border-radius:50%;object-fit:cover;background:#181a1e;flex:0 0 66px}
.ehc-creator-fallback{display:grid;place-items:center;color:#fff;font-size:22px;font-weight:850}
.ehc-creator strong{display:block;font-size:15px}
.ehc-creator span{display:block;margin-top:4px;color:#777;font-size:11px}
.ehc-reviews{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line)}
.ehc-review{display:grid;grid-template-columns:100px 1fr;gap:22px;padding:26px 0;border-bottom:1px solid var(--line)}
.ehc-review:nth-child(odd){padding-left:28px;border-left:1px solid var(--line)}
.ehc-review:nth-child(even){padding-right:28px}
.ehc-review-thumb{aspect-ratio:1;overflow:hidden;border-radius:10px;background:var(--panel)}
.ehc-review-thumb img{width:100%;height:100%;object-fit:cover}
.ehc-review time{color:var(--accent);font-size:11px}
.ehc-review h3{margin:8px 0 0;font-size:19px;line-height:1.65}
.ehc-review p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.8}
.ehc-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:38px}
.ehc-filter{appearance:none;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px 16px;font:600 13px IranSansx,Tahoma,sans-serif;min-width:160px}
.ehc-filter-result{margin-right:auto;color:var(--muted);font-size:12px;align-self:center}
.ehc-loadmore{display:flex;justify-content:center;margin-top:52px}
.ehc-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border-radius:8px;background:var(--accent);color:#111!important;font-size:14px;font-weight:850}
.ehc-empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:12px;border:1px dashed #373a41;border-radius:16px;color:var(--muted);text-align:center}
.ehc-empty span{font-size:30px;color:var(--accent)}
.ehc-empty p{margin:0}
.ehc-filter-hidden{display:none!important}

@media(max-width:900px){
	.ehc-hero{min-height:auto}
	.ehc-hero-grid{grid-template-columns:1fr;gap:48px}
	.ehc-hero-mark{height:260px}
	.ehc-grid{grid-template-columns:repeat(3,1fr)}
	.ehc-feature-grid{grid-template-columns:1fr 1fr}
	.ehc-feature-grid .ehc-card:first-child{grid-row:span 1;grid-column:span 2}
	.ehc-creator-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:640px){
	.ehc-wrap{width:min(100% - 28px,1180px)}
	.ehc-section{padding:76px 0}
	.ehc-section-head{display:block;margin-bottom:34px}
	.ehc-section-head h2{font-size:36px}
	.ehc-section-head p{margin-top:14px}
	.ehc-hero{padding:135px 0 76px}
	.ehc-hero h1{font-size:72px;letter-spacing:-3px}
	.ehc-hero-intro{font-size:16px}
	.ehc-stats{grid-template-columns:1fr}
	.ehc-stat{border-left:0;border-bottom:1px solid var(--line)}
	.ehc-stat:last-child{border-bottom:0}
	.ehc-tabs{overflow:auto}
	.ehc-tab{white-space:nowrap}
	.ehc-grid{grid-template-columns:repeat(2,1fr);gap:16px}
	.ehc-card-copy h3{font-size:16px}
	.ehc-card-hover{display:none}
	.ehc-rail .ehc-card{flex-basis:210px}
	.ehc-feature-grid{display:grid;grid-template-columns:1fr;grid-auto-rows:auto}
	.ehc-feature-grid .ehc-card:first-child{grid-column:auto}
	.ehc-feature-grid .ehc-card-poster{aspect-ratio:2/3;height:auto}
	.ehc-creator-grid{grid-template-columns:1fr}
	.ehc-reviews{grid-template-columns:1fr}
	.ehc-review:nth-child(n){padding:22px 0;border-left:0}
	.ehc-review{grid-template-columns:82px 1fr}
	.ehc-filters{display:grid;grid-template-columns:1fr 1fr}
	.ehc-filter{min-width:0;width:100%}
	.ehc-filter-result{grid-column:1/-1;margin:0}
	.ehc-latest .ehc-grid{grid-template-columns:repeat(2,1fr)}
}
