/*
 * SMP Homepage POC
 * Upload to: /wp-content/themes/oolson-genesis/assets/css/smp-homepage.css
 */

:root {
	--smp-navy: #073b74;
	--smp-blue: #0082c3;
	--smp-teal: #00aaa4;
	--smp-dark: #222;
	--smp-light: #f3f6f8;
	--smp-white: #fff;
	--smp-radius: 8px;
	--smp-shadow: 0 14px 38px rgba(7, 59, 116, .18);
}

body.smp-poc-home {
	margin: 0;
	color: var(--smp-dark);
	background: #fff;
	font-family: Montserrat, Arial, sans-serif;
	line-height: 1.55;
}

.smp-poc-home * { box-sizing: border-box; }
.smp-poc-home img { max-width: 100%; height: auto; }
.smp-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.smp-center { text-align: center; }
.smp-skip-link { position: absolute; left: -9999px; }
.smp-skip-link:focus { left: 15px; top: 15px; z-index: 9999; background: #fff; padding: 10px; }

.smp-header {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid #e9edf1;
}
.smp-header__inner {
	display: grid;
	grid-template-columns: 260px 1fr;
	align-items: center;
	gap: 12px 28px;
	padding-block: 14px;
}
.smp-logo img { display: block; width: 235px; }
.smp-header__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 24px;
}
.smp-phone { color: #222; text-decoration: none; font-size: 14px; }
.smp-nav { grid-column: 1 / -1; border-top: 1px solid #edf0f2; padding-top: 10px; }
.smp-nav__list { display: flex; justify-content: flex-end; gap: 30px; list-style: none; margin: 0; padding: 0; }
.smp-nav a { color: #222; font-size: 14px; font-weight: 600; text-decoration: none; }
.smp-nav a:hover, .smp-nav a:focus { color: var(--smp-blue); }

.smp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 2px solid var(--smp-navy);
	border-radius: 999px;
	background: var(--smp-navy);
	color: #fff !important;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: .2s ease;
}
.smp-button:hover, .smp-button:focus { background: #fff; color: var(--smp-navy) !important; }
.smp-button--small { min-height: 42px; padding: 8px 18px; font-size: 13px; }

.smp-hero {
	position: relative;
	overflow: hidden;
	padding: 64px 0 72px;
	background:
		linear-gradient(90deg, rgba(7,59,116,.96), rgba(0,130,195,.77)),
		url("https://www.soumissionsmaison.com/prefabriquees/wp-content/uploads/2016/11/advantage-1.jpg") center/cover;
	color: #fff;
}
.smp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(430px, .88fr);
	gap: 55px;
	align-items: start;
}
.smp-hero__copy { position: relative; min-height: 630px; padding-top: 20px; }
.smp-eyebrow { margin: 0 0 8px; font-size: clamp(20px, 3vw, 34px); font-weight: 800; text-transform: uppercase; }
.smp-hero h1 { margin: 0 0 24px; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; text-transform: uppercase; }
.smp-hero__lead { max-width: 650px; font-size: 20px; font-weight: 700; }
.smp-hero__copy > p { max-width: 700px; }
.smp-hero__person { position: absolute; bottom: -73px; right: -10px; width: 285px; opacity: .98; }

.smp-form-card {
	position: relative;
	padding: 28px;
	border-radius: var(--smp-radius);
	background: #fff;
	color: #222;
	box-shadow: var(--smp-shadow);
}
.smp-form-card__heading { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.smp-form-card__heading img { width: 90px; }
.smp-form-card h2 { margin: 0 0 20px; color: var(--smp-navy); font-size: 21px; line-height: 1.25; }
.smp-form-card .gform_wrapper input,
.smp-form-card .gform_wrapper select,
.smp-form-card .gform_wrapper textarea {
	border: 1px solid #cad3da !important;
	border-radius: 4px !important;
	background: #fff !important;
}
.smp-form-card .gform_wrapper .gform_button,
.smp-form-card .gform_wrapper input[type="submit"] {
	width: 100% !important;
	min-height: 52px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--smp-navy) !important;
	color: #fff !important;
	font-weight: 800 !important;
	text-transform: uppercase;
}
.smp-form-card .gform_wrapper .gform_button:hover { background: var(--smp-blue) !important; }
.smp-privacy { margin: 14px 0 0; color: #687680; font-size: 12px; text-align: center; }
.smp-form-missing { padding: 18px; border: 2px dashed #d5a928; background: #fff9df; color: #4d400e; }

.smp-section { padding: 75px 0; }
.smp-section--light { background: var(--smp-light); }
.smp-section--steps { background: #fff; }
.smp-section--teal { background: linear-gradient(135deg, #009a9a, #006d8e); color: #fff; }
.smp-section--cta { overflow: hidden; background: linear-gradient(120deg, #eef6f8, #dceef3); }
.smp-section-heading { margin-bottom: 42px; text-align: center; }
.smp-section-heading h2 { margin: 0 0 8px; color: var(--smp-navy); font-size: clamp(28px, 4vw, 43px); line-height: 1.1; text-transform: uppercase; }
.smp-section-heading p { margin: 0; font-size: 22px; }
.smp-section-heading--white h2 { color: #fff; }

.smp-house-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.smp-house-card { overflow: hidden; margin: 0; border-radius: var(--smp-radius); background: #fff; box-shadow: 0 7px 22px rgba(0,0,0,.09); text-align: center; }
.smp-house-card img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.smp-house-card h3 { margin: 0; padding: 17px 8px; color: var(--smp-navy); font-size: 15px; text-transform: uppercase; }

.smp-steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 20px; margin-bottom: 42px; }
.smp-step { position: relative; text-align: center; }
.smp-step img { width: 112px; }
.smp-step__number {
	position: absolute;
	top: -6px;
	left: calc(50% + 28px);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--smp-navy);
	color: #fff;
	font-weight: 800;
}
.smp-step p { margin: 12px 0 0; font-size: 14px; font-weight: 650; }

.smp-benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.smp-benefit { text-align: center; }
.smp-benefit img { width: 126px; }
.smp-benefit h3 { margin: 14px 0 8px; font-size: 18px; }
.smp-benefit p { margin: 0; font-size: 14px; }

.smp-content-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.smp-content-grid h2 { margin-top: 0; color: var(--smp-navy); font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; }
.smp-content-grid h3 { color: var(--smp-navy); font-size: 22px; text-transform: uppercase; }
.smp-rounded-image { width: 100%; border-radius: 10px; box-shadow: var(--smp-shadow); }
.smp-process-list { counter-reset: process; list-style: none; padding: 0; }
.smp-process-list li { position: relative; min-height: 46px; margin: 13px 0; padding-left: 58px; }
.smp-process-list li::before {
	counter-increment: process;
	content: counter(process);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--smp-teal);
	color: #fff;
	font-weight: 800;
}
.smp-check-list { list-style: none; padding: 0; }
.smp-check-list li { position: relative; margin: 9px 0; padding-left: 30px; }
.smp-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--smp-teal); font-weight: 900; }

.smp-cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.smp-cta-grid > div:first-child { position: relative; min-height: 590px; }
.smp-cta-grid h2 { color: var(--smp-navy); font-size: clamp(32px, 5vw, 58px); line-height: 1.05; text-transform: uppercase; }
.smp-cta-person { position: absolute; bottom: -76px; left: 20%; width: 340px; }

.smp-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.smp-article-card { padding: 26px; border: 1px solid #e2e8ec; border-radius: var(--smp-radius); box-shadow: 0 5px 16px rgba(0,0,0,.05); }
.smp-article-card h3 { margin-top: 0; color: var(--smp-navy); font-size: 18px; }
.smp-article-card a { color: var(--smp-blue); font-weight: 800; }

.smp-footer { background: #102a43; color: #fff; }
.smp-footer__grid { display: grid; grid-template-columns: .8fr .6fr 1fr; gap: 45px; align-items: center; padding-block: 52px; }
.smp-footer img { filter: brightness(0) invert(1); }
.smp-footer nav { display: grid; gap: 9px; }
.smp-footer nav a { color: #fff; text-decoration: none; }
.smp-footer__bottom { padding: 17px 0; background: #0b1e30; font-size: 13px; text-align: center; }

@media (max-width: 1024px) {
	.smp-house-grid { grid-template-columns: repeat(3, 1fr); }
	.smp-steps-grid, .smp-benefits-grid { grid-template-columns: repeat(2, 1fr); }
	.smp-hero__grid { grid-template-columns: 1fr 420px; gap: 28px; }
	.smp-hero__person { opacity: .45; }
}

@media (max-width: 780px) {
	.smp-container { width: min(100% - 28px, 680px); }
	.smp-header__inner { grid-template-columns: 1fr; }
	.smp-logo { justify-self: center; }
	.smp-header__actions { justify-content: center; flex-wrap: wrap; }
	.smp-nav { overflow-x: auto; }
	.smp-nav__list { justify-content: flex-start; min-width: max-content; }
	.smp-hero { padding-top: 42px; }
	.smp-hero__grid, .smp-content-grid, .smp-cta-grid, .smp-footer__grid { grid-template-columns: 1fr; }
	.smp-hero__copy { min-height: auto; padding-bottom: 0; }
	.smp-hero__person { display: none; }
	.smp-form-card { padding: 20px; }
	.smp-house-grid, .smp-article-grid { grid-template-columns: 1fr 1fr; }
	.smp-steps-grid, .smp-benefits-grid { grid-template-columns: 1fr 1fr; }
	.smp-cta-grid > div:first-child { min-height: 470px; }
	.smp-cta-person { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 520px) {
	.smp-section { padding: 55px 0; }
	.smp-header__actions { display: grid; }
	.smp-phone { text-align: center; }
	.smp-house-grid, .smp-article-grid, .smp-steps-grid, .smp-benefits-grid { grid-template-columns: 1fr; }
	.smp-form-card__heading { grid-template-columns: 1fr; text-align: center; }
	.smp-form-card__heading img { margin-inline: auto; }
	.smp-footer__grid { text-align: center; }
}
