/* =====================================================================
   TAG FACT Lead — main stylesheet
   All design tokens come from CSS variables set in <head> by
   inc/brand.php from ACF Brand Settings. Defaults live in brand.php.
   ===================================================================== */

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
	margin: 0;
	font-family: var(--font-body, Helvetica, Arial, sans-serif);
	color: var(--body-color, #1a1a1a);
	background: var(--body-bg, #fff);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px;
	overflow: hidden;
}

/* --- Layout shell --- */
.site-main { min-height: 100vh; }

.site-footer {
	padding: 1.5rem 1.25rem;
	background: var(--body-bg, #fff);
	border-top: 1px solid #eee;
	text-align: center;
	font-size: 0.85rem;
	color: #555;
}
.site-footer__copy { margin: 0; }
.site-footer a { color: var(--brand-primary, #111); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* =====================================================================
   Home — full-viewport hero
   ===================================================================== */
.hero {
	min-height: 100vh;
	background-color: #1a1a1a;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	align-items: stretch;
	padding: 0;
}
.hero--no-image { background: var(--body-bg, #fff); }

.hero__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 4rem 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}

.hero__content {
	background: var(--hero-overlay, rgba(255,255,255,0.85));
	padding: 2rem;
	border-radius: 6px;
}

.hero__heading {
	font-family: var(--font-heading, Helvetica, Arial, sans-serif);
	font-weight: 600;
	color: var(--heading-color, #000);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.25;
	margin: 0 0 1.25rem;
}

.hero__subheading {
	font-family: var(--font-body, Helvetica, Arial, sans-serif);
	color: var(--heading-color, #000);
	font-size: 1.05rem;
	margin: 0 0 1.5rem;
}

/* =====================================================================
   Gravity Forms — overrides
   ===================================================================== */
.hero__form .gform_wrapper { margin: 0; }
.hero__form .gform_wrapper form { margin: 0; }

.hero__form .gform_wrapper .gfield { margin-bottom: 0.75rem; }

.hero__form .gform_wrapper .gfield_label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: var(--body-color, #1a1a1a);
}

.hero__form .gform_wrapper input[type="text"],
.hero__form .gform_wrapper input[type="email"],
.hero__form .gform_wrapper input[type="tel"] {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c2c2c2;
	border-radius: 4px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.3;
}

.hero__form .gform_wrapper input:focus {
	outline: 2px solid var(--brand-primary, #111);
	outline-offset: 1px;
	border-color: var(--brand-primary, #111);
}

.hero__form .gform_wrapper .gform_footer { padding: 0.5rem 0 0; margin: 0; }
.hero__form .gform_wrapper input[type="submit"],
.hero__form .gform_wrapper button[type="submit"] {
	display: inline-block;
	width: 100%;
	padding: 0.85rem 1.5rem;
	background: var(--brand-primary, #111);
	color: var(--brand-on-primary, #fff);
	border: 0;
	border-radius: 4px;
	font-family: var(--font-button, Roboto, Arial, sans-serif);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: var(--button-text-transform, uppercase);
	cursor: pointer;
	transition: background 0.15s ease;
}
.hero__form .gform_wrapper input[type="submit"]:hover,
.hero__form .gform_wrapper button[type="submit"]:hover {
	background: var(--brand-primary-hover, #000);
}

.hero__form .gform_wrapper .gform_validation_errors,
.hero__form .gform_wrapper .gform_confirmation_message {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}
.hero__form .gform_wrapper .gform_validation_errors {
	background: #fdeaea;
	color: #b00020;
	border: 1px solid #f3c2c2;
}
.hero__form .gform_wrapper .gform_confirmation_message {
	background: #eaf6ea;
	color: #1f5c1f;
	border: 1px solid #c2e0c2;
}

.hero__form .gform_validation_container,
.hero__form .gform_required_legend { display: none !important; }

.hero__form-empty {
	background: #fff;
	padding: 1rem;
	border: 1px dashed #ccc;
	border-radius: 4px;
}

/* =====================================================================
   Default page (e.g. Privacy Policy)
   ===================================================================== */
.page__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
}
.page__header { margin-bottom: 2rem; }
.page__title {
	font-family: var(--font-heading, Helvetica, Arial, sans-serif);
	font-weight: 600;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin: 0 0 0.5rem;
	color: var(--heading-color, #000);
}
.page__content p { margin: 0 0 1.1rem; }
.page__content ul, .page__content ol { margin: 0 0 1.1rem 1.25rem; padding: 0; }
.page__content li { margin: 0 0 0.5rem; }
.page__content a { color: var(--brand-primary, #111); }
.page__content b, .page__content strong { font-weight: 700; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 768px) {
	.hero__inner {
		grid-template-columns: 1fr;
		padding: 3rem 1.25rem;
	}
	.hero__content {
		padding: 1.5rem;
	}
	.hero__heading { font-size: 1.65rem; }
}
