/* ══════════════════════════════════════════════════════════════
   Rize Capital Group — shared site chrome
   Used by every page: reset, design tokens, header/nav, buttons,
   footer, and the support chat widget. Page-specific layout
   (hero, funnel steps, article typography, etc.) stays inline on
   each page — this file is only what's genuinely shared.
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a56db;
  --blue-dark:  #1341b0;
  --blue-light: #e8f0fe;
  --navy:       #0f172a;
  --slate:      #334155;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --green:      #16a34a;
  --green-bg:   #dcfce7;
  --red:        #dc2626;
  --radius:     10px;
}

body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); }
a { text-decoration: none; color: inherit; }

/* ── NAVIGATION ─────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo { font-size: 1.35rem; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }
.logo span { color: var(--navy); }

nav { display: flex; align-items: center; gap: 32px; }
nav a { font-size: 0.9rem; font-weight: 500; color: var(--slate); }
nav a:hover, nav a.current { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: none;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }

.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-light); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--navy); color: #94a3b8;
  padding: 60px 5% 30px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-tagline { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; max-width: 280px; }

.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 8px; }
.footer-contact-item a { color: #94a3b8; }
.footer-contact-item a:hover { color: var(--white); }

.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: #94a3b8; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}

/* ── SUPPORT CHAT WIDGET ────────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,86,219,0.35);
  transition: transform 0.15s;
}
.chat-fab:hover { transform: scale(1.06); }

.chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 300;
  width: 320px; max-width: calc(100vw - 48px);
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  overflow: hidden; display: none; flex-direction: column;
}
.chat-panel.open { display: flex; }

.chat-panel-header {
  background: var(--navy); color: var(--white);
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
}
.chat-panel-header strong { font-size: 0.95rem; }
.chat-panel-header small { font-size: 0.75rem; color: #94a3b8; display: block; margin-top: 2px; }
.chat-panel-close { background: none; border: none; color: #94a3b8; font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0; }
.chat-panel-close:hover { color: var(--white); }

.chat-panel-body { padding: 18px; }
.chat-bubble {
  background: var(--bg); border-radius: 12px; padding: 12px 14px;
  font-size: 0.85rem; color: var(--slate); line-height: 1.6; margin-bottom: 16px;
}
.chat-actions { display: flex; flex-direction: column; gap: 8px; }
.chat-actions a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--slate); transition: all 0.15s;
}
.chat-actions a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ── SHARED RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 84px; }
  .chat-fab { right: 16px; bottom: 16px; }
}
