/**
 * Property Search - Footer widget styles
 *
 * Mirrors the static site footer design exactly: dark green footer,
 * four-column grid, accent underlines, social tiles and the floating
 * WhatsApp button. Colours are CSS custom properties written by
 * Elementor; the values below are the design defaults / fallbacks.
 *
 * @package PropertySearch
 */

.ps-footer {
	--ps-footer-bg: #00291d;
	--ps-footer-heading: #ffffff;
	--ps-footer-heading-underline: #ffcc00;
	--ps-footer-text: rgba(255, 255, 255, 0.6);
	--ps-footer-link: rgba(255, 255, 255, 0.6);
	--ps-footer-link-hover: #ffcc00;
	--ps-footer-icon-accent: #ffcc00;
	--ps-footer-logo-grad-start: #006241;
	--ps-footer-logo-grad-end: #003d2b;
	--ps-footer-logo-accent: #ffcc00;
	--ps-footer-logo-title: #ffffff;
	--ps-footer-logo-tagline: rgba(255, 255, 255, 0.6);
	--ps-footer-social-bg: rgba(255, 255, 255, 0.08);
	--ps-footer-social-color: #ffffff;
	--ps-footer-social-hover-bg: #ffcc00;
	--ps-footer-social-hover-color: #003d2b;
	--ps-footer-bottom-border: rgba(255, 255, 255, 0.08);
	--ps-footer-bottom-text: rgba(255, 255, 255, 0.4);
	--ps-footer-heart: #dc3545;
	--ps-wa-bg: #25d366;
	--ps-wa-color: #ffffff;

	position: relative;
	width: 100%;
	font-family: inherit;
	line-height: 1.5;
}

.ps-footer * {
	box-sizing: border-box;
}

.ps-container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ------------------------------------------------------------------ */
/* Footer shell + grid (12-column spans mirror Bootstrap col-lg-*)     */
/* ------------------------------------------------------------------ */
.ps-main-footer {
	background: var(--ps-footer-bg);
	color: #ffffff;
	padding: 80px 0 0;
}

.ps-footer-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 48px;
}

.ps-footer-col {
	min-width: 0;
}

.ps-col-brand {
	grid-column: span 4;
}

.ps-col-links,
.ps-col-services {
	grid-column: span 2;
}

.ps-col-contact {
	grid-column: span 4;
}

/* ------------------------------------------------------------------ */
/* Logo (same construction as the header)                              */
/* ------------------------------------------------------------------ */
.ps-footer-logo-wrap {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	margin-bottom: 12px;
}

.ps-footer-logo-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ps-footer-logo-grad-start), var(--ps-footer-logo-grad-end));
	border: 3px solid var(--ps-footer-logo-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px rgba(0, 61, 43, 0.3);
	flex-shrink: 0;
}

.ps-footer-logo-icon > span {
	color: var(--ps-footer-logo-accent);
	font-weight: 700;
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1;
}

.ps-footer-logo-img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.ps-footer-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ps-footer-logo-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ps-footer-logo-title);
	letter-spacing: 1px;
}

.ps-footer-logo-title em {
	color: var(--ps-footer-logo-accent);
	font-style: normal;
}

.ps-footer-logo-tagline {
	font-size: 0.72rem;
	color: var(--ps-footer-logo-tagline);
	letter-spacing: 1px;
}

/* ------------------------------------------------------------------ */
/* Description                                                         */
/* ------------------------------------------------------------------ */
.ps-footer-desc {
	color: var(--ps-footer-text);
	font-size: 0.92rem;
	line-height: 1.8;
	margin: 12px 0 0;
}

/* ------------------------------------------------------------------ */
/* Social tiles                                                        */
/* ------------------------------------------------------------------ */
.ps-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.ps-social-link {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--ps-footer-social-bg);
	color: var(--ps-footer-social-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	text-decoration: none;
}

.ps-social-link i,
.ps-social-link svg {
	width: 1em;
	height: 1em;
}

.ps-social-link:hover {
	background: var(--ps-footer-social-hover-bg);
	color: var(--ps-footer-social-hover-color);
	transform: translateY(-3px);
}

/* ------------------------------------------------------------------ */
/* Column headings with accent underline                               */
/* ------------------------------------------------------------------ */
.ps-footer-heading {
	font-weight: 700;
	color: var(--ps-footer-heading);
	margin: 0 0 20px;
	position: relative;
	padding-bottom: 12px;
}

.ps-footer-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 35px;
	height: 3px;
	background: var(--ps-footer-heading-underline);
	border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/* Link lists                                                          */
/* ------------------------------------------------------------------ */
.ps-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ps-footer-links li {
	margin-bottom: 10px;
}

.ps-footer-links a {
	color: var(--ps-footer-link);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 0.92rem;
	display: inline-flex;
	align-items: center;
}

.ps-link-icon {
	color: var(--ps-footer-icon-accent);
	margin-right: 8px;
	font-size: 0.75rem;
	width: 1em;
}

.ps-footer-links a:hover {
	color: var(--ps-footer-link-hover);
	padding-left: 6px;
}

/* ------------------------------------------------------------------ */
/* Contact rows                                                        */
/* ------------------------------------------------------------------ */
.ps-footer-contact p {
	color: var(--ps-footer-text);
	margin-bottom: 12px;
	font-size: 0.92rem;
	display: flex;
	align-items: flex-start;
}

.ps-footer-contact p i,
.ps-footer-contact p svg {
	color: var(--ps-footer-icon-accent);
	width: 20px;
	flex-shrink: 0;
	margin-right: 10px;
	margin-top: 3px;
}

.ps-contact-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ps-contact-link:hover {
	color: var(--ps-footer-link-hover);
}

/* ------------------------------------------------------------------ */
/* Bottom copyright bar                                                */
/* ------------------------------------------------------------------ */
.ps-footer-bottom {
	border-top: 1px solid var(--ps-footer-bottom-border);
	padding: 20px 0;
	margin-top: 50px;
	text-align: center;
	color: var(--ps-footer-bottom-text);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ps-copyright {
	display: inline-block;
}

.ps-designed {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ps-designed-icon {
	color: var(--ps-footer-heart);
}

/* ------------------------------------------------------------------ */
/* Floating WhatsApp button                                            */
/* ------------------------------------------------------------------ */
.ps-wa-float {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 999;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--ps-wa-bg);
	color: var(--ps-wa-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
	transition: transform 0.3s ease;
	text-decoration: none;
}

.ps-wa-float i,
.ps-wa-float svg {
	width: 1em;
	height: 1em;
}

.ps-wa-float:hover {
	transform: scale(1.1);
	color: var(--ps-wa-color);
}

/* ------------------------------------------------------------------ */
/* Responsive: tablet (mirrors Bootstrap md/lg behaviour)              */
/* ------------------------------------------------------------------ */
@media (max-width: 991px) {
	.ps-col-brand {
		grid-column: span 12;
	}

	.ps-col-links,
	.ps-col-services,
	.ps-col-contact {
		grid-column: span 4;
	}
}

@media (max-width: 767px) {
	.ps-main-footer {
		padding-top: 56px;
	}

	.ps-footer-grid {
		gap: 36px;
	}

	.ps-col-brand,
	.ps-col-links,
	.ps-col-services,
	.ps-col-contact {
		grid-column: span 12;
	}

	.ps-footer-bottom {
		flex-direction: column;
		gap: 6px;
	}
}

@media (max-width: 575px) {
	.ps-footer-logo-icon,
	.ps-footer-logo-img {
		width: 42px;
		height: 42px;
	}

	.ps-footer-logo-title {
		font-size: 1.1rem;
	}

	.ps-footer-logo-tagline {
		font-size: 0.65rem;
	}

	.ps-wa-float {
		width: 52px;
		height: 52px;
		font-size: 1.5rem;
		bottom: 18px;
		right: 18px;
	}
}
