/**
 * Papan Custom WordPress Footer Styles
 */

:root {
	--papan-ftr-bg: #ffffff;
	--papan-ftr-color: #3a201c;
	--papan-ftr-border: #5c3826;
	--papan-ftr-hover: #f28500;
}

/* Hide default theme footers when Papan Custom Footer is active */
body.papan-has-custom-footer #site-footer,
body.papan-has-custom-footer .site-footer,
body.papan-has-custom-footer footer.elementor-theme-builder-footer:not(.papan-site-footer),
body.papan-has-custom-footer footer:not(.papan-site-footer) {
	display: none !important;
}

/* =========================================
   Main Footer Container
   ========================================= */
.papan-site-footer {
	position: relative;
	width: 100%;
	background-color: var(--papan-ftr-bg, #ffffff);
	color: var(--papan-ftr-color, #3a201c);
	font-family: var(--papan-hdr-font, 'Noto Sans Hebrew', sans-serif);
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
	border: none !important;
	border-top: none !important;
	box-shadow: none !important;
}

.papan-site-footer *,
.papan-site-footer *::before,
.papan-site-footer *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.papan-footer-inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px 10px 80px;
}

/* =========================================
   Mobile Top Heading (Hidden on Desktop)
   ========================================= */
.papan-footer-mobile-heading {
	display: none;
	text-align: center;
	margin-bottom: 32px;
}

.papan-footer-main-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--papan-ftr-color, #3a201c);
	margin: 0 0 10px 0;
	line-height: 1.25;
}

.papan-footer-main-subtitle {
	font-size: 16px;
	font-weight: 400;
	color: var(--papan-ftr-color, #3a201c);
	margin: 0 auto;
	max-width: 320px;
	line-height: 1.5;
}

/* =========================================
   Columns Layout
   ========================================= */
.papan-footer-columns {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 60px;
}

/* =========================================
   Contact Form Column
   ========================================= */
.papan-footer-form-col {
	flex: 0 0 44%;
	max-width: 480px;
	width: 100%;
}

.papan-footer-contact-form {
	width: 100%;
}

.papan-form-group {
	margin-bottom: 20px;
}

.papan-form-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--papan-ftr-color, #3a201c);
	margin-bottom: 8px;
	line-height: 1.3;
}

.papan-site-footer input.papan-form-input,
.papan-site-footer input[type="text"].papan-form-input,
.papan-site-footer input[type="email"].papan-form-input,
.papan-site-footer textarea.papan-form-textarea {
	width: 100% !important;
	background: #ffffff !important;
	border: 1.6px solid var(--papan-ftr-border, #5c3826) !important;
	border-radius: 8px !important;
	padding: 10px 16px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	color: var(--papan-ftr-color, #3a201c) !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	line-height: 1.4 !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
}

.papan-site-footer input.papan-form-input:focus,
.papan-site-footer input[type="text"].papan-form-input:focus,
.papan-site-footer input[type="email"].papan-form-input:focus,
.papan-site-footer textarea.papan-form-textarea:focus {
	border-color: var(--papan-ftr-hover, #f28500) !important;
	box-shadow: 0 0 0 3px rgba(242, 133, 0, 0.15) !important;
}

.papan-site-footer textarea.papan-form-textarea {
	min-height: 125px !important;
	resize: vertical !important;
}

.papan-form-submit-row {
	display: flex;
	justify-content: flex-start;
	/* in RTL, flex-start is the right side */
	margin-top: 14px;
	height: 42px;
}

.papan-site-footer button.papan-form-submit-btn,
.papan-site-footer input[type="submit"].papan-form-submit-btn {
	background: #ffffff !important;
	border: 1.6px solid var(--papan-ftr-border, #5c3826) !important;
	border-radius: 8px !important;
	padding: 8px 36px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: var(--papan-ftr-color, #3a201c) !important;
	cursor: pointer !important;
	transition: all 0.22s ease !important;
	outline: none !important;
	box-shadow: none !important;
	min-width: 105px !important;
	height: 42px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	-webkit-tap-highlight-color: transparent !important;
}

.papan-site-footer button.papan-form-submit-btn:hover,
.papan-site-footer input[type="submit"].papan-form-submit-btn:hover {
	background: var(--papan-ftr-color, #3a201c) !important;
	color: #ffffff !important;
	border-color: var(--papan-ftr-color, #3a201c) !important;
}

.papan-site-footer button.papan-form-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Spinner */
.papan-btn-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: papanSpinner 0.8s linear infinite;
	margin-right: 8px;
}

.papan-form-submit-btn.is-loading .papan-btn-spinner {
	display: inline-block;
}

@keyframes papanSpinner {
	to {
		transform: rotate(360deg);
	}
}

/* Response message banner */
.papan-form-response {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.45;
	display: none;
}

.papan-form-response.is-success {
	background-color: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
	display: block;
}

.papan-form-response.is-error {
	background-color: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	display: block;
}

/* =========================================
   Info Wrapper (Address & Contact Columns)
   ========================================= */
.papan-footer-info-wrapper {
	display: flex;
	justify-content: space-between;
	flex: 0 0 52%;
	max-width: 580px;
	gap: 40px;
}

.papan-footer-col {
	flex: 1;
}

.papan-footer-contact-col {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.papan-footer-address-col {
	flex: 1;
}

/* Desktop Copyright: placed at bottom of contact column, aligned with submit button */
.papan-footer-copyright-desktop {
	margin-top: auto;
	padding-top: 24px;
	height: 42px;
	display: flex;
	align-items: center;
}

.papan-footer-copyright-desktop .papan-copyright-text {
	font-size: 14px;
	color: var(--papan-ftr-color, #3a201c);
	margin: 0;
	white-space: nowrap;
	line-height: 1.4;
	text-align: right;
}

.papan-desktop-only {
	display: block !important;
}

.papan-mobile-only {
	display: none !important;
}

.papan-col-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--papan-ftr-color, #3a201c);
	margin: 0 0 16px 0;
	line-height: 1.25;
}

.papan-sub-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--papan-ftr-color, #3a201c);
	margin: 12px 0 6px 0;
	line-height: 1.35;
}

.papan-sub-title:first-of-type {
	margin-top: 0;
}

.papan-address-content {
	font-size: 15px;
	line-height: 1.6;
	color: var(--papan-ftr-color, #3a201c);
	margin-bottom: 24px;
}

.papan-social-title {
	margin-top: 16px;
	margin-bottom: 12px;
}

.papan-social-icons {
	display: flex;
	align-items: center;
	gap: 14px;
}

.papan-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--papan-ftr-color, #3a201c);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.papan-social-link:hover {
	color: var(--papan-ftr-hover, #f28500);
	transform: translateY(-2px);
}

.papan-social-link svg {
	display: block;
	width: var(--papan-ftr-icon-size, 22px);
	height: var(--papan-ftr-icon-size, 22px);
}

.papan-social-custom-icon {
	display: block;
	width: var(--papan-ftr-icon-size, 22px);
	height: var(--papan-ftr-icon-size, 22px);
	max-width: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

.papan-social-link:hover .papan-social-custom-icon {
	opacity: 0.8;
}

.papan-phones-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 16px;
}

.papan-contact-link {
	color: var(--papan-ftr-color, #3a201c);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
	transition: color 0.2s ease;
	display: inline-block;
}

.papan-contact-link:hover {
	color: var(--papan-ftr-hover, #f28500);
}

.papan-email-wrapper {
	margin-top: 4px;
}

/* =========================================
   Bottom Copyright
   ========================================= */
.papan-footer-bottom {
	margin-top: 48px;
	display: flex;
	justify-content: flex-start;
	/* In RTL, flex-start aligns to the RIGHT */
	text-align: right;
}

.papan-copyright-text {
	font-size: 14px;
	color: var(--papan-ftr-color, #3a201c);
	margin: 0;
	line-height: 1.4;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 991px) {
	.papan-desktop-only {
		display: none !important;
	}

	.papan-mobile-only {
		display: block !important;
	}

	.papan-footer-inner {
		padding: 44px 30px 25px;
	}

	.papan-footer-mobile-heading {
		display: block;
	}

	.papan-footer-columns {
		display: flex;
		flex-direction: column;
		gap: 36px;
	}

	.papan-footer-form-col {
		order: 1;
		/* Form goes to TOP on mobile under heading */
		max-width: 100%;
		flex: 1 1 100%;
	}

	/* Two columns side-by-side on mobile matching screenshot */
	.papan-footer-info-wrapper {
		order: 2;
		/* Info columns go BELOW form on mobile */
		width: 100%;
		flex: 1 1 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		gap: 20px;
	}

	.papan-col-title {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.papan-address-content,
	.papan-contact-link,
	.papan-sub-title {
		font-size: 14px;
	}

	.papan-footer-bottom {
		margin-top: 36px;
		justify-content: center !important;
		text-align: center !important;
	}
}

@media (max-width: 480px) {
	.papan-footer-info-wrapper {
		gap: 14px;
	}

	.papan-social-icons {
		gap: 10px;
	}

	.papan-social-link svg,
	.papan-social-custom-icon {
		width: 20px;
		height: 20px;
	}
}