/* =========================================================================
   Symphony Theme — header-footer.css
   ========================================================================= */

.sp-header {
	position: relative;
	z-index: 1001;
}
.sp-header.is-stuck .sp-nav-bar {
	position: sticky;
	top: 0;
	box-shadow: 0 4px 16px rgba(45, 45, 70, 0.15);
}

.sp-header__top-bar {
	padding-block: 8px;
	font-size: var(--sp-size-small);
	background: var(--sp-color-white);
	border-bottom: 1px solid var(--sp-color-border);
}

.sp-nav-bar {
	background: var(--sp-color-primary);
	position: relative;
	z-index: 100;
}

.sp-header__row {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Logo card overlaps the yellow bar above and below it, matching the reference. */
.sp-branding-card {
	background: var(--sp-color-white);
	padding: 14px 20px;
	margin-block: -14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.sp-branding__logo {
	display: block;
	max-height: 64px;
}
.sp-branding__name {
	font-size: 22px;
	font-weight: var(--sp-font-weight-bold);
	color: var(--sp-color-text);
}
.sp-branding__tagline {
	font-size: var(--sp-size-small);
	color: var(--sp-color-text-muted);
}

.sp-primary-nav-wrap {
	flex: 1;
}

.sp-primary-nav {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
	flex-wrap: wrap;
}
.sp-primary-nav > li {
	position: relative;
}
.sp-primary-nav a {
	display: block;
	padding: 18px 0;
	font-weight: var(--sp-font-weight-bold);
	font-size: var(--sp-size-h4);
	color: var(--sp-color-primary-contrast);
}
.sp-primary-nav a:hover,
.sp-primary-nav a:focus-visible,
.sp-primary-nav .current-menu-item > a {
	color: var(--sp-color-accent);
}

.sp-primary-nav .has-submenu > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	margin-bottom: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.sp-primary-nav .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sp-primary-nav .sub-menu a {
	padding: 10px 20px;
	font-size: var(--sp-size-body);
}

.sp-submenu-toggle {
	display: none;
}

.sp-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.sp-mobile-menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	color: var(--sp-color-primary-contrast);
}

/* Desktop: dropdown submenus, hover/focus driven only. ---------------------- */
@media (min-width: 961px) {
	.sp-primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 240px;
		background: var(--sp-color-white);
		box-shadow: var(--sp-shadow-card);
		border-radius: var(--sp-radius-sm);
		padding: 8px 0;
		z-index: 10;
	}
	.sp-primary-nav li:hover > .sub-menu,
	.sp-primary-nav li:focus-within > .sub-menu {
		display: block;
	}
}

/* Mobile: off-canvas panel, click-driven submenus. -------------------------- */
@media (max-width: 960px) {
	.sp-mobile-menu-toggle {
		display: inline-flex;
	}

	.sp-primary-nav-wrap {
		position: fixed;
		top: 0;
		bottom: 0;
		width: 320px;
		max-width: 85vw;
		background: var(--sp-color-white);
		box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
		z-index: 1000;
		overflow-y: auto;
		padding: 88px 24px 40px;
		transition: transform 0.3s ease;
	}
	.sp-primary-nav-wrap.sp-offcanvas--right {
		right: 0;
		transform: translateX(100%);
	}
	.sp-primary-nav-wrap.sp-offcanvas--left {
		left: 0;
		transform: translateX(-100%);
	}
	.sp-primary-nav-wrap.is-open {
		transform: translateX(0);
	}

	.sp-primary-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}
	.sp-primary-nav > li {
		width: 100%;
	}
	.sp-primary-nav a {
		padding: 14px 0;
	}
	.sp-primary-nav .sub-menu {
		padding-left: 16px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.sp-primary-nav .sub-menu.is-expanded {
		display: block;
		max-height: 600px;
	}

	.sp-submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 4px;
		right: 0;
		width: 40px;
		height: 40px;
		background: transparent;
		border: 0;
		color: var(--sp-color-primary-contrast);
	}
	.sp-submenu-toggle::after {
		content: '';
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}
	.sp-submenu-toggle[aria-expanded="true"]::after {
		transform: rotate(-135deg);
	}
	.sp-primary-nav .has-submenu > a::after {
		display: none; /* the toggle button carries the indicator on mobile */
	}
}

.sp-offcanvas-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999;
}
.sp-offcanvas-backdrop.is-visible {
	display: block;
}

/* Footer ------------------------------------------------------------- */

.sp-footer {
	background: var(--sp-color-primary);
	color: var(--sp-color-primary-contrast);
	padding-block: 64px 24px;
}

.sp-footer__top {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 48px;
	align-items: center;
}

.sp-footer__contact address {
	font-style: normal;
	line-height: 1.7;
}
.sp-footer__contact strong {
	display: block;
	margin-bottom: 6px;
}

.sp-footer__cta {
	position: relative;
	width: 140px;
	height: 140px;
	border: 2px dashed var(--sp-color-accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: var(--sp-font-weight-bold);
	color: var(--sp-color-accent);
	font-size: var(--sp-size-small);
	line-height: 1.3;
	flex-shrink: 0;
}
.sp-footer__cta--image {
	width: auto;
	height: auto;
	border: 0;
	transition: transform 0.2s ease;
}
.sp-footer__cta--image img {
	width: 150px;
	height: auto;
}
.sp-footer__cta--image:hover {
	transform: scale(1.05) rotate(-3deg);
}

.sp-footer__social {
	display: flex;
	gap: 12px;
	margin-block: 32px;
}
.sp-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sp-color-primary-contrast);
	color: var(--sp-color-primary);
}

.sp-footer__legal {
	border-top: 1px solid rgba(45, 45, 70, 0.2);
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: var(--sp-size-body);
	justify-content: center;
}
.sp-footer__legal a {
	color: var(--sp-color-primary-contrast);
}

@media (max-width: 782px) {
	.sp-footer__top {
		grid-template-columns: 1fr;
		text-align: left;
	}
}

.sp-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sp-color-accent);
	color: var(--sp-color-white);
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	box-shadow: var(--sp-shadow-card);
	z-index: 200;
}
.sp-back-to-top.is-visible {
	display: flex;
}
