/* ==========================================================================
   Page: Contact
   Loaded on pages using the contact page template: the hero, the quote form
   beside the contact details, and the map.
   ========================================================================== */


/* ==========================================================================
   Hero — the product hero's language, copy only
   ========================================================================== */

.contact-hero {
	position: relative;
	overflow: hidden;
	padding-block: var(--space-5) clamp(2.5rem, 1.6rem + 2.5vw, 4rem);
	background:
		radial-gradient(45% 80% at 85% 30%, rgb(106 185 55 / 0.12) 0%, rgb(106 185 55 / 0) 70%),
		linear-gradient(180deg, var(--white) 0%, var(--white) 55%, var(--surface-2) 100%);
}

.contact-hero .breadcrumbs {
	margin-bottom: var(--space-6);
}

.contact-hero__copy {
	display: grid;
	justify-items: start;
	gap: var(--space-5);
	max-width: 44rem;
}

.contact-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 36px;
	padding: 0.45rem 0.95rem 0.45rem 0.7rem;
	border: 1px solid var(--green-100);
	border-radius: var(--radius-pill);
	background: var(--green-50);
	color: var(--green-700);
	font-size: 0.8125rem;
	font-weight: var(--fw-bold);
	line-height: 1.2;
}

.contact-hero__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green-400);
	box-shadow: 0 0 0 4px rgb(73 162 49 / 0.2);
}

.contact-hero__title {
	color: var(--ink-900);
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
	font-weight: var(--fw-heavy);
	letter-spacing: -0.036em;
	line-height: 1.06;
}

.contact-hero__lead {
	max-width: 36rem;
	color: var(--ink-500);
	font-size: var(--fs-lead);
	line-height: 1.6;
}

.contact-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--space-2);
}

@media (max-width: 599px) {
	.contact-hero__actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}


/* ==========================================================================
   Quote form beside the contact details
   ========================================================================== */

.contact {
	padding-top: var(--space-7);
	scroll-margin-top: var(--header-h);
}

.contact__grid {
	display: grid;
	gap: var(--space-5);
	align-items: start;
}

@media (min-width: 1024px) {
	.contact__grid {
		grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
		gap: clamp(1.5rem, 0.5rem + 2.5vw, 3rem);
	}
}

/* --- The form card -------------------------------------------------------- */

.quote-card {
	padding: clamp(1.4rem, 0.8rem + 2vw, 2.5rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: var(--white);
	box-shadow: var(--shadow-md);
}

.quote-card__title {
	color: var(--ink-900);
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
	font-weight: var(--fw-heavy);
	letter-spacing: var(--track-tight);
	line-height: 1.15;
}

.quote-card__note {
	margin-top: 0.5rem;
	color: var(--ink-500);
	font-size: var(--fs-sm);
}

.quote-card__alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
	margin-top: var(--space-5);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
	color: var(--ink-500);
	font-size: var(--fs-sm);
}

.quote-form {
	margin-top: var(--space-5);
}

.quote-form__grid {
	display: grid;
	gap: var(--space-4);
}

@media (min-width: 600px) {
	.quote-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.field--wide {
		grid-column: 1 / -1;
	}
}

/* --- Fields --------------------------------------------------------------- */

.field {
	display: grid;
	align-content: start;
	gap: 0.45rem;
}

.field__label {
	color: var(--ink-900);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
}

.field__required {
	color: var(--green-600);
}

.field__optional {
	color: var(--ink-450);
	font-weight: var(--fw-medium);
}

.field__control {
	width: 100%;
	min-height: 52px;
	padding: 0.8rem 1rem;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink-900);
	font: inherit;
	font-size: var(--fs-body);
	line-height: 1.4;
	transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}

.field__control::placeholder {
	color: var(--ink-450);
}

.field__control:hover {
	border-color: var(--ink-400);
}

.field__control:focus {
	border-color: var(--green-500);
	box-shadow: var(--ring);
	outline: none;
}

textarea.field__control {
	min-height: 128px;
	resize: vertical;
}

select.field__control {
	padding-right: 2.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--ink-500) 50%),
		linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
	background-position: calc(100% - 1.4rem) 50%, calc(100% - 1.05rem) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	-webkit-appearance: none;
	appearance: none;
}

/* iOS zooms into a field whose text is under 16px. */
@media (max-width: 599px) {
	.field__control {
		font-size: 1rem;
	}
}

.field.has-error .field__control {
	border-color: var(--danger);
}

.field.has-error .field__control:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.field__error {
	color: var(--danger);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semi);
}

/* --- Error summary -------------------------------------------------------- */

.form-alert {
	margin-top: var(--space-5);
	padding: 1rem 1.15rem;
	border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
	border-left: 4px solid var(--danger);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--danger-bg);
	color: var(--ink-900);
	font-size: var(--fs-sm);
}

.form-alert:focus {
	outline: none;
}

.form-alert__title {
	font-weight: var(--fw-bold);
}

.form-alert__list {
	display: grid;
	gap: 0.25rem;
	margin-top: 0.5rem;
}

.form-alert__list a {
	color: var(--danger);
	font-weight: var(--fw-bold);
	text-decoration: underline;
}

/* --- Honeypot: out of sight and out of the tab order ---------------------- */

.quote-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Submit --------------------------------------------------------------- */

.quote-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3) var(--space-5);
	margin-top: var(--space-5);
}

.quote-form__privacy {
	flex: 1 1 14rem;
	color: var(--ink-500);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

@media (max-width: 599px) {
	.quote-form__submit {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* --- Thank-you state ------------------------------------------------------ */

.quote-sent {
	display: grid;
	justify-items: start;
	gap: var(--space-4);
	padding-block: var(--space-4);
}

.quote-sent__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: var(--brand-gradient);
	color: var(--white);
	box-shadow: var(--shadow-md);
}

.quote-sent__text {
	max-width: 34rem;
	color: var(--ink-500);
	font-size: var(--fs-lead);
	line-height: 1.6;
}

.quote-sent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--space-2);
}

/* --- Contact details ------------------------------------------------------ */

.contact-info {
	display: grid;
	gap: var(--space-4);
}

@media (min-width: 1024px) {
	.contact-info {
		position: sticky;
		top: calc(var(--header-h) + var(--space-5));
	}
}

.contact-card,
.contact-steps {
	padding: clamp(1.4rem, 1rem + 1vw, 1.9rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: var(--white);
}

.contact-card__title {
	color: var(--ink-900);
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	font-weight: var(--fw-heavy);
	letter-spacing: -0.018em;
	line-height: 1.25;
}

.contact-card__block {
	margin-top: var(--space-5);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
}

.contact-card__subtitle {
	margin-bottom: 0.7rem;
	color: var(--ink-500);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-ways {
	display: grid;
	gap: 0.35rem;
	margin-top: var(--space-4);
}

.contact-way {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-inline: -0.7rem;
	padding: 0.65rem 0.7rem;
	border-radius: var(--radius-sm);
	color: var(--ink-900);
	transition: background-color var(--dur-2) ease;
}

.contact-way:hover {
	background: var(--green-50);
	color: var(--ink-900);
}

.contact-way__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--green-50);
	color: var(--green-500);
	transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}

.contact-way:hover .contact-way__icon {
	background: var(--green-500);
	color: var(--white);
}

.contact-way__text {
	display: grid;
	min-width: 0;
}

.contact-way__label {
	color: var(--ink-500);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semi);
}

.contact-way__value {
	font-weight: var(--fw-bold);
	overflow-wrap: anywhere;
}

.contact-hours {
	display: grid;
	gap: 0.4rem;
	font-size: var(--fs-sm);
}

/* Days and hours each stay on one line; on a narrow card the hours drop
   below the days instead of breaking mid-phrase. */
.contact-hours__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 1rem;
}

.contact-hours dt {
	color: var(--ink-700);
	white-space: nowrap;
}

.contact-hours dd {
	margin-left: auto;
	color: var(--ink-900);
	font-weight: var(--fw-bold);
	white-space: nowrap;
}

.contact-social {
	display: flex;
	gap: 0.5rem;
}

/* What happens next — numbered, on the brand's deep green. */
.contact-steps {
	border-color: transparent;
	background: var(--brand-deep);
	color: var(--white);
}

.contact-steps .contact-card__title {
	color: var(--white);
}

.contact-steps__list {
	display: grid;
	gap: var(--space-4);
	margin-top: var(--space-4);
}

.contact-step {
	display: flex;
	gap: 0.9rem;
}

.contact-step__no {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 50%;
	background: rgb(255 255 255 / 0.1);
	color: var(--green-glow);
	font-size: var(--fs-sm);
	font-weight: var(--fw-heavy);
}

.contact-step__body {
	display: grid;
	gap: 0.2rem;
}

.contact-step__title {
	font-weight: var(--fw-bold);
}

.contact-step__text {
	color: rgb(255 255 255 / 0.84);
	font-size: var(--fs-sm);
	line-height: 1.55;
}


/* ==========================================================================
   Map
   ========================================================================== */

.contact-map {
	padding-bottom: var(--section-y);
}

.contact-map__panel {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-2xl);
	background: var(--surface-2);
}

@media (min-width: 900px) {
	.contact-map__panel {
		grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr);
	}
}

.contact-map__info {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: var(--space-4);
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.contact-map__title {
	color: var(--ink-900);
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
	font-weight: var(--fw-heavy);
	letter-spacing: var(--track-tight);
	line-height: 1.15;
}

.contact-map__address {
	color: var(--ink-700);
	line-height: 1.6;
}

.contact-map__frame {
	min-height: 320px;
	background: var(--line);
}

.contact-map__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}
