/* ==========================================================================
   V.BuildCC — landing page (index.php)
   Modern architectural studio look: white canvas, soft sage tint, brand green,
   editorial two-column hero. Light + dark themes, English + Khmer typography.
   Class names are shared with index.php / header-home.php / footer-home.php /
   assets/js/home.js — keep them stable when editing.
   ========================================================================== */

:root {
  /* Brand palette (design system) */
  --vb-green: #86C440;          /* primary green — fills, accents */
  --vb-green-hover: #79B536;
  --vb-green-ink: #4C7A1A;      /* green for TEXT on white (≥ 4.5:1); #86C440 is too light for text */
  --vb-green-dark: #26352B;     /* dark green — text on green buttons, dark panels */
  --vb-green-tint: #EEF6E3;
  --vb-green-line: rgba(134, 196, 64, 0.35);

  /* Surfaces & text */
  --vb-bg: #FFFFFF;
  --vb-bg-alt: #F6F7F3;         /* secondary background */
  --vb-card: #FFFFFF;
  --vb-text: #25313C;
  --vb-text-muted: #56626C;     /* ≥ 5.5:1 on white */
  --vb-text-subtle: #7A848C;
  --vb-border: #E4E7E1;
  --vb-border-strong: #CDD3CB;
  --vb-header-bg: rgba(255, 255, 255, 0.86);
  --vb-shadow-sm: 0 2px 8px rgba(37, 49, 60, 0.06);
  --vb-shadow-md: 0 14px 34px -14px rgba(37, 49, 60, 0.18);
  --vb-shadow-lg: 0 28px 60px -24px rgba(37, 49, 60, 0.28);

  /* Legacy aliases (older rules / other templates may still reference these) */
  --vb-brand: var(--vb-green);
  --vb-brand-btn: var(--vb-green-ink);
  --vb-brand-dark: var(--vb-green-dark);
  --vb-brand-tint: var(--vb-green-tint);
  --vb-bg-tint: var(--vb-bg-alt);
  --vb-surface-dark: var(--vb-green-dark);

  /* Typography — English */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Typography — Khmer (applied by the lang-km rules below) */
  --font-heading-km: 'Kantumruy Pro', 'Noto Sans Khmer', system-ui, sans-serif;
  --font-body-km: 'Noto Sans Khmer', 'Kantumruy Pro', system-ui, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --header-h: 80px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --section-space: clamp(5rem, 9vw, 8.5rem);

  /* Motion */
  --transition-fast: 0.18s cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 0.28s cubic-bezier(0.2, 0, 0, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- Dark theme (toggle in the header; stored as localStorage "theme") ---------- */
:root[data-theme="dark"] {
  --vb-green-ink: #A6D96B;
  --vb-green-tint: rgba(134, 196, 64, 0.12);
  --vb-green-line: rgba(134, 196, 64, 0.3);
  --vb-bg: #121815;
  --vb-bg-alt: #19211C;
  --vb-card: #1D2620;
  --vb-text: #E9EDE7;
  --vb-text-muted: #AEB8AE;
  --vb-text-subtle: #8A948B;
  --vb-border: #2A352E;
  --vb-border-strong: #3A4740;
  --vb-header-bg: rgba(18, 24, 21, 0.82);
  --vb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --vb-shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
  --vb-shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- Khmer typography ----------
   Headings + UI: Kantumruy Pro 600–700. Body copy: Noto Sans Khmer 400.
   Khmer needs taller lines (stacked subscripts / vowel signs) and must never get
   letter-spacing or text-transform, which break glyph clusters. */
html.lang-km,
html[lang="km"] {
  --font-heading: var(--font-heading-km);
  --font-body: var(--font-body-km);
}
html.lang-km body.vb,
html[lang="km"] body.vb {
  line-height: 1.85;
}
html.lang-km :is(h1, h2, h3, h4, .vb-h1, .vb-h2, .vb-h3),
html[lang="km"] :is(h1, h2, h3, h4, .vb-h1, .vb-h2, .vb-h3) {
  line-height: 1.4;
  letter-spacing: normal;
  font-weight: 700;
}
html.lang-km :is(.vb-eyebrow, .vb-project__cat, .vb-clients__title, .vb-footer__title, .vb-cta__label, .vb-btn, .vb-nav__list a),
html[lang="km"] :is(.vb-eyebrow, .vb-project__cat, .vb-clients__title, .vb-footer__title, .vb-cta__label, .vb-btn, .vb-nav__list a) {
  letter-spacing: normal;
  text-transform: none;
}
/* Khmer glyphs need more size than Latin at small UI sizes */
html.lang-km :is(.vb-eyebrow, .vb-project__cat, .vb-clients__title, .vb-footer__title, .vb-cta__label),
html[lang="km"] :is(.vb-eyebrow, .vb-project__cat, .vb-clients__title, .vb-footer__title, .vb-cta__label) {
  font-size: 0.9375rem;
  font-weight: 600;
}
html.lang-km .vb-hero__badge-text small,
html[lang="km"] .vb-hero__badge-text small { font-size: 0.8125rem; }
html.lang-km :is(p, .vb-lead, .vb-body, li, dd, dt),
html[lang="km"] :is(p, .vb-lead, .vb-body, li, dd, dt) {
  font-weight: 400;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.vb {
  background-color: var(--vb-bg);
  color: var(--vb-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Long words / Khmer runs without spaces must wrap, never overflow */
body.vb :is(h1, h2, h3, p, li, a, dd, dt, span) {
  overflow-wrap: break-word;
}

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--vb-green);
  outline-offset: 3px;
  border-radius: 6px;
}

.vb-skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--vb-green-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition-fast);
}
.vb-skip:focus { top: 15px; }

.vb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout helpers & type scale
   ========================================================================== */
.vb-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.vb-section {
  padding-block: var(--section-space);
  position: relative;
}
.vb-section--tint { background-color: var(--vb-bg-alt); }
.vb-section--subtle { background-color: var(--vb-bg-alt); }

.vb-head {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}
.vb-head--left { text-align: left; margin-inline: 0; }
.vb-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: none;
  gap: 1.5rem;
}

.vb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vb-green-ink);
  margin-bottom: 1rem;
}
.vb-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--vb-green);
}
.vb-head:not(.vb-head--left):not(.vb-head--row) .vb-eyebrow::before { display: none; }

.vb-h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--vb-text);
  max-width: 650px;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.vb-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--vb-text);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.vb-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--vb-text);
  margin-bottom: 0.5rem;
}

.vb-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.7;
  color: var(--vb-text-muted);
  max-width: 560px;
}

.vb-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--vb-text-muted);
}

.vb-center { text-align: center; }

/* ==========================================================================
   Buttons & links (44–52px tall)
   ========================================================================== */
.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  font-family: var(--font-heading);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color var(--transition-base), border-color var(--transition-base),
    color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.vb-btn .vb-arrow { transition: transform var(--transition-fast); }
.vb-btn:hover .vb-arrow { transform: translateX(3px); }

.vb-btn--primary {
  background-color: var(--vb-green);
  color: var(--vb-green-dark);
  box-shadow: 0 6px 16px -6px rgba(134, 196, 64, 0.65);
}
.vb-btn--primary:hover {
  background-color: var(--vb-green-hover);
  color: var(--vb-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(134, 196, 64, 0.75);
}

.vb-btn--ghost {
  background-color: transparent;
  color: var(--vb-text);
  border-color: var(--vb-border-strong);
}
.vb-btn--ghost:hover {
  background-color: var(--vb-card);
  border-color: var(--vb-text);
  transform: translateY(-1px);
}

.vb-btn--dark {
  background-color: var(--vb-green);
  color: var(--vb-green-dark);
}
.vb-btn--dark:hover {
  background-color: var(--vb-green-hover);
  color: var(--vb-green-dark);
  transform: translateY(-1px);
}

.vb-btn--light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}
.vb-btn--light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

.vb-btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9063rem;
}

.vb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vb-text);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}
.vb-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: var(--vb-green);
  transition: width var(--transition-base);
}
.vb-link:hover { color: var(--vb-green-ink); }
.vb-link:hover::after { width: 100%; }
.vb-link .vb-arrow { transition: transform var(--transition-fast); }
.vb-link:hover .vb-arrow { transform: translateX(4px); }
.vb-link--sm { font-size: 0.875rem; }

.vb-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--vb-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}
.vb-textlink:hover { color: var(--vb-green-ink); }

.vb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Header — translucent sticky bar, single-line navigation
   ========================================================================== */
.vb-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--vb-header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}
.vb-header.vb-header--scrolled {
  border-bottom-color: var(--vb-border);
  box-shadow: var(--vb-shadow-sm);
}

.vb-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: clamp(1rem, 2vw, 2rem);
}

.vb-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.vb-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
/* the logo artwork is dark-on-transparent: give it a light plate in dark mode */
:root[data-theme="dark"] .vb-logo,
:root[data-theme="dark"] .vb-footer__brand img {
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 10px;
}

.vb-nav { min-width: 0; }
.vb-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  white-space: nowrap;
}
.vb-nav__list a {
  font-family: var(--font-heading);
  font-size: 0.9688rem;
  font-weight: 500;
  color: var(--vb-text);
  text-decoration: none;
  padding-block: 0.5rem;
  position: relative;
  transition: color var(--transition-fast);
}
.vb-nav__list a:hover,
.vb-nav__list a[aria-current="page"] { color: var(--vb-green-ink); }
.vb-nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--vb-green);
  transition: width var(--transition-fast);
}
.vb-nav__list a:hover::after { width: 100%; }
.vb-nav__list a[aria-current="page"] { font-weight: 600; }
.vb-nav__list a[aria-current="page"]::after { width: 100%; }
.vb-mobile__list a[aria-current="page"] { color: var(--vb-green-ink); }
html.lang-km .vb-nav__list a { font-weight: 600; }

.vb-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Compact KM | EN switch */
.vb-lang {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--vb-border);
  background: var(--vb-bg-alt);
}
.vb-lang__btn {
  height: 28px;
  min-width: 36px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vb-text-muted);
  padding: 0 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.vb-lang__btn[lang="km"] { font-family: var(--font-heading-km); letter-spacing: normal; }
.vb-lang__btn:hover { color: var(--vb-text); }
.vb-lang__btn[aria-pressed="true"],
.vb-lang__btn.is-active {
  background: var(--vb-card);
  color: var(--vb-text);
  box-shadow: var(--vb-shadow-sm);
}

/* Round icon buttons: theme toggle, staff shortcuts */
.vb-iconbtn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--vb-border);
  background: transparent;
  color: var(--vb-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.vb-iconbtn:hover {
  background: var(--vb-bg-alt);
  border-color: var(--vb-border-strong);
  color: var(--vb-green-ink);
}
.vb-iconbtn svg { width: 18px; height: 18px; }
.vb-theme .vb-theme__moon { display: none; }
:root[data-theme="dark"] .vb-theme .vb-theme__sun { display: none; }
:root[data-theme="dark"] .vb-theme .vb-theme__moon { display: block; }

.vb-header__quote { min-height: 44px; }

/* Hamburger */
.vb-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--vb-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.vb-burger__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.vb-burger__bars span {
  display: block;
  height: 2px;
  background-color: var(--vb-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.vb-burger[aria-expanded="true"] .vb-burger__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vb-burger[aria-expanded="true"] .vb-burger__bars span:nth-child(2) { opacity: 0; }
.vb-burger[aria-expanded="true"] .vb-burger__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.vb-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--vb-card);
  border-block: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow-md);
  padding-block: 1.25rem 1.75rem;
}
.vb-mobile[hidden] { display: none; }
.vb-mobile__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.vb-mobile__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--vb-text);
  text-decoration: none;
  border-bottom: 1px solid var(--vb-border);
}
.vb-mobile__list a:hover { color: var(--vb-green-ink); }
.vb-mobile__quote { width: 100%; }
.vb-mobile__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   1. Hero — two-column editorial composition
   ========================================================================== */
.vb-hero {
  position: relative;
  display: flex;
  align-items: center;
  /* fills the screen but leaves the top of the service strip visible */
  min-height: clamp(540px, calc(100svh - var(--header-h) - 110px), 780px);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
/* soft wash behind the text column only (no overlay on the photo) */
.vb-hero::before {
  content: '';
  position: absolute;
  inset: 0 45% 0 0;
  background: radial-gradient(120% 90% at 0% 30%, var(--vb-green-tint) 0%, transparent 62%);
  pointer-events: none;
}

.vb-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.vb-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 650px;
}
.vb-hero__text .vb-textlink { margin-top: 1.25rem; }

.vb-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vb-bg-alt);
  box-shadow: var(--vb-shadow-lg);
  height: clamp(380px, 62svh, 600px);
}
.vb-hero__media picture,
.vb-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.vb-hero__media:hover img { transform: scale(1.025); }

/* caption: a short dark gradient at the bottom edge only */
.vb-hero__badge {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.5rem 1.35rem;
  background: linear-gradient(to top, rgba(22, 31, 25, 0.78) 0%, rgba(22, 31, 25, 0.35) 55%, transparent 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.vb-hero__badge-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background-color: var(--vb-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(134, 196, 64, 0.25);
}
.vb-hero__badge-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.vb-hero__badge-text small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

/* ==========================================================================
   1b. Service navigation strip (below the hero)
   ========================================================================== */
.vb-snav {
  position: relative;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}
.vb-snav__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--vb-card);
  border: 1px solid var(--vb-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--vb-shadow-md);
  overflow: hidden;
}
.vb-snav__list li + li { border-left: 1px solid var(--vb-border); }
.vb-snav__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  min-height: 84px;
  padding: 1.1rem 1.35rem;
  color: var(--vb-text);
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
}
.vb-snav__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--vb-border);
  color: var(--vb-green-ink);
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.vb-snav__label {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.vb-snav__link .vb-arrow {
  flex-shrink: 0;
  color: var(--vb-text-subtle);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition-base), transform var(--transition-base), color var(--transition-base);
}
.vb-snav__link:hover,
.vb-snav__link:focus-visible { background: var(--vb-bg-alt); }
.vb-snav__link:hover .vb-snav__icon,
.vb-snav__link:focus-visible .vb-snav__icon {
  background: var(--vb-green);
  border-color: var(--vb-green);
  color: var(--vb-green-dark);
  transform: translateY(-2px);
}
.vb-snav__link:hover .vb-arrow,
.vb-snav__link:focus-visible .vb-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--vb-green-ink);
}

/* ==========================================================================
   2. About — image left, introduction right
   ========================================================================== */
.vb-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.75rem, 7vw, 6rem);
}

.vb-intro__media { position: relative; }
.vb-intro__img {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vb-bg-alt);
  box-shadow: var(--vb-shadow-md);
  aspect-ratio: 1 / 1;
}
.vb-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* small brand accent behind the photo */
.vb-intro__media::before {
  content: '';
  position: absolute;
  inset: auto auto -18px -18px;
  width: 42%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--vb-green-tint);
  z-index: -1;
}

.vb-intro__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.vb-intro__text .vb-h2 { margin-bottom: 0.25rem; }

.vb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-block: 0.75rem 0.5rem;
}
.vb-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--vb-bg-alt);
  border: 1px solid var(--vb-border);
}
.vb-stats dt {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vb-text-muted);
}
.vb-stats dd {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--vb-text);
}

/* ==========================================================================
   3. Services
   ========================================================================== */
.vb-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin-bottom: 2.75rem;
}
.vb-card {
  background: var(--vb-card);
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--vb-border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.vb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vb-shadow-md);
  border-color: var(--vb-green-line);
}
.vb-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--vb-green-line);
  background: var(--vb-green-tint);
  color: var(--vb-green-ink);
  margin-bottom: 1.4rem;
}
.vb-card .vb-h3 { margin-bottom: 0.65rem; }
.vb-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--vb-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   4. Featured projects
   ========================================================================== */
.vb-projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}
.vb-project {
  grid-column: span 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vb-card);
  border: 1px solid var(--vb-border);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}
.vb-project:hover { box-shadow: var(--vb-shadow-md); transform: translateY(-3px); }
.vb-project--lead { grid-column: span 12; }
.vb-project a {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.vb-project img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}
.vb-project--lead img { aspect-ratio: 21 / 9; }
.vb-project:hover img { transform: scale(1.03); }
.vb-project__body {
  padding: 1.25rem 1.5rem 1.4rem;
  background: var(--vb-card);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}
.vb-project__cat {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vb-green-ink);
}
.vb-project__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vb-text);
  line-height: 1.35;
  transition: color var(--transition-fast);
}
.vb-project:hover .vb-project__title { color: var(--vb-green-ink); }

/* ==========================================================================
   5. Why choose us
   ========================================================================== */
.vb-why {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.75rem, 7vw, 6rem);
}
.vb-why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.vb-why__list li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.vb-check {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vb-green);
  color: var(--vb-green-dark);
  border-radius: 50%;
  margin-top: 2px;
}
.vb-why__list .vb-h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.vb-why__list p { font-size: 0.95rem; color: var(--vb-text-muted); }
.vb-why__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vb-bg-alt);
  box-shadow: var(--vb-shadow-md);
  aspect-ratio: 4 / 3;
}
.vb-why__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   6. Process
   ========================================================================== */
.vb-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}
.vb-step {
  background: var(--vb-card);
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--vb-border);
  display: flex;
  flex-direction: column;
}
.vb-step__num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vb-green-tint);
  color: var(--vb-green-ink);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.vb-step .vb-h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.vb-step p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--vb-text-muted);
}

/* ==========================================================================
   7. Testimonial & clients
   ========================================================================== */
.vb-quote {
  max-width: 880px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background: var(--vb-card);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--vb-border);
}
.vb-quote blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--vb-text);
  margin-bottom: 1.75rem;
}
.vb-quote figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vb-text);
}
.vb-quote figcaption span {
  font-size: 0.875rem;
  color: var(--vb-green-ink);
  font-weight: 500;
}
.vb-clients { text-align: center; }
.vb-clients__title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vb-text-subtle);
  margin-bottom: 1.75rem;
}
.vb-clients picture,
.vb-clients img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  margin-inline: auto;
  display: block;
  border-radius: var(--radius-md);
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter var(--transition-base), opacity var(--transition-base);
}
.vb-clients:hover img { filter: grayscale(0%); opacity: 1; }

/* ==========================================================================
   8. CTA & contact
   ========================================================================== */
.vb-cta {
  background: var(--vb-green-dark);
  color: #FFFFFF;
  padding: clamp(2.25rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.vb-cta::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(134, 196, 64, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vb-cta .vb-h2 { color: #FFFFFF; }
.vb-cta .vb-body { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }
.vb-cta__contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.vb-cta__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vb-green);
  margin-bottom: 0.35rem;
}
.vb-cta__contact a {
  display: block;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.vb-cta__contact a:hover { color: var(--vb-green); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.vb-footer {
  background: var(--vb-bg-alt);
  border-top: 1px solid var(--vb-border);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
}
.vb-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.25rem;
}
.vb-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
.vb-footer__brand p {
  color: var(--vb-text-muted);
  font-size: 0.9375rem;
  max-width: 320px;
  margin-bottom: 1.5rem;
}
.vb-social {
  list-style: none;
  display: flex;
  gap: 0.6rem;
}
.vb-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vb-card);
  color: var(--vb-text);
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid var(--vb-border);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.vb-social a:hover {
  background: var(--vb-green);
  border-color: var(--vb-green);
  color: var(--vb-green-dark);
  transform: translateY(-2px);
}
.vb-footer__title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vb-text);
  margin-bottom: 1.15rem;
}
.vb-footer nav ul,
.vb-footer div ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.vb-footer a {
  color: var(--vb-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}
.vb-footer a:hover { color: var(--vb-green-ink); }
.vb-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--vb-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--vb-text-subtle);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.vb-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 24, 21, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.vb-modal[hidden] { display: none !important; }
.vb-modal__box {
  background: var(--vb-card);
  max-width: 480px;
  width: 100%;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--vb-shadow-lg);
  position: relative;
  animation: vbModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.vb-modal__box--center { text-align: center; }
@keyframes vbModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.vb-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: var(--vb-bg-alt);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--vb-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.vb-modal__close:hover { background: var(--vb-border); color: var(--vb-text); }
.vb-modal__tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--vb-green-tint);
  color: var(--vb-green-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--vb-green-line);
}
.vb-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}
.vb-form label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vb-text);
  margin-bottom: -0.5rem;
}
.vb-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--vb-border-strong);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--vb-text);
  background: var(--vb-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.vb-form input:focus {
  outline: none;
  border-color: var(--vb-green);
  box-shadow: 0 0 0 3px rgba(134, 196, 64, 0.25);
}

/* ==========================================================================
   Scroll reveal (only when JS is running: html.js is set in header-home.php)
   ========================================================================== */
html.js .vb-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .vb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .vb-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Below 1180px the full nav no longer fits on one line (esp. in Khmer): use the menu button */
@media (max-width: 1179px) {
  .vb-nav { display: none; }
  .vb-burger { display: inline-flex; }
}

@media (max-width: 1024px) {
  .vb-hero { min-height: 0; }
  .vb-hero::before { inset: 0; }
  .vb-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .vb-hero__media { height: auto; aspect-ratio: 16 / 10; }
  .vb-snav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-snav__list li + li { border-left: 0; }
  .vb-snav__list li:nth-child(even) { border-left: 1px solid var(--vb-border); }
  .vb-snav__list li:nth-child(n + 3) { border-top: 1px solid var(--vb-border); }
  .vb-snav__link .vb-arrow { opacity: 1; transform: none; }
  .vb-intro { grid-template-columns: 1fr; gap: 3rem; }
  .vb-intro__media { max-width: 560px; }
  .vb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-why { grid-template-columns: 1fr; gap: 3rem; }
  .vb-cta { grid-template-columns: 1fr; }
  .vb-cta__contact {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 2rem;
  }
  .vb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .vb-logo img { height: 38px; }
  .vb-header__quote,
  .vb-header__actions .vb-theme,
  .vb-header__actions .vb-staff { display: none; }
  .vb-h1 { font-size: clamp(2.125rem, 8.5vw, 2.625rem); }
  .vb-hero__media { aspect-ratio: 4 / 3; }
  .vb-actions .vb-btn { flex: 1 1 auto; }
  .vb-snav__list { grid-template-columns: 1fr; }
  .vb-snav__list li:nth-child(even) { border-left: 0; }
  .vb-snav__list li + li { border-top: 1px solid var(--vb-border); }
  .vb-snav__link { min-height: 68px; padding: 0.85rem 1.1rem; }
  .vb-cards { grid-template-columns: 1fr; }
  .vb-steps { grid-template-columns: 1fr; }
  .vb-project { grid-column: span 12; }
  .vb-project--lead img { aspect-ratio: 16 / 10; }
  .vb-head--row { flex-direction: column; align-items: flex-start; }
  .vb-stats { grid-template-columns: 1fr; }
  .vb-stats div { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .vb-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (min-width: 769px) {
  .vb-mobile__tools { display: none; }
}
