/* Rodwick hero slider — ported from the Joomla "gdw" template (.gdwslideshow / .gdwrotator).
   Desktop measurements taken on rodwick.com/fr/ at 1513px: picture 44% right, text column left,
   title Oswald 48px, controls 52px circles centred at the bottom, tagline bottom-left with a dash. */

:root {
	--rw-blue: #003e7e;
	--rw-light: #169cd9;
}

.rw-hero {
	position: relative;
	width: 100%;
	font-family: "PT Serif", serif, Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #161a1d;
}

/* ---- slides stacked in one grid cell, crossfade on opacity ---- */
.rw-hero__rotator {
	display: grid;
	width: 100%;
}
.rw-hero__slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--rw-duration, 800ms) ease;
	z-index: 0;
}
.rw-hero__slide.is-leaving { z-index: 1; }
.rw-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.rw-hero__picture {
	flex: 1 0 0;
	max-width: 44.011%;
}
.rw-hero__picture picture { display: block; }
.rw-hero__picture img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.rw-hero__text {
	flex: 1 0 0;
	padding-top: 7.18%;
	background-repeat: no-repeat;
	background-position: 788px -37px; /* Joomla value: only a sliver of the flame shows at ~1500px, most of it at 1920px */
	background-size: 330px auto;
}
.rw-hero__container {
	max-width: 636px;
	margin: 0 auto;
}
.rw-hero__content { max-width: 593px; }

.rw-hero__content p,
.rw-hero__content .rw-hero__title {
	margin: 0;
	padding: 0;
}
.rw-hero__content .rw-hero__title {
	font-family: "Oswald", sans-serif;
	font-size: 3em;
	line-height: 1.199;
	font-weight: 700;
	letter-spacing: 2.5px;
	margin-bottom: 6.4%;
	color: #003e7e;
}
.rw-hero__content .rw-hero__title strong { font-weight: 700; }
.rw-hero__content .rw-hero__title + p {
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: .32px;
	margin-bottom: 8.5%;
}

/* ---- button (Joomla html>body .btn) ---- */
.rw-hero__btn,
.rw-hero__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 3.125rem;
	max-width: 100%;
	padding: 0 20px 0 30px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: var(--rw-blue, #003e7e);
	color: #fff;
	font-family: inherit;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	user-select: none;
	transition: background-color 175ms ease;
}
.rw-hero__btn:after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 5px;
	width: 3px;
	background-color: #fff;
}
.rw-hero__btn > svg {
	display: block;
	width: 1.0714em;
	height: .9286em;
	fill: currentColor;
}
.rw-hero__btn > span {
	display: flex;
	align-items: center;
	margin-left: 1.25rem;
	pointer-events: none;
}
.rw-hero__btn:hover,
.rw-hero__btn:focus-visible {
	background-color: var(--rw-light);
	color: #fff;
}

/* ---- prev / next ---- */
.rw-hero__controls {
	display: flex;
	gap: 2.25rem;
	position: absolute;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
}
.rw-hero__controls > * + * { margin-left: 0 !important; }
.rw-hero__prev,
.rw-hero__next {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 52px;
	height: 52px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #000;
	fill: currentColor;
	cursor: pointer;
	transition: color .3s;
	line-height: 0;
}
.rw-hero__prev svg,
.rw-hero__next svg {
	display: block;
	width: 52px;
	height: 52px;
	fill: inherit;
}
.rw-hero__prev { transform: rotate(180deg); }
.rw-hero__prev:hover,
.rw-hero__next:hover,
.rw-hero__prev:focus-visible,
.rw-hero__next:focus-visible { color: var(--rw-light); outline: none; }
.rw-hero--single .rw-hero__controls { display: none; }

/* ---- tagline + dash (Joomla .article-dash .desc / .dash) ---- */
.rw-hero__tagline {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 0;
	z-index: 3;
}
.rw-hero__desc {
	position: absolute;
	bottom: 95px; /* clears the bobbing mouse icon (which travels up to ~80px above the hero bottom) */
	left: 98px;
	max-width: 412px;
	color: var(--rw-blue);
	font-family: "Oswald", sans-serif;
	font-weight: 700;
}
.rw-hero__desc p, .rw-hero__desc .rw-hero__h1 {
	margin: 0;
	padding: 0;
	color: var(--rw-blue);
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 29px;
	letter-spacing: 1.2px;
}
@media (min-width: 1735px) {
	.rw-hero__desc p, .rw-hero__desc .rw-hero__h1 { font-size: 24px; }
}
.rw-hero__dash {
	position: absolute;
	bottom: 164px;
	left: 0;
	width: 85px;
	height: 1px;
	background-color: #000;
}

/* ---- animated mouse + thin line crossing into the next section ---- */
.rw-hero__mouse-container {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 0;
	z-index: 4;
}
.rw-hero__mouse {
	position: absolute;
	left: 185px;
	bottom: -26px;
	width: 50px;
	height: 129px;
}
.rw-hero__scroll {
	position: absolute;
	left: 10%;
	bottom: 0;
	z-index: 5;
	display: block;
	width: 50px;
	height: 0;
	cursor: pointer;
	animation: rw-sslide .7s linear 0s infinite alternate;
}
.rw-hero__scroll svg {
	position: absolute;
	top: -45px;
	left: 31px;
	width: 19px;
	height: 27px;
	fill: #000;
	transition: fill .2s;
}
.rw-hero__scroll:hover { animation-play-state: paused; }
.rw-hero__scroll:hover svg { fill: var(--rw-blue); }
.rw-hero__dash-mouse {
	position: absolute;
	left: 230px;
	bottom: -62px; /* Joomla: -119px; pulled up so the line starts just under the bobbing mouse icon */
	width: 1px;
	height: 50px;
	background-color: #000;
	z-index: 10;
}
@keyframes rw-sslide {
	from { bottom: 20px; animation-timing-function: ease-out; }
	to   { bottom: 60px; animation-timing-function: ease-in; }
}
@media (prefers-reduced-motion: reduce) {
	.rw-hero__scroll { animation: none; bottom: 40px; }
	.rw-hero__slide { transition: none; }
}

/* ---- responsive (same breakpoints as the Joomla template) ---- */
@media (max-width: 1499.98px) {
	.rw-hero__text { padding-top: 4%; }
}
@media (max-width: 1370px) {
	.rw-hero__mouse { left: 18px; }
	.rw-hero__dash-mouse { left: 60px; }
}
@media (max-width: 1350px) {
	.rw-hero__container { max-width: 590px; }
}
@media (max-width: 1199.98px) {
	.rw-hero__container { max-width: 100%; padding: 0 15px; }
	.rw-hero__controls { left: 49%; bottom: 160px; }
	.rw-hero__controls { gap: 2rem; }
	.rw-hero__tagline { position: relative; height: auto; }
	.rw-hero__desc { position: relative; bottom: 0; left: 22px; padding: 20px 0 10px; }
	.rw-hero__dash, .rw-hero__mouse-container { display: none; }
}
@media (max-width: 991.98px) {
	.rw-hero__slide { display: block; padding-bottom: 40px; }
	.rw-hero__picture { max-width: 100%; }
	.rw-hero__picture img { width: 100%; height: 100%; object-fit: cover; }
	.rw-hero__text { background-image: none !important; padding-top: 60px; }
	.rw-hero__container { padding: 0 1vh; }
	.rw-hero__content { text-align: center; margin: auto; }
	.rw-hero__controls {
		left: 0; right: 0; transform: none;
		bottom: auto; top: 30vw;
		width: 100%; max-width: 100%;
		justify-content: space-between;
		padding: 0 15px;
	}
	.rw-hero__prev, .rw-hero__next { color: #fff; }
	.rw-hero__tagline { text-align: center; }
	.rw-hero__desc { left: auto; max-width: 80%; width: 100%; margin: 0 auto; padding: 0 0 20px; }
}
@media (max-width: 900.98px) {
	.rw-hero__content .rw-hero__title { font-size: 2.5rem; }
}
@media (max-width: 630.98px) {
	.rw-hero__content .rw-hero__title + p { padding: 0 10px; }
}
@media (max-width: 575.98px) {
	.rw-hero__controls { top: 27vw; }
}
@media (max-width: 540.98px) {
	.rw-hero__content .rw-hero__title { font-size: 1.75rem; }
}
