/**
 * Shared chrome — navbar + footer + CTA button + mobile menu.
 * Loaded on all Harmonija duše website templates.
 */

.hd-navbar {
	position: relative;
	/* Above hero content — otherwise mobile menu paints under the title (TT25 / stacking). */
	z-index: 100;
	width: min(1200px, calc(100% - 48px));
	height: 82px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 52px;
	box-sizing: border-box;
	font-family: var(--font-body, "Manrope", system-ui, sans-serif);
}

.hd-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hd-ink, #1f1e1d);
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
}

.hd-brand img {
	width: 33px;
	height: 32px;
}

.hd-navbar__links {
	display: flex;
	align-items: center;
	gap: 32px;
}

.hd-navbar__links a {
	color: #524f4c;
	font-size: 16px;
	text-decoration: none;
}

.hd-navbar__links a[aria-current="page"] {
	font-weight: 600;
}

.hd-navbar > .hd-button {
	margin-left: auto;
}

.hd-menu-toggle,
.hd-mobile-menu {
	display: none;
}

.hd-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 14px 32px;
	border: 1px solid var(--hd-accent, #84434e);
	border-radius: 4px;
	background: var(--hd-accent, #84434e);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
	font-family: var(--font-body, "Manrope", system-ui, sans-serif);
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

/* Figma CTA Button 39:2218 — Default #84434E → Hover #B06B76 */
.hd-button:hover,
.hd-button:focus-visible {
	background: var(--hd-accent-hover, #b06b76);
	color: #fff;
}

.hd-button--ghost {
	background: rgb(132 67 78 / 15%);
	color: var(--hd-accent, #84434e);
}

/* Figma Navbar CTA 39:2238 — tint → solid accent + white text */
.hd-button--ghost:hover,
.hd-button--ghost:focus-visible {
	background: var(--hd-accent, #84434e);
	color: #fff;
}

.hd-footer {
	min-height: 480px;
	background: var(--hd-sand, #e6ddc8);
	font-family: var(--font-body, "Manrope", system-ui, sans-serif);
	color: var(--hd-ink, #1f1e1d);
}

.hd-footer__inner {
	width: min(1200px, calc(100% - 48px));
	min-height: 480px;
	margin-inline: auto;
	display: grid;
	/* Figma 39:2143: brand + Edukacije + Proizvodi + Ostalo */
	grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(0, 180px));
	gap: 24px 48px;
	align-items: start;
	padding-block: 120px;
	box-sizing: border-box;
}

.hd-footer__brand-column {
	display: flex;
	min-height: 240px;
	flex-direction: column;
}

.hd-footer__brand {
	width: max-content;
}

.hd-footer__socials {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}

.hd-footer__socials a {
	display: inline-flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
}

.hd-footer__socials a:nth-child(3) {
	width: 30px;
}

.hd-footer__socials img {
	display: block;
	max-width: 100%;
	max-height: 24px;
}

.hd-footer__legal {
	margin-top: auto;
	color: var(--hd-copy, #5c5956);
}

.hd-footer__legal p {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.4;
}

.hd-footer__column {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
}

.hd-footer__column h2 {
	margin: 0 0 4px;
	color: var(--hd-ink, #1f1e1d);
	font-family: var(--font-body, "Manrope", system-ui, sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.hd-footer__column h2 a {
	color: inherit;
	text-decoration: none;
}

.hd-footer__column > a {
	color: var(--hd-copy, #5c5956);
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
}

.hd-footer__column .is-underlined {
	text-decoration: underline;
	text-underline-position: from-font;
}

@media (max-width: 900px) {
	.hd-navbar {
		gap: 20px;
	}

	.hd-navbar__links {
		display: none;
	}

	.hd-navbar > .hd-button {
		display: none;
	}

	.hd-menu-toggle {
		display: flex;
		width: 48px;
		height: 48px;
		margin-left: auto;
		padding: 12px;
		border: 1px solid var(--hd-accent, #84434e);
		border-radius: 4px;
		background: rgb(132 67 78 / 15%);
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 5px;
		cursor: pointer;
	}

	.hd-menu-toggle span {
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: var(--hd-accent, #84434e);
		transition: transform 180ms ease, opacity 180ms ease;
	}

	.hd-menu-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.hd-menu-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.hd-menu-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.hd-mobile-menu {
		position: absolute;
		top: 70px;
		right: 0;
		left: 0;
		z-index: 110;
		padding: 24px;
		border: 1px solid rgb(132 67 78 / 25%);
		border-radius: 12px;
		background: #f3ede0;
		box-shadow: 0 18px 40px rgb(31 30 29 / 14%);
		flex-direction: column;
	}

	.hd-mobile-menu:not([hidden]) {
		display: flex;
	}

	.hd-mobile-menu > a:not(.hd-button) {
		padding: 10px 4px;
		color: #524f4c;
		font-size: 18px;
		text-decoration: none;
	}

	.hd-mobile-menu .hd-button {
		margin-top: 12px;
	}

	.hd-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 48px 32px;
		padding-block: 72px;
	}

	.hd-footer__brand-column {
		grid-column: 1 / -1;
		min-height: 200px;
	}
}

@media (max-width: 560px) {
	.hd-navbar {
		width: min(100% - 32px, 1200px);
	}

	.hd-footer__inner {
		width: calc(100% - 32px);
		grid-template-columns: 1fr;
		gap: 40px;
	}
}
