/**
 * MOEV Solutions — Custom CSS
 * Styles that theme.json cannot express:
 * glassmorphism nav, hover transitions, animations, and responsive tweaks.
 *
 * @package moev-solutions
 * @since 1.0.0
 */

/* ── ROOT LAYOUT: remove gaps, offset for fixed header ── */
.wp-site-blocks {
	gap: 0 !important;
	padding-top: 76px !important;
}

/* ── FIXED HEADER ──────────────────────────────────────── */
/* position:fixed is more reliable than sticky in WP block themes
   (sticky breaks when ancestors have overflow or contain properties) */
header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 200;
}

/* Admin-bar offset (desktop: 32px bar + 76px header = 108px) */
.admin-bar header.wp-block-template-part {
	top: 32px;
}
.admin-bar .wp-site-blocks {
	padding-top: 108px !important;
}

@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
	/* Compensate for fixed header + mobile admin bar (46px bar + 76px header) */
	.admin-bar .wp-site-blocks {
		padding-top: 122px !important;
	}
}

/* ── GLASSMORPHISM NAV ──────────────────────────────────── */
.moev-header {
	z-index: 200;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glassmorphism via pseudo-element so backdrop-filter does NOT
   create a containing block for position:fixed children (mobile nav). */
.moev-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(16, 34, 48, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	z-index: -1;
}

/* ── LOGO ──────────────────────────────────────────────── */
.moev-logo-link {
	display: inline-flex;
	text-decoration: none;
	line-height: 0;
}

.moev-logo-img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 6px;
}

.moev-logo a {
	text-decoration: none;
}

/* ── NAV LINKS ─────────────────────────────────────────── */
.moev-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 50px;
	padding: 6px 8px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Hide mobile-only elements on desktop */
.moev-nav-cta { display: none; }
.moev-nav-backdrop { display: none; }

.moev-nav a {
	position: relative;
	color: #8CA0B2;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 8px 18px;
	border-radius: 50px;
	transition: color 0.3s ease, background 0.3s ease;
	white-space: nowrap;
}

.moev-nav a::after {
	content: "";
	position: absolute;
	bottom: 2px;
	left: 50%;
	width: 0;
	height: 2px;
	background: #00C8CC;
	border-radius: 1px;
	transform: translateX(-50%);
	transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.moev-nav a:hover {
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.06);
}

.moev-nav a:hover::after {
	width: 60%;
}

/* Active / current page */
.moev-nav a.is-active {
	color: #FFFFFF;
	font-weight: 600;
	background: rgba(0, 200, 204, 0.1);
}

.moev-nav a.is-active::after {
	width: 60%;
	background: #00C8CC;
}

/* ── HAMBURGER TOGGLE (hidden on desktop) ─────────────── */
.moev-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	z-index: 201;
}

.moev-nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #FFFFFF;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X when open */
.moev-nav-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.moev-nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.moev-nav-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── CARD HOVER TRANSITIONS ─────────────────────────────── */
.moev-service-card,
.moev-project-card,
.moev-value-card {
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.moev-service-card:hover,
.moev-project-card:hover,
.moev-value-card:hover {
	border-color: rgba(0, 200, 204, 0.3);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 200, 204, 0.08);
}

/* ── SERVICE ICON CONTAINER ─────────────────────────────── */
.moev-icon-box {
	width: 48px;
	height: 48px;
	background: rgba(0, 200, 204, 0.12);
	border: 1px solid rgba(0, 200, 204, 0.2);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	margin-bottom: 20px;
}

/* ── EQUAL-HEIGHT CARDS ────────────────────────────────── */
/* Force flex column on cards — !important overrides WP is-layout-flow */
.moev-project-card,
.moev-service-card,
.moev-value-card {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
}

/* Tags group pushes itself + button to card bottom as a unit.
   The .is-layout-flex group is the tag-pill container right above the CTA. */
.moev-service-card > .wp-block-group.is-layout-flex {
	margin-top: auto !important;
	margin-bottom: 8px !important;
}

/* Inner content area fills remaining space (project/value cards) */
.moev-project-card > .wp-block-group:last-child,
.moev-value-card > .wp-block-group:last-child {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Description text grows to push metadata footer down (project/value) */
.moev-project-card > .wp-block-group:last-child > p,
.moev-value-card > .wp-block-group:last-child > p {
	flex: 1;
}

/* Ensure stagger columns stretch cards */
.moev-stagger > .wp-block-column {
	display: flex;
	flex-direction: column;
}

/* Product card images */
.moev-service-card > figure.wp-block-image {
	border-radius: 6px;
	overflow: hidden;
	margin: 0 0 8px 0;
	background: #f0f2f5;
}
.moev-service-card > figure.wp-block-image img {
	width: 100%;
	height: 220px;
	object-fit: contain;
	display: block;
	transition: transform 0.5s ease;
}
.moev-service-card:hover > figure.wp-block-image img {
	transform: scale(1.08);
}

/* Product card buttons align to bottom */
.moev-service-card > .wp-block-buttons:last-child {
	margin-top: auto !important;
}

/* ── PROJECT CARD IMAGE HOVER (zoom effect) ────────────── */
.moev-project-card {
	overflow: hidden;
}

.moev-project-card .wp-block-image {
	overflow: hidden;
}

.moev-project-card .wp-block-image img {
	transition: transform 0.5s ease;
	display: block;
	width: 100%;
	object-fit: cover;
}

.moev-project-card:hover .wp-block-image img {
	transform: scale(1.05);
}

/* ── NUMBERED SERVICE CARDS ─────────────────────────────── */
.moev-srv-num {
	font-size: 3.5rem;
	font-weight: 800;
	color: rgba(0, 200, 204, 0.18);
	letter-spacing: -0.05em;
	line-height: 1;
	margin-bottom: 20px;
}

/* Service card tags — force horizontal pill flow, no text wrap */
.moev-service-card .is-layout-flex {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 8px;
	align-items: center;
}

.moev-service-card .is-style-tag {
	width: auto !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	white-space: nowrap !important;
}

/* ── PRODUCT PAGE: Row Layout + Accordions ─────────────── */
.moev-product-row {
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: rgba(10, 25, 40, 0.6) !important;
}
.moev-product-row:hover {
	border-color: rgba(0, 200, 204, 0.2) !important;
	box-shadow: 0 0 30px rgba(0, 200, 204, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Featured product — teal glow */
.moev-product-featured {
	position: relative;
	background: rgba(10, 25, 40, 0.7) !important;
	box-shadow: 0 0 40px rgba(0, 200, 204, 0.05);
}
.moev-product-featured::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(0,200,204,0.06) 0%, transparent 50%);
	pointer-events: none;
}

/* Product image container */
.moev-product-img {
	background: #f0f2f5;
	overflow: hidden;
}
.moev-product-img img {
	width: 100%;
	height: 320px;
	object-fit: contain;
	display: block;
	transition: transform 0.5s ease;
}
.moev-product-row:hover .moev-product-img img {
	transform: scale(1.05);
}

/* Accordion / Details styling */
.moev-product-detail {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.moev-product-detail summary {
	cursor: pointer;
	padding: 16px 0;
	font-weight: 600;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.moev-product-detail summary:hover {
	color: #00C8CC;
	padding-left: 4px;
}
.moev-product-detail summary::after {
	content: '+';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 200, 204, 0.1);
	color: #00C8CC;
	font-size: 1.1rem;
	font-weight: 600;
	flex-shrink: 0;
	margin-left: 16px;
	transition: background 0.3s ease, transform 0.3s ease;
}
.moev-product-detail summary:hover::after {
	background: rgba(0, 200, 204, 0.2);
}
.moev-product-detail[open] summary::after {
	content: '−';
	background: rgba(0, 200, 204, 0.15);
	transform: rotate(180deg);
}
.moev-product-detail summary::-webkit-details-marker {
	display: none;
}
.moev-product-detail .wp-block-list {
	padding-left: 20px;
	padding-bottom: 16px;
}
.moev-product-detail .wp-block-list li {
	padding: 2px 0;
}
.moev-product-detail .wp-block-list li::marker {
	color: #00C8CC;
}

/* Product page responsive */
@media (max-width: 781px) {
	.moev-product-row {
		padding: 24px !important;
	}
	.moev-product-img img {
		height: 240px;
	}
	.moev-coming-soon-img {
		min-height: 200px;
	}
}

/* ── TEAL ACCENT TEXT ───────────────────────────────────── */
.has-teal-text,
.moev-teal {
	color: #00C8CC;
}

/* ── BORDER UTILITY ─────────────────────────────────────── */
.moev-border-top {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.moev-border-bottom {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── CHECKLIST STYLE ────────────────────────────────────── */
.moev-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.9rem;
	color: #E8F0F2;
	margin-bottom: 12px;
}

.moev-checklist li::before {
	content: "\2713";
	color: #00C8CC;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

/* ── SOCIAL ICON BUTTONS ───────────────────────────────── */
.moev-social-icons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.moev-social-icon {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #8CA0B2;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	background: transparent;
}

.moev-social-icon:hover {
	color: #102230;
	background: #00C8CC;
	border-color: #00C8CC;
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 200, 204, 0.3);
}

.moev-social-icon svg {
	display: block;
}

/* ── STAT LABEL ─────────────────────────────────────────── */
.moev-stat-label {
	font-size: 0.85rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #8CA0B2;
	margin-top: 5px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.moev-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.moev-footer-col h4,
.moev-footer h4 {
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #00C8CC;
	margin-bottom: 16px;
}

/* Footer links: muted gray, not teal */
.moev-footer .moev-footer-links a {
	color: #8CA0B2;
	text-decoration: none;
	transition: color 0.2s ease;
}

.moev-footer .moev-footer-links a:hover {
	color: #FFFFFF;
}

/* Footer copyright with inline logo */
.moev-footer-copyright {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: #8CA0B2;
}

.moev-footer-logo {
	width: 22px;
	height: 22px;
	object-fit: contain;
	border-radius: 4px;
}

/* Footer email link */
.moev-footer a[href^="mailto:"] {
	color: #00C8CC;
	text-decoration: none;
}

.moev-footer a[href^="mailto:"]:hover {
	color: #FFFFFF;
}

/* ── BUTTON TRANSITION ──────────────────────────────────── */
.wp-block-button__link {
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 200, 204, 0.22);
}

/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS (IntersectionObserver powered)
   ══════════════════════════════════════════════════════════ */

/* ── BASE: hidden state before scroll trigger ──────────── */
.moev-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── VISIBLE: after IntersectionObserver fires ─────────── */
.moev-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── FADE IN (no Y movement) ───────────────────────────── */
.moev-reveal-fade {
	opacity: 0;
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.moev-reveal-fade.is-visible {
	opacity: 1;
}

/* ── SCALE UP ──────────────────────────────────────────── */
.moev-reveal-scale {
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.moev-reveal-scale.is-visible {
	opacity: 1;
	transform: scale(1);
}

/* ── SLIDE FROM LEFT ───────────────────────────────────── */
.moev-reveal-left {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.moev-reveal-left.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* ── SLIDE FROM RIGHT ──────────────────────────────────── */
.moev-reveal-right {
	opacity: 0;
	transform: translateX(40px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.moev-reveal-right.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* ── STAGGERED CHILDREN (columns, card grids) ──────────── */
.moev-stagger.is-visible > .wp-block-column:nth-child(1),
.moev-stagger.is-visible > .wp-block-group:nth-child(1) { transition-delay: 0s; }
.moev-stagger.is-visible > .wp-block-column:nth-child(2),
.moev-stagger.is-visible > .wp-block-group:nth-child(2) { transition-delay: 0.12s; }
.moev-stagger.is-visible > .wp-block-column:nth-child(3),
.moev-stagger.is-visible > .wp-block-group:nth-child(3) { transition-delay: 0.24s; }
.moev-stagger.is-visible > .wp-block-column:nth-child(4),
.moev-stagger.is-visible > .wp-block-group:nth-child(4) { transition-delay: 0.36s; }

.moev-stagger > .wp-block-column,
.moev-stagger > .wp-block-group {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.moev-stagger.is-visible > .wp-block-column,
.moev-stagger.is-visible > .wp-block-group {
	opacity: 1;
	transform: translateY(0);
}

/* ── HERO ENTRANCE (page-load, no observer needed) ────── */
@keyframes moevHeroFade {
	from { opacity: 0; transform: translateY(36px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes moevHeroSlideUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wp-block-cover__inner-container .is-style-eyebrow {
	animation: moevHeroFade 0.6s 0.15s both cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-block-cover__inner-container h1 {
	animation: moevHeroFade 0.7s 0.3s both cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-block-cover__inner-container > .wp-block-group > p:not(.is-style-eyebrow) {
	animation: moevHeroSlideUp 0.6s 0.5s both cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-block-cover__inner-container .wp-block-buttons {
	animation: moevHeroSlideUp 0.6s 0.65s both cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-block-cover__inner-container .wp-block-columns {
	animation: moevHeroSlideUp 0.6s 0.8s both cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── FADE UP: legacy classes still supported ───────────── */
@keyframes moevFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.moev-anim-1 { animation: moevFadeUp 0.55s 0.1s both; }
.moev-anim-2 { animation: moevFadeUp 0.55s 0.22s both; }
.moev-anim-3 { animation: moevFadeUp 0.55s 0.34s both; }

/* ── COUNTER ANIMATION (stat numbers) ──────────────────── */
@keyframes moevCountPulse {
	0%   { transform: scale(0.8); opacity: 0; }
	60%  { transform: scale(1.05); }
	100% { transform: scale(1); opacity: 1; }
}

.is-style-stat-number {
	animation: moevCountPulse 0.5s 0.9s both cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── SCROLL TO TOP BUTTON ──────────────────────────────── */
.moev-scroll-top {
	position: fixed;
	bottom: 32px;
	right: 32px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0, 200, 204, 0.3);
	background: rgba(16, 34, 48, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #00C8CC;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

.moev-scroll-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.moev-scroll-top:hover {
	background: #00C8CC;
	border-color: #00C8CC;
	color: #102230;
	box-shadow: 0 6px 20px rgba(0, 200, 204, 0.3);
}

/* ── WHATSAPP FLOAT BUTTON ────────────────────────────────── */
.moev-whatsapp-float {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #25D366;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
}

.moev-whatsapp-float:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* Push scroll-to-top button up so they don't overlap */
.moev-scroll-top {
	bottom: 96px !important;
}

/* ── FORMINATOR DARK THEME ─────────────────────────────────── */
.forminator-custom-form {
	--form-field-bg: #102230;
	--form-field-border: rgba(255, 255, 255, 0.12);
	--form-field-text: #E8F0F2;
	--form-label-color: #8CA0B2;
}

/* Labels */
.forminator-custom-form .forminator-label {
	color: var(--form-label-color) !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}

/* Sub-labels */
.forminator-custom-form .forminator-label--below {
	color: #4A6572 !important;
}

/* Input fields */
.forminator-custom-form input[type="text"],
.forminator-custom-form input[type="email"],
.forminator-custom-form input[type="tel"],
.forminator-custom-form input[type="url"],
.forminator-custom-form input[type="number"],
.forminator-custom-form select,
.forminator-custom-form .forminator-input {
	background: var(--form-field-bg) !important;
	border: 1px solid var(--form-field-border) !important;
	border-radius: 4px !important;
	color: var(--form-field-text) !important;
	padding: 14px 16px !important;
	font-size: 1rem !important;
	transition: border-color 0.2s ease !important;
}

/* Textarea */
.forminator-custom-form textarea,
.forminator-custom-form .forminator-textarea {
	background: var(--form-field-bg) !important;
	border: 1px solid var(--form-field-border) !important;
	border-radius: 4px !important;
	color: var(--form-field-text) !important;
	padding: 14px 16px !important;
	font-size: 1rem !important;
	min-height: 120px !important;
	transition: border-color 0.2s ease !important;
}

/* Placeholders */
.forminator-custom-form input::placeholder,
.forminator-custom-form textarea::placeholder {
	color: #4A6572 !important;
	opacity: 1 !important;
}

/* Focus state — teal glow */
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
	border-color: #00C8CC !important;
	outline: none !important;
	box-shadow: 0 0 0 2px rgba(0, 200, 204, 0.15) !important;
}

/* Submit button */
.forminator-custom-form .forminator-button-submit {
	background: #00C8CC !important;
	color: #102230 !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 16px 36px !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	width: 100% !important;
	cursor: pointer !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
}

.forminator-custom-form .forminator-button-submit:hover {
	background: #00B3B6 !important;
	transform: translateY(-1px) !important;
}

/* Hide Forminator branding/title and admin "Edit form" link */
.forminator-custom-form .forminator-form-title,
.forminator-custom-form .forminator-form-description,
a[href*="forminator-cform-wizard"] {
	display: none !important;
}

/* Phone field — intl-tel-input dark theme */
.forminator-custom-form .intl-tel-input,
.forminator-custom-form .iti {
	width: 100% !important;
	display: block !important;
}

/* Flag button / selected country area */
.forminator-custom-form .iti__flag-container,
.forminator-custom-form .iti__selected-flag,
.forminator-custom-form .intl-tel-input .iti__flag-container,
.forminator-custom-form .intl-tel-input .iti__selected-flag {
	background: var(--form-field-bg) !important;
	border-right: 1px solid var(--form-field-border) !important;
	border-radius: 4px 0 0 4px !important;
}

.forminator-custom-form .iti__selected-flag:hover {
	background: #1A3245 !important;
}

/* Dial code shown inside input — prevent overlap */
.forminator-custom-form .iti--separate-dial-code .iti__selected-dial-code,
.forminator-custom-form .iti__selected-dial-code {
	color: #8CA0B2 !important;
	font-size: 1rem !important;
}

/* Ensure phone input has enough left padding for flag + dial code */
.forminator-custom-form .iti input,
.forminator-custom-form .iti input[type="tel"],
.forminator-custom-form .intl-tel-input input,
.forminator-custom-form .intl-tel-input input[type="tel"] {
	padding-left: 90px !important;
	width: 100% !important;
	background: var(--form-field-bg) !important;
	border: 1px solid var(--form-field-border) !important;
	border-radius: 4px !important;
	color: var(--form-field-text) !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	padding-right: 16px !important;
	font-size: 1rem !important;
}

.forminator-custom-form .iti input:focus,
.forminator-custom-form .iti input[type="tel"]:focus {
	border-color: #00C8CC !important;
	outline: none !important;
	box-shadow: 0 0 0 2px rgba(0, 200, 204, 0.15) !important;
}

/* Arrow indicator */
.forminator-custom-form .iti__arrow {
	border-top-color: #8CA0B2 !important;
}

.forminator-custom-form .iti__arrow--up {
	border-bottom-color: #8CA0B2 !important;
}

/* Country dropdown list */
.iti__country-list,
.forminator-custom-form .iti__country-list,
.intl-tel-input .iti__country-list {
	background: #1A3245 !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #E8F0F2 !important;
	z-index: 300 !important;
}

/* Country list items */
.iti__country-list .iti__country,
.forminator-custom-form .iti__country-list .iti__country {
	background: #1A3245 !important;
	color: #E8F0F2 !important;
}

.iti__country-list .iti__country:hover,
.iti__country-list .iti__country.iti__highlight,
.forminator-custom-form .iti__country-list .iti__country:hover,
.forminator-custom-form .iti__country-list .iti__country.iti__highlight {
	background: rgba(0, 200, 204, 0.15) !important;
}

.iti__country-list .iti__country-name,
.iti__country-list .iti__dial-code {
	color: #E8F0F2 !important;
}

/* Search box in dropdown */
.iti__country-list .iti__search-input,
.iti__search-input,
.forminator-custom-form .iti__country-list input {
	background: #102230 !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #E8F0F2 !important;
	padding: 8px 12px !important;
	font-size: 0.85rem !important;
}

.iti__search-input::placeholder {
	color: #4A6572 !important;
}

/* Divider between search and list */
.iti__country-list .iti__divider {
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Validation error styling */
.forminator-custom-form .forminator-error-message {
	color: #FF6B6B !important;
	font-size: 0.88rem !important;
	background: rgba(255, 107, 107, 0.1) !important;
	border-color: rgba(255, 107, 107, 0.3) !important;
}

/* Character counter */
.forminator-custom-form .forminator-description {
	color: #4A6572 !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
	.moev-hide-mobile {
		display: none !important;
	}

	.moev-show-mobile {
		display: flex !important;
	}

	/* Hamburger visible — sits above everything so X always works */
	.moev-nav-toggle {
		display: flex;
		z-index: 252;
		position: relative;
	}

	/* Show mobile-only elements */
	.moev-nav-cta { display: block; }
	.moev-nav-backdrop { display: block; }

	/* Backdrop overlay when panel is open */
	.moev-nav-backdrop {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
		z-index: 250;
	}

	.moev-nav-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	/* Nav becomes side panel (slides in from right) — above header */
	.moev-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 280px;
		max-width: 80vw;
		background: #102230;
		border-left: 1px solid rgba(255, 255, 255, 0.08);
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		padding: 90px 32px 40px;
		transform: translateX(100%);
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
		z-index: 251;
		overflow-y: auto;
		/* Reset desktop pill styling */
		border-radius: 0;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border: none;
		border-left: 1px solid rgba(255, 255, 255, 0.08);
	}

	/* Account for WP admin bar when logged in */
	.admin-bar .moev-nav {
		padding-top: 136px;
	}

	.moev-nav.is-open {
		transform: translateX(0);
	}

	.moev-nav a {
		font-size: 1.1rem;
		padding: 16px 0;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 0;
		background: none;
	}

	.moev-nav a::after {
		display: none;
	}

	.moev-nav a.is-active {
		color: #00C8CC;
		background: none;
	}

	.moev-nav a:first-child {
		border-top: 1px solid rgba(255, 255, 255, 0.06);
	}

	/* CTA button inside mobile nav */
	.moev-nav-cta {
		display: block;
		margin-top: 28px;
		padding: 14px 28px;
		background: #00C8CC;
		color: #102230 !important;
		font-size: 0.88rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		border-radius: 4px;
		text-decoration: none;
		text-align: center;
		width: 100%;
		border: none;
		transition: background 0.2s ease;
	}

	.moev-nav-cta:hover {
		background: #00B3B6;
		color: #102230 !important;
	}

	/* Header: tighter padding on tablet/mobile */
	.moev-header {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	/* Footer: tighter padding on tablet/mobile */
	.moev-footer {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.moev-footer .wp-block-columns {
		gap: 32px;
	}
}

@media (max-width: 600px) {
	/* CTA band: stack heading + button vertically on mobile */
	.has-accent-1-background-color > .wp-block-group.is-layout-flex {
		flex-wrap: wrap !important;
		gap: 24px;
	}

	.has-accent-1-background-color > .wp-block-group.is-layout-flex > * {
		flex: 1 1 100% !important;
	}

	/* Reduce CTA band padding on mobile */
	.has-accent-1-background-color.alignfull {
		padding-left: 24px !important;
		padding-right: 24px !important;
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}

	.moev-stat-grid {
		flex-wrap: wrap;
		gap: 20px;
	}

	/* Reduce animation movement on small screens */
	.moev-reveal { transform: translateY(20px); }
	.moev-reveal-left { transform: translateX(-20px); }
	.moev-reveal-right { transform: translateX(20px); }

	/* Footer: single column on mobile */
	.moev-footer .wp-block-columns {
		flex-direction: column;
		gap: 28px;
	}

	.moev-footer .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ── REDUCED MOTION: respect user preference ───────────── */
@media (prefers-reduced-motion: reduce) {
	.moev-reveal,
	.moev-reveal-fade,
	.moev-reveal-scale,
	.moev-reveal-left,
	.moev-reveal-right,
	.moev-stagger > .wp-block-column,
	.moev-stagger > .wp-block-group {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.wp-block-cover__inner-container .is-style-eyebrow,
	.wp-block-cover__inner-container h1,
	.wp-block-cover__inner-container > .wp-block-group > p,
	.wp-block-cover__inner-container .wp-block-buttons,
	.wp-block-cover__inner-container .wp-block-columns,
	.is-style-stat-number,
	.moev-anim-1, .moev-anim-2, .moev-anim-3 {
		animation: none !important;
		opacity: 1 !important;
	}
}

/* ── CONTACT PAGE: EQUAL-HEIGHT COLUMNS ─────────────────── */
.moev-contact-cols > .wp-block-column > .wp-block-group {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* ── CALENDLY EMBED ──────────────────────────────────────── */
.moev-calendly-wrapper {
	border-radius: 8px;
	overflow: hidden;
}

.moev-calendly-wrapper .calendly-inline-widget {
	border-radius: 8px;
}

@media (max-width: 600px) {
	.moev-calendly-wrapper .calendly-inline-widget {
		height: 900px !important;
	}
}

/* ── PROJECT GRID ────────────────────────────────────────── */
.moev-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.moev-project-card {
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.moev-project-card:hover {
	border-color: rgba(0, 200, 204, 0.3) !important;
	transform: translateY(-4px);
}

.moev-project-card > div:last-child {
	flex: 1;
	display: flex;
	flex-direction: column;
}

@media (max-width: 600px) {
	.moev-project-grid {
		grid-template-columns: 1fr;
	}
}
