/* ==========================================================================
   Valuezen design system — deep teal + gold
   Colour tokens mirror js/tailwind-config.js. Text pairs are WCAG AA (≥ 4.5:1).
   ========================================================================== */

:root {
  --brand-50: #EEF5F3;
  --brand-100: #D6E4E1;
  --brand-700: #0F4C4A;
  --brand-800: #0B3B3A;
  --brand-900: #0A2A2C;
  --brand-950: #071C1E;
  --gold-50: #FBF3DE;
  --gold-400: #D9B563;
  --gold-700: #8A6516;
  --gold-800: #7A5A12;
  --ink-900: #1B2A2C;
  --ink-600: #4B5A5C;
  --paper: #FAF8F3;
  --paper-200: #F2EEE5;
  --line: #E5DFD3;

  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow-soft: 0 1px 2px rgb(10 42 44 / 0.04), 0 8px 24px -12px rgb(10 42 44 / 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base ------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background-color: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: inherit;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

::selection { background: var(--gold-400); color: var(--brand-900); }

:focus-visible {
  outline: 2px solid var(--gold-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.container-vz {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) { .container-vz { padding-left: 2rem; padding-right: 2rem; } }

.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 6.5rem 0; } }

/* Section header --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--gold-400);
}
.eyebrow.center { align-items: center; }
.on-dark .eyebrow { color: var(--gold-400); }

.h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 600;
  margin-top: 0.9rem;
}
.lead {
  color: var(--ink-600);
  font-size: 1.0625rem;
  margin-top: 1rem;
  max-width: 42rem;
}
.on-dark .lead { color: var(--brand-100); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
  cursor: pointer;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }

.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }

.btn-outline { border-color: var(--brand-700); color: var(--brand-700); background: transparent; }
.btn-outline:hover { background: var(--brand-700); color: #fff; }

.btn-gold { background: var(--gold-400); color: var(--brand-900); }
.btn-gold:hover { background: #E4C57C; }

.btn-light-outline { border-color: rgb(214 228 225 / 0.5); color: #fff; background: transparent; }
.btn-light-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn[disabled] { opacity: 0.6; cursor: wait; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brand-700);
}
.link-arrow i { transition: transform 0.2s var(--ease); font-size: 0.8em; }
.link-arrow:hover i { transform: translateX(3px); }

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}
.card-hover {
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--brand-700);
  box-shadow: var(--shadow-soft);
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.icon-tile.gold { background: var(--gold-50); color: var(--gold-800); }

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-900);
}
.check-list li + li { margin-top: 0.7rem; }
.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.on-dark .check-list li { color: #fff; }
.on-dark .check-list li::before { background: rgb(217 181 99 / 0.18); color: var(--gold-400); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand-700);
}
.chip.gold { background: var(--gold-50); color: var(--gold-800); }
.chip.neutral { background: var(--paper-200); color: var(--ink-600); }

/* Placeholder for owner-supplied facts (see CONTENT-TODO.md) -------------- */
.vz-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.05rem 0.5rem;
  border: 1px dashed var(--gold-700);
  border-radius: 6px;
  background: var(--gold-50);
  color: var(--gold-800);
  font-size: 0.875em;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  white-space: nowrap;
}
.vz-placeholder::before {
  content: '\f303';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75em;
}

/* Navigation ------------------------------------------------------------- */
.topbar { background: var(--brand-950); color: var(--brand-100); font-size: 0.8125rem; }
.topbar a { color: var(--gold-400); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

#navbar {
  background: rgb(250 248 243 / 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#navbar.nav-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgb(10 42 44 / 0.4); }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-700);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--brand-900); line-height: 1; }
.brand-sub { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-600); font-weight: 600; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-900);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--brand-700); }
.nav-link:hover::after, .nav-link.nav-active::after { transform: scaleX(1); }
.nav-link.nav-active { color: var(--brand-700); font-weight: 600; }

.has-dd { position: relative; }
.dd-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 21rem;
  padding-top: 0.75rem;
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s var(--ease), visibility 0.18s;
  z-index: 60;
}
.has-dd:hover .dd-panel,
.has-dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
}
.dd-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem; border-radius: 10px; transition: background-color 0.15s ease; }
.dd-item:hover { background: var(--paper); }
.dd-item .icon-tile { width: 34px; height: 34px; font-size: 0.85rem; border-radius: 8px; }
.dd-title { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-900); line-height: 1.35; }
.dd-desc { display: block; font-size: 0.75rem; color: var(--ink-600); line-height: 1.45; margin-top: 0.1rem; }

.mobile-link { display: block; padding: 0.8rem 0.25rem; font-weight: 500; color: var(--ink-900); border-bottom: 1px solid var(--line); }
.mobile-accordion-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.mobile-accordion-btn .fa-chevron-down { transition: transform 0.2s ease; font-size: 0.75rem; color: var(--ink-600); }
.mobile-sub a { display: block; padding: 0.55rem 0.75rem; font-size: 0.9rem; color: var(--ink-600); }
.mobile-sub a:hover { color: var(--brand-700); }

/* Dark bands (hero, CTA) --------------------------------------------------- */
.band-dark {
  position: relative;
  background: var(--brand-900);
  color: #fff;
  isolation: isolate;
}
.band-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(214 228 225 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(214 228 225 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.band-dark::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(217 181 99 / 0.5), transparent);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }

.photo-frame { position: relative; }
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-card);
  z-index: 0;
}
.photo-frame img { position: relative; z-index: 1; border-radius: var(--radius-card); width: 100%; object-fit: cover; }

.page-hero { padding: 4.5rem 0 4rem; }
@media (min-width: 1024px) { .page-hero { padding: 6rem 0 5.5rem; } }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 600; margin-top: 1rem; max-width: 48rem; }

/* Track switcher & course filters ---------------------------------------- */
.seg {
  display: inline-flex;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.seg-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-600);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.seg-btn:hover { color: var(--brand-700); }
.seg-btn.is-active { background: var(--brand-700); color: #fff; }

/* Accordion -------------------------------------------------------------- */
.vz-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--brand-700);
  font-size: 0.9375rem;
}
.vz-accordion-icon { transition: transform 0.25s var(--ease); font-size: 0.75rem; }
.module-list li { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-900); }
.module-list li:first-child { border-top: 0; }
.module-num { font-family: var(--font-serif); font-weight: 700; color: var(--gold-700); min-width: 1.5rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item .vz-accordion-header { padding: 1.25rem 0; color: var(--ink-900); font-size: 1.0625rem; font-family: var(--font-serif); }
.faq-item .vz-accordion-body { padding-bottom: 1.25rem; color: var(--ink-600); }

/* Timeline (services process) --------------------------------------------- */
.step-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold-700);
  line-height: 1;
}

/* Forms ------------------------------------------------------------------ */
.field label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-900); margin-bottom: 0.4rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7778; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgb(15 76 74 / 0.15);
}
.radio-card { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; font-size: 0.9375rem; }
.radio-card:has(input:checked) { border-color: var(--brand-700); background: var(--brand-50); color: var(--brand-800); }
.radio-card input { accent-color: var(--brand-700); }

.form-status { font-size: 0.875rem; border-radius: 10px; padding: 0.8rem 1rem; }
.form-status.info { background: var(--gold-50); color: var(--gold-800); border: 1px solid rgb(138 101 22 / 0.3); }
.form-status.ok { background: var(--brand-50); color: var(--brand-800); border: 1px solid rgb(15 76 74 / 0.25); }
.form-status.err { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3C4C4; }

/* Modal ------------------------------------------------------------------ */
.vz-modal { position: fixed; inset: 0; z-index: 80; background: rgb(7 28 30 / 0.6); backdrop-filter: blur(3px); align-items: center; justify-content: center; padding: 1rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--brand-950); color: #A9B8B6; font-size: 0.9375rem; border-top: 1px solid rgb(217 181 99 / 0.45); }
.site-footer h4 { font-family: var(--font-sans); color: #fff; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer .vz-placeholder { background: rgb(217 181 99 / 0.12); color: var(--gold-400); border-color: rgb(217 181 99 / 0.6); }

/* Toast ------------------------------------------------------------------ */
.toast-container { position: fixed; bottom: 1.25rem; right: 1.25rem; left: 1.25rem; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 26rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--brand-900);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: toastIn 0.3s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Scroll reveal ---------------------------------------------------------- */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-init.revealed { opacity: 1; transform: none; }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.fade-in { animation: fadeIn 0.35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

.chip:empty { display: none; }
