/**
 * Footer — professional layout
 */

.ms-footer {
	position: relative;
	margin-top: 0;
	background: var(--ms-color-navy-deep);
	color: rgba(255, 255, 255, 0.82);
	overflow: hidden;
}

.ms-footer::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(234, 88, 12, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 40% at 0% 100%, rgba(61, 90, 140, 0.2), transparent 50%);
	pointer-events: none;
}

.ms-footer > * {
	position: relative;
	z-index: 1;
}

.ms-footer__accent {
	height: 4px;
	background: var(--ms-color-primary);
}

/* ── Brand bar (logo + address + phone) ── */
.ms-footer__topbar {
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-footer__brandbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--ms-radius-lg);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
}

.ms-footer__brandbar-logo {
	flex-shrink: 0;
}

.ms-logo--footer .ms-logo__text {
	color: #fff;
}

.ms-logo--footer .ms-logo__mark {
	background: var(--ms-color-primary);
	box-shadow: none;
}

.ms-logo__img {
	display: block;
	height: 48px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

.ms-footer__brandbar-divider {
	width: 1px;
	height: 52px;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}

.ms-footer__brandbar-address {
	flex: 1;
	min-width: min(100%, 260px);
}

.ms-footer__brandbar-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #FDBA74;
	margin-bottom: 0.35rem;
}

.ms-footer__brandbar-address p {
	margin: 0;
	font-size: var(--ms-text-sm);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.92);
	max-width: 38rem;
}

.ms-footer__brandbar-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	margin-right: auto;
	padding: 0.75rem 1.1rem;
	border-radius: var(--ms-radius-md);
	background: var(--ms-color-primary);
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.ms-footer__brandbar-cta:hover {
	background: var(--ms-color-primary-hover);
	color: #fff;
	transform: translateY(-1px);
}

.ms-footer__brandbar-cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
}

.ms-footer__brandbar-cta-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	text-align: right;
}

.ms-footer__brandbar-cta-text small {
	font-size: 11px;
	opacity: 0.88;
	font-weight: 600;
}

.ms-footer__brandbar-cta-text strong {
	font-size: var(--ms-text-base);
	font-weight: 800;
	letter-spacing: 0.01em;
}

/* ── Main panels ── */
.ms-footer__body {
	padding: 2.5rem 0 2rem;
}

.ms-footer__panels {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ms-footer__panels {
		grid-template-columns: 1.2fr 0.9fr 1fr;
	}
}

.ms-footer__panel {
	padding: 1.35rem 1.4rem;
	border-radius: var(--ms-radius-lg);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-footer__panel--contact {
	background: linear-gradient(145deg, rgba(234, 88, 12, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
	border-color: rgba(234, 88, 12, 0.22);
}

.ms-footer__panel-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #FDBA74;
	margin-bottom: 0.25rem;
}

.ms-footer__panel-title {
	margin: 0 0 1rem;
	font-size: var(--ms-text-lg);
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}

.ms-footer__about-text {
	margin: 0;
	font-size: var(--ms-text-sm);
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.68);
}

.ms-footer__socials {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-footer__socials-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 0.6rem;
}

.ms-footer__socials-row {
	display: flex;
	gap: 0.5rem;
}

.ms-footer__social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ms-footer__social-btn:hover {
	border-color: var(--ms-color-primary);
	background: rgba(234, 88, 12, 0.2);
	color: #FDBA74;
}

/* Nav links */
.ms-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ms-footer__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--ms-text-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.ms-footer__nav a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.ms-footer__nav a svg {
	flex-shrink: 0;
	opacity: 0.45;
	color: #FDBA74;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ms-footer__nav a:hover svg {
	opacity: 1;
	transform: translateX(-3px);
}

/* Contact cards */
.ms-footer__contact-cards {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.ms-footer__contact-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 0.85rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ms-footer__contact-card:hover {
	border-color: rgba(234, 88, 12, 0.45);
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
}

.ms-footer__contact-card-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.ms-footer__contact-card-icon--phone {
	background: rgba(234, 88, 12, 0.22);
	color: #FDBA74;
}

.ms-footer__contact-card-icon--email {
	background: rgba(61, 90, 140, 0.35);
	color: #93c5fd;
}

.ms-footer__contact-card-icon--hours {
	background: rgba(22, 163, 74, 0.2);
	color: #86efac;
}

.ms-footer__contact-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.ms-footer__contact-card-body small {
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.45);
}

.ms-footer__contact-card-body strong {
	font-size: var(--ms-text-sm);
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
}

/* ── Trust strip (white band) ── */
.ms-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-top: 1.25rem;
	padding: 1.35rem 1.5rem;
	border-radius: var(--ms-radius-lg);
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.ms-footer__trust-head h3 {
	margin: 0 0 0.25rem;
	font-size: var(--ms-text-base);
	font-weight: 800;
	color: var(--ms-color-navy);
}

.ms-footer__trust-head p {
	margin: 0;
	font-size: var(--ms-text-sm);
	color: var(--ms-color-text-muted);
}

.ms-footer__trust-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-right: auto;
}

.ms-footer__trust-grid--single {
	margin-inline-start: 0;
	margin-inline-end: auto;
}

.ms-footer__trust--single {
	direction: ltr;
	justify-content: space-between;
	align-items: center;
}

.ms-footer__trust--single .ms-footer__trust-head {
	direction: rtl;
	text-align: right;
}

.ms-footer__trust-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	padding: 0.5rem;
	border-radius: 14px;
	background: var(--ms-color-surface-alt);
	border: 1px solid var(--ms-color-border);
}

.ms-footer__trust-slot.is-filled {
	background: #fff;
	box-shadow: var(--ms-shadow-sm);
}

.ms-footer__trust-slot img {
	display: block;
	max-width: 80px;
	max-height: 80px;
	object-fit: contain;
}

.ms-footer__trust-embed {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ms-footer__trust-embed img {
	max-width: 80px;
	max-height: 80px;
}

.ms-footer__trust-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	text-align: center;
	color: var(--ms-color-text-muted);
}

.ms-footer__trust-placeholder svg {
	opacity: 0.35;
}

.ms-footer__trust-placeholder span {
	font-size: 11px;
	font-weight: 700;
}

.ms-footer__trust-slot:not(.is-filled) {
	border-style: dashed;
	border-color: rgba(27, 43, 75, 0.18);
	background: #fafbfc;
}

/* ── Bottom bar ── */
.ms-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.2);
}

.ms-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding: 1rem 0;
}

.ms-footer__copy {
	margin: 0;
	font-size: var(--ms-text-sm);
	color: rgba(255, 255, 255, 0.42);
}

.ms-footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: var(--ms-text-sm);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ms-footer__top-link:hover {
	color: #FDBA74;
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.ms-footer__brandbar {
		flex-direction: column;
		align-items: stretch;
		padding: 1.1rem;
	}

	.ms-footer__brandbar-divider {
		width: 100%;
		height: 1px;
	}

	.ms-footer__brandbar-cta {
		margin-right: 0;
		width: 100%;
		justify-content: flex-start;
	}

	.ms-footer__trust {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.ms-footer__trust--single {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		direction: ltr;
	}

	.ms-footer__trust--single .ms-footer__trust-head {
		direction: rtl;
		text-align: right;
	}

	.ms-footer__trust-grid--single {
		justify-content: flex-start;
		margin-inline-start: 0;
		margin-inline-end: auto;
	}

	.ms-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}
