/* Lotwright Help Center — brand CSS
   Mirrors the marketing site's design token system.
   Keep in sync with marketing/assets/styles.css brand variables.
*/

:root {
  --forge:        #1A1814;
  --forge-soft:   #3D3830;
  --forge-faint:  #6B6358;
  --parchment:    #F5F0E8;
  --parchment-deep: #EDE8DF;
  --parchment-lift: #FAF7F2;
  --brass:        #C8963C;
  --brass-deep:   #92400e;
  --rule:         #DDD8CF;
  --card:         #FFFFFF;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--parchment);
  color: var(--forge);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--brass-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--forge);
  padding: 0.9rem 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.brand-name {
  font-size: 1rem; font-weight: 700; color: var(--parchment);
  letter-spacing: -0.01em;
}
.brand-sep {
  color: var(--forge-faint); font-size: 0.9rem; font-weight: 300;
}
.help-label {
  color: #C8963C; font-size: 0.9rem; font-weight: 600;
}
.header-search {
  flex: 1; display: flex; gap: 0.5rem;
}
.header-search input {
  flex: 1; max-width: 360px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: var(--parchment); border-radius: 7px; padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search input:focus { outline: none; border-color: var(--brass); }
.header-search button {
  background: var(--brass); color: #fff; border: none;
  border-radius: 7px; padding: 0.4rem 1rem; font-size: 0.875rem;
  font-weight: 600; cursor: pointer;
}
.header-nav { margin-left: auto; display: flex; gap: 1rem; }
.header-nav a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.header-nav a:hover { color: #fff; text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────── */
.help-hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(ellipse at top, rgba(184,116,43,0.1) 0%, transparent 60%), var(--parchment);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.help-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.help-hero .lead { font-size: 1.05rem; color: var(--forge-soft); max-width: 520px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-search {
  display: flex; gap: 0.5rem; max-width: 520px; margin: 0 auto;
}
.hero-search input {
  flex: 1; border: 1.5px solid var(--rule); background: #fff;
  border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero-search input:focus { outline: none; border-color: var(--brass); }
.hero-search button {
  background: var(--forge); color: var(--parchment); border: none;
  border-radius: 10px; padding: 0.75rem 1.5rem; font-size: 0.95rem;
  font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: var(--brass-deep); }

/* ── Main layout ─────────────────────────────────────────── */
.help-body { padding: 3rem 0 5rem; }

/* ── Category grid ───────────────────────────────────────── */
.categories-section h2 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forge-faint); margin-bottom: 1.25rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.category-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.4rem 1.25rem; text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s; display: block;
}
.category-card:hover {
  border-color: var(--brass); box-shadow: 0 4px 16px rgba(184,116,43,0.1);
  text-decoration: none;
}
.category-icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.category-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--forge); margin-bottom: 0.3rem; }
.category-card p { font-size: 0.82rem; color: var(--forge-faint); line-height: 1.5; }

/* ── Article list ────────────────────────────────────────── */
.articles-section { margin-top: 2rem; }
.articles-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.article-list { list-style: none; }
.article-list li { border-bottom: 1px solid var(--rule); }
.article-list a {
  display: block; padding: 0.85rem 0;
  color: var(--forge-soft); font-size: 0.95rem;
}
.article-list a:hover { color: var(--brass-deep); text-decoration: none; padding-left: 0.25rem; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--forge-faint); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--forge-faint); }
.breadcrumb a:hover { color: var(--brass-deep); }
.breadcrumb span { color: var(--rule); }

/* ── Article page ────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
.article-sidebar { position: sticky; top: 80px; }
.article-sidebar h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forge-faint); margin-bottom: 0.75rem; }
.article-sidebar ul { list-style: none; }
.article-sidebar li { margin-bottom: 0.25rem; }
.article-sidebar a { font-size: 0.85rem; color: var(--forge-soft); }
.article-sidebar a:hover { color: var(--brass-deep); text-decoration: none; }
.article-sidebar a.active { color: var(--brass-deep); font-weight: 600; }

.article-content { max-width: 680px; }
.article-content h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.article-meta { font-size: 0.82rem; color: var(--forge-faint); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.article-content h2 { font-size: 1.15rem; color: var(--forge); margin: 2rem 0 0.6rem; }
.article-content h3 { font-size: 1rem; color: var(--forge); margin: 1.5rem 0 0.4rem; }
.article-content p { font-size: 0.95rem; color: var(--forge-soft); line-height: 1.75; margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.5rem 0 1rem 1.4rem; font-size: 0.93rem; color: var(--forge-soft); line-height: 1.75; }
.article-content li { margin-bottom: 0.3rem; }
.article-content a { color: var(--brass-deep); }
.article-content strong { color: var(--forge); }
.article-content code {
  background: var(--parchment-deep); border: 1px solid var(--rule);
  border-radius: 4px; padding: 0.1em 0.4em; font-size: 0.875em; font-family: monospace;
}
.article-content blockquote {
  border-left: 3px solid var(--brass); background: var(--parchment-deep);
  padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0;
}
.article-content blockquote p { margin-bottom: 0; }

.tip-box {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.tip-box p { color: #166534; margin-bottom: 0; font-size: 0.9rem; }
.tip-box strong { color: #14532d; }

.warn-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.warn-box p { color: #92400e; margin-bottom: 0; font-size: 0.9rem; }

/* ── Feedback / contact CTA ─────────────────────────────── */
.article-feedback {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.article-feedback p { font-size: 0.9rem; color: var(--forge-faint); }
.article-feedback a {
  display: inline-block; background: var(--forge); color: var(--parchment);
  padding: 0.45rem 1rem; border-radius: 7px; font-size: 0.875rem; font-weight: 600;
}
.article-feedback a:hover { background: var(--brass-deep); text-decoration: none; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--forge); color: rgba(255,255,255,0.55);
  padding: 2.5rem 0; margin-top: 3rem;
  font-size: 0.82rem;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-inner a { color: rgba(255,255,255,0.55); }
.footer-inner a:hover { color: #fff; text-decoration: none; }
.footer-links { display: flex; gap: 1.25rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .hero-search { flex-direction: column; }
  .header-search { display: none; }
}
