/**
 * Contact page — scoped stylesheet
 *
 * Loaded only on template-contact.php via hifocus_contact_assets(). The Contact
 * page reuses the shared main.css components wholesale (sw-hero, sw-band, section
 * heads, sw-benefit glass cards, contact-card, the native FAQ accordion, map-frame,
 * btn / btn-enquire and cta-panel). This sheet only adds the few patterns main.css
 * has no equivalent for:
 *
 *   1. .btn--lg               — the larger primary button used in the CTAs/form
 *   2. .contact-grid--info    — the six-card company-information grid
 *   3. .hours-grid/.hours-card — the office-hours schedule cards
 *   4. .alert-panel           — the emergency-support alert panel
 *   5. Responsive             — grid collapses for tablet and phone
 *
 * Every rule is scoped under .contact-page, so no other page can be affected.
 */

/* -------------------------------------------------- *
 * 1. Large button — used by the form submit and CTAs
 * -------------------------------------------------- */

.contact-page .btn--lg {
	padding: 1.05rem 2.1rem;
	font-size: var(--fs-base);
}

/* -------------------------------------------------- *
 * 2. Company information — six-card grid
 *
 * main.css .contact-grid is a fixed four-column grid. The company-information
 * block carries six cards, so this modifier lays them out three-up and reuses
 * the .contact-card component unchanged.
 * -------------------------------------------------- */

.contact-page .contact-grid--info {
	grid-template-columns: repeat(3, 1fr);
}

/* -------------------------------------------------- *
 * 3. Business hours — schedule cards (light band)
 *
 * Same visual language as .contact-card / .sup-train__card: white surface,
 * rounded corners, soft shadow and a lift on hover. Centred content sets the
 * schedule apart from the information grid above it.
 * -------------------------------------------------- */

.contact-page .hours-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-md);
}

.contact-page .hours-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--space-lg) var(--space-md);
	border-radius: var(--radius-xl);
	border: 1px solid var(--color-border);
	background-color: var(--color-inverse);
	box-shadow: var(--shadow-md);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		box-shadow 0.35s var(--ease-out);
}

.contact-page .hours-card:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.45);
	box-shadow: 0 26px 56px rgba(0, 0, 0, 0.12);
}

.contact-page .hours-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: var(--space-sm);
	border-radius: var(--radius-md);
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
}

.contact-page .hours-card__icon svg {
	width: 26px;
	height: 26px;
}

.contact-page .hours-card__day {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-page .hours-card__time {
	margin: 0.4rem 0 0;
	color: var(--navy-800);
	font-size: 1.15rem;
	font-weight: 700;
}

/* Sunday / closed: muted icon so it reads as "not open" at a glance. */
.contact-page .hours-card--closed .hours-card__icon {
	background-image: none;
	background-color: var(--color-surface);
	color: var(--color-muted);
}

.contact-page .hours-card--closed .hours-card__time {
	color: var(--color-muted);
}

/* Emergency card: cyan-tinted so priority support stands out from the week. */
.contact-page .hours-card--emergency {
	border-color: rgba(34, 211, 238, 0.4);
	background-image: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, var(--color-inverse) 60%);
}

.contact-page .hours-card--emergency .hours-card__time {
	color: var(--blue-500);
	font-size: 1rem;
}

/* -------------------------------------------------- *
 * 4. Emergency support — alert panel
 *
 * A close cousin of main.css .cta-panel: the same navy gradient and breathing
 * glow, laid out as icon + copy + actions in a row. An amber accent signals
 * urgency without leaving the brand palette.
 * -------------------------------------------------- */

.contact-page .alert-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md) var(--space-lg);
	padding: clamp(2rem, 4vw, 3rem);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(245, 158, 11, 0.35);
	background:
		radial-gradient(80% 140% at 0% 0%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
		linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
	color: var(--color-inverse);
}

.contact-page .alert-panel__glow {
	position: absolute;
	z-index: -1;
	top: -60%;
	right: -10%;
	width: 60%;
	aspect-ratio: 1 / 1;
	background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 62%);
	animation: hifocus-breathe 9s ease-in-out infinite;
}

.contact-page .alert-panel__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: var(--radius-lg);
	background-color: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.4);
	color: #fbbf24;
}

.contact-page .alert-panel__icon svg {
	width: 32px;
	height: 32px;
}

.contact-page .alert-panel__body {
	flex: 1 1 20rem;
}

.contact-page .alert-panel__title {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	letter-spacing: -0.02em;
}

.contact-page .alert-panel__text {
	margin: 0.6rem 0 0;
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--fs-base);
	line-height: 1.6;
}

.contact-page .alert-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

/* -------------------------------------------------- *
 * 5. Responsive
 * -------------------------------------------------- */

@media (max-width: 900px) {
	.contact-page .contact-grid--info {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-page .hours-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-page .alert-panel__actions {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.contact-page .contact-grid--info,
	.contact-page .hours-grid {
		grid-template-columns: 1fr;
	}

	.contact-page .alert-panel {
		text-align: center;
		justify-content: center;
	}

	.contact-page .alert-panel__actions .btn,
	.contact-page .alert-panel__actions .btn-enquire {
		flex: 1 1 auto;
	}
}

/* Motion-safe: match main.css and stop the glow animating when asked. */
@media (prefers-reduced-motion: reduce) {
	.contact-page .alert-panel__glow {
		animation: none;
	}
}
