/* Best Trademark Lawyer — Premium Editorial Stylesheet */
/* Consumer buyer's guide — Canstar/Finder-style publication */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FFFFFF;
  --bg-warm: #FFFCF7;
  --primary: #D97706;
  --primary-dark: #B45309;
  --primary-light: #FBBF24;
  --primary-50: #FFF7ED;
  --navy: #1E293B;
  --navy-deep: #0F172A;
  --text: #334155;
  --text-light: #64748B;
  --text-dark: #1E293B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --white: #FFFFFF;
  --green: #16A34A;
  --red: #DC2626;
  --blue: #2563EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 6px;
  --radius-lg: 8px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.2rem; margin-top: 2rem; }
h4 { font-size: 1.05rem; margin-top: 1.2rem; }

p { margin-bottom: 1.25em; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

strong { color: var(--text-dark); font-weight: 600; }

blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--primary-50);
  font-style: normal;
  color: var(--text);
}

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

ul, ol { margin: 0.8em 0 1.2em 1.5em; }
li { margin-bottom: 0.4em; }

/* === LAYOUT === */
.container { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* === UTILITY BAR === */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.utility-bar .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.site-logo span { color: var(--primary); }

.site-logo .tagline {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--primary); text-decoration: none; }

/* === ORANGE RULE === */
.orange-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
  border: none;
  margin: 0;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--primary-50);
  border-bottom: 1px solid var(--border);
}

.trust-bar .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.trust-bar .inner span::before {
  content: "●";
  margin-right: 0.35rem;
  font-size: 0.6rem;
  opacity: 0.6;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-family: -apple-system, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-col p {
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
}

/* Legacy footer compat */
.site-footer .container { text-align: left; }
.footer-links { margin-top: 0.8rem; }
.footer-links a { display: inline; color: rgba(255,255,255,0.4); margin: 0 0.8rem; }
.footer-links a:hover { color: var(--primary-light); }

/* === HERO === */
.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.4em;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.7;
}

.page-hero .meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.8rem;
}

/* === BREADCRUMBS === */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.35rem; color: var(--border); }

/* Hero breadcrumb (white) */
.page-hero .breadcrumb {
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.35); }
.page-hero .breadcrumb a:hover { color: var(--primary-light); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.15); }

/* === TAGS === */
.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.tag { background: var(--primary); color: var(--white); }
.tag.guide { background: var(--blue); }
.tag.editorial { background: var(--navy); color: var(--white); }
.tag-outline { background: transparent; border: 1px solid var(--border); color: var(--text-light); }

/* === SECTION DIVIDER === */
.section-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-rule .line { width: 2rem; height: 2px; background: var(--primary); }
.section-rule .label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); }

/* === ARTICLE CARDS === */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(217,119,6,0.06);
}

.article-card .tag {
  margin-bottom: 0.5rem;
}

.article-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.article-card h3 a { color: var(--text-dark); }
.article-card h3 a:hover { color: var(--primary); text-decoration: none; }

.article-card .excerpt {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-card .card-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  opacity: 0.7;
}

/* Flat article list style */
.article-list-item {
  display: block;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.article-list-item:hover h3 { color: var(--primary); }
.article-list-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  transition: color 0.2s;
  font-family: -apple-system, sans-serif;
}
.article-list-item .list-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.6;
  margin-top: 0.2rem;
}

/* === COMPARISON TABLE === */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.88rem;
}

.comparison-table thead th {
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.comparison-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tbody tr:hover { background: var(--primary-50); }

.comparison-table tbody tr.highlight {
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
}

.comparison-table .rank { font-weight: 700; color: var(--primary); font-size: 1rem; }
.comparison-table .firm-name { font-weight: 600; color: var(--text-dark); }

/* === WINNER BADGE === */
.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 1px solid var(--primary-light);
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.winner-badge::before { content: "★"; font-size: 0.8rem; }

/* === PROS & CONS === */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }

.pros-box, .cons-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.pros-box { border-top: 3px solid var(--green); }
.cons-box { border-top: 3px solid var(--red); }

.pros-box h4, .cons-box h4 { margin-top: 0; font-size: 0.9rem; margin-bottom: 0.5rem; }
.pros-box h4 { color: var(--green); }
.cons-box h4 { color: var(--red); }

.pros-box ul, .cons-box ul { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.pros-box li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.cons-box li::before { content: "✗ "; color: var(--red); font-weight: 700; }

/* === INFO BOX === */
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 { margin-top: 0; color: var(--primary-dark); font-size: 0.95rem; }
.info-box.tip { border-left-color: var(--green); }
.info-box.tip h4 { color: var(--green); }
.info-box.warning { border-left-color: var(--red); }
.info-box.warning h4 { color: var(--red); }

/* === FIRM CARD === */
.firm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.firm-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
}

.firm-card.featured::before {
  content: "★ BTL Top Pick";
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.firm-card h3 { margin-top: 0.3rem; }
.firm-card .firm-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.8rem; }
.firm-card .firm-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* === STARS === */
.stars { color: var(--primary-light); letter-spacing: 0.1em; font-size: 1.1rem; }

/* === KEY TAKEAWAY === */
.key-takeaway {
  background: var(--primary-50);
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 2rem 0;
}

.key-takeaway h4 { margin-top: 0; color: var(--primary-dark); font-family: Georgia, serif; font-size: 0.95rem; }

/* === FAQ === */
.faq-section { margin: 2.5rem 0; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  padding: 1rem 1.25rem;
}

.faq-item h4 { margin-top: 0; margin-bottom: 0.4rem; color: var(--text-dark); font-size: 0.95rem; }
.faq-item p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-light); }

/* === TOC === */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.toc h4 { margin-top: 0; font-size: 0.85rem; margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.85rem; }
.toc li { margin-bottom: 0.25rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* === PRICE TABLE === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.88rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tbody td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--primary-50); }
.price-table .price { font-weight: 700; color: var(--primary-dark); }

/* === METHODOLOGY === */
.methodology {
  background: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.methodology h4 { margin-top: 0; color: var(--text-dark); font-size: 0.9rem; }

/* === AUTHOR BOX === */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-family: -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.1rem;
}

.author-info .role {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  html { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .header-inner { flex-direction: column; gap: 0.6rem; }
  .site-nav { gap: 1rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .utility-bar .inner { flex-direction: column; gap: 0; text-align: center; }
}

@media print {
  .site-header, .site-footer, .utility-bar, .trust-bar { display: none; }
  body { background: white; }
}
