:root {
  --lm-navy: #1a3c6c;
  --lm-teal: #0d6e6e;
  --lm-accent: #ff6200;
  --lm-accent-hover: #e55a00;
  --lm-text: #1a1a2e;
  --lm-muted: #6c757d;
  --lm-light: #f4f7fb;
  --lm-white: #ffffff;
  --lm-radius: 12px;
  --lm-shadow: 0 4px 16px rgba(26, 60, 108, 0.08);
  --lm-navbar-height: 3.8125rem; /* ~61px — matches fixed .lm-navbar render height */
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--lm-text);
  background: var(--lm-white);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--lm-navbar-height);
}

a { color: var(--lm-navy); }
a:hover { color: var(--lm-accent); }

/* Navbar */
.lm-navbar {
  background-color: var(--lm-navy) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  min-height: var(--lm-navbar-height);
  margin-bottom: 0;
  border-bottom: none;
}

.lm-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.lm-navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
}

.lm-navbar .nav-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.lm-btn-login {
  background: var(--lm-white) !important;
  color: var(--lm-navy) !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.4rem 1.1rem !important;
}

.lm-btn-login:hover {
  background: var(--lm-light) !important;
  color: var(--lm-navy) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--lm-accent);
  border-color: var(--lm-accent);
  font-weight: 600;
  border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--lm-accent-hover);
  border-color: var(--lm-accent-hover);
}

.btn-outline-primary {
  color: var(--lm-navy);
  border-color: var(--lm-navy);
  font-weight: 600;
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background-color: var(--lm-navy);
  border-color: var(--lm-navy);
}

/* Hero */
.lm-hero {
  background: linear-gradient(135deg, rgba(26, 60, 108, 0.92), rgba(13, 110, 110, 0.88)),
    url('https://images.unsplash.com/photo-1589829545855-d10d557cf95f?w=1600&q=80') center/cover no-repeat;
  color: var(--lm-white);
  margin-top: calc(-1 * var(--lm-navbar-height));
  padding: calc(var(--lm-navbar-height) + 5rem) 0 4.5rem;
}

.lm-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.lm-hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.lm-search-form {
  background: var(--lm-white);
  padding: 1.5rem;
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow);
  max-width: 720px;
  margin: 0 auto;
}

/* Page hero (inner pages) */
.lm-page-hero {
  background: linear-gradient(135deg, var(--lm-navy), var(--lm-teal));
  color: var(--lm-white);
  margin-top: calc(-1 * var(--lm-navbar-height));
  padding: calc(var(--lm-navbar-height) + 3rem) 0 2.5rem;
  text-align: center;
}

.lm-page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Cards */
.lm-card {
  border: none;
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.lm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 60, 108, 0.12);
}

.lm-lawyer-card .lm-lawyer-photo {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--lm-light);
  flex-shrink: 0;
  display: block;
}

.lm-lawyer-card-horizontal .lm-lawyer-photo {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 1rem auto;
  display: block;
  flex-shrink: 0;
}

/* Profile */
.lm-profile-header {
  background: linear-gradient(135deg, rgba(26, 60, 108, 0.9), rgba(13, 110, 110, 0.85)),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600&q=80') center/cover no-repeat;
  color: var(--lm-white);
  margin-top: calc(-1 * var(--lm-navbar-height));
  padding: calc(var(--lm-navbar-height) + 3rem) 0 3rem;
  text-align: center;
}

.lm-profile-img {
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  object-fit: cover;
  border: 4px solid var(--lm-white);
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.lm-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.lm-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.lm-breadcrumb a:hover { color: var(--lm-white); }

.lm-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lm-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lm-light);
}

.lm-badge-soon {
  display: inline-block;
  background: var(--lm-light);
  color: var(--lm-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

/* Sidebar filters */
.lm-sidebar {
  background: var(--lm-light);
  padding: 1.5rem;
  border-radius: var(--lm-radius);
}

/* Footer */
.lm-footer {
  background-color: var(--lm-navy);
  color: var(--lm-white);
  padding: 3rem 0 1.5rem;
}

.lm-footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.lm-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.lm-footer a:hover {
  color: var(--lm-white);
  text-decoration: underline;
}

.lm-footer ul li { margin-bottom: 0.4rem; }

/* Forms */
.lm-form-card {
  background: var(--lm-white);
  padding: 2rem;
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow);
}

/* Steps / how it works */
.lm-step-icon {
  width: 56px;
  height: 56px;
  background: var(--lm-navy);
  color: var(--lm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Map placeholder */
.lm-map-placeholder {
  height: 280px;
  background: var(--lm-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lm-radius);
  color: var(--lm-muted);
  border: 2px dashed #dee2e6;
}

/* Stars */
.lm-stars { color: #f5a623; }

/* Verification badges */
.lm-badge-verif {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  line-height: 1.2;
}

.lm-badge-verif--sm {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
}

.lm-badge-verif--ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #b8dfc4;
}

.lm-badge-verif--pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.lm-badge-verif--info {
  background: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.lm-badge-verif--danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.lm-badge-verif--warn {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.lm-badge-verif-icon {
  font-size: 1em;
  line-height: 1;
}

.lm-profile-header .lm-badge-verif--warn {
  background: rgba(255, 243, 205, 0.95);
}

.lm-profile-header .lm-badge-verif--ok {
  background: rgba(212, 237, 218, 0.95);
}

/* Legal pages */
.lm-legal-content {
  background: var(--lm-white);
  padding: 2rem 2.25rem;
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow);
}

.lm-legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lm-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.lm-legal-content h2:first-of-type {
  margin-top: 1rem;
}

.lm-legal-content ul {
  padding-left: 1.25rem;
}

.lm-legal-content li {
  margin-bottom: 0.35rem;
}

.lm-legal-updated {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* 404 */
.lm-404 {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

/* Cookie consent (LGPD) */
.lm-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--lm-navy);
  color: var(--lm-white);
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.lm-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lm-cookie-banner__text {
  flex: 1 1 280px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.lm-cookie-banner__text a {
  color: var(--lm-white);
  text-decoration: underline;
}

.lm-cookie-banner__text a:hover {
  color: var(--lm-accent);
}

.lm-cookie-banner__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .lm-sidebar { margin-bottom: 1.5rem; }
  .lm-lawyer-card-horizontal .row { text-align: center; }
}
