/* ============================================================
   Ontario Landlord Lawyer — custom theme
   Palette: deep navy (#152a4a) · burgundy (#6e2323) · cream
   ============================================================ */

:root {
  --navy-700: #152a4a;
  --navy-800: #0f2038;
  --navy-900: #0a1628;
  --burgundy-600: #8f3333;
  --burgundy-700: #6e2323;
  --cream-50: #fdfbf5;
  --cream-100: #faf5e6;
}

/* --- Navigation --- */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #152a4a;
  border-radius: 0.375rem;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-link:hover { color: #6e2323; background-color: #faf5e6; }
.nav-link-active {
  color: #6e2323;
  position: relative;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0.9rem;
  right: 0.9rem;
  height: 3px;
  background-color: #6e2323;
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #152a4a;
  border-radius: 0.375rem;
}
.mobile-nav-link:hover { background: #faf5e6; color: #6e2323; }

/* --- Footer --- */
.footer-link {
  color: rgba(250, 245, 230, 0.9);
  transition: color 150ms ease;
}
.footer-link:hover { color: #fff; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background-color: #6e2323;
  border-radius: 0.375rem;
  transition: background-color 150ms ease, transform 150ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover { background-color: #521a1a; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #152a4a;
  background-color: #fff;
  border: 1px solid #152a4a;
  border-radius: 0.375rem;
  transition: all 150ms ease;
}
.btn-secondary:hover { background-color: #152a4a; color: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6e2323;
  border-radius: 0.375rem;
  transition: background-color 150ms ease;
}
.btn-ghost:hover { background-color: #faf5e6; }

/* --- Typography helpers --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6e2323;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #6e2323;
}

h1.display, h2.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f2038;
}
/* On dark sections, the serif display headings should be cream, not navy. */
.bg-navy-900 h1.display,
.bg-navy-900 h2.display,
.bg-navy-800 h1.display,
.bg-navy-800 h2.display {
  color: #faf5e6;
}

/* --- Hero decorative frame --- */
.hero-frame {
  position: relative;
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 245, 230, 0.2);
  pointer-events: none;
}

/* --- Cards --- */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e7e5e0;
  border-top: 4px solid #6e2323;
  border-radius: 0.375rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(15, 32, 56, 0.25);
}

.stat-card {
  background: #fff;
  border-left: 4px solid #6e2323;
  padding: 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* --- Prose (blog body) --- */
.prose-legal h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #0f2038; margin-top: 2.2rem; margin-bottom: 0.8rem; }
.prose-legal h3 { font-size: 1.25rem; font-weight: 700; color: #152a4a; margin-top: 1.6rem; margin-bottom: 0.6rem; }
.prose-legal p  { font-size: 1rem; line-height: 1.75; color: #1f2937; margin-bottom: 1rem; }
.prose-legal ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; color: #1f2937; }
.prose-legal ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1rem; color: #1f2937; }
.prose-legal li { margin-bottom: 0.4rem; line-height: 1.7; }
.prose-legal a  { color: #6e2323; text-decoration: underline; }
.prose-legal blockquote { border-left: 4px solid #6e2323; padding: 0.5rem 1rem; color: #374151; font-style: italic; margin: 1.5rem 0; background: #faf5e6; }
.prose-legal strong { color: #0f2038; }

/* --- Forms --- */
label.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #152a4a;
  margin-bottom: 0.35rem;
}

/* --- Dashboard table --- */
.dash-table { width: 100%; border-collapse: collapse; background: #fff; }
.dash-table th { background: #f2f5fa; color: #152a4a; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.7rem 0.9rem; border-bottom: 1px solid #e7e5e0; }
.dash-table td { padding: 0.85rem 0.9rem; font-size: 0.9rem; border-bottom: 1px solid #f0ede6; color: #1f2937; }
.dash-table tr:hover td { background: #fdfbf5; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}
.badge-new { background: #f5e4e4; color: #6e2323; }
.badge-published { background: #dcfce7; color: #166534; }
.badge-draft { background: #f3f4f6; color: #4b5563; }
.badge-featured { background: #faf5e6; color: #876c30; }

/* Wave divider at the bottom of every navy hero (templates/_partials/hero_wave.html).
   Extra bottom padding keeps headlines and buttons clear of the curve. */
.has-hero-wave { position: relative; padding-bottom: calc(var(--hero-pb, 4rem) + clamp(40px, 7vw, 96px)) !important; }
.hero-wave {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: clamp(40px, 7vw, 96px);
  display: block; pointer-events: none;
}
@media (max-width: 640px) {
  .hero-wave { height: 36px; }
  .has-hero-wave { padding-bottom: calc(var(--hero-pb, 3.5rem) + 36px) !important; }
}

/* Enquiry kanban (dashboard/messages_list.html). Columns scroll sideways on small screens. */
.kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kanban-col { flex: 0 0 15.5rem; background: #f2f5fa; border: 1px solid #dbe3ef; border-radius: 0.375rem; min-height: 12rem; transition: background .15s, border-color .15s; }
.kanban-col.is-over { background: #fdfbf5; border-color: #6e2323; }
.kanban-col-spam { background: #fbf4f4; border-color: #f5e4e4; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #0f2038; border-bottom: 1px solid #dbe3ef; }
.kanban-count { background: #fff; border: 1px solid #dbe3ef; border-radius: 999px; padding: 0 .5rem; font-size: .7rem; }
.kanban-cards { display: flex; flex-direction: column; gap: .5rem; padding: .6rem; min-height: 8rem; }
.kanban-card { background: #fff; border: 1px solid #e7e5e4; border-radius: .375rem; padding: .65rem .7rem; cursor: grab; box-shadow: 0 1px 1px rgba(10,22,40,.04); }
.kanban-card.is-dragging { opacity: .5; }

/* Cookie consent banner (templates/_partials/cookie_banner.html). Reject and Accept carry equal weight. */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 44rem; margin: 0 auto;
  background: #0a1628; color: #faf5e6; border: 1px solid #2d4d7a; border-radius: .5rem; padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(10,22,40,.35); display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 18rem; font-size: .85rem; line-height: 1.5; margin: 0; }
.cookie-banner__text a { color: #e9d89b; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; }
.cookie-banner__btn { min-width: 6.5rem; padding: .6rem 1rem; font-size: .85rem; font-weight: 600; border-radius: .375rem;
  background: #faf5e6; color: #0a1628; border: 2px solid #faf5e6; cursor: pointer; }
.cookie-banner__btn:hover { background: #fff; }
.cookie-banner__btn:focus-visible { outline: 3px solid #c36868; outline-offset: 2px; }
