/* Ring Matrix site styles */

:root {
	--brand-navy: #002e56;
	--accent: #e57729;
	--card-border: #226fb3;
	--bg: #ffffff;
	--text: #333333;
	--text-muted: #7a7a7a;
	--container-max: 1200px;
	--content-max: 780px;
}

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

html {
	font-size: 16px;
}

body {
	margin: 0;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

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

a {
	color: var(--brand-navy);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	color: var(--brand-navy);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 300;
}

h1 {
	font-size: 3rem;
	font-weight: 700;
}

h2 {
	font-size: 2.25rem;
}

h3 {
	font-size: 1.125rem;
	font-weight: 700;
}

h6 {
	font-size: 1.5rem;
	font-weight: 400;
}

p {
	margin: 0 0 1em;
	font-size: 1.0625rem;
}

strong {
	font-weight: 700;
}

.accent {
	color: var(--accent);
	font-weight: 700;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header */

.site-header {
	background: var(--bg);
	padding: 0.75rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-logo {
	display: inline-block;
}

.site-logo img {
	height: 56px;
	width: auto;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
}

.site-nav a {
	color: #222;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

/* Hero (home) */

.hero {
	background-color: var(--brand-navy);
	background-image: url("/assets/img/banner.jpg");
	background-repeat: no-repeat;
	background-position: center right;
	background-size: auto 100%;
	color: #fff;
	padding: 6rem 0 5rem;
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.hero {
		padding: 9rem 0 8rem;
	}
	.hero .container {
		grid-template-columns: 1.1fr 0.9fr;
	}
}

.hero-text {
	max-width: 640px;
}

.hero h6 {
	color: #fff;
	font-size: 1.375rem;
	font-weight: 400;
	margin: 0 0 0.75rem;
	opacity: 0.95;
}

.hero h1 {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	line-height: 1.1;
}

@media (min-width: 900px) {
	.hero h1 {
		font-size: 3.125rem;
	}
}

.hero p {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.55;
	margin: 0;
}

/* Inner page banner */

.page-header {
	background-color: var(--brand-navy);
	background-image: url("/assets/img/ring-bg.png");
	background-repeat: no-repeat;
	background-position: center right;
	color: #fff;
	padding: 6rem 0 5rem;
	text-align: center;
}

@media (min-width: 900px) {
	.page-header {
		padding: 8rem 0 7rem;
	}
}

.page-header h1 {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

@media (min-width: 900px) {
	.page-header h1 {
		font-size: 3rem;
	}
}

/* Sections */

section {
	padding: 4.5rem 0;
}

section.dark {
	background-color: var(--brand-navy);
	background-image: url("/assets/img/ring-bg.png");
	background-repeat: no-repeat;
	background-position: center right;
	color: #fff;
}

section.dark h2 {
	color: #fff;
}

section.dark-overlay {
	background-color: var(--brand-navy);
	background-image:
		linear-gradient(rgba(0, 46, 86, 0.9), rgba(0, 46, 86, 0.9)),
		url("/assets/img/data-bg.jpg");
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
	color: #fff;
	text-align: center;
}

section.dark-overlay h2 {
	color: #fff;
}

.section-head {
	text-align: center;
	max-width: var(--content-max);
	margin: 0 auto 3rem;
}

.section-head h2 {
	margin-bottom: 0.75rem;
}

.section-head p {
	color: var(--text-muted);
	margin: 0;
	font-size: 1.0625rem;
}

section.dark .section-head,
section.dark-overlay .section-head {
	margin-bottom: 2.5rem;
}

section.dark .section-head p,
section.dark-overlay .section-head p {
	color: rgba(255, 255, 255, 0.85);
}

/* Two-column split (image + text) */

.split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
	max-width: var(--container-max);
	margin: 0 auto;
}

@media (min-width: 860px) {
	.split {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
	.split.reverse .split-text {
		order: 2;
	}
}

.split-text h2 {
	margin-bottom: 1rem;
}

.split-text p {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.split-media img {
	margin: 0 auto;
	max-width: 420px;
	border-radius: 12px;
}

.split-media.rounded-left img {
	border-radius: 50px 12px 12px 50px;
}

.split-media.rounded-right img {
	border-radius: 12px 50px 50px 12px;
}

.split-media img[src$="ring-matrix-icon.png"] {
	max-width: 300px;
}

@media (max-width: 859px) {
	.split-media.rounded-left img,
	.split-media.rounded-right img {
		border-radius: 16px;
	}
}

.split-media.feature-icon-large {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-navy);
}

.split-media.feature-icon-large svg {
	width: 220px;
	height: 220px;
	max-width: 100%;
}

@media (min-width: 900px) {
	.split-media.feature-icon-large svg {
		width: 260px;
		height: 260px;
	}
}

/* Feature card grid (use cases) */

.feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 620px) {
	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.feature {
	background: transparent;
	border: 1px solid var(--card-border);
	border-radius: 4px;
	padding: 1.5rem 1.5rem 1.25rem;
	display: flex;
	gap: 1rem;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.feature-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
}

.feature-icon svg {
	width: 36px;
	height: 36px;
}

.feature h3 {
	margin: 0 0 0.5rem;
	color: #fff;
}

.feature p {
	margin: 0;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.7;
}

/* INT6 parent brand block (contact page) */

.parent-brand {
	text-align: center;
	margin: 3rem auto 0;
	max-width: 560px;
}

.int6-logo-link {
	display: inline-block;
	margin-bottom: 1.5rem;
}

.int6-logo {
	max-width: 260px;
	height: auto;
	margin: 0 auto;
}

.parent-brand p {
	color: var(--text-muted);
	font-size: 1.0625rem;
	margin: 0 0 1.5rem;
}

.parent-brand .int6-link {
	display: inline-block;
	color: var(--brand-navy);
	border: 2px solid var(--brand-navy);
	padding: 0.75rem 1.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.parent-brand .int6-link:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Footer */

.site-footer {
	background: var(--brand-navy);
	color: #fff;
	padding: 3.5rem 0 0;
	font-size: 0.9375rem;
	position: relative;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: var(--accent);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 760px) {
	.footer-grid {
		grid-template-columns: 2fr 1fr;
	}
}

.footer-brand .footer-logo {
	height: 60px;
	width: auto;
	margin: 0 0 1rem;
}

.footer-brand p {
	color: rgba(255, 255, 255, 0.85);
	max-width: 360px;
	margin: 0;
}

.footer-brand a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer-brand a:hover {
	color: var(--accent);
}

.footer-col h4 {
	color: var(--accent);
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

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

.footer-col li {
	margin: 0 0 0.6rem;
}

.footer-col a {
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.footer-col a:hover {
	color: var(--accent);
}

.footer-copyright {
	background: #000;
	color: #fff;
	font-size: 0.75rem;
	padding: 6px 10px;
}

.footer-copyright .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
}

.footer-copyright p {
	margin: 0;
	font-size: inherit;
}

.footer-int6-logo {
	display: inline-block;
	line-height: 0;
}

.footer-int6-logo img {
	height: 24px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.footer-int6-logo:hover img {
	opacity: 1;
}

.footer-back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 28px;
	height: 28px;
	opacity: 0.85;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-back-to-top:hover {
	opacity: 1;
	color: var(--accent);
}

.footer-back-to-top svg {
	width: 24px;
	height: 24px;
}

@media (max-width: 640px) {
	.footer-copyright {
		font-size: 0.8125rem;
		padding: 12px 16px;
	}
	.footer-copyright .container {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}
}

/* Responsive adjustments */

@media (max-width: 960px) {
	.hero {
		background-image:
			linear-gradient(rgba(0, 46, 86, 0.55), rgba(0, 46, 86, 0.55)),
			url("/assets/img/banner.jpg");
		background-size: cover;
		background-position: center;
	}
	.page-header {
		background-size: cover;
		background-position: center;
	}
	section.dark {
		background-position: center;
		background-size: cover;
	}
}

@media (max-width: 768px) {
	section {
		padding: 3rem 0;
	}
	.section-head {
		margin-bottom: 2rem;
	}
	.hero {
		padding: 3.5rem 0 3rem;
	}
	.hero h1 {
		font-size: 2.125rem;
	}
	.hero h6 {
		font-size: 1.125rem;
	}
	.hero p {
		font-size: 1rem;
	}
	.page-header {
		padding: 4rem 0 3rem;
	}
	.page-header h1 {
		font-size: 2.25rem;
	}
	h1 {
		font-size: 2.25rem;
	}
	h2 {
		font-size: 1.75rem;
	}
	.site-header {
		padding: 0.5rem 0;
	}
	.site-logo img {
		height: 44px;
	}
	.site-nav {
		width: 100%;
		justify-content: center;
		gap: 0.25rem 1.25rem;
	}
	.site-nav a {
		font-size: 0.8125rem;
		padding: 0.375rem 0;
	}
	.feature {
		padding: 1.25rem;
	}
	.footer-grid {
		gap: 2rem;
		padding-bottom: 2rem;
	}
	.int6-logo {
		max-width: 200px;
	}
}

@media (max-width: 420px) {
	.container {
		padding: 0 1rem;
	}
	html {
		font-size: 15px;
	}
	.site-nav {
		gap: 0.25rem 1rem;
	}
	.feature {
		flex-direction: column;
		gap: 0.75rem;
	}
}
