/* ==========================================================================
   Vibrant Mind Marketing - v3 design system (rev 6, light ground, Instrument Sans)
   Scoped under .vm-v3 so it cannot collide with vm-custom.css.
   Load AFTER vm-custom.css. Wrap every rebuilt page in <div class="vm-v3">.
   ========================================================================== */

/* ---- FONTS --------------------------------------------------------------
   Quick start: add these two lines to the child theme <head>.
   Self-host as WOFF2 once the pages are signed off.

   @import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400..700&family=JetBrains+Mono:wght@400;600&display=swap');
   @import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

   Instrument Sans has no expanded width, so the URL requests the weight axis
   only. Hierarchy comes from size, weight and tracking. Do not add a wdth
   range: Google Fonts caps wdth at 100 and an out-of-range request makes the
   whole family fail silently while other families in the same URL still load.
   ------------------------------------------------------------------------ */

:root {
  /* ---- NEUTRALS -------------------------------------------------------- */
  --vm-canvas: #F5F8FA;   /* default page ground. Cool cast, ties to blue. */
  --vm-paper:  #FFFFFF;   /* raised panels only */
  --vm-mist:   #E7EEF3;   /* alternating band */
  --vm-ink:    #0B1524;   /* body text, navy-cast near black */
  --vm-ink-mute: rgba(11,21,36,0.66);
  --vm-line:   rgba(11,21,36,0.13);

  /* ---- THREE BASE COLOURS, TWO SHADES EACH ----------------------------- */
  /* Teal = local SEO and rankings */
  --vm-teal:      #00A3B8;
  --vm-teal-deep: #006F80;   /* text-safe on light, 4.9:1 */

  /* Blue = brand chrome. Nav, footer, dark bands, links, neutral CTAs. */
  --vm-blue:      #0066CC;
  --vm-navy:      #003D82;

  /* Orange = content creation only */
  --vm-orange:      #E8682A;
  --vm-orange-deep: #A8410F;  /* text-safe on light, 5.2:1 */

  /* Dark band ground and its hairline */
  --vm-navy-deep: #01203F;
  --vm-navy-line: rgba(255,255,255,0.14);
  --vm-on-navy:      #EDF3F8;
  --vm-on-navy-mute: rgba(237,243,248,0.66);

  /* The only gradient. Band backgrounds, never text. */
  --vm-grad: linear-gradient(112deg, #00A3B8 0%, #0066CC 55%, #003D82 100%);

  /* ---- ACCENT SLOT ------------------------------------------------------
     Every section sets one accent. Buttons, labels and markers inherit it.
     This is what stops three colours turning into confetti.
     --------------------------------------------------------------------- */
  --vm-accent:      var(--vm-blue);
  --vm-accent-text: var(--vm-navy);

  /* ---- TYPE ------------------------------------------------------------ */
  --vm-display: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --vm-body:    'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --vm-data:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Expanded letterforms eat horizontal space, so the top end sits lower
     than it would with a normal-width face. */
  --vm-t-xl:    clamp(2.9rem, 8vw, 6rem);
  --vm-t-lg:    clamp(2.2rem, 5.4vw, 4rem);
  --vm-t-md:    clamp(1.8rem, 4vw, 2.9rem);
  --vm-t-sm:    clamp(1.15rem, 1.9vw, 1.45rem);
  --vm-t-lead:  clamp(1.0625rem, 1.5vw, 1.28rem);
  --vm-t-body:  1rem;
  --vm-t-small: 0.875rem;
  --vm-t-label: 0.72rem;

  /* ---- SPACE, SHAPE, MOTION -------------------------------------------- */
  --vm-gutter: clamp(20px, 5vw, 48px);
  --vm-band:   clamp(72px, 10vw, 156px);
  --vm-max:    1240px;

  --vm-r-xs: 2px;
  --vm-r-sm: 6px;
  --vm-r-md: 12px;
  --vm-r-pin: 999px;

  --vm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   BASE
   ========================================================================== */

.vm-v3 {
  font-family: var(--vm-body);
  font-size: var(--vm-t-body);
  line-height: 1.65;
  color: var(--vm-ink);
  background: var(--vm-canvas);
  -webkit-font-smoothing: antialiased;
}

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

.vm-v3 p { margin: 0 0 1rem; }
.vm-v3 p:last-child { margin-bottom: 0; }

.vm-v3 h1, .vm-v3 h2, .vm-v3 h3, .vm-v3 h4 {
  font-family: var(--vm-display);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.vm-v3 a { color: var(--vm-accent-text); text-underline-offset: 3px; }

.vm-v3 :focus-visible {
  outline: 2px solid var(--vm-blue);
  outline-offset: 3px;
  border-radius: var(--vm-r-xs);
}

/* WordPress injects empty <p> into custom HTML blocks */
.vm-v3 > p:empty,
.vm-v3 section > p:empty { display: none !important; }

/* ==========================================================================
   ACCENT SCOPES. Put one of these on a section. Never two.
   ========================================================================== */

.vm-v3 .acc-teal   { --vm-accent: var(--vm-teal);   --vm-accent-text: var(--vm-teal-deep); }
.vm-v3 .acc-orange { --vm-accent: var(--vm-orange); --vm-accent-text: var(--vm-orange-deep); }
.vm-v3 .acc-blue   { --vm-accent: var(--vm-blue);   --vm-accent-text: var(--vm-navy); }

/* On navy bands the accent carries itself, no deep variant needed */
.vm-v3 .band--navy.acc-teal   { --vm-accent-text: var(--vm-teal); }
.vm-v3 .band--navy.acc-orange { --vm-accent-text: var(--vm-orange); }
.vm-v3 .band--navy.acc-blue   { --vm-accent-text: #6FB4FF; }

/* ==========================================================================
   TYPE ROLES
   ========================================================================== */

/* Tracking tightens as size grows. That plus weight carries the hierarchy. */
.vm-v3 .t-xl  { font-family: var(--vm-display); font-weight: 700; font-size: var(--vm-t-xl); line-height: 0.94; letter-spacing: -0.034em; }
.vm-v3 .t-lg  { font-family: var(--vm-display); font-weight: 700; font-size: var(--vm-t-lg); line-height: 0.98; letter-spacing: -0.03em; }
.vm-v3 .t-md  { font-family: var(--vm-display); font-weight: 700; font-size: var(--vm-t-md); line-height: 1.03; letter-spacing: -0.026em; }
.vm-v3 .t-sm  { font-family: var(--vm-display); font-weight: 600; font-size: var(--vm-t-sm); line-height: 1.22; letter-spacing: -0.012em; }
.vm-v3 .lead  { font-size: var(--vm-t-lead); line-height: 1.55; color: var(--vm-ink-mute); max-width: 58ch; }
.vm-v3 .small { font-size: var(--vm-t-small); }

/* Mono is the instrument voice: labels, ranks, dates, measurements. */
.vm-v3 .label {
  font-family: var(--vm-data);
  font-size: var(--vm-t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vm-accent-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vm-v3 .label::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.75;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.vm-v3 .wrap {
  width: 100%;
  max-width: var(--vm-max);
  margin-inline: auto;
  padding-inline: var(--vm-gutter);
}

.vm-v3 .band { padding-block: var(--vm-band); background: var(--vm-canvas); }
.vm-v3 .band--paper { background: var(--vm-paper); }
.vm-v3 .band--mist  { background: var(--vm-mist); }

/* Navy punctuation. Two or three per page maximum. */
.vm-v3 .band--navy {
  background: var(--vm-navy-deep);
  color: var(--vm-on-navy);
}
.vm-v3 .band--grad {
  background: var(--vm-grad);
  color: var(--vm-on-navy);
}
.vm-v3 .band--navy .lead,
.vm-v3 .band--grad .lead { color: var(--vm-on-navy-mute); }
.vm-v3 .band--grad .label { color: #BFF0F7; }

/* Default section shape is asymmetric. Nothing centred unless it earns it. */
.vm-v3 .split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.vm-v3 .split--wide { grid-template-columns: 4fr 8fr; }
.vm-v3 .split--even { grid-template-columns: 1fr 1fr; }

@media (max-width: 860px) {
  .vm-v3 .split,
  .vm-v3 .split--wide,
  .vm-v3 .split--even { grid-template-columns: 1fr; gap: 28px; }
}

.vm-v3 .stack   { display: grid; gap: 20px; }
.vm-v3 .stack-s { display: grid; gap: 10px; }
.vm-v3 .row     { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ==========================================================================
   BUTTONS
   Kadence fights buttons globally, hence appearance + explicit padding.
   ========================================================================== */

.vm-v3 .btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px !important;
  font-family: var(--vm-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--vm-r-sm);
  cursor: pointer;
  transition: transform 0.18s var(--vm-ease), background 0.18s var(--vm-ease), color 0.18s var(--vm-ease), border-color 0.18s var(--vm-ease);
}
.vm-v3 .btn:hover { transform: translateY(-2px); }

/* Solid button takes the section accent automatically */
.vm-v3 .btn--solid { background: var(--vm-accent); color: #FFFFFF !important; }
.vm-v3 .btn--solid:hover { filter: brightness(1.1); }

.vm-v3 .btn--navy { background: var(--vm-navy); color: #FFFFFF !important; }
.vm-v3 .btn--navy:hover { background: var(--vm-blue); }

.vm-v3 .btn--ghost { background: transparent; color: var(--vm-ink) !important; border-color: var(--vm-line); }
.vm-v3 .btn--ghost:hover { border-color: var(--vm-accent); color: var(--vm-accent-text) !important; }

.vm-v3 .band--navy .btn--ghost,
.vm-v3 .band--grad .btn--ghost { color: var(--vm-on-navy) !important; border-color: var(--vm-navy-line); }
.vm-v3 .band--navy .btn--ghost:hover,
.vm-v3 .band--grad .btn--ghost:hover { border-color: #FFFFFF; }

.vm-v3 .band--navy .btn--light,
.vm-v3 .band--grad .btn--light { background: #FFFFFF; color: var(--vm-navy) !important; }

/* ==========================================================================
   SIGNATURE: THE RANK GRID
   The 5x5 geo-grid is the instrument of the business. It carries the argument
   without a line of copy. Ramp runs grey (invisible) to blue (below the fold)
   to teal (top 3). Orange stays out of it so it keeps meaning content.
   ========================================================================== */

.vm-v3 .grid5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 1.1vw, 12px);
  width: 100%;
  max-width: 380px;
}

.vm-v3 .pin {
  aspect-ratio: 1;
  border-radius: var(--vm-r-pin);
  display: grid;
  place-items: center;
  font-family: var(--vm-data);
  font-size: clamp(0.62rem, 1.3vw, 0.82rem);
  font-weight: 600;
  background: #DCE4EB;
  color: rgba(11,21,36,0.45);
}

.vm-v3 .pin--top { background: var(--vm-teal); color: #FFFFFF; }  /* top 3 */
.vm-v3 .pin--mid { background: var(--vm-blue); color: #FFFFFF; }  /* 4 to 10 */
.vm-v3 .pin--low { background: #DCE4EB; color: rgba(11,21,36,0.45); } /* buried */

.vm-v3 .band--navy .pin--low,
.vm-v3 .band--grad .pin--low { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.5); }

/* Miniature version as a section marker instead of a decorative icon */
.vm-v3 .grid5--mini { max-width: 44px; gap: 3px; }

/* Load sequence: pins resolve one by one. One orchestrated moment per page. */
.vm-v3 .grid5--live .pin { animation: vmFlip 0.5s var(--vm-ease) both; }
@keyframes vmFlip {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   CONTENT BLOCKS
   ========================================================================== */

/* Rule list: the default replacement for a 3-across card grid */
.vm-v3 .rules { display: grid; }
.vm-v3 .rules > * {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--vm-line);
  align-items: start;
}
.vm-v3 .rules > *:last-child { border-bottom: 1px solid var(--vm-line); }
.vm-v3 .band--navy .rules > *,
.vm-v3 .band--grad .rules > * { border-color: var(--vm-navy-line); }

.vm-v3 .rules .idx {
  font-family: var(--vm-data);
  font-size: var(--vm-t-small);
  font-weight: 600;
  color: var(--vm-accent-text);
  padding-top: 0.35em;
}

@media (max-width: 620px) {
  .vm-v3 .rules > * { grid-template-columns: 1fr; gap: 8px; }
}

/* Flat panel. Border, never a soft drop shadow. Use sparingly. */
.vm-v3 .panel {
  border: 1px solid var(--vm-line);
  border-top: 3px solid var(--vm-accent);
  border-radius: var(--vm-r-md);
  padding: clamp(24px, 3vw, 36px);
  background: var(--vm-paper);
}
.vm-v3 .band--navy .panel,
.vm-v3 .band--grad .panel { background: rgba(255,255,255,0.06); border-color: var(--vm-navy-line); border-top-color: var(--vm-accent); }

/* Stat: figure and label. No card, no icon, no circle. */
.vm-v3 .stat .fig {
  font-family: var(--vm-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.034em;
  display: block;
  color: var(--vm-accent-text);
}
.vm-v3 .stat .cap {
  font-family: var(--vm-data);
  font-size: var(--vm-t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vm-ink-mute);
  margin-top: 12px;
  display: block;
  max-width: 30ch;
}
.vm-v3 .band--navy .stat .cap,
.vm-v3 .band--grad .stat .cap { color: var(--vm-on-navy-mute); }

/* Case study: before grid, after grid, one sentence. Evidence, not a brag. */
.vm-v3 .case { display: grid; gap: clamp(20px, 3vw, 32px); }
.vm-v3 .case-grids {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  max-width: 430px;
}
.vm-v3 .case-grids .grid5 { max-width: none; }
.vm-v3 .case-arrow { font-family: var(--vm-data); color: var(--vm-accent-text); font-size: 1.1rem; }
.vm-v3 .case-note {
  font-family: var(--vm-data);
  font-size: var(--vm-t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vm-ink-mute);
}
.vm-v3 .band--navy .case-note,
.vm-v3 .band--grad .case-note { color: var(--vm-on-navy-mute); }

/* Screenshot frame. For real scan output: Local Falcon heatmaps, GBP insights.
   Crop before uploading so ranks are readable but street names and suburb
   labels are not. Caption states the measurement, never a date. */
.vm-v3 .shot {
  display: block;
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-r-md);
  overflow: hidden;
  background: var(--vm-paper);
}
.vm-v3 .shot img {
  display: block;
  width: 100%;
  height: auto;
}
.vm-v3 .shot figcaption {
  font-family: var(--vm-data);
  font-size: var(--vm-t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vm-ink-mute);
  padding: 14px clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--vm-line);
}
.vm-v3 .band--navy .shot,
.vm-v3 .band--grad .shot { border-color: var(--vm-navy-line); background: rgba(255,255,255,0.06); }
.vm-v3 .band--navy .shot figcaption,
.vm-v3 .band--grad .shot figcaption { color: var(--vm-on-navy-mute); border-top-color: var(--vm-navy-line); }

/* Price row. Comparable at a glance. No floating tilted card. */
.vm-v3 .price {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.6fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--vm-line);
}
.vm-v3 .price:last-of-type { border-bottom: 1px solid var(--vm-line); }
.vm-v3 .price .amt {
  font-family: var(--vm-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.vm-v3 .price .per {
  font-family: var(--vm-data);
  font-size: var(--vm-t-label);
  color: var(--vm-ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vm-v3 .price--flag { position: relative; }
.vm-v3 .price--flag::before {
  content: "";
  position: absolute; left: -14px; top: 0; bottom: 0;
  width: 3px; background: var(--vm-accent); border-radius: var(--vm-r-pin);
}
@media (max-width: 860px) {
  .vm-v3 .price { grid-template-columns: 1fr; gap: 12px; }
  .vm-v3 .price--flag::before { left: 0; right: 0; bottom: auto; height: 3px; width: auto; }
}

/* Quiet trust strip */
.vm-v3 .strip {
  font-family: var(--vm-data);
  font-size: var(--vm-t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vm-ink-mute);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.vm-v3 .band--navy .strip,
.vm-v3 .band--grad .strip { color: var(--vm-on-navy-mute); }

/* ==========================================================================
   MOTION
   ========================================================================== */

.vm-v3 .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--vm-ease), transform 0.6s var(--vm-ease);
}
.vm-v3 .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .vm-v3 *,
  .vm-v3 *::before,
  .vm-v3 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .vm-v3 .reveal { opacity: 1; transform: none; }
}
