/* ============================================================
   DebtHelp, Inc — Design System v3
   White/light background, colors from company logo:
     Green  — #7aaa1e  (shield / "Debt" text)
     Blue   — #1e78c3  (shield / "Help,Inc." text)
   ============================================================ */

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

:root {
  /* --green vars are now BLUE (primary actions) */
  --green:        #1e78c3;
  --green-dark:   #155a9a;
  --green-mid:    #3a8fd1;
  --green-light:  #e8f3fc;
  --green-glow:   rgba(30,120,195,0.13);

  /* --blue vars are now GREEN (accent) */
  --blue:         #7aaa1e;
  --blue-dark:    #5c8216;
  --blue-light:   #f2f8e8;

  --white:        #ffffff;
  --bg:           #f8f9fa;
  --bg-alt:       #f0f4f8;
  --surface:      #ffffff;

  --border:       #dce4ed;
  --border-green: rgba(30,120,195,0.20);
  --border-blue:  rgba(122,170,30,0.22);

  --text:         #0f1f35;
  --text-muted:   #3a4f65;
  --text-light:   #6a7f95;
  --text-dim:     #a0b0c0;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow:       0 3px 14px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.11);

  --radius:       8px;
  --radius-lg:    12px;
  --transition:   0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

h1,h2,h3,h4,h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
p  { color: var(--text-muted); line-height: 1.7; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-family: 'Barlow', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(122,170,30,0.3); }
.btn-blue    { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }
.btn-outline-blue { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue-light); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-green { background: var(--green-light); border-color: var(--border-green); }
.card-blue  { background: var(--blue-light);  border-color: var(--border-blue); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--text-light); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-control {
  width: 100%; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 1rem;
  padding: 10px 14px; transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

/* ── Labels ── */
.section-label {
  display: inline-block; font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.section-title { color: var(--text); margin-bottom: 12px; }
.section-sub   { color: var(--text-muted); max-width: 600px; font-size: 1rem; }

.divider { width: 40px; height: 3px; background: var(--green); border-radius: 2px; margin: 12px 0 20px; }

/* ── Badges ── */
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-green { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--border-green); }
.badge-blue  { background: var(--blue-light);  color: var(--blue-dark);  border: 1px solid var(--border-blue); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 0.9rem; box-shadow: var(--shadow-lg); z-index: 9999;
  display: none; max-width: 340px; color: var(--text);
}
.toast.show    { display: block; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid #dc3545; }

/* ── Page hero (inner pages) — keep a rich dark header ── */
.page-hero {
  background: linear-gradient(135deg, #1c3210 0%, #0f2a5a 100%);
  padding: 52px 0 44px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/images/hero-office.jpg') center/cover no-repeat;
  opacity: 0.07;
}
.page-hero h1   { color: #fff; margin-bottom: 10px; }
.page-hero p    { color: rgba(255,255,255,0.78); max-width: 560px; }
.page-hero .badge { margin-bottom: 12px; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.alert-info    { background: var(--blue-light);  border: 1px solid var(--border-blue);  color: var(--blue-dark); }
.alert-success { background: var(--green-light); border: 1px solid var(--border-green); color: var(--green-dark); }
.alert-error   { background: #fff2f2; border: 1px solid #fcc; color: #b00; }
.alert-warn    { background: #fffbf0; border: 1px solid #fde68a; color: #92400e; }

/* ── Auth bar ── */
.auth-bar {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.auth-bar .auth-status { font-size: 0.85rem; color: var(--text-muted); flex: 1; }

/* ── Table ── */
.dh-table { width: 100%; border-collapse: collapse; }
.dh-table th {
  text-align: left; padding: 9px 14px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-light);
  background: var(--bg-alt); border-bottom: 2px solid var(--border);
}
.dh-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.93rem; }
.dh-table tbody tr:hover { background: var(--green-light); }

/* ── Checklist ── */
.checklist { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--text-muted); }
.checklist li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; margin-top: 2px; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:900px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } .section{ padding:56px 0; } }

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-green   { color: var(--green); }
.text-blue    { color: var(--blue); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: #fff; }
.mt-4 { margin-top:1rem; } .mt-8 { margin-top:2rem; }
.mb-4 { margin-bottom:1rem; } .mb-8 { margin-bottom:2rem; }
.hidden  { display: none !important; }
.w-full  { width: 100%; }
.err  { color: #b00 !important; }
.ok   { color: var(--green-dark) !important; }
.muted{ color: var(--text-muted) !important; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
