/*
Theme Name: Hello Elementor Child
Theme URI: https://hireforweb.com/
Description: Child theme for the Muhammad Shoaib personal brand site. Custom fonts, animations and premium UI utilities.
Author: Muhammad Shoaib
Author URI: https://hireforweb.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ---------------------------------------------------------------------------
   Brand fonts
--------------------------------------------------------------------------- */
@font-face {
	font-family: 'Bricolage Grotesque Bold';
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url('/mywebsite/wp-content/uploads/fonts/BricolageGrotesque-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Bricolage Grotesque Regular';
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url('/mywebsite/wp-content/uploads/fonts/BricolageGrotesque-Regular.ttf') format('truetype');
}

:root {
	--ms-black: #000000;
	--ms-green: #00A06B;
	--ms-green-dark: #064D36;
	--ms-green-bright: #00DE93;
	--ms-text: #646464;
	--ms-surface: #F5F6F5;
	--ms-radius-lg: 24px;
	--ms-radius-md: 16px;
	--ms-radius-sm: 10px;
}

body {
	font-family: 'Bricolage Grotesque Regular', sans-serif;
	-webkit-font-smoothing: antialiased;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

/* Guard against stray horizontal overflow without breaking sticky elements. */
html, body {
	overflow-x: clip;
}

/* Keep the collapsed mobile nav dropdown inside the viewport. */
.elementor-nav-menu--dropdown.elementor-nav-menu__container {
	max-width: calc(100vw - 32px);
}

/* ---------------------------------------------------------------------------
   Scroll reveal animations (added via child-theme JS)
--------------------------------------------------------------------------- */
.ms-reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
	will-change: opacity, transform;
}

.ms-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.ms-reveal-d1 { transition-delay: .12s; }
.ms-reveal-d2 { transition-delay: .24s; }
.ms-reveal-d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
	.ms-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   Hero — subtle animated background (drifting light lines + soft glow)
--------------------------------------------------------------------------- */
.ms-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Layer 1 — a faint, slowly drifting vector mesh of light lines. */
.ms-hero::before {
	content: '';
	position: absolute;
	inset: -40%;
	z-index: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(115deg, rgba(0, 160, 107, 0.10) 0 1.5px, transparent 1.5px 94px),
		repeating-linear-gradient(25deg, rgba(0, 222, 147, 0.06) 0 1px, transparent 1px 94px);
	animation: ms-hero-lines 34s linear infinite;
}

@keyframes ms-hero-lines {
	to { transform: translate(94px, 47px); }
}

/* Layer 2 — two soft green glows that breathe, so the hero never feels flat. */
.ms-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(44vw 44vw at 88% -12%, rgba(0, 222, 147, 0.16), transparent 60%),
		radial-gradient(40vw 40vw at 6% 112%, rgba(0, 160, 107, 0.11), transparent 62%);
	animation: ms-hero-glow 18s ease-in-out infinite alternate;
}

@keyframes ms-hero-glow {
	from { opacity: 1; transform: scale(1); }
	to   { opacity: 0.72; transform: scale(1.12); }
}

.ms-hero > .e-con-inner,
.ms-hero > .elementor-element {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.ms-hero::before,
	.ms-hero::after { animation: none; }
}

/* ---------------------------------------------------------------------------
   Our Process
--------------------------------------------------------------------------- */
.ms-process-step {
	position: relative;
	transition: transform .35s ease, box-shadow .35s ease;
}

.ms-process-step:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(6, 77, 54, 0.12) !important;
}

.ms-process-num .elementor-heading-title {
	background: linear-gradient(180deg, rgba(0, 160, 107, 0.55), rgba(0, 160, 107, 0.08));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------------
   Video testimonials
--------------------------------------------------------------------------- */
.ms-videos .swiper-slide {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 36px rgba(6, 77, 54, 0.12);
}

.ms-videos .elementor-swiper-button {
	background: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(6, 77, 54, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #064D36;
	font-size: 16px;
}

.ms-videos .elementor-swiper-button:hover {
	color: #00A06B;
}

/* ---------------------------------------------------------------------------
   Sticky header
--------------------------------------------------------------------------- */
.ms-header {
	transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}

.ms-header.ms-header--scrolled {
	background-color: rgba(255, 255, 255, .92) !important;
	backdrop-filter: blur(14px);
	box-shadow: 0 10px 34px rgba(6, 77, 54, .10);
}

/* ---------------------------------------------------------------------------
   Mobile off-canvas menu (premium slide-in from the right)
--------------------------------------------------------------------------- */

/* Hide Elementor's default dropdown panel — we drive our own off-canvas. */
.ms-header .elementor-nav-menu--dropdown,
.ms-header .elementor-nav-menu__container.elementor-nav-menu--dropdown {
	display: none !important;
}

/* Style the built-in hamburger toggle to open our panel. */
.ms-header .elementor-menu-toggle {
	display: none;
	color: #0B0F0D;
}

@media (max-width: 1024px) {
	.ms-header .elementor-menu-toggle {
		display: flex !important;
		width: 46px;
		height: 46px;
		border-radius: 12px;
		background: #F3F5F4;
		align-items: center;
		justify-content: center;
		transition: background .25s ease;
	}
	.ms-header .elementor-menu-toggle:hover {
		background: #E6EBE8;
	}
	/* Hide the desktop inline menu on mobile (dropdown already hidden). */
	.ms-header .elementor-nav-menu--main {
		display: none !important;
	}
}

.ms-offcanvas {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
	/* Keep the panel visible through the slide-out, then hide for a11y/focus. */
	transition: visibility 0s linear .42s;
}

.ms-offcanvas.is-open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s;
}

.ms-offcanvas__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 15, 11, 0.55);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .4s ease;
}

.ms-offcanvas.is-open .ms-offcanvas__backdrop {
	opacity: 1;
}

.ms-offcanvas__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 88%;
	max-width: 380px;
	background: linear-gradient(165deg, #0B0F0D 0%, #064D36 128%);
	box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
	transform: translateX(100%);
	transition: transform .42s cubic-bezier(.22, 1, .36, 1);
	display: flex;
	flex-direction: column;
	padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ms-offcanvas.is-open .ms-offcanvas__panel {
	transform: translateX(0);
}

.ms-offcanvas__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.ms-offcanvas__logo img {
	height: 34px;
	width: auto;
	display: block;
}

.ms-offcanvas__close {
	appearance: none;
	border: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}

.ms-offcanvas__close:hover {
	background: rgba(0, 222, 147, 0.22);
	transform: rotate(90deg);
}

.ms-offcanvas__nav {
	display: flex;
	flex-direction: column;
	margin-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-offcanvas__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 4px;
	color: #fff;
	font-family: 'Bricolage Grotesque Bold', sans-serif;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: color .25s ease, padding-left .25s ease, opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
	opacity: 0;
	transform: translateX(20px);
}

.ms-offcanvas.is-open .ms-offcanvas__nav a {
	opacity: 1;
	transform: translateX(0);
}

.ms-offcanvas.is-open .ms-offcanvas__nav a:nth-child(1) { transition-delay: 0s, 0s, .12s, .12s; }
.ms-offcanvas.is-open .ms-offcanvas__nav a:nth-child(2) { transition-delay: 0s, 0s, .17s, .17s; }
.ms-offcanvas.is-open .ms-offcanvas__nav a:nth-child(3) { transition-delay: 0s, 0s, .22s, .22s; }
.ms-offcanvas.is-open .ms-offcanvas__nav a:nth-child(4) { transition-delay: 0s, 0s, .27s, .27s; }
.ms-offcanvas.is-open .ms-offcanvas__nav a:nth-child(5) { transition-delay: 0s, 0s, .32s, .32s; }
.ms-offcanvas.is-open .ms-offcanvas__nav a:nth-child(6) { transition-delay: 0s, 0s, .37s, .37s; }

.ms-offcanvas__nav a::after {
	content: '→';
	color: #00DE93;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .25s ease, transform .25s ease;
}

.ms-offcanvas__nav a:hover {
	color: #00DE93;
	padding-left: 12px;
}

.ms-offcanvas__nav a:hover::after {
	opacity: 1;
	transform: translateX(0);
}

.ms-offcanvas__cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 26px;
}

.ms-oc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 15px 20px;
	border-radius: 999px;
	font-family: 'Bricolage Grotesque Bold', sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.ms-oc-btn--primary {
	background: #00DE93;
	color: #0B0F0D;
}

.ms-oc-btn--primary:hover {
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(0, 222, 147, 0.3);
}

.ms-oc-btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.ms-oc-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

.ms-offcanvas__contact {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ms-offcanvas__contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.85);
	font-family: 'Bricolage Grotesque Regular', sans-serif;
	font-size: 15px;
	text-decoration: none;
	transition: color .25s ease;
}

.ms-offcanvas__contact-row:hover {
	color: #00DE93;
}

.ms-offcanvas__contact-row .ms-oc-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(0, 222, 147, 0.12);
	color: #00DE93;
	font-size: 15px;
	flex-shrink: 0;
}

.ms-offcanvas__social {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.ms-offcanvas__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	transition: background .25s ease, transform .25s ease, color .25s ease;
}

.ms-offcanvas__social a:hover {
	background: #00DE93;
	color: #0B0F0D;
	transform: translateY(-3px);
}

body.ms-offcanvas-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Testimonial marquee (row of review cards drifting horizontally)
--------------------------------------------------------------------------- */
.ms-marquee {
	overflow: hidden !important;
	position: relative;
}

.ms-marquee::before,
.ms-marquee::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 120px;
	z-index: 3;
	pointer-events: none;
}

.ms-marquee::before {
	left: 0;
	background: linear-gradient(90deg, #fff 10%, rgba(255, 255, 255, 0));
}

.ms-marquee::after {
	right: 0;
	background: linear-gradient(270deg, #fff 10%, rgba(255, 255, 255, 0));
}

.ms-marquee > .e-con-inner,
.ms-marquee.e-con > .e-child {
	animation: none;
}

.ms-marquee-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: max-content !important;
	max-width: none !important;
	animation: ms-marquee-scroll 55s linear infinite;
}

.ms-marquee-track:hover {
	animation-play-state: paused;
}

.ms-marquee-track > .e-con,
.ms-marquee-track > div {
	flex-shrink: 0;
}

@keyframes ms-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Portfolio marquee variant — bigger cards, slower drift */
.ms-marquee--dark::before { background: linear-gradient(90deg, #fff 5%, rgba(255,255,255,0)); }
.ms-marquee--dark::after  { background: linear-gradient(270deg, #fff 5%, rgba(255,255,255,0)); }

/* ---------------------------------------------------------------------------
   Review card
--------------------------------------------------------------------------- */
.ms-review-card {
	background: #fff;
	border: 1px solid #ECEFED;
	border-radius: var(--ms-radius-md);
	box-shadow: 0 6px 22px rgba(10, 30, 22, .05);
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ms-review-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px rgba(6, 77, 54, .13);
	border-color: rgba(0, 160, 107, .35);
}

/* ---------------------------------------------------------------------------
   Service cards
--------------------------------------------------------------------------- */
.ms-service-card {
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}

.ms-service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 54px rgba(6, 77, 54, .14) !important;
}

.ms-service-card--featured:hover {
	box-shadow: 0 24px 60px rgba(0, 222, 147, .28) !important;
}

/* ---------------------------------------------------------------------------
   Case study cards
--------------------------------------------------------------------------- */
.ms-case-image {
	overflow: hidden;
	border-radius: var(--ms-radius-lg);
}

.ms-case-image img {
	transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.ms-case-card:hover .ms-case-image img {
	transform: scale(1.045);
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
.ms-btn .elementor-button,
.ms-btn.elementor-widget-button .elementor-button {
	transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
}

.ms-btn .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 160, 107, .35);
}

.ms-btn--dark .elementor-button:hover {
	box-shadow: 0 14px 30px rgba(0, 222, 147, .3);
}

/* Pulse dot for scarcity badge */
.ms-pulse-dot .elementor-heading-title::before {
	content: '';
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 9px;
	border-radius: 50%;
	background: var(--ms-green-bright);
	box-shadow: 0 0 0 0 rgba(0, 222, 147, .6);
	animation: ms-pulse 1.8s infinite;
	vertical-align: 1px;
}

@keyframes ms-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(0, 222, 147, .55); }
	70%  { box-shadow: 0 0 0 9px rgba(0, 222, 147, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 222, 147, 0); }
}

/* ---------------------------------------------------------------------------
   Stats
--------------------------------------------------------------------------- */
.ms-stat {
	transition: transform .35s ease;
}

.ms-stat:hover {
	transform: translateY(-4px);
}

/* ---------------------------------------------------------------------------
   FAQ accordion — card style, no +/- icons
--------------------------------------------------------------------------- */
.ms-faq .elementor-accordion {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ms-faq .elementor-accordion-item {
	border: 1px solid #E9ECEA !important;
	border-radius: 16px !important;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .3s ease, border-color .3s ease;
}

.ms-faq .elementor-accordion-item:hover {
	box-shadow: 0 14px 34px rgba(6, 77, 54, .10);
	border-color: rgba(0, 160, 107, .35) !important;
}

.ms-faq .elementor-accordion-icon {
	display: none !important;
}

.ms-faq .elementor-tab-title {
	transition: color .25s ease;
}

.ms-faq .elementor-tab-title.elementor-active {
	color: #00A06B !important;
}

.ms-faq .elementor-tab-content {
	border-top: 1px solid #F0F2F0 !important;
}

/* ---------------------------------------------------------------------------
   Blog cards, filter bar and post content
--------------------------------------------------------------------------- */
.ms-blog-card {
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
	height: 100%;
}

.ms-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(6, 77, 54, 0.13) !important;
	border-color: rgba(0, 160, 107, 0.35) !important;
}

.ms-blog-card .elementor-widget-theme-post-featured-image img {
	width: 100%;
	height: 210px;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.ms-blog-card:hover .elementor-widget-theme-post-featured-image img {
	transform: scale(1.05);
}

.ms-filter .e-filter {
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ms-post-content h2 {
	font-family: 'Bricolage Grotesque Bold', sans-serif;
	font-size: 30px;
	line-height: 1.25;
	color: #000;
	margin: 1.6em 0 .6em;
}

.ms-post-content h3 {
	font-family: 'Bricolage Grotesque Bold', sans-serif;
	font-size: 23px;
	line-height: 1.3;
	color: #064D36;
	margin: 1.4em 0 .5em;
}

.ms-post-content p {
	margin-bottom: 1.15em;
}

.ms-post-content ul,
.ms-post-content ol {
	margin: 0 0 1.3em 1.3em;
	display: grid;
	gap: .55em;
}

.ms-post-content ul li::marker {
	color: #00A06B;
}

.ms-post-content a {
	color: #00A06B;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ms-post-content a:hover {
	color: #064D36;
}

.ms-post-content strong {
	color: #0B0F0D;
}

@media (max-width: 767px) {
	.ms-post-content h2 { font-size: 24px; }
	.ms-post-content h3 { font-size: 20px; }
}

/* ---------------------------------------------------------------------------
   Misc
--------------------------------------------------------------------------- */
.ms-avatar-strip img {
	border-radius: 999px;
}

.ms-social-pill a {
	transition: transform .3s ease, opacity .3s ease;
}

.ms-social-pill a:hover {
	transform: translateY(-3px);
	opacity: .85;
}

/* Floating WhatsApp bubble */
.ms-float {
	animation: ms-float 5s ease-in-out infinite;
}

@keyframes ms-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-12px); }
}

/* Gradient shine on highlighted words */
.ms-shine {
	background: linear-gradient(100deg, var(--ms-green) 20%, var(--ms-green-bright) 45%, var(--ms-green) 70%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: ms-shine 4.5s linear infinite;
}

@keyframes ms-shine {
	to { background-position: 200% center; }
}
