/*
 * Single self-hosted stylesheet for the honeypot decoy.
 * No framework, no web fonts, no external requests. The accent color is set
 * per site via the --brand custom property, which base.html overrides inline
 * from the site config. Darker shades are derived with color-mix so a new
 * site only needs to change --brand.
 */

:root {
  --brand: #1e3a5f;
  --ink: #1f2933;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e5e7eb;
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1140px;
  --space: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

a { color: var(--brand); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header / navigation */
.site-header { background: var(--brand); }
.site-header { background: color-mix(in srgb, var(--brand) 85%, black); }

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* Hero */
.hero {
  background: var(--brand);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, black));
  color: #fff;
  text-align: center;
  padding: 84px var(--space);
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 16px;
}

.hero p {
  font-size: 20px;
  margin: 0 auto 28px;
  max-width: 640px;
  opacity: 0.92;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover { background: #eef1f5; }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 85%, black); }

.btn[disabled],
.btn-brand[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Sections and page headers */
.section { padding: 60px 0; }
.section h2 { font-size: 30px; margin: 0 0 8px; }

.page-head { padding: 48px 0 4px; }
.page-title { font-size: 34px; margin: 0 0 6px; }

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Card grid (services / practice areas) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 19px;
}

.card p { margin: 0; }

/* Prose pages (about, privacy) */
.prose { max-width: 820px; padding-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose .muted { color: var(--muted); }

/* Attorney bios (no photo: a monogram avatar) */
.attorney {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 22px;
}

.attorney-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}

.attorney h3 { margin: 0; font-size: 18px; }
.attorney .attorney-title { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.attorney p { margin: 0 0 10px; }

/* Contact */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 28px 0 24px;
}

.info-block { margin-bottom: 22px; }
.info-block h4 { margin: 0 0 6px; font-size: 16px; }
.info-block p { margin: 0; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.form-field { margin-bottom: 16px; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

.form-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.contact-card h3 { margin: 0 0 10px; font-size: 18px; }
.contact-card p { margin: 0 0 12px; }
.contact-card .btn { margin-top: 4px; }

/* Footer */
.site-footer { background: var(--brand); }
.site-footer { background: color-mix(in srgb, var(--brand) 88%, black); }

.site-footer {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 34px var(--space);
  margin-top: 60px;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer p { margin: 6px 0; }
.site-footer .small { font-size: 13px; }

/* Operational pages: loading, expired, password gate (small centered cards) */
.op-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 20px;
}

.op-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.op-brand {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
}

.op-title { font-size: 20px; margin: 0 0 12px; }
.op-title.error { color: #b91c1c; }

.op-msg { color: var(--muted); font-size: 14px; margin-top: 16px; }
.op-note { color: var(--muted); font-size: 12px; margin-top: 30px; }

.op-ref {
  margin-top: 26px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Password gate */
.lock-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-badge svg { width: 26px; height: 26px; }

.doc-info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 22px;
  text-align: left;
}

.doc-info h2 { font-size: 16px; margin: 0 0 4px; }
.doc-info p { font-size: 14px; color: var(--muted); margin: 0; }

.alert {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  text-align: left;
}

.alert.error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #8a1c1c;
}

.field-label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

input[type="password"]:focus { outline: none; border-color: var(--brand); }
input[type="password"].error { border-color: #dc3545; }

.btn-block { width: 100%; padding: 12px 24px; margin-top: 18px; }

.attempt-counter {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: 8px;
}

.spinner-sm {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.op-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.op-footer p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.op-footer a { color: var(--brand); text-decoration: none; }
.op-footer a:hover { text-decoration: underline; }

.shake { animation: shake 0.5s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .hero { padding: 60px var(--space); }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .section { padding: 44px 0; }
}
