/**
 * Solar Ready Hub - CTA band + site footer
 * Figma: node 4003:1695 "CTA" and 4003:1631 "footer"
 */

/* ==========================================================================
   CTA band  (yellow, centered)
   ========================================================================== */

.srh-cta {
	padding-block: clamp(3rem, 1.5rem + 6vw, 6rem);
	background: var(--srh-yellow);
	text-align: center;
}

.srh-cta__inner {
	display: flex;
	max-width: 640px;
	flex-direction: column;
	align-items: center;
	gap: var(--srh-space-6);
	margin-inline: auto;
}

.srh-cta__title {
	margin: 0;
	color: var(--srh-ink);
	font-size: var(--srh-fs-h1);
	font-weight: var(--srh-fw-medium);
	line-height: var(--srh-lh-heading);
	letter-spacing: var(--srh-ls-display);
}

.srh-cta__text {
	max-width: 34rem;
	margin: 0;
	color: rgba(13, 5, 7, 0.72);
	font-size: var(--srh-fs-body);
	line-height: var(--srh-lh-body);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.srh-footer {
	background: var(--srh-green);
	color: var(--srh-on-dark);
}

.srh-footer a {
	color: var(--srh-on-dark);
	text-decoration: none;
	transition: color var(--srh-transition), opacity var(--srh-transition);
}

.srh-footer a:hover,
.srh-footer a:focus {
	color: var(--srh-yellow);
}

/* --------------------------------------------------------------------------
   Upper footer
   -------------------------------------------------------------------------- */

.srh-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	padding-block: var(--srh-space-16);
}

.srh-footer__brand {
	display: flex;
	flex: 0 0 292px;
	flex-direction: column;
	justify-content: center;
	gap: var(--srh-space-5);
	max-width: 292px;
}

.srh-footer__logo {
	width: auto;
	height: 100px;
	max-width: 160px;
	object-fit: contain;
}

.srh-footer__logo--fallback {
	color: var(--srh-white);
	font-size: var(--srh-fs-h4);
	font-weight: var(--srh-fw-bold);
}

.srh-footer__about {
	margin: 0;
	color: var(--srh-on-dark);
	font-size: var(--srh-fs-body);
	font-weight: var(--srh-fw-semibold);
	line-height: 1.5;
	opacity: 0.7;
}

/* Social icons - 32px outlined circles */
.srh-socials {
	display: flex;
	align-items: center;
	gap: var(--srh-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.srh-socials li {
	margin: 0;
}

.srh-socials a {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--srh-white);
	border-radius: var(--srh-radius-circle);
	color: var(--srh-white);
	transition: background-color var(--srh-transition), border-color var(--srh-transition),
		color var(--srh-transition);
}

.srh-socials a:hover,
.srh-socials a:focus {
	border-color: var(--srh-yellow);
	background: var(--srh-yellow);
	color: var(--srh-green);
}

.srh-socials svg {
	width: 16px;
	height: 16px;
	fill:transparent;
}

/* --------------------------------------------------------------------------
   Footer columns
   -------------------------------------------------------------------------- */

.srh-footer__cols {
	display: flex;
	flex: 1 1 820px;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(2rem, 1rem + 3vw, 3rem);
	max-width: 820px;
}

.srh-footer__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.srh-footer__heading {
	margin: 0;
	color: var(--srh-white);
	font-size: var(--srh-fs-h5);
	font-weight: var(--srh-fw-semibold);
	line-height: 1.48;
	letter-spacing: 0;
}

.srh-footer__menu {
	display: flex;
	flex-direction: column;
	gap: var(--srh-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.srh-footer__menu li {
	margin: 0;
}

.srh-footer__menu a {
	font-size: var(--srh-fs-body);
	font-weight: var(--srh-fw-medium);
	line-height: 1.5;
}

/* Contact rows */
.srh-footer__contact {
	display: flex;
	flex-direction: column;
	gap: var(--srh-space-2);
}

.srh-footer__contact-item {
	display: flex;
	align-items: center;
	gap: var(--srh-space-2);
	max-width: 281px;
	color: var(--srh-white);
	font-size: var(--srh-fs-body);
	font-weight: var(--srh-fw-medium);
	line-height: 1.5;
}

.srh-footer__contact-item--top {
	align-items: flex-start;
}

.srh-footer__contact-item svg {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	fill: transparent;
}


.srh-footer__contact-item--top svg {
	margin-top: 24px;
}

.srh-footer__contact-item span,
.srh-footer__contact-item a {
	flex: 1 1 auto;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Subscribe form
   -------------------------------------------------------------------------- */

.srh-subscribe {
	display: flex;
	max-width: 337px;
	align-items: stretch;
}

.srh-subscribe__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 49px;
	padding: 16px;
	border: 0;
	border-radius: var(--srh-radius-xl) 0 0 var(--srh-radius-xl);
	background: var(--srh-white);
	color: var(--srh-slate);
	font-size: var(--srh-fs-xs);
	font-weight: var(--srh-fw-semibold);
	line-height: 1.33;
}

.srh-subscribe__field::placeholder {
	color: var(--srh-slate);
	opacity: 0.6;
}

.srh-subscribe__field:focus {
	box-shadow: none;
	outline: 2px solid var(--srh-yellow);
	outline-offset: -2px;
}

.srh-subscribe__submit {
	display: inline-flex;
	height: 49px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border: 0;
	border-radius: 0 var(--srh-radius-xl) var(--srh-radius-xl) 0;
	background: var(--srh-yellow);
	color: var(--srh-black);
	font-size: var(--srh-fs-body);
	font-weight: var(--srh-fw-medium);
	line-height: 1.5;
	white-space: nowrap;
	transition: background-color var(--srh-transition);
}

.srh-subscribe__submit:hover,
.srh-subscribe__submit:focus {
	background: var(--srh-yellow-dark);
	color: var(--srh-black);
}

.srh-subscribe__note {
	margin: 0;
	color: var(--srh-on-dark-70);
	font-size: var(--srh-fs-xs);
}

/* Embedded shortcode form (Mailchimp / CF7 etc.) */
.srh-subscribe-embed input[type="email"] {
	border-radius: var(--srh-radius-xl) ;
}
.srh-subscribe input[type="email"] {
	border-radius: 50px 0px 0px 50px;
}
.srh-subscribe input[type="submit"] {
	border-radius: 0px 50px 50px 0px;
}

/* --------------------------------------------------------------------------
   Lower footer bar
   -------------------------------------------------------------------------- */

.srh-footer__bottom {
	border-top: 1px solid var(--srh-hairline);
}

.srh-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--srh-space-4);
	padding-block: var(--srh-space-4);
	color: var(--srh-white);
	font-size: var(--srh-fs-body);
	font-weight: var(--srh-fw-semibold);
	line-height: 1.5;
}

.srh-footer__bottom-inner > * {
	margin: 0;
	opacity: 0.7;
}

.srh-footer__legal {
	display: flex;
	align-items: center;
	gap: var(--srh-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.srh-footer__legal li + li::before {
	margin-right: var(--srh-space-2);
	content: "|";
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.srh-footer__top {
		flex-direction: column;
	}

	.srh-footer__brand,
	.srh-footer__cols {
		max-width: none;
		flex: 1 1 auto;
		width: 100%;
	}

	.srh-footer__cols {
		flex-wrap: wrap;
		gap: var(--srh-space-10);
	}

	.srh-footer__col {
		flex: 1 1 40px;
	}
}

@media (max-width: 600px) {
	.srh-footer__top {
		gap: var(--srh-space-10);
		padding-block: var(--srh-space-12);
	}

	.srh-footer__cols {
		flex-direction: column;
		gap: var(--srh-space-8);
	}

	.srh-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.srh-subscribe {
		max-width: none;
	}
}
