/* NUVU Science — global theme styles */

:root {
	--nuvu-navy: #0a2163;
	--nuvu-navy-deep: #071848;
	--nuvu-navy-mid: #12307a;
	--nuvu-blue: #1f6feb;
	--nuvu-blue-soft: #e8f1ff;
	--nuvu-blue-mid: #3b82f6;
	--nuvu-ice: #a9c7df;
	--nuvu-white: #ffffff;
	--nuvu-bg: #f5f7fa;
	--nuvu-text: #0f172a;
	--nuvu-muted: #64748b;
	--nuvu-border: #e2e8f0;
	--nuvu-warn-bg: #fdf4e0;
	--nuvu-warn-border: #e8a54b;
	--nuvu-warn-icon: #d97706;
	--nuvu-radius: 12px;
	--nuvu-radius-sm: 8px;
	--nuvu-shadow: 0 8px 30px rgba(11, 29, 54, 0.08);
	--nuvu-font-sans: "Outfit", system-ui, sans-serif;
	--nuvu-font-serif: "Cormorant Garamond", Georgia, serif;
	--nuvu-font-mono: "JetBrains Mono", ui-monospace, monospace;
	--nuvu-container: 1120px;
	--nuvu-header-h: 72px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--nuvu-font-sans);
	font-weight: 400;
	color: var(--nuvu-text);
	background: var(--nuvu-white);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--nuvu-blue);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button,
input {
	font: inherit;
}

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

.nuvu-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--nuvu-navy);
	color: var(--nuvu-white);
}

.nuvu-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.nuvu-container {
	width: min(100% - 2rem, var(--nuvu-container));
	margin-inline: auto;
}

.nuvu-main {
	min-height: 50vh;
}

/* Announcement */
.nuvu-announce {
	background: var(--nuvu-navy);
	color: var(--nuvu-white);
	text-align: center;
	padding: 0.55rem 1rem;
}

.nuvu-announce__text {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nuvu-announce__sep {
	margin: 0 0.55rem;
	opacity: 0.7;
}

/* Header */
.nuvu-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--nuvu-border);
}

.nuvu-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--nuvu-header-h);
}

.nuvu-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	text-decoration: none;
}

.nuvu-logo img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
}

.nuvu-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.nuvu-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nuvu-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	color: var(--nuvu-text);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.nuvu-nav__link:hover {
	background: var(--nuvu-blue-soft);
	color: var(--nuvu-blue);
	text-decoration: none;
}

.nuvu-nav__link.is-active {
	background: var(--nuvu-blue-soft);
	color: var(--nuvu-blue);
}

.nuvu-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--nuvu-navy);
	text-decoration: none;
	flex: 0 0 auto;
}

.nuvu-cart__badge {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--nuvu-blue);
	color: var(--nuvu-white);
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
}

.nuvu-nav-toggle {
	display: none;
	margin-left: auto;
	width: 42px;
	height: 42px;
	border: 1px solid var(--nuvu-border);
	border-radius: 8px;
	background: var(--nuvu-white);
	cursor: pointer;
}

.nuvu-nav-toggle__bars,
.nuvu-nav-toggle__bars::before,
.nuvu-nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--nuvu-navy);
	border-radius: 2px;
	position: relative;
}

.nuvu-nav-toggle__bars::before,
.nuvu-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nuvu-nav-toggle__bars::before {
	top: -6px;
}

.nuvu-nav-toggle__bars::after {
	top: 6px;
}

/* Hero */
.nuvu-hero {
	background: linear-gradient(160deg, var(--nuvu-navy) 0%, var(--nuvu-navy-mid) 55%, var(--nuvu-navy-deep) 100%);
	color: var(--nuvu-white);
	padding: 3.5rem 0 3.75rem;
}

.nuvu-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nuvu-ice);
}

.nuvu-hero__title {
	margin: 0 0 0.85rem;
	font-family: var(--nuvu-font-serif);
	font-size: clamp(2.25rem, 5vw, 3.4rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.nuvu-hero__sub {
	margin: 0;
	max-width: 42rem;
	font-size: 1.05rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.82);
}

/* Buttons */
.nuvu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	background: var(--nuvu-navy);
	color: var(--nuvu-white);
	font-weight: 600;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.nuvu-btn:hover {
	background: var(--nuvu-navy-mid);
	text-decoration: none;
	color: var(--nuvu-white);
}

/* Stub pages */
.nuvu-stub {
	padding: 5rem 0 6rem;
	background:
		radial-gradient(ellipse at top, rgba(31, 111, 235, 0.08), transparent 55%),
		var(--nuvu-bg);
}

.nuvu-stub__inner {
	text-align: center;
	max-width: 36rem;
}

.nuvu-stub__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nuvu-blue);
}

.nuvu-stub__title {
	margin: 0 0 0.75rem;
	font-family: var(--nuvu-font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--nuvu-navy);
}

.nuvu-stub__text {
	margin: 0 0 1.5rem;
	color: var(--nuvu-muted);
}

/* Newsletter */
.nuvu-newsletter {
	background: linear-gradient(135deg, var(--nuvu-navy) 0%, var(--nuvu-navy-mid) 100%);
	color: var(--nuvu-white);
	padding: 3.25rem 0;
}

.nuvu-newsletter__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
	align-items: center;
}

.nuvu-newsletter__title {
	margin: 0 0 0.6rem;
	font-family: var(--nuvu-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 600;
}

.nuvu-newsletter__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 300;
}

.nuvu-newsletter__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.65rem;
	align-items: start;
}

.nuvu-newsletter__input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--nuvu-radius-sm);
	background: rgba(255, 255, 255, 0.08);
	color: var(--nuvu-white);
	outline: none;
}

.nuvu-newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.nuvu-newsletter__input:focus {
	border-color: var(--nuvu-ice);
	background: rgba(255, 255, 255, 0.12);
}

.nuvu-newsletter__btn {
	padding: 0.85rem 1.25rem;
	border: 0;
	border-radius: var(--nuvu-radius-sm);
	background: var(--nuvu-white);
	color: var(--nuvu-navy);
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.nuvu-newsletter__btn:hover {
	background: var(--nuvu-ice);
}

.nuvu-newsletter__btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.nuvu-newsletter__msg {
	grid-column: 1 / -1;
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
}

.nuvu-newsletter__msg.is-success {
	color: #bbf7d0;
}

.nuvu-newsletter__msg.is-error {
	color: #fecaca;
}

/* Footer */
.nuvu-footer {
	background: var(--nuvu-navy-deep);
	color: rgba(255, 255, 255, 0.78);
	padding: 3.5rem 0 2rem;
}

.nuvu-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nuvu-footer__logo img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1rem;
}

.nuvu-footer__blurb {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
}

.nuvu-footer__heading {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nuvu-white);
}

.nuvu-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nuvu-footer__list li + li {
	margin-top: 0.55rem;
}

.nuvu-footer__list a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	text-decoration: none;
}

.nuvu-footer__list a:hover {
	color: var(--nuvu-white);
	text-decoration: underline;
}

.nuvu-footer__list--contact li {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.72);
}

.nuvu-footer__legal {
	padding-top: 1.75rem;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
}

.nuvu-footer__legal p {
	margin: 0 0 0.85rem;
}

.nuvu-footer__copy {
	color: rgba(255, 255, 255, 0.75) !important;
}

.nuvu-footer__disclaimer {
	font-size: 0.75rem !important;
	line-height: 1.6;
	max-width: 70rem;
}

.nuvu-calc-page {
	background: var(--nuvu-bg);
	padding: 2rem 0 3.5rem;
}

.nuvu-page__content {
	max-width: 100%;
}

/* Legal pages (Elementor-ready content) */
.nuvu-legal {
	background: var(--nuvu-bg);
	padding: 2rem 0 3.5rem;
}

.nuvu-legal__content {
	max-width: 48rem;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--nuvu-border);
	border-radius: var(--nuvu-radius);
	box-shadow: var(--nuvu-shadow);
	padding: 2rem 2.1rem;
	color: #334155;
	line-height: 1.7;
}

.nuvu-legal__content h2 {
	margin: 1.75rem 0 0.65rem;
	font-family: var(--nuvu-font-serif);
	font-size: 1.45rem;
	color: var(--nuvu-navy);
}

.nuvu-legal__content h3 {
	margin: 1.2rem 0 0.45rem;
	font-size: 1.05rem;
	color: var(--nuvu-navy);
}

.nuvu-legal__content p,
.nuvu-legal__content li {
	font-size: 0.95rem;
}

.nuvu-legal__content ul,
.nuvu-legal__content ol {
	padding-left: 1.25rem;
}

.nuvu-legal__content a {
	color: var(--nuvu-blue);
}

.nuvu-legal__updated {
	color: var(--nuvu-muted);
	margin-top: 0;
}

.nuvu-legal__alert {
	padding: 1rem 1.1rem;
	background: var(--nuvu-warn-bg);
	border: 1px solid var(--nuvu-warn-border);
	border-radius: var(--nuvu-radius-sm);
	color: #7c4a12;
	margin: 1rem 0 1.5rem;
}

.nuvu-legal__alert p {
	margin: 0;
}

.nuvu-legal__alert p + p {
	margin-top: 0.55rem;
}

/* Responsive */
@media (max-width: 980px) {
	.nuvu-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.nuvu-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: calc(var(--nuvu-header-h) + 2.1rem);
		background: var(--nuvu-white);
		border-bottom: 1px solid var(--nuvu-border);
		padding: 0.75rem 1rem 1rem;
		justify-content: stretch;
	}

	.nuvu-header.is-open .nuvu-nav {
		display: block;
	}

	.nuvu-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.nuvu-nav__link {
		justify-content: flex-start;
		border-radius: 8px;
		padding: 0.7rem 0.85rem;
	}

	.nuvu-header {
		position: sticky;
	}

	.nuvu-header__inner {
		position: relative;
	}

	.nuvu-newsletter__inner,
	.nuvu-footer__grid {
		grid-template-columns: 1fr;
	}

	.nuvu-newsletter__form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nuvu-announce__text {
		font-size: 0.62rem;
		letter-spacing: 0.03em;
	}

	.nuvu-logo img {
		width: 44px;
		height: 44px;
	}

	.nuvu-hero {
		padding: 2.5rem 0 2.75rem;
	}
}
