/* ===== Contact page (تماس با ما) — no site header; footer reused from the homepage ===== */
.page-contact {
	--ct-accent: #EDA35A;
	--ct-accent-ink: #E8892F;
	--ct-green: #03433A;
	--ct-green-btn: #013F37;
	--ct-bg: #FBF3EA;
	--ct-card: #FCF5EC;
	--ct-line: #F0E5D8;
	--ct-icon-bg: #FDEAD3;
	--ct-text: #1F2B2A;
	--ct-shadow: 0 8px 22px rgba(90, 60, 25, .08), 0 1px 3px rgba(90, 60, 25, .06);
	background: var(--ct-bg);
}
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Gap before the footer: exactly 50px */
.ct-main { padding-bottom: 50px; }

/* Shared icon bubble */
.ct-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 66px;
	height: 66px;
	padding: 16px;
	border-radius: 50%;
	background: var(--ct-icon-bg);
}
.ct-icon svg,
.ct-field__icon svg,
.ct-submit__icon svg,
.ct-map__btn-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ct-icon { color: var(--ct-accent-ink); }
.ct-icon--square { width: 51px; height: 51px; padding: 12px; border-radius: 12px; }
.ct-icon--sm { width: 45px; height: 45px; padding: 11px; border-radius: 10px; }

/* ===== Hero banner ===== */
.ct-hero {
	position: relative;
	height: 197px;
	background:
		radial-gradient(120% 90% at 100% 110%, rgba(255, 255, 255, .05) 0 38%, transparent 38.3% 46%, rgba(255, 255, 255, .04) 46.3% 52%, transparent 52.3%),
		var(--ct-green);
}
.ct-hero__photo {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 600px;
	height: 267px;
	max-width: none;
	pointer-events: none;
}
.ct-hero__content {
	position: absolute;
	top: 34px;
	right: 12.2%;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 600px;
}
.ct-hero__title {
	display: flex;
	align-items: center;
	gap: 48px;
	font-size: 52px;
	font-weight: 900;
	line-height: 1.3;
	color: var(--white);
}
.ct-hero__orn { flex: none; width: 30px; height: 46px; }
.ct-hero__text { margin-top: 18px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .92); text-align: center; }

/* ===== Layout ===== */
.ct-layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 503px minmax(0, 1fr); /* RTL: form on the right, info + map on the left */
	align-items: stretch;
	gap: 26px;
	width: min(1339px, 100% - 48px);
	margin: 50px auto 0; /* exactly 50px below the hero banner */
}

/* ===== Info cards ===== */
.ct-side { display: flex; flex-direction: column; gap: 45px; min-width: 0; }
.ct-infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.ct-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 205px;
	padding: 20px 6px 18px;
	border: 1px solid var(--ct-line);
	border-radius: 20px;
	background: var(--ct-card);
	box-shadow: var(--ct-shadow);
	text-align: center;
}
/* Hover: lift + soft shadow + accent border (cards keep their size; translate doesn't shift layout) */
.ct-info { transition: translate 250ms ease, box-shadow 250ms ease, border-color 250ms ease; }
@media (hover: hover) {
	.ct-info:hover {
		translate: 0 -6px;
		border-color: rgba(237, 163, 90, .65);
		box-shadow: 0 16px 32px rgba(90, 60, 25, .13), 0 3px 8px rgba(90, 60, 25, .07);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ct-info { transition: none; }
	.ct-info:hover { translate: none; }
}
.ct-info__title { margin-top: 16px; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--ct-text); white-space: nowrap; }
.ct-info__text { margin-top: 8px; font-size: 15.5px; line-height: 1.9; color: var(--ct-text); }
.ct-info--address .ct-info__text { letter-spacing: -.2px; }
.ct-info__text a { font-weight: 700; font-size: 18.5px; letter-spacing: .3px; transition: color .2s; }
.ct-info__text a:hover { color: var(--ct-accent-ink); }

/* ===== Map ===== */
.ct-map {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 4px 4px 0;
	border: 1px solid var(--ct-line);
	border-radius: 20px;
	background: var(--ct-card);
	box-shadow: var(--ct-shadow);
	overflow: hidden;
}
.ct-map__media { position: relative; height: 310px; border-radius: 17px 17px 0 0; overflow: hidden; }
.ct-map__media img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 44%; }
.ct-map__btn {
	position: absolute;
	left: 19px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 47px;
	padding: 0 20px;
	border-radius: 14px;
	background: var(--ct-green-btn);
	color: var(--white);
	font-size: 17px;
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(0, 40, 35, .25);
	cursor: pointer;
}
.ct-map__btn[aria-disabled="true"] { cursor: default; }
.ct-map__btn-icon { width: 20px; height: 20px; }
.ct-map__info {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 72px;
	padding: 10px 18px 10px 20px;
}
.ct-map__label { font-size: 17px; font-weight: 700; color: var(--ct-text); white-space: nowrap; }
.ct-map__sep { width: 1px; height: 36px; background: #DDD5CA; }
.ct-map__addr { font-size: 16px; line-height: 1.6; color: var(--ct-text); }

/* ===== Form card ===== */
.ct-form-card {
	display: flex;
	flex-direction: column;
	padding: 26px 32px 44px;
	border: 1px solid var(--ct-line);
	border-radius: 24px;
	background: #FDF8F2;
	box-shadow: var(--ct-shadow);
}
.ct-form-card__head { display: flex; align-items: center; gap: 18px; }
.ct-form-card__title { font-size: 25px; font-weight: 700; line-height: 1.4; color: var(--ct-text); }
.ct-form-card__desc { margin-top: 18px; font-size: 16px; line-height: 1.9; color: #3A4443; }
.ct-form { display: flex; flex: 1; flex-direction: column; gap: 31px; margin-top: 30px; }

.ct-field { position: relative; display: block; }
.ct-field__icon {
	position: absolute;
	top: 17px;
	right: 20px;
	width: 25px;
	height: 25px;
	color: var(--ct-accent-ink);
	pointer-events: none;
}
.ct-input {
	display: block;
	width: 100%;
	height: 56px;
	padding: 0 62px 0 20px;
	border: 1.5px solid #ECE6DF;
	border-radius: 18px;
	background: #FEFBF7;
	font: inherit;
	font-size: 16px;
	color: var(--ct-text);
	text-align: right;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.ct-input--area { height: 143px; padding-top: 16px; resize: vertical; line-height: 1.7; }
.ct-input::placeholder { color: #6B6F6E; opacity: 1; }
.ct-input:focus { border-color: var(--ct-accent); box-shadow: 0 0 0 3px rgba(237, 163, 90, .22); }
.ct-input[aria-invalid="true"] { border-color: #C0392B; }
/* placeholder with orange asterisk for required fields */
.ct-ph {
	position: absolute;
	top: 50%;
	right: 62px;
	translate: 0 -50%;
	font-size: 16px;
	color: #6B6F6E;
	pointer-events: none;
}
.ct-ph b { margin-right: 4px; font-weight: 400; color: var(--ct-accent-ink); }
.ct-input:not(:placeholder-shown) + .ct-ph,
.ct-input:focus + .ct-ph { display: none; }

.ct-form__status { min-height: 0; margin: -16px 0 -8px; font-size: 14px; line-height: 1.6; color: var(--ct-green); }
.ct-form__status:empty { display: none; }
.ct-form__status.is-error { color: #B03A2E; }
.ct-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 61px;
	margin-top: auto;
	border-radius: 16px;
	background: var(--ct-green-btn);
	color: var(--white);
	font-size: 20px;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(0, 40, 35, .22);
	transition: background .2s;
}
.ct-submit:hover { background: #00564B; }
.ct-submit__icon { width: 30px; height: 30px; }

/* ===== Laptop ===== */
@media (max-width: 1279.98px) and (min-width: 992px) {
	.ct-layout { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
	.ct-infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-info { min-height: 0; }
	.ct-hero__content { right: 5%; }
}

/* ===== Tablet & mobile ===== */
@media (max-width: 991.98px) {
	.ct-hero {
		height: auto;
		padding: 40px 16px 44px;
		border-radius: 0 0 28px 28px;
		background:
			linear-gradient(rgba(3, 67, 58, .82), rgba(3, 67, 58, .9)),
			url("../images/contact/hero-photo-mobile.webp") 30% 40% / cover no-repeat,
			var(--ct-green);
	}
	.ct-hero__photo { display: none; }
	.ct-hero__content { position: static; width: auto; }
	.ct-hero__title { gap: 18px; font-size: 34px; }
	.ct-hero__orn { width: 21px; height: 32px; }
	.ct-hero__text { max-width: 420px; margin-top: 12px; font-size: 15px; line-height: 1.8; }

	/* order: info cards → form → map */
	.ct-layout { display: flex; flex-direction: column; gap: 20px; width: 100%; margin-top: 24px; padding: 0 16px; }
	.ct-side { display: contents; }
	.ct-infos { order: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ct-form-card { order: 2; padding: 22px 18px 24px; border-radius: 20px; }
	.ct-map { order: 3; flex: none; }

	.ct-info { min-height: 0; padding: 16px 8px 14px; border-radius: 18px; }
	.ct-icon { width: 54px; height: 54px; padding: 13px; }
	.ct-info__title { margin-top: 10px; font-size: 16.5px; }
	.ct-info__text { margin-top: 4px; font-size: 14px; line-height: 1.8; }
	.ct-info__text a { font-size: 16px; }

	.ct-icon--square { width: 44px; height: 44px; padding: 10px; }
	.ct-form-card__head { gap: 12px; }
	.ct-form-card__title { font-size: 19px; }
	.ct-form-card__desc { margin-top: 12px; font-size: 14.5px; line-height: 1.85; }
	.ct-form { gap: 16px; margin-top: 18px; }
	.ct-input { height: 52px; padding-right: 54px; border-radius: 16px; font-size: 15px; }
	.ct-input--area { height: 128px; }
	.ct-field__icon { top: 15px; right: 17px; width: 22px; height: 22px; }
	.ct-ph { right: 54px; font-size: 15px; }
	.ct-form__status { margin: 0; }
	.ct-submit { height: 54px; margin-top: 6px; font-size: 17px; }
	.ct-submit__icon { width: 24px; height: 24px; }

	.ct-map__media { height: 220px; }
	.ct-map__btn { left: 12px; bottom: 12px; height: 40px; gap: 8px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
	.ct-map__btn-icon { width: 17px; height: 17px; }
	.ct-map__info { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
	.ct-icon--sm { width: 38px; height: 38px; padding: 9px; }
	.ct-map__label { font-size: 15px; }
	.ct-map__sep { display: none; }
	.ct-map__addr { flex-basis: 100%; font-size: 14px; }
}
@media (min-width: 600px) and (max-width: 991.98px) {
	.ct-layout { max-width: 760px; margin-inline: auto; }
	.ct-infos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ct-info__title { font-size: 15px; }
	.ct-info__text { font-size: 13px; }
	.ct-info__text a { font-size: 14px; }
	.ct-map__media { height: 280px; }
	.ct-map__sep { display: block; }
	.ct-map__addr { flex-basis: auto; }
}
@media (max-width: 359.98px) {
	.ct-hero__title { font-size: 28px; gap: 12px; }
	.ct-infos { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Site header on the contact page: slim bar in normal flow, green gradient ===== */
.page-contact .site-header {
	position: relative;
	z-index: 50;
	background: linear-gradient(90deg, #002E29 0%, #00483E 50%, #003B33 100%);
	box-shadow: inset 0 -1px 0 rgba(237, 163, 90, .12);
}
.page-contact .site-header__inner { z-index: 1; height: 58px; }
/* Gold curve: continues the hero photo's divider up through the bar (behind nav content) */
.ct-nav-curve {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 700px;
	height: 59px;
	pointer-events: none;
}
/* The hero photo (curve base) is fixed to the left edge while the menu is centred:
   the curve only clears the menu text and logo between 1400px and 1456px */
@media (min-width: 1400px) and (max-width: 1456px) {
	.ct-nav-curve { display: block; }
}
.page-contact .brand {
	transform: scale(.56);
	transform-origin: 50% 0;
}
.page-contact .nav__sub { top: calc(100% + 16px); }

@media (max-width: 991.98px) {
	.page-contact .site-header__inner { height: 72px; }
	.ct-nav-curve { display: none; }
	.page-contact .mbar { top: 15px; }
	.page-contact .brand { top: 7.5px; transform: none; }
}
