/* ==========================================================================
   Rivanta Corporate: main stylesheet
   Values follow the Rivanta brand checklist v1.0 (September 2026).
   ========================================================================== */

/* 1. Fonts and tokens ------------------------------------------------------ */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
	/* Brand colours */
	--rv-blue: #0a4faf;
	--rv-navy: #0b1f3b;
	--rv-red: #c85a5a;         /* decoration only: lines, dots, icons, badges */
	--rv-red-strong: #c55050;  /* red for text and buttons (4.5:1 on white) */
	--rv-tint: #eaf2fc;        /* light blue */
	--rv-white: #ffffff;
	--rv-gray: #f4f6f9;        /* light gray */
	--rv-text: #202b3c;
	--rv-muted: #667085;

	/* Derived from the palette, not new colours */
	--rv-border: rgba(11, 31, 59, 0.12);
	--rv-border-light: rgba(255, 255, 255, 0.16);

	--rv-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--rv-container: 1280px;
	--rv-section-y: 96px;
	--rv-header-h: 80px;
	--rv-radius-card: 14px;
	--rv-radius-btn: 8px;
	--rv-shadow-sm: 0 1px 3px rgba(11, 31, 59, 0.08);
	--rv-shadow-md: 0 10px 28px rgba(11, 31, 59, 0.12);
	--rv-ease: 220ms ease;
}

@media (max-width: 1023px) {
	:root { --rv-section-y: 64px; }
}

@media (max-width: 640px) {
	:root { --rv-section-y: 48px; --rv-header-h: 72px; }
}

/* 2. Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--rv-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--rv-white);
	color: var(--rv-text);
	font-family: var(--rv-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--rv-blue); text-underline-offset: 3px; }
a:hover { color: var(--rv-navy); }

button, input, select, textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--rv-blue); outline-offset: 3px; }
.rv-dark :focus-visible,
.rv-footer :focus-visible,
.rv-announce :focus-visible { outline-color: var(--rv-white); }

/* 3. Typography ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--rv-text);
	font-weight: 600;
	line-height: 1.25;
}

h1 { font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.3; }
h4 { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.35; }

p { margin: 0 0 1em; }

.rv-lead { color: var(--rv-muted); font-size: 1.125rem; }
.rv-small { font-size: 0.875rem; }
.rv-caption { font-size: 0.8125rem; }

.rv-eyebrow {
	display: block;
	margin: 0 0 12px;
	color: var(--rv-blue);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* 4. Layout ---------------------------------------------------------------- */

.rv-container { width: min(90%, var(--rv-container)); margin-inline: auto; }
.rv-section { padding-block: var(--rv-section-y); }

.rv-bg-gray { background: var(--rv-gray); }
.rv-bg-tint { background: var(--rv-tint); }
.rv-bg-tint .rv-lead,
.rv-bg-tint p { color: var(--rv-text); }   /* muted gray is only 4.4:1 on light blue */

.rv-dark { background: var(--rv-navy); color: rgba(255, 255, 255, 0.82); }
.rv-dark h1, .rv-dark h2, .rv-dark h3, .rv-dark h4 { color: var(--rv-white); }
.rv-dark .rv-eyebrow { color: rgba(255, 255, 255, 0.75); }
.rv-dark .rv-lead { color: rgba(255, 255, 255, 0.82); }

.rv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rv-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--rv-navy);
	border-radius: var(--rv-radius-btn);
	color: var(--rv-white);
	font-weight: 600;
}
.rv-skip-link:focus { top: 16px; color: var(--rv-white); }

.rv-grid { display: grid; gap: 32px; }
.rv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
	.rv-grid--3, .rv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.rv-grid--2, .rv-grid--3, .rv-grid--4 { grid-template-columns: 1fr; }
	.rv-grid { gap: 24px; }
}

/* 5. Buttons --------------------------------------------------------------- */

.rv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--rv-radius-btn);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--rv-ease), color var(--rv-ease), border-color var(--rv-ease), transform var(--rv-ease);
}
.rv-btn:hover { transform: translateY(-1px); }
.rv-btn:active { transform: translateY(0); }

.rv-btn--primary { background: var(--rv-blue); color: var(--rv-white); }
.rv-btn--primary:hover { background: var(--rv-navy); color: var(--rv-white); }

.rv-btn--secondary { background: var(--rv-white); border-color: var(--rv-blue); color: var(--rv-blue); }
.rv-btn--secondary:hover { background: var(--rv-tint); color: var(--rv-blue); }

.rv-btn--accent { background: var(--rv-red-strong); color: var(--rv-white); }
.rv-btn--accent:hover { background: #a94242; color: var(--rv-white); }

.rv-btn--light { background: var(--rv-white); color: var(--rv-navy); }
.rv-btn--light:hover { background: var(--rv-tint); color: var(--rv-navy); }

.rv-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--rv-white); }
.rv-btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--rv-white); }

.rv-btn:disabled,
.rv-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* 6. Forms ----------------------------------------------------------------- */

.rv-form label,
.search-form label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="password"], select, textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	background: var(--rv-white);
	border: 1px solid var(--rv-muted);
	border-radius: var(--rv-radius-btn);
	color: var(--rv-text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rv-blue); outline: 3px solid var(--rv-tint); outline-offset: 0; box-shadow: 0 0 0 1px var(--rv-blue); }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; margin: 0; }
.search-submit {
	min-height: 48px;
	padding: 12px 24px;
	background: var(--rv-blue);
	border: 0;
	border-radius: var(--rv-radius-btn);
	color: var(--rv-white);
	font-weight: 600;
	cursor: pointer;
}
.search-submit:hover { background: var(--rv-navy); }

/* 7. Announcement bar ------------------------------------------------------ */

.rv-announce { background: var(--rv-navy); color: var(--rv-white); }
.rv-announce p {
	margin: 0;
	padding: 8px 0;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

/* 8. Header and navigation ------------------------------------------------- */

.rv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--rv-white);
	border-bottom: 1px solid var(--rv-border);
	transition: box-shadow var(--rv-ease);
}
.admin-bar .rv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rv-header { top: 46px; } }
.rv-header.is-scrolled { box-shadow: var(--rv-shadow-md); }

.rv-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--rv-header-h); }
.rv-header__brand { flex: 0 0 auto; }
.rv-header__brand .custom-logo { display: block; width: auto; max-height: 44px; }
.rv-header__wordmark {
	color: var(--rv-navy);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.rv-header__wordmark:hover { color: var(--rv-blue); }

.rv-nav { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.rv-nav__cta { display: none; }

.rv-menu { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rv-menu > li { position: relative; display: flex; align-items: center; }
.rv-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--rv-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color var(--rv-ease), background var(--rv-ease);
}
.rv-menu a:hover { background: var(--rv-tint); color: var(--rv-blue); }
.rv-menu .current-menu-item > a,
.rv-menu .current-menu-ancestor > a,
.rv-menu .current_page_item > a { color: var(--rv-blue); font-weight: 600; }

.rv-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: -8px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--rv-muted);
	cursor: pointer;
}
.rv-submenu-toggle svg { transition: transform var(--rv-ease); }
.menu-item-has-children.is-open > .rv-submenu-toggle svg { transform: rotate(180deg); }

.rv-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 110;
	min-width: 260px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: var(--rv-white);
	border: 1px solid var(--rv-border);
	border-top: 3px solid var(--rv-blue);
	border-radius: 0 0 var(--rv-radius-card) var(--rv-radius-card);
	box-shadow: var(--rv-shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--rv-ease), transform var(--rv-ease), visibility var(--rv-ease);
}
.rv-menu li:hover > .sub-menu,
.rv-menu li:focus-within > .sub-menu,
.rv-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.rv-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 1px solid var(--rv-border);
	border-radius: var(--rv-radius-btn);
	color: var(--rv-navy);
	cursor: pointer;
}
.rv-nav-toggle__close { display: none; }
.rv-nav-toggle[aria-expanded="true"] .rv-nav-toggle__open { display: none; }
.rv-nav-toggle[aria-expanded="true"] .rv-nav-toggle__close { display: inline-flex; }

@media (max-width: 1023px) {
	.rv-header__cta { display: none; }
	.rv-nav-toggle { display: inline-flex; }
	body.rv-nav-open { overflow: hidden; }

	.rv-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: block;
		max-height: calc(100vh - var(--rv-header-h));
		padding: 8px 5% 24px;
		overflow-y: auto;
		background: var(--rv-white);
		border-bottom: 1px solid var(--rv-border);
		box-shadow: var(--rv-shadow-md);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--rv-ease), transform var(--rv-ease), visibility var(--rv-ease);
	}
	.rv-nav.is-open { opacity: 1; visibility: visible; transform: none; }

	.rv-menu { display: block; }
	.rv-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--rv-border); }
	.rv-menu a { flex: 1 1 auto; padding: 14px 4px; font-size: 1rem; }
	.rv-submenu-toggle { width: 44px; height: 44px; margin: 0; }

	.rv-menu .sub-menu {
		position: static;
		display: none;
		flex: 1 0 100%;
		min-width: 0;
		padding: 0 0 8px 12px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.rv-menu li.is-open > .sub-menu { display: block; }

	.rv-nav__cta { display: inline-flex; width: 100%; margin-top: 20px; }
}

/* 9. Page header band and prose -------------------------------------------- */

.rv-page-header { padding-block: 64px; background: var(--rv-gray); border-bottom: 1px solid var(--rv-border); }
.rv-page-header__title { margin-bottom: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.rv-page-header .rv-lead { max-width: 720px; margin: 16px 0 0; }

@media (max-width: 640px) { .rv-page-header { padding-block: 40px; } }

.rv-prose { max-width: 780px; }
.rv-prose > * + * { margin-top: 1.25em; }
.rv-prose h2 { margin-top: 2em; }
.rv-prose h3 { margin-top: 1.75em; }
.rv-prose a:not(.rv-btn):not(.wp-block-button__link) { text-decoration: underline; }
.rv-prose ul, .rv-prose ol { padding-left: 1.25em; }
.rv-prose img { border-radius: var(--rv-radius-card); }
.rv-single__image { margin-bottom: 40px; }
.rv-single__image img { width: 100%; border-radius: var(--rv-radius-card); }

.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

.wp-block-button .wp-block-button__link {
	min-height: 48px;
	padding: 12px 24px;
	background: var(--rv-blue);
	border-radius: var(--rv-radius-btn);
	color: var(--rv-white);
	font-weight: 600;
	text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover { background: var(--rv-navy); color: var(--rv-white); }
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--rv-white); border: 1px solid var(--rv-blue); color: var(--rv-blue); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--rv-tint); }

/* 10. Cards and pagination -------------------------------------------------- */

.rv-card {
	overflow: hidden;
	background: var(--rv-white);
	border: 1px solid var(--rv-border);
	border-radius: var(--rv-radius-card);
	box-shadow: var(--rv-shadow-sm);
	transition: transform var(--rv-ease), box-shadow var(--rv-ease);
}
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--rv-shadow-md); }
.rv-card--pad { padding: 28px; }
.rv-card--pad > :last-child { margin-bottom: 0; }

.rv-card--post { display: flex; flex-direction: column; height: 100%; }
.rv-card__media { display: block; aspect-ratio: 16 / 10; background: var(--rv-tint); overflow: hidden; }
.rv-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.rv-card__body > * { margin: 0; }
.rv-card__meta { color: var(--rv-muted); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rv-card__title { font-size: 1.1875rem; line-height: 1.35; }
.rv-card__title a { color: var(--rv-text); text-decoration: none; }
.rv-card__title a:hover { color: var(--rv-blue); text-decoration: underline; }
.rv-card__text { color: var(--rv-muted); font-size: 0.9375rem; }

.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--rv-border);
	border-radius: var(--rv-radius-btn);
	color: var(--rv-text);
	font-weight: 600;
	text-decoration: none;
}
a.page-numbers:hover { background: var(--rv-tint); color: var(--rv-blue); }
.page-numbers.current { background: var(--rv-blue); border-color: var(--rv-blue); color: var(--rv-white); }

/* 11. Footer ---------------------------------------------------------------- */

.rv-footer { padding-top: 64px; background: var(--rv-navy); color: rgba(255, 255, 255, 0.8); }
.rv-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.rv-footer a:hover { color: var(--rv-white); text-decoration: underline; }
.rv-footer a.rv-link { text-decoration: underline; }

.rv-footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.4fr); gap: 64px; padding-bottom: 48px; }
.rv-footer__logo { display: inline-block; margin-bottom: 16px; color: var(--rv-white) !important; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.rv-footer__logo img { display: block; width: auto; max-height: 44px; }
.rv-footer__brand p { max-width: 380px; }

.rv-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.rv-footer__title { margin: 0 0 16px; color: var(--rv-white); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.rv-footer__list, .rv-footer__contact, .rv-footer__social, .rv-footer__legal { margin: 0; padding: 0; list-style: none; }
.rv-footer__list li + li { margin-top: 10px; }
.rv-footer__contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.rv-footer__contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--rv-red); }
.rv-footer address { font-style: normal; }

.rv-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rv-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rv-border-light);
	border-radius: 50%;
	transition: background var(--rv-ease), border-color var(--rv-ease);
}
.rv-footer__social a:hover { background: var(--rv-blue); border-color: var(--rv-blue); text-decoration: none; }

.rv-footer__academy { padding: 20px 0; border-top: 1px solid var(--rv-border-light); }
.rv-footer__academy a { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }

.rv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 24px 0;
	border-top: 1px solid var(--rv-border-light);
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.875rem;
}
.rv-footer__bottom p { margin: 0; }
.rv-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 1023px) {
	.rv-footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
	.rv-footer { padding-top: 48px; }
}

/* 12. Back to top ----------------------------------------------------------- */

.rv-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: var(--rv-blue);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--rv-shadow-md);
	color: var(--rv-white);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--rv-ease), transform var(--rv-ease), visibility var(--rv-ease), background var(--rv-ease);
}
.rv-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.rv-to-top:hover { background: var(--rv-navy); }

@media (max-width: 640px) {
	.rv-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* 13. Style guide ----------------------------------------------------------- */

.rv-guide__gap { margin-top: 64px; }
.rv-guide__swatch { display: flex; flex-direction: column; gap: 2px; font-size: 0.9375rem; }
.rv-guide__chip { display: block; height: 72px; margin-bottom: 8px; border: 1px solid var(--rv-border); border-radius: 10px; }

/* 14. Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* 15. Hero carousel --------------------------------------------------------- */

.rv-hero { position: relative; overflow: hidden; }

.rv-hero__slide {
	display: none;
	padding-block: 120px;
	background: linear-gradient(120deg, var(--rv-navy) 0%, var(--rv-blue) 100%);
	background-size: cover;
	background-position: center;
	color: rgba(255, 255, 255, 0.85);
}
.rv-hero__slide.is-active { display: block; animation: rv-fade 450ms ease; }

@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }

.rv-hero__inner { max-width: 720px; }
.rv-hero__eyebrow { color: rgba(255, 255, 255, 0.75); }
.rv-hero__title { color: var(--rv-white); }
.rv-hero__text { font-size: 1.125rem; }

.rv-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: var(--rv-white);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background var(--rv-ease);
}
.rv-hero__arrow:hover { background: rgba(255, 255, 255, 0.26); }
.rv-hero__arrow--prev { left: 24px; transform: translateY(-50%) rotate(180deg); }
.rv-hero__arrow--next { right: 24px; }

.rv-hero__dots { position: absolute; bottom: 28px; left: 50%; z-index: 2; display: flex; gap: 10px; transform: translateX(-50%); }
.rv-hero__dot { width: 10px; height: 10px; background: rgba(255, 255, 255, 0.4); border: 0; border-radius: 50%; cursor: pointer; transition: background var(--rv-ease), transform var(--rv-ease); }
.rv-hero__dot.is-active { background: var(--rv-white); transform: scale(1.2); }

@media (max-width: 640px) {
	.rv-hero__slide { padding-block: 80px; }
	.rv-hero__arrow { width: 36px; height: 36px; }
	.rv-hero__arrow--prev { left: 12px; }
	.rv-hero__arrow--next { right: 12px; }
}

/* 16. Breadcrumbs ------------------------------------------------------------ */

.rv-breadcrumbs { padding-block: 16px; background: var(--rv-gray); border-bottom: 1px solid var(--rv-border); }
.rv-breadcrumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.rv-breadcrumbs li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.rv-breadcrumbs a { color: var(--rv-muted); text-decoration: none; }
.rv-breadcrumbs a:hover { color: var(--rv-blue); text-decoration: underline; }
.rv-breadcrumbs [aria-current="page"] { color: var(--rv-text); font-weight: 600; }
.rv-breadcrumbs__sep { color: var(--rv-muted); }

/* 17. Page intro and content blocks ------------------------------------------ */

.rv-page-intro { padding-block: 48px 0; }
.rv-page-intro .rv-lead { max-width: 780px; }

.rv-content-block { padding-block: var(--rv-section-y); }
.rv-content-block:nth-of-type(even) { background: var(--rv-gray); }

.rv-content-block__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}
.rv-content-block--no-image .rv-content-block__inner { grid-template-columns: 1fr; max-width: 780px; }

.rv-content-block--image-left .rv-content-block__image { order: 1; }
.rv-content-block--image-left .rv-content-block__text { order: 2; }
.rv-content-block--image-right .rv-content-block__image { order: 2; }
.rv-content-block--image-right .rv-content-block__text { order: 1; }

.rv-content-block__text h2 { margin-bottom: 20px; }
.rv-content-block__text p { color: var(--rv-muted); }
.rv-content-block__list { margin: 0; padding: 0; list-style: none; }
.rv-content-block__list li {
	position: relative;
	padding: 10px 0 10px 32px;
	border-top: 1px solid var(--rv-border);
	color: var(--rv-text);
}
.rv-content-block__list li:first-child { border-top: 0; }
.rv-content-block__list li::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 0;
	width: 8px;
	height: 8px;
	background: var(--rv-blue);
	border-radius: 50%;
}

.rv-content-block__image img { width: 100%; border-radius: var(--rv-radius-card); box-shadow: var(--rv-shadow-md); }

@media (max-width: 900px) {
	.rv-content-block__inner { grid-template-columns: 1fr; gap: 32px; }
	.rv-content-block--image-left .rv-content-block__image,
	.rv-content-block--image-right .rv-content-block__image { order: 1; }
	.rv-content-block--image-left .rv-content-block__text,
	.rv-content-block--image-right .rv-content-block__text { order: 2; }
}

/* 18. Solutions section ------------------------------------------------------ */

.rv-section-header { max-width: 720px; margin-bottom: 48px; }
.rv-section-header h2 { margin-bottom: 16px; }

.rv-solution-card { display: flex; flex-direction: column; }
.rv-solution-card__body { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.rv-solution-card__body h3 { margin: 0; }
.rv-solution-card__body p { margin: 0; color: var(--rv-muted); }
.rv-solution-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rv-solution-card__link svg { transition: transform var(--rv-ease); }
.rv-solution-card:hover .rv-solution-card__link svg { transform: translateX(3px); }

.rv-solution-card__image { display: block; aspect-ratio: 16 / 10; background: var(--rv-tint); overflow: hidden; }
.rv-solution-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-solution-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: linear-gradient(120deg, var(--rv-navy) 0%, var(--rv-blue) 100%);
	color: var(--rv-white);
	font-weight: 700;
	text-align: center;
	padding: 16px;
}

/* 19. Image band and CTA ------------------------------------------------------ */

.rv-band {
	padding-block: 64px;
	background: var(--rv-navy);
	background-size: cover;
	background-position: center;
	color: var(--rv-white);
	text-align: center;
}
.rv-band h2 { margin: 0; color: var(--rv-white); }

.rv-cta { background: linear-gradient(120deg, var(--rv-navy) 0%, var(--rv-blue) 100%); color: rgba(255,255,255,.85); }
.rv-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.rv-cta h2 { color: var(--rv-white); margin-bottom: 12px; }
.rv-cta .rv-lead { color: rgba(255,255,255,.85); }
.rv-cta__eyebrow { color: rgba(255,255,255,.75); }
.rv-cta .rv-actions { margin: 0; }

@media (max-width: 900px) {
	.rv-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* 20. Sub-industries chip list ------------------------------------------------ */

.rv-sublist h2 { margin-bottom: 32px; }
.rv-sublist__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rv-sublist__grid li {
	padding: 16px 20px;
	background: var(--rv-white);
	border: 1px solid var(--rv-border);
	border-left: 3px solid var(--rv-blue);
	border-radius: 8px;
	color: var(--rv-text);
	font-weight: 500;
}
.rv-child-pages .rv-section-header { margin-bottom: 32px; }

/* 21. Why Rivanta ------------------------------------------------------------- */

.rv-why__split {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: stretch; /* text column and points column match height */
}

.rv-why__split--text-left .rv-why__text-col { order: 1; }
.rv-why__split--text-left .rv-why__points-col { order: 2; }
.rv-why__split--text-right .rv-why__text-col { order: 2; }
.rv-why__split--text-right .rv-why__points-col { order: 1; }

.rv-why__text-col { display: flex; flex-direction: column; gap: 24px; }
.rv-why__image { width: 100%; max-height: 320px; border-radius: var(--rv-radius-card); object-fit: cover; box-shadow: var(--rv-shadow-md); }

.rv-why__points-col { display: flex; }
.rv-why__points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: 1fr 1fr;
	gap: 32px;
	align-self: stretch;
	width: 100%;
}

.rv-why__point { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--rv-border); }
.rv-why__point h3 { margin: 0; font-size: 1.125rem; }
.rv-why__point p:last-child { margin: 0; color: var(--rv-muted); }
.rv-why__number { margin: 0; color: var(--rv-red-strong); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; }

@media (max-width: 900px) {
	.rv-why__split { grid-template-columns: 1fr; gap: 32px; }
	.rv-why__split--text-left .rv-why__text-col,
	.rv-why__split--text-right .rv-why__text-col { order: 1; }
	.rv-why__split--text-left .rv-why__points-col,
	.rv-why__split--text-right .rv-why__points-col { order: 2; }
	.rv-why__points { grid-template-rows: none; }
}

/* 22. Testimonials ------------------------------------------------------------ */

.rv-testimonial { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.rv-testimonial blockquote { margin: 0; padding: 0; border: 0; font-size: 1.0625rem; line-height: 1.6; }
.rv-testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rv-border); }
.rv-testimonial__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rv-testimonial figcaption strong { display: block; color: var(--rv-text); }
.rv-testimonial figcaption small { display: block; color: var(--rv-muted); font-size: 0.8125rem; }

/* 23. Company Logos ------------------------------------------------------------ */

.rv-logos { padding-block: 64px; }
.rv-logos__heading { margin: 0 0 32px; color: var(--rv-muted); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }

.rv-logos-scroll {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.rv-logos-scroll__track { display: flex; align-items: center; width: max-content; gap: 64px; animation-name: rv-logos-marquee; animation-timing-function: linear; animation-iteration-count: infinite; }
.rv-logos-scroll__item { flex: 0 0 auto; display: flex; align-items: center; height: 48px; }
.rv-logos-scroll__item img { display: block; max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: filter var(--rv-ease), opacity var(--rv-ease); }
.rv-logos-scroll__item:hover img { filter: grayscale(0%); opacity: 1; }

@keyframes rv-logos-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	.rv-logos-scroll__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* 24. Icon grid (About page: Mission, Vision, Approach, Our Core) ------------- */

.rv-icon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.rv-icon-grid__item { padding: 28px; background: var(--rv-white); border: 1px solid var(--rv-border); border-radius: var(--rv-radius-card); }
.rv-icon-grid__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; background: var(--rv-tint); border-radius: 12px; color: var(--rv-blue); }
.rv-icon-grid__item h3 { margin: 0 0 8px; }
.rv-icon-grid__item p { margin: 0; color: var(--rv-muted); }

@media (max-width: 640px) { .rv-icon-grid { grid-template-columns: 1fr; } }

/* 25. FAQ accordion ------------------------------------------------------------ */

.rv-faq__group + .rv-faq__group { margin-top: 48px; }
.rv-faq__group h2 { margin-bottom: 20px; }

.rv-faq__item { border-bottom: 1px solid var(--rv-border); }
.rv-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 4px;
	color: var(--rv-text);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.rv-faq__item summary::-webkit-details-marker { display: none; }
.rv-faq__item summary svg { flex: 0 0 auto; transition: transform var(--rv-ease); color: var(--rv-blue); }
.rv-faq__item[open] summary svg { transform: rotate(180deg); }
.rv-faq__answer { padding: 0 4px 20px; color: var(--rv-muted); }
.rv-faq__answer > *:first-child { margin-top: 0; }
.rv-faq__answer > *:last-child { margin-bottom: 0; }

/* 26. Social icons: shared + placement-specific ------------------------------- */

.rv-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rv-social a {
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; color: var(--rv-white);
	transition: transform var(--rv-ease), opacity var(--rv-ease);
}
.rv-social a:hover { transform: translateY(-2px); text-decoration: none; }

.rv-social--footer a { background: rgba(255,255,255,0.1); border: 1px solid var(--rv-border-light); }
.rv-social--footer a:hover { background: var(--rv-blue); border-color: var(--rv-blue); }

/* Recognisable per-network colours, sidebar and inline variants */
.rv-social--sidebar .rv-social__item--facebook a,
.rv-social--inline .rv-social__item--facebook a { background: #1877f2; }
.rv-social--sidebar .rv-social__item--linkedin a,
.rv-social--inline .rv-social__item--linkedin a { background: #0a66c2; }
.rv-social--sidebar .rv-social__item--x a,
.rv-social--inline .rv-social__item--x a { background: #0f1419; }
.rv-social--sidebar .rv-social__item--instagram a,
.rv-social--inline .rv-social__item--instagram a { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.rv-social--sidebar .rv-social__item--youtube a,
.rv-social--inline .rv-social__item--youtube a { background: #ff0000; }

.rv-social-sidebar {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 95;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transform: translateY(-50%);
}
.rv-social-sidebar .rv-social { flex-direction: column; }
.rv-social-sidebar a { width: 44px; height: 44px; border-radius: 8px 0 0 8px; }

.rv-post-social { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rv-border); }
.rv-post-social p { margin: 0; font-weight: 600; }

@media (max-width: 640px) {
	.rv-social-sidebar { display: none; } /* avoid covering content on small screens */
}

/* 27. Contact page ------------------------------------------------------------- */

.rv-contact__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.rv-contact__tabs { display: flex; flex-direction: column; gap: 4px; }
.rv-contact__tab {
	padding: 14px 16px; text-align: left; background: transparent; border: 0; border-left: 3px solid transparent;
	border-radius: 6px; color: var(--rv-muted); font-weight: 600; cursor: pointer; transition: background var(--rv-ease), color var(--rv-ease), border-color var(--rv-ease);
}
.rv-contact__tab:hover { background: var(--rv-tint); color: var(--rv-blue); }
.rv-contact__tab.is-active { background: var(--rv-tint); border-left-color: var(--rv-blue); color: var(--rv-blue); }
.rv-contact__form-title { margin-bottom: 24px; }
.rv-form__note { margin-top: 12px; color: var(--rv-muted); }

@media (max-width: 900px) {
	.rv-contact__layout { grid-template-columns: 1fr; }
	.rv-contact__tabs { flex-direction: row; flex-wrap: wrap; }
}

/* Planning to Visit */
.rv-visit__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.rv-visit__panel select { margin: 20px 0 16px; }
.rv-visit__panel address { font-style: normal; color: var(--rv-muted); margin-bottom: 16px; }
.rv-visit__map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rv-radius-card); overflow: hidden; box-shadow: var(--rv-shadow-md); }
.rv-visit__map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.rv-visit__map-frame.is-active { display: block; }
.rv-visit__map-link { display: none; font-weight: 600; }
.rv-visit__map-link.is-active { display: inline-block; }

@media (max-width: 900px) { .rv-visit__layout { grid-template-columns: 1fr; } }

/* Support portal callout: flexible image size per the PDF */
.rv-support__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rv-support__image img { width: 100%; height: auto; border-radius: var(--rv-radius-card); }

@media (max-width: 900px) { .rv-support__layout { grid-template-columns: 1fr; } }

/* Connect with us */
.rv-connect { text-align: center; }
.rv-connect .rv-social { justify-content: center; }

/* 29. Support tab (reuses the Support Portal Customizer settings) ------------- */

.rv-support-tab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--rv-radius-card); overflow: hidden; box-shadow: var(--rv-shadow-md); }
.rv-support-tab__panel { display: flex; flex-direction: column; gap: 16px; padding: 40px; background: var(--rv-blue); color: var(--rv-white); }
.rv-support-tab__panel h3 { color: var(--rv-white); margin: 0; }
.rv-support-tab__panel p { margin: 0; color: rgba(255,255,255,.85); }
.rv-support-tab__panel .rv-btn--accent { align-self: flex-start; }
.rv-support-tab__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
	.rv-support-tab { grid-template-columns: 1fr; }
}

/* 30. Insights: horizontal scroll ------------------------------------------- */

.rv-insights__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.rv-insights__header .rv-section-header { margin: 0; }
.rv-insights__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }

.rv-insights-scroll { position: relative; display: flex; align-items: center; gap: 12px; }
.rv-insights-scroll__track { display: flex; flex: 1; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; }
.rv-insights-scroll__track::-webkit-scrollbar { display: none; }
.rv-insights-scroll__track:focus-visible { outline: 2px solid var(--rv-blue); outline-offset: 4px; }

.rv-insight-card { flex: 0 0 auto; width: 320px; scroll-snap-align: start; display: flex; flex-direction: column; }
.rv-insight-card__image { display: block; aspect-ratio: 16 / 10; background: var(--rv-tint); overflow: hidden; }
.rv-insight-card__image img { width: 100%; height: 100%; object-fit: cover; }
.rv-insight-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: linear-gradient(120deg, var(--rv-navy) 0%, var(--rv-blue) 100%); color: var(--rv-white); font-weight: 700; text-align: center; padding: 16px; }
.rv-insight-card__body { padding: 20px; }
.rv-insight-card__date { margin: 0 0 8px; color: var(--rv-muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rv-insight-card__body h3 { margin: 0 0 8px; font-size: 1.125rem; }
.rv-insight-card__body h3 a { color: var(--rv-text); }
.rv-insight-card__body p:last-child { margin: 0; color: var(--rv-muted); font-size: 0.9375rem; }

.rv-insights-scroll__arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--rv-white); border: 1px solid var(--rv-border); border-radius: 50%; cursor: pointer; }
.rv-insights-scroll__arrow--prev { transform: rotate(180deg); }
.rv-insights-scroll__arrow:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 640px) {
	.rv-insights-scroll__arrow { display: none; }
	.rv-insight-card { width: 260px; }
}