/* ============================================================
   Cyber Plum Solutions — B2B Homepage Stylesheet
   Palette: deep navy + signal red, enterprise security tone
   ============================================================ */

:root {
  --cp-navy:       #0a1628;
  --cp-navy-mid:   #11203a;
  --cp-navy-light: #1a2c4d;
  --cp-red:        #d6332f;
  --cp-red-dark:   #a8221f;
  --cp-red-glow:   rgba(214, 51, 47, .35);
  --cp-ink:        #161b22;
  --cp-slate:      #5b6478;
  --cp-slate-light:#8993a8;
  --cp-paper:      #f6f7fa;
  --cp-line:       #e3e6ec;
  --cp-white:      #ffffff;
  --cp-radius:     10px;
}

.cp-page { background: var(--cp-paper); color: var(--cp-ink); font-family: var(--font-body); }
.cp-page .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.cp-page h1, .cp-page h2, .cp-page h3, .cp-page h4 { font-family: var(--font-display); color: var(--cp-navy); letter-spacing: -.01em; }
.cp-page a { text-decoration: none; }
.cp-page section { position: relative; }

/* ── Top utility bar ──────────────────────────────────────── */
.cp-topbar {
  background: var(--cp-navy);
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  padding: 7px 0;
}
.cp-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.cp-topbar a { color: rgba(255,255,255,.65); }
.cp-topbar a:hover { color: var(--cp-white); }
.cp-topbar-links { display: flex; gap: 18px; }

/* ── Header / Nav ─────────────────────────────────────────── */
.cp-header { background: var(--cp-white); border-bottom: 1px solid var(--cp-line); position: sticky; top: 0; z-index: 1000; }
.cp-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.cp-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--cp-navy) !important; white-space: nowrap; }
.cp-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cp-red), var(--cp-red-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.cp-logo small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 1.5px; color: var(--cp-slate); text-transform: uppercase; margin-top: 1px; }

.cp-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.cp-nav a { color: var(--cp-ink); font-size: 14.5px; font-weight: 600; padding: 10px 14px; border-radius: 6px; transition: .18s; }
.cp-nav a:hover { background: var(--cp-paper); color: var(--cp-red); }

.cp-cta-btn {
  background: var(--cp-red); color: white !important; font-weight: 700; font-size: 14.5px;
  padding: 11px 22px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px;
  transition: .18s; white-space: nowrap; border: none; cursor: pointer;
}
.cp-cta-btn:hover { background: var(--cp-red-dark); transform: translateY(-1px); }

.cp-hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--cp-navy); }

/* ── Hero ─────────────────────────────────────────────────── */
.cp-hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(10,22,40,.96) 0%, rgba(10,22,40,.88) 45%, rgba(10,22,40,.55) 100%),
    radial-gradient(circle at 80% 30%, rgba(214,51,47,.18) 0%, transparent 55%),
    var(--cp-navy);
  color: white;
  padding: 76px 0 92px;
  overflow: hidden;
}
.cp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%);
}
.cp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.cp-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(214,51,47,.14); border: 1px solid rgba(214,51,47,.4);
  color: #ff8b87; font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 24px;
}
.cp-hero h1 { color: white; font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.12; margin-bottom: 20px; }
.cp-hero h1 em { font-style: normal; color: #ff6b66; }
.cp-hero p { color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; max-width: 540px; margin-bottom: 32px; }
.cp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.cp-btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.35); color: white !important; font-weight: 700; font-size: 14.5px;
  padding: 10.5px 22px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; transition: .18s;
}
.cp-btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.cp-hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.cp-hero-trust div strong { display: block; font-family: var(--font-display); font-size: 22px; color: #ff8b87; }
.cp-hero-trust div span { font-size: 12.5px; color: rgba(255,255,255,.55); }

.cp-hero-visual { position: relative; }
.cp-hero-panel {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 28px; backdrop-filter: blur(6px);
}
.cp-hero-panel-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cp-hero-panel-row:last-child { border: none; }
.cp-hero-panel-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(214,51,47,.15); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cp-hero-panel-row strong { display: block; font-size: 14px; color: white; }
.cp-hero-panel-row span { font-size: 12.5px; color: rgba(255,255,255,.55); }
.cp-hero-panel-status { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); flex-shrink: 0; }

/* ── Eyebrow / section heads ─────────────────────────────── */
.cp-eyebrow { display: block; color: var(--cp-red); font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.cp-section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.cp-section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; }
.cp-section-head p { color: var(--cp-slate); font-size: 16px; line-height: 1.7; }

/* ── Solutions diagram (signature element) ───────────────── */
.cp-diagram-section { background: var(--cp-navy); padding: 64px 0 72px; color: white; }
.cp-diagram-wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center;
  background: var(--cp-navy-mid); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 44px 36px;
}
.cp-diagram-arrow { color: var(--cp-red); font-size: 34px; }
.cp-orbit { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
.cp-orbit-node {
  position: absolute; width: 118px; border-radius: 12px; padding: 14px 12px; text-align: center;
  background: var(--cp-navy-light); border: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.cp-orbit-node.center { left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--cp-red); border-color: var(--cp-red); z-index: 2; }
.cp-orbit-node.n1 { left: 0; top: 0; }
.cp-orbit-node.n2 { right: 0; top: 0; }
.cp-orbit-node.n3 { left: 50%; bottom: 0; transform: translateX(-50%); }
.cp-orbit-icon { font-size: 22px; margin-bottom: 6px; display: block; }

.cp-pyramid { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 280px; margin: 0 auto; }
.cp-pyramid-tier {
  width: 100%; text-align: center; padding: 16px 14px; border-radius: 8px; font-weight: 700; font-size: 13.5px; color: white;
}
.cp-pyramid-tier:nth-child(1) { width: 58%; background: linear-gradient(135deg,#34d399,#10b981); }
.cp-pyramid-tier:nth-child(2) { width: 78%; background: linear-gradient(135deg,#6ee7b7,#34d399); color: #064e3b; }
.cp-pyramid-tier:nth-child(3) { width: 100%; background: linear-gradient(135deg,#bbf7d0,#86efac); color: #064e3b; }
.cp-pyramid-label { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.cp-diagram-cols-label { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }

.cp-diagram-copy { max-width: 880px; margin: 36px auto 0; text-align: center; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.8; }
.cp-diagram-copy b { color: white; font-weight: 700; }

/* ── Three pillars ────────────────────────────────────────── */
.cp-pillars { padding: 72px 0; }
.cp-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cp-pillar-card { background: white; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.cp-pillar-card:hover { box-shadow: 0 16px 40px rgba(10,22,40,.1); transform: translateY(-3px); }
.cp-pillar-img { height: 150px; background-size: cover; background-position: center; position: relative; }
.cp-pillar-img::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,.5)); }
.cp-pillar-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.cp-pillar-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.cp-pillar-body .cp-tag { color: var(--cp-red); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.cp-pillar-btn {
  display: inline-block; background: var(--cp-red); color: white !important; font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; border-radius: 6px; margin: 6px 0 18px; text-align: center; transition: .18s;
}
.cp-pillar-btn:hover { background: var(--cp-red-dark); }
.cp-pillar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.cp-pillar-list li { font-size: 13.5px; color: var(--cp-slate); padding-left: 20px; position: relative; line-height: 1.5; }
.cp-pillar-list li::before { content: '✓'; position: absolute; left: 0; color: var(--cp-red); font-weight: 800; }
.cp-pillar-list b { color: var(--cp-ink); }

/* ── Vendor / partner strip ───────────────────────────────── */
.cp-partners { background: white; border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); padding: 40px 0; }
.cp-partners h4 { text-align: center; font-size: 14px; font-weight: 700; color: var(--cp-slate); letter-spacing: .5px; margin-bottom: 26px; }
.cp-partners-row { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }
.cp-partner-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--cp-slate-light); letter-spacing: -.02em; opacity: .8; transition: .18s; }
.cp-partner-name:hover { opacity: 1; color: var(--cp-navy); }

/* ── Challenge tiles ──────────────────────────────────────── */
.cp-challenges { padding: 72px 0; background: var(--cp-paper); }
.cp-challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-challenge-tile { border-radius: var(--cp-radius); padding: 26px 24px; min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.cp-challenge-tile h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.cp-challenge-tile p { font-size: 13px; line-height: 1.6; }
.cp-challenge-tile.dark { background: var(--cp-navy); }
.cp-challenge-tile.dark h4 { color: white; }
.cp-challenge-tile.dark p { color: rgba(255,255,255,.6); }
.cp-challenge-tile.red { background: var(--cp-red); }
.cp-challenge-tile.red h4 { color: white; }
.cp-challenge-tile.red p { color: rgba(255,255,255,.82); }
.cp-challenge-tile.light { background: white; border: 1px solid var(--cp-line); }
.cp-challenge-tile.light h4 { color: var(--cp-navy); }
.cp-challenge-tile.light p { color: var(--cp-slate); }

/* ── Why choose (split) ───────────────────────────────────── */
.cp-why { padding: 72px 0; background: white; }
.cp-why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.cp-why-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; }
.cp-why-img::after { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(10,22,40,.25), transparent); }
.cp-why-list { display: flex; flex-direction: column; gap: 4px; }
.cp-why-item { display: flex; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--cp-line); }
.cp-why-item:last-child { border: none; }
.cp-why-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(214,51,47,.08); color: var(--cp-red); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.cp-why-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.cp-why-item p { font-size: 13.5px; color: var(--cp-slate); }

/* ── Testimonials ─────────────────────────────────────────── */
.cp-testimonials { background: var(--cp-paper); padding: 72px 0; }
.cp-testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cp-testi-card { background: white; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); padding: 28px 30px; }
.cp-testi-quote { font-size: 14.5px; line-height: 1.75; color: var(--cp-ink); font-style: italic; margin-bottom: 18px; }
.cp-testi-name { font-weight: 700; font-size: 14px; color: var(--cp-navy); }
.cp-testi-role { font-size: 12.5px; color: var(--cp-slate); margin-top: 1px; }
.cp-testi-stars { color: var(--cp-red); font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }

/* ── Lead form / CTA section ──────────────────────────────── */
.cp-lead { padding: 76px 0; background: white; }
.cp-lead-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.cp-lead-copy h2 { font-size: 28px; margin-bottom: 14px; }
.cp-lead-copy > p { color: var(--cp-slate); font-size: 15px; margin-bottom: 22px; line-height: 1.7; }
.cp-lead-copy ul { list-style: none; padding: 0; margin-bottom: 24px; }
.cp-lead-copy ul li { padding-left: 22px; position: relative; font-size: 14px; color: var(--cp-ink); margin-bottom: 10px; }
.cp-lead-copy ul li::before { content: '▸'; position: absolute; left: 0; color: var(--cp-red); font-weight: 800; }
.cp-trust-badges { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cp-trust-badge { font-size: 11px; font-weight: 700; color: var(--cp-slate); border: 1px solid var(--cp-line); padding: 8px 14px; border-radius: 8px; }

.cp-form-card { background: var(--cp-navy); border-radius: 16px; padding: 32px; }
.cp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cp-form-card label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.cp-form-card input, .cp-form-card select, .cp-form-card textarea {
  width: 100%; padding: 11px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: white; font-size: 14px; outline: none; transition: .18s;
}
.cp-form-card input::placeholder, .cp-form-card textarea::placeholder { color: rgba(255,255,255,.35); }
.cp-form-card input:focus, .cp-form-card select:focus, .cp-form-card textarea:focus { border-color: var(--cp-red); background: rgba(255,255,255,.09); }
.cp-form-card .cp-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cp-form-card .cp-check-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; margin-bottom: 6px; }
.cp-form-card .cp-check-group input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cp-red); }
.cp-form-submit { width: 100%; background: var(--cp-red); color: white; border: none; padding: 14px; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; transition: .18s; }
.cp-form-submit:hover { background: var(--cp-red-dark); }

/* ── Footer ────────────────────────────────────────────────── */
.cp-footer { background: var(--cp-navy); color: rgba(255,255,255,.65); padding-top: 56px; }
.cp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cp-footer h5 { color: white; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px; }
.cp-footer ul { list-style: none; padding: 0; }
.cp-footer ul li { margin-bottom: 10px; }
.cp-footer ul a { color: rgba(255,255,255,.6); font-size: 13.5px; }
.cp-footer ul a:hover { color: white; }
.cp-footer-contact-row { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 12px; color: rgba(255,255,255,.65); }
.cp-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.cp-footer-social { display: flex; gap: 10px; }
.cp-footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: white !important; }
.cp-footer-social a:hover { background: var(--cp-red); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cp-hero-grid { grid-template-columns: 1fr; }
  .cp-hero-visual { display: none; }
  .cp-pillar-grid { grid-template-columns: 1fr 1fr; }
  .cp-diagram-wrap { grid-template-columns: 1fr; }
  .cp-diagram-arrow { transform: rotate(90deg); margin: 0 auto; }
  .cp-why-grid { grid-template-columns: 1fr; }
  .cp-lead-grid { grid-template-columns: 1fr; }
  .cp-footer-grid { grid-template-columns: 1fr 1fr; }
  .cp-testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cp-nav { display: none; }
  .cp-nav.cp-nav-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--cp-line); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .cp-hamburger { display: block; }
  .cp-pillar-grid { grid-template-columns: 1fr; }
  .cp-challenge-grid { grid-template-columns: 1fr; }
  .cp-form-row { grid-template-columns: 1fr; }
  .cp-footer-grid { grid-template-columns: 1fr; }
  .cp-footer-bottom { flex-direction: column; text-align: center; }
  .cp-topbar { display: none; }
}

/* ── Rich Text Editor (admin pages CMS) ──────────────────────── */
.rte-wrap { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.rte-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--border-light); border-bottom: 1px solid var(--border);
}
.rte-toolbar button {
  background: white; border: 1px solid var(--border); border-radius: 5px;
  padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--text);
  transition: var(--transition); min-width: 32px;
}
.rte-toolbar button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.rte-select {
  background: white; border: 1px solid var(--border); border-radius: 5px;
  padding: 6px 8px; font-size: 13px; cursor: pointer; color: var(--text);
}
.rte-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.rte-content {
  min-height: 260px; max-height: 520px; overflow-y: auto;
  padding: 16px 18px; font-size: 14.5px; line-height: 1.8; color: var(--text); background: white;
  outline: none;
}
.rte-content h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin: 18px 0 10px; }
.rte-content h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }
.rte-content h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
.rte-content p { margin: 0 0 12px; }
.rte-content ul, .rte-content ol { margin: 0 0 12px; padding-left: 22px; }
.rte-content li { margin-bottom: 6px; }
.rte-content a { color: var(--primary); text-decoration: underline; }
.rte-content:empty:before { content: attr(data-placeholder); color: var(--text-light); }