/*
Theme Name: Junk Runners Splash
Description: Single-page homepage (approved above-the-fold design + free estimate form) for Junk Runners while the full site is built.
Author: Leadhub
Version: 1.0.2
Text Domain: junk-runners-splash
*/

:root {
	--jr-rust: #b5573a;
	--jr-rust-dark: #9a4429;
	--jr-brown: #462b1b;
	--jr-gold: #f4bf60;
	--jr-gold-dark: #e0a43f;
	--jr-cream: #fbf1de;
	--jr-ink: #2a1a10;
	--font-head: "Anton", "Arial Narrow", Impact, sans-serif;
	--font-script: "Yellowtail", "Brush Script MT", cursive;
	--font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--jr-cream);
	color: var(--jr-ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Buttons */
.jr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 30px;
	font: 700 1rem/1.2 var(--font-body);
	text-decoration: none;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.jr-btn--gold { background: var(--jr-gold); color: var(--jr-ink); border-color: var(--jr-cream); }
.jr-btn--gold:is(:hover, :focus-visible) { background: var(--jr-cream); border-color: var(--jr-gold); }

/* Header */
.jr-header {
	position: relative;
	z-index: 10;
	background: var(--jr-rust);
	border-top: 10px solid var(--jr-brown);
	border-bottom: 6px solid var(--jr-gold);
	color: #fff;
}
.jr-header__inner {
	max-width: 1640px;
	margin: 0 auto;
	padding: 0 40px;
	min-height: 104px;
	display: flex;
	align-items: center;
	gap: 48px;
}
.jr-header__logo {
	align-self: flex-start;
	flex: none;
	margin-top: 4px;
	margin-bottom: -26px;
}
.jr-header__logo img { width: 186px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }

.jr-rating { font-size: .95rem; line-height: 1.3; }
.jr-rating__top { display: flex; align-items: center; gap: 8px; }
.jr-rating__stars { color: var(--jr-gold); font-size: 1.15rem; letter-spacing: 1px; }
.jr-rating__count { margin-top: 6px; text-align: center; }

.jr-header__right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 18px;
}
.jr-header__call-label {
	text-transform: uppercase;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: .04em;
}
.jr-btn__icon { flex: none; margin-right: 8px; }
.jr-header__cta { min-width: 230px; min-height: 48px; font-size: 1.2rem; font-weight: 800; }

/* Hero */
.jr-hero {
	position: relative;
	color: #fff;
}
.jr-hero picture,
.jr-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}
.jr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(70, 43, 27, .82) 0%, rgba(70, 43, 27, .7) 45%, rgba(70, 43, 27, .35) 75%, rgba(70, 43, 27, .2) 100%),
		rgba(181, 87, 58, .18);
}
.jr-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1440px;
	margin: 0 auto;
	padding: 72px 40px 64px;
	min-height: min(calc(100vh - 120px), 760px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	align-items: center;
	gap: 48px;
}
.jr-hero__copy { max-width: 640px; justify-self: center; }
.jr-hero h1 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 400;
	font-size: clamp(2.6rem, 4.6vw, 4.6rem);
	line-height: 1.12;
	text-transform: uppercase;
	color: var(--jr-cream);
	letter-spacing: .01em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.jr-script {
	font-family: var(--font-script);
	text-transform: none;
	color: var(--jr-gold);
	font-size: 1.12em;
	letter-spacing: 0;
	padding-right: .06em;
}
.jr-hero__sub {
	margin: 22px 0 0;
	font-size: clamp(1.3rem, 2vw, 1.9rem);
	font-weight: 600;
	line-height: 1.3;
}
.jr-hero__text {
	margin: 14px 0 0;
	max-width: 560px;
	font-size: clamp(1.05rem, 1.35vw, 1.3rem);
	font-weight: 600;
	font-style: italic;
	line-height: 1.5;
}

/* Estimate card */
.jr-card {
	scroll-margin-top: 16px;
	background: var(--jr-cream);
	border: 6px solid var(--jr-rust);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	overflow: visible;
	color: var(--jr-ink);
}
.jr-card__offer {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 20px 18px;
	background: var(--jr-gold);
	border-radius: 14px 14px 0 0;
	border-bottom: 6px solid var(--jr-rust);
	color: #fff;
	text-align: center;
	text-transform: uppercase;
}
.jr-card__eyebrow { font-size: .95rem; font-weight: 600; letter-spacing: .14em; }
.jr-card__deal { font-size: 1.6rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(154, 68, 41, .35); }
.jr-card__body { padding: 20px 34px 26px; }
.jr-card__title {
	margin: 0 0 16px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--jr-ink);
	font: 800 1.3rem/1.2 var(--font-body);
	text-align: center;
	text-transform: uppercase;
}

/* Gravity Forms (Orbital theme). GF prints its vars on #gform_wrapper_N[data-form-index].gform-theme,
   so this needs one more class-level selector to win. */
#estimate .gform_wrapper.gform-theme[data-form-index] {
	--gf-color-primary: #b5573a;
	--gf-color-primary-rgb: 181, 87, 58;
	--gf-color-primary-darker: #9a4429;
	--gf-color-primary-lighter: #d07656;
	--gf-color-in-ctrl-primary: #b5573a;
	--gf-color-in-ctrl-primary-rgb: 181, 87, 58;
	--gf-color-in-ctrl-primary-darker: #9a4429;
	--gf-color-in-ctrl-primary-lighter: #d07656;
	--gf-ctrl-border-color: #e6dccb;
	--gf-ctrl-label-color-primary: #2a1a10;
	--gf-ctrl-label-color-secondary: #5b4c40;
	--gf-ctrl-placeholder-color: #7a6f66;
	--gf-ctrl-shadow: 0 2px 4px rgba(70, 43, 27, .14);
	--gf-ctrl-size: 44px;
	--gf-radius: 4px;
	--gf-form-gap-y: 12px;
	--gf-font-family-base: var(--font-body);
	--gf-font-family-primary: var(--font-body);
	--gf-font-family-secondary: var(--font-body);
	--gf-font-family-tertiary: var(--font-body);
	--gf-ctrl-font-family: var(--font-body);
	margin: 0;
}
#estimate .gform_wrapper.gform-theme .gfield input:is([type="text"], [type="email"], [type="tel"]) {
	font-weight: 500;
	font-size: .95rem;
}

#estimate .gform_wrapper.gform-theme .ginput_container_date { inline-size: 100%; max-inline-size: none; }
#estimate .gform_wrapper.gform-theme .ginput_container_date { position: relative; }
#estimate .gform_wrapper.gform-theme .ginput_container_date input.datepicker { flex: 1 1 100%; inline-size: 100%; max-inline-size: none; margin: 0; padding-inline-end: 44px; }
#estimate .gform_wrapper.gform-theme .ginput_container_date .gform-datepicker-toggle {
	position: absolute;
	inset-block-start: 22px;
	inset-inline-end: 12px;
	transform: translateY(-50%);
	margin: 0;
}

/* SMS consent */
#estimate .gform_wrapper.gform-theme .gfield--type-consent > .gfield_label {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
#estimate .gform_wrapper.gform-theme .ginput_container_consent { align-items: flex-start; }
#estimate .gform_wrapper.gform-theme .ginput_container_consent label {
	font-size: .72rem;
	line-height: 1.45;
	color: #5b4c40;
}

#estimate .gform_wrapper.gform-theme .gform_footer {
	justify-content: center;
	margin-top: 14px;
	padding: 0;
}
#estimate .gform_wrapper.gform-theme .gform_footer .gform_button {
	min-width: 140px;
	padding: 10px 28px;
	font: 800 1.15rem/1 var(--font-body);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--jr-rust);
	border: 3px solid var(--jr-gold);
	border-radius: 4px;
	box-shadow: none;
}
#estimate .gform_wrapper.gform-theme .gform_footer .gform_button:is(:hover, :focus-visible) {
	background: var(--jr-rust-dark);
}
#estimate .gform_confirmation_message {
	padding: 12px 0;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 500;
}

/* Footer */
.jr-footer {
	padding: 22px 16px;
	background: var(--jr-brown);
	color: #e9dccb;
	text-align: center;
	font-size: .9rem;
}
.jr-footer a { color: #fff; text-decoration: none; font-weight: 700; }

@media (max-width: 1200px) {
	.jr-header__inner { gap: 28px; padding: 0 24px; }
	.jr-header__call-label { display: none; }
	.jr-hero__inner { grid-template-columns: minmax(0, 1fr) 420px; padding: 56px 24px; gap: 32px; }
}

@media (max-width: 900px) {
	.jr-header__inner { min-height: 76px; gap: 16px; padding: 0 16px; }
	.jr-header__logo { margin-bottom: -18px; }
	.jr-header__logo img { width: 120px; }
	.jr-rating { display: none; }
	.jr-header__right { gap: 12px; }
	.jr-header__call-label { display: none; }
	.jr-header__cta { min-width: 0; min-height: 44px; padding: 8px 18px; font-size: 1rem; }

	.jr-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 48px 16px 40px;
		gap: 32px;
	}
	.jr-hero::before { background: linear-gradient(180deg, rgba(70, 43, 27, .8), rgba(70, 43, 27, .7)); }
	.jr-hero__copy { justify-self: stretch; text-align: center; }
	.jr-hero__text { margin-left: auto; margin-right: auto; }
	.jr-card { width: 100%; max-width: 520px; justify-self: center; }
	.jr-card__body { padding: 18px 20px 22px; }
}
