/**
 * Hotel Clermont accessibility layer (WCAG 2.2 AA).
 *
 * Site-wide fixes from the October 2026 accessibility audit. Selectors are
 * prefixed with "html body" where they must beat the Customizer's Additional
 * CSS, which prints after this file.
 */

:root {
	/* Deep teal for links: 4.9:1 on mint (#cfe2dd), 5.5:1 on cream, 6.7:1 on white. */
	--hc-a11y-link: #3a6363;
	--hc-a11y-link-hover: #13303d;
	/* Brand red darkened from #c63821 so cream text and red-on-cream pass 4.5:1. */
	--hc-a11y-red: #b8341f;
	--hc-a11y-focus: #13303d;
	--hc-a11y-focus-halo: #ffffff;

	--wpex-link-color: var(--hc-a11y-link);
	--wpex-hover-link-color: var(--hc-a11y-link-hover);
}

/* Links on dark surfaces keep a light colour. */
.wpex-surface-dark,
.hc-news-view .hc-news-cta,
.hc-news-view .hc-news-featured__body {
	--wpex-link-color: #ffffff;
	--wpex-hover-link-color: #f7e8ce;
}

/*
 * Inline links in body copy are underlined so they are not identified by
 * colour alone (WCAG 1.4.1).
 */
html body :is(.elementor-widget-text-editor, .elementor-widget-theme-post-content, .hc-faq-jump) a:not(.theme-button, .elementor-button) {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/*
 * Heading levels were corrected so they no longer skip (WCAG 1.3.1). These
 * classes keep the original size of a heading whose level changed. Use them on
 * the heading tag, or on an Elementor Heading widget via Advanced > CSS Classes.
 */
html body :is(h2, h3).hc-look-h3,
html body .hc-look-h3 .elementor-heading-title {
	font-family: Apercu, sans-serif;
	font-size: 35px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

html body :is(h2, h3).hc-look-h4,
html body .hc-look-h4 .elementor-heading-title {
	font-family: Apercu, sans-serif;
	font-size: var(--wpex-text-lg);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	html body :is(h2, h3).hc-look-h3,
	html body .hc-look-h3 .elementor-heading-title {
		font-size: 24px;
	}
}

/* Visible keyboard focus everywhere: a navy ring with a white halo reads on light and dark backgrounds (WCAG 2.4.7). */
html body :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 2px solid var(--hc-a11y-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--hc-a11y-focus-halo);
}

/* Targets the skip link moves focus to don't need a ring of their own. */
html body #main:focus {
	outline: none;
	box-shadow: none;
}

/* Text fields: Total drops the outline on focus; restore an indicator. */
html body .wpcf7-form-control:not(.wpcf7-submit):focus-visible,
html body #tripleseat_embed_form :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--hc-a11y-focus);
	outline-offset: 4px;
	box-shadow: none;
}

/* "Eat & Drink" and other red buttons: cream text on red now 4.9:1 (was 4.35:1). */
html body a.theme-button.red {
	background-color: var(--hc-a11y-red);
}

/* Tripleseat "powered by" credit sat at 1.7:1 on mint. */
html body #lead_form_submit a {
	color: var(--hc-a11y-link-hover);
}

/*
 * Offer cards reveal their details on hover only. Show them for keyboard
 * focus too, including the dark overlay the white text depends on.
 */
html body .offer-container:focus-within .offer-details {
	opacity: 1;
}

html body .e-loop-item .offer-container.offers-loop-item:focus-within::before {
	--overlay-opacity: 1;
	background-color: #14303d;
	opacity: 1;
}

html body :is(.offer.type-offer, .post.type-post):focus-within .offer-caption {
	opacity: 0;
	transform: translateY(-40px);
}

/* Mobile menu button meets the 24px minimum target size (WCAG 2.5.8). */
html body .mobile-menu-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Pause/play controls for background video and autoplaying slideshows (WCAG 2.2.2). */
.hc-motion-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.hc-motion-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.hc-motion-toggle[hidden] {
	display: none;
}

.hc-has-motion-toggle {
	position: relative;
}

html body .hc-motion-toggle--video {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 5;
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(19, 48, 61, 0.7);
	color: #ffffff;
}

html body .hc-motion-toggle--video:hover {
	background: rgba(19, 48, 61, 0.9);
}

/*
 * Sits in the arrow row: centred on the arrow icons (which the Customizer
 * pulls up 4px) and no taller than the 20px row, so the slides don't shift.
 */
html body .wpex-carousel .hc-motion-toggle--carousel {
	align-self: flex-start;
	width: 30px;
	height: 30px;
	margin-block: -7px -3px;
	margin-inline-end: 36px;
	color: #f7e8ce;
}

html body .wpex-carousel .hc-motion-toggle--carousel svg {
	width: 14px;
	height: 14px;
}

html body .dark-carousel .wpex-carousel .hc-motion-toggle--carousel {
	color: #1c2514;
}

/* Respect "reduce motion": no entrance animations, parallax, or smooth scrolling (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	html body *,
	html body *::before,
	html body *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	html body .elementor-motion-effects-element,
	html body .elementor-motion-effects-layer {
		transform: none !important;
	}
}
