/* CJP Legal Help Center — Main Styles */
:root {
  --ink: #1a1f24;
  --ink-soft: #2c353f;
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --line: #d4cdc2;
  --accent: #0e5c45;
  --accent-2: #0a4332;
  --gold: #b0892b;
  --danger: #8b2e2e;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(26, 31, 36, 0.08);
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 78px;
  --radius: 4px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* Topbar */
.topbar {
  background: var(--ink);
  color: #d7dde3;
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #d7dde3; text-decoration: none; }
.topbar a:hover, .topbar a.is-active { color: #fff; }
.topbar__sep { opacity: .4; margin: 0 .4rem; }
.topbar__right { display: flex; gap: .85rem; align-items: center; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink);
  min-width: 0;
}
.brand__logo { width: auto; height: 56px; object-fit: contain; }
.brand__mark {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--accent); color: #fff; font-weight: 700; border-radius: 6px;
  font-family: var(--font-display);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__text strong {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em;
}
.brand__text small {
  color: #5c6570; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 280px;
}

.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem .85rem; flex-wrap: wrap;
}
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.main-nav a:hover { color: var(--accent); }
.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px;
}

/* Marquee — below header, vertical upward scroll */
.news-marquee {
  background: linear-gradient(180deg, #0e5c45 0%, #0a4332 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.news-marquee__wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 148px;
  padding-block: .65rem;
}
.news-marquee__label {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  display: flex; align-items: center;
  padding-right: .75rem;
  border-right: 1px solid rgba(255,255,255,.2);
  letter-spacing: .02em;
}
.news-marquee__viewport {
  overflow: hidden;
  height: 132px;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.news-marquee__track {
  list-style: none; margin: 0; padding: 0;
  animation: marqueeUp 40s linear infinite;
}
.news-marquee:hover .news-marquee__track { animation-play-state: paused; }
.news-marquee__track li {
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.news-marquee__track a {
  color: #f3f7f5; text-decoration: none; display: flex; gap: .75rem; align-items: baseline;
  font-size: .95rem;
}
.news-marquee__track a:hover { color: #fff; text-decoration: underline; }
.news-marquee__track time {
  flex: 0 0 auto; opacity: .75; font-size: .8rem; font-variant-numeric: tabular-nums;
}
@keyframes marqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.15rem; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; font-size: .95rem;
  min-height: 44px;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--wa { background: #128c7e; color: #fff; }
.btn--wa:hover { background: #0e7368; color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid; align-items: end;
  background:
    linear-gradient(120deg, rgba(14,92,69,.92) 0%, rgba(26,31,36,.72) 55%, rgba(26,31,36,.45) 100%),
    radial-gradient(circle at 80% 20%, rgba(176,137,43,.35), transparent 40%),
    linear-gradient(160deg, #1a1f24, #2c353f);
  color: #fff;
  overflow: hidden;
}
.hero__inner { padding: 4.5rem 0 3.5rem; max-width: 720px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15; margin: 0 0 1rem; font-weight: 700;
}
.hero p { font-size: 1.1rem; opacity: .92; margin: 0 0 1.5rem; max-width: 38ch; }
.hero__note {
  margin-top: 1.25rem; font-size: .9rem; opacity: .85;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--paper-2); }
.section__head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section__head h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0; line-height: 1.2;
}
.section__head p { margin: .35rem 0 0; color: #5c6570; }

.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.grid-2 {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem;
}

.step, .practice-item, .content-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.step__num {
  font-family: var(--font-display); color: var(--accent); font-size: 1.4rem; font-weight: 700;
}
.practice-item h3, .content-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 .5rem;
}
.practice-item p, .content-card p { margin: 0; color: #5c6570; font-size: .95rem; }
.content-card time { font-size: .8rem; color: #7a8490; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--ink); color: #fff; padding: 1.75rem; border-radius: 6px;
}
.stat-strip strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .2rem;
}
.stat-strip span { opacity: .8; font-size: .9rem; }

.cta-band {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; padding: 2.5rem 0; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); margin: 0 0 .5rem; }
.cta-band p { margin: 0 0 1.25rem; opacity: .92; }

/* Footer */
.site-footer {
  background: #12161a; color: #c8d0d8; padding-top: 3rem; margin-top: 2rem;
}
.site-footer a { color: #e8eef3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff; font-family: var(--font-display); margin-top: 0;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer__disclaimer { font-size: .88rem; opacity: .75; max-width: 42ch; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; font-size: .85rem;
}

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 200;
  background: #128c7e; color: #fff; text-decoration: none; font-weight: 700;
  padding: .85rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  min-height: 44px; display: inline-flex; align-items: center;
}
.wa-float:hover { background: #0e7368; color: #fff; }

/* Forms (shared) */
.form-card {
  background: var(--white); border: 1px solid var(--line); padding: 1.5rem; max-width: 420px; margin: 2rem auto;
  box-shadow: var(--shadow);
}
.form-card h1 { font-family: var(--font-display); font-size: 1.5rem; margin-top: 0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; min-height: 44px;
}
.alert {
  padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .95rem;
}
.alert--error { background: #f8e8e8; color: var(--danger); border: 1px solid #e5c2c2; }
.alert--ok { background: #e7f4ef; color: var(--accent-2); border: 1px solid #b9d9cb; }

/* Desktop / Mobile separation */
@media (max-width: 980px) {
  .grid-4, .grid-3, .stat-strip, .site-footer__grid, .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .news-marquee__wrap { grid-template-columns: 120px 1fr; }
  .brand__text small { max-width: 160px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(38px + var(--header-h));
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem;
    flex-direction: column; align-items: stretch; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav li a { display: block; padding: .7rem .4rem; min-height: 44px; }
  .news-marquee__wrap {
    grid-template-columns: 1fr;
    min-height: 120px;
  }
  .news-marquee__label {
    border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2);
    padding: 0 0 .4rem; font-size: .85rem;
  }
  .news-marquee__viewport { height: 96px; }
  .hero { min-height: auto; }
  .hero__inner { padding: 2.75rem 0 2.25rem; }
  .grid-4, .grid-3, .stat-strip, .site-footer__grid, .grid-2 {
    grid-template-columns: 1fr;
  }
  .section { padding: 2.5rem 0; }
  .wa-float { right: .75rem; bottom: .75rem; font-size: .9rem; }
  .topbar__left { width: 100%; }
}

/* Banner slider */
.banner-slider {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #1a1f24;
}
.banner-slide { display: none; }
.banner-slide.is-active { display: block; }
.banner-slide img {
  width: 100%;
  height: min(42vw, 420px);
  object-fit: cover;
}
.social-embed { margin-top: .5rem; max-width: 100%; overflow: hidden; }

@media (max-width: 768px) {
  .banner-slide img { height: 160px; }
}
