/* VIP dark theme, extra polish (loaded after dark.css when THEME_PLUS = True in build.py).
   1. Section rhythm: alternating shades so topics are easy to tell apart, plus a standout form band.
   2. Main call-to-action buttons: a soft light blue outline that fills in on hover.
   3. Each team page carries its own color: blue, orange or green.
   Set THEME_PLUS = False in build.py and rebuild to remove all of it. */

:root {
  --cta: #9dbcf5;          /* soft light blue: main buttons only (outline style) */
  --cta-tint: rgba(157,188,245,.12);
  --cta-label: #c3d6fa;
  --cta-text: #14104a;     /* label color once the button fills in on hover */
  --band: #151140;         /* the alternate section shade */
  --acc: var(--cn);        /* page accent; team pages override it below */
}
body.pg-cn { --acc: var(--cn); }
body.pg-is { --acc: var(--is); }
body.pg-vs { --acc: var(--vs); }

/* ---------- 1. Section rhythm ---------- */
/* Team pages: every other service section sits on a lifted band that runs edge to edge */
.service:nth-of-type(even) {
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
  border-bottom-color: transparent;
}
.service:nth-of-type(odd) { border-bottom-color: transparent; }
/* Bands elsewhere get a soft edge so the change of shade reads as intentional */
.section.band { background: linear-gradient(180deg, #17133e, #130f37); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
/* The free consultation / review form: the one standout band on each page */
.offer {
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(157,188,245,.10), transparent 60%),
    linear-gradient(160deg, #221b63, #15114a);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, #2f2873);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.offer .ticks li::before { border-color: var(--acc); }

/* ---------- 2. Main buttons: soft light blue outline, filled on hover ---------- */
.btn, .btn.on-dark { background: var(--cta-tint); border-color: var(--cta); color: var(--cta-label); }
.btn:hover, .btn.on-dark:hover, .btn:focus-visible { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(236,238,248,.7); }
.btn.ghost:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); border-color: var(--acc); color: #fff; }

/* ---------- 3. Team colors on their own pages ---------- */
/* A glow of the team color behind the page header */
.page-head {
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 65%),
    var(--mist);
}
body:not(.pg-cn):not(.pg-is):not(.pg-vs) .page-head {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(107,159,242,.14), transparent 60%),
    radial-gradient(50% 100% at 70% 100%, rgba(63,196,135,.08), transparent 60%),
    var(--mist);
}
/* Accents in the team color: header rule, section markers, ticks, step numbers, text links, numbers */
body.pg-cn .page-head, body.pg-is .page-head, body.pg-vs .page-head { border-top-color: var(--acc); }
body.pg-cn main a:not(.btn):not(.pair):not(.situation),
body.pg-is main a:not(.btn):not(.pair):not(.situation),
body.pg-vs main a:not(.btn):not(.pair):not(.situation) { color: color-mix(in srgb, var(--acc) 80%, #fff); }
body.pg-cn .service h2::before, body.pg-is .service h2::before, body.pg-vs .service h2::before { background: var(--acc); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 60%, transparent); }
body.pg-cn .ticks li::before, body.pg-is .ticks li::before, body.pg-vs .ticks li::before { border-color: var(--acc); }
body.pg-cn table.plans thead th, body.pg-is table.plans thead th, body.pg-vs table.plans thead th { border-bottom: 2px solid var(--acc); }

/* ---------- Home page rhythm: alternate plain and banded sections all the way down ---------- */
/* hero, client logos (plain), Why organizations choose VIP (band), What we do (plain), What our clients say (band),
   Start with your project (plain), self-check (spotlight), service-area strip, consultation form */
.section.rh-band { background: linear-gradient(180deg, #1b1749, #161241); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.section.sc-teaser {
  background:
    radial-gradient(60% 90% at 0% 50%, rgba(107,159,242,.16), transparent 65%),
    radial-gradient(50% 80% at 100% 0%, rgba(63,196,135,.10), transparent 60%),
    #0f0c2e;
  border-top: 1px solid rgba(107,159,242,.18); border-bottom: 1px solid rgba(107,159,242,.18);
}
