/*
Theme Name: Optio Venture Partners
Theme URI: https://optiopartners.com
Author: Optio Venture Partners
Description: Institutional site for Optio Venture Partners: defence procurement, commercial representation and sovereign capability. Built from the approved website draft (October 2026): 44 pages, sticky navigation with the "What We Do" mega-menu and dropdowns, breadcrumb trail, scrolling fact strap, self-hosted Inter font and no third-party requests.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary. All rights reserved
Text Domain: optio-vp
*/

/* =========================================================================
   Base: carried over from the design's own stylesheet
   ========================================================================= */

html,
body {
	margin: 0;
	padding: 0;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

* {
	box-sizing: border-box;
}

body {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #10233d;
	letter-spacing: -0.005em;
}

img {
	max-width: 100%;
}

button {
	font-family: inherit;
	cursor: pointer;
}

select {
	font-family: inherit;
}

a {
	color: #3f73ad;
	text-decoration: none;
}

a:hover {
	color: #10233d;
	text-decoration: underline;
}

::selection {
	background: #5c91cc;
	color: #fff;
}

:focus-visible {
	outline: 2px solid #5c91cc;
	outline-offset: 2px;
}

/* =========================================================================
   Motion
   ========================================================================= */

@keyframes ovpTicker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@keyframes ovpKb {
	from { transform: scale(1); }
	to   { transform: scale(1.1); }
}

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-ovp-ticker],
	[data-ovp-kb],
	[data-ovp-veil] {
		animation: none !important;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* =========================================================================
   Links that were buttons in the design
   ========================================================================= */

a.ovp-btn {
	display: inline-block;
	text-decoration: none;
	font-family: inherit;
	cursor: pointer;
	transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1),
		color 200ms cubic-bezier(0.4, 0, 0.2, 1),
		border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

a.ovp-btn:hover {
	text-decoration: none;
}

/* The design used flex/column buttons for the big route cards. */
a.ovp-btn[style*="display:flex"] {
	display: flex;
}

/* =========================================================================
   Header dropdowns
   ========================================================================= */

/* The design carries display:flex inline on each panel, so the closed state
   has to outrank it. */
.ovp-dd-panel {
	display: none !important;
}

.ovp-dd:hover > .ovp-dd-panel,
.ovp-dd:focus-within > .ovp-dd-panel,
.ovp-dd.is-open > .ovp-dd-panel {
	display: flex !important;
}

.ovp-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 12px 20px;
	background: #10233d;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
}

.ovp-skip:focus {
	left: 0;
	color: #ffffff;
}

/* =========================================================================
   Photography slots awaiting artwork
   ========================================================================= */

.ovp-slot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	width: 100%;
	height: 100%;
	padding: 24px;
	background:
		repeating-linear-gradient(
			135deg,
			#f5f7fa,
			#f5f7fa 12px,
			#eef2f7 12px,
			#eef2f7 24px
		);
	border: 1px solid #e5e5e5;
}

.ovp-slot-label {
	max-width: 34ch;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #5b6472;
	text-align: center;
}

/* =========================================================================
   Questionnaire and requirement form
   ========================================================================= */

.ovp-qn-panel[hidden],
.ovp-qn-track[hidden],
.ovp-sf-sent[hidden] {
	display: none;
}

/* =========================================================================
   Wordmark
   ========================================================================= */

/* Shown at its natural proportions; the SVG canvas is trimmed to the artwork. */
.ovp-logo {
	display: block;
	height: auto;
	max-width: 100%;
}

/* =========================================================================
   Mobile menu
   ========================================================================= */

/* Hidden on desktop; the nav lays out inline as the design intends. */
.ovp-menu-toggle {
	display: none;
	margin-left: auto;
	padding: 10px 16px;
	background: none;
	border: 1px solid #10233d;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #10233d;
}

.ovp-menu-toggle[aria-expanded="true"] {
	background: #10233d;
	color: #ffffff;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 860px) {
	.ovp-menu-toggle {
		display: inline-block;
	}

	/* Leaves room for the Menu button beside it on a phone. */
	header .ovp-logo {
		width: 136px !important;
	}

	/* Collapsed until the Menu button opens it. */
	#ovp-nav {
		display: none !important;
		width: 100%;
		margin-left: 0 !important;
		flex-direction: column;
		align-items: stretch !important;
		padding-top: 8px;
		border-top: 1px solid #e5e5e5;
	}

	#ovp-nav.is-open {
		display: flex !important;
	}

	#ovp-nav > .ovp-dd > button,
	#ovp-nav > a {
		width: 100%;
		text-align: left;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Touch devices get an explicit tap-to-open panel, not hover. */
	.ovp-dd-panel,
	.ovp-dd:hover > .ovp-dd-panel {
		position: static !important;
		display: none !important;
		min-width: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		padding-left: 12px !important;
	}

	.ovp-dd.is-open > .ovp-dd-panel {
		display: flex !important;
	}

	.ovp-dd-mega {
		flex-direction: column !important;
	}

	.ovp-dd-col {
		min-width: 0 !important;
		border-left: 0 !important;
	}

	.ovp-dd {
		width: 100%;
	}

	/* The scrolling strap is decorative; on a phone it steals a line. */
	[data-ovp-ticker] {
		animation-duration: 90s;
	}
}

@media print {
	header,
	footer,
	.ovp-skip,
	[data-ovp-ticker] {
		display: none !important;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}
