/* Contact information dialog (#heaven-contact-popup). Scoped to .heaven-contact only. */
.heaven-contact,
.heaven-contact *,
.heaven-contact *::before,
.heaven-contact *::after {
	box-sizing: border-box;
}

.heaven-contact {
	--hc-bg: #fffdf9;
	--hc-text: #302b26;
	--hc-muted: #756d64;
	--hc-line: #e6e1da;
	--hc-accent: #76654e;
	--hc-hover: #f2eee8;
	--hc-surface: #f7f2ea;
	--hc-card-line: #e8dfd2;

	position: fixed;
	inset: 0;
	width: min(920px, calc(100% - 40px));
	max-width: none;
	max-height: calc(100dvh - 40px);
	margin: auto;
	padding: 40px 44px 36px;
	overflow-y: auto;
	overscroll-behavior: contain;

	color: var(--hc-text);
	background: var(--hc-bg);
	border: 1px solid rgba(48, 43, 38, 0.06);
	border-radius: 20px;
	box-shadow: 0 24px 80px rgb(35 29 23 / 14%);

	font-family: var(--heaven-sans, Arial, Helvetica, sans-serif);
	font-size: 15px;
	line-height: 1.65;
}
.heaven-contact:not([open]) { display: none; }
.heaven-contact[open] { display: block; }
html:has(.heaven-contact[open]) { overflow: hidden; }

.heaven-contact::backdrop {
	background: rgb(30 25 20 / 35%);
	backdrop-filter: blur(5px);
}

.heaven-contact a {
	color: inherit;
	background-image: none;
}
.heaven-contact button,
.heaven-contact a {
	-webkit-tap-highlight-color: transparent;
}
.heaven-contact :is(a, button):focus-visible {
	outline: 2px solid var(--hc-accent);
	outline-offset: 3px;
}

/* ---------- Header: title left, Book Now + close top right ---------- */
.hc-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
}
.hc-heading { min-width: 0; }

.hc-brand {
	margin: 0 0 10px;
	color: var(--hc-accent);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.heaven-contact .hc-title {
	margin: 0;
	color: var(--hc-text);
	font-family: var(--heaven-serif, Georgia, "Times New Roman", serif);
	font-size: clamp(34px, 4.4vw, 46px);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 1.1;
}

.hc-actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.heaven-contact .hc-book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	color: var(--hc-bg);
	background: var(--hc-text);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, transform 180ms ease;
}
.heaven-contact .hc-book:hover {
	background: var(--hc-accent);
}
.heaven-contact .hc-book:active {
	transform: scale(0.97);
}

.hc-close {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	color: var(--hc-text);
	background: transparent;
	border: 1px solid var(--hc-card-line);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}
.hc-close:hover { background: var(--hc-hover); border-color: #cfc3b3; }
.hc-close svg { width: 18px; height: 18px; }

/* ---------- Locations ---------- */
.hc-locations {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 28px;
}

.hc-location {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 24px 26px 22px;
	background: var(--hc-surface);
	border: 1px solid var(--hc-card-line);
	border-radius: 14px;
}

.heaven-contact .hc-location h3 {
	margin: 0 0 12px;
	color: var(--hc-text);
	font-family: var(--heaven-serif, Georgia, "Times New Roman", serif);
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.hc-address {
	margin: 0 0 14px;
	color: var(--hc-muted);
	font-style: normal;
}

.hc-hours {
	margin: 0 0 20px;
	padding-top: 14px;
	border-top: 1px solid var(--hc-card-line);
	width: 100%;
	color: var(--hc-muted);
	font-size: 14px;
	line-height: 1.8;
}
.hc-hours span { display: block; }

.heaven-contact .hc-directions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-bottom: 3px;
	border-bottom: 1px solid #b5aa9d;
	font-size: 14px;
	text-decoration: none;
	transition: color 180ms ease, border-color 180ms ease;
}
.hc-directions svg {
	width: 15px;
	height: 15px;
	transition: transform 180ms ease;
}
.heaven-contact .hc-directions:hover {
	color: var(--hc-accent);
	border-color: var(--hc-accent);
}
.hc-directions:hover svg { transform: translate(2px, -2px); }

/* ---------- Footer: phone / email + social ---------- */
.hc-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--hc-line);
}

.hc-contact-details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	min-width: 0;
}

.heaven-contact .hc-contact-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	max-width: 100%;
	color: var(--hc-muted);
	font-size: 14px;
	text-decoration: none;
}
.hc-contact-link span { overflow-wrap: anywhere; }
.hc-contact-link svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}
.heaven-contact .hc-contact-link:hover { color: var(--hc-text); }

/* Social icons come from the shared helper (real profile URLs); restyle them for this dialog. */
.heaven-contact .heaven-social-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.heaven-contact .heaven-social-icons > * {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	color: var(--hc-text);
	background: transparent;
	border: 0;
	border-radius: 50%;
	text-decoration: none;
	transition: background-color 180ms ease;
}
.heaven-contact .heaven-social-icons a:hover { background: var(--hc-hover); }
.heaven-contact .heaven-social-icons svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (max-width: 680px) {
	.heaven-contact {
		width: calc(100% - 24px);
		max-height: calc(100dvh - 24px);
		padding: 30px 24px;
		border-radius: 16px;
	}

	/* Brand + actions share the first row; the title gets the full width below. */
	.hc-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 14px 12px;
		margin-bottom: 30px;
	}
	.hc-heading { display: contents; }
	.hc-brand { margin: 0; font-size: 10px; letter-spacing: 0.16em; }
	.heaven-contact .hc-title { grid-column: 1 / -1; }
	.hc-actions {
		grid-row: 1;
		grid-column: 2;
		gap: 8px;
		margin: 0;
	}
	.heaven-contact .hc-book {
		min-height: 40px;
		padding: 0 16px;
		font-size: 11px;
		letter-spacing: 0.12em;
	}

	.hc-locations {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 24px;
	}
	.hc-location { padding: 20px 20px 18px; }
	.heaven-contact .hc-location h3 { margin-bottom: 10px; }
	.hc-address { margin-bottom: 12px; }
	.hc-hours { margin-bottom: 16px; padding-top: 12px; }
	.hc-contact-details { flex-direction: column; align-items: flex-start; }

	.hc-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		padding-top: 22px;
	}
	.heaven-contact .heaven-social-icons { margin-left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
	.heaven-contact * { transition: none !important; }
}
