/* =========================================================
   Vigo Classic — global styles (tokens, header, footer)
   Ported 1:1 from the approved Figma design.
   ========================================================= */

:root {
	--vc-navy: #14213D;
	--vc-gold: #BC9B45;
	--vc-gold-on-photo: #CFAB4C; /* Gold for small text sitting over the hero photograph.
	                            Raw --vc-gold is 6.02:1 on solid navy but only 4.19:1 once
	                            the courthouse photo lifts the background through the
	                            overlay — under the 4.5 needed at 13px. Same hue, lifted
	                            to 5.08:1 against the brightest pixel behind the eyebrow. */
	--vc-gold-text: #7B652C; /* Gold for text on light backgrounds. Same hue/sat as --vc-gold but
	                            darkened to clear WCAG AA (4.5:1) on cream, white AND the
	                            #F0F0EC surface. Raw --vc-gold is 2.56:1 on cream — never
	                            use it for text on a light background. */
	--vc-cream: #FBFBF8;
	--vc-white: #ffffff;
	--vc-surface: #F0F0EC;
	--vc-surface-warm: #F4F4F0;
	--vc-muted: #EEEEE9;
	/* Muted text. The Figma's #6B7280 / #9CA3AF fail AA on our light surfaces
	   (4.23 and 2.54 on #F0F0EC), and both are used at 11–13px where 4.5:1 is
	   required. Darkened within the same blue-gray hue; hierarchy preserved. */
	--vc-gray: #5B636F;
	--vc-gray-light: #656D7C;
	--vc-ink-lede: #4B5563; /* Lede/intro paragraphs. */
	--vc-ink-soft: #374151;
	--vc-brick: #8B1A1A;
	--vc-border: rgba(20, 33, 61, 0.08);
	--vc-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--vc-serif: Lora, Georgia, "Times New Roman", serif;
	--vc-shadow-card: 0 1px 4px rgba(20, 33, 61, 0.06), 0 6px 20px rgba(20, 33, 61, 0.06);
	--vc-radius: 16px;
}

/* ---- Base ---- */
.vc-body,
body {
	margin: 0;
	background-color: var(--vc-cream);
	color: var(--vc-navy);
	font-family: var(--vc-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.vc-container {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 640px) {
	.vc-container { padding-inline: 32px; }
}

.vc-i { flex-shrink: 0; }

/* Buttons/links reset inside components */
.vc-utility button,
.vc-header button {
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

/* Focus visibility — gold ring everywhere */
.vc-utility a:focus-visible,
.vc-utility button:focus-visible,
.vc-header a:focus-visible,
.vc-header button:focus-visible,
.vc-footer a:focus-visible {
	outline: 2px solid var(--vc-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- Skip link ---- */
.vc-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--vc-navy);
	color: var(--vc-cream);
	font-family: var(--vc-sans);
	font-size: 14px;
	font-weight: 500;
	border-radius: 4px;
	text-decoration: none;
}
.vc-skip-link:focus {
	left: 8px;
	top: 8px;
}

/* =========================================================
   Utility bar
   ========================================================= */
.vc-utility {
	display: none;
	background-color: var(--vc-navy);
	font-family: var(--vc-sans);
}
@media (min-width: 1024px) {
	.vc-utility { display: block; }
}
.vc-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 36px;
	position: relative;
}
.vc-utility__tagline {
	color: rgba(251, 251, 248, 0.7);
	font-size: 13px;
}
.vc-utility__links {
	display: flex;
	align-items: center;
	gap: 20px;
}
.vc-utility__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(251, 251, 248, 0.75);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.15s;
}
.vc-utility__link:hover { opacity: 0.7; }

/* Expandable utility search */
.vc-usearch { display: flex; align-items: center; }
.vc-usearch__form {
	display: flex;
	align-items: center;
	gap: 4px;
}
.vc-usearch__form[hidden] { display: none; }
.vc-usearch__form input {
	height: 24px;
	padding: 0 8px 0 12px;
	border-radius: 4px 0 0 4px;
	font-size: 12px;
	font-family: var(--vc-sans);
	background-color: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-right: none;
	color: var(--vc-cream);
	width: 200px;
}
.vc-usearch__form input::placeholder { color: rgba(251, 251, 248, 0.5); }
.vc-usearch__form input:focus { outline: none; }
.vc-usearch__form [type="submit"] {
	height: 24px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-left: none;
	border-radius: 0 4px 4px 0;
	color: rgba(255, 255, 255, 0.7);
}
.vc-usearch__form [type="submit"]:hover { background-color: rgba(255, 255, 255, 0.2); }
.vc-usearch__close {
	margin-left: 4px;
	color: rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
}
.vc-usearch__close:hover { opacity: 0.7; }

/* =========================================================
   Header + brand
   ========================================================= */
.vc-header {
	background-color: var(--vc-navy);
	font-family: var(--vc-sans);
	position: relative;
	z-index: 50;
}
.vc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 80px;
}
.vc-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	text-decoration: none;
}
.vc-brand__seal {
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 2px solid var(--vc-gold);
	background-color: rgba(188, 155, 69, 0.15);
}
.vc-brand__text { display: block; }
.vc-brand__name {
	display: block;
	font-family: var(--vc-serif);
	color: var(--vc-cream);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.vc-brand__sub {
	display: block;
	color: var(--vc-gold);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
}

/* =========================================================
   Desktop mega-nav
   ========================================================= */
.vc-nav {
	display: none;
	flex: 1;
	justify-content: center;
}
@media (min-width: 1280px) {
	.vc-nav { display: flex; }
}
.vc-nav__list {
	display: flex;
	align-items: center;
	/* Fluid so the items breathe on wide screens without overflowing at the
	   breakpoint. 2px read as one run-on string of labels. */
	gap: clamp(6px, 1vw, 18px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.vc-nav__item { position: relative; }
.vc-nav__btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px clamp(10px, 0.85vw, 16px);
	border-radius: 9999px;
	color: rgba(251, 251, 248, 0.9);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.15s, background-color 0.15s;
}
.vc-nav__btn .vc-i-chevron-down { transition: transform 0.2s; }
.vc-nav__btn[aria-expanded="true"] {
	color: var(--vc-gold);
	background-color: rgba(188, 155, 69, 0.12);
}
.vc-nav__btn[aria-expanded="true"] .vc-i-chevron-down { transform: rotate(180deg); }
.vc-nav__btn--dir {
	color: rgba(251, 251, 248, 0.55);
	font-size: 12px;
	font-weight: 400;
	border: 1px solid rgba(255, 255, 255, 0.15);
	margin-left: 6px;
}

/* Mega panel */
.vc-mega {
	position: absolute;
	top: 100%;
	z-index: 50;
	margin-top: 4px;
	border-radius: var(--vc-radius);
	overflow: hidden;
	background-color: var(--vc-white);
	border: 1px solid rgba(20, 33, 61, 0.1);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	min-width: calc(var(--vc-mega-cols, 3) * 190px);
	max-width: min(96vw, 1000px);
}
.vc-mega[hidden] { display: none; }
.vc-mega--left { left: 0; }
.vc-mega--center { left: 50%; transform: translateX(-50%); }
.vc-mega--right { right: 0; }
.vc-mega__bar {
	height: 3px;
	background: linear-gradient(90deg, #14213D, #BC9B45, #14213D);
}
.vc-mega__grid {
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(var(--vc-mega-cols, 3), 1fr);
	gap: 0 32px;
}
.vc-mega__heading {
	color: var(--vc-gold-text);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--vc-border);
	font-family: var(--vc-sans);
}
.vc-mega__group ul {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vc-mega__group a {
	display: block;
	padding: 6px 8px;
	border-radius: 8px;
	color: var(--vc-ink-soft);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.15s;
}
.vc-mega__group a:hover,
.vc-mega__group a:focus-visible {
	background-color: #F5F5F1;
}

/* =========================================================
   Mobile nav
   ========================================================= */
.vc-header__burger {
	display: block;
	padding: 8px;
	color: var(--vc-cream);
}
@media (min-width: 1280px) {
	.vc-header__burger { display: none; }
}
.vc-header__burger .vc-i-x { display: none; }
.vc-header__burger[aria-expanded="true"] .vc-i-menu { display: none; }
.vc-header__burger[aria-expanded="true"] .vc-i-x { display: block; }

.vc-mobilenav {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	max-height: 85vh;
	overflow-y: auto;
	background-color: var(--vc-navy);
}
.vc-mobilenav[hidden] { display: none; }
@media (min-width: 1280px) {
	.vc-mobilenav { display: none !important; }
}
.vc-mobilenav__search {
	padding: 12px 20px;
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: var(--vc-navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vc-mobilenav__searchbox { position: relative; }
.vc-mobilenav__searchbox > .vc-i-search {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.4);
}
.vc-mobilenav__searchbox input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 16px 10px 36px;
	border-radius: 12px;
	font-size: 14px;
	font-family: var(--vc-sans);
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--vc-cream);
}
.vc-mobilenav__searchbox input::placeholder { color: rgba(251, 251, 248, 0.45); }
.vc-mobilenav__searchbox input:focus { outline: 2px solid var(--vc-gold); }
.vc-mobilenav__clear {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.4);
	display: flex;
}
.vc-mobilenav__items {
	padding: 12px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vc-mobilenav__section > button {
	width: 100%;
	text-align: left;
	padding: 12px;
	border-radius: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--vc-cream);
	font-size: 15px;
	transition: background-color 0.15s;
}
.vc-mobilenav__section > button:hover,
.vc-mobilenav__section > button[aria-expanded="true"] {
	background-color: rgba(255, 255, 255, 0.08);
}
.vc-mobilenav__section > button .vc-i-chevron-down {
	color: var(--vc-gold);
	transition: transform 0.2s;
	flex-shrink: 0;
}
.vc-mobilenav__section > button[aria-expanded="true"] .vc-i-chevron-down { transform: rotate(180deg); }
.vc-mobilenav__panel {
	margin: 0 0 8px 12px;
	border-radius: 12px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.vc-mobilenav__panel[hidden] { display: none; }
.vc-mobilenav__group {
	padding: 12px 16px;
}
.vc-mobilenav__group + .vc-mobilenav__group {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.vc-mobilenav__group-heading {
	color: var(--vc-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.vc-mobilenav__group a {
	display: block;
	padding: 6px 8px;
	border-radius: 8px;
	color: rgba(251, 251, 248, 0.75);
	font-size: 13px;
	text-decoration: none;
}
.vc-mobilenav__group a:hover { background-color: rgba(255, 255, 255, 0.1); }
.vc-mobilenav__results { display: flex; flex-direction: column; gap: 2px; }
.vc-mobilenav__results a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 12px;
	text-decoration: none;
}
.vc-mobilenav__results a:hover { background-color: rgba(255, 255, 255, 0.1); }
.vc-mobilenav__results .vc-r-item { color: var(--vc-cream); font-size: 14px; }
.vc-mobilenav__results .vc-r-section { color: rgba(255, 255, 255, 0.35); font-size: 11px; }
.vc-mobilenav__empty {
	text-align: center;
	padding: 32px 0;
	color: rgba(255, 255, 255, 0.4);
	font-size: 14px;
}
.vc-mobilenav__utility {
	padding: 16px 20px;
	margin-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background-color: rgba(0, 0, 0, 0.2);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.vc-mobilenav__utility a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 12px;
	color: rgba(251, 251, 248, 0.65);
	font-size: 13px;
	text-decoration: none;
}
.vc-mobilenav__utility a:hover { background-color: rgba(255, 255, 255, 0.1); }
.vc-mobilenav__utility .vc-i { color: var(--vc-gold); }

/* =========================================================
   Footer
   ========================================================= */
.vc-footer {
	background: linear-gradient(160deg, #1a2d52 0%, #14213D 50%, #0d1829 100%);
	font-family: var(--vc-sans);
}
.vc-footer__body {
	padding-top: 64px;
	padding-bottom: 48px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}
@media (min-width: 1024px) {
	.vc-footer__body {
		grid-template-columns: 280px 1fr;
		gap: 64px;
	}
}
.vc-footer__brandrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}
.vc-footer__seal {
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--vc-gold);
	background-color: rgba(188, 155, 69, 0.15);
	flex-shrink: 0;
}
.vc-footer__name {
	font-family: var(--vc-serif);
	color: var(--vc-cream);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
}
.vc-footer__tag {
	color: var(--vc-gold);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.vc-footer address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 32px;
	color: rgba(251, 251, 248, 0.7);
	font-size: 14px;
	line-height: 1.6;
}
.vc-footer address > div {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.vc-footer address .vc-i { color: var(--vc-gold); margin-top: 3px; }
.vc-footer address a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}
.vc-footer address a:hover { color: #fff; }
.vc-footer__social {
	display: flex;
	align-items: center;
	gap: 12px;
}
.vc-footer__social a {
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(251, 251, 248, 0.7);
	transition: background-color 0.15s;
}
.vc-footer__social a:hover { background-color: rgba(255, 255, 255, 0.1); }
.vc-footer__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}
@media (min-width: 768px) {
	.vc-footer__nav { grid-template-columns: repeat(4, 1fr); }
}
.vc-footer__nav h2 {
	color: var(--vc-cream);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 14px;
	font-family: var(--vc-sans);
}
.vc-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vc-footer__nav a {
	color: rgba(251, 251, 248, 0.6);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s;
}
.vc-footer__nav a:hover { color: #fff; }
.vc-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 20px;
	padding-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
@media (min-width: 640px) {
	.vc-footer__bottom { flex-direction: row; }
}
.vc-footer__bottom,
.vc-footer__bottom a {
	color: rgba(251, 251, 248, 0.45);
	font-size: 13px;
	text-decoration: none;
}
.vc-footer__bottom a:hover { color: #fff; }
.vc-footer__legal {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.vc-nav__btn .vc-i-chevron-down,
	.vc-mobilenav__section > button .vc-i-chevron-down {
		transition: none;
	}
}

/* WordPress inserts --wp--style--block-gap between top-level blocks, which opens
   a gap between the header template part and the page content. Header, main and
   footer are meant to sit flush. */
.wp-site-blocks > * { margin-block-start: 0; }

/* Always-available escape hatch from the mobile nav filter into real site
   search — the filter only indexes menu labels. */
.vc-mobilenav__fullsearch {
	display: block;
	margin-top: 10px;
	padding: 12px 14px;
	border-top: 1px solid rgba(251, 251, 248, 0.14);
	color: var(--vc-gold);
	font-size: 14px;
	font-weight: 600;
}
.vc-mobilenav__fullsearch:hover,
.vc-mobilenav__fullsearch:focus { text-decoration: underline; }

/* Visually-hidden text that assistive technology still announces. Used for the
   "(opens in a new tab)" cue on offsite links and other context that would be
   redundant on screen. Without this rule those cues render as visible text. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
/* …except when focused, so keyboard users can see skip links. */
.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
}

/* Pillar overview links. The mega-menu top level is a <button> that opens the
   panel, which is right for a dropdown but left the five pillar pages
   (/services/, /community/, …) with no route to them at all. */
.vc-mega__foot {
	padding: 14px 24px 18px;
	border-top: 1px solid rgba(20, 33, 61, 0.08);
	background: var(--vc-cream);
	border-radius: 0 0 var(--vc-radius) var(--vc-radius);
}
.vc-mega__foot a {
	font-size: 14px;
	font-weight: 600;
	color: var(--vc-navy);
	text-decoration: none;
}
.vc-mega__foot a:hover,
.vc-mega__foot a:focus-visible { text-decoration: underline; }

.vc-mobilenav__overview {
	display: block;
	padding: 12px 0;
	color: var(--vc-gold-on-photo);
	font-size: 15px;
	font-weight: 600;
}
