/*
Theme Name: Maveros
Theme URI: https://maveros.io/
Author: Maveros Technology Partners
Description: A clean, single-page business theme for Maveros Technology Partners. Carries forward the Venture palette (steel-blue accent, warm neutrals, Roboto Slab headings) with a modernized card-based layout. No plugin dependencies — the contact form ships with the theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maveros
Tags: business, one-column, custom-menu, featured-images, full-width-template, responsive-layout
*/

/* ==========================================================================
   1. Design tokens
   Palette inherited from the previous Venture theme so the brand reads
   continuously; type and spacing modernized.
   ========================================================================== */

:root {
	--mv-ink:            #222221;
	--mv-body:           #424242;
	--mv-muted:          #6e7273;
	--mv-line:           #e2e2e4;
	--mv-wash:           #f6f7f8;
	--mv-white:          #ffffff;

	--mv-accent:         #277da9;
	--mv-accent-dark:    #144f6d;
	--mv-accent-light:   #0da4d3;

	--mv-font-head: "Roboto Slab", Georgia, "Times New Roman", serif;
	--mv-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--mv-content:   760px;   /* comfortable measure for prose */
	--mv-wide:      1140px;  /* grids and hero */
	--mv-gutter:    clamp(1.25rem, 5vw, 2.5rem);
	--mv-section:   clamp(3.5rem, 9vw, 6.5rem);

	--mv-radius:    10px;
	--mv-shadow:    0 1px 2px rgba(34, 34, 33, .04), 0 8px 24px rgba(34, 34, 33, .06);
	--mv-shadow-lg: 0 2px 4px rgba(34, 34, 33, .05), 0 16px 40px rgba(34, 34, 33, .10);

	--mv-header-h:  72px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	/* keep anchored sections clear of the sticky header */
	scroll-padding-top: calc(var(--mv-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mv-white);
	color: var(--mv-body);
	font-family: var(--mv-font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--mv-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--mv-accent); }

:focus-visible {
	outline: 3px solid var(--mv-accent-light);
	outline-offset: 2px;
	border-radius: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--mv-font-head);
	color: var(--mv-ink);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 .6em;
}

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

.skip-link:focus {
	position: fixed; top: .5rem; left: .5rem;
	z-index: 999;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	background: var(--mv-white);
	color: var(--mv-accent-dark);
	padding: .75rem 1.25rem;
	border-radius: var(--mv-radius);
	box-shadow: var(--mv-shadow-lg);
	font-weight: 600;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.mv-wrap {
	width: 100%;
	max-width: var(--mv-wide);
	margin-inline: auto;
	padding-inline: var(--mv-gutter);
}

/* ==========================================================================
   4. Site header
   Transparent over the hero, solid once scrolled (see theme.js).
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--mv-header-h);
	display: flex;
	align-items: center;
	transition: background-color .25s ease, box-shadow .25s ease;
	background: transparent;
}

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

.site-title {
	font-family: var(--mv-font-head);
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	margin: 0;
	line-height: 1.1;
}

.site-title a { color: var(--mv-white); text-decoration: none; }
.site-title a:hover { color: var(--mv-white); opacity: .82; }

.site-header__nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }

.site-header__nav a {
	color: rgba(255, 255, 255, .92);
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 500;
}
.site-header__nav a:hover { color: var(--mv-white); }

.site-header__phone { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }

/* Solid state — toggled by adding .is-stuck */
.site-header.is-stuck {
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	box-shadow: 0 1px 0 var(--mv-line), 0 4px 20px rgba(34, 34, 33, .06);
}
.site-header.is-stuck .site-title a { color: var(--mv-ink); }
.site-header.is-stuck .site-header__nav a { color: var(--mv-body); }
.site-header.is-stuck .site-header__nav a:hover { color: var(--mv-accent-dark); }

/* Pages without a hero always get the solid treatment */
.no-hero .site-header { position: sticky; background: rgba(255,255,255,.94); box-shadow: 0 1px 0 var(--mv-line); }
.no-hero .site-title a { color: var(--mv-ink); }
.no-hero .site-header__nav a { color: var(--mv-body); }

@media (max-width: 34em) {
	.site-header__nav .mv-nav-link { display: none; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.mv-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(30rem, 78vh, 44rem);
	padding: calc(var(--mv-header-h) + 3rem) 0 4rem;
	background-color: var(--mv-ink);
	background-image:
		linear-gradient(180deg, rgba(20, 32, 40, .74) 0%, rgba(20, 32, 40, .55) 45%, rgba(20, 32, 40, .80) 100%),
		url("assets/images/hero-1600.jpg");
	background-size: cover;
	background-position: center 55%;
	color: var(--mv-white);
	text-align: center;
}

@media (min-width: 1200px) {
	.mv-hero {
		background-image:
			linear-gradient(180deg, rgba(20, 32, 40, .74) 0%, rgba(20, 32, 40, .55) 45%, rgba(20, 32, 40, .80) 100%),
			url("assets/images/hero-2400.jpg");
	}
}
@media (max-width: 640px) {
	.mv-hero {
		background-image:
			linear-gradient(180deg, rgba(20, 32, 40, .74) 0%, rgba(20, 32, 40, .58) 45%, rgba(20, 32, 40, .82) 100%),
			url("assets/images/hero-900.jpg");
	}
}

.mv-hero__inner { max-width: 46rem; margin-inline: auto; }

.mv-hero__eyebrow {
	font-family: var(--mv-font-body);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
	margin: 0 0 1.25rem;
}

.mv-hero h1 {
	color: var(--mv-white);
	font-size: clamp(2.25rem, 6.2vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 0 0 1.25rem;
	text-wrap: balance;
}

.mv-hero__lede {
	font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .90);
	margin: 0 auto 2.5rem;
	max-width: 34rem;
	text-wrap: pretty;
}

.mv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .875rem;
	justify-content: center;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.mv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .875rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--mv-radius);
	font-family: var(--mv-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.mv-btn:hover { transform: translateY(-1px); }
.mv-btn:active { transform: translateY(0); }

.mv-btn--primary { background: var(--mv-accent); color: var(--mv-white); }
.mv-btn--primary:hover { background: var(--mv-accent-dark); color: var(--mv-white); }

.mv-btn--ghost {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .45);
	color: var(--mv-white);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.mv-btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: var(--mv-white); color: var(--mv-white); }

/* ==========================================================================
   7. Content stream
   The page content is a flat run of h2 / p / ul / ol. Everything below shapes
   that stream into sections without requiring special block markup, so the
   page stays easy to edit in the block editor.
   ========================================================================== */

.site-main { padding-block: var(--mv-section); }

/* The content area is the wide container. Prose inside it is capped to a
   readable measure and left-aligned, so headings, paragraphs and card grids
   all share the same left edge. No 100vw tricks — those overflow horizontally
   whenever a scrollbar is visible. */
.entry-content {
	max-width: var(--mv-wide);
	margin-inline: auto;
	padding-inline: var(--mv-gutter);
}

.entry-content > * { margin-block: 0 1.25rem; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content > p {
	max-width: var(--mv-content);
	margin-right: auto;
	text-wrap: pretty;
}

/* Section headings get an accent rule and generous space above. */
.entry-content > h2 {
	font-size: clamp(1.75rem, 3.6vw, 2.375rem);
	margin-top: var(--mv-section);
	padding-top: 0;
	position: relative;
	scroll-margin-top: calc(var(--mv-header-h) + 2rem);
}

.entry-content > h2::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: var(--mv-accent);
	margin-bottom: 1.25rem;
}

.entry-content > h2:first-child { margin-top: 0; }

/* The paragraph directly after the first heading reads as a lede. */
.entry-content > h2:first-child + p {
	font-size: 1.1875rem;
	line-height: 1.7;
	color: var(--mv-ink);
}

/* --- "What We Do": the unordered list becomes a card grid ---------------- */

.entry-content > ul {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	/* min() keeps the track from claiming a floor wider than the container,
	   which is what makes auto-fit grids overflow on narrow screens. */
	grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr));
}

.entry-content > ul > li {
	background: var(--mv-white);
	border: 1px solid var(--mv-line);
	border-radius: var(--mv-radius);
	padding: 1.75rem 1.5rem;
	font-size: .9688rem;
	line-height: 1.65;
	color: var(--mv-muted);
	position: relative;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.entry-content > ul > li::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--mv-accent), var(--mv-accent-light));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .28s ease;
}

.entry-content > ul > li:hover {
	border-color: transparent;
	box-shadow: var(--mv-shadow-lg);
	transform: translateY(-3px);
}
.entry-content > ul > li:hover::before { transform: scaleX(1); }

/* The bold lead-in becomes the card title. */
.entry-content > ul > li > strong {
	display: block;
	font-family: var(--mv-font-head);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mv-ink);
	margin-bottom: .625rem;
	letter-spacing: -0.01em;
}

/* --- "Our Core Values": the ordered list becomes numbered panels --------- */

.entry-content > ol {
	list-style: none;
	counter-reset: mv-value;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.entry-content > ol > li {
	counter-increment: mv-value;
	background: var(--mv-wash);
	border-radius: var(--mv-radius);
	padding: 1.75rem 1.75rem 1.75rem 4.5rem;
	position: relative;
	font-size: .9688rem;
	line-height: 1.65;
	color: var(--mv-muted);
}

.entry-content > ol > li::before {
	content: counter(mv-value, decimal-leading-zero);
	position: absolute;
	top: 1.65rem;
	left: 1.75rem;
	font-family: var(--mv-font-head);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1;
	color: var(--mv-accent);
	opacity: .55;
}

.entry-content > ol > li > strong {
	display: block;
	font-family: var(--mv-font-head);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mv-ink);
	margin-bottom: .5rem;
	letter-spacing: -0.01em;
}

@media (max-width: 30em) {
	.entry-content > ol > li { padding: 1.5rem 1.25rem 1.5rem 1.25rem; }
	.entry-content > ol > li::before { position: static; display: block; margin-bottom: .5rem; }
}

/* ==========================================================================
   8. Contact form  (rendered by the [maveros_contact] shortcode)
   ========================================================================== */

.mv-contact {
	margin-top: 2.5rem;
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	align-items: start;
}

@media (max-width: 52em) {
	.mv-contact { grid-template-columns: 1fr; gap: 2rem; }
}

.mv-contact__aside {
	background: var(--mv-wash);
	border-radius: var(--mv-radius);
	padding: 2rem 1.75rem;
}

.mv-contact__label {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mv-muted);
	margin: 0 0 .5rem;
}

.mv-contact__phone {
	font-family: var(--mv-font-head);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 600;
	color: var(--mv-ink);
	text-decoration: none;
	display: inline-block;
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
}
.mv-contact__phone:hover { color: var(--mv-accent-dark); }

.mv-contact__note { font-size: .9375rem; color: var(--mv-muted); margin: 0; }

.mv-form { display: grid; gap: 1.125rem; }

.mv-field { display: grid; gap: .4375rem; }

.mv-field label {
	font-size: .875rem;
	font-weight: 600;
	color: var(--mv-ink);
}

.mv-field .mv-req { color: var(--mv-accent); }

.mv-field input,
.mv-field textarea {
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--mv-ink);
	background: var(--mv-white);
	border: 1px solid var(--mv-line);
	border-radius: var(--mv-radius);
	padding: .75rem .875rem;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.mv-field input:focus,
.mv-field textarea:focus {
	outline: none;
	border-color: var(--mv-accent);
	box-shadow: 0 0 0 3px rgba(39, 125, 169, .16);
}

.mv-field textarea { resize: vertical; min-height: 9.5rem; }

/* honeypot — hidden from people, visible to naive bots */
.mv-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.mv-form__actions { margin-top: .25rem; }

.mv-notice {
	border-radius: var(--mv-radius);
	padding: .9375rem 1.125rem;
	font-size: .9375rem;
	margin-bottom: 1.25rem;
	border: 1px solid transparent;
}
.mv-notice--ok  { background: #eef7f1; border-color: #cbe6d6; color: #1d5e39; }
.mv-notice--err { background: #fdf0ef; border-color: #f3d2ce; color: #8f2c22; }
.mv-notice ul { margin: .5rem 0 0; padding-left: 1.25rem; }

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
	background: var(--mv-ink);
	color: rgba(255, 255, 255, .72);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	margin-top: var(--mv-section);
	font-size: .9375rem;
}

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

.site-footer__brand {
	font-family: var(--mv-font-head);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--mv-white);
	margin: 0 0 .25rem;
}

.site-footer__tag { margin: 0; color: rgba(255, 255, 255, .58); font-size: .875rem; }

.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--mv-white); text-decoration: underline; }

.site-footer__contact { text-align: right; }
@media (max-width: 40em) { .site-footer__contact { text-align: left; } }

.site-footer__phone {
	font-family: var(--mv-font-head);
	font-size: 1.1875rem;
	font-weight: 600;
	color: var(--mv-white);
	display: inline-block;
	margin-bottom: .25rem;
}

.site-footer__legal {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .8125rem;
	color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   10. Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.entry-content > ul > li:hover { transform: none; }
	.mv-btn:hover { transform: none; }
}

@media print {
	.site-header, .mv-hero__actions, .mv-form, .site-footer { display: none !important; }
	body { color: #000; font-size: 11pt; }
	.entry-content > ul, .entry-content > ol, .mv-contact {
		width: auto; left: auto; transform: none; display: block; max-width: none;
	}
	.entry-content > ul > li, .entry-content > ol > li {
		break-inside: avoid; border: 0; background: none; padding: 0 0 .75rem;
	}
}
