/* ==========================================================================
   Lazar Legal Solutions — Theme CSS
   Bootstrap 5 overrides + custom brand styles to match old Tailwind design
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   CSS Custom Properties (Brand Colors)
   ========================================================================== */
:root {
  /* Primary — deep indigo/purple */
  --primary-50:  #E6E5F5;
  --primary-100: #CAC7EA;
  --primary-200: #9490D5;
  --primary-300: #635CC2;
  --primary-400: #3F3998;
  --primary-500: #282460;
  --primary-600: #201D4E;
  --primary-700: #19163B;
  --primary-800: #0F0E25;
  --primary-900: #080713;
  --primary-950: #05040B;

  /* Secondary — warm orange */
  --secondary-50:  #FCEFE3;
  --secondary-100: #FAE1CC;
  --secondary-200: #F5C499;
  --secondary-300: #F0A665;
  --secondary-400: #EB8932;
  --secondary-500: #D16B14;
  --secondary-600: #A85710;
  --secondary-700: #7E410C;
  --secondary-800: #542B08;
  --secondary-900: #2A1604;
  --secondary-950: #130A02;

  /* Bootstrap overrides */
  --bs-primary:   #282460;
  --bs-secondary: #D16B14;
  --bs-primary-rgb:   40, 36, 96;
  --bs-secondary-rgb: 209, 107, 20;
  --bs-body-font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
  --bs-body-color: #333;
  --bs-body-font-size:19px;

/* ==========================================================================
   Base / Reset
   ========================================================================== */
html {
  font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary-500);
  text-decoration: none;
}
a:hover {
  color: var(--secondary-600);
  text-decoration: underline;
}

/* ==========================================================================
   Font Classes
   ========================================================================== */
.trajan {
  font-family: 'Raleway', serif; /* Trajan fallback — Raleway with heavier weight */
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Container Override (match old site max-width: 1100px)
   ========================================================================== */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 1100px;
}

/* ==========================================================================
   Brand Color Utility Classes — Backgrounds
   ========================================================================== */
.bg-primary-50  { background-color: var(--primary-50) !important; }
.bg-primary-100 { background-color: var(--primary-100) !important; }
.bg-primary-200 { background-color: var(--primary-200) !important; }
.bg-primary-300 { background-color: var(--primary-300) !important; }
.bg-primary-400 { background-color: var(--primary-400) !important; }
.bg-primary-500 { background-color: var(--primary-500) !important; }
.bg-primary-600 { background-color: var(--primary-600) !important; }
.bg-primary-700 { background-color: var(--primary-700) !important; }
.bg-primary-800 { background-color: var(--primary-800) !important; }
.bg-primary-900 { background-color: var(--primary-900) !important; }

.bg-secondary-50  { background-color: var(--secondary-50) !important; }
.bg-secondary-100 { background-color: var(--secondary-100) !important; }
.bg-secondary-200 { background-color: var(--secondary-200) !important; }
.bg-secondary-300 { background-color: var(--secondary-300) !important; }
.bg-secondary-400 { background-color: var(--secondary-400) !important; }
.bg-secondary-500 { background-color: var(--secondary-500) !important; }
.bg-secondary-600 { background-color: var(--secondary-600) !important; }
.bg-secondary-700 { background-color: var(--secondary-700) !important; }
.bg-secondary-800 { background-color: var(--secondary-800) !important; }
.bg-secondary-900 { background-color: var(--secondary-900) !important; }

.bg-warm { background-color: #faf5f3 !important; }

/* ==========================================================================
   Brand Color Utility Classes — Text
   ========================================================================== */
.text-primary-50  { color: var(--primary-50) !important; }
.text-primary-100 { color: var(--primary-100) !important; }
.text-primary-200 { color: var(--primary-200) !important; }
.text-primary-300 { color: var(--primary-300) !important; }
.text-primary-400 { color: var(--primary-400) !important; }
.text-primary-500 { color: var(--primary-500) !important; }
.text-primary-600 { color: var(--primary-600) !important; }
.text-primary-700 { color: var(--primary-700) !important; }
.text-primary-800 { color: var(--primary-800) !important; }
.text-primary-900 { color: var(--primary-900) !important; }

.text-secondary-50  { color: var(--secondary-50) !important; }
.text-secondary-100 { color: var(--secondary-100) !important; }
.text-secondary-200 { color: var(--secondary-200) !important; }
.text-secondary-300 { color: var(--secondary-300) !important; }
.text-secondary-400 { color: var(--secondary-400) !important; }
.text-secondary-500 { color: var(--secondary-500) !important; }
.text-secondary-600 { color: var(--secondary-600) !important; }
.text-secondary-700 { color: var(--secondary-700) !important; }
.text-secondary-800 { color: var(--secondary-800) !important; }
.text-secondary-900 { color: var(--secondary-900) !important; }

/* ==========================================================================
   Brand Color Utility Classes — Borders
   ========================================================================== */
.border-primary-500 { border-color: var(--primary-500) !important; }
.border-secondary-500 { border-color: var(--secondary-500) !important; }
.border-secondary-400 { border-color: var(--secondary-400) !important; }

/* ==========================================================================
   Button Overrides
   ========================================================================== */
.btn-primary {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary-500);
  border-color: var(--secondary-500);
  color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-600);
  border-color: var(--secondary-600);
  color: #fff;
}

.btn-outline-primary {
  color: var(--primary-500);
  border-color: var(--primary-500);
}
.btn-outline-primary:hover {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--secondary-500);
  border-color: var(--secondary-500);
}
.btn-outline-secondary:hover {
  background-color: var(--secondary-500);
  border-color: var(--secondary-500);
  color: #fff;
}

/* Large CTA button style (matches old site hero buttons) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar-brand img {
  max-height: 60px;
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  color: #333;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--secondary-500);
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
}

.navbar .dropdown-item {
  font-size: 1.5rem;
  padding: 0.5rem 1.25rem;
  transition: background-color 0.2s;
}

.navbar .dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-500);
}

/* Sticky nav with solid background */
.navbar.scrolled {
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Language switcher */
.lang-switcher img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* Top bar (stars / Google reviews) */
.top-bar {
  background-color: var(--primary-900);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.35rem 0;
}

/* ==========================================================================
   Prose — Article / Blog body content (like @tailwindcss/typography)
   ========================================================================== */
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  max-width: 100ch;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.875em;
  line-height: 1.15;
  color: var(--primary-800);
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  color: var(--primary-700);
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
  color: var(--primary-600);
}

.prose h4 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--primary-600);
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.prose a {
  color: var(--secondary-500);
  text-decoration: underline;
  font-weight: 500;
}
.prose a:hover {
  color: var(--secondary-600);
}

.prose strong {
  font-weight: 700;
  color: inherit;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose blockquote {
  border-left: 4px solid var(--secondary-400);
  padding-left: 1em;
  font-style: italic;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  color: #6b7280;
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
}

.prose hr {
  border-color: #e5e7eb;
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose table th {
  background-color: var(--primary-50);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--primary-200);
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.75em;
  text-align: center;
}

/* ==========================================================================
   Section Utilities
   ========================================================================== */
.scroll-mt { scroll-margin-top: 9rem; }
.scroll-mt-48 { scroll-margin-top: 12rem; }

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-padding-lg {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.separator-below {
  border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.6), rgba(255,255,255,0.7));
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(40,36,96,0.85), rgba(40,36,96,0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Video hero (homepage) */
.hero-video-wrap {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(40,36,96,0.88), rgba(40,36,96,0.80));
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Hero Two Cols (Service pages)
   ========================================================================== */
.hero-two-cols {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   Cards & Shadows
   ========================================================================== */
.shadow-custom {
  box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.08);
}

.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Service Box Grid (Homepage)
   ========================================================================== */
.service-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .service-box-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.service-box-item {
  background-color: var(--secondary-500);
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}
.service-box-item:hover {
  background-color: var(--secondary-600);
}
.service-box-item a {
  color: #fff;
  text-decoration: none;
}
.service-box-item a:hover {
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   Testimonials / Reviews
   ========================================================================== */
.review-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review-card .reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-stars {
  color: #fbbc04; /* Google gold */
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Comparison Sections (Mediation page)
   ========================================================================== */
.comparison {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  color: #fff;
}

.comparison-column {
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.comparison-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  background-color: rgba(128, 0, 0, 0.75);
}

.comparison-column:nth-child(2)::before {
  background-color: rgba(16, 134, 29, 0.84);
}

.comparison .content {
  position: relative;
  color: #fff;
  padding: 20px;
  z-index: 1;
}

.comparison-column h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.comparison-column ul {
  list-style-type: none;
  margin-top: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .comparison {
    flex-direction: row;
  }
  .comparison-column {
    margin-right: 20px;
  }
  .comparison-column:last-child {
    margin-right: 0;
  }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form .form-control {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 0.2rem rgba(40,36,96,0.15);
}

.contact-form textarea.form-control {
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background-color: var(--primary-900);
  color: #fff;
}

footer.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
footer.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer .footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-card {
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid #e5e7eb;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.blog-card .card-title a {
  color: var(--primary-700);
  text-decoration: none;
}
.blog-card .card-title a:hover {
  color: var(--secondary-500);
}

.blog-post-header {
  position: relative;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-500);
}
.pagination .page-item.active .page-link {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}

/* ==========================================================================
   CTA / Callout Sections
   ========================================================================== */
.cta-section {
  background-color: var(--primary-500);
  color: #fff;
  padding: 3rem 0;
}

.callout-section {
  background-color: var(--secondary-500);
  color: #fff;
  padding: 2rem 0;
}

/* ==========================================================================
   Banner
   ========================================================================== */
.banner-section {
  position: relative;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,36,96,0.8);
}

/* ==========================================================================
   Section Title
   ========================================================================== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-800);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-500);
  margin-top: 0.5rem;
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 0;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
.object-fit-cover { object-fit: cover; }

.min-vh-90 { min-height: 90vh; }
.min-vh-60 { min-height: 60vh; }
.min-vh-40 { min-height: 40vh; }

/* Fix for YouTube / video embeds */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-responsive iframe,
.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Carousel Overrides (for testimonials)
   ========================================================================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-500);
  border-radius: 50%;
  padding: 1rem;
  background-size: 50%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-400);
}

/* ==========================================================================
   Blog Sidebar
   ========================================================================== */
.sidebar-section {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: visible;
}

.sidebar-section .sidebar-heading,
.sidebar-section .bg-secondary-500 {
  border-radius: 0.5rem 0.5rem 0 0;
}

.sidebar-heading {
  background-color: var(--primary-600);
  color: #fff;
  padding: 0.5rem 0.75rem;
  margin: 0;
  font-size: 1rem;
}

/* Search results dropdown */
#search-results {
  max-height: 350px;
  overflow-y: auto;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 1050 !important;
}

#search-results .search-result-item {
  color: var(--primary-700);
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s;
}

#search-results .search-result-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-500);
  text-decoration: none;
}

/* Search input inside sidebar section */
.sidebar-section .form-control {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-section .form-control:focus {
  box-shadow: inset 0 0 0 2px var(--primary-300);
}

/* Featured article image */
.featured-article-img {
  max-height: 180px;
  object-fit: cover;
  display: block;
}

/* Recent articles list */
.recent-article-item {
  border-color: #e5e7eb !important;
}

.recent-article-item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Sidebar section inner padding for items without headers */
.sidebar-section > .form-control,
.sidebar-section > ul,
.sidebar-section > .position-relative {
  padding: 0.75rem;
}

#recent-articles-list {
  padding: 0.75rem;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .navbar, footer, .map-section, .testimonials-section, .contact-section {
    display: none !important;
  }
}
