/* ============================================================
   VM-THEME.CSS – Varun Mohite layout & component layer
=========================================================== */

/* ----------------------------------------------
   0. TOKENS
---------------------------------------------- */

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

  --vm-text-xs: 0.75rem;
  --vm-text-sm: 0.875rem;
  --vm-text-base: 1rem;
  --vm-text-lg: 1.125rem;
  --vm-text-xl: 1.25rem;
  --vm-text-h2: 2.1rem;
  --vm-text-h1: 2.6rem;

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

  --vm-primary: #1e3a8a;
  --vm-primary-soft: #e0ebff;
  --vm-accent: #10b981;

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

  /* Radius & shadows */
  --vm-radius-md: 12px;
  --vm-radius-lg: 18px;

  --vm-shadow-soft: 0 10px 35px rgba(15, 23, 42, 0.06);
  --vm-shadow-strong: 0 18px 60px rgba(15, 23, 42, 0.1);

  /* Layout */
  --vm-container-max: 1120px;
  --vm-section-y: 4.25rem;
  --vm-section-y-tight: 3.25rem;
  --vm-grid-gap: 2rem;
}

/* ----------------------------------------------
   1. GLOBAL BASE TWEAKS
---------------------------------------------- */

body {
  font-family: var(--vm-font-primary);
  color: var(--vm-text);
  background-color: var(--vm-bg);
  line-height: 1.7;
}

/* Keep everything centred and readable */
.vm-container {
  width: 100%;
  max-width: var(--vm-container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------
   2. SECTIONS
---------------------------------------------- */

.vm-section {
  padding: var(--vm-section-y) 0;
  background-color: var(--vm-bg);
}

.vm-section--alt {
  background-color: var(--vm-bg-alt);
}

.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 .vm-section__title,
.vm-section--cta .vm-section__subtitle {
  color: #e5e7eb;
}

.vm-section--centered .vm-section__header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.vm-section__inner {
  max-width: var(--vm-container-max);
  margin: 0 auto;
}

.vm-section__header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* Eyebrow, title, subtitle */

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

.vm-section__title {
  font-size: var(--vm-text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

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

/* ----------------------------------------------
   3. GRIDS
---------------------------------------------- */

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

.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-grid--services .vm-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Collapse grids on smaller screens */
@media (max-width: 960px) {
  .vm-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vm-grid--2,
  .vm-grid--3,
  .vm-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.vm-card--soft {
  background-color: #fdfdff;
}

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

.vm-card__title {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

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

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

/* Hover only on fine pointers */
@media (hover: hover) and (pointer: fine) {
  .vm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vm-shadow-strong);
    border-color: rgba(148, 163, 184, 0.9);
  }
}

/* ----------------------------------------------
   5. LISTS
---------------------------------------------- */

.vm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.vm-list--check li {
  position: relative;
  padding-left: 1.4rem;
}

.vm-list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vm-accent);
  font-weight: 600;
  font-size: 0.9em;
}

/* ----------------------------------------------
   6. BUTTONS
---------------------------------------------- */

.vm-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: var(--vm-text-sm);
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

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

.vm-btn--primary:hover {
  background-color: #1d4ed8;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

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

.vm-btn--ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background-color: #f9fafb;
}

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

/* ----------------------------------------------
   7. HERO / HOME-SPECIFIC
---------------------------------------------- */

.vm-hero {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.vm-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .vm-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.vm-hero__title {
  font-size: var(--vm-text-h1);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

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

.vm-hero__subtitle {
  font-size: var(--vm-text-lg);
  color: var(--vm-text-muted);
  margin: 0 0 1.25rem;
}

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

.vm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

/* Hero dashboard */
.vm-hero-dashboard {
  background-color: #0f172a;
  color: #e5e7eb;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.55);
}

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

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

.vm-hero-dashboard__grid {
  display: grid;
  gap: 0.9rem;
}

.vm-hero-dashboard__metric {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

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

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

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

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

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

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

/* ----------------------------------------------
   8. CTA WRAPPER
---------------------------------------------- */

.vm-cta {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .vm-cta {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

/* ----------------------------------------------
   9. ARTICLE / BLOG
---------------------------------------------- */

.vm-article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--vm-text-base);
}

.vm-article-content p {
  margin-bottom: 1.1rem;
}

.vm-article-content h2,
.vm-article-content h3,
.vm-article-content h4 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.vm-article-content h2 {
  font-size: 1.5rem;
}

.vm-article-content h3 {
  font-size: 1.25rem;
}

.vm-article-content ul,
.vm-article-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.2rem;
}

/* ----------------------------------------------
   10. CONTACT LAYOUT
---------------------------------------------- */

.vm-contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .vm-contact {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

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

/* ----------------------------------------------
   11. HEADER TIDY-UP
---------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--vm-border);
  background-color: #ffffff;
}

.site-header .container {
  max-width: var(--vm-container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 64px;
}

.site-branding,
.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: auto;
  max-height: 40px;
  width: auto;
}

/* Desktop nav */
.nav-primary__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Default hamburger hidden */
.nav-toggle {
  display: none;
}

/* ----------------------------------------------
   12. DESKTOP / TABLET
---------------------------------------------- */

@media (min-width: 961px) {
  .nav-primary.nav-desktop {
    display: block;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ----------------------------------------------
   13. MOBILE HEADER + DROPDOWN MENU
---------------------------------------------- */

@media (max-width: 960px) {
  /* Fixed header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
  }

  .site-header .container {
    padding: 0 1.25rem;
  }

  .site-header__inner {
    min-height: 70px;
  }

  /* Logo left, burger right */
  .site-header__inner {
    justify-content: space-between;
  }

  .nav-primary.nav-desktop {
    display: none !important;
  }

  .site-header__cta {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--vm-border);
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1100;
  }

  .nav-toggle__line {
    display: block;
    height: 2px;
    width: 18px;
    background-color: #0f172a;
  }

  /* Push page content below header */
  .site-main {
    padding-top: 80px;
  }

  /* --- MOBILE MENU CORE FIX --- */

  /* Hide menu by default, override any theme styles */
  .nav-mobile {
    display: none !important;
    position: absolute;
    top: 80px;          /* just under header */
    left: 0;
    right: 0;
    background: #020617;
    color: #e5e7eb;
    border-top: 1px solid #0b1120;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto;
  }

  .nav-mobile__inner {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .nav-mobile__list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
  }

  .nav-mobile__list li + li {
    margin-top: 1.25rem;
  }

  .nav-mobile__list a {
    font-size: 1.15rem;
    color: #e5e7eb;
    text-decoration: none;
  }

  .nav-mobile__list a:hover {
    color: #c4ddff;
  }

  .nav-mobile__cta .btn {
    width: 100%;
  }

  /* Show menu when any of these "open" states are used by JS */
  .nav-mobile.is-open,
  .nav-mobile.nav-mobile--open,
  body.nav-open .nav-mobile,
  .nav-mobile[aria-hidden="false"] {
    display: block !important;
  }

  /* Lock scroll only when explicit nav-open is set */
  body.nav-open {
    overflow: hidden;
  }
}

/* ----------------------------------------------
   14. EXTRA MOBILE SECTION SPACING
---------------------------------------------- */

@media (max-width: 768px) {
  .vm-section {
    padding: 3rem 0;
  }

  .vm-section__header {
    margin-bottom: 2rem;
  }

  .vm-hero {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .vm-hero__title {
    font-size: 2.1rem;
  }

  .vm-hero-dashboard {
    margin-top: 1.5rem;
  }
}

/* FINAL MOBILE HEADER ALIGNMENT FIX
   Logo left, hamburger right
--------------------------------------------------*/
@media (max-width: 960px) {
  .site-header .container {
    text-align: left;           /* cancel any center text-align */
  }

  .site-header__inner {
    display: flex;
    flex-direction: row;        /* make sure it's a row, not column */
    align-items: center;
    justify-content: space-between;
  }

  .site-branding {
    margin-right: auto;         /* anchor logo to the left */
  }

  .nav-toggle {
    margin-left: auto;          /* push hamburger to the right edge */
  }
}
