/* ==========================================================================
   A&V ICT — global theme stylesheet
   Design tokens + component classes extracted from the /Design mockups.
   ========================================================================== */

:root {
  /* Colour system */
  --wsc-bg:        #F1F3F6;
  --wsc-surface:   #FFFFFF;
  --wsc-ink:       #14161B;
  --wsc-ink-2:     #4E5563;
  --wsc-ink-3:     #8A91A0;
  --wsc-line:      #E3E7ED;
  --wsc-line-2:    #C9D0DA;
  --wsc-accent:    #FFA934;
  --wsc-accent-2:  #D9791A;
  --wsc-accent-h:  #F89828;
  --wsc-pink:      #F1C8D3;
  --wsc-footer-bg: #0F1115;
  --wsc-footer-2:  #14161B;
  --wsc-footer-ink:#B7BECC;
  --wsc-footer-ink-3:#8A91A0;

  /* Type */
  --wsc-font-head: 'Archivo', system-ui, sans-serif;
  --wsc-font-body: 'Inter', system-ui, sans-serif;
  --wsc-font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --wsc-maxw: 1220px;
  --wsc-radius: 14px;
  --wsc-radius-lg: 20px;
  --wsc-gutter: clamp(18px, 4vw, 40px);
  --wsc-section-y: clamp(56px, 8vw, 96px);
  --wsc-shadow: 0 24px 60px rgba(20, 22, 27, .16);
  --wsc-shadow-sm: 0 8px 22px rgba(255, 169, 52, .34);
}

/* ---------- Reset-ish base ---------- */
.wsc-theme *,
.wsc-theme *::before,
.wsc-theme *::after { box-sizing: border-box; }

.wsc-theme {
  margin: 0;
  font-family: var(--wsc-font-body);
  color: var(--wsc-ink);
  background: var(--wsc-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
.wsc-theme ::selection { background: var(--wsc-accent); color: var(--wsc-ink); }

.wsc-theme img { max-width: 100%; display: block; }
.wsc-theme a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wsc-container {
  max-width: var(--wsc-maxw);
  margin-inline: auto;
  padding-inline: var(--wsc-gutter);
}
.wsc-section { padding-block: var(--wsc-section-y); }
.wsc-section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* Full-bleed coloured bands */
.wsc-band { width: 100%; }
.wsc-band--white  { background: var(--wsc-surface); }
.wsc-band--light  { background: var(--wsc-bg); }
.wsc-band--dark   { background: var(--wsc-footer-2); color: var(--wsc-footer-ink); }
/* Seam line only between two white bands is unnecessary; keep sections clean */

/* Dark band: invert text + cards */
.wsc-band--dark h1, .wsc-band--dark h2, .wsc-band--dark h3, .wsc-band--dark h4 { color: #fff; }
.wsc-band--dark p, .wsc-band--dark .wsc-lead { color: var(--wsc-footer-ink); }
.wsc-band--dark .wsc-card { background: #1B1E25; border-color: rgba(255,255,255,.08); }
.wsc-band--dark .wsc-card p { color: var(--wsc-footer-ink); }
.wsc-band--dark .wsc-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.wsc-band--dark .wsc-stat__label { color: var(--wsc-footer-ink-3); }

/* Multi-column layouts (used by area layout presets + service grids) */
.wsc-cols { display: grid; gap: clamp(20px, 3vw, 34px); }
.wsc-cols--2 { grid-template-columns: repeat(2, 1fr); }
.wsc-cols--3 { grid-template-columns: repeat(3, 1fr); }
.wsc-cols--split { grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 860px) {
  .wsc-cols--2, .wsc-cols--3, .wsc-cols--split { grid-template-columns: 1fr; }
}

/* ---------- Typography ---------- */
.wsc-theme h1, .wsc-theme h2, .wsc-theme h3, .wsc-theme h4 {
  font-family: var(--wsc-font-head);
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--wsc-ink);
}
.wsc-display, .wsc-theme h1 {
  font-family: var(--wsc-font-head);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.wsc-h2, .wsc-theme h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 42px);
}
.wsc-h3, .wsc-theme h3 {
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.015em;
}
.wsc-theme p { margin: 0 0 1.1em; color: var(--wsc-ink-2); }
.wsc-lead {
  display: block;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.62;
  color: var(--wsc-ink-2);
  max-width: 60ch;
}
.wsc-eyebrow {
  display: block;
  font-family: var(--wsc-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wsc-accent-2);
  margin-bottom: 12px;
}
.wsc-accent { color: var(--wsc-accent-2); }
/* Orange highlight inside headings (from *text* convention) */
.wsc-hl { color: var(--wsc-accent-2); }

/* Section heading group */
.wsc-section-head { max-width: 680px; margin-bottom: 30px; }
.wsc-section-head .wsc-lead { margin-bottom: 0; }

/* Media / image slot */
.wsc-media { position: relative; z-index: 1; border-radius: var(--wsc-radius-lg); overflow: hidden; box-shadow: var(--wsc-shadow); }
.wsc-media__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wsc-media--empty {
  min-height: clamp(300px, 40vw, 440px);
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--wsc-ink-3);
  background: #FBF3E7; border: 2px dashed rgba(217,121,26,.4); box-shadow: none;
}
.wsc-media__icon { font-size: 30px; opacity: .7; }


/* ---------- Buttons ---------- */
.wsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wsc-font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  line-height: 1;
}
.wsc-btn--primary { background: var(--wsc-accent); color: var(--wsc-ink); box-shadow: var(--wsc-shadow-sm); }
.wsc-btn--primary:hover { background: var(--wsc-accent-h); transform: translateY(-1px); }
.wsc-btn--ghost { background: var(--wsc-surface); color: var(--wsc-ink); border-color: var(--wsc-line); }
.wsc-btn--ghost:hover { border-color: var(--wsc-ink); }
.wsc-btn-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- Cards ---------- */
.wsc-card {
  background: var(--wsc-surface);
  border: 1px solid var(--wsc-line);
  border-radius: var(--wsc-radius);
  padding: clamp(20px, 2.4vw, 28px);
}
.wsc-card__eyebrow, .wsc-card .wsc-dot {
  width: 11px; height: 11px; display: inline-block; border-radius: 3px;
  background: var(--wsc-accent);
}

/* ---------- Trust / partner bar ---------- */
.wsc-trust {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 22px 40px; justify-content: space-between;
  padding-block: 26px;
}
.wsc-trust__label {
  font-family: var(--wsc-font-mono);
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--wsc-ink-3); flex: none;
}
.wsc-trust__items { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1; justify-content: center; }
.wsc-chip {
  font-family: var(--wsc-font-head);
  font-weight: 700; font-size: 13.5px; color: var(--wsc-ink-2);
  border: 1px solid var(--wsc-line); border-radius: 8px;
  padding: 8px 13px; background: #F5F6F9;
}

/* ==========================================================================
   Prose (single pages / rich content blocks)
   ========================================================================== */
.wsc-prose { max-width: 780px; }
.wsc-prose h1 { margin-top: 0; }
.wsc-prose img { border-radius: var(--wsc-radius); margin: 1.5em 0; }
.wsc-prose ul, .wsc-prose ol { color: var(--wsc-ink-2); line-height: 1.7; }

/* Concrete edit-mode niceties */
.wsc-theme .ccm-page { min-height: 40px; }

/* ==========================================================================
   Dark-band overrides — placed last so source order wins over base typography
   ========================================================================== */
.wsc-band--dark h1, .wsc-band--dark h2, .wsc-band--dark h3, .wsc-band--dark h4,
.wsc-band--dark .wsc-display, .wsc-band--dark .wsc-h2, .wsc-band--dark .wsc-h3 { color: #fff; }
.wsc-band--dark p, .wsc-band--dark .wsc-lead, .wsc-band--dark li { color: var(--wsc-footer-ink); }
.wsc-band--dark .wsc-card { background: #1B1E25; border-color: rgba(255,255,255,.08); }
.wsc-band--dark .wsc-card p { color: var(--wsc-footer-ink); }
.wsc-band--dark .wsc-eyebrow { color: var(--wsc-accent); }
.wsc-band--dark .wsc-stat__value { color: #fff; }
.wsc-band--dark .wsc-stat__label { color: var(--wsc-footer-ink-3); }
.wsc-band--dark .wsc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.wsc-band--dark .wsc-btn--ghost:hover { border-color: #fff; }

/* ==========================================================================
   Shared grid-carousel — circular arrows + hidden scrollbar.
   Used by wsc_cards (carousel layout) and wsc_references (testimonials) and
   any future wsc_* carousel. Behaviour lives in js/carousel.js.
   ========================================================================== */
/* Hide the native scrollbar on every carousel track (still swipe/scrollable) */
.wsc-cards-track, .wsc-ref-track { scrollbar-width: none; -ms-overflow-style: none; }
.wsc-cards-track::-webkit-scrollbar, .wsc-ref-track::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Circular prev/next arrows (defined here so every block shares them) */
.wsc-cards__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--wsc-line);
  background: #fff; color: var(--wsc-ink); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(20,22,27,.12);
  transition: background .15s, opacity .15s, transform .15s;
}
.wsc-cards__arrow:hover { background: var(--wsc-accent); }
.wsc-cards__arrow--prev { left: -8px; }
.wsc-cards__arrow--next { right: -8px; }
.wsc-cards__arrow[disabled] { opacity: .35; cursor: default; }
.wsc-band--dark .wsc-cards__arrow { background: #1B1E25; border-color: rgba(255,255,255,.14); color: #fff; }
/* When there is nothing to scroll, hide the arrows entirely (JS adds the class) */
.wsc-carousel--static [data-wsc-prev], .wsc-carousel--static [data-wsc-next] { display: none; }

/* ---------- Shared brand-mark (Wsc\Core\Mark::render) ---------- */
.wsc-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--mc, var(--wsc-accent)); flex: none; }
.wsc-mark svg { width: 100%; height: 100%; display: block; }
.wsc-mark--img img { width: 100%; height: 100%; object-fit: contain; }
.wsc-mark--squares span { position: absolute; background: currentColor; }
.wsc-mark--squares span:nth-child(1) { top: 0; right: 0; width: 11px; height: 11px; }
.wsc-mark--squares span:nth-child(2) { top: 12px; right: 12px; width: 9px; height: 9px; opacity: .45; }
.wsc-mark--squares span:nth-child(3) { top: 12px; right: 0; width: 9px; height: 9px; }
