/**
 * Footer — warmy.blog
 *
 * Sections:
 *  1. Wrapper
 *  2. Top bar (logo + tagline)
 *  3. Subscribe form (footer compact variant)
 *  4. Nav columns
 *  5. Awards row
 *  6. Bottom bar (divider + SOC2 + copyright + socials)
 *  7. Responsive
 */

/* ─────────────────────────────────────────────
   1. Wrapper
───────────────────────────────────────────── */

.site-footer {
	background-color: #fff;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-block: 48px;
}

/* ─────────────────────────────────────────────
   2. Top bar
───────────────────────────────────────────── */

.footer-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-topbar__logo a,
.footer-topbar__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.footer-topbar__logo img,
.footer-topbar__logo .custom-logo {
	display: block;
	height: 21px;
	width: auto;
}

.footer-topbar__site-name {
	font-family: var(--font-heading, sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-dark, #2d4059);
	text-decoration: none;
}

.footer-topbar__tagline {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 14px;
	font-weight: 400;
	color: #2d4059;
	margin: 0;
}

/* ─────────────────────────────────────────────
   3. Subscribe form — footer compact variant
───────────────────────────────────────────── */

.footer-subscribe {
}

.footer-subscribe__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: 8px;
	background:
		linear-gradient(185.26deg, rgba(255, 212, 96, 0.15) 0%, rgba(253, 176, 87, 0.15) 100%),
		#fff;
}

.footer-subscribe__text {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 14px;
	font-weight: 400;
	color: #2d4059;
	text-align: center;
	margin: 0;
}

#footer-subscribe-form {
	width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.subscribe-banner__row.footer-subscribe__row {
	width: 100%;
}

/* Row: input takes full width of card */
footer .footer-subscribe__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: 100%;
}

.subscribe-banner__field.footer-subscribe__field {
	width: 100%;
	max-width: 575px;
}

/* Input — inherit base .subscribe-banner__input styles, override width */
.footer-subscribe__input {
	width: 100%;
	max-width: 575px;
}

/* Button — blue, centered */
.footer-subscribe__btn {
	min-width: 160px;
}

/* Success message — centered */
.footer-subscribe__success {
	flex-direction: row;
	justify-content: center;
	gap: 8px;
}

/* ─────────────────────────────────────────────
   4. Nav columns
───────────────────────────────────────────── */

.footer-nav__grid {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.footer-nav__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 160px;
	flex-shrink: 0;
}

.footer-nav__heading {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.032px;
	color: #2d4059;
	margin: 0;
}

/* Reset WP nav_menu defaults */
.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-nav__list li {
	margin: 0;
	padding: 0;
}

.footer-nav__list a {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: #4f5665;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer-nav__list a:hover {
	color: #2d4059;
}

/* Chrome Extension sub-section — nested inside last nav column */
.footer-chrome__heading {
	margin-top: 32px !important;
}

.footer-chrome__link {
	display: inline-flex;
}

.footer-chrome__badge {
	display: block;
	width: 160px;
	height: auto;
	border-radius: 4px;
}

/* ─────────────────────────────────────────────
   5. Awards row
───────────────────────────────────────────── */

.footer-awards {
	position: relative;
}

.footer-awards__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	/* Gradient fade on edges — decorative */
	-webkit-mask-image: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.8) 0%,
		rgba(255, 255, 255, 1) 2%,
		rgba(255, 255, 255, 1) 98%,
		rgba(255, 255, 255, 0.8) 100%
	);
	mask-image: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.8) 0%,
		rgba(255, 255, 255, 1) 2%,
		rgba(255, 255, 255, 1) 98%,
		rgba(255, 255, 255, 0.8) 100%
	);
}

.footer-awards__item {
	flex-shrink: 0;
}

.footer-awards__badge {
	display: block;
	height: 64px;
	width: auto;
	object-fit: contain;
}

/* ─────────────────────────────────────────────
   6. Bottom bar
───────────────────────────────────────────── */

.footer-bottom {
}

.footer-bottom__divider {
	border: none;
	border-top: 1px solid rgba(45, 64, 89, 0.1);
	border-radius: 2px;
	margin: 0 0 24px;
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.footer-bottom__left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-bottom__soc2 {
	display: block;
	width: 28px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
}

.footer-bottom__copyright {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 14px;
	font-weight: 400;
	color: #2d4059;
	margin: 0;
	white-space: nowrap;
}

/* Socials */
.footer-socials {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: #2d4059;
	border-radius: 8px;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer-socials__link:hover {
	opacity: 0.8;
	transform: translateY(-1px);
}

.footer-socials__icon {
	display: block;
	width: 12.25px;
	height: 12.25px;
	object-fit: contain;
}

/* ─────────────────────────────────────────────
   7. Responsive
───────────────────────────────────────────── */

/* Tablet — 5 cols start to crowd, allow wrap */
@media (max-width: 1100px) {
	.footer-nav__grid {
		flex-wrap: wrap;
		gap: 32px 24px;
		justify-content: flex-start;
	}

	.footer-nav__col {
		width: calc(50% - 24px);
	}

	.footer-awards__row {
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.footer-topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.footer-nav__col {
		width: 100%;
	}

	.footer-bottom__inner {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		text-align: center;
	}

	.footer-bottom__left {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	.footer-subscribe__card {
		padding: 16px 12px;
	}
}
