/* ==========================================================================
   Vendo 2026 — base: tokens, reset, layout, type, buttons, form fields.
   Desktop values are 1:1 with the Figma 1728px frames (content column 1600px,
   64px gutters). Text uses `text-box: trim-both cap alphabetic` like Figma's
   cap-height trimming, so vertical gaps can be taken straight from the design:
   gap = next cap-top − (this cap-top + (lines − 1) × line-height + cap-height).
   Cap height ≈ 0.72em (Manrope), ≈ 0.69em (Instrument Serif).
   ========================================================================== */

/* Tokens live in tokens.css (loaded first). */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--vd-header-h); }
body.vd { margin: 0; background: var(--vd-color-bg); color: var(--vd-color-text); font: 400 16px/1.5 var(--vd-font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
.vd :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.vd :where(ul, ol) { padding: 0; list-style: none; }
.vd :where(img, svg, video) { display: block; max-width: 100%; height: auto; }
.vd :where(a) { color: inherit; text-decoration: none; }
.vd :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.vd :where(h1, h2, h3, h4, h5, h6) { font-weight: 700; line-height: normal; }
.vd :where(em) { font-family: var(--vd-font-accent); font-style: italic; font-weight: 400; }
.vd :focus-visible { outline: 2px solid var(--vd-color-brand); outline-offset: 3px; }

/* Cap-height trimming (Figma "text-box-trim"). */
.vd :where(h1, h2, h3, h4, h5, h6, p, .vd-t) { text-box: trim-both cap alphabetic; }

.vd-sr, .vd-form-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vd-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; background: var(--vd-color-brand); color: var(--vd-color-ink); border-radius: 8px; font-weight: 600; }
.vd-skip:focus { top: 16px; }

/* ---- layout ---- */
.vd-wrap { width: 100%; max-width: calc(var(--vd-container-max) + 2 * var(--vd-container-gutter)); margin-inline: auto; padding-inline: var(--vd-container-gutter); }

/* ---- type helpers ---- */
.vd-serif { font-family: var(--vd-font-accent); font-style: italic; font-weight: 400; }
.vd-green { color: var(--vd-color-brand); }
.vd-white { color: var(--vd-color-text); }
/* Section heading: Manrope + green serif-italic accent, e.g. "Core <em>Services</em>". */
.vd-h2 { font: 700 40px/normal var(--vd-font-body); }
.vd-h2 em { color: var(--vd-color-brand); }

/* ---- buttons (Figma "primary-cta" / "secondary-cta" / "primary-new-btn") ---- */
.vd-btn {
	display: inline-flex; align-items: center; justify-content: center; --vd-btn-gap: 8.732px; gap: var(--vd-btn-gap);
	min-height: 45px; padding: 0 26.196px; border: .873px solid var(--vd-color-brand); border-radius: 26.196px;
	font: 600 13.97px/1 var(--vd-font-body); letter-spacing: 1.1176px; text-transform: uppercase; white-space: nowrap;
	transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, box-shadow .18s ease-out, margin-left .18s ease-out;
}
.vd-btn-primary { background: var(--vd-color-brand); color: var(--vd-color-ink); }
.vd-btn-primary.vd-btn-dark { color: var(--vd-color-on-brand); }           /* primary-new-btn: black label */
.vd-btn-regular { font-weight: 400; }
.vd-btn-secondary { background: transparent; color: var(--vd-color-brand); }
/* Hover = Figma "Button" (Kind=Primary/Secondary, State=Hover): an arrow slides in beside the label.
   The header and homepage use a different Figma family; chrome.css and home.css override these. */
.vd-btn::after {
	content: '\2192'; flex: none; width: 0; margin-left: calc(-1 * var(--vd-btn-gap)); overflow: hidden; opacity: 0;
	font: 600 16px/1 var(--vd-font-body); letter-spacing: 0;
	transition: width .18s ease-out, margin-left .18s ease-out, opacity .18s ease-out;
}
.vd-btn-secondary::after { color: var(--vd-color-brand); }
.vd-btn-dark::after { content: none; }
@media (hover: hover) {
	.vd-btn:hover::after { width: 17px; margin-left: calc(10px - var(--vd-btn-gap)); opacity: 1; } /* Figma's 10px between label and arrow */
	.vd-btn-primary:hover { background: var(--vd-color-brand-hover); border-color: var(--vd-color-brand-hover); box-shadow: 0 0 24px rgb(var(--vd-rgb-brand) / .35); }
	.vd-btn-secondary:hover { background: rgb(var(--vd-rgb-brand) / .12); }
	/* Figma "primary-new-btn" (homepage + footer form): dark fill, white label. */
	.vd-btn-primary.vd-btn-dark { transition-duration: .3s; }
	.vd-btn-primary.vd-btn-dark:hover { background: var(--vd-color-brand-pressed); border-color: var(--vd-color-brand-pressed); color: var(--vd-color-text); box-shadow: none; }
}
.vd-btn img { width: 16px; height: 16px; }

/* Outline tag pill (e.g. "ABOUT US", filters). */
.vd-tag {
	display: inline-flex; align-items: center; justify-content: center; height: 33px; padding: 0 26px;
	border: 1px solid var(--vd-color-brand); border-radius: 31.133px; backdrop-filter: blur(2px);
	font: 400 14px/1.2 var(--vd-font-label); color: var(--vd-color-brand); white-space: nowrap;
}

/* Round arrow buttons used by carousels. */
.vd-arrow { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; transition: opacity .2s; }
.vd-arrow[disabled] { opacity: .35; cursor: default; }
.vd-arrow-prev img { transform: rotate(180deg); }
/* Sliders you can drag with a mouse (vd.js adds these classes). */
.vd-draggable { cursor: grab; }
.vd-draggable.is-drag, .vd-draggable.is-drag * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.vd-drag-scroll.is-drag { scroll-snap-type: none !important; scroll-behavior: auto !important; }
.vd-drag-scroll.is-drag > * { pointer-events: none; }
.vd-draggable img { -webkit-user-drag: none; }

/* ---- form fields (footer + contact) ---- */
.vd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vd-field { position: relative; display: block; }
.vd-field input, .vd-field textarea {
	display: block; width: 100%; height: 56px; padding: 0 28.996px; border: 1px solid transparent; border-radius: 7.249px;
	background: var(--vd-color-bg); color: var(--vd-color-text); font: 400 16px/1.4 var(--vd-font-body); outline: 0; transition: border-color .2s;
}
.vd-field textarea { height: 176px; padding-top: 22px; resize: vertical; grid-column: 1 / -1; }
.vd-field-area { grid-column: 1 / -1; }
.vd-field input:focus, .vd-field textarea:focus { border-color: var(--vd-color-brand-line); }
.vd-ph { position: absolute; left: 29px; top: 28px; transform: translateY(-50%); pointer-events: none; font: 200 16px/1 var(--vd-font-body); color: var(--vd-color-text); white-space: nowrap; transition: opacity .15s; }
.vd-ph b { font-weight: 200; color: var(--vd-color-brand); }
.vd-ph i { font: italic 400 16px/1 var(--vd-font-accent); }
.vd-field-area .vd-ph { top: 30px; }
/* Focused but empty: keep the label visible (dimmed) so the visitor knows which field they're in.
   '~' not '+': password-manager extensions inject an icon right after the input. */
.vd-field :is(input, textarea):focus ~ .vd-ph { opacity: .55; }
.vd-field :is(input, textarea):not(:placeholder-shown) ~ .vd-ph { opacity: 0; }
.vd-consent { position: relative; display: flex; align-items: center; gap: 9px; font: 400 14px/1.5 var(--vd-font-body); cursor: pointer; }
.vd-consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.vd-check { flex: none; width: 20px; height: 20px; border: 1px solid var(--vd-color-brand); border-radius: 6px; display: grid; place-items: center; }
.vd-consent input:checked + .vd-check::after { content: ''; width: 10px; height: 6px; border: solid var(--vd-color-brand); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.vd-consent input:focus-visible + .vd-check { outline: 2px solid var(--vd-color-brand); outline-offset: 2px; }
.vd-consent a { text-decoration: underline; text-underline-offset: 2px; }
.vd-form-msg { padding: 14px 18px; border-radius: 8px; font-size: 15px; line-height: 1.5; text-box: none; }
.vd-form-msg.is-ok { background: rgb(var(--vd-rgb-brand) / .12); color: var(--vd-color-brand); }
.vd-form-msg.is-err { background: rgb(var(--vd-rgb-error) / .12); color: var(--vd-color-text-error); }
/* 320–400px phones: long button labels ("Book a strategy conversation") wrap instead of running off the screen. */
@media (max-width: 400px) {
	.vd-btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-block: 12px; }
}
/* Touch screens: iOS Safari zooms the page into any field under 16px when it's focused. */
@media (pointer: coarse) {
	.vd :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px; }
}

@media (max-width: 640px) {
	.vd-form-grid { grid-template-columns: 1fr; }
	.vd-h2 { font-size: 30px; }
}

/* ---- reveal-on-scroll (opt-in: add .vd-reveal; vd.js adds .is-in) ---- */
@media (prefers-reduced-motion: no-preference) {
	.vd-js .vd-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
	.vd-js .vd-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vd *, .vd *::before, .vd *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.vd-nowrap { white-space: nowrap; }

/* QA 2026-11-20: the consent line's privacy policy link shows it is clickable on hover. */
.vd-consent a { transition: color .2s; }
.vd-consent a:hover { color: var(--vd-color-brand); }
