/* ==========================================================================
   Contact page styles — matches Konstruktion reference layout
   ========================================================================== */

/* ---------- Spacing ---------- */
.contact-page .sec {
	padding-top: 0;
	padding-bottom: clamp(100px, 12vw, 180px);
}

/* Hero: top padding for header clearance, no bottom */
.contact-page .cn-hero-section {
	padding-top: clamp(96px, 10vw, 150px);
	padding-bottom: clamp(56px, 6vw, 80px);
}

/* Band: full-width image, height fixed */
.contact-page .cn-band {
	overflow: hidden;
	background: #073b63;
}
.contact-page .cn-band .ph {
	height: clamp(320px, 33vw, 480px);
}

/* Form section: 12vw top (clears band), 12vw bottom */
.contact-page .cn-intake-sec {
	padding-top: clamp(100px, 12vw, 180px);
	padding-bottom: clamp(100px, 12vw, 180px);
}

/* What Happens Next: 0 top (prev section owns bottom), 12vw bottom */
.contact-page .cn-next-sec {
	padding-top: 0;
	padding-bottom: clamp(100px, 12vw, 180px);
}

/* Capabilities dark section: full top+bottom */
.contact-page .cn-caps-sec {
	padding-top:    clamp(100px, 10vw, 150px);
	padding-bottom: clamp(100px, 10vw, 150px);
}

/* ---------- Base / inherited from pg ---------- */
.contact-page.pg {
	font-family: 'Bahnschrift', 'DIN Alternate', 'Barlow', 'Segoe UI', Arial, sans-serif;
	color: #111111;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page p { margin: 0; }
.contact-page h1,
.contact-page h2,
.contact-page h3 { color: #073b63; }
.contact-page .dark h1,
.contact-page .dark h2,
.contact-page .dark h3 { color: #ffffff; }

/* ---------- Hero grid ---------- */
.cn-ptgrid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: end;
}

/* ---------- Form section two-column ---------- */
.cn-kint {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(48px, 8vw, 128px);
	align-items: start;
}

/* Sticky sidebar */
.cn-office {
	position: sticky;
	top: 128px;
	align-self: start;
}

/* ---------- Contact rows (phone/email/location) ---------- */
.cn-crow {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid #073b631f;
	color: #073b63;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.cn-crow:last-child { border-bottom: 1px solid #073b631f; }
.cn-crow .ck  { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #4b8db3; }
.cn-crow .cv  { font-size: 18px; font-weight: 400; color: #073b63; }
a.cn-crow:hover .cv { color: #4b8db3; }

/* ---------- Social icons ---------- */
.cn-soc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #073b6340;
	color: #073b63;
	text-decoration: none;
}
.cn-soc:hover { border-color: #4b8db3; color: #4b8db3; }

/* ---------- Form fields (underline style) ---------- */
.cn-fld {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cn-fld label,
.cn-fld .cn-lg {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #073b63;
}
.cn-opt {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #111111;
}
.cn-req { color: #4b8db3; }

.cn-inu {
	width: 100%;
	min-height: 52px;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid #073b6340;
	background: transparent;
	font-family: inherit;
	font-size: 17px;
	color: #111111;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.cn-inu:hover  { border-bottom-color: #073b6380; }
.cn-inu:focus  { outline: none; border-bottom-color: #073b63; box-shadow: 0 1px 0 0 #073b63; }
textarea.cn-inu { resize: vertical; line-height: 26px; min-height: 120px; }

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

/* ---------- Project type chips ---------- */
.cn-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #073b6340;
	background: #ffffff;
	color: #073b63;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.cn-chip:hover { border-color: #073b63; }
.cn-chip[aria-pressed="true"] {
	background: #073b63;
	color: #ffffff;
	border-color: #073b63;
}

/* ---------- What Happens Next grid ---------- */
.cn-nxgrid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(48px, 8vw, 128px);
	align-items: start;
}
.cn-nxrow {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 24px;
	padding: 36px 0;
	border-top: 1px solid #073b6326;
}
.cn-nxrow:last-child { border-bottom: 1px solid #073b6326; }

/* ---------- Capabilities accordion (dark section) ---------- */
.cn-caps-sec .cn-capitem { border-top: 1px solid #4b8db34d; }
.cn-caps-sec .cn-capitem:last-child { border-bottom: 1px solid #4b8db34d; }

.cn-capbtn {
	width: 100%;
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 27px 0;
	border: 0;
	background: none;
	font-family: inherit;
	color: #ffffff;
	cursor: pointer;
	text-align: left;
	transition: color 180ms ease;
}
.cn-capbtn:hover { color: #4b8db3; }
.cn-capbtn .cn-capnum {
	font-size: 14px;
	color: #4b8db3;
	font-weight: 600;
	font-family: monospace;
}
.cn-capbtn .cn-captitle {
	display: block;
	font-size: 22px;
	font-weight: 300;
	color: #ffffff;
	transition: color 180ms ease;
}
.cn-capbtn .cn-caparr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4b8db3;
	width: 24px;
	flex-shrink: 0;
}
.cn-capbtn:hover .cn-caparr   { color: #ffffff; }
.cn-capbtn[aria-expanded="true"] .cn-captitle { color: #4b8db3; }
.cn-capbtn[aria-expanded="true"] .cn-caparr   { color: #ffffff; }

.cn-capbody { padding: 0 32px 20px 76px; }
.cn-capbody p { font-size: 15px; line-height: 1.7; color: #9fb9d5; margin: 0; }

/* ---------- Scroll reveal animations ---------- */
@keyframes cn-slideInUp {
	from { opacity: 0; transform: translateY(32px); }
	to   { opacity: 1; transform: translateY(0); }
}

.contact-page .reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 600ms ease, transform 600ms ease;
	transition-delay: var(--reveal-delay, 0ms);
}
.contact-page .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* anim-eyebrow: slide in line from left */
.contact-page .anim-eyebrow {
	opacity: 0;
	transform: translateX(-16px);
	transition: opacity 500ms ease, transform 500ms ease;
}
.contact-page .anim-eyebrow.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* anim-title: fade + slight up */
.contact-page .anim-title {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 700ms ease 100ms, transform 700ms ease 100ms;
}
.contact-page .anim-title.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.cn-ptgrid,
	.cn-kint,
	.cn-nxgrid { grid-template-columns: 1fr; }
	.cn-office  { position: static; }
	.contact-page .cn-band .ph { height: 320px; }
	.cn-capbtn  { grid-template-columns: 44px 1fr auto !important; gap: 12px !important; padding: 20px 0 !important; }
	.cn-capbody { padding: 0 12px 18px 56px !important; }
}
@media (max-width: 600px) {
	.cn-row2 { grid-template-columns: 1fr; }
	.cn-nxrow { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.contact-page .reveal,
	.contact-page .anim-eyebrow,
	.contact-page .anim-title {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
