/**
 * Vicky Hampton - Custom Styles
 * Loaded on the front end and in the editor.
 */

/* Header */
.site-header .wp-block-site-title a {
	text-decoration: none;
}

.site-header .wp-block-navigation a {
	text-decoration: none;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--sand);
}

/* Small uppercase label above a heading ("SERVICES OFFERED") */
.vh-eyebrow {
	font-family: var(--wp--preset--font-family--raleway);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gray);
}

/* Portfolio / service cards */
.vh-card .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.vh-card h3 {
	margin-top: 20px;
	margin-bottom: 8px;
}

.vh-card p {
	font-size: 15px;
}

/* Report covers on the annual reporting page */
.vh-report .wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Client logos */
.vh-logo img {
	max-height: 110px;
	width: auto;
	object-fit: contain;
}

/* Testimonials */
.vh-testimonial {
	border-left: 2px solid var(--wp--preset--color--sand);
	padding-left: 28px;
}

.vh-testimonial p:first-child {
	font-family: var(--wp--preset--font-family--georgia);
	font-style: italic;
	font-weight: 400;
}

.vh-testimonial cite,
.vh-cite {
	font-family: var(--wp--preset--font-family--raleway);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gray);
}

/* Literary quotes between sections */
.vh-pullquote {
	font-family: var(--wp--preset--font-family--georgia);
	font-style: italic;
	color: var(--wp--preset--color--gray);
}

/* Footer */
.site-footer a {
	color: inherit;
}

@media (max-width: 781px) {
	.vh-card {
		margin-bottom: var(--wp--preset--spacing--20);
	}
}

/* Card headings: smaller, so long words don't break in four columns */
.vh-card h3 {
	font-size: 15px;
	letter-spacing: 0.1em;
	hyphens: manual;
}

/* Sticky header: the template part's <header> wrapper is what sticks */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Logged-in admin bar: 32px desktop, 46px tablet, scrolls away on phones */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

/* Keep anchor targets (e.g. /#services) clear of the sticky header */
[id] {
	scroll-margin-top: 150px;
}

/* Compact header on phones: title and menu button on one line */
@media (max-width: 600px) {
	.site-header {
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}

	.site-header > .wp-block-group {
		flex-wrap: nowrap;
	}

	.site-header .wp-block-site-title {
		font-size: 12px !important;
		letter-spacing: 0.12em !important;
	}

	[id] {
		scroll-margin-top: 90px;
	}
}

/* Phones: wider side margins for page content, header and footer */
@media (max-width: 600px) {
	body {
		--wp--style--root--padding-left: 24px;
		--wp--style--root--padding-right: 24px;
	}

	.site-header,
	.site-footer {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

/* Open mobile menu: keep the close button and links off the screen edges */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 14px 24px !important;
}

/* Open mobile menu: larger links */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 17px;
}
