/*
 * Native Contact/Estimate presentation shells.
 *
 * This file owns route presentation only. The native page body and Gravity
 * Forms providers remain the content/runtime owner; no form fields are copied
 * here. Keep selectors below under the native route boundary so legacy Pages
 * and composed routes cannot inherit the shell.
 */

body.sequoia-native-route {
	--native-gutter: var(--sq-gutter, 48px);
	--native-wide: var(--sq-wide, 1180px);
	--native-ink: var(--sq-ink, #17160f);
	--native-body: var(--sq-body, #3f3d34);
	--native-cream: var(--sq-cream, #f6f4ee);
	--native-line: var(--sq-line3, #e6e2d6);
	--native-sage: var(--sq-sage, #82b479);
	font-family: var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

/* Estimate: frozen hero → four-step process → native provider panel. */
.native-estimate-shell {
	background: var(--native-cream);
	color: var(--native-body);
}

.native-estimate-hero {
	box-sizing: border-box;
	padding: 160px var(--native-gutter) 64px;
	background: #fff;
	border-bottom: 1px solid var(--native-line);
}

.native-estimate-hero__inner,
.native-estimate-process__grid,
.native-estimate-form-grid {
	box-sizing: border-box;
	width: min(100%, var(--native-wide));
	margin-inline: auto;
}

.native-estimate-eyebrow,
.native-contact-content .wp-block-group.shadow-1 .gform_required_legend {
	font: 500 12px/1 var(--sq-font-mono, "IBM Plex Mono", monospace);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--sq-green, #3f6d3f);
}

.native-estimate-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.native-estimate-eyebrow span {
	display: block;
	width: 36px;
	height: 2px;
	background: var(--native-sage);
}

.native-estimate-hero .entry-title {
	box-sizing: border-box;
	max-width: 820px;
	margin: 0;
	color: var(--native-ink);
	font: 700 56px/1.03 var(--sq-font-display, "Montserrat", Arial, sans-serif);
	letter-spacing: -.024em;
	text-wrap: balance;
}

.native-estimate-hero__lede {
	max-width: 620px;
	margin: 22px 0 0;
	color: var(--native-body);
	font: 400 19px/1.55 var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

.native-estimate-process {
	box-sizing: border-box;
	padding: 64px var(--native-gutter) 40px;
	background: var(--native-cream);
}

.native-estimate-process__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.native-estimate-process__step {
	min-width: 0;
	padding-top: 16px;
	border-top: 2px solid var(--native-sage);
}

.native-estimate-process__step > span {
	display: block;
	margin-bottom: 8px;
	color: var(--sq-green, #3f6d3f);
	font: 500 11px/1 var(--sq-font-mono, "IBM Plex Mono", monospace);
}

/* h3, not h2. Settled from the design authority, not from preference: every
 * one of the four process steps in
 * .work/loc-src/reference-output/pages/get-estimate.html is an <h3> at
 * `700 16px/1.25 Montserrat`. The only <h2> on that page is "What to have
 * handy" at `700 32px/1.1`, which `.native-estimate-info h2` below already
 * targets correctly. Every declared value here was right; only the element
 * name was wrong, so this is a one-token correction.
 * `providers.css` already carried the h3 form of this rule with identical
 * values -- the two sheets disagreed and providers.css was the correct one. */
.native-estimate-process__step h3 {
	margin: 0;
	color: var(--native-ink);
	font: 700 16px/1.25 var(--sq-font-display, "Montserrat", Arial, sans-serif);
}

.native-estimate-process__step p {
	margin: 8px 0 0;
	color: var(--native-body);
	font: 400 14px/1.5 var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

.native-estimate-form-band {
	box-sizing: border-box;
	padding: 40px var(--native-gutter) 100px;
	background: var(--native-cream);
}

.native-estimate-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: start;
	gap: 44px;
}

.native-estimate-info {
	min-width: 0;
}

.native-estimate-info h2 {
	margin: 0;
	color: var(--native-ink);
	font: 700 32px/1.1 var(--sq-font-display, "Montserrat", Arial, sans-serif);
	letter-spacing: -.02em;
}

.native-estimate-info ul {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.native-estimate-info li {
	position: relative;
	padding-left: 21px;
	color: var(--native-ink);
	font: 400 15.5px/1.55 var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

.native-estimate-info li::before {
	position: absolute;
	top: .55em;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--native-sage);
	content: "";
}

.native-estimate-callout {
	box-sizing: border-box;
	margin-top: 28px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--sq-line, #e3dfd3);
}

.native-estimate-callout span {
	display: block;
	margin-bottom: 10px;
	color: var(--sq-green, #3f6d3f);
	font: 500 10px/1 var(--sq-font-mono, "IBM Plex Mono", monospace);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.native-estimate-callout a {
	color: var(--native-ink);
	font: 800 26px/1 var(--sq-font-display, "Montserrat", Arial, sans-serif);
	letter-spacing: -.01em;
}

.native-estimate-callout p {
	margin: 10px 0 0;
	color: var(--sq-mute, #6b6860);
	font: 400 13.5px/1.5 var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

.native-estimate-provider {
	min-width: 0;
}

.native-estimate-provider .native-estimate-content {
	box-sizing: border-box;
	max-width: none;
	padding: 0;
	background: transparent;
}

.native-estimate-provider #gform_wrapper_3 {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.native-estimate-provider #gform_wrapper_3 form,
.native-estimate-provider #gform_3 {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 34px 34px 30px;
	background: #fff;
	border: 1px solid var(--sq-line, #e3dfd3);
	border-radius: 0;
	box-shadow: none;
}

/* Contact: keep the stored block tree/provider, but tune its shell to the
 * frozen white hero / cream two-column body / service-area rhythm. */
.native-contact-content {
	box-sizing: border-box;
	padding: 0 var(--native-gutter) 90px !important;
	background: var(--native-cream) !important;
}

.native-contact-content > .wp-block-sequoia-two-columns:first-child {
	box-sizing: border-box;
	max-width: var(--native-wide);
	min-height: 0;
	margin: 0 auto;
	padding: 160px 0 60px;
	background: #fff !important;
	border-bottom: 1px solid var(--native-line);
}

.native-contact-content > .wp-block-sequoia-two-columns:first-child > .wp-block-sequoia-column:first-child {
	flex-basis: 100% !important;
	max-width: 760px;
	background: #fff !important;
	color: var(--native-ink) !important;
}

.native-contact-content > .wp-block-sequoia-two-columns:first-child > .wp-block-sequoia-column.image-column {
	display: none !important;
}

.native-contact-content > .wp-block-sequoia-two-columns:first-child .inner {
	max-width: 760px;
	margin: 0;
	padding: 0 !important;
}

.native-contact-content > .wp-block-sequoia-two-columns:first-child h1 {
	max-width: 760px;
	margin: 0;
	color: var(--native-ink) !important;
	font: 700 54px/1.04 var(--sq-font-display, "Montserrat", Arial, sans-serif);
	letter-spacing: -.024em;
}

.native-contact-content > .wp-block-sequoia-two-columns:first-child p {
	max-width: 600px;
	margin: 22px 0 0;
	color: var(--native-body) !important;
	font: 400 19px/1.55 var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

.native-contact-content > .wp-block-group:nth-child(2) {
	box-sizing: border-box;
	max-width: var(--native-wide);
	margin: 0 auto;
	padding: 64px 0 90px !important;
	background: var(--native-cream) !important;
}

.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 44px;
	max-width: none;
	margin: 0;
}

.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns > .wp-block-sequoia-column {
	min-width: 0;
	flex-basis: auto !important;
}

.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns > .wp-block-sequoia-column:first-child {
	grid-area: form;
}

.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns > .wp-block-sequoia-column:last-child {
	grid-area: info;
}

.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns {
	grid-template-areas: "info form";
}

.native-contact-content .wp-block-group.shadow-1 {
	box-sizing: border-box;
	padding: 34px 34px 30px !important;
	background: #fff !important;
	border: 1px solid var(--sq-line, #e3dfd3);
	box-shadow: none;
}

.native-contact-content .wp-block-group.shadow-1 h3 {
	margin: 0 0 6px;
	color: var(--native-ink);
	font: 700 24px/1.2 var(--sq-font-display, "Montserrat", Arial, sans-serif);
}

.native-contact-content .wp-block-group.shadow-1 > p {
	margin: 0 0 22px;
	color: var(--sq-mute, #6b6860);
	font: 400 14.5px/1.55 var(--sq-font-body, "Nunito Sans", Arial, sans-serif);
}

.native-contact-content > .wp-block-group:nth-child(3) {
	max-width: var(--native-wide);
	margin: 0 auto;
}

.native-contact-content > iframe {
	display: none !important;
}

@media (max-width: 940px) {
	.native-estimate-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.native-contact-content > .wp-block-group:nth-child(2) > .wp-block-sequoia-two-columns {
		grid-template-areas: "form" "info";
	}
}

@media (max-width: 760px) {
	.native-estimate-process__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.native-estimate-hero,
	.native-contact-content > .wp-block-sequoia-two-columns:first-child {
		padding-top: 96px;
	}

	.native-estimate-hero .entry-title,
	.native-contact-content > .wp-block-sequoia-two-columns:first-child h1 {
		font-size: 42px;
	}
}

@media (max-width: 520px) {
	.native-estimate-process__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.native-estimate-hero,
	.native-estimate-process,
	.native-estimate-form-band {
		padding-right: 24px;
		padding-left: 24px;
	}

	.native-estimate-hero .entry-title,
	.native-contact-content > .wp-block-sequoia-two-columns:first-child h1 {
		font-size: 38px;
	}

	.native-estimate-hero__lede,
	.native-contact-content > .wp-block-sequoia-two-columns:first-child p {
		font-size: 17px;
	}

	.native-estimate-provider #gform_wrapper_3 form,
	.native-estimate-provider #gform_3,
	.native-contact-content .wp-block-group.shadow-1 {
		padding: 16px !important;
	}

	/* The stored Contact block has 5rem inline padding; this scoped reset is
	 * the mobile provider containment fix and does not touch GF markup. */
	.native-contact-content .wp-block-group.shadow-1 {
		padding: 16px !important;
	}
}
