/* ==========================================================================
   VM Site System — extends the Vikas Malpani theme design system.
   Same palette, same type, same components. Adds: WCAG AA contrast,
   focus states, reduced motion, 44px touch targets, and the components
   for the two-door story (reinvent yourself / reinvent your business).
   ========================================================================== */

/* ---------- 1. Accessible tokens (same brand family) ---------- */
:root {
  --color-muted: #6B5D4D;          /* was #8B7D6B (3.9:1) -> 6.2:1 on cream */
  --color-accent: #A8520F;         /* was #C4631A (3.9:1) -> 5.2:1, the theme's own hover orange */
  --color-accent-hover: #8A430C;
  --vm-accent-bright: #C4631A;     /* decorative use only (lines, rings) */
  --vm-radius: 0.75rem;
  --vm-ease: cubic-bezier(.2, .7, .2, 1);
}

.accent-line { background: var(--vm-accent-bright); }

/* ---------- 2. Accessibility + interaction baseline ---------- */
.vm-skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--color-bark); color: var(--color-cream);
  padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem;
}
.vm-skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--vm-accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn, .nav-cta, .connect-link { min-height: 44px; }
.btn--link { min-height: 44px; }
.btn, .nav-cta, .connect-link, .card, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Inputs at 16px stop iOS zoom-on-focus */
input[type="email"], input[type="text"], textarea, select { font-size: 16px !important; }

/* Anchor targets clear the fixed nav */
section[id], h2[id], h3[id], :target { scroll-margin-top: 104px; }

/* Content never stays hidden if scripts fail */
@media (scripting: none) { .reveal, .anim-up { opacity: 1 !important; transform: none !important; animation: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-up, .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .card, .card:hover, .btn { transition: none !important; transform: none !important; }
}

/* Mobile menu list (theme printed bare <li> items) */
.vm-mobile-links { list-style: none; margin: 0; padding: 0; }
.vm-mobile-links a { min-height: 44px; display: flex !important; align-items: center; }

/* ---------- 3. Shared components ---------- */
.vm-ico { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.2s var(--vm-ease); }
a:hover > .vm-ico { transform: translateX(3px); }

.vm-kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--color-walnut);
  background: rgba(196, 99, 26, 0.08);
  border: 1px solid rgba(196, 99, 26, 0.22);
  border-radius: 9999px; padding: 0.375rem 0.875rem; margin: 0 0 1.5rem;
}

.vm-eyebrow {
  display: block; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-accent); margin: 0 0 0.5rem;
}
.vm-eyebrow--amber { color: #8A5A00; }

.vm-btn-lg { padding: 0.75rem 1.375rem; font-size: 0.9375rem; font-weight: 600; }
.vm-btn-outline {
  background: transparent; color: var(--color-bark);
  border: 1.5px solid var(--color-bark);
}
.vm-btn-outline:hover { background: var(--color-bark); color: var(--color-cream); }

.vm-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }
.vm-cta-row--center { justify-content: center; }

.vm-role { font-size: 0.875rem; font-weight: 600; color: var(--color-accent); margin-bottom: 0.75rem; }
.vm-card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.vm-years { font-size: 0.75rem; color: var(--color-muted); }
.vm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-sage); display: inline-block; }
.vm-card-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.125rem; }

.card p:last-child { margin-bottom: 0; }
.card .btn--link { margin-top: 0.5rem; }

/* ---------- 4. Hero ---------- */
.vm-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .vm-hero__grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; } }
.vm-hero h1 { max-width: 15ch; }
@media (min-width: 1024px) { .vm-hero h1 { font-size: clamp(2.75rem, 4.6vw, 4.25rem); } }
.vm-hero .hero__desc { max-width: 40rem; }
.vm-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.vm-hero__portrait { margin: 0; order: -1; justify-self: start; text-align: center; }
@media (min-width: 1024px) { .vm-hero__portrait { order: 0; justify-self: end; } }
.vm-hero__portrait img {
  width: 7rem; height: 7rem; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-warm), 0 18px 40px rgba(44, 36, 22, 0.14);
}
@media (min-width: 1024px) { .vm-hero__portrait img { width: 17rem; height: 17rem; } }
.vm-hero__portrait figcaption {
  display: none; margin-top: 1.25rem; font-size: 0.875rem; color: var(--color-muted);
  align-items: center; justify-content: center; gap: 0.5rem;
}
@media (min-width: 1024px) { .vm-hero__portrait figcaption { display: flex; } }
.vm-hero__portrait figcaption a { font-weight: 600; color: var(--color-bark); text-decoration: underline; text-underline-offset: 3px; }
.vm-hero__portrait .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-sage); display: inline-block; }

.vm-proof {
  list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem;
}
@media (min-width: 768px) { .vm-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vm-proof li { display: flex; flex-direction: column; gap: 0.25rem; }
.vm-proof strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-bark); line-height: 1.1; }
.vm-proof span { font-size: 0.8125rem; color: var(--color-muted); line-height: 1.4; }

/* ---------- 5. Two doors ---------- */
.vm-doors-section { padding-top: 3rem; }
.vm-doors { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .vm-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-door { display: flex; flex-direction: column; padding: 2rem; }
@media (min-width: 768px) { .vm-door { padding: 2.5rem; } }
.vm-door .badge { align-self: flex-start; margin-bottom: 1.25rem; }
.vm-door h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-bottom: 0.75rem; }
.vm-door--business { background: var(--color-warm); border-color: rgba(92, 122, 94, 0.3); }
.vm-door__links { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--color-border); }
.vm-door__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: 0.375rem 0;
  font-size: 0.9375rem; font-weight: 600; color: var(--color-bark);
  border-bottom: 1px solid var(--color-border);
}
.vm-door__links li:last-child a { border-bottom: none; }
.vm-door__links a:hover { color: var(--color-accent); }
.vm-door:hover { transform: none; }

/* ---------- 6. Numbered steps ---------- */
.vm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: vmstep; }
@media (min-width: 768px) { .vm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vm-steps > li { counter-increment: vmstep; position: relative; padding-top: 3.75rem; }
.vm-steps > li::before {
  content: counter(vmstep);
  position: absolute; top: 1.5rem; left: 2rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.8125rem; line-height: 1;
  color: var(--color-cream); background: var(--color-bark);
}
.vm-steps h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.125rem; }
.section-warm .vm-steps > li { background: var(--color-cream); }

.vm-subhead { margin: 3.5rem 0 1.5rem; max-width: 44rem; }
.vm-subhead h3 { margin-bottom: 0.5rem; }
.vm-subhead p { margin: 0; }

.vm-industries .badge { margin-bottom: 1rem; }
.vm-industries h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.section-warm .vm-industries .card { background: var(--color-cream); }

/* ---------- 7. Quote ---------- */
.vm-quote-section { padding: 3.5rem 0; }
.vm-quote { margin: 0 auto; max-width: 48rem; text-align: center; }
.vm-quote blockquote { border: none; padding: 0; margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); color: var(--color-walnut); }
.vm-quote figcaption { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--color-muted); }

/* ---------- 8. Essays tracks ---------- */
.vm-tracks { display: grid; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 900px) { .vm-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-track__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.vm-track .featured-card { padding: 1.125rem 1.25rem; }
.vm-track .featured-card h4 { font-size: 1.0625rem; margin: 0 0 0.25rem; }
.vm-track .featured-card p { font-size: 0.8125rem; margin: 0; }
.vm-latest-title { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 0.5rem; }

/* ---------- 9. Deal / subscribe ---------- */
.vm-deal { max-width: 44rem; margin: 0 auto; text-align: center; }
.vm-deal .accent-line { margin: 0 auto 1.5rem; }
.vm-subscribe { margin-top: 2rem; }
.vm-subscribe__label { display: block; font-weight: 600; color: var(--color-bark); margin-bottom: 0.75rem; }
.vm-subscribe__row { display: flex; flex-direction: column; gap: 0.5rem; max-width: 30rem; margin: 0 auto; }
@media (min-width: 560px) { .vm-subscribe__row { flex-direction: row; } }
.vm-subscribe input[type="email"] {
  flex: 1; min-height: 44px; padding: 0.625rem 1rem;
  border: 1px solid var(--color-border); border-radius: 0.5rem;
  background: var(--color-cream); color: var(--color-bark); font-family: var(--font-sans);
}
.vm-subscribe input[type="email"]:focus { border-color: var(--color-accent); }
.vm-subscribe .btn { justify-content: center; }

/* ---------- 10. FAQ ---------- */
.vm-faq { display: grid; gap: 1rem; }
@media (min-width: 900px) { .vm-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-faq__item { background: var(--color-warm); border: 1px solid var(--color-border); border-radius: var(--vm-radius); padding: 1.5rem; }

/* ---------- 10b. Mobile refinements ---------- */
.vm-kicker__sep { color: var(--color-muted); }
@media (max-width: 639px) {
  .vm-kicker { flex-direction: column; align-items: flex-start; gap: 0.125rem; background: none; border: none; padding: 0; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--color-accent); }
  .vm-kicker__sep { display: none; }
  .vm-hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .vm-cta-row .btn--primary { flex: 1 1 100%; justify-content: center; }
}
/* Theme newsletter forms (connect band on every page) must not overflow small screens */
.newsletter-form { flex-wrap: wrap; max-width: min(24rem, 100%); }
.newsletter-strip__form { flex-wrap: wrap; max-width: 100%; }
.newsletter-form input[type="email"], .newsletter-strip__form input[type="email"] { min-width: 0; flex: 1 1 12rem; width: auto; min-height: 44px; }
.newsletter-form .btn, .newsletter-strip__form .btn { flex: 0 0 auto; justify-content: center; }
.vm-faq__item h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.vm-faq__item p { font-size: 0.9375rem; margin: 0; }

/* ---------- 11. In-page content components (About, Work with me, Speaking) ---------- */
.single-content .vm-split { display: grid; gap: 1rem; margin: 2rem 0 2.5rem; }
@media (min-width: 640px) { .single-content .vm-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.single-content .vm-split .card { padding: 1.5rem; }
.single-content .vm-split .card p { font-size: 0.9375rem; line-height: 1.65; margin-bottom: 0.75rem; }
.single-content .vm-split h3 { font-size: 1.25rem; margin: 0.75rem 0 0.5rem; }
.single-content .vm-split .badge { text-decoration: none; }
.single-content .vm-split a.btn--link { text-decoration: none; }
.single-content .vm-callout {
  border-left: 3px solid var(--vm-accent-bright); background: var(--color-warm);
  border-radius: 0 var(--vm-radius) var(--vm-radius) 0; padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.single-content .vm-callout p { margin: 0; color: var(--color-walnut); }
.single-content .wp-block-button__link { background: var(--color-bark); color: var(--color-cream); border-radius: 0.5rem; padding: 0.75rem 1.375rem; font-size: 0.9375rem; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.single-content .wp-block-button__link:hover { background: var(--color-walnut); color: var(--color-cream); }
.single-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--color-bark); border: 1.5px solid var(--color-bark); }
.single-content .is-style-outline .wp-block-button__link:hover { background: var(--color-bark); color: var(--color-cream); }
