/* =============================================
   RENOVINTÉRIEUR — HOMEPAGE STYLES
   ============================================= */

/* ---- Parent theme overrides (homepage only) ---- */
body.home .page_content_wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.home .content_wrap,
body.home .content_wrap_fullscreen {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.home .content {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	overflow: hidden;
}

body.home .sidebar {
	display: none !important;
}

body.home .footer_wrap {
	display: none !important;
}

body.home .page_title_wrap,
body.home .breadcrumbs_wrap,
body.home .sc_layouts_title,
body.home .top_panel .elementor-element-bac0228 {
	display: none !important;
}

/* ---- Header overlay on hero ---- */
body.home .top_panel {
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
	box-shadow: none !important;
	transition: background 0.35s ease, box-shadow 0.35s ease;
}

body.home .top_panel .elementor-section,
body.home .top_panel .elementor-container,
body.home .top_panel .sc_layouts_row,
body.home .top_panel .sc_layouts_row_type_normal,
body.home .top_panel .elementor-column-wrap,
body.home .top_panel .elementor-widget-wrap {
	background-color: transparent !important;
	background-image: none !important;
}

/* White menu text + gold underline on homepage header */
body.home .top_panel .sc_layouts_menu_nav > li > a,
body.home .top_panel .sc_layouts_menu_nav > li > a:hover,
body.home .top_panel .sc_layouts_item a,
body.home .top_panel .sc_layouts_logo .logo_text,
body.home .top_panel .sc_layouts_title_caption,
body.home .top_panel .elementor-widget-trx_sc_layouts_menu a,
body.home .top_panel .sc_layouts_iconed_text a,
body.home .top_panel .search_wrap .search_submit,
body.home .top_panel .sc_layouts_row_fixed_on .sc_layouts_item a {
	color: #ffffff !important;
}

/* Gold underline matching the logo */
body.home .top_panel .sc_layouts_menu_nav > li > a::after,
body.home .top_panel .menu_hover_zoom_line .sc_layouts_menu_nav > li > a::after,
body.home .top_panel .sc_layouts_menu_nav > li.current-menu-item > a::after,
body.home .top_panel .sc_layouts_menu_nav > li > a:hover::after {
	background-color: #C19A5B !important;
	border-color: #C19A5B !important;
}

body.home .top_panel.ri-header-sticky {
	position: fixed !important;
	background: rgba(19, 36, 50, 0.97) !important;
	box-shadow: 0 2px 30px rgba(0, 0, 0, 0.18) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.home .top_panel.ri-header-sticky .elementor-section,
body.home .top_panel.ri-header-sticky .sc_layouts_row {
	background-color: transparent !important;
}

/* ---- Homepage wrapper ---- */
.ri-homepage {
	width: 100%;
	min-height: 100vh;
	background: var(--ri-color-surface);
}

/* ===========================================
   1. HERO SLIDER
   =========================================== */
.ri-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	max-height: 1000px;
	overflow: hidden;
}

.ri-hero__track {
	position: absolute;
	inset: 0;
}

.ri-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 0;
	pointer-events: none;
	content-visibility: hidden;
	contain-intrinsic-size: 0 0;
}

.ri-hero__slide--active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
	content-visibility: visible;
	contain-intrinsic-size: auto;
}

.ri-hero__slide--outgoing {
	opacity: 1;
	z-index: 0;
	content-visibility: visible;
	contain-intrinsic-size: auto;
}

.ri-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	will-change: transform;
}

.ri-hero__slide--active .ri-hero__bg {
	animation: ri-ken-burns 7s ease-out forwards;
}

@keyframes ri-ken-burns {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

.ri-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(19, 36, 50, 0.5) 0%,
		rgba(19, 36, 50, 0.3) 45%,
		rgba(19, 36, 50, 0.65) 100%
	);
	z-index: 1;
}

.ri-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	max-width: 820px;
	margin: 0 auto;
	padding: 140px 2rem 100px;
	text-align: center;
	color: #ffffff;
}

.ri-hero__badge {
	display: inline-block;
	margin-bottom: 1.5rem;
	padding: 0.55rem 1.3rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-family: var(--ri-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, 0.07);
}

.ri-hero__content h1 {
	font-family: var(--ri-font-heading);
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #ffffff;
	margin: 0 0 1.2rem;
}

.ri-hero__content p {
	font-size: clamp(1rem, 1.15vw, 1.15rem);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 auto 2rem;
	max-width: 580px;
}

.ri-hero__buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.ri-hero .ri-button {
	padding: 0.9rem 1.6rem;
	font-size: 0.95rem;
}

.ri-hero .ri-button--outline {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

.ri-hero .ri-button--outline:hover,
.ri-hero .ri-button--outline:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.75);
	color: #ffffff;
}

/* Arrows */
.ri-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	cursor: pointer;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background 0.25s ease, border-color 0.25s ease;
	padding: 0;
}

.ri-hero__arrow:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.55);
}

.ri-hero__arrow--prev { left: 2rem; }
.ri-hero__arrow--next { right: 2rem; }

/* Dots */
.ri-hero__dots {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 0.75rem;
}

.ri-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s ease, transform 0.25s ease;
}

.ri-hero__dot--active {
	background: #ffffff;
	transform: scale(1.3);
}

/* ===========================================
   2. TRUST BAND
   =========================================== */
.ri-trust {
	background: var(--ri-color-surface-alt);
	border-top: 1px solid var(--ri-color-border);
	border-bottom: 1px solid var(--ri-color-border);
	padding: 1.4rem 2rem;
}

.ri-trust__inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2.5rem;
	max-width: 1100px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.ri-trust__item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--ri-color-ink);
	font-family: var(--ri-font-body);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}

.ri-trust__item svg {
	color: var(--ri-color-accent);
	flex-shrink: 0;
}

/* ===========================================
   3. TEAM / PRESENTATION
   =========================================== */
.ri-team {
	padding: clamp(3.5rem, 7vw, 6rem) 2rem;
	background: var(--ri-color-surface);
}

.ri-team__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
}

.ri-team__text .ri-kicker {
	display: block;
	margin-bottom: 0.75rem;
}

.ri-team__text h2 {
	margin: 0 0 1.3rem;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.ri-team__text p {
	color: var(--ri-color-text);
	line-height: 1.78;
	margin: 0 0 1rem;
	font-size: 1.02rem;
}

.ri-team__text p:last-child {
	margin-bottom: 0;
}

.ri-team__image img {
	width: 100%;
	height: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 22px;
	box-shadow: 0 20px 50px var(--ri-color-shadow);
}

/* ===========================================
   4. SERVICES GRID
   =========================================== */
.ri-services {
	padding: clamp(3rem, 6vw, 5rem) 0;
	background: var(--ri-color-surface-alt);
}

.ri-services__inner {
	max-width: none;
	margin: 0 auto;
}

.ri-services__kicker {
	display: block;
	text-align: center;
	padding: 0 2rem;
}

.ri-services__title {
	text-align: center;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0.5rem 0 2.5rem;
	padding: 0 2rem;
}

.ri-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	padding: 0 1.25rem;
}

.ri-services__card {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ri-color-surface);
	border: 1px solid var(--ri-color-border);
	text-decoration: none;
	color: inherit;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ri-services__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 55px var(--ri-color-shadow);
	color: inherit;
}

.ri-services__card-img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.ri-services__card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s ease;
}

.ri-services__card:hover .ri-services__card-img img {
	transform: scale(1.06);
}

.ri-services__card-body {
	padding: 1.3rem 1.4rem 1.4rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ri-services__card-body h3 {
	font-size: 1.12rem;
	margin: 0 0 0.5rem;
	color: var(--ri-color-ink);
}

.ri-services__card-body p {
	font-size: 0.9rem;
	color: var(--ri-color-text);
	line-height: 1.65;
	margin: 0;
	flex: 1;
}

.ri-services__card-link {
	display: inline-block;
	margin-top: 1rem;
	font-family: var(--ri-font-body);
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--ri-color-accent);
	transition: color 0.2s ease;
}

.ri-services__card:hover .ri-services__card-link {
	color: var(--ri-color-accent-dark);
}

/* ===========================================
   5. GALLERY
   =========================================== */
.ri-gallery {
	padding: 0;
	line-height: 0;
}

.ri-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.ri-gallery__item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.ri-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
	display: block;
}

.ri-gallery__item:hover img {
	transform: scale(1.06);
}

.ri-gallery__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(19, 36, 50, 0);
	transition: background 0.35s ease;
	pointer-events: none;
}

.ri-gallery__item:hover::after {
	background: rgba(19, 36, 50, 0.12);
}

/* ===========================================
   6. WHY CHOOSE US
   =========================================== */
.ri-why {
	padding: clamp(3.5rem, 7vw, 6rem) 2rem;
	background: var(--ri-color-surface);
}

.ri-why__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.ri-why__kicker {
	display: block;
	text-align: center;
}

.ri-why__title {
	text-align: center;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0.5rem 0 3.5rem;
}

.ri-why__block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
	margin-bottom: 3.5rem;
}

.ri-why__block:last-child {
	margin-bottom: 0;
}

.ri-why__block--reverse {
	direction: rtl;
}

.ri-why__block--reverse > * {
	direction: ltr;
}

.ri-why__block-image img {
	width: 100%;
	max-height: 380px;
	object-fit: cover;
	border-radius: 22px;
	box-shadow: 0 20px 50px var(--ri-color-shadow);
}

.ri-why__block-text h3 {
	font-size: clamp(1.3rem, 2vw, 1.55rem);
	margin: 0 0 1rem;
	color: var(--ri-color-ink);
}

.ri-why__block-text p {
	color: var(--ri-color-text);
	line-height: 1.78;
	margin: 0;
	font-size: 1.02rem;
}

/* ===========================================
   7. CTA FINAL
   =========================================== */
.ri-cta-final {
	padding: clamp(4rem, 8vw, 7rem) 2rem;
	background: linear-gradient(
		135deg,
		rgba(12, 24, 34, 0.98) 0%,
		rgba(22, 45, 61, 0.97) 55%,
		rgba(26, 52, 70, 0.98) 100%
	);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.ri-cta-final::before {
	content: '';
	position: absolute;
	bottom: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(168, 94, 53, 0.15);
	filter: blur(10px);
}

.ri-cta-final__inner {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
}

.ri-cta-final h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	color: #ffffff;
	margin: 0 0 1rem;
	line-height: 1.15;
}

.ri-cta-final p {
	font-size: 1.08rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.7;
	margin: 0 0 2.2rem;
}

.ri-cta-final__buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.ri-cta-final .ri-button {
	background: var(--ri-color-accent);
	border-color: var(--ri-color-accent);
	padding: 0.95rem 1.8rem;
}

.ri-cta-final .ri-button:hover,
.ri-cta-final .ri-button:focus {
	background: var(--ri-color-accent-dark);
	border-color: var(--ri-color-accent-dark);
}

.ri-cta-final .ri-button--outline {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: #ffffff;
}

.ri-cta-final .ri-button--outline:hover,
.ri-cta-final .ri-button--outline:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.65);
	color: #ffffff;
}

/* ===========================================
   8. FOOTER
   =========================================== */
.ri-footer {
	background: var(--ri-color-ink);
	color: rgba(255, 255, 255, 0.72);
	padding: clamp(3rem, 5vw, 4.5rem) 2rem 0;
}

.ri-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 0.8fr;
	gap: 3rem;
	max-width: 1100px;
	margin: 0 auto;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ri-footer__logo {
	font-family: var(--ri-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.ri-footer__brand p {
	font-size: 0.93rem;
	line-height: 1.72;
	margin: 0;
	max-width: 340px;
}

.ri-footer h4 {
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 700;
	margin: 0 0 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ri-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ri-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.85rem;
	font-size: 0.92rem;
	line-height: 1.5;
}

.ri-footer__contact svg {
	flex-shrink: 0;
	color: var(--ri-color-accent);
	margin-top: 2px;
}

.ri-footer__links li {
	margin-bottom: 0.65rem;
}

.ri-footer__links a {
	font-size: 0.92rem;
}

.ri-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ri-footer a:hover,
.ri-footer a:focus {
	color: #ffffff;
}

.ri-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.4rem 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.45);
}

.ri-footer__bottom p {
	margin: 0;
}

.ri-footer__legal {
	display: flex;
	gap: 1.5rem;
}

.ri-footer__legal a {
	color: rgba(255, 255, 255, 0.45);
}

.ri-footer__legal a:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */
.ri-anim {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.ri-anim--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===========================================
   RESPONSIVE — MOBILE
   =========================================== */
@media (max-width: 767px) {
	.ri-hero {
		min-height: 100svh;
		max-height: none;
	}

	.ri-hero__content {
		padding: 100px 1.5rem 100px;
		text-align: center;
		align-items: center;
	}

	.ri-hero__content h1 br,
	.ri-team__text h2 br {
		display: none;
	}

	.ri-hero__content h1 {
		text-align: center;
	}

	.ri-hero__content p {
		text-align: center;
	}

	.ri-hero__dots {
		bottom: 1.5rem;
	}

	.ri-hero__arrow {
		display: none;
	}

	.ri-hero__buttons {
		justify-content: center;
		gap: 0.75rem;
	}

	.ri-hero .ri-button {
		justify-content: center;
		text-align: center;
	}

	.ri-trust__inner {
		gap: 1.2rem 2rem;
		justify-content: center;
	}

	.ri-trust__item {
		font-size: 0.82rem;
	}

	.ri-team__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.ri-team__image {
		order: -1;
	}

	.ri-team__image img {
		max-height: 280px;
	}

	.ri-services__grid {
		grid-template-columns: 1fr;
		gap: 1.2rem;
	}

	.ri-gallery__grid {
		grid-template-columns: 1fr;
	}

	.ri-why__block,
	.ri-why__block--reverse {
		grid-template-columns: 1fr;
		direction: ltr;
		gap: 1.5rem;
		margin-bottom: 2.5rem;
	}

	.ri-why__block-image {
		order: -1;
	}

	.ri-why__block-image img {
		max-height: 260px;
	}

	.ri-cta-final__buttons {
		justify-content: center;
	}

	.ri-cta-final .ri-button {
		width: 100%;
		justify-content: center;
	}

	.ri-footer__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.ri-footer__bottom {
		flex-direction: column;
		gap: 0.75rem;
		text-align: center;
	}

	.ri-footer__legal {
		gap: 1rem;
	}
}

/* ===========================================
   RESPONSIVE — TABLET
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
	.ri-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ri-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.ri-footer__brand {
		grid-column: 1 / -1;
	}

	.ri-trust__inner {
		gap: 1.5rem 2.5rem;
	}
}
