/*
 * Al Duffa · Contact page (template page-contact.php).
 * Everything sits inside .ald-chrome, so it uses the design's tokens (--navy, --gold …).
 */
.ct { background: var(--bg); padding-bottom: 88px; overflow-x: clip; }
.ct .wrap { width: min(1240px, 100%); }

@keyframes ctUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ctPulse { 0% { box-shadow: 0 0 0 0 rgba(199, 161, 91, .55); } 100% { box-shadow: 0 0 0 18px rgba(199, 161, 91, 0); } }

/* ---- three cards, with clear space under the title band ---- */
.ct-cards { position: relative; z-index: 2; padding-top: 56px; }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-card {
	position: relative;
	padding: 34px 30px 30px;
	background: #fff;
	border: 1px solid #e0e8e7;
	border-top: 3px solid var(--navy);
	border-radius: 18px;
	box-shadow: 0 22px 50px rgba(16, 50, 71, .12);
	animation: ctUp .8s cubic-bezier(.2, .7, .2, 1) both;
	animation-delay: calc(var(--i, 0) * 120ms + 100ms);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .3s ease;
}
.ct-card:hover { transform: translateY(-8px); border-top-color: var(--gold); box-shadow: 0 32px 60px rgba(16, 50, 71, .18); }
.ct-ic {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--teal-soft, #e1efec);
	color: var(--teal, #2d7773);
	transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background .3s ease, color .3s ease;
}
.ct-ic svg { width: 28px; height: 28px; }
.ct-card:hover .ct-ic { transform: rotate(-8deg) scale(1.1); background: var(--navy); color: #fff; }
.ct-card h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: -.02em; color: var(--navy); }
.ct-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.ct-mail { color: var(--navy); font-weight: 700; font-size: 1.12rem; text-decoration: none; border-bottom: 2px solid var(--gold); }
.ct-mail:hover { color: var(--gold-deep); }
.ct-sub { margin-top: 8px !important; font-size: .92rem !important; }
.ct-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	color: var(--navy-soft, #1d607c);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
}
.ct-link::after { content: "\2192"; transition: transform .3s ease; }
html[dir="rtl"] .ct-link::after { content: "\2190"; }
.ct-link:hover { color: var(--gold-deep); }
.ct-link:hover::after { transform: translateX(5px); }
html[dir="rtl"] .ct-link:hover::after { transform: translateX(-5px); }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.ct-chat { border: 0; background: none; padding: 6px 2px; color: var(--navy); font: 700 .95rem var(--body); cursor: pointer; border-bottom: 2px solid var(--gold); }
.ct-chat:hover { color: var(--gold-deep); }

/* ---- form + map ---- */
.ct-main { padding-top: 72px; }
.ct-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: stretch; }
.ct-form-col .eyebrow { margin-bottom: 12px; }
.ct-form-col h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.025em; color: var(--navy); }
.ct-lead { margin: 16px 0 30px; max-width: 52ch; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }

.ct-form {
	padding: 34px 34px 30px;
	background: #fff;
	border: 1px solid #e0e8e7;
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(16, 50, 71, .08);
}
.ct-form h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 1.55rem; color: var(--navy); }
.ct-form .ct-sub { margin: 0 0 22px !important; color: var(--muted); }
.ct .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-bottom: 22px; }
.ct .form-grid .full { grid-column: 1 / -1; }
.ct .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ct .field input,
.ct .field select,
.ct .field textarea {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem var(--body);
	transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.ct .field textarea { resize: vertical; min-height: 130px; }
.ct .field input:focus,
.ct .field select:focus,
.ct .field textarea:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(199, 161, 91, .22); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-status { margin: 16px 0 0; min-height: 1.4em; font-weight: 600; }
.ct-status.ok { color: var(--ok, #2e7d5b); }
.ct-status.bad { color: #b3403a; }

/* map */
.ct-map {
	position: relative;
	min-height: 520px;
	border-radius: 22px;
	overflow: hidden;
	background: #dfe9e8;
	box-shadow: 0 30px 70px rgba(16, 50, 71, .18);
	animation: ctUp .9s cubic-bezier(.2, .7, .2, 1) .35s both;
}
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(1.05) contrast(1.02); }
.ct-pin {
	position: absolute;
	inset-inline: 22px;
	bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 24px;
	border-radius: 16px;
	background: rgba(9, 36, 52, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	box-shadow: 0 20px 44px rgba(0, 0, 0, .3);
}
.ct-pin::before {
	content: "";
	position: absolute;
	top: -8px;
	inset-inline-start: 26px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--gold);
	animation: ctPulse 2s ease-out infinite;
}
.ct-pin b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.01em; }
.ct-pin span { color: #c9d6dc; font-size: .95rem; }
.ct-pin .ct-link { margin-top: 10px; color: #e6c578; }
.ct-pin .ct-link:hover { color: #fff; }

@media (max-width: 980px) {
	.ct-grid { grid-template-columns: 1fr; }
	.ct-split { grid-template-columns: 1fr; gap: 40px; }
	.ct-map { min-height: 420px; }
}
@media (max-width: 600px) {
	.ct-cards { padding-top: 36px; }
	.ct-card { padding: 28px 22px 24px; }
	.ct .form-grid { grid-template-columns: minmax(0, 1fr); }
	.ct-form { padding: 26px 20px 24px; }
	.ct-main { padding-top: 48px; }
	.ct-map { min-height: 360px; }
	.ct-pin { inset-inline: 12px; bottom: 12px; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ct-card, .ct-map { animation: none; }
	.ct-pin::before { animation: none; }
}
