/**
 * Firouzeh Financial Group — Design System for Sobhanic
 * Inspired by firouzeh.com brand language
 */

:root {
	--fz-primary: #0b1d3a;
	--fz-primary-light: #152d52;
	--fz-accent: #00a896;
	--fz-accent-hover: #008f7f;
	--fz-accent-soft: #e6f7f5;
	--fz-gold: #c9a227;
	--fz-text: #1e293b;
	--fz-text-muted: #64748b;
	--fz-bg: #ffffff;
	--fz-bg-alt: #f4f7fb;
	--fz-border: #e2e8f0;
	--fz-radius: 12px;
	--fz-radius-lg: 20px;
	--fz-shadow: 0 4px 24px rgba(11, 29, 58, 0.08);
	--fz-shadow-hover: 0 12px 40px rgba(11, 29, 58, 0.14);
	--fz-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
	--fz-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

	/* Override Astra globals */
	--ast-global-color-0: var(--fz-primary);
	--ast-global-color-1: var(--fz-primary-light);
	--ast-global-color-2: var(--fz-text);
	--ast-global-color-3: var(--fz-text-muted);
	--ast-global-color-4: var(--fz-bg-alt);
	--ast-global-color-5: var(--fz-bg);
}

/* ── Base Typography ── */
body.firouzeh-brand,
body.firouzeh-brand button,
body.firouzeh-brand input,
body.firouzeh-brand select,
body.firouzeh-brand textarea,
body.firouzeh-brand .ast-button,
body.firouzeh-brand .elementor-widget-container {
	font-family: var(--fz-font) !important;
}

body.firouzeh-brand {
	color: var(--fz-text);
	background: var(--fz-bg);
	-webkit-font-smoothing: antialiased;
	direction: rtl;
	text-align: right;
}

body.firouzeh-brand .entry-content,
body.firouzeh-brand .elementor-widget-container,
body.firouzeh-brand .elementor-widget-text-editor,
body.firouzeh-brand .elementor-widget-tabs .elementor-tab-content {
	text-align: right;
}

body.firouzeh-brand a {
	color: var(--fz-accent);
	transition: color var(--fz-transition);
}

body.firouzeh-brand a:hover,
body.firouzeh-brand a:focus {
	color: var(--fz-accent-hover);
}

body.firouzeh-brand h1,
body.firouzeh-brand h2,
body.firouzeh-brand h3,
body.firouzeh-brand h4,
body.firouzeh-brand h5,
body.firouzeh-brand h6 {
	color: var(--fz-primary);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.firouzeh-brand .entry-content .elementor-heading-title {
	color: var(--fz-primary);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Hero banner title on homepage */
body.firouzeh-brand .elementor-element-33792a3 .elementor-heading-title {
	color: #ffffff !important;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
	font-size: clamp(22px, 3vw, 36px) !important;
	line-height: 1.5 !important;
}

/* ── Header navigation (HFE) ── */
body.firouzeh-brand .elementor-17 .hfe-nav-menu nav > ul.hfe-nav-menu {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 2px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu nav > ul.hfe-nav-menu > li.menu-item {
	display: flex !important;
	align-items: center !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu nav .menu-item a.hfe-menu-item,
body.firouzeh-brand .elementor-17 .hfe-nav-menu nav .menu-item a.hfe-sub-menu-item {
	display: inline-flex !important;
	align-items: center !important;
	color: var(--fz-text) !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu nav > ul > li > a.hfe-menu-item {
	padding: 10px 14px !important;
	border-radius: 8px !important;
	white-space: nowrap !important;
	gap: 6px !important;
	transition: color var(--fz-transition), background var(--fz-transition);
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu nav .menu-item a.hfe-menu-item:hover,
body.firouzeh-brand .elementor-17 .hfe-nav-menu nav .menu-item.current-menu-item > a.hfe-menu-item,
body.firouzeh-brand .elementor-17 .hfe-nav-menu nav .menu-item.current-menu-ancestor > a.hfe-menu-item {
	color: var(--fz-accent) !important;
	background: var(--fz-accent-soft) !important;
}

/* Dropdown / submenu */
body.firouzeh-brand .elementor-17 .hfe-nav-menu .sub-menu {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	right: 0 !important;
	left: auto !important;
	min-width: 280px !important;
	width: max-content !important;
	max-width: 320px !important;
	padding: 6px !important;
	margin: 0 !important;
	border-radius: 12px !important;
	box-shadow: var(--fz-shadow-hover) !important;
	border: 1px solid var(--fz-border) !important;
	background: #fff !important;
	z-index: 9999 !important;
	list-style: none !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu .sub-menu li.menu-item {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu .sub-menu a.hfe-sub-menu-item {
	display: block !important;
	width: 100% !important;
	padding: 12px 16px !important;
	text-align: right !important;
	white-space: normal !important;
	border-radius: 8px !important;
	border-bottom: none !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu .sub-menu li.menu-item:not(:last-child) a.hfe-sub-menu-item {
	border-bottom: 1px solid var(--fz-border) !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu .sub-menu a.hfe-sub-menu-item:hover {
	color: var(--fz-accent) !important;
	background: var(--fz-accent-soft) !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu .hfe-has-submenu-container {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu .hfe-menu-toggle {
	margin-inline-start: 4px !important;
	flex-shrink: 0 !important;
}

/* Header: logo right, menu dead-center of page */
body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-813ef64 {
	position: relative !important;
	display: block !important;
	padding: 12px 32px !important;
	padding-inline-end: 200px !important;
	min-height: 100px;
	direction: ltr !important;
}

body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-3247103 {
	position: absolute !important;
	top: 50% !important;
	right: 32px !important;
	left: auto !important;
	inset-inline-start: auto !important;
	inset-inline-end: 32px !important;
	transform: translateY(-50%) !important;
	z-index: 2 !important;
	width: auto !important;
	max-width: none !important;
	--width: auto !important;
	flex: none !important;
	order: unset !important;
}

body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-9a907d1 {
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: max-content !important;
	max-width: calc(100% - 260px) !important;
	z-index: 1 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	direction: rtl !important;
	--width: auto !important;
}

body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-22a9d12 {
	text-align: right !important;
	width: auto !important;
}

body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-22a9d12 img {
	width: 180px !important;
	height: auto !important;
	max-height: 80px !important;
	min-width: 120px;
	object-fit: contain;
}

body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-8407667,
body.firouzeh-brand .elementor-17 .elementor-widget-navigation-menu {
	width: auto !important;
	max-width: 100%;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 2px !important;
}

body.firouzeh-brand .elementor-17 .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li.menu-item {
	margin: 0 !important;
}

/* Homepage hero — full banner, single background layer */
body.firouzeh-brand .elementor-element-0b3cc4c {
	margin-top: 0 !important;
	padding-top: 80px !important;
	padding-bottom: 80px !important;
	min-height: 72vh !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

body.home.firouzeh-brand .elementor-element-0b3cc4c .elementor-background-overlay {
	background-image: none !important;
	opacity: 0.25 !important;
}

body.firouzeh-brand .elementor-element-33792a3,
body.firouzeh-brand .elementor-element-082d023 {
	width: 100%;
	text-align: center;
}

body.firouzeh-brand .elementor-element-0b3cc4c .elementor-widget-heading,
body.firouzeh-brand .elementor-element-0b3cc4c .elementor-widget-text-editor,
body.firouzeh-brand .elementor-element-0b3cc4c .elementor-widget-button {
	width: 100% !important;
	max-width: 100% !important;
	text-align: center !important;
}

body.firouzeh-brand .elementor-element-0b3cc4c .elementor-heading-title,
body.firouzeh-brand .elementor-element-0b3cc4c .elementor-widget-container {
	text-align: center !important;
	margin-inline: auto !important;
}

/* ── Hero text on dark image backgrounds ── */
body.firouzeh-brand .elementor-widget-heading .elementor-heading-title {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Hero-only white headings (not about section) */
body.firouzeh-brand .elementor-element-0b3cc4c .elementor-heading-title,
body.firouzeh-brand .elementor-element-33792a3 .elementor-heading-title {
	color: #ffffff !important;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* About section on homepage */
body.home.firouzeh-brand .elementor-element-b7ef937 {
	background: var(--fz-bg-alt) !important;
	padding: 48px 24px !important;
}

body.home.firouzeh-brand .elementor-element-b7ef937 .e-con {
	overflow: visible !important;
}

body.home.firouzeh-brand .elementor-element-fz-about-img-col {
	flex: 0 0 40% !important;
	max-width: 420px !important;
	min-width: 260px !important;
}

body.home.firouzeh-brand .elementor-element-72501c3 {
	flex: 1 1 55% !important;
	min-width: 280px !important;
	overflow: visible !important;
}

body.home.firouzeh-brand .elementor-element-94e114a .elementor-heading-title {
	color: var(--fz-primary) !important;
	text-shadow: none !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
}

body.home.firouzeh-brand .elementor-element-24545e9 img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	border-radius: 12px;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

@media (max-width: 768px) {
	body.home.firouzeh-brand .elementor-element-fz-about-img-col,
	body.home.firouzeh-brand .elementor-element-72501c3 {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}
}

/* ── Header (HFE + Astra) ── */
body.firouzeh-brand .hfe-header,
body.firouzeh-brand #masthead,
body.firouzeh-brand .ast-primary-header-bar {
	background: var(--fz-bg) !important;
	box-shadow: var(--fz-shadow) !important;
	border-bottom: 1px solid var(--fz-border) !important;
}

body.firouzeh-brand .hfe-header .elementor-widget-theme-site-logo img,
body.firouzeh-brand .custom-logo {
	max-height: 56px;
	width: auto;
}

/* Navigation — general (non-HFE header pages) */
body.firouzeh-brand:not(.ehf-header) .main-header-menu > .menu-item > .menu-link,
body.firouzeh-brand:not(.ehf-header) .elementor-nav-menu > li > a {
	color: var(--fz-text) !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	padding: 8px 14px !important;
	border-radius: 8px;
}

body.firouzeh-brand:not(.ehf-header) .main-header-menu .sub-menu,
body.firouzeh-brand:not(.ehf-header) .hfe-nav-menu .sub-menu {
	border-radius: var(--fz-radius) !important;
	box-shadow: var(--fz-shadow-hover) !important;
	border: 1px solid var(--fz-border) !important;
	padding: 8px !important;
}

/* ── Buttons ── */
body.firouzeh-brand .elementor-button,
body.firouzeh-brand .wp-block-button__link,
body.firouzeh-brand .ast-button,
body.firouzeh-brand button[type="submit"],
body.firouzeh-brand input[type="submit"] {
	background: var(--fz-accent) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	padding: 14px 32px !important;
	box-shadow: 0 4px 16px rgba(0, 168, 150, 0.3) !important;
	transition: transform var(--fz-transition), box-shadow var(--fz-transition), background var(--fz-transition) !important;
}

body.firouzeh-brand .elementor-button:hover,
body.firouzeh-brand .wp-block-button__link:hover,
body.firouzeh-brand .ast-button:hover {
	background: var(--fz-accent-hover) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 168, 150, 0.4) !important;
	color: #fff !important;
}

/* ── Elementor Sections & Cards ── */
body.firouzeh-brand .elementor-section {
	transition: background var(--fz-transition);
}

body.firouzeh-brand .elementor-widget-image-box,
body.firouzeh-brand .elementor-widget-icon-box {
	transition: transform var(--fz-transition);
}

body.firouzeh-brand .e-con,
body.firouzeh-brand .elementor-column-wrap {
	border-radius: var(--fz-radius);
}

body.firouzeh-brand .elementor-widget-container .elementor-image-box-wrapper,
body.firouzeh-brand .elementor-widget-icon-box .elementor-icon-box-wrapper {
	background: var(--fz-bg);
	border: 1px solid var(--fz-border);
	border-radius: var(--fz-radius-lg);
	padding: 28px 24px;
	box-shadow: var(--fz-shadow);
	transition: transform var(--fz-transition), box-shadow var(--fz-transition);
}

body.firouzeh-brand .elementor-widget-container .elementor-image-box-wrapper:hover,
body.firouzeh-brand .elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: var(--fz-shadow-hover);
}

body.firouzeh-brand .elementor-icon {
	color: var(--fz-accent) !important;
}

/* Hero / first section emphasis */
body.firouzeh-brand .elementor-location-header + .elementor .e-con:first-child,
body.firouzeh-brand .hfe-before-footer-wrap + .site-content .elementor .e-con:first-child,
body.home.firouzeh-brand .elementor .e-con:first-child {
	position: relative;
}

/* ── Footer ── */
body.firouzeh-brand .hfe-footer,
body.firouzeh-brand .site-footer,
body.firouzeh-brand .site-below-footer-wrap {
	background: var(--fz-primary) !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

body.firouzeh-brand .hfe-footer a,
body.firouzeh-brand .site-footer a {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.firouzeh-brand .hfe-footer a:hover,
body.firouzeh-brand .site-footer a:hover {
	color: var(--fz-accent) !important;
}

body.firouzeh-brand .hfe-footer .elementor-heading-title,
body.firouzeh-brand .site-footer .elementor-heading-title {
	color: #fff !important;
}

.fz-footer-group {
	text-align: center;
	padding: 16px 24px 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.fz-footer-group a {
	color: var(--fz-accent) !important;
	text-decoration: none;
	font-weight: 600;
}

.fz-footer-group a:hover {
	color: #fff !important;
}

.fz-footer-sep {
	margin: 0 10px;
	opacity: 0.4;
}

/* ── Forms ── */
body.firouzeh-brand input[type="text"],
body.firouzeh-brand input[type="email"],
body.firouzeh-brand input[type="tel"],
body.firouzeh-brand input[type="url"],
body.firouzeh-brand textarea,
body.firouzeh-brand select {
	border: 1px solid var(--fz-border) !important;
	border-radius: var(--fz-radius) !important;
	font-family: var(--fz-font) !important;
	transition: border-color var(--fz-transition), box-shadow var(--fz-transition);
}

body.firouzeh-brand input:focus,
body.firouzeh-brand textarea:focus,
body.firouzeh-brand select:focus {
	border-color: var(--fz-accent) !important;
	box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15) !important;
	outline: none;
}

/* ── Scroll to top ── */
body.firouzeh-brand #ast-scroll-top {
	background: var(--fz-accent) !important;
	border-radius: 50% !important;
	box-shadow: var(--fz-shadow);
}

/* ── Selection ── */
body.firouzeh-brand ::selection {
	background: var(--fz-accent);
	color: #fff;
}

/* ── Footer group links ── */
body.firouzeh-brand .fz-footer-group {
	text-align: center;
	padding: 24px 16px 8px;
	border-top: 1px solid var(--fz-border);
	margin-top: 24px;
}

body.firouzeh-brand .fz-footer-brand {
	margin: 0 0 16px;
	color: var(--fz-text-muted);
	font-size: 14px;
}

body.firouzeh-brand .fz-footer-sep {
	margin: 0 8px;
	opacity: 0.4;
}

body.firouzeh-brand .fz-footer-subs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin-bottom: 8px;
}

body.firouzeh-brand .fz-footer-subs a {
	color: var(--fz-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 6px;
	transition: color var(--fz-transition), background var(--fz-transition);
}

body.firouzeh-brand .fz-footer-subs a:hover,
body.firouzeh-brand .fz-footer-subs a[aria-current="page"] {
	color: var(--fz-accent);
	background: var(--fz-accent-soft);
}

/* ── Homepage stats cards ── */
body.firouzeh-brand .elementor-element-fz-stats-row .e-con {
	min-width: 220px;
}

body.firouzeh-brand .elementor-element-fz-stats-row .elementor-heading-title {
	line-height: 1.2 !important;
}

/* ── Hero CTA ── */
body.firouzeh-brand .elementor-element-fz-hero-cta .elementor-button {
	padding: 14px 32px !important;
	font-weight: 600 !important;
	font-size: 15px !important;
}

/* ── Mobile header & typography ── */
@media (max-width: 921px) {
	body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-813ef64 {
		display: grid !important;
		grid-template-columns: 1fr auto !important;
		padding: 12px 16px !important;
		padding-inline-end: 16px !important;
		min-height: 72px;
	}

	body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-3247103 {
		position: absolute !important;
		top: 50% !important;
		right: 16px !important;
		left: auto !important;
		transform: translateY(-50%) !important;
		grid-column: unset !important;
		justify-self: unset !important;
	}

	body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-9a907d1 {
		position: static !important;
		transform: none !important;
		left: auto !important;
		top: auto !important;
		grid-column: 1 !important;
		justify-self: start !important;
		max-width: 100% !important;
	}

	body.firouzeh-brand .elementor-17 .elementor-element.elementor-element-22a9d12 img {
		height: 72px !important;
		max-height: 72px !important;
	}

	body.firouzeh-brand .hfe-nav-menu nav .menu-item a.hfe-menu-item {
		font-size: 15px !important;
		padding: 10px 14px !important;
	}

	body.firouzeh-brand .elementor-element-fz-stats-row .e-con {
		width: 100% !important;
		min-width: 0;
	}

	body.firouzeh-brand .fz-footer-subs {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 544px) {
	body.firouzeh-brand h1,
	body.firouzeh-brand .elementor-widget-heading h1.elementor-heading-title {
		font-size: 26px !important;
	}
}

/* ── Legacy color overrides (#00b4c8 → Firouzeh accent) ── */
body.firouzeh-brand .elementor-button,
body.firouzeh-brand .elementor-button:visited,
body.firouzeh-brand a.elementor-button {
	background-color: var(--fz-accent) !important;
	border-color: var(--fz-accent) !important;
}

body.firouzeh-brand .elementor-button:hover {
	background-color: var(--fz-accent-hover) !important;
	border-color: var(--fz-accent-hover) !important;
}

body.firouzeh-brand [data-section="section-header-mobile-trigger"] .ast-mobile-menu-trigger-minimal {
	background-color: transparent !important;
	color: var(--fz-accent) !important;
}

body.firouzeh-brand .main-header-menu .sub-menu {
	border-top-color: var(--fz-accent) !important;
}

body.firouzeh-brand .elementor-button-link.elementor-size-sm,
body.firouzeh-brand .elementor-button.elementor-size-sm {
	font-size: 14px !important;
}

/* Smooth page load */
body.firouzeh-brand .elementor-element {
	animation: fzFadeIn 0.4s ease both;
}

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