/* Assemblr Home Page — prototype styles.
   --ah-amber below is now set to a visual estimate of the logo's orange (from the
   screenshot of the header — a warm burnt-orange/terracotta, roughly #E25A2C). It's a
   best guess from a rendered screenshot, not a sampled pixel value — swap it for the
   exact hex if you have the brand file, everything else references this one variable.
   9/21: secondary color changed from teal to a dark gray (Cak's call) — kept the same
   variable names (--ah-gray / --ah-gray-dark) so it's one place to swap if it needs
   adjusting later. A third accent, --ah-beige, was added the same day: sampled directly
   from the wooden dowel in the hero photo (median pixel color, ~#b58265), used for
   action buttons and round/numeric call-outs (the step-number badges) specifically —
   general text/label accents stay on --ah-gray. */

.assemblr-home {
	--ah-navy: #12202b;
	--ah-gray: #4a4a4a;
	--ah-gray-dark: #333333;
	--ah-beige: #b58265;
	--ah-beige-dark: #8a5f45;
	--ah-amber: #e25a2c;
	--ah-cream: #f7f4ee;
	--ah-ink: #1c2b33;
	--ah-muted: #5b6b73;
	--ah-white: #ffffff;
	--ah-radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ah-ink);
	line-height: 1.5;
}

.assemblr-home * { box-sizing: border-box; }

.ah-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero — 9/21 buyer-first split layout. Left: real photo + explanation.
   Right: an embedded estimate teaser. See assemblr-home.php for the markup. */
.ah-hero-split {
	display: flex;
	align-items: stretch;
}

/* Left panel: photo, faded left-to-right, with a text-protection scrim on top.
   Two stacked absolutely-positioned layers do the work: .ah-hero-photo (the real
   photo, masked so it's opaque on the left and washes out toward the right edge
   of this panel — falling back to the navy background-color where it fades) and
   .ah-hero-scrim on top of it (darkest directly behind the copy, easing off in
   the same left-to-right direction, so the headline stays legible without
   flattening the whole photo under one dark wash). */
.ah-hero-explain {
	width: 56%;
	position: relative;
	overflow: hidden;
	background-color: var(--ah-navy);
	padding: 72px 64px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}
.ah-hero-photo {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 42%, rgba(0,0,0,.3) 100%);
	mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 42%, rgba(0,0,0,.3) 100%);
}
.ah-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(18,32,43,.93) 0%, rgba(18,32,43,.85) 28%, rgba(18,32,43,.5) 60%, rgba(18,32,43,.28) 100%);
}
.ah-hero-explain-inner {
	position: relative;
	z-index: 1;
	max-width: 520px;
}
.ah-hero-eyebrow {
	margin: 0 0 14px;
	color: var(--ah-amber);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ah-hero-explain-inner h1 {
	margin: 0 0 18px;
	color: var(--ah-white);
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.15;
	font-weight: 700;
}
.ah-hero-sub {
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255,255,255,.85);
	margin: 0 0 36px;
}
.ah-hero-steps {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ah-hero-step {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.ah-hero-step-num {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ah-beige);
	color: var(--ah-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
}
.ah-hero-step-title { margin: 0 0 2px; color: var(--ah-white); font-weight: 600; font-size: 15px; }
.ah-hero-step-desc { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; }

/* Right panel: the estimate teaser card */
.ah-hero-form-panel {
	width: 44%;
	background: var(--ah-cream);
	padding: 56px 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.ah-estimate-card {
	width: 100%;
	max-width: 380px;
	background: var(--ah-white);
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(18,32,43,.12);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ah-estimate-card h2 { margin: 0 0 4px; font-size: 20px; color: var(--ah-navy); }
.ah-estimate-sub { margin: 0; font-size: 13px; color: var(--ah-muted); }
.ah-estimate-card label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ah-ink);
}
.ah-estimate-card select,
.ah-estimate-card input[type="number"],
.ah-estimate-card input[type="text"] {
	padding: 10px 12px;
	border: 1px solid #e3ddd0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ah-ink);
}
.ah-estimate-row { display: flex; gap: 12px; }
.ah-estimate-row label { flex: 1; }
.ah-estimate-upload-hint {
	display: block;
	border: 1.5px dashed #d8d1c2;
	border-radius: 8px;
	padding: 14px;
	text-align: center;
	color: #9aa3a8;
	font-size: 13px;
	font-weight: 400;
}
.ah-estimate-submit { margin-top: 4px; width: 100%; text-align: center; padding: 14px; }
.ah-estimate-fineprint { margin: 0; font-size: 11px; color: #9aa3a8; text-align: center; }

.ah-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	font-size: 16px;
	transition: transform .12s ease, opacity .12s ease;
}
.ah-btn:hover { transform: translateY(-1px); opacity: .92; text-decoration: none; }
.ah-btn-primary { background: var(--ah-beige); color: var(--ah-navy); }
.ah-btn-ghost {
	background: transparent;
	color: var(--ah-white);
	border: 1.5px solid rgba(255,255,255,.7);
}

/* How it works */
.ah-how { background: var(--ah-white); padding: 72px 0; }
.ah-how h2, .ah-trust h2 {
	font-size: clamp(24px, 3vw, 32px);
	text-align: center;
	margin: 0 0 40px;
	color: var(--ah-navy);
}
.ah-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.ah-step { text-align: center; padding: 0 8px; }
.ah-step-num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ah-beige);
	color: var(--ah-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin: 0 auto 16px;
}
.ah-step h3 { margin: 0 0 8px; font-size: 18px; }
.ah-step p { margin: 0; color: var(--ah-muted); font-size: 15px; }

/* Trust */
.ah-trust { background: var(--ah-cream); padding: 72px 0; }
.ah-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}
.ah-trust-item {
	background: var(--ah-white);
	border-radius: var(--ah-radius);
	padding: 22px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ah-trust-item h4 { margin: 0 0 8px; font-size: 16px; color: var(--ah-gray-dark); }
.ah-trust-item p { margin: 0; font-size: 14px; color: var(--ah-muted); }
.ah-trust-footnote {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	color: var(--ah-muted);
	font-size: 14px;
}

/* 9/21: the "Are you a pro?" section and the plugin's own footer were both
   removed from the home page (pro content now lives only on the pro pages;
   footer is managed through the WordPress Footer template part instead), so
   their CSS (.ah-pros*, .ah-footer*) was removed too — nothing references it. */

@media (max-width: 860px) {
	.ah-steps { grid-template-columns: 1fr; gap: 36px; }
	.ah-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.ah-hero-split { flex-direction: column; }
	.ah-hero-explain, .ah-hero-form-panel { width: 100%; }
	.ah-hero-explain { padding: 48px 28px; }
	.ah-hero-form-panel { padding: 40px 28px; }
}
@media (max-width: 480px) {
	.ah-trust-grid { grid-template-columns: 1fr; }
	.ah-estimate-row { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
 * Header nav (.ah-site-nav) — for the header template part / Custom HTML block,
 * so it's self-contained (its own variables) rather than depending on being nested
 * inside .assemblr-home, which the header usually isn't. Matches the same palette.
 * ------------------------------------------------------------------------ */
.ah-site-nav {
	--ah-nav-ink: #1c2b33;
	--ah-nav-orange: #e25a2c;
	--ah-nav-muted: #5b6b73;
	--ah-nav-border: #ececec;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 32px;
	background: #ffffff;
	border-bottom: 1px solid var(--ah-nav-border);
	flex-wrap: wrap;
}
.ah-site-nav * { box-sizing: border-box; }

/* Left group: logo + "Hire a Pro" (9/21: moved here from the right side, renamed
   from "Get an Estimate"). Kept together so they scale/wrap as one unit. */
.ah-site-nav-left { display: flex; align-items: center; gap: 20px; }
.ah-site-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 0; }
.ah-site-nav-logo { height: 30px; width: auto; display: block; }
.ah-site-nav-hire {
	background: var(--ah-nav-orange);
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .12s ease;
}
.ah-site-nav-hire:hover { opacity: .88; color: #ffffff; text-decoration: none; }

.ah-site-nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.ah-site-nav-links a {
	color: var(--ah-nav-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.ah-site-nav-links a:hover { color: var(--ah-nav-orange); }

/* "Become a Pro" — 9/21: moved to the right as a real button (was a quiet
   "For Pros" text link), outlined rather than filled so it still reads as
   secondary to "Hire a Pro" on the left. */
.ah-site-nav-cta {
	background: transparent;
	color: var(--ah-nav-ink);
	border: 1.5px solid var(--ah-nav-ink);
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .12s ease, color .12s ease;
}
.ah-site-nav-cta:hover { background: var(--ah-nav-ink); color: #ffffff; text-decoration: none; }

@media (max-width: 860px) {
	.ah-site-nav { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 20px; }
	.ah-site-nav-left { flex-wrap: wrap; gap: 14px; }
	.ah-site-nav-links { gap: 16px; row-gap: 8px; }
}
