/*!
 * Verdant — contact page layout, contact cards and the map facade.
 * Loaded on the contact template and on single products (inquiry form).
 */

.vrd-contact {
	padding-block: var(--space-section);
}

.vrd-contact__grid {
	display: grid;
	gap: clamp(var(--space-xl), 4vw, 3.5rem);
	align-items: start;
}

@media (min-width: 960px) {
	.vrd-contact__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}
}

/*
 * The form is the page's primary object, so it keeps a surface — but a paper
 * one: a hairline and a warm ground rather than a floating rounded card.
 */
.vrd-contact__form {
	padding: clamp(var(--space-lg), 3vw, 2.5rem);
	background: var(--color-canvas);
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-xs);
	box-shadow: none;
}

/* Contact details are a ruled list beside it, not a stack of tiles. */
.vrd-contact__aside {
	display: grid;
	gap: 0;
	align-content: start;
	border-top: 1px solid var(--color-text);
}

.vrd-contact-card {
	display: flex;
	gap: var(--space-md);
	padding: var(--space-lg) 0;
	background: none;
	border-bottom: 1px solid var(--color-rule);
	border-radius: 0;
}

.vrd-contact-card__icon {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	width: auto;
	height: auto;
	flex: none;
	border-radius: 0;
	background: none;
	color: var(--color-primary);
}

.vrd-contact-card__label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--font-sans);
	font-size: var(--fs-2xs);
	font-weight: 600;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--color-text-soft);
}

.vrd-contact-card__value {
	font-size: var(--fs-base);
	line-height: 1.5;
	color: var(--color-text);
}

.vrd-contact-card__value a {
	display: inline-block;
	min-height: 24px; /* WCAG 2.2 target size minimum. */
	padding-block: 2px;
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
}

.vrd-contact-card__value a:hover {
	color: var(--color-primary-text);
	text-decoration: underline;
}

.vrd-contact__follow-label {
	display: block;
	margin-bottom: var(--space-sm);
}

.vrd-contact__aside > div:last-child {
	padding-top: var(--space-lg);
}

.vrd-contact__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vrd-contact__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xs);
	color: var(--color-text-muted);
	background: var(--color-background);
	transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.vrd-contact__social a:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.vrd-map {
	margin-top: clamp(var(--space-xl), 4vw, 3.5rem);
}

.vrd-map__frame {
	border-radius: var(--radius-xs);
	overflow: hidden;
	border: 1px solid var(--color-rule);
}

/* Submit button state while the enhanced form posts over AJAX. */
.vrd-form.is-sending .vrd-btn {
	opacity: 0.75;
	pointer-events: none;
}

/* ==========================================================================
   Click-to-load embeds
   ==========================================================================
   A poster (or a plain panel) stands in for the third-party iframe until a
   visitor asks for it. Loaded here because the two views that use embeds —
   the contact map and the product video — both enqueue this file.
   ========================================================================== */

.vrd-embed {
	position: relative;
	border-radius: var(--radius-xs);
	overflow: hidden;
	background: var(--color-secondary);
	aspect-ratio: 16 / 9;
}

.vrd-embed img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.vrd-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vrd-embed__btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	background: rgb(8 24 17 / 25%);
	color: #fff;
	transition: background-color var(--transition);
}

.vrd-embed__btn:hover {
	background: rgb(8 24 17 / 40%);
}

.vrd-embed__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: var(--radius-pill);
	background: rgb(255 255 255 / 92%);
	color: var(--color-primary-text);
	box-shadow: var(--shadow-lg);
	transition: transform var(--transition);
}

.vrd-embed__btn:hover .vrd-embed__play {
	transform: scale(1.06);
}

.vrd-embed--map {
	aspect-ratio: 16 / 10;
	background: var(--color-surface-alt);
}

.vrd-embed--map .vrd-embed__btn {
	flex-direction: column;
	gap: var(--space-xs);
	background: rgb(22 33 28 / 8%);
	color: var(--color-text);
}

.vrd-embed__label {
	padding: 0.7rem 1.3rem;
	border-radius: var(--radius-sm);
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--fs-2xs);
	font-weight: 600;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	box-shadow: var(--shadow-md);
}
