/**
 * Shared styles for the "Cyber Security" enterprise vertical (6 pages — see
 * includes/cyber-security-showcase-render.php's own docblock for the full page list and
 * architecture notes). Linked by all 6 pages alongside _tokens.css/_chrome.css/hosting-landing.css
 * (every one of these pages also links hosting-landing.css, so no local --hlp-shadow fallback
 * aliases are needed here — unlike wp-hosting-showcase.css, which has to support features.php not
 * linking it).
 *
 * New tokens below are built entirely from this project's existing --mc-red/--mc-red-soft (already
 * defined in _tokens.css, not new hex literals) plus one new deep-graphite ink for the "enterprise
 * security" mood distinct from the rest of the site's purple identity — every other color still
 * traces back to the shared --mc-* / --hlp-* token families.
 */

:root {
  --cs-ink: #0b1220;
  --cs-ink-soft: #141d33;
  --cs-red: var(--mc-red);
  --cs-red-soft: var(--mc-red-soft);
  --cs-red-dark: color-mix(in srgb, var(--mc-red) 78%, black);
}

/* ================= FEATURE-CARD RED TINT (additive — data-tint values already exist) ============ */
.hlp-feature-card[data-tint="red"] .hlp-feature-icon { background: var(--cs-red-soft); color: var(--cs-red); }
.hlp-feature-card[data-tint="red"] .hlp-feature-line { background: linear-gradient(90deg, var(--cs-red), transparent); }

/* Clickable variant of .hlp-feature-card (hub page's service cards link straight to sub-pages) */
a.cs-feature-link { text-decoration: none; color: inherit; cursor: pointer; }
.cs-feature-link-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .85rem; font-weight: 650; color: var(--cs-red); margin-top: 14px;
}
.cs-feature-link-foot svg { transition: transform var(--mc-duration) var(--mc-ease); }
a.cs-feature-link:hover .cs-feature-link-foot svg { transform: translateX(3px); }
a.cs-feature-link:hover { box-shadow: 0 24px 70px -36px rgba(15, 17, 21, 0.35); }

/* ================= PROCESS / TIMELINE ================= */
.cs-process {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px;
  counter-reset: cs-step;
}
.cs-process-step {
  position: relative; border: 1px solid var(--mc-border); border-radius: var(--mc-radius-xl);
  background: var(--mc-bg); padding: 26px 22px; box-shadow: var(--hlp-shadow-sm);
}
.cs-process-step::after {
  content: ''; position: absolute; top: 44px; left: 100%; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cs-red) 0 6px, transparent 6px 10px);
  opacity: .55;
}
.cs-process-step:last-child::after { display: none; }
@media (max-width: 900px) { .cs-process-step::after { display: none; } }
.cs-process-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cs-process-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--cs-ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.cs-process-icon { color: var(--cs-red); }
.cs-process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.cs-process-step p { font-size: .87rem; color: var(--mc-text-muted); margin: 0; }

/* ================= SECTOR GRID ================= */
.cs-sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
a.cs-sector-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--mc-border); border-radius: var(--mc-radius-xl); background: var(--mc-bg);
  padding: 26px 24px 30px; box-shadow: var(--hlp-shadow-sm);
  transition: transform var(--mc-duration) var(--mc-ease), box-shadow var(--mc-duration) var(--mc-ease), border-color var(--mc-duration) var(--mc-ease);
}
a.cs-sector-card:hover { transform: translateY(-4px); box-shadow: var(--hlp-shadow); border-color: color-mix(in srgb, var(--cs-red) 40%, var(--mc-border)); }
.cs-sector-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--cs-red-soft); color: var(--cs-red); margin-bottom: 16px;
}
a.cs-sector-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
a.cs-sector-card p { font-size: .88rem; color: var(--mc-text-muted); margin: 0; }
.cs-sector-note { font-size: .78rem; color: var(--cs-red); font-weight: 650; margin-top: 10px !important; }
.cs-sector-arrow {
  position: absolute; top: 26px; right: 24px; color: var(--mc-text-muted);
  transition: transform var(--mc-duration) var(--mc-ease), color var(--mc-duration) var(--mc-ease);
}
a.cs-sector-card:hover .cs-sector-arrow { transform: translate(3px, -3px); color: var(--cs-red); }
.cs-sector-more { text-align: center; margin-top: 36px !important; }
.cs-sector-more a { color: var(--cs-red); font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cs-sector-more a:hover { text-decoration: underline; }

/* ================= STAT BAND (dark, credibility stats) ================= */
.cs-stat-section { padding-top: 0; }
.cs-stat-band {
  border-radius: var(--mc-radius-xl); background: linear-gradient(135deg, var(--cs-ink) 0%, #1c2947 100%);
  padding: 56px 44px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cs-stat-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 85% -10%, color-mix(in srgb, var(--cs-red) 30%, transparent), transparent 70%);
}
.cs-stat-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #ff8f9e; position: relative; }
.cs-stat-eyebrow .eyebrow-dot { background: var(--cs-red); }
.cs-stat-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 14px 0 40px; position: relative; }
.cs-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; position: relative; }
.cs-stat-value { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1; }
.cs-stat-label { margin-top: 10px; font-size: .92rem; color: rgba(255,255,255,.82); }
.cs-stat-source { margin-top: 6px; font-size: .72rem; color: rgba(255,255,255,.5); }
@media (max-width: 600px) { .cs-stat-band { padding: 40px 22px; } }

/* ================= COMPLIANCE BADGES ================= */
.cs-compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 28px; }
.cs-compliance-badge { display: flex; gap: 16px; align-items: flex-start; }
.cs-compliance-icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; background: var(--cs-red-soft); color: var(--cs-red);
}
.cs-compliance-badge h3 { font-size: .98rem; margin-bottom: 6px; }
.cs-compliance-badge p { font-size: .86rem; color: var(--mc-text-muted); margin: 0; }
.cs-compliance-note { text-align: center; max-width: 760px; margin: 40px auto 0 !important; font-size: .82rem; color: var(--mc-text-muted); }

/* ================= SLA TABLE ================= */
.cs-sla-table { border: 1px solid var(--mc-border); border-radius: var(--mc-radius-xl); overflow: hidden; background: var(--mc-bg); box-shadow: var(--hlp-shadow-sm); }
.cs-sla-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.6fr; gap: 14px; padding: 16px 22px; align-items: center; }
.cs-sla-row:not(.cs-sla-head):not(:last-child) { border-bottom: 1px solid var(--mc-border-soft); }
.cs-sla-head { background: var(--mc-bg-muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mc-text-muted); }
.cs-sla-row:not(.cs-sla-head) { font-size: .9rem; }
.cs-sla-row:not(.cs-sla-head) > div:last-child { color: var(--mc-text-muted); font-size: .85rem; }
.cs-sla-sev { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.cs-sla-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--mc-text-muted); }
.cs-sla-row[data-sev="critical"] .cs-sla-dot { background: var(--cs-red); }
.cs-sla-row[data-sev="high"] .cs-sla-dot { background: var(--mc-orange); }
.cs-sla-row[data-sev="medium"] .cs-sla-dot { background: var(--mc-blue); }
.cs-sla-row[data-sev="low"] .cs-sla-dot { background: var(--mc-green); }
.cs-sla-note { max-width: 760px; margin: 24px auto 0 !important; text-align: center; font-size: .8rem; color: var(--mc-text-muted); }
@media (max-width: 720px) {
  .cs-sla-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .cs-sla-row > div:nth-child(4) { grid-column: 1 / -1; }
  .cs-sla-head { display: none; }
  .cs-sla-row:not(.cs-sla-head) { border: 1px solid var(--mc-border-soft); border-radius: 12px; margin-bottom: 10px; }
}

/* ================= WHATSAPP CTA BAND ================= */
.cs-wa-band {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--mc-radius-xl);
  background: linear-gradient(135deg, var(--cs-ink) 0%, #241018 55%, var(--cs-red-dark) 130%);
  padding: 64px 40px; color: #fff;
}
.cs-wa-band-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 280px at 12% 100%, color-mix(in srgb, var(--cs-red) 35%, transparent), transparent 70%),
              radial-gradient(480px 280px at 90% 0%, color-mix(in srgb, var(--cs-red) 25%, transparent), transparent 70%);
}
.cs-wa-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #ff8f9e; }
.cs-wa-eyebrow .eyebrow-dot { background: var(--cs-red); }
.cs-wa-band h2 { position: relative; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 12px; }
.cs-wa-band p { position: relative; color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto; font-size: 1.02rem; }
.cs-wa-buttons { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cs-wa-btn {
  display: inline-flex; align-items: center; gap: 12px; background: #25D366; color: #06210f;
  padding: 14px 24px; border-radius: var(--mc-radius-pill); text-decoration: none; min-width: 240px;
  transition: transform var(--mc-duration) var(--mc-ease), box-shadow var(--mc-duration) var(--mc-ease);
  box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .55);
}
.cs-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .65); }
.cs-wa-btn-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 4px;
}
.cs-wa-btn-icon img { width: 100%; height: 100%; display: block; }
.cs-wa-btn-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.cs-wa-btn-label { font-weight: 750; font-size: .92rem; }
.cs-wa-btn-number { font-size: .82rem; font-weight: 600; opacity: .8; }
.cs-wa-note { position: relative; margin-top: 22px !important; font-size: .8rem; color: rgba(255,255,255,.55); }
@media (max-width: 600px) { .cs-wa-band { padding: 44px 22px; } }

/* ================= FLOATING WHATSAPP LAUNCHER ================= */
.cs-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.cs-wa-float-toggle {
  width: 58px; height: 58px; border-radius: 50%; background: #fff; border: none; padding: 8px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .7);
  transition: transform var(--mc-duration) var(--mc-ease);
}
.cs-wa-float-toggle img { width: 100%; height: 100%; display: block; }
.cs-wa-float-toggle:hover { transform: scale(1.06); }
.cs-wa-float-panel {
  position: absolute; right: 0; bottom: 72px; width: 250px; background: var(--mc-bg);
  border: 1px solid var(--mc-border); border-radius: 16px; box-shadow: var(--hlp-shadow);
  padding: 14px; animation: csWaPanelIn .18s var(--mc-ease);
}
@keyframes csWaPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cs-wa-float-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 700; margin-bottom: 10px; color: var(--mc-text); }
.cs-wa-float-panel-head svg { color: #25D366; }
.cs-wa-float-close { background: none; border: none; padding: 2px; cursor: pointer; color: var(--mc-text-muted); display: flex; }
.cs-wa-float-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; background: var(--mc-bg-muted); color: var(--mc-text);
  transition: background var(--mc-duration) var(--mc-ease);
}
.cs-wa-float-link:last-child { margin-bottom: 0; }
.cs-wa-float-link:hover { background: var(--cs-red-soft); }
.cs-wa-float-link-label { font-size: .78rem; font-weight: 700; color: var(--mc-text-muted); }
.cs-wa-float-link-number { font-size: .86rem; font-weight: 650; }
@media (max-width: 480px) { .cs-wa-float { right: 14px; bottom: 14px; } .cs-wa-float-panel { width: calc(100vw - 48px); } }
