/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Page basics */
body {
	font-family: Helvetica, sans-serif;
}
html,
body {
	min-height: 100%;
}

html {
	scroll-behavior: smooth; /* subtle scroll */
}

p {
	font-size: 1.1em;
}
/* Layout */
.container {
	display: flex;
	width: 100%;
	min-height: 100svh; /* full viewport height, better on mobile than 100vh */
}

/* Left column (gray header area) */

.header {
	flex: 0 0 clamp(360px, 30vw, 460px);
	background-color: #46494e;
	display: flex;
}

/* Inner header content */
.inner {
	flex: 1;
	padding: 80px 64px;
	text-align: center;
}

/* Header image scales down with column width */
.header img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	position: sticky;
	top: 80px;
}

.logo {
	display: block;
	width: 500px;
	max-width: 100%;
	min-width: 220px;
	margin: 24px auto;
	text-align: center;
}

/* Main content (right column) */
.main {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 128px 92px;
}

section {
	width: 100%;
}

:root {
	--measure: 68ch;
}

section > h2,
section > .intro,
section > a {
	max-width: var(--measure);
	text-wrap: pretty;
	margin-right: auto;
	display: block;
}

/* Typography & elements */
h2 {
	color: #787878;
	font-weight: 400;
	font-size: 2.1em;
	line-height: 1.5em;
}

.intro {
	margin: 0 0 2em 0;
}
p {
	padding: 16px 0;
	color: #6e6e6e;
}

.cta-btn {
	padding: 10px 16px;
	border: 1px solid #d39a8f;
	background: #d39a8f;
	color: #2f3136;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.1em;
}

.cta-btn:hover {
	filter: brightness(1.05);
}

/* Cards */
.card-container {
	color: #5f5f5f;
	display: grid;
	padding: 48px 0px;
	gap: 24px 48px; /* room to breathe */
	grid-template-columns: repeat(2, minmax(320px, 1fr)); /* ≤ 2 cols max */
	width: 100%;
	align-items: start; /* avoid uneven vertical jitter */
}

.card {
	width: 100%; /* let the grid control width */
	max-width: 612px; /* optional cap so a single col doesn't get too wide on huge screens */
	margin-inline: auto; /* keeps lone cards centered */
	display: flex; /* optional: consistent vertical spacing */
	flex-direction: column;
}

.card img {
	width: 100%;
	height: auto;
	display: block;
	border: 2px solid #9b9999;
	border-radius: 12px;
}

.card h3 {
	padding: 9px 0px 0px 0px;
}

/* Contact section */
.contact {
	margin-top: 64px;
}

.contact h2 {
	margin-bottom: 8px;
}

.contact > p {
	max-width: 68ch;
	color: #333;
	margin-bottom: 28px;
}

/* Two-column layout that stacks on small screens */
.contact-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr; /* form a bit wider than info */
	gap: 32px;
	align-items: start;
}

@media (max-width: 900px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
	section {
		width: 100%;
	}

	.contact {
		text-align: center;
	}

	.contact > p {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Form */
.honeypot {
	position: absolute;
	left: -9999px;
}

.contact-form {
	/* display: none !important; */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 16px;
}

.contact-form .field {
	display: flex;
	flex-direction: column;
}

.contact-form .field-full {
	grid-column: 1 / -1; /* textarea spans both columns */
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfd3d8;
	border-radius: 8px;
	font: inherit;
	/* background: #bec0c4; */
	background: #c6c8cc;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border: 2px solid #d39a8f;
	/* box-shadow: 0 0 0 3px rgba(138, 160, 255, 0.2); */
}
.contact-form .btn {
	grid-column: 1 / -1;
	justify-self: start;
	padding: 10px 16px;
	border: 1px solid #d39a8f;
	background: #d39a8f;
	color: #2f3136;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.1em;
}

.contact-form .btn:hover {
	filter: brightness(1.05);
}

/* Contact info */
.contact-info ul {
	list-style: none;
	display: grid;
	gap: 8px;
	padding: 0;
}

.contact-info h3 {
	font-size: 1.1rem;
	margin-bottom: 1px;
	color: #111;
}

.contact-info p,
.contact-info a {
	color: #333;
	text-decoration: none;
	padding: 6px 0 12px 0;
}

/* Visually hidden labels for accessibility */
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 900px) {
	.container {
		flex-direction: column;
	}

	.header {
		flex: 0 0 auto;
		width: 100%;
		/* if this column only holds a logo, it shouldn't be a tall banner */
		height: auto;
		padding: 16px 0;
		position: relative;
		overflow: visible;
	}

	.inner {
		/* collapse the wrapper so the img can be sized by .header */
		display: contents;
	}

	.header img {
		max-width: 100%;
		height: auto;
		object-fit: contain;
		position: static;
	}

	.logo {
		position: static;
		width: clamp(
			140px,
			24vw,
			220px
		); /* can scale a bit more on mobile if you want */
		margin: 8px auto 0;
	}

	.main {
		padding: 64px 24px;
	}

	.contact-form {
		grid-template-columns: 1fr; /* stack inputs */
		justify-items: center; /* center the fields */
	}

	.contact-form .field,
	.contact-form .btn {
		width: 100%;
		max-width: 420px; /* keeps it from getting too wide on tablets */
	}

	.contact-form .btn {
		justify-self: center; /* center button */
	}
}

@media (max-width: 740px) {
	/* tweak breakpoint to taste */
	.card-container {
		grid-template-columns: 1fr; /* single column on small screens */
	}
}

@media (max-width: 700px) {
	.main {
		padding: 56px 26px;
		text-align: center;
	}

	.intro {
		line-height: 1.75;
		font-size: 1.05em;
	}
}
