/* TWK Advocates — Public Site CSS
   Direction: Editorial legal. Restrained luxury. Dark with precision. */

:root {
  --bg: #0a0b0d;
  --bg-section: #0e0f11;
  --bg-dark: #070809;
  --bg-card: #141618;
  --red: #c0392b;
  --red-light: #e74c3c;
  --text: #e0e1e4;
  --text-2: #9ba3af;
  --text-3: #5c6370;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
}

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

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,11,13,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.nav-links { flex: 1; display: flex; align-items: center; gap: 24px; font-size: 0.875rem; color: var(--text-2); }
.nav-links a { transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { color: var(--text); font-weight: 500; }
.nav-client { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn-outline { border: 1px solid var(--border); color: var(--text-2); padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; transition: all 0.15s; white-space: nowrap; }
.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-solid { background: var(--red); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; transition: background 0.15s; white-space: nowrap; }
.btn-solid:hover { background: var(--red-light); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 32px 80px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 60% 50%, rgba(192,57,43,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(192,57,43,0.03) 0%, transparent 60%);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--red); margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 300; line-height: 1.05; margin-bottom: 24px; }
.hero-title em { font-style: italic; color: var(--text-2); }
.hero-body { font-size: 1.05rem; color: var(--text-2); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--red); color: #fff; padding: 13px 28px; border-radius: 6px; font-size: 0.95rem; font-weight: 500; transition: background 0.15s; }
.btn-primary:hover { background: var(--red-light); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-2); padding: 13px 28px; border-radius: 6px; font-size: 0.95rem; transition: all 0.15s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 96px 32px; }
.section-dark { background: var(--bg-dark); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; margin-bottom: 48px; }
.section-body { font-size: 1rem; color: var(--text-2); max-width: 600px; margin-bottom: 12px; line-height: 1.7; }

/* ── Practice Grid ────────────────────────────────────────────────────────── */
.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.practice-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.practice-card:hover { border-color: rgba(192,57,43,0.3); transform: translateY(-2px); }
.practice-icon { font-size: 1.8rem; margin-bottom: 14px; }
.practice-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.practice-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ── Team ─────────────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.team-avatar { width: 52px; height: 52px; background: rgba(192,57,43,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--red-light); margin-bottom: 14px; }
.team-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 12px; }
.team-bio { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }
.team-note { font-size: 0.875rem; color: var(--text-3); max-width: 520px; }

/* ── Chat ─────────────────────────────────────────────────────────────────── */
.chat-shell { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; max-width: 680px; margin-top: 32px; overflow: hidden; }
.chat-history { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; max-height: 380px; overflow-y: auto; }
.chat-msg { max-width: 85%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.assistant { align-self: flex-start; }
.chat-bubble { background: var(--bg-section); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; line-height: 1.65; }
.chat-msg.user .chat-bubble { background: rgba(192,57,43,0.12); border-color: rgba(192,57,43,0.25); }
.chat-input-row { display: flex; padding: 14px; border-top: 1px solid var(--border); gap: 10px; }
.chat-input-row input { flex: 1; background: var(--bg-section); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 10px 14px; font-family: inherit; font-size: 0.95rem; outline: none; }
.chat-input-row input:focus { border-color: rgba(192,57,43,0.4); }
.chat-send-btn { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.chat-send-btn:hover { background: var(--red-light); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 700px; }
.contact-item { display: flex; gap: 20px; margin-bottom: 16px; font-size: 0.95rem; }
.contact-label { min-width: 80px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding-top: 2px; }
.contact-item a { color: var(--text-2); }
.contact-item a:hover { color: var(--text); }
.contact-note { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; }
.contact-note a { color: var(--text); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding: 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 600; flex: 1; }
.footer-links { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-3); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-3); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 64px 20px; }
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
