/*
Theme Name: Vardar Ventures
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for vardar-ventures.com.
Version: 1.3.3
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: vardar-ventures
*/

html {
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: 6rem;
}

/* WordPress outlines every focused element, also right after a mouse click
   (logo, menu, buttons). Keep the outline for keyboard focus only. */
.wp-site-blocks :focus:not(:focus-visible) {
	outline: none;
}

/* Header: navy bar that stays at the top. On pages with a photo at the top it starts
   transparent over the photo and turns navy once the page scrolls (assets/js/site.js). */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 10;
}

.vv-header {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.wp-site-blocks > header.vv-header-overlay {
	position: fixed;
	left: 0;
	right: 0;
}

.vv-header-overlay .vv-header {
	background-color: transparent;
	border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.vv-scrolled .vv-header-overlay .vv-header {
	background-color: var(--wp--preset--color--accent);
	border-bottom-color: transparent;
}

/* Mobile menu: full-screen navy panel with the wordmark, large left-aligned links and a
   full-width contact button. Open and close buttons get a 44 px touch area. */
@media (max-width: 599px) {
	/* Only below 600px: from there WordPress hides the menu button and shows the links. */
	.vv-header .wp-block-navigation__responsive-container-open,
	.vv-header .wp-block-navigation__responsive-container-close {
		align-items: center;
		display: flex;
		height: 44px;
		justify-content: center;
		width: 44px;
	}

	.vv-header .wp-block-navigation__responsive-container-open {
		margin: -10px -10px -10px 0;
	}

	.vv-header .wp-block-navigation__responsive-container-close {
		right: -10px;
	}
}

/* The top padding puts the wordmark and close button exactly where the header shows the
   wordmark and menu button, so nothing jumps when the menu opens. */
.vv-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(var(--wp--preset--spacing--30) - 9px) var(--wp--style--root--padding-right) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left);
}

.vv-header .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "Vardar Ventures" / "";
	display: block;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 44px;
	text-transform: uppercase;
}

.vv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: var(--wp--preset--spacing--40);
}

.vv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.vv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	align-items: stretch;
	border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.vv-header .is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
	display: block;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	padding: 0.9rem 0;
	text-align: left;
	width: 100%;
}

.vv-header .is-menu-open .vv-nav-cta {
	border-bottom: 0;
	margin-top: var(--wp--preset--spacing--50);
}

.vv-header .is-menu-open .vv-nav-cta .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 2px;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	padding: 1rem;
	text-align: center;
}

/* "Explore more" link at the bottom of the hero. The inner container is not positioned,
   so the link can sit at the bottom of the photo; its siblings stay above the overlay. */
.vv-hero > .wp-block-cover__inner-container {
	position: static;
}

.vv-hero > .wp-block-cover__inner-container > * {
	position: relative;
	z-index: 1;
}

.vv-hero > .wp-block-cover__inner-container > .vv-explore {
	bottom: 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	left: 0;
	margin: 0;
	position: absolute;
	right: 0;
	text-align: center;
}

.vv-explore a {
	text-decoration: none;
}

/* Fade-in while scrolling; the classes are only added by assets/js/site.js. */
.vv-reveal {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.vv-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.vv-nav-cta .wp-block-navigation-item__content {
	border: 1px solid currentColor;
	padding: 0.55em 1.1em;
}

/* Covers keep the side padding of the page, also inside page content where WordPress drops nested padding. */
.wp-block-cover.alignfull > .wp-block-cover__inner-container.has-global-padding {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

/* Text pages such as the privacy statement. */
.wp-block-post-content > h2.wp-block-heading {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Full-width sections sit flush against each other. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.vv-flush > *,
.vv-flush .wp-block-post-content > * {
	margin-block-start: 0;
}

.vv-eyebrow {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vv-facts p {
	font-weight: 600;
	margin: 0;
}

.vv-card {
	border-top: 2px solid var(--wp--preset--color--accent);
	padding-top: var(--wp--preset--spacing--30);
}

.vv-icon {
	color: var(--wp--preset--color--accent);
	line-height: 0;
}

.vv-icon svg {
	height: 40px;
	width: 40px;
}

.vv-photo img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.vv-more a {
	font-weight: 600;
	text-decoration: none;
}

.vv-more a:hover {
	text-decoration: underline;
}

/* Highlights: photo and text side by side, text lined up with the rest of the page. */
.vv-split.wp-block-columns {
	gap: 0;
}

.vv-split-media figure,
.vv-split-media img {
	height: 100%;
	margin: 0;
}

.vv-split-media img {
	min-height: 24rem;
	object-fit: cover;
	width: 100%;
}

.vv-split-text {
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
}

.vv-split > .vv-split-text:first-child {
	padding-left: max(var(--wp--style--root--padding-left), calc(50vw - var(--wp--style--global--wide-size) / 2));
}

.vv-split > .vv-split-text:last-child {
	padding-right: max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
}

.has-accent-background-color .vv-eyebrow {
	color: rgb(255 255 255 / 0.7);
}

@media (max-width: 781px) {
	.vv-split-media {
		order: -1;
	}

	.vv-split-media img {
		min-height: 16rem;
	}

	.vv-split > .vv-split-text.vv-split-text {
		padding: var(--wp--preset--spacing--60) var(--wp--style--root--padding-right) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left);
	}
}

/* Statement */
.vv-statement {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* FAQ: accordion after the Osmo Supply "Accordion CSS Animation", built on the details block.
   assets/js/site.js wraps each answer in .vv-faq-body to animate its height. */
.vv-faq {
	background-color: var(--wp--preset--color--base);
	border-radius: 0.5em;
}

.vv-faq summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 1.125em;
	font-weight: 500;
	gap: 1em;
	justify-content: space-between;
	line-height: 1.3;
	list-style: none;
	padding: 1rem 1rem 1rem 1.5rem;
}

.vv-faq summary::-webkit-details-marker {
	display: none;
}

.vv-faq summary:focus-visible {
	border-radius: 0.5em;
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.vv-faq summary::after {
	background: var(--wp--preset--color--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none'%3E%3Cpath d='M28.5 22.5L18 12L7.5 22.5' stroke='%231C3557' stroke-width='3' stroke-miterlimit='10'/%3E%3C/svg%3E") center / 1em no-repeat;
	border-radius: 50%;
	content: "";
	flex-shrink: 0;
	height: 2em;
	transform: rotate(180deg);
	transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
	width: 2em;
}

.vv-faq[open]:not([data-state="closed"]) summary::after {
	transform: rotate(0.001deg);
}

.vv-faq-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.vv-faq[data-state="open"] .vv-faq-body {
	grid-template-rows: 1fr;
}

.vv-faq-inner {
	min-height: 0;
	overflow: hidden;
}

/* .vv-faq-content once JavaScript has wrapped the answer; the bare answer without it. */
.vv-faq-content,
.vv-faq > :not(summary):not(.vv-faq-body) {
	padding: 0 1.5rem 1.5rem;
}

.vv-faq p {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.vv-faq-body,
	.vv-faq summary::after {
		transition: none;
	}
}

/* Contact form (inc/contact-form.php) */
.vv-form {
	display: grid;
	gap: 1.1rem;
	margin-top: var(--wp--preset--spacing--40);
}

.vv-form p {
	margin: 0;
}

.vv-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.vv-form label span {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.vv-form input,
.vv-form textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	box-sizing: border-box;
	color: inherit;
	font: inherit;
	padding: 0.75rem 1rem;
	width: 100%;
}

.vv-form input:focus-visible,
.vv-form textarea:focus-visible {
	border-color: var(--wp--preset--color--accent);
	outline: 1px solid var(--wp--preset--color--accent);
}

.vv-form textarea {
	resize: vertical;
}

.vv-form .vv-form-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.vv-form-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.vv-form button {
	cursor: pointer;
}

.vv-form-notice {
	border-radius: 0.5em;
	font-weight: 500;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0.9rem 1.1rem;
}

.vv-form-notice.is-success {
	background-color: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--accent);
}

.vv-form-notice.is-error {
	background-color: #FBEAEA;
	color: #8A1F1F;
}

.vv-stat {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.vv-details {
	list-style: none;
	padding-left: 0;
}

.vv-details strong {
	font-weight: 600;
}

/* Footer */
.vv-footer p,
.vv-footer li,
.vv-footer .vv-eyebrow {
	color: rgb(255 255 255 / 0.8);
}

.vv-footer .wp-block-site-title {
	color: var(--wp--preset--color--base);
}

.vv-footer-menu {
	list-style: none;
	padding-left: 0;
}

.vv-footer-menu a {
	text-decoration: none;
}

.vv-footer-menu a:hover {
	text-decoration: underline;
}

.vv-footer-bottom {
	border-top: 1px solid rgb(255 255 255 / 0.2);
	padding-top: var(--wp--preset--spacing--30);
}
