/* =========================================================
   NevaSolo Standard Page Layout
   File: assets/css/page.css
   Applies to normal WordPress pages only
========================================================= */

body.page:not(.home) {
	background: #f5f7fb;
}

/* Main page shell */
body.page:not(.home) .neva-standard-page {
	background: #f5f7fb;
	padding: 0 0 90px;
}

/* Remove old spacing from previous page layout */
body.page:not(.home) #primary.site-main {
	padding: 0;
	background: #f5f7fb;
}

/* Shared container inside standard pages */
body.page:not(.home) .neva-standard-page .container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* =========================================================
   PAGE HERO
========================================================= */

body.page:not(.home) .neva-page-hero {
	padding: 108px 20px 34px;
	background: linear-gradient(135deg, #f7f9ff 0%, #eef4ff 100%);
	border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

body.page:not(.home) .neva-page-hero__inner {
	max-width: 980px;
	margin: 0 auto;
}

body.page:not(.home) .neva-page-title {
	margin: 0;
	font-size: clamp(42px, 5vw, 64px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #071433;
}

body.page:not(.home) .neva-page-intro {
	max-width: 760px;
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 1.65;
	color: #475467;
}

/* =========================================================
   CONTENT CARD
========================================================= */

body.page:not(.home) .neva-page-content-section {
	padding: 34px 20px 0;
	background: #f5f7fb;
}

body.page:not(.home) .neva-page-card {
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(34px, 5vw, 64px);
	border-radius: 28px;
	background: #ffffff;
	border: 1px solid rgba(16, 24, 40, 0.08);
	box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
	box-sizing: border-box;
	overflow: hidden;
}

body.page:not(.home) .neva-page-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.75;
	color: #344054;
}

/* Make first actual content start cleanly */
body.page:not(.home) .neva-page-content > *:first-child {
	margin-top: 0;
}

body.page:not(.home) .neva-page-content > *:last-child {
	margin-bottom: 0;
}

/* =========================================================
   REMOVE DUPLICATE EDITOR TITLE / TOP SPACER / TOP LINE
   The template already prints the page title.
========================================================= */

body.page:not(.home) .neva-page-content > h1:first-child {
	display: none !important;
}

body.page:not(.home) .neva-page-content > h1:first-child + hr,
body.page:not(.home) .neva-page-content > h1:first-child + .wp-block-separator,
body.page:not(.home) .neva-page-content > h1:first-child + .wp-block-spacer,
body.page:not(.home) .neva-page-content > hr:first-child,
body.page:not(.home) .neva-page-content > .wp-block-separator:first-child,
body.page:not(.home) .neva-page-content > .wp-block-spacer:first-child {
	display: none !important;
}

/* Remove heading top-border when heading follows a hidden title/separator */
body.page:not(.home) .neva-page-content > h1:first-child + h2,
body.page:not(.home) .neva-page-content > h1:first-child + h3,
body.page:not(.home) .neva-page-content > h1:first-child + hr + h2,
body.page:not(.home) .neva-page-content > h1:first-child + hr + h3,
body.page:not(.home) .neva-page-content > h1:first-child + .wp-block-separator + h2,
body.page:not(.home) .neva-page-content > h1:first-child + .wp-block-separator + h3,
body.page:not(.home) .neva-page-content > h1:first-child + .wp-block-spacer + h2,
body.page:not(.home) .neva-page-content > h1:first-child + .wp-block-spacer + h3,
body.page:not(.home) .neva-page-content > hr:first-child + h2,
body.page:not(.home) .neva-page-content > hr:first-child + h3,
body.page:not(.home) .neva-page-content > .wp-block-separator:first-child + h2,
body.page:not(.home) .neva-page-content > .wp-block-separator:first-child + h3,
body.page:not(.home) .neva-page-content > .wp-block-spacer:first-child + h2,
body.page:not(.home) .neva-page-content > .wp-block-spacer:first-child + h3 {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

body.page:not(.home) .neva-page-content p {
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.75;
	color: #344054;
}

body.page:not(.home) .neva-page-content h2 {
	margin: 56px 0 18px;
	padding-top: 36px;
	border-top: 1px solid rgba(16, 24, 40, 0.12);
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #071433;
}

body.page:not(.home) .neva-page-content h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

body.page:not(.home) .neva-page-content h3 {
	margin: 34px 0 14px;
	font-size: clamp(23px, 2vw, 29px);
	line-height: 1.25;
	font-weight: 800;
	color: #101828;
}

body.page:not(.home) .neva-page-content h4 {
	margin: 28px 0 12px;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 800;
	color: #101828;
}

body.page:not(.home) .neva-page-content ul,
body.page:not(.home) .neva-page-content ol {
	margin: 0 0 26px;
	padding-left: 1.35rem;
}

body.page:not(.home) .neva-page-content li {
	margin-bottom: 10px;
	font-size: 17px;
	line-height: 1.75;
	color: #344054;
}

body.page:not(.home) .neva-page-content li::marker {
	color: #3158ff;
}

body.page:not(.home) .neva-page-content a {
	color: #3158ff;
	font-weight: 700;
	text-decoration: none;
}

body.page:not(.home) .neva-page-content a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.page:not(.home) .neva-page-content strong {
	color: #101828;
	font-weight: 800;
}

/* Dividers inside content, excluding hidden first dividers above */
body.page:not(.home) .neva-page-content hr,
body.page:not(.home) .neva-page-content .wp-block-separator {
	margin: 44px 0;
	border: 0;
	border-top: 1px solid rgba(16, 24, 40, 0.12);
}

/* Images */
body.page:not(.home) .neva-page-content img,
body.page:not(.home) .neva-page-content figure img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

body.page:not(.home) .neva-page-content figure {
	margin: 32px 0;
}

/* Tables */
body.page:not(.home) .neva-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0;
	font-size: 15px;
}

body.page:not(.home) .neva-page-content th,
body.page:not(.home) .neva-page-content td {
	border: 1px solid #d7dce7;
	padding: 12px;
	text-align: left;
	vertical-align: top;
}

body.page:not(.home) .neva-page-content th {
	background: #f5f7fb;
	color: #101828;
	font-weight: 800;
}

/* =========================================================
   BUTTON LAYOUT ONLY
   Actual button styling should stay in global CSS.
========================================================= */

body.page:not(.home) .neva-page-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 42px auto 30px;
}

/* =========================================================
   FORMS
========================================================= */

body.page:not(.home) .neva-page-content form:not(.search-form) {
	width: min(100%, 600px);
	margin: 44px auto;
	padding: 36px;
	border-radius: 24px;
	background: #e8f7f0;
	border: 1px solid rgba(16, 24, 40, 0.08);
	box-shadow: 0 22px 56px rgba(16, 24, 40, 0.10);
	box-sizing: border-box;
}

body.page:not(.home) .neva-page-content form p {
	max-width: 100%;
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.6;
}

body.page:not(.home) .neva-page-content label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 800;
	color: #101828;
}

body.page:not(.home) .neva-page-content input[type="text"],
body.page:not(.home) .neva-page-content input[type="email"],
body.page:not(.home) .neva-page-content input[type="tel"],
body.page:not(.home) .neva-page-content input[type="url"],
body.page:not(.home) .neva-page-content textarea,
body.page:not(.home) .neva-page-content select {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #cfd6e4;
	background: #ffffff;
	color: #101828;
	font-size: 16px;
	box-sizing: border-box;
}

body.page:not(.home) .neva-page-content textarea {
	min-height: 180px;
	resize: vertical;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
	body.page:not(.home) .neva-page-hero {
		padding: 96px 16px 28px;
	}

	body.page:not(.home) .neva-standard-page .container {
		padding-left: 0;
		padding-right: 0;
	}

	body.page:not(.home) .neva-page-hero__inner {
		padding-left: 14px;
		padding-right: 14px;
	}

	body.page:not(.home) .neva-page-title {
		font-size: 38px;
	}

	body.page:not(.home) .neva-page-content-section {
		padding: 22px 14px 0;
	}

	body.page:not(.home) .neva-page-card {
		padding: 28px 20px;
		border-radius: 22px;
	}

	body.page:not(.home) .neva-page-content {
		max-width: 100%;
	}

	body.page:not(.home) .neva-page-content p,
	body.page:not(.home) .neva-page-content li {
		font-size: 16px;
	}

	body.page:not(.home) .neva-page-content h2 {
		margin-top: 42px;
		padding-top: 30px;
		font-size: 28px;
	}

	body.page:not(.home) .neva-page-content h3 {
		font-size: 22px;
	}

	body.page:not(.home) .neva-page-content .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	body.page:not(.home) .neva-page-content form:not(.search-form) {
		padding: 24px 18px;
		border-radius: 20px;
	}
}