/*
Theme Name: XF Traders Campaign
Author URI: https://dardostech.com/
Description: Arabic-first campaign landing page and bilingual privacy policy for XF Traders.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: xf-traders
*/

/* Keep the footer credits in fixed visual positions in both language directions. */
.footer-bottom {
	direction: ltr;
	color: #aab9c8;
}

.footer-powered {
	margin-left: auto;
	text-align: right;
}

.footer-powered a {
	color: #21d6b2;
	font-weight: 700;
	text-decoration-color: rgba(33, 214, 178, 0.55);
	text-underline-offset: 3px;
}

.footer-powered a:hover,
.footer-powered a:focus-visible {
	color: #ffffff;
}

.footer-copyright {
	margin-left: 0;
	text-align: left;
}

.footer-copyright strong {
	color: #ffffff;
}

.footer-warning {
	margin-top: 35px;
	text-align: center;
	font-size: 12px;
}

.footer-warning + .footer-bottom {
	margin-top: 18px;
}

@media (max-width: 520px) {
	.footer-powered,
	.footer-copyright {
		width: 100%;
		margin-left: 0;
	}
}

.footer-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-company p {
	margin-bottom: 0;
}

.footer-quick-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-quick-links li + li {
	margin-top: 8px;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-style: normal;
}

.footer-contact a,
.footer-contact span,
.footer-socials a,
.footer-social-item {
	display: flex;
	align-items: center;
	gap: 9px;
}

.footer-contact i,
.footer-socials i {
	width: 18px;
	text-align: center;
}

.footer-socials {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

@media (max-width: 780px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* Shared icon rhythm: decorative icons inherit the editable ACF brand palette. */
.button > i,
.proof-strip i,
.feature-list i,
.policy-toc i,
.footer-contact i,
.footer-socials i {
	flex: 0 0 auto;
}

.market-icon i,
.benefit-icon,
.stat-icon {
	color: var(--brand-accent);
}

.market-icon i {
	font-size: 1.45rem;
}

.feature-list span {
	display: flex;
	align-items: center;
	gap: 9px;
}

.feature-list i,
.policy-toc i {
	color: var(--accent-dark);
}

.stat-icon {
	display: block;
	margin-bottom: 10px;
	font-size: 1.25rem;
}

.benefit-icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	font-size: 1.35rem;
}

.policy-toc a {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
}

@media (max-width: 520px) {
	.market-icon i {
		font-size: 1.25rem;
	}

	.benefit-icon {
		width: 38px;
		height: 38px;
	}
}

/* Contact Form 7: consistent, direction-safe field grid at every breakpoint. */
.form-fields-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 12px;
	width: 100%;
}

.form-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.form-field label {
	display: block;
	min-width: 0;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.form-card .form-field input:not([type="checkbox"]),
.form-card .form-field select,
.form-card .phone-input {
	width: 100%;
	height: 50px;
	min-height: 50px;
	border: 1px solid #cfdade;
	border-radius: 9px;
	font-size: 15px;
}

.form-card .form-field input:not([type="checkbox"]),
.form-card .form-field select {
	padding: 10px 13px;
}

.form-card .phone-input {
	display: flex;
	overflow: hidden;
}

.form-card .phone-input input:not([type="checkbox"]) {
	height: 48px;
	min-height: 48px;
	border: 0;
	border-radius: 0;
}

.form-field small {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 520px) {
	.form-fields-grid {
		grid-template-columns: 1fr;
		gap: 13px;
	}
}
