/*
Theme Name: VitalGuardQA
Theme URI: https://vitalguardqa.com
Author: VitalGuard QA
Author URI: https://vitalguardqa.com
Description: Tema corporativo para VitalGuard QA (aseguramiento de calidad e inocuidad alimentaria). Mobile-first, sin dependencias externas. Toda la configuración (logo, favicon, topbar, header, banner superior, secciones con imagen + overlay + CTAs, footer, redes sociales y botón flotante de WhatsApp) se administra desde Apariencia > Personalizar.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitalguardqa
Tags: custom-logo, custom-menu, featured-images, one-column, translation-ready, accessibility-ready, theme-options
*/

/* ==========================================================================
   1. Tokens
   Colors in :root are overridden from the Customizer (inline CSS).
   ========================================================================== */
:root {
	--vg-forest: #0F3B2E;
	--vg-leaf: #2E6B45;
	--vg-copper: #B87333;
	--vg-ivory: #F7F4EE;
	--vg-carbon: #1A1A1A;

	--vg-forest-dark: #08231B;
	--vg-forest-light: #165241;
	--vg-forest-surface: #114435;
	--vg-leaf-soft: #4A9A6A;
	--vg-copper-hover: #A36227;
	--vg-ivory-dark: #EFECE4;
	--vg-line: #E3DFD4;

	--vg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--vg-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--vg-logo-h: 48px;
	--vg-header-h: 72px;
	--vg-radius: 1rem;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	:root {
		--vg-forest-dark: color-mix(in srgb, var(--vg-forest) 62%, #000);
		--vg-forest-light: color-mix(in srgb, var(--vg-forest) 78%, #fff);
		--vg-forest-surface: color-mix(in srgb, var(--vg-forest) 90%, #fff);
		--vg-leaf-soft: color-mix(in srgb, var(--vg-leaf) 75%, #fff);
		--vg-copper-hover: color-mix(in srgb, var(--vg-copper) 86%, #000);
		--vg-ivory-dark: color-mix(in srgb, var(--vg-ivory) 94%, #000);
		--vg-line: color-mix(in srgb, var(--vg-ivory) 88%, #000);
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--vg-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--vg-carbon);
	background: var(--vg-ivory);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

html.vg-menu-open body { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--vg-copper); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: .5rem; top: .5rem; z-index: 1000; padding: .75rem 1rem;
	background: #fff; color: #000; border-radius: .25rem;
}

.vg-container {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
}
.vg-container--narrow { max-width: 52rem; }

.vg-icon { width: 1.25rem; height: 1.25rem; flex: none; }

@media (max-width: 639.98px) {
	.vg-hide-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (min-width: 640px) { .vg-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .vg-container { padding-inline: 2rem; } }

/* ==========================================================================
   3. Buttons, pills, chips
   ========================================================================== */
.vg-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.vg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .7rem 1.4rem;
	border: 1px solid transparent; border-radius: 999px;
	font-size: .875rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	text-decoration: none; text-align: center;
	transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.vg-btn .vg-btn__icon { width: 1rem; height: 1rem; transition: transform .2s; }
.vg-btn:hover .vg-btn__icon { transform: translateX(2px); }

.vg-btn--primary {
	background: var(--vg-copper); color: #fff;
	box-shadow: 0 0 24px -6px rgba(184, 115, 51, .5);
}
.vg-btn--primary:hover { background: var(--vg-copper-hover); }

.vg-btn--ghost {
	background: rgba(8, 35, 27, .75); color: var(--vg-ivory);
	border-color: var(--vg-forest-light);
}
.vg-btn--ghost:hover { border-color: var(--vg-copper); background: var(--vg-forest); }

.vg-btn--block { width: 100%; }

/* On light overlays / light sections the ghost button flips to solid forest. */
.vg-banner--white .vg-btn--ghost,
.vg-s--ov-white .vg-ov--block .vg-btn--ghost {
	background: var(--vg-forest); color: var(--vg-ivory); border-color: var(--vg-forest);
}

.vg-pill {
	--pill-bg: var(--vg-forest-surface); --pill-bd: var(--vg-forest-light); --pill-fg: var(--vg-ivory);
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .35rem .9rem; border-radius: 999px;
	background: var(--pill-bg); border: 1px solid var(--pill-bd); color: var(--pill-fg);
	font-family: var(--vg-mono); font-size: .72rem; letter-spacing: .05em; line-height: 1.3;
}
.vg-pill__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--vg-copper); flex: none; }

.vg-s--ivory .vg-pill, .vg-s--white .vg-pill, .vg-banner--white .vg-pill, .vg-s--ov-white .vg-pill {
	--pill-bg: rgba(15, 59, 46, .08); --pill-bd: rgba(15, 59, 46, .2); --pill-fg: var(--vg-forest);
}
.vg-s--ov-dark .vg-pill {
	--pill-bg: var(--vg-forest-surface); --pill-bd: var(--vg-forest-light); --pill-fg: var(--vg-ivory);
}

.vg-chip {
	display: inline-block; padding: .15rem .55rem; border-radius: .375rem;
	background: rgba(8, 35, 27, .55); border: 1px solid var(--vg-forest-light);
	color: var(--vg-leaf-soft); font-family: var(--vg-mono); font-size: .68rem; font-weight: 600; line-height: 1.4;
}

/* ==========================================================================
   4. Topbar
   ========================================================================== */
.vg-topbar { font-size: .8125rem; line-height: 1.4; color: var(--vg-ivory); background: var(--vg-forest-dark); }
.vg-topbar--carbon { background: var(--vg-carbon); }
.vg-topbar--copper { background: var(--vg-copper); color: #fff; }
.vg-topbar--ivory { background: var(--vg-ivory-dark); color: var(--vg-carbon); border-bottom: 1px solid var(--vg-line); }

.vg-topbar__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: .5rem 1.5rem; padding-block: .5rem;
}
.vg-topbar__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.vg-topbar__list li, .vg-topbar__list a { display: inline-flex; align-items: center; gap: .4rem; }
.vg-topbar__list a { text-decoration: none; }
.vg-topbar__list a:hover { text-decoration: underline; }
.vg-topbar .vg-icon { width: .95rem; height: .95rem; color: var(--vg-copper); }
.vg-topbar--copper .vg-icon { color: #fff; }

/* ==========================================================================
   5. Header + navigation
   ========================================================================== */
.vg-header {
	position: relative; z-index: 100;
	background: var(--vg-forest-dark); color: var(--vg-ivory);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.vg-header--sticky { position: sticky; top: 0; }
.admin-bar .vg-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .vg-header--sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .vg-header--sticky { top: 0; } }

.vg-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: var(--vg-header-h); padding-block: .5rem;
}

.vg-logo { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; }
.vg-logo .custom-logo-link { display: inline-flex; }
.vg-logo .custom-logo { display: block; width: auto; height: var(--vg-logo-h); max-width: 100%; object-fit: contain; }
.vg-logo--chip .custom-logo-link {
	background: var(--vg-ivory); border-radius: .75rem; padding: .2rem .6rem;
	border: 1px solid rgba(255, 255, 255, .15);
}
.vg-logo__text { font-weight: 700; text-decoration: none; }

.vg-burger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: transparent; color: inherit;
	border: 1px solid rgba(255, 255, 255, .25); border-radius: .75rem;
}
.vg-burger .vg-icon { width: 1.5rem; height: 1.5rem; }
.vg-burger__close { display: none; }
.vg-header.is-open .vg-burger__open { display: none; }
.vg-header.is-open .vg-burger__close { display: inline-flex; }

/* Mobile: collapsible panel. */
.js .vg-header__panel {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	max-height: calc(100vh - var(--vg-header-h) - 3rem); max-height: calc(100svh - var(--vg-header-h) - 3rem);
	overflow-y: auto; overscroll-behavior: contain;
	padding: 1rem; background: var(--vg-forest-dark);
	border-top: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.js .vg-header.is-open .vg-header__panel { display: block; }

.vg-menu { list-style: none; margin: 0; padding: 0; }
.vg-menu li { position: relative; }
.vg-menu a {
	display: block; padding: .85rem .25rem;
	font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	color: rgba(247, 244, 238, .85);
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.vg-menu a:hover, .vg-menu .current-menu-item > a { color: var(--vg-copper); }
.vg-menu .sub-menu { list-style: none; margin: 0; padding-left: 1rem; }

.vg-header__actions { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; margin-top: 1rem; }
.vg-header__login {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	min-height: 44px; font-size: .8rem; font-weight: 600; text-decoration: none;
	color: rgba(247, 244, 238, .9);
}
.vg-header__login .vg-icon { width: 1rem; height: 1rem; color: var(--vg-copper); }

/* Language switcher: segmented EN | ES in the header, text links in the footer. */
.vg-lang--header {
	display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 2px; flex: none;
	border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px;
}
.vg-lang--header .vg-lang__item {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 40px; padding: 0 .5rem;
	font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1; text-decoration: none;
	color: rgba(247, 244, 238, .85); border-radius: 3px;
}
.vg-lang--header .vg-lang__item:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.vg-lang--header .vg-lang__item.is-current { background: var(--vg-copper); color: var(--vg-carbon); cursor: default; }
.vg-lang__item:focus-visible { outline: 2px solid var(--vg-copper); outline-offset: 2px; }
.vg-lang--header .vg-lang__item.is-current:focus-visible { outline-color: #fff; }

.vg-lang--footer { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-top: 1.25rem; }
.vg-lang--footer .vg-lang__item {
	display: inline-flex; align-items: center; min-height: 44px;
	font-size: .8rem; font-weight: 600; color: rgba(247, 244, 238, .75); text-decoration: underline; text-underline-offset: 3px;
}
.vg-lang--footer .vg-lang__item:hover { color: #fff; }
.vg-lang--footer .vg-lang__item.is-current { color: var(--vg-copper); text-decoration: none; cursor: default; }

/* Without JS the panel is simply visible. */
html:not(.js) .vg-burger { display: none; }

@media (min-width: 960px) {
	.vg-burger { display: none; }
	.js .vg-header__panel,
	.vg-header__panel {
		display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 1.5rem;
		position: static; max-height: none; overflow: visible;
		padding: 0; background: transparent; border: 0; box-shadow: none;
	}
	.vg-nav { margin-inline: auto; }
	.vg-menu { display: flex; align-items: center; gap: 1.5rem; }
	.vg-menu a { padding: .5rem 0; border: 0; font-size: .75rem; }
	.vg-menu .sub-menu {
		display: none; position: absolute; left: -1rem; top: 100%; min-width: 14rem; padding: .5rem;
		background: var(--vg-forest-dark); border: 1px solid var(--vg-forest-light); border-radius: .75rem;
		box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
	}
	.vg-menu li:hover > .sub-menu, .vg-menu li:focus-within > .sub-menu { display: block; }
	.vg-menu .sub-menu a { padding: .6rem .75rem; }
	.js .vg-header.is-open .vg-header__panel { display: flex; }
	.vg-header__actions { flex-direction: row; align-items: center; margin: 0; }
	.vg-header__actions .vg-btn { min-height: 40px; padding: .5rem 1.1rem; font-size: .8rem; }
	/* Desktop: the switcher sits at the far right, after the menu and the actions. */
	.vg-header__panel { order: 2; }
	.vg-lang--header { order: 3; margin-left: 0; }
}

/* ==========================================================================
   6. Sections (generic wrapper + themes)
   ========================================================================== */
.vg-section {
	--vg-bg: var(--vg-ivory); --vg-text: var(--vg-carbon); --vg-muted: #4a4a4a; --vg-head: var(--vg-forest);
	--card-bg: #fff; --card-bd: var(--vg-line); --card-title: var(--vg-forest); --card-text: #4a4a4a;
	--card-label: var(--vg-copper); --card-ico-bg: rgba(15, 59, 46, .1); --card-ico: var(--vg-forest);
	position: relative; overflow: hidden;
	background: var(--vg-bg); color: var(--vg-text);
	scroll-margin-top: calc(var(--vg-header-h) + 8px);
}
.vg-s--white { --vg-bg: #fff; --card-bg: var(--vg-ivory); }

.vg-s--forest, .vg-s--forest-dark, .vg-s--carbon {
	--vg-text: var(--vg-ivory); --vg-muted: rgba(247, 244, 238, .74); --vg-head: var(--vg-ivory);
	--card-bg: rgba(255, 255, 255, .045); --card-bd: rgba(255, 255, 255, .14);
	--card-title: var(--vg-ivory); --card-text: rgba(247, 244, 238, .74);
	--card-ico-bg: rgba(0, 0, 0, .25); --card-ico: var(--vg-copper);
}
.vg-s--forest { --vg-bg: var(--vg-forest); }
.vg-s--forest-dark { --vg-bg: var(--vg-forest-dark); }
.vg-s--carbon { --vg-bg: var(--vg-carbon); }

/* Image used as section background: text tone follows the overlay. */
.vg-s--ov-dark { --vg-text: var(--vg-ivory); --vg-muted: rgba(247, 244, 238, .85); --vg-head: var(--vg-ivory); }
.vg-s--ov-white { --vg-text: var(--vg-carbon); --vg-muted: #333; --vg-head: var(--vg-forest); }

.vg-bg { position: absolute; inset: 0; z-index: 0; }
.vg-bg__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vg-overlay { position: absolute; inset: 0; pointer-events: none; }
.vg-overlay--dark { background: rgba(6, 24, 18, var(--vg-ov, .6)); }
.vg-overlay--white { background: rgba(255, 255, 255, var(--vg-ov, .6)); }

.vg-section__body { position: relative; z-index: 1; padding-block: 3.5rem; }
@media (min-width: 768px) { .vg-section__body { padding-block: 5rem; } }
@media (min-width: 1024px) { .vg-section__body { padding-block: 6rem; } }

.vg-head { max-width: 48rem; margin-bottom: 2.5rem; }
.vg-head--center { margin-inline: auto; text-align: center; }
.vg-head .vg-pill { margin-bottom: 1rem; }
.vg-head__title {
	margin: 0 0 .75rem;
	font-size: clamp(1.75rem, 5.2vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
	color: var(--vg-head);
}
.vg-head__desc { margin: 0; font-size: clamp(1rem, 2.4vw, 1.125rem); color: var(--vg-muted); }
.vg-note {
	display: inline-block; margin: 0 0 2rem; padding: .5rem 1rem; border-radius: .5rem;
	font-family: var(--vg-mono); font-size: .75rem; color: var(--vg-muted);
	background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .12);
}
.vg-s--ivory .vg-note, .vg-s--white .vg-note { background: rgba(15, 59, 46, .06); border-color: var(--vg-line); }

/* ---- Banner (image + overlay + text + CTAs) ---- */
.vg-banner {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	min-height: 16rem; background: var(--vg-forest-dark); color: var(--vg-ivory);
}
.vg-banner--white { background: var(--vg-ivory); color: var(--vg-carbon); }
.vg-banner:not(.has-img):not(.vg-banner--white) {
	background:
		radial-gradient(60rem 30rem at 50% -10%, rgba(46, 107, 69, .35), transparent 60%),
		linear-gradient(180deg, #061812, var(--vg-forest-dark) 60%, var(--vg-carbon));
}
.vg-banner__img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
}
.vg-banner .vg-overlay { z-index: -1; }
.vg-banner__inner { position: relative; padding-block: 3rem; }
.vg-banner--none.has-img .vg-ov, .vg-banner--none.has-img .vg-slide__content { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }

.vg-ov { max-width: 46rem; }
.vg-ov__title {
	margin: 0 0 .75rem;
	font-size: clamp(1.5rem, 4.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.vg-ov__text { margin: 0; font-size: clamp(1rem, 2.4vw, 1.125rem); opacity: .92; }
.vg-ov .vg-btns { margin-top: 1.25rem; }
.vg-ov--block { margin-bottom: 3rem; color: var(--vg-head); }
.vg-ov--block .vg-ov__text { color: var(--vg-muted); opacity: 1; }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.vg-hero { position: relative; background: var(--vg-forest-dark); color: var(--vg-ivory); scroll-margin-top: var(--vg-header-h); }
.vg-hero__stage { position: relative; display: grid; }

.vg-slide { grid-area: 1 / 1; min-height: 32rem; }
.vg-hero--tall .vg-slide { min-height: 38rem; }
.vg-hero--full .vg-slide { min-height: calc(100vh - var(--vg-header-h)); min-height: calc(100svh - var(--vg-header-h)); }
@media (min-width: 768px) {
	.vg-slide { min-height: 38rem; }
	.vg-hero--tall .vg-slide { min-height: 46rem; }
}

.vg-slide__inner { width: 100%; padding-block: 3.5rem; }
[data-vg-slider] .vg-slide__inner { padding-bottom: 5.5rem; }
.vg-slide__content { max-width: 44rem; }
.vg-hero--center .vg-slide__content { margin-inline: auto; text-align: center; }
.vg-hero--center .vg-btns { justify-content: center; }
.vg-hero--center .vg-slide__icon { margin-inline: auto; }

.vg-slide__icon {
	display: flex; align-items: center; justify-content: center;
	width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem;
	border-radius: .9rem; background: var(--vg-forest); border: 1px solid rgba(184, 115, 51, .5);
	color: var(--vg-copper);
}
.vg-slide__icon-svg { width: 1.75rem; height: 1.75rem; }
.vg-slide__icon-img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; padding: .4rem; }

.vg-slide .vg-pill { margin-bottom: 1.25rem; }
.vg-slide__title {
	margin: 0 0 1rem;
	font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
}
.vg-slide__title a { text-decoration: none; }
.vg-slide__title a:hover { text-decoration: underline; text-decoration-color: var(--vg-copper); }
.vg-slide__text { margin: 0; max-width: 38rem; font-size: clamp(1rem, 2.6vw, 1.15rem); opacity: .88; }

.js .vg-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.js .vg-slide.is-active { opacity: 1; visibility: visible; }
html:not(.js) .vg-slide:not(.is-active) { display: none; }

.vg-hero__controls {
	position: absolute; left: 0; right: 0; bottom: .75rem; z-index: 3;
	display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.vg-hero__arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	background: rgba(8, 35, 27, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
.vg-hero__arrow:hover { background: var(--vg-copper); border-color: var(--vg-copper); }
.vg-hero__dots { display: flex; gap: .25rem; }
.vg-hero__dot {
	position: relative; width: 28px; height: 44px; padding: 0; background: none; border: 0;
}
.vg-hero__dot::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
	border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .2s, transform .2s;
}
.vg-hero__dot.is-active::after { background: var(--vg-copper); transform: scale(1.3); }

.vg-hero__metrics { background: rgba(8, 35, 27, .55); border-top: 1px solid rgba(255, 255, 255, .1); }
.vg-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding-block: 1.25rem; font-family: var(--vg-mono); }
.vg-metric span { display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.vg-metric strong { display: block; font-size: .8rem; line-height: 1.3; }
@media (min-width: 640px) { .vg-metric strong { font-size: .95rem; } .vg-metric span { font-size: .72rem; } }

.vg-coverage { background: rgba(8, 35, 27, .85); border-top: 1px solid rgba(255, 255, 255, .1); }
.vg-coverage__inner {
	display: flex; flex-direction: column; gap: .75rem; padding-block: 1.1rem;
	font-size: .75rem; color: rgba(247, 244, 238, .75);
}
.vg-coverage__geo { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.vg-coverage__geo strong { font-family: var(--vg-mono); color: var(--vg-ivory); }
.vg-coverage__std { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.vg-coverage__label { font-family: var(--vg-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; opacity: .6; margin-right: .5rem; }
.vg-coverage .vg-chip { color: var(--vg-ivory); }
@media (min-width: 768px) {
	.vg-coverage__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   8. Cards and grids
   ========================================================================== */
.vg-grid { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.vg-grid--cards { gap: 1.25rem; }
.vg-grid--industries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

@media (min-width: 640px) {
	.vg-grid--stages, .vg-grid--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.vg-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
	.vg-grid--industries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1024px) {
	.vg-grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
	.vg-grid--industries { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.vg-grid--stages, .vg-grid--steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.vg-card {
	background: var(--card-bg); border: 1px solid var(--card-bd); border-radius: var(--vg-radius);
	padding: 1.5rem; color: var(--card-text);
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.vg-card:hover { border-color: var(--vg-copper); }
.vg-card__label {
	margin: 0 0 .25rem; font-family: var(--vg-mono); font-size: .72rem; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; color: var(--card-label);
}
.vg-card__title { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 700; color: var(--card-title); }
.vg-card__text { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--card-text); }

.vg-card.is-featured {
	--card-bg: var(--vg-forest); --card-bd: var(--vg-forest-light);
	--card-title: var(--vg-ivory); --card-text: rgba(247, 244, 238, .82);
	--card-ico-bg: var(--vg-forest-dark); --card-ico: var(--vg-copper);
}
.vg-s--forest .vg-card.is-featured { --card-bg: var(--vg-forest-surface); --card-bd: var(--vg-copper); }

/* Service cards */
.vg-card--service { display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; }
.vg-card--service:hover { box-shadow: 0 18px 36px -18px rgba(15, 59, 46, .35); transform: translateY(-2px); }
.vg-card__icon {
	display: flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem; margin-bottom: 1.25rem; border-radius: .75rem;
	background: var(--card-ico-bg); color: var(--card-ico); transition: background .2s, color .2s;
}
.vg-card__icon .vg-icon { width: 1.5rem; height: 1.5rem; }
.vg-card--service:hover .vg-card__icon { background: var(--vg-copper); color: #fff; }
.vg-card--service .vg-card__text { margin-bottom: 1.25rem; }

.vg-checklist {
	list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--card-bd);
	font-family: var(--vg-mono); font-size: .75rem; line-height: 1.5; color: var(--card-title);
}
.vg-checklist li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; }
.vg-checklist li:last-child { margin-bottom: 0; }
.vg-checklist li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--vg-leaf); }
.vg-card.is-featured .vg-checklist li::before, .vg-s--forest .vg-checklist li::before,
.vg-s--forest-dark .vg-checklist li::before, .vg-s--carbon .vg-checklist li::before { color: var(--vg-copper); }

/* Supply chain stage cards */
.vg-card--stage { padding: 1.1rem; }
.vg-card--stage .vg-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .6rem; }
.vg-card--stage .vg-card__label { margin: 0; }
.vg-card--stage .vg-card__title { font-size: .95rem; }
.vg-card--stage .vg-card__text { font-size: .8rem; }

/* Method steps */
.vg-card--step { padding: 1.25rem; }
.vg-step__num { display: block; margin-bottom: 1rem; font-family: var(--vg-mono); font-size: 1.6rem; font-weight: 700; color: var(--vg-copper); }
.vg-card--step .vg-card__title { font-size: 1.05rem; }
.vg-card--step .vg-card__text { font-size: .82rem; }
.vg-step__tag {
	margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--card-bd);
	font-family: var(--vg-mono); font-size: .7rem; color: var(--vg-leaf-soft);
}
.vg-card--step.is-featured .vg-step__tag { color: var(--vg-copper); }

/* Industries */
.vg-card--industry { text-align: center; padding: 1.25rem 1rem; }
.vg-card--industry:hover { border-color: var(--vg-forest); }
.vg-industry__icon { display: block; margin-bottom: .5rem; font-size: 1.75rem; line-height: 1; }
.vg-card--industry .vg-card__title { margin: 0; font-size: .9rem; }
.vg-card--industry .vg-card__text { margin: .25rem 0 0; font-size: .72rem; }

/* ==========================================================================
   9. Portal
   ========================================================================== */
.vg-portal__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .vg-portal__grid.has-mockup { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.vg-portal__copy .vg-head { margin-bottom: 1.5rem; }

.vg-features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.vg-features li { display: flex; gap: .9rem; }
.vg-features__num {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 2rem; height: 2rem; border-radius: .5rem;
	background: var(--vg-forest); border: 1px solid var(--vg-forest-light);
	font-family: var(--vg-mono); font-size: .72rem; font-weight: 700; color: var(--vg-copper);
}
.vg-features h3 { margin: 0 0 .2rem; font-size: .95rem; color: var(--vg-head); }
.vg-features p { margin: 0; font-size: .82rem; color: var(--vg-muted); }

.vg-mock {
	padding: 1.1rem; border-radius: 1rem; color: var(--vg-ivory);
	background: var(--vg-forest-dark); border: 1px solid var(--vg-forest-light);
	box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); font-family: var(--vg-mono);
}
.vg-mock__bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
	padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
	font-size: .72rem; color: rgba(247, 244, 238, .55);
}
.vg-mock__bar .vg-chip { margin-left: auto; }
.vg-mock__dots { display: inline-flex; gap: .3rem; }
.vg-mock__dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #ef4444; opacity: .8; }
.vg-mock__dots i:nth-child(2) { background: #eab308; }
.vg-mock__dots i:nth-child(3) { background: #22c55e; }
.vg-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.vg-mock__kpis div { padding: .6rem; border-radius: .6rem; background: rgba(15, 59, 46, .6); border: 1px solid rgba(255, 255, 255, .1); }
.vg-mock__kpis span { display: block; font-size: .58rem; opacity: .55; }
.vg-mock__kpis strong { font-size: 1.05rem; }
.vg-mock__title { margin: 0 0 .5rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .45; }
.vg-mock__row {
	display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; padding: .7rem;
	border-radius: .6rem; background: rgba(17, 68, 53, .8); border: 1px solid var(--vg-forest-light);
}
.vg-mock__pdf {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 2rem; height: 2rem; border-radius: .35rem; background: var(--vg-forest);
	font-size: .65rem; font-weight: 700; color: var(--vg-copper);
}
.vg-mock__row strong { display: block; font-size: .78rem; }
.vg-mock__row em { margin-left: .4rem; padding: .05rem .35rem; border-radius: .25rem; background: var(--vg-forest); color: var(--vg-leaf-soft); font-size: .58rem; font-style: normal; }
.vg-mock__row small { display: block; font-size: .68rem; opacity: .6; }

/* ==========================================================================
   10. Contact
   ========================================================================== */
.vg-contact__grid {
	--vg-text: var(--vg-ivory); --vg-muted: rgba(247, 244, 238, .8); --vg-head: var(--vg-ivory);
	display: grid; gap: 2rem; padding: 1.5rem;
	background: rgba(17, 68, 53, .9); border: 1px solid var(--vg-forest-light); border-radius: 1.5rem;
	color: var(--vg-ivory); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.vg-contact__grid .vg-pill { --pill-bg: var(--vg-forest); --pill-bd: var(--vg-forest-light); --pill-fg: var(--vg-ivory); }
.vg-contact__grid .vg-ov, .vg-contact__grid .vg-ov--block { color: var(--vg-ivory); }
@media (min-width: 640px) { .vg-contact__grid { padding: 2.5rem; } }
@media (min-width: 1024px) {
	.vg-contact__grid { padding: 4rem; gap: 3rem; }
	.vg-contact__grid.has-form { grid-template-columns: 1fr 1fr; }
}
.vg-contact__points { list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, .15); display: grid; gap: .9rem; font-family: var(--vg-mono); font-size: .78rem; color: var(--vg-muted); }
.vg-contact__points li { display: flex; align-items: flex-start; gap: .75rem; }
.vg-contact__points .vg-icon { color: var(--vg-copper); margin-top: .1rem; }

.vg-contact__form { padding: 1.25rem; border-radius: 1rem; background: var(--vg-forest-dark); border: 1px solid var(--vg-forest-light); }
@media (min-width: 640px) { .vg-contact__form { padding: 2rem; } }

.vg-form p { margin: 0 0 1rem; }
.vg-form__row { display: grid; gap: 0; }
@media (min-width: 640px) { .vg-form__row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.vg-form label { display: block; margin-bottom: .35rem; font-family: var(--vg-mono); font-size: .72rem; color: rgba(247, 244, 238, .75); }
.vg-form input[type="text"], .vg-form input[type="email"], .vg-form select, .vg-form textarea,
.vg-contact__form input[type="text"], .vg-contact__form input[type="email"], .vg-contact__form input[type="tel"],
.vg-contact__form select, .vg-contact__form textarea {
	width: 100%; min-height: 44px; padding: .6rem .85rem;
	font: inherit; font-size: 16px; color: var(--vg-ivory);
	background: var(--vg-forest); border: 1px solid var(--vg-forest-light); border-radius: .5rem;
}
.vg-form textarea, .vg-contact__form textarea { min-height: 7rem; resize: vertical; }
.vg-form input:focus, .vg-form select:focus, .vg-form textarea:focus,
.vg-contact__form input:focus, .vg-contact__form select:focus, .vg-contact__form textarea:focus {
	outline: 0; border-color: var(--vg-copper); box-shadow: 0 0 0 3px rgba(184, 115, 51, .25);
}
.vg-form__privacy { margin: 1rem 0 0 !important; text-align: center; font-family: var(--vg-mono); font-size: .66rem; opacity: .5; }
/* Contact Form 7 inside the contact section */
.vg-contact__form .wpcf7 form { margin: 0; }
.vg-contact__form .wpcf7 p { margin: 0 0 1rem; }
.vg-contact__form .wpcf7 label { display: block; font-family: var(--vg-mono); font-size: .72rem; color: rgba(247, 244, 238, .75); }
.vg-contact__form .wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
.vg-contact__form .wpcf7 .vg-form__row { display: grid; gap: 0; }
@media (min-width: 640px) { .vg-contact__form .wpcf7 .vg-form__row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.vg-contact__form .wpcf7 input[type="submit"].vg-btn { width: 100%; cursor: pointer; }
.vg-contact__form .wpcf7-not-valid-tip { margin-top: .3rem; font-size: .75rem; color: #fca5a5; }
.vg-contact__form .wpcf7 input.wpcf7-not-valid, .vg-contact__form .wpcf7 textarea.wpcf7-not-valid { border-color: #f87171; }
.vg-contact__form .wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .5rem; border: 1px solid var(--vg-leaf-soft); font-size: .9rem; color: var(--vg-ivory); }
.vg-contact__form .wpcf7 form.invalid .wpcf7-response-output,
.vg-contact__form .wpcf7 form.failed .wpcf7-response-output,
.vg-contact__form .wpcf7 form.spam .wpcf7-response-output { border-color: #f87171; background: rgba(185, 28, 28, .25); }
.vg-contact__form .wpcf7 form.sent .wpcf7-response-output { background: rgba(46, 107, 69, .35); }
.vg-contact__form .wpcf7-spinner { display: block; margin: .5rem auto 0; }
.vg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vg-notice { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: .5rem; font-size: .9rem; }
.vg-notice--success { background: rgba(46, 107, 69, .35); border: 1px solid var(--vg-leaf-soft); }
.vg-notice--error { background: rgba(185, 28, 28, .25); border: 1px solid #f87171; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.vg-footer { font-size: .85rem; }
.vg-footer .vg-section__body { padding-block: 3.5rem 2.5rem; }
.vg-footer__grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 640px) { .vg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vg-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .vg-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; } .vg-footer__brand { grid-column: auto; } }

.vg-footer__desc { margin: 1rem 0 .75rem; max-width: 26rem; font-size: .8rem; color: var(--vg-muted); }
.vg-footer__promise { margin: 0 0 1rem; font-family: var(--vg-mono); font-size: .75rem; font-weight: 500; color: var(--vg-copper); }
.vg-footer__title { margin: 0 0 1rem; font-family: var(--vg-mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vg-ivory); }
.vg-footer__menu, .vg-footer__geo { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.vg-footer__menu a { display: inline-block; padding: .2rem 0; color: var(--vg-muted); text-decoration: none; }
.vg-footer__menu a:hover { color: var(--vg-copper); }
.vg-footer__geo li strong { display: block; color: var(--vg-ivory); font-family: var(--vg-mono); font-size: .78rem; }
.vg-footer__geo li span { display: block; font-size: .75rem; color: var(--vg-muted); }

.vg-footer__legal { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.75rem; font-family: var(--vg-mono); font-size: .7rem; color: rgba(247, 244, 238, .55); }
.vg-footer__legal p { margin: 0; }
.vg-footer__disclaimer { font-size: .66rem; line-height: 1.5; opacity: .8; max-width: 42rem; }
@media (min-width: 900px) { .vg-footer__legal { flex-direction: row; justify-content: space-between; align-items: flex-start; } .vg-footer__disclaimer { text-align: right; } }

/* ==========================================================================
   12. Social + WhatsApp
   ========================================================================== */
.vg-social { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.vg-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	color: inherit; border: 1px solid rgba(255, 255, 255, .25); text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}
.vg-social--square .vg-social__link { border-radius: .6rem; }
.vg-social__link .vg-icon { width: 1.05rem; height: 1.05rem; }
.vg-social__link:hover { background: var(--vg-copper); border-color: var(--vg-copper); color: #fff; }
.vg-social--topbar .vg-social__link { width: 28px; height: 28px; border-color: transparent; }
.vg-social--topbar .vg-social__link .vg-icon { width: .9rem; height: .9rem; color: inherit; }
.vg-topbar--ivory .vg-social__link { border-color: var(--vg-line); }
.vg-footer .vg-social { margin-top: .5rem; }

.vg-wa {
	position: fixed; z-index: 90; bottom: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	display: inline-flex; align-items: center; gap: 0;
	height: 56px; width: 56px; padding: 0; justify-content: center; flex: none; box-sizing: border-box;
	border-radius: 999px; background: #25D366; color: #fff; text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s;
}
.vg-wa--right { right: 1.25rem; right: calc(1.25rem + env(safe-area-inset-right, 0px)); }
/* Lift the right-side button above the reCAPTCHA badge (about 60px tall, 14px from the bottom). */
.vg-wa--right { bottom: 6.25rem; bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px)); }
.vg-wa--left { left: 1.25rem; left: calc(1.25rem + env(safe-area-inset-left, 0px)); }
.vg-wa .vg-icon { width: 1.7rem; height: 1.7rem; }
.vg-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.vg-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .85rem; font-weight: 600; transition: max-width .3s, margin .3s; }
@media (hover: hover) and (min-width: 960px) {
	.vg-wa:hover, .vg-wa:focus-visible { width: auto; padding: 0 18px; }
	.vg-wa:hover .vg-wa__label, .vg-wa:focus-visible .vg-wa__label { max-width: 14rem; margin-left: .6rem; }
}
@media (max-width: 639.98px) { .vg-wa { height: 52px; width: 52px; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); } .vg-wa--right { right: 1rem; bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); } .vg-wa--left { left: 1rem; } }

/* ==========================================================================
   13. Inner pages (page / single / index / 404 / comments)
   ========================================================================== */
.vg-page { padding: 2.5rem 0 4rem; }
@media (min-width: 768px) { .vg-page { padding: 4rem 0 5rem; } }
.vg-page__head { margin-bottom: 2rem; }
.vg-page__title { margin: 0; font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--vg-forest); }
.vg-entry__thumb { margin-bottom: 2rem; }
.vg-entry__thumb img { border-radius: var(--vg-radius); width: 100%; }
.vg-entry__content { font-size: 1.05rem; }
.vg-entry__content h2, .vg-entry__content h3 { color: var(--vg-forest); margin-top: 2rem; }
.vg-entry__content a { color: var(--vg-forest); text-decoration-color: var(--vg-copper); }
.vg-entry__content img, .vg-entry__content iframe, .vg-entry__content video { max-width: 100%; }
.vg-entry__content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.vg-entry__content th, .vg-entry__content td { padding: .5rem .75rem; border: 1px solid var(--vg-line); }
.vg-entry__content blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--vg-copper); background: rgba(15, 59, 46, .05); }
.vg-entry__content .alignwide { max-width: min(80rem, 100vw - 2rem); }

.vg-posts { display: grid; gap: 2rem; margin-bottom: 2rem; }
.vg-post { padding-bottom: 2rem; border-bottom: 1px solid var(--vg-line); }
.vg-post__thumb img { border-radius: var(--vg-radius); width: 100%; margin-bottom: 1rem; }
.vg-post__title { font-size: 1.5rem; margin: 0 0 .25rem; }
.vg-post__title a { color: var(--vg-forest); text-decoration: none; }
.vg-post__title a:hover { color: var(--vg-copper); }
.vg-post__meta { font-family: var(--vg-mono); font-size: .75rem; color: #6b6b6b; }

.navigation.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 .75rem; border: 1px solid var(--vg-line); border-radius: .5rem; text-decoration: none; }
.page-numbers.current { background: var(--vg-forest); color: #fff; border-color: var(--vg-forest); }
.post-navigation { margin-top: 2rem; }

.vg-404 { text-align: center; }
.vg-404__code { margin: 0; font-family: var(--vg-mono); font-size: 5rem; font-weight: 700; color: var(--vg-copper); line-height: 1; }

.vg-comments { margin-top: 3rem; }
.vg-comments__list { list-style: none; padding: 0; }
.vg-comments__list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--vg-line); }
.vg-comments input[type="text"], .vg-comments input[type="email"], .vg-comments input[type="url"], .vg-comments textarea {
	width: 100%; padding: .6rem .8rem; font: inherit; font-size: 16px; border: 1px solid var(--vg-line); border-radius: .5rem; background: #fff;
}
.vg-comments .submit { background: var(--vg-copper); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.5rem; font-weight: 600; }

.search-form { display: flex; gap: .5rem; }
.search-form .search-field { flex: 1; min-height: 44px; padding: .5rem .8rem; font-size: 16px; border: 1px solid var(--vg-line); border-radius: .5rem; }
.search-form .search-submit { min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--vg-forest); color: #fff; font-weight: 600; }

/* WP core alignment helpers */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .8rem; color: #6b6b6b; }
@media (max-width: 599px) { .alignleft, .alignright { float: none; margin: 0 0 1rem; } }

/* ==========================================================================
   Legal pages, cookie consent
   ========================================================================== */
.vg-consent[hidden], .vg-consent-gate[hidden], .vg-consent-dialog:not([open]) { display: none !important; }

/* Footer legal links. */
.vg-footer__links { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.vg-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.vg-footer__links a, .vg-linkbtn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0;
	font: inherit; font-size: .8rem; font-weight: 600; color: rgba(247, 244, 238, .75);
	text-decoration: underline; text-underline-offset: 3px;
	background: none; border: 0; cursor: pointer;
}
.vg-footer__links a:hover, .vg-linkbtn:hover { color: #fff; }
.vg-footer__links a:focus-visible, .vg-linkbtn:focus-visible { outline: 2px solid var(--vg-copper); outline-offset: 2px; }

/* Legal page body. */
.vg-legal__updated { font-size: .85rem; opacity: .7; margin: 0 0 1.5rem; }
.vg-legal h2 { margin: 2rem 0 .75rem; font-size: 1.25rem; line-height: 1.3; }
.vg-legal ul { padding-left: 1.25rem; }
.vg-legal li { margin: .35rem 0; }
.vg-legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.vg-legal th, .vg-legal td { padding: .6rem .75rem; border: 1px solid var(--vg-line); text-align: left; vertical-align: top; min-width: 8rem; }
.vg-legal th { background: rgba(15, 59, 46, .06); font-weight: 700; }

/* Note under the contact form. */
.vg-form__legal { margin: 1rem 0 0; font-size: .75rem; line-height: 1.5; opacity: .75; text-align: center; }
.vg-form__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Notice that replaces the form until reCAPTCHA is allowed. */
.vg-consent-gate {
	display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
	margin: 0 0 1rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
}
.vg-consent-gate p { margin: 0; font-size: .9rem; }

/* Banner. */
.vg-consent {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
	max-height: 70vh; overflow-y: auto;
	padding: 1rem 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	background: var(--vg-forest-dark); color: var(--vg-ivory);
	border-top: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 -12px 32px rgba(0, 0, 0, .3);
}
.vg-consent__inner { display: flex; flex-direction: column; gap: 1rem; }
.vg-consent__text p { margin: 0; font-size: .875rem; line-height: 1.5; }
.vg-consent__text .vg-consent__title { margin-bottom: .25rem; font-weight: 700; font-size: .95rem; }
.vg-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vg-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Reject and Accept are the same size and style: neither is favoured. */
.vg-consent__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 1.1rem; font: inherit; font-size: .85rem; font-weight: 700;
	border: 1px solid transparent; border-radius: 4px; cursor: pointer;
}
.vg-consent__btn--main { background: var(--vg-copper); color: var(--vg-carbon); flex: 1 1 8rem; }
.vg-consent__btn--main:hover { filter: brightness(1.08); }
.vg-consent__btn--link { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; flex: 1 1 100%; }
.vg-consent__btn:focus-visible, .vg-consent-dialog__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 900px) {
	.vg-consent__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
	.vg-consent__text { max-width: 52rem; }
	.vg-consent__actions { flex: none; flex-wrap: nowrap; }
	.vg-consent__btn--main { flex: none; }
	.vg-consent__btn--link { flex: none; }
}

/* Preferences dialog. */
.vg-consent-dialog {
	width: min(560px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
	padding: 0; border: 1px solid var(--vg-line); border-radius: 8px;
	background: var(--vg-ivory); color: var(--vg-carbon);
}
.vg-consent-dialog::backdrop { background: rgba(8, 35, 27, .65); }
.vg-consent-dialog__form { display: flex; flex-direction: column; max-height: inherit; }
.vg-consent-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--vg-line); }
.vg-consent-dialog__head h2 { margin: 0; font-size: 1.1rem; color: var(--vg-forest); }
.vg-consent-dialog__close { width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: inherit; }
.vg-consent-dialog__close:focus-visible { outline-color: var(--vg-forest); }
.vg-consent-dialog__body { padding: .5rem 1.25rem; overflow-y: auto; }
.vg-consent-dialog__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--vg-line); }
.vg-consent-dialog .vg-consent__btn:focus-visible { outline-color: var(--vg-forest); }

.vg-consent-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--vg-line); }
.vg-consent-cat:last-child { border-bottom: 0; }
.vg-consent-cat p { margin: 0; }
.vg-consent-cat__name { font-weight: 700; margin-bottom: .25rem !important; }
.vg-consent-cat__desc { font-size: .85rem; line-height: 1.5; color: #4a4a4a; }
.vg-consent-cat__always { flex: none; font-size: .75rem; font-weight: 700; color: var(--vg-leaf); white-space: nowrap; padding-top: .15rem; }

/* Toggle switch (a real checkbox underneath). */
.vg-switch { position: relative; flex: none; display: inline-block; width: 48px; height: 28px; cursor: pointer; }
.vg-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vg-switch__track { position: absolute; inset: 0; border-radius: 999px; background: #8a8a8a; transition: background .2s; }
.vg-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.vg-switch input:checked + .vg-switch__track { background: var(--vg-leaf); }
.vg-switch input:checked + .vg-switch__track::after { transform: translateX(20px); }
.vg-switch input:focus-visible + .vg-switch__track { outline: 2px solid var(--vg-forest); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vg-switch__track, .vg-switch__track::after { transition: none; } }
