/**
 * NovaBP Footer — site footer rebuilt as a single widget
 *
 * Spec source: the live Elementor Theme Builder footer template (post 15,
 * "Footer", condition include/general) as it renders on localhost:10033. That
 * template states every value explicitly rather than through kit globals, and
 * builds most of the contact card out of `html` widgets holding inline styles;
 * those inline styles are what the rules below reproduce.
 *
 * Layout is three columns at 130px gaps — 320px brand, elastic link columns,
 * 320px contact card — collapsing to one column at 1024px.
 */

.nova-footer {
	/* Palette */
	--nova-footer-bg-from: #000d31;
	--nova-footer-bg-to: #00081d;
	--nova-footer-card-bg: #020e2f;
	--nova-footer-text: #ffffff;
	--nova-footer-muted: rgb(255 255 255 / 0.5);
	--nova-footer-muted-strong: rgb(255 255 255 / 0.8);
	--nova-footer-hours: #ffffff;
	--nova-footer-hairline: rgb(255 255 255 / 0.1);
	--nova-footer-tint: rgb(255 255 255 / 0.1);
	--nova-footer-link-hover: #0dab04;
	--nova-footer-badge-bg: #f0f9f3;
	--nova-footer-badge-color: #2ebd62;

	/* Type — the live template names Manrope everywhere and Inter on the
	   contact card's smaller lines. */
	--nova-footer-font: "Manrope", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
	--nova-footer-font-alt: "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;

	/* Rhythm */
	--nova-footer-max: 1280px;
	--nova-footer-column-gap: 130px;
	--nova-footer-side-width: 320px;

	box-sizing: border-box;
	background: linear-gradient(180deg, var(--nova-footer-bg-from) 0%, var(--nova-footer-bg-to) 84%);
	color: var(--nova-footer-text);
	font-family: var(--nova-footer-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

.nova-footer p {
	margin: 0;
}

.nova-footer__main {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nova-footer-column-gap);

	/*
	 * The gutter is padding rather than "whatever the viewport leaves outside a
	 * 1280px box", so the footer keeps the same edge distance as the sections
	 * above it at every width instead of only past 1440. Capping the border box
	 * at 1280 + both gutters leaves the content column exactly --nova-footer-max
	 * wide, which is what a bare max-width was producing on a 1440 screen — the
	 * wide-viewport result is unchanged; the 1281–1440 range, where the footer
	 * used to run edge to edge while every section still had a gutter, is what
	 * this fixes.
	 */
	max-width: calc(var(--nova-footer-max) + 2 * var(--nova-gutter-x));
	margin: 0 auto;
	padding: var(--nova-gutter-y) var(--nova-gutter-x);
}

/* ----------------------------------------------------------------------
 * Brand column
 * -------------------------------------------------------------------- */

.nova-footer__brand {
	display: flex;
	flex: 0 0 var(--nova-footer-side-width);
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: var(--nova-footer-side-width);
	max-width: var(--nova-footer-side-width);
}

.nova-footer__logo {
	display: inline-flex;
	line-height: 0;
}

.nova-footer__logo img {
	display: block;
	width: auto;
	height: 71px;
	object-fit: contain;
}

.nova-footer__tagline {
	color: var(--nova-footer-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.nova-footer__social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.nova-footer a.nova-footer__social-link {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 100px;
	background-color: var(--nova-footer-tint);
	color: var(--nova-footer-text);
	text-decoration: none;
	transition: background-color 0.3s;
}

.nova-footer a.nova-footer__social-link:hover,
.nova-footer a.nova-footer__social-link:focus {
	background-color: var(--nova-footer-link-hover);
	color: var(--nova-footer-text);
}

.nova-footer a.nova-footer__social-link svg {
	display: block;
	width: 14px;
	height: 14px;
}

/* ----------------------------------------------------------------------
 * Link columns
 * -------------------------------------------------------------------- */

/*
 * The live template's link containers are Elementor `.e-con` children, which
 * default to `width: 100%` — so the block fills the space between the two fixed
 * 320px columns and the two groups split it evenly. Content-width columns would
 * sit ~70px left of where they render today.
 */
.nova-footer__links {
	display: flex;
	flex: 1 1 auto;
	align-items: flex-start;
	gap: 80px;
	min-width: 0;
}

.nova-footer__link-group {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	min-width: 0;
}

.nova-footer__link-title {
	display: block;
	color: var(--nova-footer-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.nova-footer__menu,
.nova-footer__menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nova-footer .nova-footer__menu a {
	display: block;
	padding: 6px 0;
	color: var(--nova-footer-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.3s;
}

.nova-footer .nova-footer__menu a:hover,
.nova-footer .nova-footer__menu a:focus,
.nova-footer .nova-footer__menu .current-menu-item > a,
.nova-footer .nova-footer__menu .current_page_item > a {
	color: var(--nova-footer-link-hover);
}

/* Submenu items sit in the same flat list; the live footer has no dropdowns. */
.nova-footer .nova-footer__menu .sub-menu a {
	padding-left: 12px;
}

/* ----------------------------------------------------------------------
 * Contact card
 * -------------------------------------------------------------------- */

.nova-footer__card {
	display: flex;
	flex: 0 0 var(--nova-footer-side-width);
	flex-direction: column;
	gap: 16px;
	width: var(--nova-footer-side-width);
	max-width: var(--nova-footer-side-width);
	padding: 20px 16px 16px;
	border: 1px solid var(--nova-footer-hairline);
	border-radius: 20px;
	background-color: var(--nova-footer-card-bg);
}

.nova-footer__card-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.nova-footer__card-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.nova-footer__avatars {
	display: flex;
	position: relative;
	align-items: center;
}

.nova-footer__avatars img {
	width: 16px;
	height: 16px;
	border: 1px solid var(--nova-footer-text);
	border-radius: 50%;
	object-fit: cover;
}

.nova-footer__avatars img:not(:last-child) {
	margin-right: -4px;
}

.nova-footer__card-label {
	color: var(--nova-footer-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

.nova-footer__card-note {
	color: var(--nova-footer-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
}

.nova-footer__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nova-footer a.nova-footer__row,
.nova-footer .nova-footer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background-color: var(--nova-footer-tint);
	color: var(--nova-footer-text);
	text-decoration: none;
}

.nova-footer__row-main {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.nova-footer__row-icon {
	display: inline-flex;
	flex: 0 0 16px;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: var(--nova-footer-text);
}

.nova-footer__row-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.nova-footer__row-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nova-footer__row-label {
	color: var(--nova-footer-text);
	font-family: var(--nova-footer-font-alt);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}

/*
 * The phone row is the odd one out in the live template: Manrope 14/1.3 while
 * the email and address rows use Inter 12/1.5. Kept as a modifier rather than
 * normalised, so the rebuild matches what ships today.
 */
.nova-footer__row-label--lead {
	font-family: var(--nova-footer-font);
	font-size: 14px;
	line-height: 1.3;
}

/*
 * Safari auto-detected phone number links:
 * WebKit on iOS/macOS detects numbers matching phone patterns and wraps them
 * in <a href="tel:...">, applying system link colours and reducing opacity.
 * This ensures phone numbers stay crisp, white and properly weighted.
 */
.nova-footer a[href^="tel"],
.nova-footer__row a[href^="tel"],
.nova-footer__row-label a,
.nova-footer__row-label a[href^="tel"] {
	color: inherit !important;
	text-decoration: none !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	-webkit-text-fill-color: currentcolor;
}

.nova-footer__row-sublabel {
	color: var(--nova-footer-muted-strong);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.3;
}

.nova-footer__badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 100px;
	background: var(--nova-footer-badge-bg);
	color: var(--nova-footer-badge-color);
	font-family: var(--nova-footer-font-alt);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
}

.nova-footer__badge::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: currentcolor;
}

/*
 * The opening hours are the card's last row rather than a caption under it, so
 * they take the row shell and only restate their own colour.
 */
.nova-footer__row--hours .nova-footer__row-label {
	color: var(--nova-footer-hours);
}

/* ----------------------------------------------------------------------
 * Divider + bottom bar
 * -------------------------------------------------------------------- */

/*
 * Figma 2045:2285 draws this rule (`Rectangle 7`) as a direct child of the
 * footer root, which carries no padding — so it bleeds the full footer width
 * rather than stopping at the 1280px measure the columns and bottom bar use.
 * Don't cap it with `--nova-footer-max`.
 *
 * The selector is doubled up deliberately. Elementor's `custom-frontend.css`
 * ships `.elementor hr { background-color: transparent }` at (0,1,1), and the
 * widget always renders inside `.elementor` (theme location wrapper), so a bare
 * `.nova-footer__divider` at (0,1,0) loses and the rule paints nothing at all.
 * `.nova-footer .nova-footer__divider` is (0,2,0) and wins outright — don't
 * flatten it back to one class.
 */
.nova-footer .nova-footer__divider {
	height: 1px;
	margin: 0;
	border: 0;
	background-color: var(--nova-footer-hairline);
}

.nova-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	/* Same gutter treatment as __main above. The block axis stays 24px: this is
	   the legal strip under the rule, not a section of its own. */
	max-width: calc(var(--nova-footer-max) + 2 * var(--nova-gutter-x));
	margin: 0 auto;
	padding: 24px var(--nova-gutter-x);
}

.nova-footer__copyright {
	flex: 1 1 320px;
	color: var(--nova-footer-muted-strong);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

.nova-footer__legal {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

.nova-footer .nova-footer__legal a {
	color: var(--nova-footer-text);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s;
}

.nova-footer .nova-footer__legal a:hover,
.nova-footer .nova-footer__legal a:focus {
	color: var(--nova-footer-link-hover);
}

/* ----------------------------------------------------------------------
 * Compact desktop (1025px – 1200px)
 * Tighten column gaps and link gaps so text stays on one line.
 * -------------------------------------------------------------------- */

@media (min-width: 1025px) and (max-width: 1200px) {
	.nova-footer {
		--nova-footer-column-gap: 36px;
		--nova-footer-side-width: 290px;
	}

	.nova-footer__main {
		gap: 44px;
	}
	
	.nova-footer__brand {
		width: 270px;
		max-width: 270px;
		flex: 0 0 270px;
	}
}

/* ----------------------------------------------------------------------
 * Tablet and below — the live template stacks the three columns at 1024px
 * -------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.nova-footer__main {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: flex-start;
		gap: 40px 32px;
	}

	.nova-footer__brand {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.nova-footer__links {
		flex: 0 0 auto;
		min-width: 0;
		justify-content: flex-start;
		gap: 40px;
	}

	.nova-footer__link-group {
		flex: 0 0 auto;
		min-width: 0;
	}

	.nova-footer__card {
		flex: 1 1 340px;
		width: auto;
		max-width: 440px;
	}

	.nova-footer__bottom {
		padding-block: 20px;
	}
}

/* ----------------------------------------------------------------------
 * Mobile — the link columns centre themselves
 * -------------------------------------------------------------------- */

@media (max-width: 767px) {
	.nova-footer__main {
		flex-direction: column;
		gap: 30px;
	}

	.nova-footer__brand,
	.nova-footer__card {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}

	.nova-footer__links {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 30px;
		width: 100%;
	}

	.nova-footer__link-group {
		flex: 1 1 100%;
		align-items: center;
	}

	.nova-footer__link-title,
	.nova-footer__menu {
		text-align: center;
	}

	.nova-footer__bottom {
		padding-block: 16px;
	}
}
