/**
 * About and Contact.
 *
 * Both pages inherit the palette, buttons, grid and figure styles from
 * site.css; this file is the layout for the two rebuilt templates plus the
 * light-background variants of primitives that site.css defines for dark
 * sections.
 */

/*
 * BeTheme's .section carries generous padding and .section_wrapper is
 * display:flex for its own column system — a grid or block child collapses to
 * its content width inside it. Same override the front page needs.
 */
.motg-page {
	padding: 0 !important;
}

.motg-page .section_wrapper {
	display: block;
	padding: 4.5rem 0 5rem;
}

/* Header ----------------------------------------------------------------- */

.motg-page__head {
	max-width: 46rem;
	margin: 0 0 3rem;
}

.motg-page__title {
	font-family: "Krona One", Georgia, serif;
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	line-height: 1.25;
	margin: 0;
	color: var(--motg-ink);
}

.motg-page__lead {
	margin: 1.1rem 0 0;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--motg-muted);
}

.motg-page__actions {
	margin: 3rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
}

/*
 * site.css styles .motg-btn--ghost for the dark hero — white border, white
 * text. On these light pages that is invisible, so it inverts here.
 */
.motg-page .motg-btn--ghost {
	border-color: rgba(0, 0, 0, .25);
	color: var(--motg-ink) !important;
}

.motg-page .motg-btn--ghost:hover {
	background: rgba(0, 0, 0, .05);
}

/* Prose ------------------------------------------------------------------ */

.motg-prose {
	max-width: 46rem;
}

.motg-prose p {
	margin: 0 0 1.4rem;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--motg-ink);
}

.motg-quote {
	margin: 2.2rem 0;
	padding: 0 0 0 1.4rem;
	border-left: 4px solid var(--motg-flame);
}

.motg-quote p {
	margin: 0;
	font-family: "Krona One", Georgia, serif;
	font-size: 1.05rem;
	line-height: 1.6;
}

/*
 * The figures come from motg_home_stats(), which site.css styles for the dark
 * band on the front page. Here they sit on paper.
 */
.motg-about__stats {
	margin: 3.5rem 0 0;
	padding: 2.2rem 0 0;
	border-top: 1px solid var(--motg-line);
}

.motg-about__stats .motg-stat__value {
	color: var(--motg-ink);
}

.motg-about__stats .motg-stat__label {
	color: var(--motg-muted);
}

/* Contact ---------------------------------------------------------------- */

.motg-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 3rem;
	align-items: start;
}

.motg-detail {
	margin: 0 0 1.8rem;
}

.motg-detail__title {
	margin: 0 0 .5rem;
	font-family: Montserrat, sans-serif;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--motg-muted);
}

.motg-detail__body {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--motg-ink);
}

.motg-detail__link {
	color: var(--motg-flame);
	font-weight: 600;
	word-break: break-word;
}

/*
 * The Elementor export left a bare <iframe> with no dimensions, which the
 * browser rendered at its 300x150 default. A padded box with an absolutely
 * positioned frame keeps the map at 4:3 whatever the column width.
 */
.motg-map {
	position: relative;
	margin: 2rem 0 0;
	padding-bottom: 75%;
	border: 1px solid var(--motg-line);
	border-radius: 3px;
	overflow: hidden;
	background: #eceff1;
}

.motg-map__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Form ------------------------------------------------------------------- */

.motg-contact__form {
	background: var(--motg-paper);
	border: 1px solid var(--motg-line);
	border-radius: 3px;
	padding: 2rem;
}

.motg-field {
	margin: 0 0 1.1rem;
}

.motg-field label {
	display: block;
	margin: 0 0 .4rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--motg-ink);
}

.motg-field input,
.motg-field textarea {
	width: 100%;
	padding: .75rem .9rem;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: 2px;
	background: #fff;
	font-family: inherit;
	font-size: .95rem;
	line-height: 1.5;
	color: var(--motg-ink);
}

.motg-field input:focus,
.motg-field textarea:focus {
	outline: 2px solid var(--motg-flame);
	outline-offset: 1px;
	border-color: var(--motg-flame);
}

.motg-field textarea {
	resize: vertical;
	min-height: 9rem;
}

/*
 * Honeypot. Hidden from people without display:none, which some bots check
 * for, and taken out of the tab order in the markup.
 */
.motg-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.motg-form__actions {
	margin: 1.6rem 0 0;
}

.motg-form__note {
	margin: 1.2rem 0 0;
	font-size: .85rem;
	color: var(--motg-muted);
}

.motg-notice {
	margin: 0 0 1.5rem;
	padding: .9rem 1.1rem;
	border-radius: 2px;
	border-left: 4px solid;
	font-size: .92rem;
	line-height: 1.6;
}

.motg-notice--ok {
	border-color: #2e7d32;
	background: rgba(46, 125, 50, .08);
	color: #1b4d1f;
}

.motg-notice--bad {
	border-color: var(--motg-flame);
	background: rgba(201, 56, 20, .08);
	color: #7d2410;
}

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

@media (max-width: 959px) {
	.motg-contact {
		grid-template-columns: 1fr;
		gap: 2.4rem;
	}

	.motg-map {
		padding-bottom: 60%;
	}
}

@media (max-width: 767px) {
	.motg-page .section_wrapper {
		padding: 3rem 0 3.4rem;
	}

	.motg-page__head {
		margin-bottom: 2rem;
	}

	.motg-about__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.6rem;
	}

	.motg-contact__form {
		padding: 1.4rem;
	}
}
