/* LawyerServices — professional legal blog theme */
:root {
  --navy: #0f2744;
  --navy-deep: #0a1b30;
  --navy-soft: #1a3a5c;
  --gold: #c9a227;
  --gold-light: #e0c35a;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #5b6573;
  --border: #e5e1d8;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--gold); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: .02em;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold), #a8841a);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo span { color: var(--gold-light); }
.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: #dbe4f0;
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  border-radius: 8px;
  padding: .45rem .7rem;
  cursor: pointer;
}
.nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy-deep); padding: 1rem 1.25rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav.open { position: static; flex-direction: row; background: transparent; padding: 0; border: 0; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: white;
  padding: 3rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
}
.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hero p { color: #c9d5e5; margin: 0 0 1.5rem; font-size: 1.05rem; }
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-image img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
section { padding: 3rem 0; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0 0 .5rem;
}
.section-lead { color: var(--muted); margin: 0 0 1.75rem; max-width: 60ch; }
.section-head { margin-bottom: 1.5rem; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,39,68,.12); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  background: #eef3f9;
  color: var(--navy-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
}
.card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; color: var(--navy); font-family: var(--serif); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.read-more { font-weight: 600; color: var(--navy-soft); margin-top: .35rem; }
.read-more:hover { color: var(--gold); }

/* Feature boxes */
.feature {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.feature h3 { margin: 0 0 .4rem; color: var(--navy); font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.icon-dot {
  width: 40px; height: 40px; border-radius: 10px;
  background: #eef3f9; color: var(--navy);
  display: grid; place-items: center; font-weight: 700; margin-bottom: .75rem;
}

/* CTA */
.cta-band {
  background: var(--navy);
  color: white;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-band { grid-template-columns: 1.4fr .6fr; padding: 2.25rem 2.5rem; }
}
.cta-band h2 { font-family: var(--serif); margin: 0 0 .4rem; font-size: 1.6rem; }
.cta-band p { margin: 0; color: #c9d5e5; }

/* Ad slots — clean, no borders/labels; space reserved for network tags */
.ad-slot {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin: 1.25rem auto;
  gap: .5rem;
  overflow: hidden;
  width: 100%;
}
.ad-slot::before { content: none; }
.ad-slot.leaderboard { max-width: 970px; min-height: 90px; }
.ad-slot.sidebar { min-height: 250px; }
.ad-slot.in-article { max-width: 336px; min-height: 250px; margin-left: auto; margin-right: auto; }
.ad-unit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  overflow: hidden;
  margin-top: 0;
  background: transparent;
}
.ad-unit.ad-300x250 { min-height: 250px; }
.ad-unit.ad-336 { min-height: 280px; }
.ad-unit.ad-300x600 { min-height: 600px; max-width: 300px; }
.ad-unit.ad-160 { min-height: 600px; max-width: 160px; }
.ad-unit.ad-728 { min-height: 90px; max-width: 728px; }
.ad-unit.ad-970 { min-height: 250px; max-width: 970px; }
.ad-unit.ad-320 { min-height: 100px; max-width: 320px; }
.ad-unit ins.ins-zone {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  background: transparent;
}
.ad-desktop { display: none; width: 100%; justify-content: center; flex-direction: column; align-items: center; gap: .5rem; }
.ad-mobile { display: flex; justify-content: center; width: 100%; }
.ad-skyscraper { margin-top: .5rem; }
@media (min-width: 768px) {
  .ad-desktop { display: flex; }
  .ad-mobile { display: none; }
  .ad-slot.leaderboard { min-height: 90px; }
}
/* Prefer 728 on medium, 970 on wide leaderboards */
.ad-slot.leaderboard .ad-970 { display: none; }
@media (min-width: 1000px) {
  .ad-slot.leaderboard .ad-970 { display: flex; }
  .ad-slot.leaderboard .ad-728 { display: none; }
  .ad-slot.leaderboard { min-height: 250px; }
}
/* Sidebar skyscraper only on wide screens */
.ad-slot.sidebar .ad-skyscraper { display: none; }
@media (min-width: 1100px) {
  .ad-slot.sidebar .ad-skyscraper { display: flex; }
  .ad-slot.sidebar { min-height: 600px; }
}
.ad-slot.ad-stack {
  max-width: 336px;
  min-height: 540px;
  gap: .75rem;
}
.home-grid-ad {
  width: 100%;
  max-width: none !important;
  min-height: 90px !important;
  background: transparent !important;
  border: 0 !important;
}
.home-grid-ad .ad-desktop,
.home-grid-ad .ad-mobile {
  width: 100%;
}

/* Left / right page wing ads (160x600) — empty side margins */
.ad-wings {
  display: none;
}
.ad-wing {
  position: fixed;
  top: 96px;
  z-index: 40;
  width: 160px;
}
.ad-wing-left { left: max(8px, calc((100vw - 1120px) / 2 - 176px)); }
.ad-wing-right { right: max(8px, calc((100vw - 1120px) / 2 - 176px)); }
.ad-wing .wing-slot {
  width: 160px;
  min-height: 600px;
  max-width: 160px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ad-wing .ad-unit.ad-160 {
  min-height: 600px;
  max-width: 160px;
  margin-top: 0;
}
/* Show only when there is real side margin space */
@media (min-width: 1440px) {
  .ad-wings { display: block; }
}
/* Extra-wide screens push wings further into empty gutters */
@media (min-width: 1600px) {
  .ad-wing-left { left: max(16px, calc((100vw - 1120px) / 2 - 190px)); }
  .ad-wing-right { right: max(16px, calc((100vw - 1120px) / 2 - 190px)); }
}
/* Hide wings on print */
@media print {
  .ad-wings { display: none !important; }
}

/* Blog layout */
.page-hero {
  background: var(--navy);
  color: white;
  padding: 2.5rem 0;
}
.page-hero h1 {
  font-family: var(--serif);
  margin: 0 0 .5rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}
.page-hero p { margin: 0; color: #c9d5e5; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #9fb0c5; margin-bottom: .75rem; }
.breadcrumb a { color: var(--gold-light); }

.article-layout {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
}
@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.article {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-content { padding: 1.5rem 1.25rem 2rem; }
@media (min-width: 640px) { .article-content { padding: 2rem 2.25rem 2.5rem; } }
.article-content h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 .75rem;
}
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.article-content h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 1.8rem 0 .7rem;
}
.article-content h3 {
  color: var(--navy-soft);
  font-size: 1.08rem;
  margin: 1.3rem 0 .5rem;
}
.article-content p { margin: 0 0 1rem; color: #2d3642; }
.article-content ul, .article-content ol { margin: 0 0 1rem; padding-left: 1.25rem; color: #2d3642; }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: #f8f4ea;
  color: var(--navy);
  font-style: italic;
}
.disclaimer-box {
  background: #f8f4ea;
  border: 1px solid #e6d7a8;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: .9rem;
  color: #5a4d28;
  margin-top: 1.5rem;
}

.sidebar { display: grid; gap: 1.25rem; }
.side-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.side-card h3 {
  margin: 0 0 .85rem;
  font-size: 1rem;
  color: var(--navy);
  font-family: var(--serif);
}
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.side-list a { color: var(--navy-soft); font-weight: 500; font-size: .92rem; }
.side-list a:hover { color: var(--gold); }
.kw-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.kw-cloud span {
  background: #eef3f9;
  color: var(--navy-soft);
  font-size: .75rem;
  padding: .3rem .55rem;
  border-radius: 999px;
}

/* Static pages */
.prose {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 2rem;
  margin: 2rem 0 3rem;
}
@media (min-width: 640px) { .prose { padding: 2rem 2.25rem 2.5rem; } }
.prose h2 { font-family: var(--serif); color: var(--navy); margin: 1.6rem 0 .6rem; font-size: 1.3rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2d3642; }
.prose ul { padding-left: 1.2rem; }

/* Contact form */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .9rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem .9rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(201,162,39,.35);
  border-color: var(--gold);
}
textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b7c4d6;
  padding: 2.75rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  color: white;
  margin: 0 0 .85rem;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer a { color: #b7c4d6; display: block; margin-bottom: .45rem; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand p { margin: .6rem 0 0; font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
}

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Search */
.search-inline { margin: 0 0 1.5rem; }
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
}
.search-form input[type="search"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .85rem 1.1rem;
  font: inherit;
  background: #fff;
}
.search-form-lg input[type="search"] {
  padding: 1rem 1.2rem;
  font-size: 1.02rem;
  border-radius: 14px;
}
.search-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.search-suggestions button {
  border: 1px solid var(--border);
  background: #eef3f9;
  color: var(--navy-soft);
  border-radius: 999px;
  padding: .4rem .75rem;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.search-suggestions button:hover {
  border-color: var(--gold);
  color: var(--navy);
}
.search-results {
  display: grid;
  gap: 1rem;
}
.search-result-card {
  display: grid;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1rem;
}
@media (min-width: 720px) {
  .search-result-card {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}
.search-result-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
}
.search-result-body h2 {
  margin: .2rem 0 .45rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
}
.search-result-body p {
  margin: 0 0 .55rem;
  color: var(--muted);
}
.header-search {
  display: none;
}
@media (min-width: 960px) {
  .header-search {
    display: block;
    min-width: 210px;
  }
  .header-search input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 999px;
    padding: .55rem .9rem;
    font: inherit;
  }
  .header-search input::placeholder { color: #b7c4d6; }
}