/* ==========================================================================
   Contact — three contact cards, lazy-loaded map, simple lead-capture form,
   mobile sticky Call/WhatsApp bar. Tokens reuse style.css :root as-is
   (--brand-blue/--blue-dark/--tint/--charcoal/--gray-500/--gray-100/--white
   already are this site's logo-derived palette — see plan for the mapping);
   no new root variables are introduced here.
   ========================================================================== */

/* Scroll reveal (.reveal / .is-visible) now lives globally in style.css.
   Directional variants below are specific to this page's two-column split:
   the info column slides in from the left, the form card from the right. */
.reveal.reveal--left { transform: translateX(-40px); }
.reveal.reveal--left.is-visible { transform: translateX(0); }
.reveal.reveal--right { transform: translateX(40px); }
.reveal.reveal--right.is-visible { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal.reveal--left, .reveal.reveal--right { transform: none; }
}

/* ==========================================================================
   Success / error banner (Django messages)
   ========================================================================== */
/* ==========================================================================
   Already-sent card — replaces the message form (right column only; the
   left column's contact info stays put) for a short cooldown after a
   successful send, same one-at-a-time pattern as careers' .applied-card,
   just briefer copy and a 10-minute window. Reuses .contact-form's own
   card look (white, rounded, blue top accent) so it drops in seamlessly.
   ========================================================================== */
.sent-card {
	background: var(--white);
	border: 1px solid var(--gray-100);
	border-top: 3px solid var(--brand-blue);
	border-radius: 16px;
	padding: 40px 28px;
	text-align: center;
	box-shadow: 0 12px 32px rgba(20, 40, 80, .07);
}
.sent-card__emoji { font-size: 34px; line-height: 1; display: block; margin-bottom: 14px; }
.sent-card__title {
	font-family: var(--font-manrope);
	font-size: clamp(20px, 2.4vw, 24px);
	font-weight: 700;
	color: var(--charcoal);
	margin: 0 0 8px;
}
.sent-card__note {
	font-size: 14.5px;
	color: var(--gray-500);
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   Hero — single full-bleed image, faded toward brand navy on scroll
   (see hero-scroll-fade.js, shared with the Careers hero). No overlay
   text: the page's own sr-only <h1> right below carries the heading
   for screen readers/SEO.
   ========================================================================== */
.contact-hero {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #001b42;
	overflow: hidden;
	height: clamp(260px, 34vw, 560px);
}

.contact-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	will-change: opacity;
}

@media (max-width: 768px) {
	.contact-hero { height: clamp(180px, 46vw, 300px); }
	.contact-hero__img { object-position: 0% center; }
}

/* ==========================================================================
   Split layout — compact contact-info list on the left, form card on the
   right (replaces the earlier three-card-grid-then-centered-form stack).
   ========================================================================== */
.contact-split { background: var(--canvas, #fafbfd); padding: 40px 20px clamp(56px, 8vw, 96px); }
.contact-split__container {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 48px;
	align-items: start;
}
.contact-split__info { display: flex; flex-direction: column; gap: 4px; }

.info-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--gray-100);
	text-decoration: none;
	transition: transform .18s ease;
}
.contact-split__info > .info-row:last-of-type { border-bottom: none; }
a.info-row:hover { transform: translateX(4px); }
.info-row__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tint);
	color: var(--brand-blue);
	flex-shrink: 0;
}
.info-row__icon svg { width: 22px; height: 22px; }
.info-row__text { display: flex; flex-direction: column; }
.info-row__label {
	font-family: var(--font-manrope);
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-500);
	margin-bottom: 4px;
}
.info-row__value {
	font-family: var(--font-manrope);
	font-size: 17px;
	font-weight: 600;
	color: var(--charcoal);
}
.info-row__value--address {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--gray-500);
	margin-top: 4px;
}
.info-row--static { cursor: default; }

.contact-split__map { margin-top: 24px; }

.contact-map__frame {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--gray-100);
	aspect-ratio: 16 / 7;
}
.contact-map__placeholder, .contact-map__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	display: block;
}
.contact-map__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(14, 17, 22, .18);
	border: 0;
	cursor: pointer;
	color: var(--white);
	font-family: var(--font-manrope);
	font-size: 15px;
	font-weight: 600;
}
.contact-map__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--brand-blue);
	font-size: 18px;
}

.contact-map__directions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-top: 20px;
}
.contact-map__directions-link {
	font-family: var(--font-manrope);
	font-size: 15px;
	font-weight: 600;
	color: var(--brand-blue);
	text-decoration: none;
}
.contact-map__directions-link:hover { text-decoration: underline; }

/* ==========================================================================
   Form
   ========================================================================== */
.contact-form-section__title {
	font-family: var(--font-manrope);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 600;
	color: var(--charcoal);
	margin: 0 0 8px;
}
.contact-form-section__subtitle {
	font-size: 15px;
	color: var(--gray-500);
	margin: 0 0 28px;
}

.contact-form {
	background: var(--white);
	border: 1px solid var(--gray-100);
	border-radius: 16px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow: 0 12px 32px rgba(20, 40, 80, .07);
	border-top: 3px solid var(--brand-blue);
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form__error {
	background: #FDECEC;
	border: 1px solid #E8A5A5;
	color: #9A2C2C;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
	font-family: var(--font-manrope);
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-500);
}
.field input, .field textarea, .field select {
	height: 48px;
	border-radius: 10px;
	border: 1px solid var(--gray-100);
	background: var(--white);
	padding: 0 14px;
	font-size: 15px;
	font-family: var(--font);
	color: var(--charcoal);
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
	outline: none;
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 14%, transparent);
}
/* Never below 16px on the actual mobile input, or iOS zooms the viewport on focus. */
@media (max-width: 480px) {
	.field input, .field textarea, .field select { font-size: 16px; }
}

.phone-input {
	display: flex;
	align-items: center;
	height: 48px;
	border-radius: 10px;
	border: 1px solid var(--gray-100);
	background: var(--white);
	padding: 0 14px;
	gap: 8px;
}
.phone-input:focus-within {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 14%, transparent);
}
.phone-input__prefix { font-size: 15px; font-weight: 600; color: var(--gray-500); }
.phone-input input {
	flex: 1;
	height: 100%;
	border: 0;
	padding: 0;
	box-shadow: none !important;
}
.phone-input input:focus { outline: none; }

.field-error {
	font-size: 13px;
	color: #C13333;
	margin: 0;
}

.contact-form__submit {
	align-self: flex-start;
	margin-top: 4px;
}

/* ==========================================================================
   Mobile sticky Call/WhatsApp bar — the one place a phone-first ISP page
   should beat a desktop-first competitor's layout.
   ========================================================================== */
.contact-sticky-bar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 40;
}
.contact-sticky-bar__btn {
	flex: 1;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-manrope);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.contact-sticky-bar__btn svg { width: 20px; height: 20px; }
.contact-sticky-bar__btn--call { background: var(--charcoal); color: var(--white); }
.contact-sticky-bar__btn--whatsapp { background: #25D366; color: var(--white); }
.contact-sticky-bar__btn--whatsapp svg { fill: currentColor; }

@media (max-width: 900px) {
	.contact-split__container { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
	.contact-sticky-bar { display: flex; }
	.contact-form__row { grid-template-columns: 1fr; }
	.contact-map__directions { flex-direction: column; gap: 12px; }
	/* Room for the fixed 56px sticky bar so it never covers the form's submit button. */
	main { padding-bottom: 56px; }
	/* The sitewide floating WhatsApp button would otherwise sit directly on
	   top of this page's own Call/WhatsApp sticky bar. */
	.whatsapp-fab { display: none; }
}

/* ==========================================================================
   Desktop refinements (>=1024px only — every block above is max-width, so
   the phone/tablet scale is untouched). Sizes only; no layout changes.
   ========================================================================== */
@media (min-width: 1024px) {
	.contact-form-section__title { font-size: clamp(26px, calc(2.4vw + 4px), 32px); }
	.contact-form-section__subtitle { font-size: 17px; }
	.sent-card__title { font-size: clamp(24px, calc(2.4vw + 4px), 28px); }
	.sent-card__note { font-size: 16.5px; }
	.info-row__label { font-size: 15px; }
	.info-row__value { font-size: 19px; }
	.info-row__value--address { font-size: 16px; }
	.contact-map__overlay { font-size: 17px; }
	.contact-map__directions-link { font-size: 17px; }
	.field label { font-size: 15px; }
	.field input, .field textarea, .field select { font-size: 17px; }
	.phone-input__prefix { font-size: 17px; }
	.contact-form__error { font-size: 16px; }
	.field-error { font-size: 15px; }
}
