/* =========================================================
   Dunix Beauty — Global Footer
   ========================================================= */

.dunix-site-footer {
	--dunix-footer-bg: #17243d;
	--dunix-footer-bg-deep: #101a2d;
	--dunix-footer-surface: rgba(255, 255, 255, 0.055);
	--dunix-footer-text: rgba(255, 255, 255, 0.76);
	--dunix-footer-heading: #ffffff;
	--dunix-footer-muted: rgba(255, 255, 255, 0.58);
	--dunix-footer-border: rgba(255, 255, 255, 0.12);
	--dunix-footer-accent: #c4a28e;

	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: var(--dunix-footer-bg);
	color: var(--dunix-footer-text);
	box-sizing: border-box;
}

.dunix-site-footer *,
.dunix-site-footer *::before,
.dunix-site-footer *::after {
	box-sizing: border-box;
}

.dunix-footer-container {
	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	padding-right: 40px;
	padding-left: 40px;
}

/* Newsletter */
.dunix-footer-newsletter {
	position: relative;
	padding: 58px 0;
	overflow: hidden;
	border-bottom: 1px solid var(--dunix-footer-border);
	background:
		radial-gradient(
			circle at 88% 15%,
			rgba(196, 162, 142, 0.15),
			transparent 34%
		),
		var(--dunix-footer-bg-deep);
}

.dunix-footer-newsletter-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
	align-items: center;
	gap: 70px;
}

.dunix-footer-newsletter-copy {
	max-width: 650px;
}

.dunix-footer-eyebrow {
	display: block;
	margin-bottom: 16px;
	color: var(--dunix-footer-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.4;
	text-transform: uppercase;
}

.dunix-footer-newsletter-title {
	margin: 0 0 16px;
	color: var(--dunix-footer-heading);
	font-family: inherit;
	font-size: clamp(30px, 3vw, 43px);
	font-weight: 500;
	letter-spacing: -0.7px;
	line-height: 1.12;
}

.dunix-footer-newsletter-description {
	max-width: 590px;
	margin: 0;
	color: var(--dunix-footer-text);
	font-size: 15px;
	line-height: 1.7;
}

.dunix-footer-newsletter-form {
	min-width: 0;
}

.dunix-footer-newsletter-form .dunix-footer-widget {
	margin: 0;
}

/* Generic footer form styling */
.dunix-footer-newsletter-form form {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin: 0;
}

.dunix-footer-newsletter-form input[type="email"],
.dunix-footer-newsletter-form input[type="text"] {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 54px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 5px !important;
	background-color: rgba(255, 255, 255, 0.07) !important;
	color: #ffffff !important;
	font-family: inherit;
	font-size: 16px !important;
	box-shadow: none !important;
}

.dunix-footer-newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.56);
	opacity: 1;
}

.dunix-footer-newsletter-form input:focus {
	border-color: rgba(255, 255, 255, 0.62) !important;
	outline: 2px solid rgba(255, 255, 255, 0.18) !important;
	outline-offset: 2px;
}

.dunix-footer-newsletter-form button,
.dunix-footer-newsletter-form input[type="submit"] {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 135px;
	min-height: 54px;
	margin: 0 !important;
	padding: 13px 23px !important;
	border: 1px solid #ffffff !important;
	border-radius: 5px !important;
	background-color: #ffffff !important;
	color: #17243d !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0.8px;
	line-height: 1.4;
	text-transform: uppercase;
	box-shadow: none !important;
	cursor: pointer;
	transition:
		background-color 0.25s ease,
		color 0.25s ease;
}

.dunix-footer-newsletter-form button:hover,
.dunix-footer-newsletter-form input[type="submit"]:hover {
	background-color: transparent !important;
	color: #ffffff !important;
}

/* Main grid */
.dunix-footer-main {
	position: relative;
	padding: 78px 0 68px;
}

.dunix-footer-main::before {
	content: "";
	position: absolute;
	top: 0;
	right: -130px;
	width: 390px;
	height: 390px;
	border: 1px solid rgba(255, 255, 255, 0.045);
	border-radius: 50%;
	pointer-events: none;
}

.dunix-footer-grid {
	display: grid;
	grid-template-columns:
		minmax(250px, 1.55fr)
		minmax(130px, 0.72fr)
		minmax(160px, 0.9fr)
		minmax(140px, 0.78fr)
		minmax(190px, 1fr);
	gap: 50px;
}

.dunix-footer-column {
	min-width: 0;
}

.dunix-footer-widget {
	margin: 0 0 26px;
	color: var(--dunix-footer-text);
}

.dunix-footer-widget:last-child {
	margin-bottom: 0;
}

.dunix-footer-widget-title {
	position: relative;
	margin: 0 0 23px;
	padding-bottom: 13px;
	color: var(--dunix-footer-heading);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.25px;
	line-height: 1.4;
}

.dunix-footer-widget-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 1px;
	background-color: var(--dunix-footer-accent);
}

/* Brand */
.dunix-footer-logo {
	display: inline-flex;
	max-width: 190px;
	align-items: center;
	margin-bottom: 22px;
	color: #ffffff;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.dunix-footer-logo:hover {
	color: #ffffff;
	text-decoration: none;
}

.dunix-footer-logo .custom-logo-link {
	display: inline-flex;
}

.dunix-footer-logo img,
.dunix-footer-brand-column .custom-logo {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 72px;
	object-fit: contain;
}

.dunix-footer-brand-description {
	max-width: 340px;
	margin: 0;
	color: var(--dunix-footer-text);
	font-size: 16px;
	line-height: 1.75;
}

/* Lists and menu widgets */
.dunix-site-footer ul,
.dunix-footer-fallback-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dunix-site-footer li {
	margin: 0 0 16px;
	padding: 0;
}

.dunix-site-footer li:last-child {
	margin-bottom: 0;
}

.dunix-site-footer a:not(.dunix-footer-logo) {
	color: var(--dunix-footer-text);
	text-decoration: none;
	transition:
		color 0.25s ease,
		transform 0.25s ease;
}

.dunix-site-footer li > a {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	line-height: 1.55;
}

.dunix-site-footer li > a::before {
	content: "";
	width: 0;
	height: 1px;
	margin-right: 0;
	background-color: var(--dunix-footer-accent);
	transition:
		width 0.25s ease,
		margin-right 0.25s ease;
}

.dunix-site-footer li > a:hover,
.dunix-site-footer li.current-menu-item > a {
	color: #ffffff;
}

.dunix-site-footer li > a:hover::before,
.dunix-site-footer li.current-menu-item > a::before {
	width: 16px;
	margin-right: 7px;
}

/* Paragraph and contact content */
.dunix-footer-widget p,
.dunix-footer-contact-fallback p {
	margin: 0 0 16px;
	color: var(--dunix-footer-text);
	font-size: 16px;
	line-height: 1.7;
}

.dunix-footer-widget p:last-child,
.dunix-footer-contact-fallback p:last-child {
	margin-bottom: 0;
}

.dunix-footer-contact-column a:hover {
	color: #ffffff;
}

/* Social icon blocks */
.dunix-footer-brand-column .wp-block-social-links,
.dunix-footer-contact-column .wp-block-social-links,
.dunix-footer-widget .social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}

.dunix-footer-brand-column .wp-social-link,
.dunix-footer-contact-column .wp-social-link {
	margin: 0;
	background: transparent !important;
}

.dunix-footer-brand-column .wp-social-link a,
.dunix-footer-contact-column .wp-social-link a {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--dunix-footer-border);
	border-radius: 50%;
	color: #ffffff;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.dunix-footer-brand-column .wp-social-link a:hover,
.dunix-footer-contact-column .wp-social-link a:hover {
	transform: translateY(-2px);
	border-color: #ffffff;
	background-color: #ffffff;
	color: #17243d;
}

/* Bottom bar */
.dunix-footer-bottom {
	padding: 22px 0;
	border-top: 1px solid var(--dunix-footer-border);
	background-color: var(--dunix-footer-bg-deep);
}

.dunix-footer-bottom-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.dunix-footer-copyright,
.dunix-footer-secure-payment {
	margin: 0;
	color: var(--dunix-footer-muted);
	font-size: 16px;
	line-height: 1.6;
}

.dunix-footer-payments {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.dunix-footer-payments .dunix-footer-widget {
	margin: 0;
}

.dunix-footer-payments img {
	display: block;
	width: auto;
	max-width: 280px;
	max-height: 34px;
	object-fit: contain;
}

/* WPForms inside newsletter */
.dunix-footer-newsletter-form .wpforms-container {
	margin: 0 !important;
}

.dunix-footer-newsletter-form .wpforms-field-container {
	flex: 1;
	min-width: 0;
}

.dunix-footer-newsletter-form .wpforms-field {
	padding: 0 !important;
}

.dunix-footer-newsletter-form .wpforms-field-label {
	display: none !important;
}

.dunix-footer-newsletter-form .wpforms-submit-container {
	margin: 0 !important;
	padding: 0 !important;
}

.dunix-footer-newsletter-form .wpforms-error {
	margin-top: 7px !important;
	color: #ffd1d1 !important;
	font-size: 16px !important;
}

/* Tablet */
@media (max-width: 1100px) {
	.dunix-footer-container {
		padding-right: 30px;
		padding-left: 30px;
	}

	.dunix-footer-newsletter-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.dunix-footer-newsletter-copy {
		max-width: 720px;
	}

	.dunix-footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 46px 34px;
	}

	.dunix-footer-brand-column {
		grid-column: span 2;
	}

	.dunix-footer-contact-column {
		grid-column: span 1;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.dunix-footer-container {
		padding-right: 20px;
		padding-left: 20px;
	}

	.dunix-footer-newsletter {
		padding: 48px 0;
	}

	.dunix-footer-newsletter-title {
		font-size: 32px;
	}

	.dunix-footer-newsletter-description {
		font-size: 16px;
	}

	.dunix-footer-newsletter-form form {
		flex-direction: column;
		gap: 10px;
	}

	.dunix-footer-newsletter-form button,
	.dunix-footer-newsletter-form input[type="submit"] {
		width: 100%;
		min-height: 52px;
	}

	.dunix-footer-main {
		padding: 58px 0 50px;
	}

	.dunix-footer-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.dunix-footer-brand-column,
	.dunix-footer-contact-column {
		grid-column: auto;
	}

	.dunix-footer-column {
		padding: 28px 0;
		border-bottom: 1px solid var(--dunix-footer-border);
	}

	.dunix-footer-column:first-child {
		padding-top: 0;
	}

	.dunix-footer-column:last-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.dunix-footer-widget-title {
		margin-bottom: 19px;
	}

	.dunix-footer-bottom {
		padding: 24px 0;
	}

	.dunix-footer-bottom-layout {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.dunix-footer-payments {
		justify-content: flex-start;
	}

	.dunix-footer-payments img {
		max-width: 240px;
	}
}

@media (max-width: 480px) {
	.dunix-footer-newsletter-title {
		font-size: 29px;
	}

	.dunix-footer-logo img,
	.dunix-footer-brand-column .custom-logo {
		max-width: 155px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dunix-site-footer a,
	.dunix-site-footer li > a::before,
	.dunix-footer-brand-column .wp-social-link a,
	.dunix-footer-contact-column .wp-social-link a {
		transition: none;
	}

	.dunix-footer-brand-column .wp-social-link a:hover,
	.dunix-footer-contact-column .wp-social-link a:hover {
		transform: none;
	}
}

/* =========================================================
   Footer brand logo
   ========================================================= */

.dunix-footer-brand-column .wp-block-image {
	margin: 0 0 24px;
}

.dunix-footer-brand-column .wp-block-image a {
	display: inline-flex;
	align-items: center;
}

.dunix-footer-brand-column .wp-block-image img {
	display: block;
	width: auto;
	max-width: 210px;
	height: auto;
	max-height: 82px;
	margin: 0;
	object-fit: contain;
	object-position: left center;
}

.dunix-footer-brand-column .wp-block-image a {
	transition: opacity 0.25s ease;
}

.dunix-footer-brand-column .wp-block-image a:hover {
	opacity: 0.88;
}

@media (max-width: 767px) {
	.dunix-footer-brand-column .wp-block-image img {
		max-width: 175px;
		max-height: 72px;
	}
}

/* Footer copyright and developer credit */
.dunix-footer-copyright-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.dunix-footer-credit {
	margin: 0;
	font-size: 13px;
	color: rgba(255,255,255,.65);
}

.dunix-footer-credit::before {
	content: "|";
	margin-right: 10px;
	color: rgba(255,255,255,.25);
}

.dunix-footer-credit a {
	color: rgba(255,255,255,.85);
	font-weight: 600;
	text-decoration: none;
	transition: color .25s ease;
}

.dunix-footer-credit a:hover {
	color: #fff;
}

@media (max-width: 768px) {
	.dunix-footer-copyright-wrap {
		justify-content: center;
		text-align: center;
	}
}