/*
 * Kodbyggd footer - se footer.php (root) + inc/site-footer.php.
 *
 * Mobil-först: allt staplas i en kolumn som grundläge (logga+kontakt,
 * sedan de tre länk-kolumnerna, sedan nyhetsbrev, sedan sociala medier -
 * exakt DOM-ordningen i np_render_footer_content()). Growatt till fyra
 * kolumner i toppraden och en tvådelad nyhetsbrev/social-rad först från
 * 1024px, där det finns gott om bredd för det utan att kännas trångt.
 */

.np-footer {
	padding-block: 40px 24px;
	color: rgba( 255, 255, 255, 0.75 );
}

.np-footer a {
	color: inherit;
}

.np-footer-grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.np-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.np-footer-logo img {
	display: block;
	height: auto;
}

.np-footer-tagline {
	margin: 0;
	max-width: 280px;
	font-size: 14px;
	line-height: 1.5;
}

.np-footer-contact-email {
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 18+-badge - liten, lugn markör (inte en varnings-banner) som återanvänder
   samma åldersgräns som redan finns i FAQ:ns "Age Verification"-kategori. */
.np-footer-age-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	padding: 10px 14px;
	max-width: 280px;
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	border-radius: 10px;
}

.np-footer-age-badge-number {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.1 );
	font-size: 12px;
	font-weight: 800;
	color: #fff;
}

.np-footer-age-badge-text {
	font-size: 12px;
	line-height: 1.35;
}

.np-footer-column-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}

.np-footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.np-footer-links a {
	font-size: 14px;
	text-decoration: none;
}

.np-footer-links a:hover {
	color: #fff;
	text-decoration: underline;
}

/* --- Nyhetsbrev + sociala medier ---------------------------------------- */

.np-footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 36px;
	padding-top: 32px;
	border-top: 1px solid rgba( 255, 255, 255, 0.12 );
}

/* Ingen social-sektion att balansera mot ännu (se np-footer-bottom--solo-
   kommentaren i inc/site-footer.php) - ger nyhetsbrevet ett eget,
   avsiktligt framhävt "kort" istället för att lämna ett tomt hål bredvid
   det. Försvinner automatiskt (klassen slutar renderas) så fort riktiga
   social-länkar finns. */
.np-footer-bottom--solo {
	padding: 28px 28px 32px;
	border: 1px solid rgba( 255, 255, 255, 0.12 );
	border-radius: 16px;
	background: rgba( 255, 255, 255, 0.04 );
}

.np-footer-newsletter-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.np-footer-newsletter-subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	max-width: 420px;
}

.np-footer-newsletter-field {
	position: relative;
	max-width: 420px;
}

.np-footer-newsletter-field input[type='email'] {
	width: 100%;
	padding: 13px 54px 13px 18px;
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.06 );
	color: #fff;
	font-size: 14px;
	font-family: inherit;
}

.np-footer-newsletter-field input[type='email']::placeholder {
	color: rgba( 255, 255, 255, 0.5 );
}

.np-footer-newsletter-field input[type='email']:focus {
	outline: none;
	border-color: rgba( 255, 255, 255, 0.6 );
}

.np-footer-newsletter-submit {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY( -50% );
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: var( --wd-primary-color, #8a1f1f );
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.np-footer-newsletter-submit:hover:not(:disabled) {
	filter: brightness( 0.92 );
	transform: translateY( -50% ) scale( 1.06 );
	box-shadow: 0 6px 14px rgba( 138, 31, 31, 0.3 );
}

.np-footer-newsletter-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Honeypot - se samma teknik/motivering vid .np-faq-contact-hp i
   faq-page.css. */
.np-footer-newsletter-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.np-footer-newsletter-status {
	margin: 10px 0 0;
	font-size: 13px;
	min-height: 1em;
}

.np-footer-newsletter-status.is-success {
	color: #7fd99a;
}

.np-footer-newsletter-status.is-error {
	color: #ff8a80;
}

.np-footer-social-title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.np-footer-social-icons {
	display: flex;
	gap: 10px;
}

.np-footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.08 );
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.np-footer-social-icon:hover {
	background: rgba( 255, 255, 255, 0.18 );
	transform: translateY( -2px );
}

.np-footer-social-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #fff;
}

@media ( min-width: 1024px ) {
	.np-footer {
		padding-block: 56px 24px;
	}

	.np-footer-grid {
		flex-direction: row;
		align-items: start;
		gap: 24px;
	}

	.np-footer-brand {
		flex: 1.3 1 0;
	}

	.np-footer-column {
		flex: 1 1 0;
	}

	.np-footer-bottom {
		flex-direction: row;
		align-items: end;
		justify-content: space-between;
		gap: 40px;
	}

	/* Solo-läget ska INTE sträcka ut sig över hela radens bredd (skulle se
	   lika obalanserat ut som ett tomt hål, bara tvärtom) - begränsad
	   bredd, centrerad som ett eget litet "kort" i raden istället. */
	.np-footer-bottom--solo {
		max-width: 480px;
		margin-inline: auto;
	}

	.np-footer-social {
		/* "på höger sida" - se användarens instruktion. flex-shrink:0 så
		   ikonraden aldrig pressas ihop av ett långt nyhetsbrev-block. */
		flex-shrink: 0;
	}
}
