/*  ═══════════════════════════════════════════════════════════════════
 *  Click IT CRM — pages.css
 *  Shared styles for all feature/subpages.
 *  Used alongside shell.js + the CRM shell styles.
 *  ───────────────────────────────────────────────────────────────────
 *  PROPRIETARY AND CONFIDENTIAL — Motherboard, Inc.
 *  Protected under the Defend Trade Secrets Act (18 U.S.C. § 1836).
 *  Unauthorized use, reproduction, or distribution is prohibited.
 *  Contact: legal@bymotherboard.com
 *  ═══════════════════════════════════════════════════════════════════ */

:root {
  --navy:       #00234B;
  --navy-light: #003366;
  --blue:       #2B7BB9;
  --blue-light: #3A8FD4;
  --green:      #81d742;
  --green-dark: #6ABF35;
  --orange:     #FB8E28;
  --surface:    #F8FAFC;
  --bg:         #FFFFFF;
  --text:       #1B2A3D;
  --text-muted: #5A6B7F;
  --border:     #E1E7EF;
  --radius:     10px;
  --radius-lg:  16px;
  --max-w:      1140px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); }
.section-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.15; color: var(--navy); margin-bottom: 1rem;
}
.section-heading em { font-style: italic; color: var(--blue); }
.section-sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 640px; line-height: 1.75;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  background: var(--green); color: var(--navy); padding: 0.85rem 1.8rem;
  border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.25s; box-shadow: 0 4px 14px rgba(129,215,66,0.25);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129,215,66,0.35); color: var(--navy);
}
.btn-secondary {
  color: var(--navy); padding: 0.85rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: rgba(43,123,185,0.04); }

/* ── Animations ────────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════════ */
/* FEATURE PAGE HERO                                                 */
/* ══════════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 5rem 0 4rem; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 60% 0%, rgba(0,35,75,0.04), transparent 60%), var(--bg);
}
.page-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.page-hero-content { max-width: 540px; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1.1; color: var(--navy);
  margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.page-hero h1 em { font-style: italic; color: var(--blue); }
.page-hero-sub {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 2rem;
}
.page-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual — mockup card */
.hero-visual {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,35,75,0.08); padding: 2rem;
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* ── Feature Grid ──────────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.feature-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover { border-color: rgba(43,123,185,0.2); box-shadow: 0 12px 36px rgba(0,35,75,0.07); transform: translateY(-3px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  font-size: 1.6rem; margin-bottom: 1rem;
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43,123,185,0.08);
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--navy); margin-bottom: 0.5rem; font-weight: 400;
}
.feature-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; }

/* ── Split Section (text + visual) ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-content h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400; line-height: 1.2; color: var(--navy); margin-bottom: 1rem;
}
.split-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; }
.split-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; min-height: 320px; display: flex; align-items: center; justify-content: center;
}

/* ── Stats Row ─────────────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3rem; text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--navy);
  line-height: 1; margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ── How It Works Steps ────────────────────────────────────────── */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; counter-reset: step; }
.step-item { position: relative; padding: 2rem; counter-increment: step; }
.step-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 3rem; font-weight: 400;
  color: rgba(0,35,75,0.06); display: block; margin-bottom: 0.75rem; line-height: 1;
}
.step-item h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; font-weight: 400; }
.step-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy); border-radius: var(--radius-lg); padding: 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--orange));
}
.cta-banner h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400; color: #fff; margin-bottom: 1rem;
}
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2rem; line-height: 1.7; }

/* ── Checklist ─────────────────────────────────────────────────── */
.checklist { list-style: none; margin: 1.5rem 0; }
.checklist li {
  padding: 0.5rem 0 0.5rem 1.75rem; position: relative;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0.5rem;
  color: var(--green); font-weight: 700; font-size: 1rem;
}

/* ── Mockup Elements (for hero visuals) ────────────────────────── */
.mockup-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; background: var(--surface); border-radius: 8px;
  margin-bottom: 0.75rem; font-size: 0.85rem; color: var(--text);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mockup-dot.green { background: var(--green); }
.mockup-dot.blue { background: var(--blue); }
.mockup-dot.amber { background: var(--orange); }
.mockup-dot.navy { background: var(--navy); }
.mockup-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.mockup-stars { color: var(--orange); letter-spacing: 2px; }

/* ══════════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                        */
/* ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse { direction: ltr; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .page-hero { padding: 4rem 0 3rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 3rem 1.5rem; }
}
