/* ============================================================
   MAIN.CSS v2 – Core Design System (Mobile-first)
   Varun Mohite Theme
   ============================================================ */

/* ----------------------------------------------
   1. ROOT TOKENS & RESET
---------------------------------------------- */

:root {
  /* Typography */
  --font-primary: 'Lexend', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, system-ui, sans-serif;

  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --text-h1: 2.35rem;
  --text-h2: 1.9rem;
  --text-h3: 1.4rem;
  --text-h4: 1.2rem;

  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;

  --color-primary: #1e3a8a;         /* Navy */
  --color-primary-light: #3b5bcc;
  --color-accent: #10b981;          /* Teal */

  --color-border: #e5e7eb;
  --color-card: #ffffff;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Spacing */
  --spacing-xs: 0.375rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;

  /* Containers */
  --container-max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------------------------------------------
   2. LAYOUT PRIMITIVES
   (Mobile-first; desktop rules come later)
---------------------------------------------- */

.vm-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.vm-section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  background: var(--color-bg);
}

.vm-section--alt {
  background: #f9fafc;
}

.vm-section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.vm-section__header {
  text-align: left;
  max-width: 740px;
  margin: 0 0 var(--spacing-xl) 0;
}

/* Centered sections (used on homepage + services) */
.vm-section--centered .vm-section__header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Titles, subtitles, eyebrow */
.vm-section__title {
  font-size: var(--text-h2);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
}

.vm-section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}

.vm-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

/* ----------------------------------------------
   3. GRID SYSTEM (MOBILE-FIRST)
---------------------------------------------- */

.vm-grid {
  display: grid;
  gap: var(--spacing-xl);
}

/* On mobile all grids collapse to 1 column.
   Column counts are added only on wider screens. */
.vm-grid--2,
.vm-grid--3,
.vm-grid--4 {
  grid-template-columns: 1fr;
}

/* Service cards stretch vertically */
.vm-grid--services {
  align-items: stretch;
}

/* ----------------------------------------------
   4. CARDS
---------------------------------------------- */

.vm-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* Keep legacy .card consistent */
.vm-card,
.card {
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .vm-card:hover,
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
    border-color: rgba(148, 163, 184, 0.7);
  }
}

.vm-card--soft {
  background: #fdfdff;
  border-color: #f1f5f9;
  box-shadow: var(--shadow-soft);
}

.vm-card--outline {
  border: 1.5px solid var(--color-border);
  background: #ffffff;
  box-shadow: none;
}

.vm-card__title {
  font-size: var(--text-h3);
  margin: 0 0 var(--spacing-sm);
}

.vm-card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-md);
  flex: 1;
}

.vm-card__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Service cards – equal height columns */
.vm-grid--services .vm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ----------------------------------------------
   5. HERO SECTION
---------------------------------------------- */

.vm-hero {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.vm-hero__grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: var(--spacing-2xl);
  align-items: center;
}

.vm-hero__content {
  max-width: 520px;
}

.vm-hero__title {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.vm-hero__highlight {
  color: var(--color-primary);
}

.vm-hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  max-width: 520px;
}

.vm-hero__support {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
}

.vm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.vm-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.vm-stat__value {
  font-size: var(--text-h3);
  font-weight: 600;
}

.vm-stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ----------------------------------------------
   6. LISTS
---------------------------------------------- */

.vm-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0 0 0;
}

.vm-list li {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.vm-list--check li::before {
  content: "✓";
  margin-right: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
}

/* ----------------------------------------------
   7. BUTTONS
---------------------------------------------- */

.vm-btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.vm-btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.vm-btn--primary:hover {
  background: var(--color-primary-light);
}

.vm-btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.vm-btn--ghost:hover {
  border-color: var(--color-text);
}

.vm-btn--full {
  width: 100%;
}

/* ----------------------------------------------
   8. FORMS
---------------------------------------------- */

.vm-form {
  display: grid;
  gap: var(--spacing-lg);
}

.vm-form__field label {
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  font-weight: 500;
}

.vm-form__field input,
.vm-form__field textarea {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.vm-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ----------------------------------------------
   9. CONTACT SECTION
---------------------------------------------- */

.vm-contact {
  display: grid;
  gap: var(--spacing-2xl);
}

.vm-contact__bullets li {
  color: var(--color-text);
}

/* ----------------------------------------------
   10. UTILITIES
---------------------------------------------- */

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

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

/* ----------------------------------------------
   11. HEADER & FOOTER
---------------------------------------------- */

.site-header {
  background: #ffffff;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.site-footer {
  background: var(--color-bg-alt);
  padding: var(--spacing-3xl) 0;
  border-top: 1px solid var(--color-border);
}

/* ----------------------------------------------
   12. SAAS HOMEPAGE EXTRAS
---------------------------------------------- */

.vm-hero--saas {
  position: relative;
  overflow: hidden;
}

.vm-hero--saas::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at top,
      rgba(96, 165, 250, 0.24),
      transparent 55%),
    radial-gradient(circle at right,
      rgba(129, 140, 248, 0.16),
      transparent 60%);
  z-index: -1;
}

/* Hero dashboard card */

.vm-hero-dashboard {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 20px;
  padding: var(--spacing-xl);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.5);
  margin-top: 1rem;
}

.vm-hero-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
}

.vm-hero-dashboard__label {
  color: #e5e7eb;
}

.vm-hero-dashboard__grid {
  display: grid;
  gap: var(--spacing-md);
}

.vm-hero-dashboard__metric {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.vm-hero-dashboard__metric:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: var(--text-xs);
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #f9fafb;
}

.metric-trend {
  font-size: var(--text-xs);
  color: #cbd5f5;
}

.metric-trend--up {
  color: #4ade80;
}

.metric-trend--down {
  color: #fb7185;
}

.vm-hero-dashboard__note {
  margin-top: var(--spacing-md);
  font-size: var(--text-xs);
  color: #cbd5f5;
}

/* Trust strip */

.vm-trust {
  text-align: center;
}

.vm-trust__logos {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
}

.vm-trust__logo-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  background: #ffffff;
  color: var(--color-text-muted);
}

/* Pricing highlight */

.vm-pricing-grid .vm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vm-pricing-card--highlight {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.2);
}

.vm-pricing-card__body {
  flex: 1;
}

/* Dark CTA */

.vm-section--cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left,
      rgba(129, 140, 248, 0.35),
      transparent 55%),
    radial-gradient(circle at bottom right,
      rgba(56, 189, 248, 0.25),
      transparent 60%),
    #020617;
  color: #e5e7eb;
}

.vm-section--cta::before {
  content: "";
  position: absolute;
  inset: -30%;
  opacity: 0.4;
  background-image: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.8), transparent 55%);
  pointer-events: none;
}

.vm-section--cta .vm-section__title {
  max-width: 540px;
}

.vm-section--cta .vm-section__subtitle {
  max-width: 520px;
}

/* CTA grid (text + form/button) */
.vm-cta {
  display: grid;
  gap: var(--spacing-2xl);
}

/* ----------------------------------------------
   13. SERVICES PAGE – SPACING
---------------------------------------------- */

#services-hero.vm-section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

#who-i-work-with.vm-section,
#bottlenecks.vm-section,
#ways-to-work.vm-section,
#service-areas.vm-section,
#how-we-work.vm-section,
#proof.vm-section,
#services-next-step.vm-section {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

/* Header spacing for card-heavy sections */

#ways-to-work .vm-section__header,
#service-areas .vm-section__header {
  margin-bottom: var(--spacing-xl);
}

/* Ways to work together – card compactness */

#ways-to-work .vm-card {
  padding: var(--spacing-lg);
}

#ways-to-work .vm-card__body {
  margin-bottom: var(--spacing-sm);
}

#ways-to-work .vm-list {
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

#ways-to-work .vm-card__note {
  margin-top: var(--spacing-md);
}

/* What I can help you with */

#service-areas .vm-card {
  padding: var(--spacing-lg);
}

#service-areas .vm-card__body {
  margin-bottom: var(--spacing-sm);
}

#service-areas .vm-list {
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

/* Final CTA band */

#services-next-step.vm-section.vm-section--cta {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

#services-next-step .vm-cta {
  gap: var(--spacing-xl);
}

/* ----------------------------------------------
   14. RESPONSIVE BREAKPOINTS (TABLET & DESKTOP)
---------------------------------------------- */

@media (min-width: 640px) {
  .vm-section {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
  }
}

@media (min-width: 768px) {
  /* Grid columns only activate from tablet up */
  .vm-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vm-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vm-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vm-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .vm-hero-dashboard__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vm-contact {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .vm-cta {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .vm-section__title {
    font-size: var(--text-h2);
  }

  .vm-hero {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
  }
}

/* ----------------------------------------------
   END OF FILE
---------------------------------------------- */
