/*
 * Traders Edge — Contact (staging)
 * All rules are scoped under .te-contact so this cannot bleed into the
 * active theme, Elementor, other plugin styles, or the separate
 * traders-edge-* plugins. Deliberately self-contained/duplicated rather
 * than sharing a stylesheet, so each plugin stays independently
 * reversible. Values (colours, widths, paddings, header/footer, buttons,
 * CTA) are copied directly from the homepage's design system.
 */

.te-contact {
	--te-bg: #14130f;
	--te-bg-alt: #1b1a15;
	--te-gold: #c9a25a;
	--te-gold-soft: rgba(201, 162, 90, 0.35);
	--te-off-white: #f2efe7;
	--te-off-white-bright: #fffaf0;
	--te-off-white-dim: rgba(242, 239, 231, 0.72);

	color: var(--te-off-white);
	background: var(--te-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	box-sizing: border-box;

	/* Matches the homepage's band width exactly — see the other
	   traders-edge-* plugins for the measured 1200px/10px derivation. */
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

.te-contact *,
.te-contact *::before,
.te-contact *::after {
	box-sizing: inherit;
}

.te-contact__inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px;
}

.te-contact__inner--narrow {
	max-width: 760px;
}

/* Buttons */

.te-contact__btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.te-contact__btn--primary {
	background: var(--te-gold);
	color: #14130f;
}

.te-contact__btn--primary:hover {
	opacity: 0.88;
}

.te-contact__btn--secondary {
	background: transparent;
	color: var(--te-off-white);
	border: 1px solid var(--te-gold-soft);
}

.te-contact__btn--secondary:hover {
	border-color: var(--te-gold);
	color: var(--te-gold);
}

/*
 * Keyboard focus indicator. The active theme resets outline:none !important
 * on every link (selector "body a"); the class-level selector below
 * outranks that on specificity alone, so it wins regardless of stylesheet
 * load order without needing to touch the theme. Also covers the native
 * CF7 form controls and submit button.
 */
.te-contact a:focus-visible,
.te-contact button:focus-visible,
.te-contact__form-wrap .wpcf7-form-control:focus-visible {
	outline: 2px solid var(--te-gold) !important;
	outline-offset: 3px;
}

.te-contact__btn--small {
	padding: 9px 18px;
	font-size: 13px;
}

.te-contact__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* Site header */

.te-contact__site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--te-bg);
	border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}

.te-contact__site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.te-contact__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--te-off-white-bright);
	text-decoration: none;
}

.te-contact__brand:hover {
	color: var(--te-gold);
}

/*
 * !important on width/height: Elementor's own frontend stylesheet ships
 * ".elementor img { height: auto; max-width: 100%; }", which outranks our
 * single-class selector on specificity alone (class+type beats class).
 */
.te-contact__brand-icon {
	display: block;
	width: auto !important;
	height: 28px !important;
	flex-shrink: 0;
}

.te-contact__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.te-contact__nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.te-contact__nav-links a {
	font-size: 14px;
	font-weight: 500;
	color: var(--te-off-white-dim);
	text-decoration: none;
	transition: color 0.15s ease;
}

.te-contact__nav-links a:hover {
	color: var(--te-off-white);
}

.te-contact__nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.te-contact__nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.te-contact__nav-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--te-off-white);
}

.te-contact .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Site footer */

.te-contact__site-footer {
	background: var(--te-bg-alt);
	padding: 48px 0 32px;
	border-top: 1px solid rgba(242, 239, 231, 0.08);
	text-align: left;
}

.te-contact__site-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.te-contact__footer-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.te-contact__brand--footer {
	margin: 0;
	font-size: 15px;
}

.te-contact__footer-tagline {
	margin: 0;
	max-width: 420px;
	font-size: 14px;
	color: var(--te-off-white-dim);
}

.te-contact__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.te-contact__footer-links a {
	font-size: 13.5px;
	color: var(--te-off-white-dim);
	text-decoration: none;
}

.te-contact__footer-links a:hover {
	color: var(--te-gold);
}

.te-contact__footer-copy {
	margin: 8px 0 0;
	padding-top: 20px;
	font-size: 12.5px;
	color: rgba(242, 239, 231, 0.52);
	border-top: 1px solid rgba(242, 239, 231, 0.06);
}

/* Hero — same headline/lede treatment as the homepage hero. */

.te-contact__hero {
	background: var(--te-bg);
	padding: clamp(50px, 8vw, 110px) 0 clamp(40px, 5.5vw, 72px);
	text-align: center;
}

/*
 * !important on color only: the Vayvo Progression theme applies its own
 * default h1 color (a grey, ~#7a7a7a) after ours in the cascade.
 * Confirmed live — font-size/weight rendered correctly, only color was
 * being overridden.
 */
.te-contact__headline {
	margin: 0 0 20px;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--te-off-white-bright) !important;
}

.te-contact__lede {
	margin: 0 auto;
	max-width: 560px;
	font-size: clamp(16px, 2vw, 19px);
	color: var(--te-off-white-dim);
}

/* Form section */

.te-contact__form-section {
	background: var(--te-bg-alt);
	padding: clamp(52px, 7.5vw, 92px) 0;
	border-top: 1px solid rgba(242, 239, 231, 0.06);
}

.te-contact__form-wrap {
	text-align: left;
}

/* Contact Form 7 dark-theme reskin — CF7 ships unstyled markup by
   default, so its default fields/labels/button are restyled here to
   match the homepage's palette and button treatment. */

.te-contact__form-wrap .wpcf7-form p {
	margin: 0 0 20px;
}

.te-contact__form-wrap .wpcf7-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--te-off-white-dim);
}

.te-contact__form-wrap .wpcf7-form-control {
	width: 100%;
	padding: 12px 16px;
	background: rgba(242, 239, 231, 0.04);
	border: 1px solid rgba(242, 239, 231, 0.16);
	border-radius: 2px;
	color: var(--te-off-white);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s ease;
}

.te-contact__form-wrap .wpcf7-form-control::placeholder {
	color: rgba(242, 239, 231, 0.35);
}

.te-contact__form-wrap .wpcf7-form-control:focus {
	outline: none;
	border-color: var(--te-gold);
}

.te-contact__form-wrap textarea.wpcf7-form-control {
	min-height: 160px;
	resize: vertical;
}

/*
 * !important is used on this button only: the Vayvo Progression theme's
 * own stylesheet enqueues after ours and applies a generic orange/white
 * button style directly to input[type=submit], which otherwise wins the
 * cascade purely on load order. Confirmed on the live page (background
 * was rendering theme orange #dd9933, not our gold, before this fix).
 */
.te-contact__form-wrap .wpcf7-submit {
	width: auto !important;
	padding: 14px 32px !important;
	background: var(--te-gold) !important;
	border: none !important;
	border-radius: 2px !important;
	color: #14130f !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.te-contact__form-wrap .wpcf7-submit:hover {
	opacity: 0.88;
}

.te-contact__form-wrap .wpcf7-spinner {
	vertical-align: middle;
}

.te-contact__form-wrap .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #e2a0a0;
}

.te-contact__form-wrap .wpcf7-response-output {
	margin-top: 20px;
	padding: 14px 16px;
	border: 1px solid rgba(242, 239, 231, 0.16);
	border-radius: 2px;
	font-size: 14px;
	color: var(--te-off-white-dim);
}

.te-contact__form-wrap form.sent .wpcf7-response-output {
	border-color: var(--te-gold-soft);
	color: var(--te-off-white);
}

/* Final CTA — kept identical to the homepage's CTA component. */

.te-contact__cta {
	background: var(--te-bg);
	padding: clamp(58px, 8vw, 98px) 0;
	text-align: center;
	border-top: 1px solid var(--te-gold-soft);
}

.te-contact__cta-heading {
	margin: 0 0 14px;
	font-size: clamp(26px, 3.6vw, 36px);
	font-weight: 600;
	color: var(--te-off-white);
}

.te-contact__cta-copy {
	max-width: 480px;
	margin: 0 auto 28px;
	font-size: clamp(15px, 1.6vw, 17px);
	color: var(--te-off-white-dim);
}

/* Header mobile menu */

@media (max-width: 860px) {
	.te-contact__nav-toggle {
		display: flex;
	}

	.te-contact__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		background: var(--te-bg);
		border-bottom: 1px solid rgba(242, 239, 231, 0.08);
		transition: max-height 0.2s ease;
	}

	.te-contact__nav.is-open {
		max-height: 420px;
	}

	.te-contact__nav-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.te-contact__nav-links a {
		display: block;
		width: 100%;
		padding: 14px 24px;
		border-top: 1px solid rgba(242, 239, 231, 0.06);
	}

	.te-contact__nav-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px 24px 20px;
	}
}

/* Mobile refinements */

@media (max-width: 600px) {
	.te-contact__inner {
		padding: 0 20px;
	}

	.te-contact__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.te-contact__btn {
		text-align: center;
	}

	.te-contact__footer-links {
		gap: 14px;
	}

	.te-contact__form-wrap .wpcf7-submit {
		width: 100% !important;
	}
}
