/* -------------------------------------------------------------- contact ---
   Follows the live get-in-touch layout: oversized muted headline hard left,
   centred intro, then details vs. form as a two-column band.
--------------------------------------------------------------------------- */

.gb-contact {
	max-width: 1400px;
}

/* --------------------------------------------------------------- entrance ---
   The whole page waits on the title band (--gb-intro-total, set in main.css)
   before it starts appearing, then eases in as one staggered group — same
   pattern as about-me.css.
--------------------------------------------------------------------------- */

@keyframes gb-contact-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.gb-contact__head,
.gb-contact__intro,
.gb-contact__grid,
.gb-contact__extra {
	opacity: 0;
	animation: gb-contact-in 0.9s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.gb-contact__head { animation-delay: calc(var(--gb-intro-total) + 0.05s); }
.gb-contact__intro { animation-delay: calc(var(--gb-intro-total) + 0.15s); }
.gb-contact__grid { animation-delay: calc(var(--gb-intro-total) + 0.25s); }
.gb-contact__extra { animation-delay: calc(var(--gb-intro-total) + 0.35s); }

@media (prefers-reduced-motion: reduce) {
	.gb-contact__head,
	.gb-contact__intro,
	.gb-contact__grid,
	.gb-contact__extra {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

.gb-contact__head {
	margin: 0 0 90px;
}

.gb-contact__headline {
	margin: 4px 0 0;
	font-size: 64px;
	line-height: 70px;
	letter-spacing: 0.02em;
	/* Grey, not white — the headline sits back and the form comes forward. */
	color: #8d8d92;
}

.gb-contact__intro {
	max-width: 820px;
	margin: 0 auto 120px;
	text-align: center;
	font-size: 19px;
	line-height: 34px;
	color: var(--gb-ink);
}

.gb-contact__grid {
	max-width: 820px;
	margin: 0 auto;
}

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

.gb-contact__subhead {
	margin: 6px 0 44px;
	font-size: 30px;
	line-height: 38px;
}

.gb-contact__list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.gb-contact__item {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 28px;
}

.gb-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border: 1px solid var(--gb-line);
	border-radius: 50%;
	color: var(--gb-muted);
	transition: border-color 0.3s ease, color 0.3s ease;
}

.gb-contact__item:hover .gb-contact__icon {
	border-color: var(--gb-ink);
	color: var(--gb-ink);
}

.gb-contact__item a {
	font-size: 16px;
	color: var(--gb-muted);
}

.gb-contact__item a:hover {
	color: var(--gb-ink);
}

.gb-contact .gb-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- form --- */

/* The header is fixed, so an #gb-contact-form jump would otherwise drop the
   notice underneath it. */
.gb-contact__form-wrap {
	scroll-margin-top: calc(var(--gb-header-h) + 20px);
}

.gb-contact__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.gb-field {
	margin: 0 0 24px;
}

/* Boxed fields here, unlike the underlined inputs main.css sets globally —
   the reference layout leans on the outlines to hold the two-column form. */
.gb-contact__form input[type='text'],
.gb-contact__form input[type='email'],
.gb-contact__form textarea {
	width: 100%;
	padding: 18px 20px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--gb-line);
	color: var(--gb-ink);
	font-family: var(--gb-font-label);
	font-size: 15px;
	line-height: 24px;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.gb-contact__form textarea {
	min-height: 240px;
	resize: vertical;
}

.gb-contact__form input:focus,
.gb-contact__form textarea:focus {
	outline: none;
	border-color: var(--gb-ink);
	background: rgba(255, 255, 255, 0.04);
}

.gb-contact__form ::placeholder {
	color: var(--gb-label);
	opacity: 1;
}

.gb-contact__form .gb-btn {
	margin-top: 8px;
}

.gb-contact__recaptcha-note {
	max-width: 420px;
	margin: 18px 0 0;
	font-size: 11px;
	line-height: 18px;
	color: var(--gb-label);
}

.gb-contact__recaptcha-note a {
	border-bottom: 1px solid var(--gb-line);
}

/* Google's own badge is redundant with the notice above and just sits in the
   corner covering content, so it's hidden — the visible-notice requirement
   in their terms is what actually has to stay. */
.grecaptcha-badge {
	visibility: hidden;
}

/* Honeypot: out of sight for people, still in the DOM for bots. */
.gb-contact__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------------------- notices --- */

.gb-contact__notice {
	margin: 0 0 28px;
	padding: 18px 22px;
	border: 1px solid var(--gb-line);
	border-left-width: 2px;
	font-size: 14px;
	line-height: 24px;
}

.gb-contact__notice p {
	margin: 0 0 6px;
}

.gb-contact__notice p:last-child {
	margin: 0;
}

.gb-contact__notice.is-ok {
	border-left-color: #7fd1a5;
	color: var(--gb-ink);
}

.gb-contact__notice.is-error {
	border-left-color: #d98080;
	color: #d9b0b0;
}

/* --------------------------------------------------------------- extras --- */

.gb-contact__extra {
	margin: 90px 0 0;
	padding-top: 40px;
	border-top: 1px solid var(--gb-line);
}

.gb-contact__top {
	display: block;
	margin: 130px 0 0;
	text-align: right;
}

.gb-contact__top .gb-eyebrow {
	margin: 0;
}

.gb-contact__top-word {
	display: block;
	font-family: var(--gb-font-head);
	font-weight: 700;
	font-size: 56px;
	line-height: 60px;
	text-transform: uppercase;
	color: #6a6a70;
	transition: color 0.3s ease;
}

.gb-contact__top:hover .gb-contact__top-word {
	color: var(--gb-ink);
}

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 1024px) {
	.gb-contact__headline {
		font-size: 44px;
		line-height: 50px;
	}

	.gb-contact__intro {
		margin-bottom: 70px;
		font-size: 17px;
		line-height: 30px;
	}
}

@media (max-width: 640px) {
	.gb-contact__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.gb-contact__top-word {
		font-size: 38px;
		line-height: 44px;
	}
}
