/* =========================================================
   HOMEPAGE CONTACT SECTION
========================================================= */

.home-contact {
	position: relative;
	overflow: hidden;
	background: #f8f7f4;
	color: #18181b;
	padding: clamp(7rem, 11vw, 11rem) 0;
	isolation: isolate;
}


/* =========================================================
   CONTAINER
========================================================= */

.home-contact__container {
	position: relative;
	z-index: 2;
	width: min(100% - 5.5rem, 1280px);
	margin-inline: auto;
}


/* =========================================================
   BACKGROUND
========================================================= */

.home-contact__background {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}


/* =========================================================
   DOT GRID
========================================================= */

.home-contact__grid {
	position: absolute;
	left: -4%;
	bottom: 4%;
	width: 42%;
	height: 52%;

	background-image: radial-gradient(
		circle,
		rgba(20, 83, 45, 0.18) 1px,
		transparent 1px
	);

	background-size: 20px 20px;

	mask-image: linear-gradient(
		to right,
		black 0%,
		rgba(0, 0, 0, 0.7) 45%,
		transparent 100%
	);

	-webkit-mask-image: linear-gradient(
		to right,
		black 0%,
		rgba(0, 0, 0, 0.7) 45%,
		transparent 100%
	);

	opacity: 0.42;
}


/* =========================================================
   ARCHITECTURAL ARCS
========================================================= */

.home-contact__arcs {
	position: absolute;
	width: min(58vw, 900px);
	height: auto;
	right: -8%;
	top: 5%;
	overflow: visible;
	opacity: 0.6;
}

.home-contact__arc {
	stroke: rgba(20, 83, 45, 0.12);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.home-contact__arc--one {
	stroke: rgba(20, 83, 45, 0.13);
}

.home-contact__arc--two {
	stroke: rgba(20, 83, 45, 0.1);
}

.home-contact__arc--three {
	stroke: rgba(20, 83, 45, 0.08);
}


/* =========================================================
   DECORATIVE DOTS
========================================================= */

.home-contact__dot {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #14532d;
	box-shadow: 0 0 0 5px rgba(20, 83, 45, 0.06);
}

.home-contact__dot--one {
	top: 17%;
	right: 23%;
}

.home-contact__dot--two {
	top: 49%;
	right: 7%;
}

.home-contact__dot--three {
	bottom: 15%;
	left: 33%;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.home-contact__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
	align-items: start;
	gap: clamp(4rem, 8vw, 9rem);
}


/* =========================================================
   INTRO
========================================================= */

.home-contact__intro {
	position: relative;
	padding-top: 0.5rem;
	max-width: 600px;
}


/* =========================================================
   EYEBROW
========================================================= */

.home-contact__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 1.5rem;

	font-family: "Sora", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;

	color: #14532d;
}

.home-contact__eyebrow-dot {
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	border-radius: 50%;
	background: #14532d;
}


/* =========================================================
   HEADING
========================================================= */

.home-contact__heading {
	max-width: 650px;
	margin: 0;

	font-family: "Sora", sans-serif;
	font-size: clamp(3rem, 5.3vw, 5.8rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.055em;

	color: #18181b;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.home-contact__description {
	max-width: 500px;
	margin: 2rem 0 0;

	font-family: "Sora", sans-serif;
	font-size: clamp(0.95rem, 1.2vw, 1.08rem);
	font-weight: 400;
	line-height: 1.8;

	color: rgba(24, 24, 27, 0.66);
}


/* =========================================================
   CONTACT DETAILS
========================================================= */

.home-contact__details {
	margin-top: clamp(3rem, 5vw, 5rem);
	border-top: 1px solid rgba(24, 24, 27, 0.1);
	max-width: 500px;
}

.home-contact__detail {
	position: relative;

	display: grid;
	grid-template-columns: 90px 1fr auto;
	align-items: center;
	gap: 1rem;

	padding: 1.15rem 0;

	border-bottom: 1px solid rgba(24, 24, 27, 0.1);

	text-decoration: none;

	transition:
		color 0.3s ease,
		transform 0.3s ease;
}

.home-contact__detail:hover {
	color: #14532d;
	transform: translateX(5px);
}

.home-contact__detail-label {
	font-family: "Sora", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(24, 24, 27, 0.45);
}

.home-contact__detail-value {
	min-width: 0;

	font-family: "Sora", sans-serif;
	font-size: 0.9rem;
	font-weight: 450;
	color: #18181b;

	overflow-wrap: anywhere;
}

.home-contact__detail-arrow {
	font-size: 1rem;
	color: #14532d;
	transition: transform 0.3s ease;
}

.home-contact__detail:hover .home-contact__detail-arrow {
	transform: translate(3px, -3px);
}


/* =========================================================
   AVAILABILITY
========================================================= */

.home-contact__availability {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;

	margin-top: 1.5rem;

	font-family: "Sora", sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	color: #14532d;
}

.home-contact__availability-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;

	box-shadow:
	0 0 0 5px rgba(34, 197, 94, 0.1);
}


/* =========================================================
   FORM CARD
========================================================= */

.home-contact__form-card {
	position: relative;

	padding: clamp(2rem, 4vw, 3.6rem);

	background: rgba(255, 255, 255, 0.7);

	border: 1px solid rgba(24, 24, 27, 0.09);
	border-radius: 2rem;

	box-shadow:
	0 20px 60px rgba(24, 24, 27, 0.055),
	0 4px 15px rgba(24, 24, 27, 0.025);

	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);

	transition:
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.5s ease;
}

.home-contact__form-card:hover {
	transform: translateY(-4px);

	box-shadow:
	0 28px 75px rgba(24, 24, 27, 0.075),
	0 6px 18px rgba(24, 24, 27, 0.03);
}


/* =========================================================
   FORM HEADING
========================================================= */

.home-contact__form-heading {
	margin: 0;

	font-family: "Sora", sans-serif;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.035em;

	color: #18181b;
}

.home-contact__form-description {
	max-width: 500px;
	margin: 0.8rem 0 2.3rem;

	font-family: "Sora", sans-serif;
	font-size: 0.86rem;
	line-height: 1.7;

	color: rgba(24, 24, 27, 0.56);
}


/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.home-contact__success {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;

	margin-bottom: 1.5rem;
	padding: 0.9rem 1rem;

	border: 1px solid rgba(34, 197, 94, 0.18);
	border-radius: 0.9rem;

	background: rgba(34, 197, 94, 0.07);

	font-family: "Sora", sans-serif;
	font-size: 0.78rem;
	line-height: 1.5;

	color: #14532d;
}

.home-contact__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 20px;
	height: 20px;
	flex: 0 0 20px;

	border-radius: 50%;

	background: #14532d;
	color: #fff;

	font-size: 0.7rem;
	font-weight: 700;
}


/* =========================================================
   FORM
========================================================= */

.home-contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
}

.home-contact__form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}


/* =========================================================
   FIELD
========================================================= */

.home-contact__field {
	width: 100%;
}

.home-contact__field label {
	display: block;
	margin-bottom: 0.6rem;

	font-family: "Sora", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;

	color: rgba(24, 24, 27, 0.7);
}


/* =========================================================
   INPUTS
========================================================= */

.home-contact__field input,
.home-contact__field textarea,
.home-contact__phone select {
	width: 100%;

	border: 1px solid rgba(24, 24, 27, 0.1);
	outline: none;

	background: rgba(248, 247, 244, 0.55);

	font-family: "Sora", sans-serif;
	font-size: 0.84rem;
	font-weight: 400;

	color: #18181b;

	transition:
		border-color 0.3s ease,
		background 0.3s ease,
		box-shadow 0.3s ease;
}

.home-contact__field input,
.home-contact__field textarea {
	padding: 1rem 1.05rem;
	border-radius: 0.85rem;
}

.home-contact__field textarea {
	min-height: 145px;
	resize: vertical;
	line-height: 1.7;
}

.home-contact__field input::placeholder,
.home-contact__field textarea::placeholder {
	color: rgba(24, 24, 27, 0.34);
}

.home-contact__field input:hover,
.home-contact__field textarea:hover {
	border-color: rgba(20, 83, 45, 0.22);
}

.home-contact__field input:focus,
.home-contact__field textarea:focus,
.home-contact__phone select:focus {
	border-color: rgba(20, 83, 45, 0.55);

	background: rgba(255, 255, 255, 0.92);

	box-shadow:
	0 0 0 4px rgba(20, 83, 45, 0.055);
}


/* =========================================================
   PHONE
========================================================= */

.home-contact__phone {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 0.55rem;
}

.home-contact__phone select {
	padding: 1rem 0.75rem;
	border-radius: 0.85rem;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
}


/* =========================================================
   HONEYPOT
========================================================= */

.home-contact__honeypot {
	position: absolute !important;

	width: 1px !important;
	height: 1px !important;

	padding: 0 !important;
	margin: -1px !important;

	overflow: hidden !important;

	clip: rect(0, 0, 0, 0) !important;

	white-space: nowrap !important;

	border: 0 !important;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.home-contact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;

	width: 100%;

	margin-top: 0.25rem;
	padding: 1rem 1.35rem;

	border: 0;
	border-radius: 999px;

	background: #14532d;
	color: #fff;

	font-family: "Sora", sans-serif;
	font-size: 0.84rem;
	font-weight: 600;

	cursor: pointer;

	box-shadow:
	0 12px 28px rgba(20, 83, 45, 0.17);

	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.35s ease,
		box-shadow 0.35s ease;
}

.home-contact__submit:hover {
	background: #0f4023;

	transform: translateY(-3px);

	box-shadow:
	0 17px 35px rgba(20, 83, 45, 0.23);
}

.home-contact__submit:active {
	transform: translateY(-1px);
}

.home-contact__submit-arrow {
	font-size: 1rem;

	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-contact__submit:hover .home-contact__submit-arrow {
	transform: translate(4px, -4px);
}


/* =========================================================
   FORM LOADING STATE
========================================================= */

.home-contact__submit.is-submitting {
	pointer-events: none;
	opacity: 0.72;
}

.home-contact__submit.is-submitting .home-contact__submit-arrow {
	animation: homeContactArrowPulse 0.8s ease-in-out infinite alternate;
}

@keyframes homeContactArrowPulse {
	from {
		transform: translate(0, 0);
	}

	to {
		transform: translate(3px, -3px);
	}
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

	.home-contact__container {
		width: min(100% - 4rem, 920px);
	}

	.home-contact__layout {
		grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
		gap: 3.5rem;
	}

	.home-contact__heading {
		font-size: clamp(2.8rem, 5vw, 4.5rem);
	}

	.home-contact__form-card {
		padding: 2rem;
	}

	.home-contact__arcs {
		width: 70vw;
		right: -25%;
	}

	.home-contact__grid {
		width: 45%;
	}
}


/* =========================================================
   TABLET / LARGE MOBILE
========================================================= */

@media (max-width: 820px) {

	.home-contact {
		padding: 6rem 0;
	}

	.home-contact__container {
		width: min(100% - 3rem, 680px);
	}

	.home-contact__layout {
		grid-template-columns: 1fr;
		gap: 3.5rem;
	}

	.home-contact__intro {
		max-width: 650px;
	}

	.home-contact__heading {
		max-width: 620px;
	}

	.home-contact__description {
		max-width: 560px;
	}

	.home-contact__details {
		max-width: 560px;
	}

	.home-contact__form-card {
		max-width: 680px;
		width: 100%;
	}

	.home-contact__arcs {
		width: 95vw;
		right: -40%;
		top: 18%;
		opacity: 0.45;
	}

	.home-contact__grid {
		left: -8%;
		bottom: 2%;
		width: 65%;
		height: 35%;
	}
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

	.home-contact {
		padding: 5.5rem 0;
	}

	.home-contact__container {
		width: min(100% - 2rem, 480px);
	}

	.home-contact__layout {
		gap: 2.75rem;
	}

	.home-contact__eyebrow {
		margin-bottom: 1.2rem;
		font-size: 0.66rem;
	}

	.home-contact__heading {
		font-size: clamp(2.35rem, 11vw, 3.4rem);
		line-height: 1.04;
		letter-spacing: -0.06em;
	}

	.home-contact__description {
		margin-top: 1.4rem;
		font-size: 0.88rem;
		line-height: 1.75;
	}

	.home-contact__details {
		margin-top: 2.5rem;
	}

	.home-contact__detail {
		grid-template-columns: 68px minmax(0, 1fr) auto;
		gap: 0.7rem;
		padding: 1rem 0;
	}

	.home-contact__detail-label {
		font-size: 0.61rem;
	}

	.home-contact__detail-value {
		font-size: 0.75rem;
	}

	.home-contact__availability {
		font-size: 0.7rem;
	}

	.home-contact__form-card {
		padding: 1.4rem;
		border-radius: 1.35rem;
	}

	.home-contact__form-heading {
		font-size: 1.45rem;
	}

	.home-contact__form-description {
		font-size: 0.76rem;
		margin-bottom: 1.7rem;
	}

	.home-contact__form {
		gap: 1.15rem;
	}

	.home-contact__form-row {
		grid-template-columns: 1fr;
		gap: 1.15rem;
	}

	.home-contact__field label {
		font-size: 0.67rem;
	}

	.home-contact__field input,
	.home-contact__field textarea,
	.home-contact__phone select {
		font-size: 0.76rem;
	}

	.home-contact__field input,
	.home-contact__field textarea {
		padding: 0.9rem;
		border-radius: 0.75rem;
	}

	.home-contact__phone {
		grid-template-columns: 78px minmax(0, 1fr);
	}

	.home-contact__phone select {
		padding: 0.9rem 0.6rem;
		border-radius: 0.75rem;
	}

	.home-contact__field textarea {
		min-height: 125px;
	}

	.home-contact__submit {
		padding: 0.95rem 1.1rem;
		font-size: 0.76rem;
	}

	.home-contact__arcs {
		width: 125vw;
		right: -70%;
		top: 25%;
		opacity: 0.32;
	}

	.home-contact__grid {
		width: 75%;
		height: 28%;
		left: -15%;
		bottom: 3%;
		background-size: 17px 17px;
		opacity: 0.28;
	}

	.home-contact__dot {
		width: 5px;
		height: 5px;
	}

	.home-contact__dot--one {
		top: 28%;
		right: 18%;
	}

	.home-contact__dot--two {
		top: 52%;
		right: 7%;
	}

	.home-contact__dot--three {
		bottom: 9%;
		left: 28%;
	}
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

	.home-contact {
		padding: 4.75rem 0;
	}

	.home-contact__container {
		width: min(100% - 1.5rem, 360px);
	}

	.home-contact__heading {
		font-size: 2.25rem;
	}

	.home-contact__form-card {
		padding: 1.15rem;
	}

	.home-contact__detail {
		grid-template-columns: 60px minmax(0, 1fr) auto;
	}
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.home-contact *,
	.home-contact *::before,
	.home-contact *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.home-contact__form-card {
		transform: none !important;
	}

	.home-contact__detail:hover {
		transform: none;
	}
}




/* =========================================
   PRIVACY POLICY & TERMS CONSENT
========================================= */

.home-contact__legal {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 1.5rem;
}

.home-contact__legal input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0.2rem 0 0;
    accent-color: var(--primary, #14532D);
    cursor: pointer;
}

.home-contact__legal-label {
    display: block;
    min-width: 0;
    margin: 0;
    color: var(--text-light, #52525B);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.home-contact__legal-label a {
    color: var(--text, #18181B);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--border, #E4E4E7);
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.home-contact__legal-label a:hover {
    color: var(--primary, #14532D);
}

.home-contact__legal input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary, #14532D);
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 1024px) {
    .home-contact__legal {
        gap: 0.65rem;
        margin-bottom: 1.25rem;
    }

    .home-contact__legal-label {
        font-size: 0.85rem;
        line-height: 1.65;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .home-contact__legal {
        gap: 0.65rem;
        margin-bottom: 1.25rem;
    }

    .home-contact__legal input[type="checkbox"] {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .home-contact__legal-label {
        font-size: 0.8125rem;
        line-height: 1.65;
    }
}

/* Small mobile */

@media (max-width: 380px) {
    .home-contact__legal {
        gap: 0.55rem;
    }

    .home-contact__legal-label {
        font-size: 0.78rem;
        line-height: 1.6;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .home-contact__legal-label a {
        transition: none;
    }
}




.home-contact__error {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid #DC2626;
    border-radius: 8px;
    color: #B91C1C;
    font-size: 0.875rem;
    line-height: 1.6;
}
