/**
 * Yaya footer — full RTL, responsive, matched to the site palette
 * (light background, dark text, orange accent — no green).
 * Colour, typography and spacing tokens are injected as CSS variables
 * from the Customizer (see footer-customizer.php → yaya_footer_dynamic_css()).
 *
 * @package Yaya
 */

.yaya-footer {
	--f-bg: #F2F0EF;
	--f-text: #363636;
	--f-accent: #ED5522;
	--f-sep: rgba(0, 0, 0, 0.10);
	--f-muted: #616266;
	--f-word: #E6E3E1;
	--f-word-size: 20vw;
	--f-word-opacity: 1;
	--f-base-size: 15px;
	--f-heading-size: 18px;

	direction: rtl;
	text-align: right;
	background: var(--f-bg);
	color: var(--f-text);
	font-size: var(--f-base-size);
	line-height: 1.7;
	position: relative;
	overflow: hidden;
}

.yaya-footer *,
.yaya-footer *::before,
.yaya-footer *::after {
	box-sizing: border-box;
}

.yaya-footer a {
	color: var(--f-text);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.yaya-footer a:hover,
.yaya-footer a:focus-visible {
	color: var(--f-accent);
}

.yaya-footer a:focus-visible,
.yaya-footer button:focus-visible,
.yaya-footer input:focus-visible {
	outline: 2px solid var(--f-accent);
	outline-offset: 2px;
}

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

.yaya-footer .f-container {
	max-width: 1400px;
	margin: 0 auto;
	padding-inline: 32px;
	width: 100%;
}

/* Plain heading (matches the old footer h3 — no coloured pill) */
.yaya-footer .f-heading {
	display: block;
	color: var(--f-text);
	font-size: var(--f-heading-size);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 20px;
}

/* ============================================================
   TOP AREA — newsletter (left) + nav columns (right)
   ============================================================ */
.yaya-footer .footer-top {
	padding: 54px 0 40px;
}

.yaya-footer .footer-top__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); /* nav | newsletter */
	gap: 0;
}

.yaya-footer .footer-nav {
	padding-inline-end: 48px;
}

.yaya-footer .footer-newsletter {
	padding-inline-start: 48px;
	border-inline-start: 1px solid var(--f-sep);
}

/* ---- Newsletter ---- */
.yaya-footer .footer-newsletter .f-heading {
	margin-bottom: 22px;
}

.yaya-footer .nl-field {
	margin-bottom: 14px;
}

.yaya-footer .nl-field input[type="email"],
.yaya-footer .nl-field input[type="tel"],
.yaya-footer .nl-field input[type="text"] {
	width: 100%;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 40px;
	color: var(--f-text);
	font-size: 0.95em;
	padding: 14px 22px;
}

.yaya-footer .nl-field input::placeholder {
	color: var(--f-muted);
}

.yaya-footer .nl-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.82em;
	line-height: 1.55;
	color: var(--f-muted);
	margin: 14px 0 18px;
}

.yaya-footer .nl-consent input {
	margin-top: 3px;
	flex: 0 0 auto;
	accent-color: var(--f-accent);
}

.yaya-footer .nl-consent a {
	color: var(--f-accent);
	text-decoration: underline;
}

.yaya-footer .nl-submit {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: var(--f-accent);
	color: #fff;
	font-size: 1em;
	font-weight: 700;
	border-radius: 40px;
	padding: 13px 46px;
}

.yaya-footer .nl-submit:hover {
	filter: brightness(1.08);
}

.yaya-footer .nl-shortcode :is(input, textarea) {
	max-width: 100%;
}

/* ---- Nav columns ---- */
.yaya-footer .footer-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.yaya-footer .footer-col ul li {
	margin-bottom: 12px;
}

.yaya-footer .footer-col ul a {
	color: var(--f-muted);
	font-size: 0.95em;
}

.yaya-footer .footer-col ul a:hover {
	color: var(--f-accent);
}

/* Contact column */
.yaya-footer .f-contact li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--f-muted);
	font-size: 0.95em;
	margin-bottom: 12px;
}

.yaya-footer .f-contact li a {
	color: var(--f-muted);
}

.yaya-footer .f-contact li a:hover {
	color: var(--f-accent);
}

.yaya-footer .f-contact .f-ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--f-accent);
}

.yaya-footer .f-contact .f-ico svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* ---- Social row (hidden unless networks are enabled) ---- */
.yaya-footer .footer-social {
	grid-column: 1 / -1;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--f-sep);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}

.yaya-footer .footer-social a {
	color: var(--f-text);
	display: inline-flex;
	width: 24px;
	height: 24px;
}

.yaya-footer .footer-social a:hover {
	color: var(--f-accent);
	transform: translateY(-2px);
}

.yaya-footer .footer-social svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* ============================================================
   BOTTOM AREA — decorative word + legal + company
   ============================================================ */
.yaya-footer .footer-bottom {
	position: relative;
	border-top: 1px solid var(--f-sep);
	padding: 40px 0 34px;
	overflow: hidden; /* crop the oversized wordmark behind the content — no empty space */
}

.yaya-footer .footer-word {
	position: absolute;
	inset: 0;          /* full page width + height of the section */
	z-index: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;  /* crop the word at the left/right edges */
	color: var(--f-word);
	opacity: var(--f-word-opacity);
	user-select: none;
}

.yaya-footer .footer-word.is-top { align-items: flex-start; }
.yaya-footer .footer-word.is-center { align-items: center; }

/* Giant wordmark text — natural proportions, fills width, cropped at edges */
.yaya-footer .footer-word__text {
	display: block;
	white-space: nowrap;
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.03em;
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	/* font-size is set inline, derived from the word length */
}

.yaya-footer .footer-word img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	opacity: var(--f-word-opacity);
}

.yaya-footer .footer-bottom__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto; /* legal (right) | company (left) */
	gap: 20px 40px;
	align-items: end;
}

/* Legal links + disclaimer (right in RTL) */
.yaya-footer .f-legal-links {
	margin-bottom: 14px;
}

.yaya-footer .f-legal-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.yaya-footer .f-legal-links a {
	color: var(--f-text);
	font-size: 0.9em;
	font-weight: 600;
}

.yaya-footer .f-legal-links a:hover {
	color: var(--f-accent);
}

.yaya-footer .f-disclaimer {
	color: var(--f-muted);
	font-size: 0.82em;
	line-height: 1.8;
	margin: 0;
	max-width: 900px;
}

.yaya-footer .f-disclaimer strong {
	display: inline-block;
	color: var(--f-text);
	font-size: 1.15em;
	margin-bottom: 2px;
}

/* Company block (left in RTL) */
.yaya-footer .f-company {
	text-align: left;
	white-space: nowrap;
}

.yaya-footer .f-company .f-legalname {
	font-size: 0.82em;
	color: var(--f-muted);
	margin: 0 0 6px;
	white-space: normal;
}

.yaya-footer .f-company .f-copyright {
	font-size: 0.82em;
	color: var(--f-muted);
	margin: 0;
}

/* Combined payment-methods strip image (above copyright) */
.yaya-footer .f-payments-strip {
	margin: 0 0 12px;
}

.yaya-footer .f-payments-strip img {
	height: 26px;
	width: auto;
	max-width: 100%;
	display: block;
}

.yaya-footer .f-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	margin-top: 14px;
}

.yaya-footer .f-pay {
	height: 30px;
	display: inline-flex;
	align-items: center;
}

.yaya-footer .f-pay img,
.yaya-footer .f-pay svg {
	height: 100%;
	width: auto;
	display: block;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1024px) {
	.yaya-footer .footer-top__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.yaya-footer .footer-nav {
		padding-inline-end: 0;
	}
	.yaya-footer .footer-newsletter {
		padding-inline-start: 0;
		border-inline-start: 0;
		border-top: 1px solid var(--f-sep);
		padding-top: 34px;
	}
	.yaya-footer .footer-cols {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 24px;
	}
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 680px) {
	.yaya-footer .f-container {
		padding-inline: 20px;
	}
	.yaya-footer .footer-top {
		padding: 36px 0 28px;
	}
	/* Columns side by side on phones: 2 link columns on top, contact full-width below */
	.yaya-footer .footer-cols {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}
	.yaya-footer .f-contact-col {
		grid-column: 1 / -1;
	}
	.yaya-footer .footer-col .f-heading {
		font-size: 0.95em;
		margin-bottom: 12px;
	}
	.yaya-footer .footer-col ul a {
		font-size: 0.82em;
		overflow-wrap: anywhere;
	}
	.yaya-footer .f-contact li {
		font-size: 0.82em;
		align-items: flex-start;
		gap: 6px;
		overflow-wrap: anywhere;
	}
	.yaya-footer .f-contact li a {
		overflow-wrap: anywhere;
	}
	.yaya-footer .f-contact .f-ico {
		width: 14px;
		height: 14px;
		margin-top: 2px;
	}
	.yaya-footer .footer-social {
		gap: clamp(20px, 9vw, 44px);
		flex-wrap: wrap;
	}
	.yaya-footer .footer-bottom__inner {
		grid-template-columns: 1fr;
		align-items: start;
	}
	.yaya-footer .f-company {
		text-align: right;
		white-space: normal;
	}
	.yaya-footer .nl-field input,
	.yaya-footer .nl-submit {
		width: 100%;
	}
	.yaya-footer .footer-word {
		--f-word-size: 30vw;
	}
	/* Mobile stacking order (Customizer → Footer General Settings) */
	.yaya-footer.order-newsletter-first .footer-newsletter {
		order: -1;
		border-top: 0;
		padding-top: 0;
	}
	.yaya-footer.order-newsletter-first .footer-nav {
		border-top: 1px solid var(--f-sep);
		padding-top: 34px;
	}
}
