/* ==========================================================================
   Landing page (template page-landing): ads traffic, form in the hero,
   no main navigation. Loaded only on that template.
   ========================================================================== */

/* Header: logo + call button only */
.rm-header--lp .rm-header__bar { justify-content: space-between; }
.rm-header__call { margin-left: auto !important; }
.rm-header__call .wp-block-button__link.rm-btn { min-height: 46px; font-size: .9375rem; padding-left: 20px; }
.rm-header__call .wp-block-button__link.rm-btn::after { flex-basis: 34px; height: 34px; }
.rm-header__call .wp-block-button__link.rm-btn::before { right: 15px; }

.rm-lp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rm-orange-text);
}
.rm-lp-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rm-orange); }
.rm-section--dark .rm-lp-eyebrow { color: var(--rm-orange); }
.rm-lp-head { display: grid; justify-items: center; text-align: center; gap: .9rem; }
.rm-lp-head > * { margin: 0 !important; max-width: 760px; }
.rm-lp-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* Hero ------------------------------------------------------------------- */
.rm-lp-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 0;
	border-radius: var(--rm-r-hero);
	background: var(--rm-graphite);
}
.rm-lp-hero__media { position: absolute; inset: 0; z-index: -2; margin: 0 !important; }
.rm-lp-hero__media figure { height: 100%; margin: 0; }
.rm-lp-hero__media img { width: 100%; height: 100% !important; object-fit: cover; object-position: 60% 40%; }
.rm-lp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgb(14 14 14 / .9) 0%, rgb(14 14 14 / .72) 45%, rgb(14 14 14 / .45) 100%);
}
.rm-lp-hero__inner {
	max-width: calc(var(--rm-wide) + 2 * var(--rm-gutter));
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 6rem) var(--rm-gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.rm-lp-hero__copy { display: grid; gap: 1.4rem; color: rgb(255 255 255 / .85); }
.rm-lp-hero__copy > * { margin: 0 !important; }
.rm-lp-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.rm-lp-hero__lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: rgb(255 255 255 / .82); max-width: 42ch; }
.rm-lp-hero__list li { color: #fff; font-size: 1.0625rem; }
.rm-lp-hero__list strong { color: var(--rm-orange); }
.rm-lp-rating {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgb(255 255 255 / .1);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
	color: #fbbc05;
	font-size: .9375rem;
	letter-spacing: .06em;
}
.rm-lp-rating strong { color: #fff; letter-spacing: 0; }
.rm-lp-rating span { color: rgb(255 255 255 / .8); letter-spacing: 0; }

/* Form card */
.rm-lp-form {
	background: #fff;
	border-radius: var(--rm-r-hero);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6);
	border-top: 4px solid var(--rm-orange);
	display: grid;
	gap: .6rem;
	scroll-margin-top: 110px;
}
.rm-lp-form > * { margin: 0 !important; }
.rm-lp-chip {
	justify-self: start;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff3e4;
	color: var(--rm-orange-text);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.rm-lp-form__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; }
.rm-lp-form__sub { color: var(--rm-muted); font-size: .9375rem; margin-bottom: .6rem !important; }
.rm-lp-form__note { text-align: center; color: var(--rm-muted); font-size: .8125rem; }
.rm-lp-form .frm-fluent-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.rm-lp-form .frm-fluent-form fieldset > * { grid-column: 1 / -1; }
.rm-lp-form .frm-fluent-form fieldset > .ff-el-group:has(input[type="tel"]),
.rm-lp-form .frm-fluent-form fieldset > .ff-el-group:has(input[name="zip"]),
.rm-lp-form .frm-fluent-form fieldset > .ff-el-group:has(input[type="email"]),
.rm-lp-form .frm-fluent-form fieldset > .ff-el-group:has(select) { grid-column: auto; }
.rm-lp-form .frm-fluent-form .ff-el-group { margin-bottom: 12px; }
.rm-lp-form .frm-fluent-form .ff-el-form-control { min-height: 50px; padding: 12px 16px; }
.rm-lp-form .frm-fluent-form textarea.ff-el-form-control { min-height: 84px; }
.rm-lp-form .frm-fluent-form select.ff-el-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23121212' stroke-width='1.6'%3E%3Cpath d='M2 4.5 6 8l4-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	padding-right: 36px;
}
.rm-lp-form .frm-fluent-form .ff_submit_btn_wrapper { margin-top: 4px; }
.rm-lp-form .frm-fluent-form .ff-btn-submit { width: 100%; justify-content: space-between; min-height: 58px; font-size: 1.0625rem; }

/* Trust bar ----------------------------------------------------------------- */
.rm-lp-trust {
	max-width: calc(var(--rm-wide) + 2 * var(--rm-gutter));
	margin: 0 auto;
	padding: clamp(1.5rem, 3vw, 2.25rem) var(--rm-gutter);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}
.rm-lp-trust__item { padding-left: 1rem; border-left: 2px solid var(--rm-orange); }
.rm-lp-trust__item p { font-size: .9375rem; color: var(--rm-muted); line-height: 1.45; }
.rm-lp-trust__item strong { display: block; font-family: var(--rm-display); font-size: 1.25rem; letter-spacing: -.02em; color: var(--rm-ink); }

/* Grids + cards ------------------------------------------------------------- */
.rm-lp-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.rm-lp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rm-lp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rm-lp-card, .rm-lp-step {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--rm-r-card);
	background: #fff;
	box-shadow: 0 0 0 1px var(--rm-line);
	display: grid;
	gap: .75rem;
	align-content: start;
}
.rm-lp-card > *, .rm-lp-step > * { margin: 0 !important; }
.rm-lp-card h3, .rm-lp-step h3, .rm-lp-service h3 { font-size: 1.4rem; }
.rm-lp-card p, .rm-lp-step p, .rm-lp-service p { color: var(--rm-muted); }
.rm-lp-card .rm-feature__icon { margin-bottom: .5rem !important; }
.rm-lp-step__num { font-family: var(--rm-display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--rm-orange) !important; letter-spacing: -.04em; }

.rm-lp-service { background: #fff; border-radius: var(--rm-r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--rm-line); display: flex; flex-direction: column; margin: 0 !important; }
.rm-lp-service > * { margin: 0 !important; }
.rm-lp-service__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rm-lp-service__body { padding: 1.25rem 1.4rem 1.5rem; display: grid; gap: .5rem; }
.rm-lp-service__body > * { margin: 0 !important; }

.rm-lp-areas { justify-content: center; }
.rm-lp-reviews .ti-widget { max-width: var(--rm-wide); margin-inline: auto; }

/* Final CTA ---------------------------------------------------------------- */
.rm-lp-final { margin: 0 clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); border-radius: var(--rm-r-hero); text-align: center; }
.rm-lp-final__media { position: absolute; inset: 0; z-index: -2; margin: 0 !important; max-width: none !important; }
.rm-lp-final__media figure { height: 100%; margin: 0; }
.rm-lp-final__media img { width: 100%; height: 100% !important; object-fit: cover; opacity: .28; }
.rm-lp-final__content { display: grid; justify-items: center; gap: 1.1rem; }
.rm-lp-final__content > * { margin: 0 !important; }
.rm-lp-final h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.8rem); max-width: 18ch; }
.rm-lp-final__lead { color: rgb(255 255 255 / .82); font-size: var(--wp--preset--font-size--lead); max-width: 52ch; }
.rm-lp-final .wp-block-buttons { justify-content: center; }

/* Thank-you -------------------------------------------------------------------- */
.rm-lp-thanks {
	max-width: calc(760px + 2 * var(--rm-gutter));
	margin: 0 auto !important;
	padding: clamp(4rem, 10vw, 8rem) var(--rm-gutter) clamp(4rem, 9vw, 7rem);
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 1.25rem;
}
.rm-lp-thanks > * { margin: 0 !important; }
.rm-lp-thanks h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.rm-lp-thanks .rm-lp-hero__lead { color: var(--rm-steel); }
.rm-lp-thanks .wp-block-buttons { justify-content: center; }
.rm-lp-thanks .is-style-rm-ghost .wp-block-button__link.rm-btn { color: var(--rm-ink); }

/* Landing footer */
.rm-footer--lp .rm-footer__contact { color: rgb(255 255 255 / .75); text-align: right; }
.rm-footer--lp .rm-footer__contact a { color: #fff; }

/* Grid reset (WP flow-layout gaps) */
:where(.rm-lp-hero__inner, .rm-lp-trust, .rm-lp-grid) > * { margin-block: 0 !important; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.rm-lp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.rm-lp-hero__inner { grid-template-columns: 1fr; }
	.rm-lp-hero::after { background: linear-gradient(0deg, rgb(14 14 14 / .92) 30%, rgb(14 14 14 / .6) 100%); }
	.rm-lp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
	.rm-lp-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.rm-lp-hero { border-radius: 20px; }
	.rm-lp-hero__inner { padding-top: 2.25rem; padding-bottom: 1.25rem; padding-inline: 16px; }
	.rm-lp-hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
	.rm-lp-form { padding: 1.4rem 1.1rem; border-radius: 20px; }
	.rm-lp-form .frm-fluent-form fieldset { grid-template-columns: 1fr; }
	.rm-lp-form .frm-fluent-form fieldset > .ff-el-group { grid-column: 1 / -1 !important; }
	.rm-lp-grid--4 { grid-template-columns: 1fr; }
	.rm-header__call .wp-block-button__link.rm-btn { font-size: .8125rem; padding-left: 14px; gap: 10px; }
	.rm-footer--lp .rm-footer__contact { text-align: left; }
}

/* Home uses the PPC form layout with everyday service copy. */
.rm-home-service-hero .rm-lp-hero__inner { padding-block: clamp(2rem, 4vw, 3.5rem); }
.rm-home-service-hero .rm-lp-form textarea.ff-el-form-control { height: 84px; }
