/**
 * Page: Contact
 *
 * --------------------------------------------------------------------------
 * File: assets/css/pages/contact.css
 *
 * Contact-page-specific layout, hero and spacing.
 * Global form styling remains in components/form.css.
 */


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

/**
 * Full-browser-width hero.
 *
 * The hero intentionally sits outside the .container so the background
 * reaches both edges of the viewport.
 */
 .gdq-contact-hero {
	position: relative;
	width: 100%;
	min-height: 560px;
	overflow: hidden;
	background-color: var(--gdq-color-bg-primary);
}


/**
 * Full-width background layer.
 */
.gdq-contact-hero__background {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}


/**
 * Contact hero image.
 *
 * Uses the image already uploaded to WordPress.
 */
.gdq-contact-hero__background-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;

	background-image: url('/wp-content/uploads/2026/09/Contact-Hero-Image.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}


/**
 * Blue/navy image-style overlay.
 */
.gdq-contact-hero__background-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;

	background:
		linear-gradient(
			90deg,
			rgba(7, 18, 34, 0.96) 0%,
			rgba(7, 18, 34, 0.88) 22%,
			rgba(7, 18, 34, 0.65) 45%,
			rgba(7, 18, 34, 0.35) 68%,
			rgba(7, 18, 34, 0.10) 88%,
			rgba(7, 18, 34, 0.02) 100%
		);
}


/**
 * Hero content remains inside the site's standard container.
 */
.gdq-contact-hero__inner {
	position: relative;
	z-index: 2;

	min-height: 560px;

	display: flex;
	align-items: center;
}


/**
 * Keep the text comfortably readable without allowing it to stretch
 * across the entire hero.
 */
.gdq-contact-hero__content {
	max-width: 50rem;
}


/**
 * Hero eyebrow.
 */
.gdq-contact-hero__eyebrow {
	display: inline-block;
	margin-bottom: var(--gdq-space-3);
}


/**
 * Contact hero heading.
 */
.gdq-contact-hero__heading {
	margin: 0;
	max-width: 52rem;
	color: var(--gdq-color-white);
}


/**
 * Gold emphasis on "Together."
 */
.gdq-contact-hero__accent {
	color: var(--gdq-color-accent);
}


/**
 * Hero supporting copy.
 */
.gdq-contact-hero__intro {
	max-width: 42rem;
	margin-top: var(--gdq-space-4);
	color: var(--gdq-color-white);
}


/* ==========================================================================
CONTACT CONTENT
========================================================================== */

.gdq-contact-content__grid {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: var(--gdq-space-8);
	row-gap: var(--gdq-space-10);
}


/**
 * Left-side contact copy.
 */
.gdq-contact-content__details h2 {
	margin-bottom: var(--gdq-space-3);
}


.gdq-contact-content__details > p {
	max-width: 32rem;
	margin-bottom: var(--gdq-space-8);
}


/**
 * Contact information block.
 */
.gdq-contact-content__email {
	margin-top: var(--gdq-space-8);
}


.gdq-contact-content__email h3 {
	margin-bottom: var(--gdq-space-3);
}


/**
 * Contact method list.
 */
.gdq-contact-content__methods {
	display: flex;
	flex-direction: column;
	gap: var(--gdq-space-3);
}


/**
 * Individual contact method.
 */
.gdq-contact-content__method {
	display: flex;
	align-items: flex-start;
	gap: var(--gdq-space-3);
	margin: 0;
	min-width: 0;
}


/**
 * Gold contact icons.
 *
 * Uses the same GDQ gold accent token as the rest of the website.
 */
.gdq-contact-content__method-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 20px;

	width: 20px;
	height: 20px;

	margin-top: 2px;

	color: var(--gdq-color-accent);

	line-height: 1;
}


/**
 * Contact-page SVG icons.
 *
 * These use the same line-based visual treatment as the site's
 * existing GDQ SVG icon system.
 */
.gdq-contact-content__method-icon svg {
	display: block;

	width: 20px;
	height: 20px;

	flex: 0 0 20px;

	fill: none;
	stroke: currentColor;

	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;

	color: var(--gdq-color-accent);

	overflow: visible;
}


/**
 * Ensure every SVG component inherits the gold icon colour.
 */
.gdq-contact-content__method-icon svg path,
.gdq-contact-content__method-icon svg circle,
.gdq-contact-content__method-icon svg line,
.gdq-contact-content__method-icon svg polyline,
.gdq-contact-content__method-icon svg polygon,
.gdq-contact-content__method-icon svg rect {
	fill: none;
	stroke: currentColor;
}


/**
 * Contact links.
 */
.gdq-contact-content__method a {
	min-width: 0;
	color: inherit;
	text-decoration: none;
}


/**
 * Gold hover/focus state.
 */
.gdq-contact-content__method a:hover,
.gdq-contact-content__method a:focus-visible {
	color: var(--gdq-color-accent);
}


/**
 * Right-side form.
 */
.gdq-contact-content__form {
	width: 100%;
}


/**
 * Give the form breathing room from the left-side contact information.
 */
.gdq-contact-content__form .gdq-form {
	width: 100%;
}


/* ==========================================================================
FORM GRID
========================================================================== */

.gdq-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gdq-space-4);
}


/**
 * Form action area.
 *
 * Adds a little breathing room between the final project-details field
 * and the "Let's Create Together" button.
 */
.gdq-form__actions {
	margin-top: var(--gdq-space-3);
}


/**
 * On desktop:
 *
 * Name        | Email
 * Company     | Service
 * Project details — full width
 */
@media (min-width: 768px) {

	.gdq-contact-content__grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		column-gap: var(--gdq-space-10);
		align-items: start;
	}

	.gdq-contact-content__details {
		padding-right: var(--gdq -space-4);
	}

	.gdq-contact-content__form {
		padding-left: var(--gdq-space-2);
	}

	.gdq-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--gdq-space-4);
		row-gap: var(--gdq-space-4);
	}

	/**
	 * Full-width fields occupy both form columns.
	 */
	.gdq-form-field:not(.gdq-form-field--half) {
		grid-column: 1 / -1;
	}

}


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

@media (max-width: 767px) {

	.gdq-contact-hero {
		min-height: 480px;
	}

	.gdq-contact-hero__inner {
		min-height: 480px;
	}

	.gdq-contact-hero__heading {
		font-size: clamp(2.25rem, 9vw, 3.5rem);
	}

	.gdq-contact-content__details > p {
		margin-bottom: var(--gdq-space-6);
	}

	.gdq-contact-content__email {
		margin-top: var(--gdq-space-6);
	}

}
/* Separate the stacked contact methods and enquiry introduction. */
@media (max-width: 767px) {
 .gdq-contact-content__grid { row-gap: 40px; }
 .gdq-contact-content__form { margin-top: 8px; }
 .gdq-contact-content__method a { overflow-wrap: anywhere; }
}
