/* ==========================================================================
   GREINER LAW CORP. — Editorial Design System
   Aesthetic: Deep Navy + Warm Gold, Consultative Editorial Serif & Clean Sans
   ========================================================================== */

:root {
  color-scheme: light;

  /* Semantic Color Tokens */
  --color-navy-dark: #0e1b2e;
  --color-navy: #1b2e4a;
  --color-navy-mid: #243d62;
  --color-navy-pale: #eef2f8;
  --color-gold: #c9a52c;
  --color-gold-strong: #8a6d14;
  --color-gold-light: #e8c96a;
  --color-gold-pale: #fbf5e0;

  --color-background: #f7f5f0;
  --color-surface: #ffffff;
  --color-surface-alt: #f1efe9;
  --color-text: #1e293b;
  --color-muted: #526277;
  --color-border: #dde3ec;

  --color-brand: var(--color-navy);
  --color-accent: var(--color-gold);
  --color-success: #166534;
  --color-success-bg: #dcfce7;
  --color-warning: #92400e;
  --color-warning-bg: #fef3c7;
  --color-error: #991b1b;
  --color-error-bg: #fee2e2;

  /* Legacy aliases for compatibility */
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --paper: var(--color-background);
  --surface: var(--color-surface);
  --accent: var(--color-navy);
  --line: var(--color-border);

  /* Typography */
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  /* Spacing & Layout */
  --container-max: 1180px;
  --container-narrow: 820px;
  --space-section: clamp(3.75rem, 7vw, 6rem);
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  /* Shadows & Motion */
  --shadow-sm: 0 2px 8px rgba(14, 27, 46, 0.06);
  --shadow-md: 0 10px 28px rgba(14, 27, 46, 0.1);
  --shadow-lg: 0 18px 44px rgba(14, 27, 46, 0.16);
  --transition: 0.24s ease;

  font-family: var(--font-sans);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  font-size: 1rem;
  overflow-wrap: break-word;
}

img, picture, video, svg, iframe {
  display: block;
  max-width: 100%;
}

img, video {
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.18;
  margin-top: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.85rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

p, li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--color-gold-strong);
}

.italic-gold {
  color: var(--color-gold-light);
  font-style: italic;
  font-weight: 500;
}

.section-title .italic-gold {
  color: var(--color-gold-strong);
}

/* Accessibility Focus & Skip Link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--color-navy-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* Layout Containers */
.container {
  width: min(var(--container-max), calc(100% - 2.5rem));
  min-width: 0;
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--container-narrow), calc(100% - 2.5rem));
  min-width: 0;
  margin-inline: auto;
}

main {
  min-height: 70vh;
}

.section {
  padding: var(--space-section) 0;
}

.section--white {
  background: var(--color-surface);
}

.section--cream {
  background: var(--color-background);
}

.section--navy {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: #ffffff;
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #ffffff;
}

/* Section Headers */
.section-header {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  color: var(--color-gold-strong);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ==========================================================================
   TOP BAR & SITE HEADER
   ========================================================================== */
.top-utility-bar {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.top-utility-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.top-utility-bar a.top-utility-phone {
  color: var(--color-gold-light);
  font-weight: 600;
}

.top-utility-bar a:hover {
  color: var(--color-gold-light);
}

.top-utility-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #16263d;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  width: min(var(--container-max), calc(100% - 2.5rem));
  min-width: 0;
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 100%;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 62px;
  max-width: 180px;
  object-fit: contain;
}

.brand-logo--footer {
  height: 76px;
  max-width: 210px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.2rem;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-gold-light);
}

.site-nav .nav-cta {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  padding: 0.58rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-gold);
  font-weight: 700;
  font-size: 0.88rem;
  margin-left: 0.35rem;
}

.site-nav .nav-cta:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.82rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-navy);
  background: var(--color-navy);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.button:hover,
.btn:hover {
  background: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
}

.btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: #ffffff;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTIONS (Home & Inner Pages)
   ========================================================================== */
.hero-team-banner {
  background: #080808;
  width: 100%;
  overflow: hidden;
}

.hero-team-banner__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.hero-team-banner__inner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-home {
  position: relative;
  background:
    radial-gradient(circle at 82% 22%, rgba(201, 165, 44, 0.16), transparent 45%),
    linear-gradient(135deg, #0b1626 0%, #1b2e4a 60%, #13233b 100%);
  color: #ffffff;
  padding: clamp(4.25rem, 8vw, 6.75rem) 0;
  border-bottom: 3px solid var(--color-gold);
  overflow: hidden;
}

.hero-home--light {
  background: var(--color-background);
  color: var(--color-text);
  padding: clamp(3.5rem, 6vw, 4.75rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: none;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(232, 201, 106, 0.55);
  background: rgba(201, 165, 44, 0.1);
  color: var(--color-gold-light);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.35rem;
}

.hero-home h1 {
  color: #ffffff;
  font-size: clamp(2.45rem, 5.2vw, 4.1rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-home--light h1 {
  color: var(--color-navy);
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  line-height: 1.14;
  margin-bottom: 1.15rem;
}

.hero-home--light h1 .italic-gold {
  color: var(--color-gold-strong);
}

.hero-home .hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-home--light .hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--color-muted);
  max-width: 820px;
  margin-bottom: 1.85rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-home--light .hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid #e6e1d5;
  color: var(--color-muted);
}

.hero-trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold-light);
  line-height: 1.1;
}

.hero-home--light .hero-trust-item strong {
  color: var(--color-navy);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-home--light .hero-trust-item span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-portrait-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 201, 106, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero-portrait-card img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #243d62 0%, #13233b 100%);
}

.hero-portrait-caption {
  padding-top: 1rem;
}

.hero-portrait-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
}

.hero-portrait-caption span {
  font-size: 0.82rem;
  color: var(--color-gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Inner Page Hero */
.page-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 165, 44, 0.14), transparent 50%),
    linear-gradient(135deg, #0e1b2e 0%, #1b2e4a 100%);
  color: #ffffff;
  padding: clamp(3.25rem, 6vw, 5rem) 0;
  text-align: center;
  border-bottom: 3px solid var(--color-gold);
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  max-width: 860px;
  margin-inline: auto;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.84);
  max-width: 680px;
  margin: 0 auto;
}

.page-heading {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  max-width: 820px;
}

/* ==========================================================================
   PILLAR / PHILOSOPHY CARDS & PRACTICE AREA CARDS
   ========================================================================== */
.grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 1.5rem;
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pillar-card,
.service-card,
.grid article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pillar-grid--editorial .pillar-card {
  background: var(--color-background);
  border: 1px solid #ebe6d9;
  border-radius: 4px;
  box-shadow: none;
  padding: 1.85rem 1.65rem;
}

.pillar-grid--editorial .pillar-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.pillar-grid--editorial .pillar-card p {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--color-muted);
  margin-bottom: 1.35rem;
}

.pillar-card:hover,
.service-card:hover,
.grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 165, 44, 0.55);
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold-pale);
  color: var(--color-gold-strong);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.pillar-grid--editorial .pillar-number {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--color-gold-strong);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.service-card h2,
.service-card h3,
.grid article h2,
.grid article h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.service-card h2 a,
.service-card h3 a,
.grid article h2 a,
.grid article h3 a {
  text-decoration: none;
  color: var(--color-navy);
}

.service-card h2 a:hover,
.service-card h3 a:hover,
.grid article h2 a:hover,
.grid article h3 a:hover {
  color: var(--color-gold-strong);
}

.service-card p,
.grid article p {
  color: var(--color-muted);
  margin-bottom: 1.35rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  margin-top: auto;
}

.card-link--gold {
  color: var(--color-gold-strong);
}

.card-link:hover {
  color: var(--color-gold-strong);
}

/* Homepage Minimalist Top-Rule Services Grid */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2.25rem;
}

.home-service-item {
  border-top: 2px solid var(--color-gold);
  padding-top: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-service-item h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

.home-service-item h3 a {
  text-decoration: none;
  color: var(--color-navy);
}

.home-service-item h3 a:hover {
  color: var(--color-gold-strong);
}

.home-service-item p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0 0 1.1rem;
}

/* ==========================================================================
   FOUNDER / MISSION SPOTLIGHT & ATTORNEY TEAM
   ========================================================================== */
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}

.spotlight-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.spotlight-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.spotlight-caption {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.spotlight-caption strong {
  color: var(--color-navy);
  font-weight: 700;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.65rem 1.5rem;
}

.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-text);
}

.credential-list li::before {
  content: "✓";
  color: var(--color-gold-strong);
  font-weight: 700;
  flex-shrink: 0;
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid #ebe6d9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.team-photo-frame {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gold-strong);
  margin-bottom: 0.75rem;
}

.team-card-body p {
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--color-muted);
  margin: 0;
}

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.05;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-strong);
  margin-top: 0.45rem;
}

/* ==========================================================================
   PROSE, DETAIL PAGES & SIDEBAR LAYOUT
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.prose {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  max-width: 840px;
  margin: 2.5rem auto;
}

.detail-layout .prose {
  margin: 0;
  max-width: 100%;
}

.prose h2,
.prose h3,
.post-body h2,
.post-body h3 {
  margin-top: 1.85rem;
  margin-bottom: 0.65rem;
}

.prose h2:first-child,
.prose h3:first-child,
.post-body h2:first-child,
.post-body h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol,
.post-body ul,
.post-body ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
}

.prose li,
.post-body li {
  margin-bottom: 0.45rem;
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.sidebar-card--navy {
  background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #ffffff;
  border-color: var(--color-navy);
}

.sidebar-card--navy h3 {
  color: #ffffff;
}

.sidebar-card--navy p {
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-list li:last-child {
  border-bottom: 0;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
}

.sidebar-list a:hover {
  color: var(--color-gold-strong);
}

/* ==========================================================================
   BLOG LISTING & DETAIL
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.blog-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-summary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-summary h2,
.blog-summary h3 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.65rem;
}

.blog-summary h2 a,
.blog-summary h3 a {
  text-decoration: none;
}

.post-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}

.post-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.post-body pre,
.post-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.faq-list details,
.empty-state {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-list details[open] {
  border-color: var(--color-gold);
  background: #ffffff;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
}

.faq-list details > div {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

/* ==========================================================================
   CONTACT FORM & MESSAGES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

form {
  background: var(--color-surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-text);
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 46, 74, 0.12);
}

.errorlist {
  list-style: none;
  padding: 0.6rem 0.85rem;
  margin: 0 0 0.75rem;
  background: var(--color-error-bg);
  color: var(--color-error);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.messages {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin: 1rem auto 0;
  padding: 0.85rem 1.25rem;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* ==========================================================================
   CTA BANNER & FOOTER
   ========================================================================== */
.cta-banner {
  background: #13233b;
  color: #ffffff;
  padding: clamp(3.75rem, 6.5vw, 5.25rem) 0;
  text-align: center;
}

.cta-eyebrow {
  display: inline-block;
  color: var(--color-gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.cta-banner h2 {
  color: #ffffff;
  max-width: 720px;
  margin: 0 auto 0.85rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 580px;
  margin: 0 auto 1.85rem;
  font-size: 1rem;
}

.site-footer-wrap {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer {
  width: min(var(--container-max), calc(100% - 2.5rem));
  min-width: 0;
  margin-inline: auto;
  padding: 3.5rem 0 2.25rem;
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-nav a:hover,
.site-footer a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.56);
}

.footer-disclaimer {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ==========================================================================
   VIDEO GALLERY GRID (/videos/)
   ========================================================================== */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.video-card__thumb {
  position: relative;
  width: 100%;
  height: 260px;
  background: #0e1b2e;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.03);
}

.video-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.video-card__title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--color-navy);
  margin: 0;
}

.video-card:hover .video-card__title {
  color: var(--color-gold-strong);
}

.video-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--color-muted);
  margin: 0;
}

.video-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.video-pagination button {
  background: var(--color-navy);
  color: #ffffff;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.video-pagination button:hover:not(:disabled) {
  background: var(--color-gold-strong);
  border-color: var(--color-gold-strong);
}

.video-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.video-pagination__status {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* ==========================================================================
   ABOUT PAGE — ALTERNATING 2-COLUMN ATTORNEY BIOS
   ========================================================================== */
.attorney-bio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.attorney-bio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.attorney-bio-row:first-child {
  padding-top: 1rem;
}

.attorney-bio-row:last-child {
  border-bottom: none;
  padding-bottom: 1rem;
}

.attorney-bio-text h2,
.attorney-bio-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  color: var(--color-navy);
  margin: 0 0 0.35rem;
}

.attorney-bio-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-strong);
  margin: 0 0 1.35rem;
}

.attorney-bio-text p {
  margin: 0 0 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.attorney-bio-text p:last-child {
  margin-bottom: 0;
}

.attorney-bio-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.attorney-bio-photo img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & REDUCED MOTION
   ========================================================================== */
@media (max-width: 1100px) {
  .video-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--4,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-home-grid,
  .spotlight-grid,
  .detail-layout,
  .contact-grid,
  .attorney-bio-row {
    grid-template-columns: 1fr;
  }

  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attorney-bio-row--photo-right .attorney-bio-photo {
    order: -1;
  }

  .video-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
  }

  .site-nav {
    width: 100%;
    gap: 0.45rem 0.9rem;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero-home--light .hero-trust-strip,
  .card-grid--4,
  .home-services-grid,
  .team-grid,
  .credential-list,
  .video-gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .container,
  .container--narrow,
  .site-header,
  .site-footer,
  .messages {
    width: calc(100% - 1.25rem);
  }

  .pillar-card,
  .service-card,
  .grid article,
  .prose,
  form {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
