/* =====================================================
   Hedra Case Study Widget – hedra-case-study.css
   Fully responsive | RTL-first | Elementor-ready
===================================================== */

/* ── CSS Variables (overridden per widget via inline selectors) ── */
.hcs-wrap {
	--hcs-bg:        #070712;
	--hcs-bg2:       #0d0d1f;
	--hcs-primary:   #7c3aed;
	--hcs-secondary: #06b6d4;
	--hcs-accent:    #f59e0b;
	--hcs-text:      #e6e6f0;
	--hcs-muted:     #9aa0b4;
	--hcs-radius:    20px;
	font-family: 'Cairo', system-ui, sans-serif;
	direction: rtl;
	background: var(--hcs-bg);
	color: var(--hcs-text);
	overflow-x: hidden;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   FULL WIDTH OVERRIDE
   Breaks out of ALL Elementor padding at every level
──────────────────────────────────────────────────────────────*/

/* Level 1 – widget outer wrapper & container: zero out everything */
.elementor-widget-hedra_case_study,
.hcs-outer-wrapper,
.elementor-widget-hedra_case_study > .elementor-widget-container {
	padding:   0 !important;
	margin:    0 !important;
	width:     100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Level 2 – parent Elementor column wrappers */
.elementor-widget-hedra_case_study .elementor-column-wrap,
.elementor-widget-hedra_case_study .elementor-widget-wrap,
.elementor-widget-hedra_case_study .elementor-element-populated {
	padding: 0 !important;
}

/* Level 3 – the widget itself: stretch to full viewport width
   Uses the proven "negative-margin viewport" technique.
   The parent section must have overflow:hidden (set below). */
.hcs-wrap {
	margin-left:  calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	width:        100vw !important;
	max-width:    100vw !important;
	box-sizing:   border-box;
}

/* Prevent horizontal scrollbar caused by 100vw breakout */
.elementor-section:has(.elementor-widget-hedra_case_study),
.elementor-container:has(.elementor-widget-hedra_case_study),
.e-con:has(.elementor-widget-hedra_case_study) {
	overflow-x: hidden !important;
}
/* Fallback for browsers without :has() support */
body { overflow-x: hidden; }


/* ── Animated Background ── */
.hcs-bg-anim {
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.35), transparent 60%),
		radial-gradient(900px  500px at 10%  10%, rgba(6,182,212,.25),  transparent 60%),
		radial-gradient(800px  600px at 50% 100%, rgba(245,158,11,.18), transparent 60%),
		var(--hcs-bg);
}

/* ── Global Keyframes ── */
@keyframes hcs-shine {
	0%   { background-position: -200% 0; }
	100% { background-position:  200% 0; }
}
@keyframes hcs-floaty {
	0%,100% { transform: translate(0,0) scale(1);    }
	50%     { transform: translate(30px,-40px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
	.hcs-orb, .hcs-gradient-text { animation: none !important; }
	.hcs-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Container ── */
.hcs-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ── Section ── */
.hcs-section {
	padding: 72px 0;
	position: relative;
}
.hcs-hero {
	padding-top: 40px;
	padding-bottom: 80px;
}
.hcs-cta-section { overflow: hidden; }

/* ── Divider ── */
.hcs-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(124,58,237,.6), transparent);
}

/* ── Orbs ── */
.hcs-orb {
	position: absolute;
	border-radius: 9999px;
	filter: blur(80px);
	opacity: .55;
	pointer-events: none;
	animation: hcs-floaty 12s ease-in-out infinite;
}

/* ── Cursor Glow ── */
.hcs-cursor-glow {
	position: fixed;
	width: 400px;
	height: 400px;
	border-radius: 9999px;
	pointer-events: none;
	background: radial-gradient(circle, rgba(124,58,237,.18), transparent 60%);
	transform: translate(-50%,-50%);
	z-index: 1;
	transition: left .15s ease, top .15s ease;
}
@media (max-width: 768px) { .hcs-cursor-glow { display: none; } }

/* ── Glass Card ── */
.hcs-glass {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-radius: var(--hcs-radius);
}
.hcs-card-hover {
	transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.hcs-card-hover:hover {
	transform: translateY(-6px);
	border-color: rgba(124,58,237,.5);
	box-shadow: 0 25px 50px -20px rgba(124,58,237,.4);
}

/* ── Gradient Text ── */
.hcs-gradient-text {
	background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 50%, #f59e0b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	background-size: 200% 200%;
	animation: hcs-shine 6s linear infinite;
}

/* ── Section Headers ── */
.hcs-section-header {
	text-align: center;
	margin-bottom: 48px;
}
.hcs-section-label {
	display: inline-block;
	font-size: .75rem;
	font-weight: 900;
	letter-spacing: .15em;
	text-transform: uppercase;
	margin-bottom: .5rem;
}
.hcs-label-primary   { color: #a78bfa; }
.hcs-label-secondary { color: #22d3ee; }

.hcs-section-title {
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	font-weight: 900;
	line-height: 1.2;
	margin: 0;
}

/* ── Muted Text ── */
.hcs-muted { color: var(--hcs-muted); }
.hcs-body-text { line-height: 1.8; }

/* ── Badge ── */
.hcs-badge {
	display: inline-block;
	font-size: .75rem;
	font-weight: 900;
	letter-spacing: .15em;
	color: #22d3ee;
	background: rgba(34,211,238,.1);
	border: 1px solid rgba(34,211,238,.2);
	border-radius: 9999px;
	padding: 6px 18px;
}

/* ── Hero ── */
.hcs-hero-title-wrap { margin: 1rem 0; }
.hcs-hero-title {
	font-size: clamp(2rem, 6vw, 3.75rem);
	font-weight: 900;
	line-height: 1.2;
	margin: 0 0 1.5rem;
}
.hcs-hero-desc {
	font-size: 1.1rem;
	color: var(--hcs-muted);
	max-width: 640px;
}

/* ── Client Tags ── */
.hcs-client-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2rem;
}
.hcs-client-tag {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
}
.hcs-client-logo {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--hcs-primary), var(--hcs-secondary));
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: .875rem;
	color: #fff;
	flex-shrink: 0;
}
.hcs-tag-label { font-size: .7rem; color: var(--hcs-muted); }
.hcs-tag-value { font-weight: 700; font-size: .875rem; }

/* ── Stats Grid ── */
.hcs-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
@media (max-width: 900px)  { .hcs-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .hcs-stats-grid { grid-template-columns: 1fr; } }

.hcs-stat-card {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: var(--hcs-radius);
	padding: 28px 20px;
	text-align: center;
	transition: transform .4s ease, border-color .4s ease;
}
.hcs-stat-card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,.5); }
.hcs-stat-num {
	font-size: clamp(1.8rem, 5vw, 2.8rem);
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 4px;
}
.hcs-stat-label  { font-size: .75rem; color: var(--hcs-muted); margin-top: 4px; }
.hcs-stat-change { font-size: .75rem; font-weight: 700; margin-top: 8px; }

/* ── Two Column ── */
.hcs-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}
@media (max-width: 768px) { .hcs-two-col { grid-template-columns: 1fr; gap: 48px; } }

/* ── Keywords ── */
.hcs-kw-desc { margin: 1rem 0 1.5rem; }
.hcs-kw-list { display: flex; flex-direction: column; gap: 10px; }
.hcs-kw-row {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.hcs-kw-left  { display: flex; align-items: center; gap: 12px; }
.hcs-kw-right { display: flex; align-items: center; gap: 16px; font-size: .875rem; }
.hcs-kw-pos {
	background: linear-gradient(135deg, var(--hcs-primary), var(--hcs-secondary));
	color: #fff;
	border-radius: 8px;
	padding: 3px 10px;
	font-size: .8rem;
	font-weight: 900;
	min-width: 28px;
	text-align: center;
}
.hcs-kw-word   { font-weight: 700; }
.hcs-kw-volume { color: var(--hcs-muted); font-size: .8rem; }
.hcs-kw-change { font-weight: 700; font-size: .8rem; }

/* ── Progress Bars ── */
.hcs-bars-list { display: flex; flex-direction: column; gap: 24px; }
.hcs-bar-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: .875rem;
	font-weight: 700;
}
.hcs-bar-label { color: var(--hcs-text); }
.hcs-bar-bg {
	height: 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	overflow: hidden;
}
.hcs-bar-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--hcs-primary), var(--hcs-secondary));
	width: 0;
	transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

/* ── Highlight Box ── */
.hcs-highlight-box {
	padding: 28px;
	margin-top: 32px;
	border-right: 4px solid var(--hcs-primary);
}
.hcs-highlight-num {
	font-size: 2.5rem;
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 6px;
}
.hcs-highlight-title { font-weight: 700; margin-bottom: 4px; }
.hcs-highlight-text  { font-size: .875rem; color: var(--hcs-muted); }

/* ── Strategy ── */
.hcs-strategy-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 900px) { .hcs-strategy-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hcs-strategy-grid { grid-template-columns: 1fr; } }

.hcs-strategy-card { padding: 28px; }
.hcs-str-icon {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(6,182,212,.2));
	border: 1px solid rgba(255,255,255,.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 20px;
}
.hcs-str-title { font-weight: 900; font-size: 1.1rem; margin-bottom: 12px; }
.hcs-str-desc  { font-size: .875rem; color: var(--hcs-muted); line-height: 1.8; }

/* ── CTA ── */
.hcs-cta-box {
	padding: 56px;
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}
@media (max-width: 600px) { .hcs-cta-box { padding: 36px 24px; } }
.hcs-cta-title { margin: 12px 0 16px; }
.hcs-cta-desc  { color: var(--hcs-muted); margin-bottom: 32px; }
.hcs-cta-btns  { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

/* ── Buttons ── */
.hcs-btn-primary {
	background: linear-gradient(135deg, var(--hcs-primary), var(--hcs-secondary));
	color: #fff;
	padding: 14px 28px;
	border-radius: 9999px;
	font-weight: 700;
	font-family: inherit;
	font-size: 1rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 10px 30px -10px rgba(124,58,237,.6);
	transition: transform .3s ease, box-shadow .3s ease;
}
.hcs-btn-primary:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 20px 40px -15px rgba(124,58,237,.8);
	color: #fff;
}
.hcs-btn-ghost {
	border: 1px solid rgba(255,255,255,.15);
	padding: 14px 26px;
	border-radius: 9999px;
	font-weight: 600;
	font-family: inherit;
	font-size: 1rem;
	text-decoration: none;
	color: var(--hcs-text);
	transition: all .3s ease;
	backdrop-filter: blur(8px);
	background: rgba(255,255,255,.04);
	display: inline-flex;
	align-items: center;
}
.hcs-btn-ghost:hover {
	border-color: var(--hcs-primary);
	color: #fff;
	background: rgba(124,58,237,.15);
}

/* ── Reveal Animations ── */
.hcs-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s ease, transform .7s ease;
}
.hcs-reveal.hcs-visible {
	opacity: 1;
	transform: none;
}

/* ── Responsive Fixes ── */
@media (max-width: 768px) {
	.hcs-section    { padding: 48px 0; }
	.hcs-hero       { padding-top: 24px; padding-bottom: 48px; }
	.hcs-hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
	.hcs-client-tags { flex-direction: column; }
	.hcs-client-tag  { width: 100%; }
	.hcs-kw-right   { flex-direction: column; align-items: flex-end; gap: 4px; }
}

@media (max-width: 480px) {
	.hcs-container { padding: 0 16px; }
	.hcs-cta-btns  { flex-direction: column; width: 100%; }
	.hcs-btn-primary, .hcs-btn-ghost { width: 100%; justify-content: center; }
	.hcs-strategy-grid { grid-template-columns: 1fr; }
}

/* ── Elementor Editor Preview ── */
.elementor-editor-active .hcs-reveal {
	opacity: 1 !important;
	transform: none !important;
}
.elementor-editor-active .hcs-bar-fill {
	width: attr(data-width) !important;
}
