/**
 * Homepage (template-home.php): shared base.
 *
 * Tokens, type scale, links and the three design-system components the
 * sections use (eyebrow, button, URL capture), ported from the approved
 * gs-page-design package (gs.css + the Growth Saloon kit bundle). Section
 * rules live in assets/css/home/NN-*.css and load after this file.
 *
 * Layout split: desktop layout from 1024px up; below 1024px every section
 * uses its phone layout (768-1023px is the phone layout, capped per section).
 *   .gh-d  desktop-only block   .gh-m  phone-only block
 *
 * Specificity: Hello's reset and the Elementor kit style bare elements
 * (button:hover, [type=submit]:hover, kit h2/a ...). Base rules here are
 * scoped `.gs-home .gh ...` and section rules `.gs-home .gh-NN ...`, which
 * beat them; section files load later, so they win ties with this file.
 */

/* ---------- Tokens ---------- */

.gs-home {
	--font-display: "Russo One", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, sans-serif;
	--space-2: 4px; --space-3: 6px; --space-4: 8px; --space-5: 10px; --space-6: 12px; --space-7: 14px; --space-8: 16px; --space-9: 20px; --space-10: 24px; --space-11: 28px; --space-12: 32px; --space-13: 40px; --space-14: 48px; --space-15: 64px; --space-16: 80px; --space-17: 96px; --space-18: 128px;
	--radius-6: 6px; --radius-8: 8px; --radius-12: 12px; --radius-16: 16px; --radius-20: 20px; --radius-32: 32px; --radius-48: 48px; --radius-100: 100px;
	--brand-primary-main: #b2582e; --brand-primary-hover: #c96a3b; --text-brand-em: #b2582e; --text-brand-main: #d2904d; --brand-tan: #dba96e; --brand-peach: #ffd39f; --stat-cream: #f4e5d1; --white: #ffffff; --text-on-brand: #ffffff; --text-black: #131419; --cta-gradient-start: #333333; --cta-gradient-end: #a4542e; --warning-main: #fed350; --info-main: #3c93f7;
	--gh-gutter: 48px;
	display: block;
	background: #131419;
}

.gs-home [data-theme="dark"] {
	--surface-bg: #131419; --surface-0: #121212; --surface-1: #2b2b2b; --surface-2: #333333; --surface-foreground: #1a1c22; --surface-back-grey: #20222b; --surface-brand-accent-0: #131419; --surface-brand-accent-1: #1a1c22; --page-bg: #131419; --card-bg: #20222b; --input-bg: #20222b; --footer-bg: #20222b;
	--text-high-em: #f8f8f8; --text-med-em: #d0d0d0; --text-low-em: #b5b5b5; --text-placeholder: #b5b5b5;
	--outline-base-em: #242424; --outline-low-em: #333333; --outline-med-em: #333333; --outline-high-em: #595959; --outline-brand-base-em: #793427; --outline-brand-low-em: #793427; --outline-brand-med-em: #b2582e; --outline-brand-high-em: #dba96e;
	--focus-ring: #dba96e; --elevation-e1: 0 1px 3px -1px #0000007a; --elevation-e3: 8px 0 25.8px -4px #00000052;
}

.gs-home [data-theme="light"] {
	--surface-bg: #fbfbfb; --surface-0: #ffffff; --surface-1: #f3f3f3; --surface-2: #ececec; --surface-foreground: #f4e5d1; --surface-back-grey: #ffffff; --surface-brand-accent-0: #fbf6ef; --surface-brand-accent-1: #f4e5d1; --page-bg: #fbf6ef; --card-bg: #ffffff; --input-bg: #f3f3f3; --footer-bg: #2b2b2b;
	--text-high-em: #242424; --text-med-em: #4f4f4f; --text-low-em: #6d6d6d; --text-placeholder: #afafaf;
	--outline-base-em: #ececec; --outline-low-em: #ececec; --outline-med-em: #dadada; --outline-high-em: #dadada; --outline-brand-base-em: #f4e5d1; --outline-brand-low-em: #e7caa0; --outline-brand-med-em: #b2582e; --outline-brand-high-em: #c97337;
	--focus-ring: #b2582e; --elevation-e1: 0 1px 3px -1px #00000029; --elevation-e2: 0 3px 4px -2px #00000029; --elevation-e4: 0 18px 32px -8px #0000001f;
}

/* ---------- Section root (the design's .ab artboard, now fluid) ---------- */

.gs-home .gh {
	position: relative;
	overflow: hidden;
	width: 100%;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 27px;
	font-weight: 400;
	background: var(--page-bg);
	color: var(--text-high-em);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.gs-home .gh *,
.gs-home .gh *::before,
.gs-home .gh *::after {
	box-sizing: border-box;
}

/* Element reset (beats Hello's reset and the Elementor kit). */
.gs-home .gh :is(p, h1, h2, h3, h4, h5, h6, figure, blockquote, ul, ol, dl, dd, table) {
	margin: 0;
}

.gs-home .gh :is(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.gs-home .gh :is(ul, ol) {
	padding: 0;
	list-style: none;
}

.gs-home .gh img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

.gs-home .gh a {
	color: inherit;
	text-decoration: none;
	background-color: transparent;
}

.gs-home .gh a:hover,
.gs-home .gh a:active {
	color: inherit;
}

.gs-home .gh figcaption {
	font-style: normal;
	color: inherit;
}

.gs-home .gh label {
	display: inline;
	line-height: inherit;
	vertical-align: baseline;
}

.gs-home button,
.gs-home [type="button"],
.gs-home [type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: none;
	white-space: normal;
	box-shadow: none;
	transition: none;
	-webkit-appearance: none;
	appearance: none;
	-webkit-user-select: none;
	user-select: none;
	cursor: pointer;
}

.gs-home button:hover,
.gs-home button:focus,
.gs-home [type="button"]:hover,
.gs-home [type="button"]:focus,
.gs-home [type="submit"]:hover,
.gs-home [type="submit"]:focus {
	background-color: transparent;
	color: inherit;
	text-decoration: none;
}

.gs-home .gh table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
	font-size: inherit;
}

.gs-home .gh table :is(td, th) {
	border: 0;
	padding: 0;
	background: transparent;
	line-height: inherit;
	vertical-align: baseline;
}

.gs-home .gh table tbody tr:is(:nth-child(odd), :hover) > :is(td, th) {
	background-color: transparent;
}

/* Focus (beats Hello's [tabindex]:not():not():focus-visible). */
.gs-home .gh :is(a, button, summary, input, label, [tabindex]):focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 3px;
	border-radius: 6px;
	box-shadow: none;
}

.gs-home .gh :is(a, button, summary, input, [tabindex]):focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

/* ---------- Containers and layout switch ---------- */

.gs-home .gh .w {
	width: min(1200px, calc(100% - 2 * var(--gh-gutter)));
	margin: 0 auto;
}

@media (max-width: 1279px) {
	.gs-home {
		--gh-gutter: 40px;
	}
}

@media (min-width: 1024px) {
	.gs-home .gh-m {
		display: none !important;
	}
}

@media (max-width: 1023px) {
	.gs-home .gh-d {
		display: none !important;
	}
}

/* Pull the first (dark) section up under the sticky global header, which sits
   in normal flow above <main>. --gs-header-h is published by
   contact-figma-header.js; the header CSS holds first-paint fallbacks. */
.gs-home > .gh:first-child {
	margin-top: calc(-1 * var(--gs-header-h, 91px));
}

/* ---------- Type ---------- */

.gs-home .gh .disp {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--text-high-em);
	text-wrap: balance;
}

.gs-home .gh .t-hero { font-size: 80px; line-height: 1.02; letter-spacing: -.01em; }
.gs-home .gh .t-1 { font-size: 60px; line-height: 1.06; letter-spacing: -.005em; }
.gs-home .gh .t-2 { font-size: 46px; line-height: 1.1; }
.gs-home .gh .t-3 { font-size: 32px; line-height: 1.18; }
.gs-home .gh .t-4 { font-size: 24px; line-height: 1.25; }
.gs-home .gh .t-5 { font-size: 19px; line-height: 1.3; }
.gs-home .gh .lead { font-size: 20px; line-height: 31px; color: var(--text-med-em); }
.gs-home .gh .body { font-size: 17px; line-height: 27px; color: var(--text-med-em); }
.gs-home .gh .sm { font-size: 15px; line-height: 23px; color: var(--text-med-em); }
.gs-home .gh .xs { font-size: 13px; line-height: 20px; color: var(--text-low-em); }
.gs-home .gh .lbl { font-size: 13px; font-weight: 600; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-med-em); }
.gs-home .gh .num { font-family: var(--font-body); font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--text-high-em); }
.gs-home .gh .hi { color: var(--text-high-em); }
.gs-home .gh :is(b, strong) { font-weight: 600; }

/* ---------- Lines, links, secondary button ---------- */

.gs-home .gh .rule { height: 1px; background: var(--outline-high-em); border: 0; margin: 0; }
.gs-home .gh[data-theme="light"] .rule { background: #ddcdb6; }

.gs-home .gh .lnk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--text-high-em);
	text-decoration: none;
}

.gs-home .gh .lnk svg { width: 18px; height: 18px; color: var(--text-brand-em); transition: transform .2s ease; }
.gs-home .gh[data-theme="dark"] .lnk svg { color: var(--brand-tan); }
.gs-home .gh .lnk:hover svg { transform: translateX(2px); }

.gs-home .gh .btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 100px;
	border: 1px solid var(--outline-high-em);
	color: var(--text-high-em);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none;
	background: transparent;
	transition: border-color .2s ease;
}

.gs-home .gh .btn2:hover { border-color: var(--brand-tan); }
.gs-home .gh[data-theme="light"] .btn2 { border-color: #cdb99c; }
.gs-home .gh[data-theme="light"] .btn2:hover { border-color: var(--brand-primary-main); }

.gs-home .gh .sr,
.gs-home .gh .gh-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.gs-home .gh .stars { display: inline-flex; gap: 2px; color: var(--warning-main); }
.gs-home .gh[data-theme="light"] .stars { color: var(--brand-primary-main); }
.gs-home .gh .stars svg { width: 16px; height: 16px; }

/* ---------- Design-system components ---------- */

.gs-home .gh .gs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-6);
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--text-brand-em);
}

.gs-home .gh .gs-eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--brand-primary-main); }
.gs-home .gh .gs-eyebrow--gold { color: var(--text-brand-main); }
.gs-home .gh .gs-eyebrow--gold::after { background: var(--text-brand-main); }

.gs-home .gh .gs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: var(--space-6) var(--space-10);
	border: 0;
	border-radius: var(--radius-100);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s;
}

.gs-home .gh .gs-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.gs-home .gh .gs-btn--primary { background: var(--brand-primary-main); color: var(--text-on-brand); }
.gs-home .gh .gs-btn--primary:hover,
.gs-home .gh .gs-btn--primary:focus-visible { background: var(--brand-primary-hover); color: var(--text-on-brand); }
.gs-home .gh .gs-btn--sm { height: 40px; padding: var(--space-4) var(--space-8); font-size: 14px; font-weight: 600; line-height: 16px; }
.gs-home .gh .gs-btn--sm svg { width: 18px; height: 18px; }
.gs-home .gh .gs-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.gs-home .gh .gs-url {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: 0;
	padding: var(--space-3) var(--space-3) var(--space-3) var(--space-8);
	background: var(--input-bg);
	border-radius: var(--radius-100);
	font-family: var(--font-body);
	max-width: 520px;
}

.gs-home .gh[data-theme="light"] .gs-url { border: 1px solid var(--outline-low-em); }
.gs-home .gh .gs-url__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-low-em); }

.gs-home .gh .gs-url .gs-url__input {
	flex: 1 1 0%;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 24px;
	color: var(--text-high-em);
	transition: none;
}

.gs-home .gh .gs-url .gs-url__input::placeholder { color: var(--text-placeholder); opacity: 1; }
.gs-home .gh .gs-url .gs-url__input:focus,
.gs-home .gh .gs-url .gs-url__input:focus-visible { outline: none; box-shadow: none; border: 0; }
.gs-home .gh .gs-url:focus-within { box-shadow: 0 0 0 2px var(--focus-ring); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.gs-home .gh *,
	.gs-home .gh *::before,
	.gs-home .gh *::after {
		transition: none !important;
		animation: none !important;
	}
}
