/*
 * Liberty Tribune — site styles.
 *
 * Loaded after style.css (the untouched _s base). No design file: the brief
 * was to rebuild the live Elementor/Astra site as-is on the FACT stack.
 * Reference is the live site on 2026-10-15 and its siblings on tag-fact-lead
 * (freedomeagle.co): the flag photo filling the screen, a black Helvetica
 * heading over the open sky on the left, the five-field Gravity Form with
 * bold black labels and white inputs, and a full-width dark red "SIGN UP".
 *
 * Type is the system sans stack (Helvetica on Apple devices, which is what
 * the Elementor kit asked for). Nothing is fetched.
 */

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

:root {
	--c-red: #8f0208;          /* Elementor button colour */
	--c-red-hover: #6e0106;
	--c-ink: #000;             /* heading + labels, as set in Elementor */
	--c-text: #222;
	--c-muted: #6b6b6b;
	--c-link: #8f0208;
	--c-link-hover: #5a0105;
	--c-field-border: #d1d1d1; /* Elementor input border, 2px */
	--c-line: #e6e6e6;
	--c-white: #fff;
	--font-body: "Helvetica Neue", helvetica, arial, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
	--pad-x: clamp(20px, 4.2vw, 60px);
	--content: 1240px;
	--radius-field: 3px;
}

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--c-text);
	background: var(--c-white);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Link colours. The _s base sets royalblue / purple-when-visited, and its
 * `a:visited` selector outranks a single class, so :visited is declared.
 */
a {
	color: var(--c-link);
}

a:visited {
	color: var(--c-link);
}

a:hover,
a:focus,
a:active {
	color: var(--c-link-hover);
}

.button {
	display: inline-block;
	padding: 14px 28px;
	border-radius: var(--radius-field);
	background: var(--c-red);
	color: var(--c-white);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.button:visited {
	color: var(--c-white);
}

.button:hover,
.button:focus {
	background: var(--c-red-hover);
	color: var(--c-white);
}

/* --------------------------------------------------------------------------
 * Front page: the hero
 * ------------------------------------------------------------------------ */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	isolation: isolate;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: #b9c0cc; /* the photo's sky, while it loads */
}

.hero__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

.hero__inner {
	width: 100%;
	max-width: var(--content);
	margin: 0 auto;
	padding: clamp(48px, 8vh, 96px) var(--pad-x);
}

/* The sky is open on the left of the photo; the flag flies on the right. */
.hero__content {
	width: 100%;
	max-width: 540px;
}

.hero__title {
	margin: 0 0 18px;
	color: var(--c-ink);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.hero__form-empty {
	margin: 0;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-field);
	color: var(--c-text);
}

/* ----- Gravity Forms (plugin CSS disabled; the theme owns the markup) ---- */

.hero__form .gform_wrapper {
	text-align: left;
}

.hero__form .gform_wrapper form {
	margin: 0;
}

.hero__form .gform_heading {
	display: none;
}

.hero__form .gform_fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero__form .gfield {
	margin: 0;
}

.hero__form .gfield_label,
.hero__form legend.gfield_label {
	display: block;
	margin: 0 0 6px;
	color: var(--c-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.hero__form .gfield_required {
	display: none;
}

.hero__form .ginput_container input[type="text"],
.hero__form .ginput_container input[type="email"],
.hero__form .ginput_container input[type="tel"],
.hero__form .ginput_container input[type="number"] {
	display: block;
	width: 100%;
	background: var(--c-white);
	border: 2px solid var(--c-field-border);
	border-radius: var(--radius-field);
	padding: 10px 12px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: normal;
	color: var(--c-text);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.hero__form .ginput_container input::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.hero__form .ginput_container input:focus {
	outline: 2px solid var(--c-ink);
	outline-offset: -2px;
	border-color: var(--c-ink);
}

/* GF renders some fields as fieldsets: neutralise browser chrome. */
.hero__form fieldset.gfield {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.hero__form .gfield_description {
	margin-top: 6px;
	font-size: 14px;
	color: var(--c-text);
}

/* Validation */
.hero__form .gform_validation_errors {
	margin: 0 0 18px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid var(--c-red);
	border-radius: var(--radius-field);
}

.hero__form .gform_validation_errors h2 {
	margin: 0;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	color: var(--c-red);
}

.hero__form .gform_validation_errors ol {
	display: none;
}

.hero__form .gfield_validation_message,
.hero__form .validation_message {
	margin-top: 6px;
	padding: 4px 8px;
	display: inline-block;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-field);
	font-size: 14px;
	font-weight: 600;
	color: var(--c-red);
}

.hero__form .gfield_error .ginput_container input {
	border-color: var(--c-red);
}

/* Honeypot: GF hides it inline; belt and braces. */
.hero__form .gform_validation_container {
	display: none !important;
}

/* Submit: full width, uppercase, the Elementor red. */
.hero__form .gform_footer {
	margin: 22px 0 0;
	padding: 0;
}

.hero__form .gform_footer input[type="submit"],
.hero__form .gform_footer button {
	display: block;
	width: 100%;
	background: var(--c-red);
	color: var(--c-white);
	border: 0;
	border-radius: var(--radius-field);
	padding: 16px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: normal;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.hero__form .gform_footer input[type="submit"]:hover,
.hero__form .gform_footer input[type="submit"]:focus,
.hero__form .gform_footer button:hover,
.hero__form .gform_footer button:focus {
	background: var(--c-red-hover);
}

.hero__form .gform_footer input[type="submit"]:focus-visible,
.hero__form .gform_footer button:focus-visible {
	outline: 2px solid var(--c-ink);
	outline-offset: 2px;
}

/* GF's AJAX spinner has no place here (non-AJAX form). */
.hero__form .gform_ajax_spinner {
	display: none;
}

/* Confirmation */
.hero__form .gform_confirmation_wrapper {
	padding: 18px 20px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-field);
}

.hero__form .gform_confirmation_message {
	font-size: 18px;
	line-height: 1.5;
	color: var(--c-ink);
}

.hero__form .gform_confirmation_message p {
	margin: 0;
}

/* Phones: the flag ends up behind the form, so lift the column off the photo. */
@media (max-width: 759px) {
	.hero {
		align-items: flex-start;
	}

	.hero__inner {
		padding: 40px 20px 48px;
	}

	.hero__content {
		max-width: none;
		padding: 20px 18px 22px;
		background: rgba(255, 255, 255, 0.72);
		border-radius: 6px;
	}

	.hero__title {
		font-size: 26px;
	}

	.hero__form .gform_fields {
		gap: 14px;
	}
}

/* --------------------------------------------------------------------------
 * Header (interior pages only)
 * ------------------------------------------------------------------------ */

.site-header {
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
	max-width: var(--content);
	margin: 0 auto;
	padding: 18px var(--pad-x);
}

.site-branding {
	line-height: 0;
}

.custom-logo-link {
	display: inline-block;
	text-decoration: none;
}

.custom-logo-link:visited {
	color: var(--c-ink);
}

.custom-logo {
	display: block;
	width: auto;
	height: 44px;
}

.site-wordmark {
	display: inline-block;
	color: var(--c-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

@media (max-width: 559px) {
	.custom-logo {
		height: 36px;
	}

	.site-wordmark {
		font-size: 19px;
	}
}

/* --------------------------------------------------------------------------
 * Interior pages (Privacy Policy, 404)
 * ------------------------------------------------------------------------ */

.page-main {
	max-width: var(--content);
	margin: 0 auto;
	padding: 48px var(--pad-x) 80px;
}

.page-main .entry-header {
	margin: 0 0 28px;
}

.page-main .entry-title {
	margin: 0;
	color: var(--c-ink);
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.page-main .entry-content {
	max-width: 860px;
	font-size: 16px;
	line-height: 1.65;
}

.page-main .entry-content > :first-child {
	margin-top: 0;
}

.page-main .entry-content p {
	margin: 0 0 1.1em;
}

.page-main .entry-content strong {
	color: var(--c-ink);
}

.page-main .entry-content h2,
.page-main .entry-content h3 {
	margin: 1.6em 0 0.5em;
	color: var(--c-ink);
	line-height: 1.2;
}

.page-main .entry-content ul,
.page-main .entry-content ol {
	margin: 0 0 1.1em 1.4em;
}

.error-404 {
	padding: 48px 0 32px;
	text-align: center;
}

.error-404__code {
	margin: 0;
	color: var(--c-red);
	font-size: clamp(64px, 9vw, 96px);
	font-weight: 800;
	line-height: 1;
}

.error-404__title {
	margin: 12px 0 10px;
	color: var(--c-ink);
	font-size: clamp(24px, 3vw, 32px);
}

.error-404__message {
	margin: 0 0 28px;
}

.error-404__actions {
	margin: 0;
}

/* --------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.site-footer {
	padding: 36px var(--pad-x) 40px;
	background: var(--c-white);
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: 15px;
	text-align: center;
}

.footer-social-links {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.footer-social-links a {
	display: block;
	color: var(--c-muted);
	line-height: 0;
}

.footer-social-links a:hover,
.footer-social-links a:focus {
	color: var(--c-red);
}

.site-footer .site-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px 24px;
	margin: 0;
}

.footer-legal-links a {
	color: var(--c-muted);
	text-decoration: underline;
}

.footer-legal-links a:visited {
	color: var(--c-muted);
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
	color: var(--c-ink);
}
