/* ============================================================
   Ontario Family Lawyer — ontariofamilylawyer.ca
   Client: Ryan Manilla, Barrister & Solicitor
   Palette: Deep Navy #04367D · Accent Blue #5472D2 · White
   (matches legalsolutionslawfirm.ca brand)
   Note: Tailwind class names reuse legacy keys (navy → deep navy,
   burgundy → accent blue, cream → cool light neutrals) so the
   templates did not have to be mass-renamed.
   Fonts: Droid Serif (headings) · Source Sans Pro (body)
   ============================================================ */

:root {
  /* Navy (primary) */
  --navy-700: #0a3f88;
  --navy-800: #04367d;
  --navy-900: #042a5e;
  /* Accent blue (replaces "copper") */
  --blue-500: #5472d2;
  --blue-600: #3f5cc0;
  --blue-700: #3349a6;
  /* Light neutrals (replaces "ivory") */
  --light-50: #ffffff;
  --light-100: #f6f8fc;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #04367d;
  border-radius: 0.375rem;
}
.mobile-nav-link:hover { background: #f6f8fc; color: #5472d2; }

/* --- Footer --- */
.footer-link {
  color: rgba(246, 248, 252, 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: #04367d;
  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: #042a5e; }

.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: #04367d;
  background-color: #fff;
  border: 1px solid #04367d;
  border-radius: 0.375rem;
  transition: all 150ms ease;
}
.btn-secondary:hover { background-color: #04367d; 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: #5472d2;
  border-radius: 0.375rem;
  transition: background-color 150ms ease;
}
.btn-ghost:hover { background-color: #f6f8fc; }

/* --- 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: #5472d2;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #5472d2;
}

h1.display, h2.display {
  font-family: 'Droid Serif', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #042a5e;
}
/* On dark sections, the serif display headings should be white, not navy. */
.bg-navy-900 h1.display,
.bg-navy-900 h2.display,
.bg-navy-800 h1.display,
.bg-navy-800 h2.display {
  color: #ffffff;
}

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

/* --- Cards --- */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #5472d2;
  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(4, 54, 125, 0.28);
}

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

/* --- Prose (blog / article body) --- */
.prose-legal h2 { font-family: 'Droid Serif', Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #042a5e; margin-top: 2.2rem; margin-bottom: 0.8rem; }
.prose-legal h3 { font-size: 1.25rem; font-weight: 700; color: #04367d; margin-top: 1.6rem; margin-bottom: 0.6rem; }
.prose-legal p  { font-size: 1rem; line-height: 1.75; color: #333333; margin-bottom: 1rem; }
.prose-legal ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; color: #333333; }
.prose-legal ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1rem; color: #333333; }
.prose-legal li { margin-bottom: 0.4rem; line-height: 1.7; }
.prose-legal a  { color: #5472d2; text-decoration: underline; }
.prose-legal blockquote { border-left: 4px solid #5472d2; padding: 0.5rem 1rem; color: #374151; font-style: italic; margin: 1.5rem 0; background: #f6f8fc; }
.prose-legal strong { color: #042a5e; }
.prose-legal p.how-ryan { background: #f6f8fc; border-left: 4px solid #5472d2; padding: 0.85rem 1rem; border-radius: 0.25rem; color: #04367d; margin-top: 1.5rem; }
.prose-legal p.how-ryan em { font-style: normal; }

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

/* --- Dashboard table --- */
.dash-table { width: 100%; border-collapse: collapse; background: #fff; }
.dash-table th { background: #eef2fa; color: #04367d; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.7rem 0.9rem; border-bottom: 1px solid #e2e8f0; }
.dash-table td { padding: 0.85rem 0.9rem; font-size: 0.9rem; border-bottom: 1px solid #eef2f8; color: #333333; }
.dash-table tr:hover td { background: #f6f8fc; }

.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: #dce6f9; color: #2c3e85; }
.badge-published { background: #dcfce7; color: #166534; }
.badge-draft { background: #f3f4f6; color: #4b5563; }
.badge-featured { background: #f6f8fc; color: #2c3e85; }
