/* ============================================================
   Family Lawyer — ontariofamilylawyer.ca
   Palette: Deep Teal · Copper · Ivory
   Note: Tailwind class names reuse legacy keys (navy → teal,
   burgundy → copper, cream → ivory) so templates didn't have
   to be mass-renamed. The hex values below are the canonical
   palette for this site.
   ============================================================ */

:root {
  /* Teal (primary, replaces "navy") */
  --teal-700: #0e4f56;
  --teal-800: #093a40;
  --teal-900: #062b30;
  /* Copper (accent, replaces "burgundy") */
  --copper-600: #d08845;
  --copper-700: #b87333;
  --copper-800: #8a5626;
  /* Ivory (neutral, replaces "cream") */
  --ivory-50: #fdfbf6;
  --ivory-100: #faf6ee;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0e4f56;
  border-radius: 0.375rem;
}
.mobile-nav-link:hover { background: #faf6ee; color: #b87333; }

/* --- Footer --- */
.footer-link {
  color: rgba(250, 246, 238, 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: #b87333;
  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: #8a5626; }

.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: #0e4f56;
  background-color: #fff;
  border: 1px solid #0e4f56;
  border-radius: 0.375rem;
  transition: all 150ms ease;
}
.btn-secondary:hover { background-color: #0e4f56; 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: #b87333;
  border-radius: 0.375rem;
  transition: background-color 150ms ease;
}
.btn-ghost:hover { background-color: #faf6ee; }

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

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

/* --- Hero decorative frame --- */
.hero-frame {
  position: relative;
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 246, 238, 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 #b87333;
  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(9, 58, 64, 0.28);
}

.stat-card {
  background: #fff;
  border-left: 4px solid #b87333;
  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: #093a40; margin-top: 2.2rem; margin-bottom: 0.8rem; }
.prose-legal h3 { font-size: 1.25rem; font-weight: 700; color: #0e4f56; 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: #b87333; text-decoration: underline; }
.prose-legal blockquote { border-left: 4px solid #b87333; padding: 0.5rem 1rem; color: #374151; font-style: italic; margin: 1.5rem 0; background: #faf6ee; }
.prose-legal strong { color: #093a40; }

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

/* --- Dashboard table --- */
.dash-table { width: 100%; border-collapse: collapse; background: #fff; }
.dash-table th { background: #eef5f5; color: #0e4f56; 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: #fdfbf6; }

.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: #f6e4d3; color: #8a5626; }
.badge-published { background: #dcfce7; color: #166534; }
.badge-draft { background: #f3f4f6; color: #4b5563; }
.badge-featured { background: #faf6ee; color: #8a5626; }
