/* Celestial Catalog — follows the Figma layout of Celestial Peak (Raleway, navy #001763, blue #0071d9, light #f8fbff). */

.cpc-catalog {
	--cpc-navy: #001763;
	--cpc-blue: #0071d9;
	--cpc-light: #f8fbff;
	--cpc-sky: #8cb8ff;
	--cpc-ice: #e8f2ff;
	--cpc-grey: #545c73;
	--cpc-shadow: 0 12px 32px rgba(0, 23, 99, 0.12);
	--cpc-pad: 40px;
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--cpc-pad);
	font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
	color: var(--cpc-navy);
}

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

.cpc-catalog h1,
.cpc-catalog h2,
.cpc-catalog h3,
.cpc-catalog p {
	padding: 0;
	font-family: inherit;
}

.cpc-catalog img {
	display: block;
	max-width: 100%;
}

.cpc-catalog a {
	text-decoration: none;
}

.cpc-empty {
	padding: 24px;
	border: 1px dashed var(--cpc-blue);
	text-align: center;
}

/* ---------- Dots: a row of circles that "breathe" in a wave ---------- */

.cpc-circles {
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	overflow: hidden;
}

.cpc-circles > span {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 113, 217, 0.08);
	animation: cpc-breathe 3.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.18s);
}

.cpc-circles--hero {
	gap: 14px;
	margin-top: 48px;
}

.cpc-circles--hero > span {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.18);
}

.cpc-circles--small {
	gap: 12px;
	margin-top: 47px;
}

.cpc-circles--small > span {
	width: 28px;
	height: 28px;
	background: rgba(255, 255, 255, 0.12);
}

@keyframes cpc-breathe {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(0.78); opacity: 0.45; }
}

/* ---------- Blue plaque with the heading (runs to the left edge of the screen) ---------- */

.cpc-head {
	display: flex;
	align-items: center;
	gap: 40px;
}

.cpc-catalog .cpc-plaque {
	display: flex;
	flex: 0 0 600px;
	align-items: center;
	min-height: 90px;
	margin: 0 0 0 calc(-1 * var(--cpc-pad));
	padding: 20px var(--cpc-pad);
	background: var(--cpc-navy);
	box-shadow: 0 0 0 100vmax var(--cpc-navy);
	clip-path: inset(0 0 0 -100vmax);
	color: #fff;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
}

.cpc-head .cpc-circles {
	flex: 1 1 auto;
	min-width: 0;
}

.cpc-catalog .cpc-sub {
	max-width: 760px;
	margin: 40px 0;
	color: var(--cpc-blue);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Category page: first screen ---------- */

.cpc-catalog.cpc-hero {
	display: flex;
	align-items: flex-start;
	max-width: none;
	min-height: 600px;
	padding: 0;
	overflow: hidden;
	background: var(--cpc-navy);
}

.cpc-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.cpc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 23, 99, 0.9) 0%, rgba(0, 23, 99, 0) 100%);
}

.cpc-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 120px 40px 80px;
}

.cpc-catalog .cpc-hero-title {
	max-width: 720px;
	margin: 0;
	color: #fff;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
}

.cpc-catalog .cpc-hero-text {
	max-width: 560px;
	margin: 24px 0 0;
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Category page: intro and tags ---------- */

.cpc-page {
	padding-top: 58px;
	padding-bottom: 80px;
}

.cpc-intro {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.cpc-catalog .cpc-intro-title {
	margin: 0 0 20px;
	color: var(--cpc-navy);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
}

.cpc-catalog .cpc-intro-text {
	margin: 0;
	color: var(--cpc-blue);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
}

.cpc-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 12px;
	margin-top: 50px;
}

.cpc-catalog .cpc-tag {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 20px;
	border: 1px solid var(--cpc-blue);
	border-radius: 21px;
	background: #fff;
	color: var(--cpc-navy);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cpc-catalog .cpc-tag:hover,
.cpc-catalog .cpc-tag.is-active {
	border-color: var(--cpc-navy);
	background: var(--cpc-navy);
	color: #fff;
}

/* ---------- Category page: categories with cards ---------- */

.cpc-cat {
	margin-top: 100px;
	scroll-margin-top: 140px;
}

.cpc-tags + .cpc-cat {
	margin-top: 90px;
}

.cpc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.cpc-card {
	display: flex;
	flex-direction: column;
	min-height: 358px;
	background: var(--cpc-navy);
	box-shadow: 0 6px 6px rgba(0, 0, 0, 0.16);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Dark and light cards in turn */
.cpc-card:nth-child(even) {
	background: var(--cpc-light);
}

.cpc-card-img {
	height: 190px;
	overflow: hidden;
	background: var(--cpc-ice);
}

.cpc-card-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cpc-card-body {
	padding: 24px 20px;
}

.cpc-catalog .cpc-card-title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.cpc-catalog .cpc-card-text {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.cpc-card:nth-child(even) .cpc-card-title {
	color: var(--cpc-navy);
}

.cpc-card:nth-child(even) .cpc-card-text {
	color: var(--cpc-blue);
}

.cpc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 24px rgba(0, 23, 99, 0.18);
}

.cpc-card:hover .cpc-card-img img {
	transform: scale(1.05);
}

/* ---------- Home: light blocks ("Our Products", "Our services") ---------- */

.cpc-block {
	padding-top: 60px;
	padding-bottom: 68px;
	scroll-margin-top: 100px;
}

/* Light background across the whole screen width, whatever the Divi row width is */
.cpc-block--bg {
	background: var(--cpc-light);
	box-shadow: 0 0 0 100vmax var(--cpc-light);
	clip-path: inset(0 -100vmax);
}

.cpc-catalog .cpc-sub--home {
	max-width: 800px;
	margin: 30px 0 40px;
}

/* ---------- Home: "Our Products" tiles ---------- */

.cpc-bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 260px;
	gap: 16px;
}

.cpc-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 20px;
	background: var(--cpc-navy);
	color: #fff;
	isolation: isolate;
}

/* The first tile is big, the eighth one is wide */
.cpc-tile:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.cpc-tile:nth-child(8) {
	grid-column: span 2;
}

.cpc-tile-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cpc-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 23, 99, 0) 0%, rgba(0, 23, 99, 0.92) 100%);
}

.cpc-tile-body {
	position: absolute;
	right: 24px;
	bottom: 24px;
	left: 24px;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.cpc-tile-text {
	max-width: 432px;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
	line-height: 1.5;
}

.cpc-tile-name {
	max-width: 462px;
	color: #fff;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
}

.cpc-tile:first-child .cpc-tile-name {
	font-size: 30px;
}

.cpc-tile-meta {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	line-height: 1.2;
}

.cpc-arrow {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--cpc-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

a.cpc-tile:hover .cpc-tile-img {
	transform: scale(1.06);
}

a.cpc-tile:hover .cpc-arrow {
	background: var(--cpc-blue);
	color: #fff;
	transform: translateX(3px);
}

/* ---------- Home: "Our services" cards ---------- */

.cpc-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 60px;
}

.cpc-service {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 300px;
	padding: 28px;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--cpc-shadow);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.cpc-service-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--cpc-ice);
	transition: background-color 0.3s ease;
}

.cpc-service-icon img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.cpc-service-title {
	margin-top: 20px;
	color: var(--cpc-navy);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.cpc-service-text {
	margin-top: 10px;
	color: var(--cpc-grey);
	font-size: 15px;
	line-height: 1.5;
}

.cpc-more {
	margin-top: auto;
	padding-top: 14px;
	color: var(--cpc-blue);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.cpc-service :is(.cpc-service-title, .cpc-service-text, .cpc-more) {
	transition: color 0.3s ease;
}

/* The blue card from the mockup is the hover state */
.cpc-service:hover,
.cpc-service:focus-visible {
	background: var(--cpc-navy);
	transform: translateY(-4px);
}

.cpc-service:hover .cpc-service-icon,
.cpc-service:focus-visible .cpc-service-icon {
	background: #fff;
}

.cpc-service:hover .cpc-service-title,
.cpc-service:focus-visible .cpc-service-title {
	color: #fff;
}

.cpc-service:hover .cpc-service-text,
.cpc-service:focus-visible .cpc-service-text {
	color: rgba(255, 255, 255, 0.85);
}

.cpc-service:hover .cpc-more,
.cpc-service:focus-visible .cpc-more {
	color: var(--cpc-sky);
}

/* ---------- Home: first screen with the photo mosaic ---------- */

.cpc-catalog.cpc-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 540px;
	gap: 20px;
	min-height: 600px;
	padding-top: 40px;
	padding-bottom: 40px;
	overflow: hidden;
	background: var(--cpc-navy);
	box-shadow: 0 0 0 100vmax var(--cpc-navy);
	clip-path: inset(0 -100vmax);
	color: #fff;
}

.cpc-ring {
	position: absolute;
	top: -160px;
	left: 560px;
	width: 520px;
	height: 520px;
	border: 1.5px solid var(--cpc-sky);
	border-radius: 50%;
	animation: cpc-spin 60s linear infinite;
	pointer-events: none;
}

/* A dot on the ring makes the slow turn visible */
.cpc-ring > span {
	position: absolute;
	top: 50%;
	left: -6px;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--cpc-sky);
}

@keyframes cpc-spin {
	to { transform: rotate(360deg); }
}

.cpc-home-hero-text {
	position: relative;
	z-index: 1;
	padding-top: 68px;
}

.cpc-catalog .cpc-eyebrow {
	margin: 0 0 16px;
	color: var(--cpc-sky);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cpc-catalog .cpc-home-hero-title {
	max-width: 560px;
	margin: 0;
	color: #fff;
	font-size: 64px;
	font-weight: 800;
	line-height: 1.05;
}

.cpc-catalog .cpc-home-hero-lead {
	max-width: 500px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
}

.cpc-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 36px;
}

.cpc-catalog .cpc-btn {
	display: inline-flex;
	align-items: center;
	height: 52px;
	padding: 0 28px;
	border: 1.5px solid #fff;
	border-radius: 26px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cpc-catalog .cpc-btn--light {
	background: #fff;
	color: var(--cpc-navy);
}

.cpc-catalog .cpc-btn--light:hover {
	border-color: var(--cpc-ice);
	background: var(--cpc-ice);
}

.cpc-catalog .cpc-btn--outline {
	background: transparent;
	color: #fff;
}

.cpc-catalog .cpc-btn--outline:hover {
	background: #fff;
	color: var(--cpc-navy);
}

/* Two columns of photos: 300 + 224 px wide, cells of different heights */
.cpc-mosaic {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 300fr 224fr;
	grid-template-rows: 250fr 34fr 204fr;
	gap: 16px 16px;
	height: 520px;
}

.cpc-mosaic-cell {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	animation: cpc-pop 0.7s ease both;
	animation-delay: calc(0.15s + var(--i) * 0.15s);
}

.cpc-mosaic-cell:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.cpc-mosaic-cell:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.cpc-mosaic-cell:nth-child(3) { grid-area: 2 / 2 / 4 / 3; }
.cpc-mosaic-cell:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }

.cpc-mosaic-cell img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: opacity 1.2s ease;
}

.cpc-mosaic-cell img.cpc-fade {
	opacity: 0;
}

@keyframes cpc-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
	to { opacity: 1; transform: none; }
}

.cpc-badge {
	position: absolute;
	top: 380px;
	left: -60px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 210px;
	padding: 12px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--cpc-shadow);
	animation: cpc-pop 0.7s ease 0.9s both;
}

.cpc-badge-num {
	color: var(--cpc-navy);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
}

.cpc-badge-text {
	color: var(--cpc-grey);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

/* ---------- Small desktop ---------- */

@media (max-width: 1180px) {
	.cpc-catalog.cpc-home-hero {
		grid-template-columns: minmax(0, 1fr) 460px;
	}

	.cpc-catalog .cpc-home-hero-title {
		font-size: 54px;
	}

	.cpc-mosaic {
		height: 460px;
	}

	.cpc-badge {
		top: auto;
		bottom: 40px;
		left: -40px;
	}

	.cpc-ring {
		left: auto;
		right: -80px;
	}
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
	.cpc-catalog {
		--cpc-pad: 32px;
	}

	.cpc-catalog.cpc-hero {
		min-height: 520px;
	}

	.cpc-hero-inner {
		padding: 96px 32px 64px;
	}

	.cpc-catalog .cpc-hero-title {
		font-size: 42px;
	}

	.cpc-catalog .cpc-hero-text {
		font-size: 18px;
	}

	.cpc-catalog .cpc-plaque {
		flex-basis: auto;
		max-width: 80%;
		font-size: 28px;
	}

	.cpc-catalog .cpc-sub {
		margin: 32px 0;
		font-size: 18px;
	}

	.cpc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cpc-cat {
		margin-top: 80px;
	}

	.cpc-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: minmax(240px, auto);
	}

	.cpc-tile:first-child {
		grid-row: span 1;
		min-height: 340px;
	}

	.cpc-services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		margin-top: 48px;
	}

	.cpc-catalog.cpc-home-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
		padding-bottom: 48px;
	}

	.cpc-home-hero-text {
		padding-top: 40px;
	}

	.cpc-mosaic {
		height: 440px;
	}

	.cpc-badge {
		bottom: 24px;
		left: 24px;
	}

	.cpc-ring {
		top: -200px;
		right: -200px;
	}
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
	.cpc-catalog {
		--cpc-pad: 20px;
	}

	.cpc-catalog.cpc-hero {
		min-height: 480px;
	}

	.cpc-hero::after {
		background: linear-gradient(180deg, rgba(0, 23, 99, 0.6) 0%, rgba(0, 23, 99, 0.92) 100%);
	}

	.cpc-hero-inner {
		padding: 72px 20px 48px;
	}

	.cpc-catalog .cpc-hero-title {
		font-size: 30px;
	}

	.cpc-catalog .cpc-hero-text {
		margin-top: 18px;
		font-size: 17px;
	}

	.cpc-circles {
		gap: 10px;
	}

	.cpc-circles > span {
		width: 32px;
		height: 32px;
	}

	.cpc-circles--hero {
		margin-top: 36px;
	}

	.cpc-circles--hero > span,
	.cpc-circles--small > span {
		width: 24px;
		height: 24px;
	}

	.cpc-page {
		padding-top: 44px;
		padding-bottom: 56px;
	}

	.cpc-catalog .cpc-intro-title {
		font-size: 26px;
	}

	.cpc-catalog .cpc-intro-text {
		font-size: 16px;
	}

	/* Tags scroll sideways in one line instead of a tall wall of buttons */
	.cpc-tags {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin: 36px calc(-1 * var(--cpc-pad)) 0;
		padding: 0 var(--cpc-pad) 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.cpc-tags::-webkit-scrollbar {
		display: none;
	}

	.cpc-catalog .cpc-plaque {
		max-width: calc(100% - 40px);
		min-height: 72px;
		padding: 16px var(--cpc-pad);
		font-size: 24px;
	}

	.cpc-head {
		gap: 16px;
	}

	.cpc-catalog .cpc-sub {
		margin: 24px 0;
		font-size: 17px;
	}

	.cpc-cat,
	.cpc-tags + .cpc-cat {
		margin-top: 64px;
		scroll-margin-top: 100px;
	}

	.cpc-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.cpc-card {
		min-height: 0;
	}

	.cpc-card-img {
		height: auto;
		aspect-ratio: 265 / 190;
	}

	.cpc-block {
		padding-top: 44px;
		padding-bottom: 52px;
	}

	.cpc-catalog .cpc-sub--home {
		margin: 24px 0 28px;
	}

	.cpc-bento {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: minmax(220px, auto);
		gap: 12px;
	}

	.cpc-tile:first-child,
	.cpc-tile:nth-child(8) {
		grid-column: auto;
	}

	.cpc-tile:first-child {
		min-height: 380px;
	}

	.cpc-tile:first-child .cpc-tile-name {
		font-size: 24px;
	}

	.cpc-tile-body {
		right: 20px;
		bottom: 20px;
		left: 20px;
	}

	.cpc-services {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 36px;
	}

	.cpc-service {
		min-height: 0;
		padding: 24px;
	}

	.cpc-catalog .cpc-home-hero-title {
		font-size: 40px;
	}

	.cpc-catalog .cpc-home-hero-lead {
		font-size: 16px;
	}

	.cpc-catalog .cpc-btn {
		height: 48px;
		padding: 0 22px;
		font-size: 15px;
	}

	.cpc-circles--small {
		margin-top: 36px;
	}

	.cpc-mosaic {
		height: 340px;
		gap: 10px;
	}

	.cpc-mosaic-cell {
		border-radius: 14px;
	}

	.cpc-badge {
		bottom: 14px;
		left: 14px;
		width: auto;
		padding: 10px 16px;
	}

	.cpc-badge-num {
		font-size: 20px;
	}
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.cpc-catalog *,
	.cpc-catalog *::before,
	.cpc-catalog *::after {
		animation: none !important;
		transition: none !important;
	}
}
