/*
 * UJQ Fresh Look — deep teal and coral.
 *
 * IMPORTANT: ujq-theme is a DARK theme. Late in its stylesheet it redefines
 * :root to a near-black palette and then enforces that skin with ~50
 * !important rules (white headings, dark cards, dark header and footer, dark
 * form controls). Any override that makes the page light has to defeat all of
 * them, and misses leave white text on white.
 *
 * So this file does NOT fight the dark skin. It re-tints it: teal replaces the
 * neutral black, coral replaces the orange accent. Everything the theme does
 * afterwards still makes sense.
 *
 * Contrast checked: body text 9.8:1, muted text 7.6:1, coral button 6.5:1,
 * mint on paper 12.6:1.
 */

:root {
	/* Surfaces — teal-black instead of neutral black */
	--paper:   #071A17;
	--paper-2: #0C2521;
	--panel:   #0C2521;
	--line:    #1E3B35;

	/* Text */
	--ink:   #FFFFFF;
	--muted: #A9C6BF;

	/* Coral is the action colour; the theme uses --accent for calls to action,
	   links on hover and focus rings. */
	--accent:      #FF6A4D;
	--accent-soft: #2E1410;
	--on-accent:   #2A0A02;

	/* The theme uses --brass for small caps labels. Mint reads beautifully on
	   teal and keeps coral reserved for actions. */
	--brass:      #9EE8CF;
	--brass-soft: #0E2F2A;

	--cyan:   #11A697;
	--violet: #FF8A5C;
	--danger: #FF6B6B;

	/* Primary buttons paint from --grad. Coral, so the CTA stands out against
	   a teal page rather than blending into it. */
	--grad: linear-gradient(100deg, #FF6A4D 0%, #FF8355 55%, #F2B705 100%);

	/* Named for use below */
	--teal-deep: #064E45;
	--teal-900:  #053B34;
	--coral:     #FF6A4D;
	--coral-ink: #2A0A02;
	--coral-deep:#D6411F;
	--mint:      #9EE8CF;
	--amber:     #F2B705;
}

/* Coral needs dark text: white on coral is 2.8:1 and fails. */
.btn-primary,
.nav .btn-primary,
.hero6-form .btn-primary,
.wp-block-button__link {
	color: var(--coral-ink) !important;
	border-color: transparent !important;
	box-shadow: 0 8px 22px -10px rgba(255, 106, 77, .55) !important;
}

.btn-primary:hover,
.nav .btn-primary:hover,
.hero6-form .btn-primary:hover,
.wp-block-button__link:hover {
	box-shadow: 0 12px 28px -10px rgba(255, 106, 77, .7) !important;
}

/* Header and footer pick up the teal cast rather than staying neutral black. */
header.site-header,
.site-header {
	background: rgba(7, 26, 23, .94) !important;
	border-bottom-color: var(--line) !important;
}

footer,
.site-footer {
	background: #05140F !important;
	border-top-color: var(--line) !important;
}

/* The monogram in the header. */
.mono {
	background: var(--mint);
	color: var(--teal-900);
}

/* The hero. Its headline underline was a hardcoded orange. */
.hero6 .mark::after { background: var(--coral) !important; }
.hero6-kicker { color: var(--mint) !important; }

/* Section eyebrows. */
.label { color: var(--mint) !important; }

/* Selection and focus. */
::selection { background: var(--mint); color: var(--teal-900); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* Rotator dots on the dark hero. */
.hero-dot { background: rgba(255, 255, 255, .26); }
.hero-dot:hover { background: rgba(255, 255, 255, .5); }
.hero-dot.is-on { background: var(--mint); }

/* Arrows added by this plugin over the theme's own rotator. */
.ujq-ra {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: rgba(7, 26, 23, .66);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #FFFFFF;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background .15s ease, border-color .15s ease;
}
.ujq-ra:hover { background: rgba(7, 26, 23, .92); border-color: #FFFFFF; }
.ujq-ra:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.ujq-ra-prev { left: clamp(.4rem, 1.4vw, 1rem); }
.ujq-ra-next { right: clamp(.4rem, 1.4vw, 1rem); }

@media (max-width: 860px) {
	/* Full-width buttons sit where centre-height arrows would be. */
	.ujq-ra { top: auto; bottom: .6rem; transform: none; width: 2.1rem; height: 2.1rem; font-size: 1.2rem; }
	.hero-dots { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.ujq-ra { transition: none; }
}
