:root {
	--gold: #d4af37;
	--deep-blue: #0b132b;
	--light-gold: #f5d7a3;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
html {
	margin: 0;
	height: 100%;
	font-family: 'Inter', sans-serif;
	background: var(--deep-blue);
	color: var(--light-gold);
	display: flex;
	align-items: center;
	justify-content: center;
}

.container {
	display: flex;
	max-width: 1200px;
	margin: auto;
	padding: 2rem;
	gap: 3rem;
	align-items: center;
}

.image-side {
	flex: 1;
	min-width: 300px;
}

.image-side img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 0 40px rgba(212, 175, 55, .3);
}

.text-side {
	flex: 1.2;
}

h1 {
	font-family: 'Playfair Display', serif;
	font-size: 3.5rem;
	margin: 0 0 .5rem;
	color: var(--gold);
}

h2 {
	font-size: 1.5rem;
	margin: 0 0 2rem;
	opacity: .85;
	font-weight: 400;
}

h3 {
	font-size: 1.25rem;
	margin: 1.5rem 0 .75rem;
	color: var(--gold);
}

p {
	margin: 0 0 1rem;
	line-height: 1.6;
	opacity: .9;
}

/* Action bar - CTA + social links on index page */
.action-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.8rem;
	margin: 1.5rem 0;
	justify-content: flex-start;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	background: var(--gold);
	color: var(--deep-blue);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.2rem;
	border-radius: 8px;
	transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
	box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
	white-space: nowrap;
}

.cta-button:hover {
	background: var(--light-gold);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.social-link {
	color: var(--gold);
	text-decoration: none;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: transform 0.2s;
	will-change: transform, filter;			/* forces GPU layer early – fixes repaint clipping in Safari */
	transform: translateZ(0);				/* creates hardware-accelerated layer – Safari likes this for filter/shadow stability */
	backface-visibility: hidden;			/* prevents flickering/clipping artifacts during transitions */
	-webkit-font-smoothing: antialiased;	/* smoother text rendering on hover */
}

.social-link:hover {
	transform: scale(1.08) translateZ(0);			/* keep translateZ to maintain layer */
	text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);	/* subtle gold glow around text */
	filter: brightness(1.15);						/* optional: slight brightening */
}

.social-link img {
	margin-right: 0;
}

.social-link:hover img {
	filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
}

.cta-button,
.social-link {
	transition: all 0.3s ease;
}

/* Contact details */
.contact-details {
	margin-top: 1.5rem;
	font-size: .95rem;
	opacity: .8;
}

/* Form actions - Submit + Back buttons on contact.html */
.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.form-actions button,
.form-actions a {
	flex: 1 1 auto;
	min-width: 140px;
	text-align: center;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s;
	cursor: pointer;
}

.form-actions button {
	background: var(--gold);
	color: var(--deep-blue);
	border: none;
}

.form-actions button:hover {
	background: var(--light-gold);
	transform: translateY(-2px);
}

.form-actions .secondary-button {
	background: transparent;
	color: var(--gold);
	border: 1px solid var(--gold);
	text-decoration: none;
}

.form-actions .secondary-button:hover {
	background: rgba(212, 175, 55, 0.1);
	transform: translateY(-2px);
}

/* Form-specific styles */
form {
	max-width: 500px;
	margin: 2rem 0;
	text-align: left;
}

label {
	display: block;
	margin: 1.2rem 0 0.5rem;
	font-weight: 600;
	color: var(--gold);
}

input,
textarea {
	width: 100%;
	padding: 0.9rem;
	border: 1px solid var(--light-gold);
	border-radius: 6px;
	background: rgba(255,255,255,0.08);
	color: var(--light-gold);
	font-family: inherit;
	font-size: 1rem;
}

textarea {
	min-height: 160px;
	resize: vertical;
}

#status {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 6px;
	font-weight: 500;
}

.success {
	background: rgba(144,238,144,0.15);
	color: #90ee90;
}

.error {
	background: rgba(255,99,71,0.15);
	color: #ff6347;
}

.honeypot {
	display: none;
}

/* Thanks page */
.thanks-message {
	font-size: 1.3rem;
	line-height: 1.7;
	margin: 2rem 0;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
	.container {
		flex-direction: column;
		text-align: center;
	}

	.image-side img {
		max-width: 320px;
	}

	.action-bar {
		flex-direction: column;
		align-items: center;
		gap: 1.2rem;
		margin: 1.2rem 0;
		justify-content: center;
	}

	.cta-button {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}

	.form-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}
}