/* Inline-SVG icons replace the icon font throughout; they size from the
   surrounding font-size. */
.sb-lf-glyph {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
	flex: none;
}

/* Site Builder — Law Firm Footer widget styles.
   Deep navy ground with slightly lighter panels separating the columns, gold
   for headings/icons/dividers/interaction, white for primary text and muted
   grey for secondary. Every colour is a custom property so the Style tab can
   drive it. */

.sb-lf-footer {
	--sb-ft-bg: #0a1526;
	--sb-ft-panel: #0e1b30;
	--sb-ft-accent: #d9b45e;
	--sb-ft-text: #eef1f6;
	--sb-ft-muted: #9fadc2;
	--sb-ft-border: rgba(217, 180, 94, 0.22);
	--sb-ft-cta-from: #c89b35;
	--sb-ft-cta-to: #d4aa45;

	background: var(--sb-ft-bg);
	color: var(--sb-ft-text);
	font-family: var(--sb-font-sans);
	font-size: 14px;
	line-height: 1.6;
}

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

.sb-lf-footer-main {
	display: grid;
	grid-template-columns: 1.35fr 0.85fr 1.15fr 1.05fr;
}

/* Alternating panels give the columns separation without adding rules. */
.sb-lf-footer-col {
	padding: 44px 36px 40px;
	background: var(--sb-ft-bg);
}

.sb-lf-footer-col-links,
.sb-lf-footer-col-contact {
	background: var(--sb-ft-panel);
}

.sb-lf-footer-brand {
	display: block;
	text-decoration: none;
}

.sb-lf-footer-brand-name {
	display: block;
	font-family: var(--sb-font-serif);
	font-size: 25px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sb-ft-text);
}

.sb-lf-footer-brand-tagline {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--sb-ft-accent);
}

/* Full width of the wording above, not a short decorative dash. */
.sb-lf-footer-brand-rule {
	display: block;
	width: 100%;
	max-width: 320px;
	height: 1px;
	margin: 18px 0 24px;
	background: var(--sb-ft-accent);
	opacity: 0.75;
}

.sb-lf-footer-chambers-logo {
	display: block;
	width: 112px;
	max-width: 100%;
	height: auto;
	margin-bottom: 22px;
}

.sb-lf-footer-chambers-logo-link {
	display: inline-block;
	transition: opacity 0.25s ease;
}

.sb-lf-footer-chambers-logo-link:hover {
	opacity: 0.85;
}

.sb-lf-footer-brand-desc p {
	margin: 0 0 14px;
	color: var(--sb-ft-muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.sb-lf-footer-brand-desc p:last-child {
	margin-bottom: 0;
}

.sb-lf-footer-col-heading {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sb-ft-accent);
}

.sb-lf-footer-col-heading::after {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin-top: 10px;
	background: var(--sb-ft-accent);
}

.sb-lf-footer-col-heading {
	margin-bottom: 24px;
}

/* --- Quick links -------------------------------------------------------- */
.sb-lf-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sb-lf-footer-links li + li {
	margin-top: 14px;
}

.sb-lf-footer-links a {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	color: var(--sb-ft-text);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.25s ease;
}

.sb-lf-footer-chev {
	display: inline-flex;
	color: var(--sb-ft-accent);
	font-size: 11px;
	transition: transform 0.25s ease;
}

.sb-lf-footer-link-text {
	position: relative;
}

/* Underline draws in from the left rather than simply appearing. */
.sb-lf-footer-link-text::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: var(--sb-ft-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.sb-lf-footer-links a:hover,
.sb-lf-footer-links a:focus-visible {
	color: var(--sb-ft-accent);
}

.sb-lf-footer-links a:hover .sb-lf-footer-chev,
.sb-lf-footer-links a:focus-visible .sb-lf-footer-chev {
	transform: translateX(4px);
}

.sb-lf-footer-links a:hover .sb-lf-footer-link-text::after,
.sb-lf-footer-links a:focus-visible .sb-lf-footer-link-text::after {
	transform: scaleX(1);
}

/* --- Quick contact form ------------------------------------------------- */
.sb-lf-footer-field {
	margin-bottom: 16px;
}

.sb-lf-footer-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sb-ft-text);
}

.sb-lf-footer-form input,
.sb-lf-footer-form textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--sb-ft-text);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 5px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.sb-lf-footer-form input::placeholder,
.sb-lf-footer-form textarea::placeholder {
	color: #7f8da2;
	opacity: 1;
}

.sb-lf-footer-form input:focus,
.sb-lf-footer-form textarea:focus {
	outline: none;
	border-color: var(--sb-ft-accent);
	background-color: rgba(255, 255, 255, 0.07);
	box-shadow: 0 0 0 3px rgba(217, 180, 94, 0.15);
}

.sb-lf-footer-form textarea {
	resize: vertical;
	min-height: 104px;
}

.sb-lf-footer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: 5px;
	background: linear-gradient(135deg, var(--sb-ft-cta-from), var(--sb-ft-cta-to));
	color: #fff;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.sb-lf-footer-cta .sb-lf-glyph {
	transition: transform 0.25s ease;
}

.sb-lf-footer-cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 10px 22px rgba(200, 155, 53, 0.32);
}

.sb-lf-footer-cta:hover .sb-lf-glyph {
	transform: translateX(4px);
}

.sb-lf-footer-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--sb-ft-muted);
	font-size: 11.5px;
	line-height: 1.5;
}

.sb-lf-footer-privacy .sb-lf-glyph {
	margin-top: 2px;
	color: var(--sb-ft-accent);
	font-size: 12px;
}

.sb-lf-footer .sb-lf-form-response {
	margin-top: 10px;
	font-size: 13px;
}

.sb-lf-footer .sb-lf-form-response.is-success {
	color: #7fd6a4;
}

.sb-lf-footer .sb-lf-form-response.is-error {
	color: #ef9a93;
}

/* --- Contact details ---------------------------------------------------- */
.sb-lf-footer-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.sb-lf-footer-row-icon {
	flex: none;
	width: 20px;
	color: var(--sb-ft-accent);
	font-size: 14px;
	text-align: center;
	line-height: 1.6;
}

.sb-lf-footer-row-body {
	color: var(--sb-ft-text);
	font-size: 13.5px;
	line-height: 1.6;
}

.sb-lf-footer-row-body a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.sb-lf-footer-row-body a:hover,
.sb-lf-footer-row-body a:focus-visible {
	color: var(--sb-ft-accent);
}

.sb-lf-footer-divider {
	display: block;
	height: 1px;
	margin: 22px 0;
	background: var(--sb-ft-border);
}

.sb-lf-footer-enquiry + .sb-lf-footer-enquiry {
	margin-top: 18px;
}

.sb-lf-footer-enquiry-label {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sb-ft-accent);
}

/* WhatsApp beside the Farsi number is a link in its own right — bigger tap
   target than a decorative icon, and it shifts to WhatsApp green on hover so
   it is instantly recognisable without putting green in the resting design. */
.sb-lf-footer-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-top: -3px;
	border-radius: 50%;
	color: var(--sb-ft-accent);
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sb-lf-footer-wa .sb-lf-glyph {
	width: 19px;
	height: 19px;
}

.sb-lf-footer-wa:hover,
.sb-lf-footer-wa:focus-visible {
	color: #25d366;
	transform: scale(1.12);
	box-shadow: 0 0 14px -2px rgba(37, 211, 102, 0.5);
}

/* --- Bottom bar --------------------------------------------------------- */
.sb-lf-footer-bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	padding: 22px 36px;
	border-top: 1px solid var(--sb-ft-border);
	background: var(--sb-ft-bg);
}

.sb-lf-footer-copy {
	color: var(--sb-ft-muted);
	font-size: 12.5px;
}

.sb-lf-footer-social {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.sb-lf-footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--sb-ft-border);
	color: var(--sb-ft-accent);
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.sb-lf-footer-social-icon .sb-lf-glyph {
	width: 17px;
	height: 17px;
}

.sb-lf-footer-social-icon:hover,
.sb-lf-footer-social-icon:focus-visible {
	transform: translateY(-3px) scale(1.07);
	border-color: var(--sb-ft-accent);
	box-shadow: 0 0 16px -3px rgba(217, 180, 94, 0.55);
}

.sb-lf-footer-social-wa:hover,
.sb-lf-footer-social-wa:focus-visible {
	color: #25d366;
	border-color: rgba(37, 211, 102, 0.7);
	box-shadow: 0 0 16px -3px rgba(37, 211, 102, 0.55);
}

.sb-lf-footer-legal {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	color: var(--sb-ft-muted);
	font-size: 12.5px;
}

.sb-lf-footer-legal a {
	color: var(--sb-ft-muted);
	text-decoration: none;
	transition: color 0.25s ease;
}

.sb-lf-footer-legal a:hover,
.sb-lf-footer-legal a:focus-visible {
	color: var(--sb-ft-accent);
}

.sb-lf-footer-legal-sep {
	opacity: 0.45;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
	.sb-lf-footer-main {
		grid-template-columns: 1fr 1fr;
	}

	.sb-lf-footer-col-quick {
		background: var(--sb-ft-panel);
	}

	.sb-lf-footer-col-contact {
		background: var(--sb-ft-bg);
	}
}

@media (max-width: 782px) {
	/* Stacked order: identity, quick contact, contact details, quick links.
	   Converting a visitor who has read this far matters more than giving
	   them navigation, so the enquiry form sits above the link list. */
	.sb-lf-footer-main {
		grid-template-columns: 1fr;
	}

	.sb-lf-footer-col-brand { order: 1; }
	.sb-lf-footer-col-quick { order: 2; background: var(--sb-ft-panel); }
	.sb-lf-footer-col-contact { order: 3; background: var(--sb-ft-bg); }
	.sb-lf-footer-col-links { order: 4; background: var(--sb-ft-panel); }

	.sb-lf-footer-col {
		padding: 32px 22px;
	}

	.sb-lf-footer-bottom {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding: 24px 22px;
	}

	.sb-lf-footer-legal {
		justify-content: center;
		flex-wrap: wrap;
	}

	/* Comfortable thumb targets. */
	.sb-lf-footer-social-icon {
		width: 46px;
		height: 46px;
	}

	.sb-lf-footer-social-icon .sb-lf-glyph {
		width: 20px;
		height: 20px;
	}

	.sb-lf-footer-wa {
		width: 34px;
		height: 34px;
	}

	.sb-lf-footer-wa .sb-lf-glyph {
		width: 22px;
		height: 22px;
	}

	.sb-lf-footer-form input,
	.sb-lf-footer-form textarea {
		font-size: 16px;
		padding: 14px;
	}
}
