/**
 * NovoClean global styles
 * Client palette + prototype layout/interaction patterns.
 */

:root {
	/* Authoritative client palette */
	--nc-navy: #0b2f55;
	--nc-blue: #159fea;
	--nc-aqua: #25c7c7;
	--nc-white: #ffffff;
	--nc-gray: #f3f6f8;

	/* Layered blue system (derived from client palette) */
	--nc-navy-deep: #08243f;
	--nc-navy-mid: #0d3a66;
	--nc-blue-dark: #0e7fc0;
	--nc-blue-light: #e8f5fc;
	--nc-blue-soft: rgba(21, 159, 234, 0.14);
	--nc-blue-mist: rgba(11, 47, 85, 0.06);
	--nc-aqua-dark: #1aa0a0;
	--nc-aqua-tint: #e6f8f8;
	--nc-aqua-soft: rgba(37, 199, 199, 0.14);

	/* Surfaces & text */
	--nc-line: #d5dee6;
	--nc-line-strong: #b7c4d0;
	--nc-text: #1a2a3a;
	--nc-text-soft: #5a6b7b;
	--nc-text-inverse: #f3f6f8;
	--nc-text-inverse-soft: #a8b8c8;
	--nc-focus: #159fea;
	--nc-error: #b42318;
	--nc-surface: var(--nc-white);
	--nc-background: var(--nc-gray);

	/* Semantic aliases */
	--color-navy: var(--nc-navy);
	--color-navy-dark: var(--nc-navy-deep);
	--color-blue: var(--nc-blue);
	--color-blue-light: var(--nc-blue-light);
	--color-surface: var(--nc-surface);
	--color-background: var(--nc-background);
	--color-border: var(--nc-line);
	--color-text: var(--nc-text);
	--color-text-muted: var(--nc-text-soft);

	/* Spacing & layout */
	--nc-maxw: 1200px;
	--nc-gap: 24px;
	--nc-radius: 6px;
	--nc-radius-lg: 12px;
	--nc-header-height: 78px;
	--nc-shadow: 0 12px 32px rgba(11, 47, 85, 0.1);
	--nc-shadow-sm: 0 4px 16px rgba(11, 47, 85, 0.08);
	--nc-shadow-btn: 0 8px 18px rgba(21, 159, 234, 0.28);
	--nc-transition: 180ms ease;

	/* Typography */
	--nc-font-head: "Manrope", sans-serif;
	--nc-font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
	overflow-x: clip;
}

@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;
	}
}

body {
	margin: 0;
	font-family: var(--nc-font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--nc-text);
	background: var(--nc-background);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
}

body.is-nav-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--nc-font-head);
	color: var(--nc-navy);
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	line-height: 1.08;
	font-weight: 800;
}

h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.35rem);
	line-height: 1.15;
}

h3 {
	font-size: 1.2rem;
	line-height: 1.3;
}

p {
	margin: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	left: 16px;
	top: 16px;
	width: auto;
	z-index: 100000;
	background: var(--nc-navy);
	color: var(--nc-white);
	padding: 10px 16px;
	border-radius: var(--nc-radius);
}

:focus-visible {
	outline: 2px solid var(--nc-focus);
	outline-offset: 2px;
}

/* Container & section primitives */
.container {
	max-width: var(--nc-maxw);
	margin: 0 auto;
	padding: 0 32px;
}

.section {
	padding: 88px 0;
	position: relative;
}

.section--tight {
	padding: 56px 0;
}

.section--alt {
	background: var(--nc-surface);
}

.section--dark {
	background: linear-gradient(160deg, var(--nc-navy-deep) 0%, var(--nc-navy) 55%, var(--nc-navy-mid) 100%);
	color: var(--nc-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--nc-white);
}

.kicker {
	color: var(--nc-blue-dark);
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 10px;
	display: block;
}

.section--dark .kicker {
	color: var(--nc-aqua);
}

.lede {
	color: var(--nc-text-soft);
	font-size: 1.08rem;
	max-width: 640px;
	margin-top: 14px;
}

.section--dark .lede {
	color: var(--nc-text-inverse-soft);
}

.head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 44px;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: var(--nc-radius);
	font-weight: 600;
	font-size: 0.98rem;
	border: 1.5px solid transparent;
	transition: all var(--nc-transition);
	white-space: nowrap;
	line-height: 1.2;
	text-align: center;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--nc-blue);
	color: var(--nc-white);
	box-shadow: var(--nc-shadow-btn);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--nc-blue-dark);
	color: var(--nc-white);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(21, 159, 234, 0.34);
}

.btn-secondary {
	background: var(--nc-aqua);
	color: var(--nc-navy);
	box-shadow: 0 6px 16px rgba(37, 199, 199, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: var(--nc-aqua-dark);
	color: var(--nc-white);
	transform: translateY(-2px);
}

.btn-outline-dark {
	border-color: var(--nc-navy);
	color: var(--nc-navy);
	background: transparent;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
	background: var(--nc-navy);
	color: var(--nc-white);
	transform: translateY(-2px);
	box-shadow: var(--nc-shadow-sm);
}

.btn-outline-light {
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--nc-white);
	background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--nc-white);
	transform: translateY(-2px);
}

.btn-block {
	width: 100%;
}

.btn-sm {
	padding: 10px 18px;
	font-size: 0.9rem;
}

.link-arrow {
	font-weight: 600;
	color: var(--nc-blue-dark);
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 2px;
}

.link-arrow:hover {
	color: var(--nc-navy);
}

/* Header / navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(243, 246, 248, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--nc-line);
	box-shadow: 0 1px 0 rgba(11, 47, 85, 0.03);
	transition: box-shadow var(--nc-transition), border-color var(--nc-transition);
}

.site-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(11, 47, 85, 0.08);
	border-bottom-color: rgba(183, 196, 208, 0.9);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	height: var(--nc-header-height);
}

.site-brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.site-brand__logo,
.custom-logo-link img,
.custom-logo {
	display: block;
	width: auto;
	max-height: 52px;
	height: auto;
}

.nav-main {
	display: flex;
	align-items: center;
}

.nav-main__list {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-item {
	position: relative;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--nc-text);
	border-radius: var(--nc-radius);
	border: 0;
	background: transparent;
	position: relative;
	transition: color var(--nc-transition), background var(--nc-transition);
}

.nav-link:hover {
	color: var(--nc-blue-dark);
	background: rgba(21, 159, 234, 0.06);
}

.nav-link.is-active {
	color: var(--nc-navy);
}

.nav-link.is-active::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 4px;
	height: 2px;
	background: linear-gradient(90deg, var(--nc-blue), var(--nc-aqua));
	border-radius: 2px;
}

.nav-drop-btn {
	cursor: pointer;
}

.nav-caret {
	width: 9px;
	height: 9px;
	transition: transform 0.15s ease;
}

.nav-item.is-open .nav-caret {
	transform: rotate(180deg);
}

.nav-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: var(--nc-white);
	border: 1px solid var(--nc-line);
	border-radius: var(--nc-radius-lg);
	min-width: 250px;
	box-shadow: var(--nc-shadow);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
	z-index: 20;
}

.nav-item.is-open .nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-dropdown a {
	display: block;
	padding: 11px 14px;
	border-radius: var(--nc-radius);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--nc-text);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
	background: var(--nc-aqua-tint);
	color: var(--nc-blue-dark);
}

.nav-dropdown a small {
	display: block;
	font-weight: 400;
	color: var(--nc-text-soft);
	font-size: 0.78rem;
	margin-top: 2px;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.nav-cta {
	display: inline-flex;
}

.hamburger {
	display: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
}

.burger-icon {
	width: 22px;
	height: 16px;
	position: relative;
	display: block;
}

.burger-icon i {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--nc-navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger-icon i:nth-child(1) {
	top: 0;
}

.burger-icon i:nth-child(2) {
	top: 7px;
}

.burger-icon i:nth-child(3) {
	top: 14px;
}

.is-nav-open .burger-icon i:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.is-nav-open .burger-icon i:nth-child(2) {
	opacity: 0;
}

.is-nav-open .burger-icon i:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
	display: none;
	position: fixed;
	inset: var(--nc-header-height) 0 0 0;
	background:
		linear-gradient(180deg, rgba(21, 159, 234, 0.06) 0%, transparent 28%),
		var(--nc-background);
	z-index: 101;
	overflow-y: auto;
	padding: 20px;
	border-top: 1px solid var(--nc-line);
}

body.is-nav-open .mobile-panel {
	display: block;
}

.mobile-panel[hidden] {
	display: none !important;
}

.mobile-panel__list {
	display: flex;
	flex-direction: column;
}

.mobile-panel .nav-link {
	display: block;
	width: 100%;
	padding: 16px 8px;
	font-size: 1.05rem;
	border-bottom: 1px solid var(--nc-line);
	border-radius: 0;
}

.mobile-panel .nav-link.is-active::after {
	display: none;
}

.mobile-sub,
.mobile-panel__list .mobile-sub,
.mobile-panel .sub-menu,
.mobile-panel ul.mobile-sub {
	padding-left: 16px;
}

.mobile-sub a,
.mobile-panel .mobile-sub a,
.mobile-panel ul.mobile-sub a {
	display: block;
	padding: 13px 8px;
	color: var(--nc-text-soft);
	font-weight: 600;
	border-bottom: 1px solid var(--nc-line);
	font-size: 0.95rem;
}

.mobile-panel__cta {
	margin-top: 20px;
}

@media (max-width: 980px) {
	.nav-main,
	.nav-cta {
		display: none;
	}

	.hamburger {
		display: flex;
	}
}

/* Main content shell */
.site-main {
	min-height: 40vh;
}

.entry__header {
	margin-bottom: 24px;
}

.entry__content > * + * {
	margin-top: 1em;
}

/* Footer */
.site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(165deg, var(--nc-navy-deep) 0%, var(--nc-navy) 48%, var(--nc-navy-mid) 100%);
	color: var(--nc-text-inverse-soft);
	padding: 72px 0 28px;
}

.site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: clamp(70px, 16vw, 150px);
	max-width: 100%;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23159fea' fill-opacity='0.16' d='M0,80 C200,140 400,20 700,70 C1000,120 1240,160 1440,90 L1440,0 L0,0 Z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0,36 C200,60 400,12 720,40 C1040,68 1240,20 1440,44' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 120% 100%, 135% 36px;
	background-position: center top, center 55%;
	pointer-events: none;
	z-index: 0;
}

.site-footer::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(56px, 12vw, 120px);
	max-width: 100%;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath fill='%2325c7c7' fill-opacity='0.1' d='M0,100 C280,40 560,140 840,80 C1120,20 1280,110 1440,70 L1440,180 L0,180 Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 125% 100%;
	background-position: center bottom;
	pointer-events: none;
	z-index: 0;
}

.site-footer > .container {
	position: relative;
	z-index: 1;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
	gap: 32px;
	padding-bottom: 44px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-heading {
	color: var(--nc-white);
	font-size: 0.86rem;
	margin-bottom: 16px;
	font-family: var(--nc-font-head);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.footer-list {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.footer-list a,
.footer-list li {
	font-size: 0.88rem;
}

.footer-list a {
	transition: color var(--nc-transition);
}

.footer-list a:hover,
.footer-list a:focus-visible {
	color: var(--nc-white);
}

.footer-list--contact a {
	color: var(--nc-text-inverse);
	font-weight: 500;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	margin-bottom: 14px;
}

.footer-brand__plate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--nc-white);
	border-radius: var(--nc-radius-lg);
	padding: 8px 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.footer-brand__logo {
	display: block;
	width: auto;
	max-height: 40px;
	height: auto;
}

.footer-desc {
	font-size: 0.88rem;
	max-width: 280px;
	color: var(--nc-text-inverse-soft);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	font-size: 0.8rem;
	flex-wrap: wrap;
	gap: 10px;
}

.footer-copy {
	margin: 0;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
	color: var(--nc-white);
}

/* Responsive breakpoints */
@media (max-width: 900px) {
	.section {
		padding: 72px 0;
	}

	.head-row {
		margin-bottom: 32px;
	}
}

@media (max-width: 860px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.container {
		padding: 0 20px;
	}

	.section {
		padding: 56px 0;
	}

	.section--tight {
		padding: 40px 0;
	}

	.site-brand__logo,
	.custom-logo-link img,
	.custom-logo {
		max-height: 44px;
	}

	.btn {
		padding: 13px 20px;
	}
}

@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.nav-inner {
		height: 70px;
	}

	:root {
		--nc-header-height: 70px;
	}
}
