/*
Theme Name: Bryce Law Blog
Theme URI: https://brycelaw.co
Author: Bryce Law, LLC
Author URI: https://brycelaw.co
Description: Custom blog theme for Bryce Law, LLC — matches the main website design (deep navy, gold accents, Playfair Display headings). Built for the Georgia family law blog at brycelaw.co/blog.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: brycelaw
*/

/* ============ RESET & TOKENS ============ */
:root {
  --navy-950: #081a35;
  --navy-900: #0f274d;
  --navy-800: #16305a;
  --navy-700: #1e3a5c;
  --navy-600: #2b4c73;
  --navy-500: #3d618c;
  --navy-200: #b9cbdf;
  --navy-100: #dce5ef;
  --navy-50: #f0f4f9;
  --gold-700: #a07c34;
  --gold-600: #c39a45;
  --gold-500: #d8b360;
  --gold-400: #e1c06a;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ TOP UTILITY BAR ============ */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a {
  color: var(--gold-400); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.topbar a:hover { color: var(--gold-500); }
.topbar .tb-address { display: none; }
@media (min-width: 640px) { .topbar .tb-address { display: block; } }

/* ============ HEADER ============ */
.site-header {
  background: rgba(8,26,53,0.97);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.admin-bar .site-header { top: 32px; }
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; padding-bottom: 12px;
}
.logo img { height: 52px; width: auto; display: block; }

.main-nav { display: none; align-items: center; gap: 26px; }
.main-nav a {
  color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-500); }
.main-nav .nav-cta {
  background: var(--gold-500); color: var(--navy-950) !important;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(216,179,96,0.3);
  transition: transform 0.2s, background 0.2s;
}
.main-nav .nav-cta:hover { background: var(--gold-400); transform: translateY(-2px); }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.menu-toggle {
  display: flex; background: none; border: 0; cursor: pointer;
  color: var(--white); padding: 8px;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: none; background: rgba(8,26,53,0.98);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(255,255,255,0.06); color: var(--gold-400); }
.mobile-nav .nav-cta {
  margin-top: 10px; text-align: center;
  background: var(--gold-500); color: var(--navy-950);
  font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em;
  border-radius: 999px; padding: 13px;
}

/* ============ HERO (blog index & single) ============ */
.hero {
  position: relative; background: var(--navy-950);
  padding: 88px 0 72px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/images/hero-atlanta.jpg') center/cover no-repeat;
  opacity: 0.22;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,26,53,0.65), var(--navy-950));
}
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow {
  color: var(--gold-400); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.25em;
}
.hero h1 {
  color: var(--white); font-size: clamp(30px, 5vw, 48px);
  font-weight: 700; margin-top: 12px; max-width: 820px;
}
.hero .lede {
  color: rgba(255,255,255,0.75); font-size: 17px;
  margin-top: 16px; max-width: 640px; line-height: 1.7;
}

/* Breadcrumbs */
.crumbs { margin-bottom: 22px; }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5);
}
.crumbs a:hover { color: var(--gold-400); }
.crumbs .sep::before { content: '›'; color: rgba(255,255,255,0.35); }
.crumbs [aria-current] { color: var(--gold-400); }

/* Single post meta */
.post-badge {
  display: inline-block; background: rgba(216,179,96,0.15);
  color: var(--gold-400); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: 20px; color: rgba(255,255,255,0.6); font-size: 14px;
}
.post-meta .byline { display: flex; align-items: center; gap: 9px; }
.post-meta .byline img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(216,179,96,0.5);
}
.post-meta .byline strong { color: rgba(255,255,255,0.85); }

/* ============ POST CARDS (blog index) ============ */
.posts-section { padding: 72px 0 80px; }
.posts-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--navy-100);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(8,26,53,0.06);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(216,179,96,0.5);
  box-shadow: 0 20px 40px rgba(8,26,53,0.12);
}
.card .thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .thumb img { transform: scale(1.05); }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card .meta-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--navy-500);
}
.card .cat {
  background: rgba(216,179,96,0.15); color: var(--gold-700);
  padding: 4px 10px; border-radius: 999px;
}
.card h2 {
  font-size: 20px; font-weight: 700; margin-top: 12px; line-height: 1.35;
}
.card h2 a:hover { color: var(--gold-600); }
.card .excerpt {
  flex: 1; margin-top: 10px; font-size: 14px; color: var(--navy-600);
  line-height: 1.65;
}
.card .read-more {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-600);
}
.card .read-more:hover { color: var(--navy-900); }
.card .read-more .arrow { transition: transform 0.2s; }
.card:hover .read-more .arrow { transform: translateX(4px); }

/* Pagination */
.pagination-row { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination-row .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--navy-100); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--navy-700);
  background: var(--white);
}
.pagination-row .page-numbers.current {
  background: var(--navy-900); color: var(--white); border-color: var(--navy-900);
}
.pagination-row a.page-numbers:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ============ SINGLE POST LAYOUT ============ */
.article-section { padding: 64px 0 80px; }
.article-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: 1fr 360px; }
}

/* Article typography */
.article-body { font-size: 17px; color: var(--navy-700, #2b4c73); line-height: 1.8; }
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  color: var(--navy-900); margin: 44px 0 18px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 21px; font-weight: 700; color: var(--navy-900); margin: 32px 0 14px;
}
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding: 0; list-style: none; }
.article-body li {
  position: relative; padding: 14px 18px 14px 48px; margin-bottom: 12px;
  background: var(--navy-50); border-radius: 10px; font-size: 15px; line-height: 1.6;
}
.article-body li::before {
  content: '✓'; position: absolute; left: 16px; top: 14px;
  color: var(--gold-500); font-weight: 700; font-size: 17px;
}
.article-body ol { counter-reset: item; }
.article-body ol li::before {
  counter-increment: item; content: counter(item) '.';
  color: var(--gold-500); font-weight: 700;
}
.article-body a { color: var(--gold-600); font-weight: 600; text-decoration: underline; }
.article-body a:hover { color: var(--navy-900); }
.article-body blockquote {
  margin: 28px 0; padding: 22px 26px;
  border-left: 4px solid var(--gold-500); background: var(--navy-50);
  border-radius: 0 12px 12px 0; font-style: italic;
}
.article-body img { border-radius: 12px; margin: 24px 0; }
.article-body strong { color: var(--navy-900); }

/* In-article gold CTA */
.article-cta {
  margin-top: 48px; background: var(--gold-500);
  border-radius: 16px; padding: 36px;
}
.article-cta h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--navy-950);
}
.article-cta p {
  margin-top: 10px; font-size: 14px; color: var(--navy-800); line-height: 1.65;
}
.article-cta .cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.article-cta .btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-950); color: var(--white);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 14px 26px; border-radius: 999px; transition: transform 0.2s;
}
.article-cta .btn-dark:hover { transform: translateY(-2px); }
.article-cta .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--navy-950); color: var(--navy-950);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 26px; border-radius: 999px; transition: all 0.2s;
}
.article-cta .btn-outline:hover { background: var(--navy-950); color: var(--white); }

/* Article disclaimer */
.article-disclaimer {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--navy-100);
  font-size: 12px; color: #9db0c6; line-height: 1.7;
}

/* ============ SIDEBAR ============ */
.sidebar > * + * { margin-top: 28px; }
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 110px; align-self: start; }
}

.sidebar-cta {
  background: var(--navy-950); border-radius: 16px; padding: 30px;
}
.sidebar-cta h2 { color: var(--white); font-size: 22px; font-weight: 700; }
.sidebar-cta p { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; }
.sidebar-cta .btn-gold {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; background: var(--gold-500); color: var(--navy-950);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 14px 20px; border-radius: 999px; transition: background 0.2s, transform 0.2s;
}
.sidebar-cta .btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.sidebar-cta .phone {
  display: block; text-align: center; margin-top: 14px;
  color: var(--gold-400); font-weight: 700; font-size: 17px;
}
.sidebar-cta .phone:hover { color: var(--gold-500); }
.sidebar-cta .conf {
  margin-top: 14px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.4);
}

.sidebar-related {
  background: var(--navy-950); border-radius: 16px; padding: 28px;
}
.sidebar-related h2 { color: var(--white); font-size: 19px; font-weight: 700; }
.sidebar-related ul { list-style: none; margin-top: 16px; }
.sidebar-related li + li { margin-top: 16px; }
.sidebar-related .rel-cat {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold-500);
}
.sidebar-related .rel-title {
  display: block; margin-top: 4px; font-size: 14px; font-weight: 500;
  line-height: 1.45; color: rgba(255,255,255,0.8);
}
.sidebar-related a:hover .rel-title { color: var(--gold-400); }
.sidebar-related .all-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-400);
}
.sidebar-related .all-link:hover { color: var(--gold-500); }

/* ============ CTA BAND (blog index bottom) ============ */
.cta-band {
  background: var(--navy-950); border-radius: 16px;
  padding: 44px 36px; text-align: center; margin-top: 56px;
}
.cta-band h2 { color: var(--white); font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; }
.cta-band p {
  margin: 12px auto 0; max-width: 560px;
  font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7;
}
.cta-band .btn-gold {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  background: var(--gold-500); color: var(--navy-950);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 15px 32px; border-radius: 999px; transition: background 0.2s, transform 0.2s;
}
.cta-band .btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,0.75);
  padding: 56px 0 40px; margin-top: 0;
}
.site-footer .footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.site-footer .logo img { height: 52px; width: auto; }
.site-footer address { font-style: normal; margin-top: 20px; font-size: 14px; }
.site-footer address p, .site-footer address a {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
  color: rgba(255,255,255,0.75); line-height: 1.5;
}
.site-footer address a:hover { color: var(--gold-400); }
.site-footer .f-icon {
  flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-500);
}
.site-footer h2 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-500);
}
.site-footer ul { list-style: none; margin-top: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer ul a:hover { color: var(--gold-400); }
.site-footer .footer-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: var(--gold-500); color: var(--navy-950);
  font-size: 13px; font-weight: 700; padding: 11px 22px; border-radius: 999px;
}
.site-footer .footer-cta:hover { background: var(--gold-400); }

.footer-legal {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-legal .disclaimer {
  font-size: 12px; color: rgba(255,255,255,0.45);
  line-height: 1.7; max-width: 900px;
}
.footer-legal .copy { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.45); }

/* ============ MOBILE CALL BAR ============ */
.mobile-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-950);
}
@media (min-width: 1024px) { .mobile-call-bar { display: none; } }
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; font-size: 14px; font-weight: 600;
}
.mobile-call-bar .mcb-call { background: var(--navy-900); color: var(--white); }
.mobile-call-bar .mcb-call svg { color: var(--gold-500); }
.mobile-call-bar .mcb-consult { background: var(--gold-500); color: var(--navy-950); }

/* Bottom padding so the call bar never covers content */
body { padding-bottom: 52px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ============ MISC ============ */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px); overflow: hidden;
}
.no-results { text-align: center; padding: 80px 24px; }
.no-results h2 { font-size: 26px; color: var(--navy-900); }
.no-results p { margin-top: 12px; color: var(--navy-600); }
