/*
 * TemperWorks — Contact
 *
 * Fully scoped to .tw-contact-page
 *
 * Uses the existing TemperWorks theme variables
 * and visual language.
 */


/* =========================================================
   PAGE BASE
   ========================================================= */

.tw-contact-page {
	width: 100%;
	color: var(--text-primary);
}

.tw-contact-page *,
.tw-contact-page *::before,
.tw-contact-page *::after {
	box-sizing: border-box;
}

.tw-contact-container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}


/* =========================================================
   SHARED
   ========================================================= */

.tw-contact-eyebrow {
	display: block;
	margin: 0 0 0.9rem;
	color: var(--accent-gold);
	font-size: 0.74rem;
	font-weight: 750;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}


/* =========================================================
   HERO
   ========================================================= */

.tw-contact-hero {
	position: relative;
	width: 100%;
	padding: 8rem 0 6.5rem;
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			rgba(11, 15, 23, 0.98),
			rgba(18, 26, 42, 0.94)
		);
	text-align: center;
}

.tw-contact-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(
			circle at 50% 10%,
			rgba(255, 255, 255, 0.05),
			transparent 45%
		);
}

.tw-contact-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.012) 1px,
			transparent 1px
		),
		linear-gradient(
			rgba(255, 255, 255, 0.012) 1px,
			transparent 1px
		);
	background-size: 48px 48px;
	opacity: 0.28;
}

.tw-contact-hero .tw-contact-container {
	position: relative;
	z-index: 1;
}

.tw-contact-hero__content {
	max-width: 900px;
	margin: 0 auto;
}

.tw-contact-hero h1 {
	margin: 0 auto 1.4rem;
	color: var(--text-primary);
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 750;
	line-height: 1;
	letter-spacing: -0.035em;
}

.tw-contact-hero__intro {
	max-width: 740px;
	margin: 0 auto 1.2rem;
	color: var(--text-secondary);
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.75;
}

.tw-contact-hero__phase {
	max-width: 700px;
	margin: 0 auto;
	color: var(--text-secondary);
	font-size: 0.9rem;
	line-height: 1.7;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.tw-contact-section {
	width: 100%;
	padding: 6rem 0;
}

.tw-contact-section--alt {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.012);
}

.tw-contact-section-heading {
	max-width: 800px;
	margin: 0 auto 3.5rem;
	text-align: center;
}

.tw-contact-section-heading h2 {
	margin: 0 0 1rem;
	color: var(--text-primary);
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.tw-contact-section-heading p {
	max-width: 700px;
	margin: 0 auto;
	color: var(--text-secondary);
	font-size: 0.98rem;
	line-height: 1.75;
}


/* =========================================================
   CONTACT PATHWAYS
   ========================================================= */

.tw-contact-pathways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.tw-contact-pathway {
	min-height: 225px;
	padding: 1.6rem;
	border: 1px solid rgba(255, 255, 255, 0.085);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.018);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.tw-contact-pathway:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.17);
	background: rgba(255, 255, 255, 0.025);
}

.tw-contact-pathway__number {
	display: block;
	margin-bottom: 1.5rem;
	color: var(--accent-gold);
	font-size: 0.68rem;
	font-weight: 750;
	letter-spacing: 0.1em;
}

.tw-contact-pathway h3 {
	margin: 0 0 0.7rem;
	color: var(--text-primary);
	font-size: 1.18rem;
	font-weight: 650;
	line-height: 1.25;
}

.tw-contact-pathway p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.88rem;
	line-height: 1.7;
}


/* =========================================================
   FORM LAYOUT
   ========================================================= */

.tw-contact-form-layout {
	display: grid;
	grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
	gap: 4rem;
	align-items: start;
}

.tw-contact-form-intro {
	padding-top: 0.25rem;
}

.tw-contact-form-intro h2 {
	margin: 0 0 1rem;
	color: var(--text-primary);
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.tw-contact-form-intro p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.8;
}


/* =========================================================
   FORM CONTAINER
   ========================================================= */

.tw-contact-form-wrapper {
	width: 100%;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.085);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.018);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.tw-contact-form {
	width: 100%;
	margin: 0;
}


/* =========================================================
   FORM ROWS
   ========================================================= */

.tw-contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 1rem;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.tw-contact-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0 0 1rem;
}

.tw-contact-form__row .tw-contact-field {
	margin-bottom: 0;
}

.tw-contact-field label {
	color: var(--text-primary);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tw-contact-field label span {
	color: var(--text-secondary);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.7;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
   ========================================================= */

.tw-contact-field input,
.tw-contact-field select,
.tw-contact-field textarea {
	width: 100%;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 7px;
	outline: none;
	background: #0B0F17;
	color: var(--text-primary);
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.4;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.tw-contact-field input,
.tw-contact-field select {
	min-height: 48px;
	padding: 0.7rem 0.85rem;
}

.tw-contact-field textarea {
	min-height: 165px;
	padding: 0.85rem;
	resize: vertical;
}


/* =========================================================
   INPUT STATES
   ========================================================= */

.tw-contact-field input::placeholder,
.tw-contact-field textarea::placeholder {
	color: var(--text-secondary);
	opacity: 0.55;
}

.tw-contact-field input:focus,
.tw-contact-field textarea:focus {
	border-color: rgba(255, 255, 255, 0.3);
	background: #0B0F17;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   SELECT — TEMPERWORKS GOLD
   ========================================================= */

.tw-contact-field select {
	cursor: pointer;
	appearance: auto;
	background-color: #0B0F17;
	color: var(--accent-gold);
	border-color: rgba(255, 255, 255, 0.1);
}

.tw-contact-field select option {
	background-color: #0B0F17;
	color: var(--accent-gold);
}

.tw-contact-field select:focus {
	background-color: #0B0F17;
	color: var(--accent-gold);
	border-color: var(--accent-gold);
	box-shadow: 0 0 0 1px var(--accent-gold);
}


/* =========================================================
   FORM SUBMIT
   ========================================================= */

.tw-contact-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 0.25rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.045);
	color: var(--text-primary);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.tw-contact-submit:hover {
	transform: translateY(-2px);
	border-color: var(--accent-gold);
	background: rgba(255, 255, 255, 0.07);
}


/* =========================================================
   CONTACT FORM STATUS
   ========================================================= */

.tw-contact-notice {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: #0B0F17;
}

.tw-contact-notice strong {
	color: var(--text-primary);
	font-size: 0.82rem;
	font-weight: 700;
}

.tw-contact-notice span {
	color: var(--text-secondary);
	font-size: 0.82rem;
	line-height: 1.5;
}

.tw-contact-notice--success {
	border-color: rgba(212, 175, 55, 0.35);
}

.tw-contact-notice--success strong {
	color: var(--accent-gold);
}

.tw-contact-notice--error {
	border-color: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.tw-contact-honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}


/* =========================================================
   SOCIAL / COMMUNITY
   ========================================================= */

.tw-contact-social-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.tw-contact-social {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1.2rem 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.018);
	color: var(--text-primary);
	text-decoration: none;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.tw-contact-social:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.17);
	background: rgba(255, 255, 255, 0.025);
}

.tw-contact-social__label {
	color: var(--accent-gold);
	font-size: 0.62rem;
	font-weight: 750;
	letter-spacing: 0.08em;
}

.tw-contact-social strong {
	color: var(--text-primary);
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.4;
}

.tw-contact-social > span:last-child {
	color: var(--text-secondary);
	font-size: 1rem;
}


/* =========================================================
   PHASE 0 STATUS
   ========================================================= */

.tw-contact-status {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 3rem;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.085);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.018);
}

.tw-contact-status__content {
	max-width: 720px;
}

.tw-contact-status h2 {
	margin: 0 0 0.85rem;
	color: var(--text-primary);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.tw-contact-status p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.93rem;
	line-height: 1.75;
}


/* =========================================================
   SHARED BUTTON
   ========================================================= */

.tw-contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.75rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.045);
	color: var(--text-primary);
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.tw-contact-button:hover {
	transform: translateY(-2px);
	border-color: var(--accent-gold);
	background: rgba(255, 255, 255, 0.07);
}


/* =========================================================
   CLOSING
   ========================================================= */

.tw-contact-closing {
	position: relative;
	padding: 7rem 0;
	overflow: hidden;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(
			135deg,
			rgba(11, 15, 23, 0.98),
			rgba(18, 26, 42, 0.94)
		);
	text-align: center;
}

.tw-contact-closing__content {
	max-width: 850px;
	margin: 0 auto;
}

.tw-contact-closing h2 {
	margin: 0 0 1.2rem;
	color: var(--text-primary);
	font-size: clamp(2.3rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.tw-contact-closing p {
	max-width: 700px;
	margin: 0 auto 2rem;
	color: var(--text-secondary);
	font-size: 1rem;
	line-height: 1.8;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

	.tw-contact-pathways {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tw-contact-form-layout {
		grid-template-columns: 1fr;
		gap: 2.75rem;
	}

	.tw-contact-status {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

	.tw-contact-container {
		width: min(100% - 28px, 1120px);
	}

	.tw-contact-hero {
		padding: 5.5rem 0 4.5rem;
	}

	.tw-contact-hero h1 {
		font-size: clamp(2.5rem, 11vw, 3.5rem);
	}

	.tw-contact-hero__intro {
		font-size: 1rem;
	}

	.tw-contact-section {
		padding: 4.75rem 0;
	}

	.tw-contact-section-heading {
		margin-bottom: 2.75rem;
	}

	.tw-contact-pathways {
		grid-template-columns: 1fr;
	}

	.tw-contact-form__row {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.tw-contact-form__row .tw-contact-field {
		margin-bottom: 0;
	}

	.tw-contact-form-wrapper {
		padding: 1.5rem;
	}

	.tw-contact-social-grid {
		grid-template-columns: 1fr;
	}

	.tw-contact-status {
		padding: 1.5rem;
	}

	.tw-contact-closing {
		padding: 5rem 0;
	}

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 460px) {

	.tw-contact-container {
		width: min(100% - 24px, 1120px);
	}

	.tw-contact-hero {
		padding: 4.75rem 0 4rem;
	}

	.tw-contact-pathway {
		min-height: 0;
		padding: 1.35rem;
	}

	.tw-contact-form-wrapper {
		padding: 1.25rem;
	}

	.tw-contact-field input,
	.tw-contact-field select {
		min-height: 46px;
	}

	.tw-contact-social {
		grid-template-columns: auto 1fr auto;
	}

	.tw-contact-closing h2 {
		font-size: 2.25rem;
	}

}