/**
 * AdGrantspilot — Top footer (brand, social, HubSpot newsletter, menu columns).
 * Typography + subscribe row aligned with Contact_Page.html footer.
 */

.agp-footer-top {
	--agp-ft-bg: #0d1b2a;
	--agp-ft-text: #ffffff;
	--agp-ft-muted: rgba(255, 255, 255, 0.45);
	--agp-ft-accent: #1aa18c;
	--agp-ft-accent-hover: #148a77;
	--agp-ft-border: rgba(255, 255, 255, 0.08);
	--agp-ft-social-bg: rgba(255, 255, 255, 0.08);
	/* Subscribe row (matches .subscribe-input / .subscribe-btn in reference) */
	--agp-ft-nl-input-bg: rgba(255, 255, 255, 0.08);
	--agp-ft-nl-input-border: rgba(255, 255, 255, 0.15);
	--agp-ft-nl-pill: 100px;
	color: var(--agp-ft-muted);
	background: var(--agp-ft-bg);
	font-family: Sora, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.agp-footer-top__inner {
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	padding: 64px 40px 48px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 64px;
	align-items: start;
}

.agp-footer-top__brand {
	min-width: 0;
	max-width: none;
}

.agp-footer-top__logo {
	display: inline-block;
	color: var(--agp-ft-text);
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
	line-height: 1.25;
	margin-bottom: 10px;
}

.agp-footer-top__logo:hover,
.agp-footer-top__logo:focus {
	color: var(--agp-ft-text);
}

.agp-footer-top__logo span {
	color: var(--agp-ft-accent);
}

.agp-footer-top__tagline {
	margin: 0 0 24px;
	font-size: 13px;
	line-height: 1.6;
	max-width: 36em;
	color: var(--agp-ft-muted);
}

.agp-footer-top__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.agp-footer-top__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--agp-ft-social-bg);
	color: #fff;
	transition: background 0.2s ease, color 0.15s ease;
}

.agp-footer-top__social a:hover,
.agp-footer-top__social a:focus {
	background: var(--agp-ft-accent);
	color: #fff;
}

.agp-footer-top__social svg {
	width: 14px;
	height: 14px;
	display: block;
}

.agp-footer-top__newsletter {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	max-width: min(100%, 420px);
	margin-top: 0;
}

.agp-footer-top__newsletter-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--agp-ft-muted);
	margin: 0 0 10px;
}

.agp-footer-top__hubspot {
	min-height: 8px;
	width: 100%;
}

/* HubSpot: single-row subscribe row (matches reference .subscribe-row) */
.agp-footer-top__hubspot .hs-form,
.agp-footer-top__hubspot form.hs-form {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	display: flex !important;
	flex-direction: row !important;
	/* flex-wrap: wrap !important; */
	align-items: center !important;
	gap: 8px !important;
	width: 100% !important;
	max-width: 100% !important;
}

.agp-footer-top__hubspot .hs-form fieldset {
	border: none;
	margin: 0;
	padding: 0;
	flex: 1 1 180px;
	min-width: 0;
	max-width: 100%;
}

.agp-footer-top__hubspot .hs-form .form-columns-1,
.agp-footer-top__hubspot .hs-form .form-columns-2 {
	display: block;
	width: 100%;
}

.agp-footer-top__hubspot .hs-form .hs-form-field {
	margin-bottom: 0 !important;
	width: 100%;
}

.agp-footer-top__hubspot .hs-form > h1,
.agp-footer-top__hubspot .hs-form > h2,
.agp-footer-top__hubspot .hs-form > h3 {
	display: none !important;
}

.agp-footer-top__hubspot .hs-form label:not(.hs-error-msg) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.agp-footer-top__hubspot .hs-form .legal-consent-container label,
.agp-footer-top__hubspot .hs-form .hs-form-booleancheckbox label,
.agp-footer-top__hubspot .hs-form .hs-richtext label {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0 8px 0 !important;
	overflow: visible !important;
	clip: auto !important;
	white-space: normal !important;
	color: var(--agp-ft-muted) !important;
	font-size: 11px !important;
	line-height: 1.55 !important;
}

.agp-footer-top__hubspot .hs-form .hs-input,
.agp-footer-top__hubspot .hs-form input[type='text'],
.agp-footer-top__hubspot .hs-form input[type='email'],
.agp-footer-top__hubspot .hs-form textarea {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	background: var(--agp-ft-nl-input-bg) !important;
	border: 1px solid var(--agp-ft-nl-input-border) !important;
	border-radius: var(--agp-ft-nl-pill) !important;
	padding: 9px 16px !important;
	font-family: Sora, system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #fff !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.agp-footer-top__hubspot .hs-form .hs-input::placeholder,
.agp-footer-top__hubspot .hs-form input::placeholder {
	color: rgba(255, 255, 255, 0.3) !important;
	opacity: 1 !important;
}

.agp-footer-top__hubspot .hs-form .hs-input:focus,
.agp-footer-top__hubspot .hs-form input:focus {
	border-color: var(--agp-ft-accent) !important;
	box-shadow: 0 0 0 3px rgba(26, 161, 140, 0.1) !important;
	outline: none !important;
}

.agp-footer-top__hubspot .hs-form .hs_submit {
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	align-self: stretch;
}

.agp-footer-top__hubspot .hs-form .hs_submit .actions {
	margin: 0 !important;
	padding: 0 !important;
	height: 100%;
}

.agp-footer-top__hubspot .hs-form input.hs-button,
.agp-footer-top__hubspot .hs-form .hs-button {
	background: var(--agp-ft-accent) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--agp-ft-nl-pill) !important;
	padding: 9px 18px !important;
	min-height: 0 !important;
	font-family: Sora, system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-shadow: none !important;
	line-height: 1.4 !important;
	transition: background 0.2s ease, transform 0.15s ease !important;
}

.agp-footer-top__hubspot .hs-form input.hs-button:hover,
.agp-footer-top__hubspot .hs-form .hs-button:hover {
	background: var(--agp-ft-accent-hover) !important;
	transform: translateY(-1px);
}

.agp-footer-top__hubspot .hs-form .hs-error-msgs label,
.agp-footer-top__hubspot .hs-form .hs-error-msg {
	color: #fca5a5 !important;
	font-size: 12px !important;
}

.agp-footer-top__hubspot .hs-form .hs-error-msgs {
	margin-top: 6px !important;
	width: 100%;
	flex-basis: 100%;
}

.agp-footer-top__hubspot .hs-form .legal-consent-container,
.agp-footer-top__hubspot .hs-form .hs-richtext {
	flex-basis: 100%;
	width: 100%;
	margin-top: 4px;
}

.agp-footer-top__col {
	min-width: 0;
}

.agp-footer-top__col h3 {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--agp-ft-text);
	letter-spacing: normal;
}

.agp-footer-top__col nav {
	margin: 0;
}

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

.agp-footer-top__menu-list a {
	color: var(--agp-ft-muted);
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s ease;
}

.agp-footer-top__menu-list a:hover,
.agp-footer-top__menu-list a:focus {
	color: #fff;
}

.agp-footer-top__menu-list ul.sub-menu {
	list-style: none;
	margin: 8px 0 0;
	padding: 0 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.agp-footer-top__menu-list ul.sub-menu a {
	font-size: 13px;
}

.agp-footer-top__menu-empty {
	margin: 0;
	font-size: 13px;
	color: var(--agp-ft-muted);
}

@media (max-width: 860px) {
	.agp-footer-top__inner {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
		padding: 48px 40px 40px;
	}
}

@media (max-width: 640px) {
	.agp-footer-top__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 48px 20px 32px;
	}

	.agp-footer-top__hubspot .hs-form,
	.agp-footer-top__hubspot form.hs-form {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.agp-footer-top__hubspot .hs-form .hs_submit,
	.agp-footer-top__hubspot .hs-form input.hs-button,
	.agp-footer-top__hubspot .hs-form .hs-button {
		width: 100% !important;
	}
}
