/* Virtual Partners in Business: small design helpers.
   Most styling lives in theme.json. This file only adds the VPs block styles
   (choose them in the editor under Block > Styles) and a few finishing touches. */

/* ---------- Accessibility ---------- */
:where(a, button, summary, input, .wp-block-button__link):focus-visible {
	outline: 3px solid #00BFB4;
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
.wp-block-group.alignfull { overflow-x: clip; }
img { height: auto; }

/* ---------- Header ---------- */
.vps-site-header .wp-block-navigation a { text-decoration: none; color: #1E1724; padding: 10px 0; }
.vps-site-header .wp-block-navigation a:hover { color: #540D6E; }
.vps-site-header .wp-block-navigation .current-menu-item > a,
.vps-site-header .wp-block-navigation a[aria-current="page"] { color: #540D6E; box-shadow: inset 0 -3px 0 #F7C300; }
.vps-btn-small .wp-block-button__link { padding: 11px 20px; font-size: 15px; border-radius: 10px; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { color: #FFFFFF; font-size: 20px; }

/* ---------- Footer ---------- */
.vps-site-footer a { font-weight: 600; }
.vps-site-footer p { margin: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; box-sizing: border-box; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; padding: 13px 24px; }

/* ---------- Text styles ---------- */
/* Eyebrow: small uppercase label above a heading */
.is-style-vps-eyebrow { font-size: 14px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
/* Tag: pill-shaped label (e.g., "Our numbers lady") */
.is-style-vps-tag { display: inline-block; font-size: 12px !important; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; width: fit-content; }
/* Highlight inside headings/paragraphs (Highlight tool) gets rounded corners */
mark.has-inline-color { border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.has-inline-color:not([style*="rgba(0"]) { padding: 0 0.22em; }

/* ---------- Group styles ---------- */
/* Card: rounded box with padding */
.wp-block-group.is-style-vps-card { border-radius: 24px; padding: 32px 30px; }
/* Speech bubble: rounded box with a little tail, slightly tilted */
.wp-block-group.is-style-vps-bubble { position: relative; border-radius: 26px; padding: 30px 30px 34px; transform: rotate(-1.2deg); }
.wp-block-group.is-style-vps-bubble::after { content: ""; position: absolute; left: 40px; bottom: -11px; width: 24px; height: 24px; background: inherit; transform: rotate(45deg); }
.wp-block-column:nth-child(2) > .wp-block-group.is-style-vps-bubble { transform: rotate(1deg); }
.wp-block-column:nth-child(3) > .wp-block-group.is-style-vps-bubble { transform: rotate(-0.6deg); }
/* Brand stripes: yellow, teal, and coral slanted bars behind the content */
.wp-block-group.is-style-vps-stripes { position: relative; isolation: isolate; }
:where(.wp-block-group.is-style-vps-stripes) { padding: 24px 24px 24px 0; }
.wp-block-group.is-style-vps-stripes::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 36px; width: 150px; transform: skewX(-24deg);
	background: linear-gradient(90deg, #F7C300 0 40px, transparent 40px 54px, #00BFB4 54px 94px, transparent 94px 108px, #FE7C60 108px 148px, transparent 148px); }

/* ---------- Image styles ---------- */
.wp-block-image.is-style-vps-rounded img { border-radius: 24px; }
.wp-block-image.is-style-vps-framed img { border-radius: 24px; border: 6px solid #FFFFFF; box-shadow: 0 18px 40px rgba(84, 13, 110, 0.22); }
.wp-block-image.is-style-vps-circle img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; border: 6px solid #F7C300; }

/* ---------- Columns: journey map ---------- */
.wp-block-columns.is-style-vps-journey { position: relative; }
.wp-block-columns.is-style-vps-journey > .wp-block-column { position: relative; z-index: 1; text-align: center; }
@media (min-width: 1001px) {
	.wp-block-columns.is-style-vps-journey::before { content: ""; position: absolute; z-index: 0; top: 36px; left: 8%; right: 8%; border-top: 4px dashed #8E6A9E; }
	.wp-block-columns.is-style-vps-journey > .wp-block-column .wp-block-image { margin-left: auto; margin-right: auto; }
}
@media (max-width: 1000px) {
	.wp-block-columns.is-style-vps-journey { flex-wrap: wrap !important; gap: 24px !important; }
	.wp-block-columns.is-style-vps-journey > .wp-block-column { flex-basis: 100% !important; }
	.wp-block-columns.is-style-vps-journey::before { content: ""; position: absolute; z-index: 0; top: 24px; bottom: 24px; left: 36px; border-left: 4px dashed #8E6A9E; }
	.wp-block-columns.is-style-vps-journey > .wp-block-column { text-align: left; padding-left: 92px; min-height: 76px; }
	.wp-block-columns.is-style-vps-journey > .wp-block-column > :first-child { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Lists ---------- */
.wp-block-list.is-style-vps-checklist { list-style: none; padding-left: 0; }
.wp-block-list.is-style-vps-checklist li { position: relative; padding-left: 44px; margin-bottom: 14px; font-weight: 700; }
.wp-block-list.is-style-vps-checklist li::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #F7C300 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23540D6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }

.wp-block-list.is-style-vps-checklist li:nth-child(3n+2)::before { background-color: #00BFB4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1724' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.wp-block-list.is-style-vps-checklist li:nth-child(3n)::before { background-color: #FE7C60; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1724' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* ---------- Separator: four-color bar ---------- */
.wp-block-separator.is-style-vps-tricolor { border: 0; height: 8px; opacity: 1; max-width: none; background: linear-gradient(90deg, #540D6E 0 25%, #F7C300 25% 50%, #00BFB4 50% 75%, #FE7C60 75%); }

/* ---------- FAQ (Details block) ---------- */
.wp-block-details summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: #1E1724; font-size: 17px; }
.wp-block-details[open] summary { padding-bottom: 6px; }
.wp-block-details > :last-child { margin-bottom: 18px; }
.wp-block-details + .wp-block-details { margin-top: 12px; }

/* ---------- Number circle (paragraph style) ---------- */
p.is-style-vps-number { flex: 0 0 auto; width: 46px; height: 46px; margin: 0 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; line-height: 1; }
p.is-style-vps-number:not(.has-background) { background: #540D6E; }
p.is-style-vps-number:not(.has-text-color) { color: #FFFFFF; }

/* Pill tag on white gets a soft outline */
.is-style-vps-tag.has-white-background-color { border: 1px solid #B9A6C2; }

/* ---------- Portrait with brand circles (image style) ---------- */
.wp-block-image.is-style-vps-portrait { position: relative; isolation: isolate; max-width: 340px; margin-left: auto; margin-right: auto; padding: 0 18px 18px 0; box-sizing: border-box; }
.wp-block-image.is-style-vps-portrait::before { content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 88%; height: 88%; border-radius: 50%; background: #F7C300; }
.wp-block-image.is-style-vps-portrait::after { content: ""; position: absolute; z-index: -1; left: -6px; top: 6px; width: 64px; height: 64px; border-radius: 50%; background: #FE7C60; }
.wp-block-image.is-style-vps-portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; background: #00BFB4; }

/* ---------- Button icons (add a class under Block > Advanced) ---------- */
.wp-block-button[class*="vps-icon-"] .wp-block-button__link::before,
.wp-block-button.vps-icon-external .wp-block-button__link::after { content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--vps-icon) center / contain no-repeat; mask: var(--vps-icon) center / contain no-repeat; }
.wp-block-button.vps-icon-external .wp-block-button__link::before { display: none; }
.wp-block-button.vps-icon-external .wp-block-button__link::after { width: 16px; height: 16px; }
.wp-block-button.vps-icon-calendar { --vps-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.wp-block-button.vps-icon-email { --vps-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.wp-block-button.vps-icon-external { --vps-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.wp-block-button[class*="vps-icon-"] .has-ink-background-color::before,
.wp-block-button[class*="vps-icon-"] .has-purple-background-color::before { background: #F7C300; }
.wp-block-button[class*="vps-icon-"] .has-yellow-background-color::before,
.wp-block-button[class*="vps-icon-"] .has-white-background-color::before { background: #540D6E; }
.wp-block-button.vps-btn-left .wp-block-button__link { justify-content: flex-start; }
.wp-block-button__link.has-small-font-size { min-height: 44px; }

/* ---------- Layout helpers (add a class under Block > Advanced) ---------- */
/* vps-equal-height: on Columns, makes cards the same height; a final button or box sits at the bottom */
.vps-equal-height > .wp-block-column > .wp-block-group:only-child { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.vps-equal-height > .wp-block-column > .wp-block-group:only-child > :nth-last-child(2):has(+ :is(.wp-block-group, .wp-block-buttons)) { flex-grow: 1; }
/* vps-tilt: slight playful tilt */
.vps-tilt { transform: rotate(1deg); }
/* vps-hero-badge: small round icon that overlaps the corner of a hero photo */
.vps-hero-badge { position: absolute; left: -22px; bottom: 6px; z-index: 2; margin: 0 !important; }
/* vps-photo-pair: two round photos that overlap (About page) */
.vps-photo-pair { position: relative; min-height: 420px; }
.vps-photo-pair > .wp-block-image { position: absolute; margin: 0 !important; }
.vps-photo-pair > .wp-block-image:first-of-type { left: 0; top: 20px; }
.vps-photo-pair > .wp-block-image:last-of-type { right: 10px; bottom: 10px; }
@media (max-width: 480px) { .vps-photo-pair { min-height: 360px; } .vps-photo-pair > .wp-block-image img { width: 200px !important; height: 200px !important; } }
/* vps-sense-cents: underlines highlighted words (e.g., "sense" and "cents") */
.vps-sense-cents mark { font-weight: 800; font-size: 1.18em; border-bottom: 3px solid currentColor; }
/* vps-icon-row: icon next to text, top aligned */
.vps-icon-row > .wp-block-image { flex: 0 0 auto; margin: 0 !important; }
/* vps-video-card: video with a "Let's connect" pill overlapping the bottom */
.vps-video-card { position: relative; padding-bottom: 28px; }
.vps-video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; border: 6px solid #FFFFFF; box-sizing: border-box; background: #1E1724; box-shadow: 0 18px 40px rgba(84, 13, 110, 0.25); }
.vps-video-card .wp-block-buttons { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0 !important; }
.vps-video-card .wp-block-button__link { border: 3px solid #FFFFFF !important; box-shadow: 0 10px 24px rgba(30, 23, 36, 0.25); white-space: nowrap; }

/* ---------- Editor only: keep overlapping layouts easy to click ---------- */
.block-editor-block-list__block.vps-photo-pair > .wp-block-image { position: static; display: inline-block; margin: 0 12px 12px 0 !important; }
.block-editor-block-list__block.vps-photo-pair { min-height: 0; }
.block-editor-block-list__block.vps-hero-badge { position: absolute; }

/* ---------- Small extras used on the pages ---------- */
.vps-light-teal { background-color: #E6F5F4; }
.wp-block-button.vps-btn-outline-purple .wp-block-button__link { border: 2px solid #540D6E; }
.wp-block-separator.vps-mini-bar { width: 28px; height: 4px; border: 0; border-radius: 2px; margin: 0 !important; opacity: 1; }
.vps-stripes-alt.is-style-vps-stripes::before { background: linear-gradient(90deg, #00BFB4 0 40px, transparent 40px 54px, #F7C300 54px 94px, transparent 94px 108px, #FE7C60 108px 148px, transparent 148px); }
.vps-video-thumb { background-color: #3D0A51; overflow: hidden; }
.vps-video-thumb::before { opacity: 0.9; }
.vps-video-thumb .wp-block-image { position: relative; margin: 0 auto !important; }
.vps-card-clip { overflow: hidden; }

/* Full-width page sections sit flush against each other */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull { margin-block-end: 0; }
main.wp-block-group { margin-block-start: 0 !important; }
.wp-block-post-content + * , footer.wp-block-template-part { margin-block-start: 0 !important; }

/* Phones: keep full-width stripes out from behind the text */
@media (max-width: 600px) {
	.wp-block-group.alignfull.is-style-vps-stripes::before { top: auto; height: 56px; right: 0; }
}

/* ---------- Sticky header (approved 2026-11-24) ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
header.wp-block-template-part .vps-site-header { box-shadow: 0 2px 14px rgba(30, 23, 36, 0.08); }
/* Jump links and keyboard focus land below the pinned header */
html { scroll-padding-top: 112px; }
