/* Meridian Legal Group - law firm template (fictional) */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #1a2332;
  --muted: #5c6574;
  --line: #ddd8ce;
  --navy: #2c4a6e;
  --navy-deep: #1e3348;
  --brass: #8b7355;
  --brass-soft: #f0ebe3;
  --font: "Source Sans 3", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

html { scroll-behavior: smooth; }

body.theme-law {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

body.theme-law a { color: var(--navy); text-decoration: none; }
body.theme-law a:hover { color: var(--navy-deep); }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.site-nav {
  position: sticky;
  top: 42px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo small {
  display: block;
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}

.hero-law {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) {
  .hero-law { grid-template-columns: 1fr; }
}
.hero-law h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-law .lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 44ch;
}
.hero-law .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.trust-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}
.hero-law figure img {
  width: 100%;
  border-radius: 2px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.disclaimer {
  background: var(--brass-soft);
  border-left: 3px solid var(--brass);
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.block {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.block-head { margin-bottom: 28px; }
.block-head h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
}
.block-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 50ch;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.practice-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}
.practice-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}
.practice-card p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
}
.practice-card ul {
  margin-top: 14px;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.practice-card ul li::before {
  content: "-  ";
  color: var(--brass);
}
.practice-card .btn {
  margin-top: 18px;
  width: 100%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.attorney {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.attorney img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(20%);
}
.attorney .body { padding: 20px; }
.attorney h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
}
.attorney .role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-top: 4px;
}
.attorney p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.consult-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .consult-layout { grid-template-columns: 1fr; }
}
.consult-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 2px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--paper);
}
.field textarea { min-height: 88px; resize: vertical; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.chip.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.consult-aside {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 24px;
  border-radius: 2px;
  font-size: 0.875rem;
}
.consult-aside h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 12px;
}
.consult-aside ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}
.confirm-box {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: var(--brass-soft);
  border: 1px solid var(--line);
  font-size: 0.875rem;
}
.confirm-box.show { display: block; }
.confirm-box code { font-weight: 700; color: var(--navy); }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 2px;
}
.faq-item h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.faq-item p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .two-up { grid-template-columns: 1fr; }
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 2px;
}
.hours-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.hours-line:last-child { border-bottom: 0; }

.site-footer {
  padding: 40px 28px 56px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.65;
}
.site-footer a { color: #d4c4a8; font-weight: 600; }
.site-footer .shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .site-footer .shell { grid-template-columns: 1fr; }
}
