/*
Theme Name: Orca
Description: Minimal theme for Orca Analytics Capital.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: orca
*/

:root {
	--orca-bg: #121212;
	--orca-header: #141414;
	--orca-footer: #0e0e0e;
	--orca-navy: #0a1a3f;
	--orca-red-light: #e0484f;
	--orca-text: #f5f5f5;
	--orca-muted: #d4d4d4;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

/* Smooth in-page jumps (e.g. Careers "View open positions"). */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background: var(--orca-bg);
	color: var(--orca-text);
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Main grows so the footer sits at the bottom of short pages. */
main {
	flex: 1 0 auto;
}

a {
	color: inherit;
	text-decoration: none;
}

/* Header */
.site-header {
	background: var(--orca-header);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 0 50px;
	height: 86px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 15px;
}

.site-logo {
	display: block;
	width: auto;
	height: 36px;
	flex-shrink: 0;
}

/* Visually hidden, but still read by screen readers as the home link's name. */
.site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 35px;
}

.site-nav a {
	color: var(--orca-muted);
	font-size: 16px;
	transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a {
	color: #fff;
}

/* Hero: stretches to fill the space between header and footer. */
.home-main {
	display: flex;
	flex-direction: column;
}

.hero {
	flex: 1 0 auto;
	flex-direction: column;
	background: radial-gradient(circle at center, var(--orca-navy) 0%, #050c1f 45%, #000 80%);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 326px;
	padding: 60px 24px;
	text-align: center;
}

.hero-logo {
	display: block;
	width: clamp(140px, 18vw, 220px);
	height: auto;
	margin: 0 auto 36px;
	opacity: 0.95;
}

.hero p {
	margin: 0 auto;
	max-width: 860px;
	font-size: clamp(26px, 3.2vw, 42px);
	line-height: 1.35;
	font-weight: 300;
	letter-spacing: -0.015em;
	text-wrap: balance;
	/* Bright at the top, cooling to steel blue: picks up the navy glow behind it. */
	color: #e8eef9;
	background: linear-gradient(180deg, #ffffff 0%, #c9d6ee 60%, #8fa6cf 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* Footer */
.site-footer {
	background: var(--orca-footer);
	padding: 32px 24px;
	text-align: center;
}

.site-footer p {
	margin: 0;
	color: #8f8f8f;
	font-size: 14px;
}

/* Generic pages: same navy glow as the homepage hero, centred behind the title. */
.page-main {
	background: radial-gradient(circle at 50% 0%, var(--orca-navy) 0%, #050c1f 40%, #000 75%);
}

.page-content {
	max-width: 720px;
	margin: 0 auto;
	padding: 72px 24px 96px;
}

.page-title {
	margin: 0 0 40px;
	text-align: center;
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #e8eef9;
}

.page-content a {
	color: #c9d6ee;
	text-decoration: underline;
}

.page-content a:hover {
	color: #fff;
}

/*
 * Formidable forms: dark navy look, kept in the theme so it doesn't depend on a
 * Formidable style (custom styles need Pro). Formidable builds its CSS from these
 * variables; `.frm_forms.with_frm_style` inside `.page-content` outranks any
 * style a form is set to, so the form can stay on the default "Formidable Style".
 */
.page-content .frm_forms.with_frm_style {
	--font: "Open Sans", sans-serif;
	--title-color: #e8eef9;
	--form-desc-color: #8a96ad;
	--label-color: #c9d6ee;
	--required-color: #8fa6cf;
	--description-color: #8a96ad;
	--check-label-color: #f5f7fc;
	--section-color: #e8eef9;
	--section-border-color: #2a3a5c;

	/* Fields */
	--field-font-size: 15px;
	--field-height: 46px;
	--line-height: 46px;
	--field-pad: 10px 14px;
	--border-radius: 6px;
	--text-color: #f5f7fc;
	--bg-color: #0a1226;
	--border-color: #2a3a5c;
	--bg-color-active: #0d1a38;
	--border-color-active: #8fa6cf;
	--text-color-error: #f5f7fc;
	--bg-color-error: #0a1226;
	--border-color-error: #ff6b72;
	--text-color-disabled: #8a96ad;
	--bg-color-disabled: #111827;
	--border-color-disabled: #2a3a5c;

	/* Submit button */
	--submit-font-size: 15px;
	--submit-weight: bold;
	--submit-padding: 12px 36px;
	--submit-border-radius: 6px;
	--submit-text-color: #0a1a3f;
	--submit-bg-color: #e8eef9;
	--submit-border-color: #e8eef9;
	--submit-hover-color: #000;
	--submit-hover-bg-color: #fff;
	--submit-hover-border-color: #fff;
	--submit-active-color: #0a1a3f;
	--submit-active-bg-color: #c9d6ee;
	--submit-active-border-color: #c9d6ee;

	/* Messages */
	--error-text: #ff9aa0;
	--error-bg: #2a0d12;
	--error-border: #ff6b72;
	--success-text-color: #c9d6ee;
	--success-bg-color: #0a1226;
	--success-border-color: #2a3a5c;
	--success-font-size: 16px;

	/* Pickers and toggles, if a form ever uses them */
	--toggle-on-color: #8fa6cf;
	--slider-color: #8fa6cf;
	--date-head-color: #fff;
	--date-head-bg-color: #0a1a3f;
	--date-band-color: #8fa6cf;
	--date-band-fill: rgba(143, 166, 207, 0.1);
}

/* Add space above captcha field */
#frm_field_7_container {
  padding-top: 7px;
}

/* Formidable writes these with fixed values rather than variables. */
.page-content .frm_forms.with_frm_style .frm_primary_label,
.page-content .frm_forms.with_frm_style .frm_description,
.page-content .frm_forms.with_frm_style input,
.page-content .frm_forms.with_frm_style textarea,
.page-content .frm_forms.with_frm_style select {
	font-family: var(--font);
}

.page-content .frm_forms.with_frm_style .frm_description {
	color: var(--description-color);
}

.page-content .frm_forms.with_frm_style .frm_error {
	color: var(--error-text);
}

.page-content .frm_forms.with_frm_style .form-field input:not([type=file]):not([type=range]):not([readonly]):focus,
.page-content .frm_forms.with_frm_style .form-field select:focus,
.page-content .frm_forms.with_frm_style .form-field textarea:focus {
	box-shadow: 0 0 5px 0 rgba(143, 166, 207, 0.6);
}

.page-content .frm_forms.with_frm_style input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset;
	-webkit-text-fill-color: var(--text-color);
}

.page-content .frm_forms.with_frm_style .frm_submit button,
.page-content .frm_forms.with_frm_style .frm_submit input[type=button],
.page-content .frm_forms.with_frm_style input[type=submit] {
	font-family: var(--font);
	font-size: var(--submit-font-size);
	font-weight: var(--submit-weight);
	padding: var(--submit-padding);
	border-radius: var(--submit-border-radius);
	color: var(--submit-text-color);
	background: var(--submit-bg-color);
	border-color: var(--submit-border-color);
	box-shadow: none;
}

.page-content .frm_forms.with_frm_style .frm_submit button:hover,
.page-content .frm_forms.with_frm_style .frm_submit input[type=button]:hover,
.page-content .frm_forms.with_frm_style input[type=submit]:hover {
	color: var(--submit-hover-color);
	background: var(--submit-hover-bg-color);
	border-color: var(--submit-hover-border-color);
}

.page-content .frm_forms.with_frm_style .frm_submit button:active,
.page-content .frm_forms.with_frm_style .frm_submit button:focus,
.page-content .frm_forms.with_frm_style input[type=submit]:active,
.page-content .frm_forms.with_frm_style input[type=submit]:focus {
	color: var(--submit-active-color);
	background: var(--submit-active-bg-color);
	border-color: var(--submit-active-border-color);
}

/* Formidable confirmation message (after a form is submitted). */
.page-content .frm_message {
	padding: 32px;
	text-align: center;
	line-height: 1.6;
}

.page-content .frm_message h2 {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 300;
	letter-spacing: -0.01em;
	color: #fff;
}

.page-content .frm_message p {
	margin: 0;
}

/* Careers page (page-careers.php). Sections are blocks with these class names. */
.careers-main > * {
	margin: 0;
}

.careers-eyebrow {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8fa6cf;
}

.careers-hero,
.careers-positions {
	max-width: 820px;
	margin: 0 auto;
	padding: 104px 24px 96px;
	text-align: center;
}

.careers-title,
.careers-heading {
	margin: 0 0 24px;
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}

.careers-title {
	font-size: clamp(38px, 5.5vw, 62px);
}

.careers-heading {
	font-size: clamp(32px, 4.2vw, 48px);
}

.careers-intro {
	max-width: 640px;
	margin: 0 auto 40px;
	font-size: 18px;
	line-height: 1.65;
	color: #c9d6ee;
}

.careers-hero .wp-block-buttons {
	justify-content: center;
}

.careers-button .wp-block-button__link {
	display: inline-block;
	padding: 14px 34px;
	border-radius: 6px;
	background: #e8eef9;
	color: #0a1a3f;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.careers-button .wp-block-button__link:hover,
.careers-button .wp-block-button__link:focus-visible {
	background: #fff;
	color: #000;
}

/* Team map ([orca_team_map] shortcode). */
.team-map-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px 104px;
}

.team-map {
	position: relative;
}

.team-map-svg {
	display: block;
	width: 100%;
	height: auto;
}

.team-map-dots {
	fill: none;
	stroke: #23345c;
	stroke-width: 3.6;
	stroke-linecap: round;
}

.team-map-routes path {
	fill: none;
	stroke: #8fa6cf;
	stroke-width: 1.4;
	stroke-dasharray: 4 6;
	opacity: 0.75;
	animation: team-route-flow 1.6s linear infinite;
}

@keyframes team-route-flow {
	to {
		stroke-dashoffset: 20;
	}
}

.team-pin {
	position: absolute;
	width: 0;
	height: 0;
}

/* The location marker: a white dot with a soft pulsing ring. */
.team-pin::before,
.team-pin::after {
	content: "";
	position: absolute;
	left: -5px;
	top: -5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
}

.team-pin::after {
	background: transparent;
	box-shadow: 0 0 0 0 rgba(143, 166, 207, 0.6);
	animation: team-pin-pulse 2.4s ease-out infinite;
}

@keyframes team-pin-pulse {
	to {
		box-shadow: 0 0 0 14px rgba(143, 166, 207, 0);
	}
}

.team-pin-label {
	position: absolute;
	left: 14px;
	top: 0;
	transform: translateY(-50%);
	padding: 4px 12px;
	border: 1px solid #2a3a5c;
	border-radius: 999px;
	background: rgba(10, 18, 38, 0.92);
	color: #e8eef9;
	font-size: 13px;
	line-height: 1.5;
	white-space: nowrap;
}

.team-pin--left .team-pin-label {
	left: auto;
	right: 14px;
}

/* On small screens the labels would overlap, so list the places under the map. */
.team-map-legend {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.team-map-legend li {
	padding: 4px 12px;
	border: 1px solid #2a3a5c;
	border-radius: 999px;
	background: rgba(10, 18, 38, 0.92);
	color: #e8eef9;
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.team-map-routes path,
	.team-pin::after {
		animation: none;
	}
}

/* "Why join us" band. */
.careers-why {
	padding: 104px 24px;
	background: linear-gradient(180deg, #0a1226 0%, #060b18 100%);
	border-top: 1px solid #1c2742;
	border-bottom: 1px solid #1c2742;
}

.careers-why-header {
	max-width: 780px;
	margin: 0 auto 72px;
	text-align: center;
}

.careers-why-header .careers-intro {
	margin-bottom: 0;
}

.careers-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 72px;
	max-width: 1000px;
	margin: 0 auto;
}

/* Classic themes wrap group contents in an inner div; let the benefits reach the grid. */
.careers-benefits > .wp-block-group__inner-container {
	display: contents;
}

.careers-benefit::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	border-radius: 50%;
	background-color: #e8eef9;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
}

.careers-benefit h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.careers-benefit p {
	margin: 0;
	color: #a9b6cf;
	line-height: 1.65;
}

/* Benefit icons: navy line icons inside the light circles. */
.careers-benefit--pay::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M17 6.5C17 4.6 14.8 3.5 12 3.5S7 4.6 7 6.5s2.2 2.8 5 3.5 5 1.6 5 3.5-2.2 3.5-5 3.5-5-1.4-5-3.3'/%3E%3C/svg%3E");
}

.careers-benefit--time::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a3f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}

.careers-benefit--impact::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a3f' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%230a1a3f'/%3E%3C/svg%3E");
}

.careers-benefit--flexible::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a3f' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

.careers-benefit--learning::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a3f' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h14v15H6a2 2 0 0 0-2 2 1.5 1.5 0 0 0 2 1.5h14'/%3E%3C/svg%3E");
}

.careers-benefit--team::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a3f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.3c2.1.7 3.5 2.8 3.5 5.7'/%3E%3C/svg%3E");
}

/* Open positions. */
.careers-positions .careers-intro {
	margin-bottom: 40px;
}

.careers-empty {
	max-width: 640px;
	margin: 0 auto;
	padding: 32px;
	border: 1px dashed #2a3a5c;
	border-radius: 8px;
	background: rgba(10, 18, 38, 0.6);
	color: #c9d6ee;
}

.careers-empty a {
	color: #fff;
}

/* Responsive */
@media (max-width: 700px) {
	.site-header {
		flex-wrap: wrap;
		row-gap: 10px;
		padding: 16px;
		height: auto;
	}

	.site-title {
		font-size: 17px;
	}

	.site-logo {
		height: 28px;
	}

	.site-nav ul {
		gap: 18px;
	}

	.site-nav a {
		font-size: 14px;
	}

	.hero {
		min-height: 260px;
		padding: 48px 16px;
	}

	.careers-hero,
	.careers-positions {
		padding: 72px 16px 64px;
	}

	.careers-why {
		padding: 72px 16px;
	}

	.team-map-section {
		padding: 0 16px 72px;
	}

	.team-pin-label {
		display: none;
	}

	.team-map-legend {
		display: flex;
	}

	.careers-why-header {
		margin-bottom: 48px;
	}

	.careers-benefits {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.careers-intro {
		font-size: 16px;
	}
}
