/*
Theme Name: The Bearman Firm
Description: Custom theme for The Bearman Firm — Modern Editorial direction
Version: 1.1.1
Author: The Bearman Firm
*/

:root { --max-w: 1240px; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f4efe6;
  color: #1f1d19;
  margin: 0;
}

.display, h1, h2, h3, .h-display {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }

.surface    { background: #fbf7ee; }
.ink        { color: #1f1d19; }
.ink-mute   { color: #605b53; }
.accent     { color: #a4502c; }
.accent-bg  { background: #a4502c; color: #fbf7ee; }
.nav-bg     { background: #1f1d19; color: #f4efe6; }
.footer-bg  { background: #1f1d19; color: #bcb6a8; }
.hero-bg    { background: #e8dfcc; color: #1f1d19; }
.card       { background: #fffdf6; border: 1px solid #d8cdb6; }
.badge      { background: #fbf7ee; color: #a4502c; border: 1px solid #d8cdb6; }
.media-pill { background: #fbf7ee; color: #605b53; border: 1px solid #d8cdb6; }

.btn-primary { background: #1f1d19; color: #fbf7ee; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #3a352d; }
.btn-ghost { border: 1px solid #bcb6a8; color: #1f1d19; text-decoration: none; display: inline-block; }
.btn-ghost:hover { background: #1f1d19; color: #fbf7ee; }

.container-tight {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .container-tight { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.eyebrow      { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.display-xl   { font-size: clamp(3rem, 6.5vw, 5.5rem); line-height: 1.02; }
.display-l    { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.05; }
.display-m    { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.lead         { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; }
.page-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }

.underline-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 200ms;
  text-decoration: none;
}
.underline-link:hover { background-size: 100% 2px; }

.hero-img { filter: contrast(1.05) saturate(0.9); }
.hero-portrait-wrap { position: relative; overflow: hidden; }
.hero-portrait-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.45) 100%);
}

.logo-mark    { display: block; height: 42px; width: auto; }
.logo-footer  { display: block; height: 60px; width: auto; }
.logo-on-dark { filter: invert(1) hue-rotate(180deg) brightness(1.08) saturate(1.15); }

.site-nav .nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.site-nav .nav-links {
  display: flex; align-items: center;
  gap: 1.8rem; font-size: 0.85rem;
  list-style: none; padding: 0; margin: 0;
}
.site-nav .nav-links a { color: #f4efe6; text-decoration: none; }
.nav-cta { padding: 0.55rem 1rem; border-radius: 6px; font-size: 0.8rem; letter-spacing: 0.05em; }
.site-nav .btn-ghost { border-color: rgba(248,243,235,0.45); color: #f4efe6; }
.site-nav .btn-ghost:hover { background: rgba(248,243,235,0.1); color: #f4efe6; }

.site-footer .footer-inner { padding-top: 4rem; padding-bottom: 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: 0.88rem; }
.footer-col ul a { color: inherit; }
.footer-disclaimer { border-top: 1px solid rgba(188,182,168,0.3); padding-top: 1.75rem; opacity: 0.78; font-size: 0.72rem; line-height: 1.65; }
.footer-top-link { display: flex; justify-content: flex-end; margin-top: 1rem; font-size: 0.78rem; letter-spacing: 0.08em; }

.page-content { padding: clamp(3rem,6vw,5.5rem) 0; }
.page-content .container-tight { max-width: 860px; }
.page-content h1 { font-size: clamp(2.25rem,4.5vw,3.75rem); line-height: 1.05; margin-bottom: 1.5rem; }
.page-content h2 { font-size: clamp(1.75rem,3vw,2.5rem); line-height: 1.1; margin-bottom: 1.25rem; margin-top: 2rem; }
.page-content p  { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem; }
.page-content ul, .page-content ol { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.page-content a  { color: #a4502c; }

.blog-header { padding: clamp(3rem,6vw,5rem) 0; border-bottom: 1px solid #d8cdb6; margin-bottom: 3rem; }
.post-grid   { display: grid; gap: 2rem; margin-bottom: 4rem; }
.post-card   { background: #fffdf6; border: 1px solid #d8cdb6; border-radius: 8px; padding: 2rem; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: #a4502c; }
.post-meta    { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #605b53; margin-bottom: 1rem; }
.post-excerpt { color: #605b53; line-height: 1.65; margin-bottom: 1.25rem; }
.read-more    { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a4502c; text-decoration: none; }

.single-hero    { background: #e8dfcc; padding: clamp(3rem,6vw,5rem) 0; margin-bottom: 3rem; }
.single-hero h1 { font-size: clamp(2.25rem,4.5vw,3.75rem); line-height: 1.05; max-width: 880px; }
.single-meta    { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #605b53; margin-top: 1rem; }
.single-content { max-width: 780px; }
.single-content p { font-size: 1.1rem; line-height: 1.85; margin-bottom: 1.5rem; }
.single-content h2, .single-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.back-link { display: inline-block; margin-top: 3rem; color: #a4502c; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 768px) {
  .site-nav .nav-links { gap: 1rem; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-nav .nav-links .hide-mobile { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
