/* Mobile Home Mama - regular pages (About Us, Contact, FAQ, default page.php). Builds on home.css (sections, buttons) and catalog.css (page banner). */

/* Let sections run full width inside GeneratePress's page container, as on the front page. */
.mhm-info-page .site.grid-container {
	max-width: none;
	padding: 0;
}

.mhm-info-page .site-content {
	display: block;
}

/* ---------- About: story ---------- */
.mhm-about__content .mhm-page__role {
	margin-top: -8px;
	color: var(--mhm-primary-text);
	font-weight: 600;
}

.mhm-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* ---------- About: social buttons ---------- */
.mhm-page__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Contact: details and form ---------- */
.mhm-contact {
	display: grid;
	align-items: start;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr);
}

.mhm-contact__details {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mhm-contact__details .mhm-eyebrow {
	margin-bottom: 0;
}

.mhm-contact__details > p:not(.mhm-eyebrow) {
	color: #3d5568;
}

.mhm-contact__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.mhm-contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
}

.mhm-contact__list li > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: #3d5568;
}

.mhm-contact__list strong {
	color: var(--mhm-secondary);
	font-family: var(--mhm-font-heading);
	font-size: 1.0625rem;
	font-weight: 500;
}

.mhm-contact__list a {
	color: var(--mhm-primary-text);
	font-weight: 600;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.mhm-contact__list a:hover {
	text-decoration: underline;
}

.mhm-contact__social {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid rgba(18, 40, 56, 0.12);
}

.mhm-contact__social .mhm-social {
	margin-top: 12px;
}

.mhm-contact__social .mhm-social a {
	background: var(--mhm-bg-alt);
	color: var(--mhm-primary-text);
}

.mhm-contact__social .mhm-social a:hover,
.mhm-contact__social .mhm-social a:focus-visible {
	background: var(--mhm-primary);
	color: #fff;
}

.mhm-contact__form {
	padding: 28px 20px;
	border: 1px solid rgba(18, 40, 56, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(18, 40, 56, 0.1);
}

.mhm-contact__form h2 {
	margin-bottom: 20px;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
}

/* ---------- Contact: Fluent Forms, matched to the site's fields and buttons ---------- */
.mhm-contact__form .ff-el-group {
	margin-bottom: 18px;
}

.mhm-contact__form .ff-el-input--label label {
	color: var(--mhm-secondary);
	font-size: 0.875rem;
	font-weight: 600;
}

.mhm-contact__form .ff-el-form-control {
	padding: 10px 14px;
	border: 1px solid rgba(18, 40, 56, 0.2);
	border-radius: 8px;
	color: var(--mhm-secondary);
	font-family: var(--mhm-font);
	font-size: 1rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mhm-contact__form .ff-el-form-control:focus {
	border-color: var(--mhm-primary);
	box-shadow: 0 0 0 3px rgba(7, 156, 242, 0.2);
	outline: 0;
}

.mhm-contact__form .ff-btn-submit {
	padding: 12px 28px;
	border: 2px solid var(--mhm-primary);
	border-radius: 6px;
	background: var(--mhm-primary);
	color: #fff;
	font-family: var(--mhm-font-heading);
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.mhm-contact__form .ff-btn-submit:hover,
.mhm-contact__form .ff-btn-submit:focus-visible {
	border-color: var(--mhm-primary-dark);
	background: var(--mhm-primary-dark);
	box-shadow: 0 6px 16px rgba(7, 156, 242, 0.35);
	opacity: 1;
}

.mhm-contact__form .ff-btn-submit:focus-visible {
	outline: 3px solid var(--mhm-accent);
	outline-offset: 3px;
}

.mhm-contact__form .ff-message-success {
	border-left: 4px solid var(--mhm-primary);
	border-radius: 8px;
	background: var(--mhm-bg-alt);
	color: var(--mhm-secondary);
}

/* ---------- Contact: map ---------- */
.mhm-contact-map {
	line-height: 0;
	background: var(--mhm-bg-alt);
}

.mhm-contact-map iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 460px;
	border: 0;
}

/* ---------- FAQ: accordion (core Details blocks in the page content) ---------- */
.mhm-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 820px;
	margin: 0 auto;
}

.mhm-faq .wp-block-details {
	margin: 0;
	border: 1px solid rgba(18, 40, 56, 0.12);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mhm-faq .wp-block-details[open] {
	border-color: rgba(7, 156, 242, 0.45);
	box-shadow: 0 10px 28px rgba(18, 40, 56, 0.08);
}

.mhm-faq .wp-block-details summary {
	position: relative;
	padding: 18px 56px 18px 20px;
	border-radius: 12px;
	color: var(--mhm-secondary);
	cursor: pointer;
	font-family: var(--mhm-font-heading);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
}

.mhm-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* Plus sign that turns into a minus when open. */
.mhm-faq .wp-block-details summary::before,
.mhm-faq .wp-block-details summary::after {
	position: absolute;
	top: 50%;
	right: 22px;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--mhm-primary);
	content: "";
	transition: transform 0.25s ease;
}

.mhm-faq .wp-block-details summary::after {
	transform: rotate(90deg);
}

.mhm-faq .wp-block-details[open] summary::after {
	transform: rotate(0deg);
}

.mhm-faq .wp-block-details summary:hover {
	color: var(--mhm-primary-text);
}

.mhm-faq .wp-block-details summary:focus-visible {
	outline: 3px solid var(--mhm-accent);
	outline-offset: 2px;
}

.mhm-faq .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 20px;
	color: #3d5568;
}

.mhm-faq .wp-block-details > :not(summary):last-child {
	padding-bottom: 20px;
}

.mhm-faq .wp-block-details > * + :not(summary) {
	margin-top: 12px;
}

.mhm-faq .wp-block-details ul {
	padding-left: 40px;
}

.mhm-faq .wp-block-details li + li {
	margin-top: 6px;
}

.mhm-faq .wp-block-details a {
	color: var(--mhm-primary-text);
	font-weight: 600;
}

/* ---------- Default page content (page.php, e.g. Privacy Policy) ---------- */
.mhm-page-content {
	max-width: 820px;
	margin: 0 auto;
	color: #3d5568;
}

.mhm-page-content > * + * {
	margin-top: 16px;
}

.mhm-home .mhm-page-content h2 {
	margin-top: 40px;
	font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.mhm-home .mhm-page-content h3 {
	margin-top: 32px;
}

.mhm-page-content ul,
.mhm-page-content ol {
	margin-bottom: 0;
	padding-left: 24px;
}

.mhm-page-content li + li {
	margin-top: 6px;
}

.mhm-page-content a {
	color: var(--mhm-primary-text);
	font-weight: 600;
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
	.mhm-contact__form {
		padding: 40px;
	}

	.mhm-contact-map iframe {
		aspect-ratio: auto;
		height: 420px;
	}

	.mhm-faq .wp-block-details summary {
		padding: 22px 64px 22px 28px;
		font-size: 1.125rem;
	}

	.mhm-faq .wp-block-details > :not(summary) {
		padding-right: 28px;
		padding-left: 28px;
	}

	.mhm-faq .wp-block-details > :not(summary):last-child {
		padding-bottom: 24px;
	}

	.mhm-faq .wp-block-details ul {
		padding-left: 48px;
	}
}

@media (min-width: 1024px) {
	.mhm-contact {
		gap: 64px;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}
}

@media (max-width: 599px) {
	.mhm-page__actions,
	.mhm-page__social,
	.mhm-page__social li {
		width: 100%;
	}

	.mhm-page__actions .mhm-button,
	.mhm-page__social .mhm-button {
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	}

	.mhm-contact__form .ff-btn-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mhm-contact__form .ff-el-form-control,
	.mhm-contact__form .ff-btn-submit,
	.mhm-faq .wp-block-details,
	.mhm-faq .wp-block-details summary::before,
	.mhm-faq .wp-block-details summary::after {
		transition: none;
	}
}
