/* =========================================================
   Law Office of Daniel H. Kyser — Main Stylesheet
   Palette: deep navy + gold accent + slate/ivory neutrals
   ========================================================= */

:root {
  --navy: #0c2340;
  --navy-dark: #081830;
  --navy-light: #1a3556;
  --gold: #c9a24a;
  --gold-light: #e0bf6f;
  --gold-dark: #a68638;
  --ivory: #f7f4ee;
  --paper: #fbfaf7;
  --ink: #1a1f28;
  --slate: #4a5568;
  --slate-light: #718096;
  --rule: #e2dfd6;
  --white: #ffffff;
  --red: #9b2c2c;
  --green: #2f6f4f;
  --shadow-sm: 0 1px 2px rgba(12,35,64,.06), 0 2px 6px rgba(12,35,64,.04);
  --shadow-md: 0 4px 10px rgba(12,35,64,.08), 0 10px 24px rgba(12,35,64,.06);
  --shadow-lg: 0 10px 30px rgba(12,35,64,.14);
  --radius: 4px;
  --radius-lg: 8px;
  --max: 1200px;
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--gold-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
blockquote {
  margin: 1.5rem 0;
  padding: .6rem 1.25rem;
  border-left: 4px solid var(--gold);
  color: var(--slate);
  font-style: italic;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold-light); }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: .75rem;
}
.section--navy .eyebrow { color: var(--gold-light); }
.center { text-align: center; }
.gold-rule {
  width: 64px; height: 3px; background: var(--gold);
  margin: 1rem 0 1.5rem;
  border: 0;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--ivory);
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: var(--white); }
.topbar__phone { font-weight: 600; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand__logo {
  display: block;
  height: 62px;
  width: auto;
  max-width: 220px;
  transition: opacity .15s ease;
}
.brand:hover .brand__logo { opacity: .88; }
/* Legacy fallback mark / text (kept for non-image brand slots) */
.brand__mark {
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .02em;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.brand__text { line-height: 1.1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.brand__tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: .5rem .75rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  padding: 0; margin: 0;
  align-items: center;
}
.primary-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  padding: .35rem 0;
  position: relative;
  text-decoration: none;
  transition: color .15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--gold-dark);
}
.primary-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold);
}
.primary-nav .has-sub { position: relative; }
.primary-nav .has-sub > a::after {
  content: ' ▾';
  font-size: .7em;
  color: var(--gold-dark);
}
.primary-nav .submenu {
  position: absolute;
  top: 100%; left: -1rem;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  border-top: 3px solid var(--gold);
  list-style: none;
  flex-direction: column;
  gap: 0;
  z-index: 10;
}
.primary-nav .has-sub:hover .submenu,
.primary-nav .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .submenu li { width: 100%; }
.primary-nav .submenu a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .92rem;
}
.primary-nav .submenu a:hover { background: var(--ivory); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: .55rem 1.1rem !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--white) !important; }
.nav-cta::after { content: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
  font-family: var(--sans);
  letter-spacing: .02em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(201,162,74,.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201,162,74,.08), transparent 50%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__content h1 { color: var(--white); margin-bottom: .5rem; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.hero__lead {
  font-size: 1.08rem;
  color: #e6e2d7;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: stretch;
  justify-content: center;
}
.hero__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 3px var(--gold);
  background: var(--navy-light);
  aspect-ratio: 4 / 5;
  max-height: 460px;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,35,64,.25));
  pointer-events: none;
}
.hero__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  align-content: center;
}
.badge-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,162,74,.35);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(4px);
}
.badge-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: .3rem;
}
.badge-card span {
  display: block;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d5cfbf;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--ivory);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  border-bottom: 4px solid var(--gold);
}
.page-header h1 { color: var(--white); }
.page-header p { max-width: 65ch; margin: 0 auto; color: #d5cfbf; font-size: 1.05rem; }
.breadcrumbs {
  font-size: .85rem;
  color: #c7c3b3;
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs span[aria-current="page"] { color: var(--white); }

/* ---------- Practice area grid ---------- */
.pa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.pa-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  text-decoration: none;
}
.pa-card__icon {
  width: 54px; height: 54px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.pa-card h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.pa-card p { color: var(--slate); font-size: .95rem; margin-bottom: 1rem; flex: 1; }
.pa-card__link {
  font-weight: 600;
  color: var(--gold-dark);
  font-size: .9rem;
  letter-spacing: .03em;
}

/* ---------- Feature list / Why choose ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.feature {
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--ivory);
  padding: 3rem 0;
  text-align: center;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.cta-band h2 { color: var(--white); margin-bottom: .6rem; }
.cta-band p { color: #d5cfbf; max-width: 55ch; margin: 0 auto 1.5rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-card::before {
  content: '“';
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--gold);
  line-height: .8;
  position: absolute;
  top: .8rem; left: 1rem;
  opacity: .4;
}
.quote-card blockquote {
  margin: 0 0 1rem;
  border: 0; padding: 0;
  font-style: normal;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.quote-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .8rem; }

/* ---------- Two-column content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.portrait-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: var(--ivory);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 3px solid var(--gold);
}
.portrait-card__avatar {
  width: 170px; height: 170px;
  background: var(--ivory);
  color: var(--navy);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  border: 4px solid var(--gold);
  overflow: hidden;
}
.portrait-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-card h3 { color: var(--white); margin-bottom: .25rem; }
.portrait-card .title { color: var(--gold-light); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.portrait-card ul { list-style: none; padding: 0; text-align: left; }
.portrait-card li {
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
}
.portrait-card li::before { content: '✓ '; color: var(--gold); font-weight: 700; }
.portrait-card li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq-list details[open] { box-shadow: var(--shadow-md); }
.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  color: var(--gold-dark);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s;
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--slate);
}
.faq-list .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Case dossier cards ---------- */
.case-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: case;
}
.case {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.4rem 1.75rem 1.4rem 1.85rem;
  display: grid;
  grid-template-columns: 155px 1fr minmax(190px, auto);
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}
/* Docket mark in top-right corner */
.case::before {
  counter-increment: case;
  content: "№ " counter(case, decimal-leading-zero);
  position: absolute;
  top: .55rem;
  right: .85rem;
  font-family: var(--serif);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--slate-light);
  font-weight: 700;
}

/* Date column */
.case__date {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1;
  border-right: 1px solid var(--rule);
  padding-right: 1.25rem;
}
.case__date-month {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold-dark);
  margin-bottom: .4rem;
}
.case__date-year {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.case__venue {
  display: block;
  margin-top: .7rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
}

/* Body */
.case__charge {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 .35rem;
  line-height: 1.3;
}
.case__detail {
  margin: 0;
  color: var(--slate);
  font-size: .93rem;
  line-height: 1.55;
}
.case__extras {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}
.case__chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 2px;
  background: var(--ivory);
  color: var(--navy);
  border: 1px solid var(--rule);
}
.case__chip--sealed {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}

/* Verdict stamp */
.case__verdict {
  position: relative;
  text-align: center;
  padding: .85rem 1.15rem;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: var(--paper);
  font-family: var(--serif);
  min-width: 185px;
}
.case__verdict::before,
.case__verdict::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px;
  height: 1px;
  background: currentColor;
  opacity: .3;
}
.case__verdict::before { top: 4px; }
.case__verdict::after  { bottom: 4px; }
.case__verdict-label {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .3rem;
}
.case__verdict-value {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}
.case__verdict-sub {
  display: block;
  margin-top: .3rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  opacity: .75;
  font-style: italic;
}

/* Outcome variants */
.case--win { border-left-color: var(--green); }
.case--win .case__verdict {
  border-color: var(--green);
  color: var(--green);
  background: #f1f7f3;
}
.case--dismissed { border-left-color: var(--navy); }
.case--dismissed .case__verdict {
  border-color: var(--navy);
  color: var(--navy);
  background: #f3f5f9;
}
.case--reduced { border-left-color: var(--gold-dark); }
.case--reduced .case__verdict {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  background: #faf4e6;
}

/* Responsive */
@media (max-width: 820px) {
  .case {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.3rem 1.25rem 1.3rem 1.4rem;
  }
  .case__date {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 .9rem;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .8rem;
    row-gap: .15rem;
    align-items: baseline;
  }
  .case__date-month { margin: 0; grid-column: 1; }
  .case__date-year { font-size: 1.65rem; grid-column: 1; }
  .case__venue {
    margin: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    text-align: right;
  }
  .case__verdict { align-self: start; min-width: 0; }
  .case::before { top: .4rem; right: .65rem; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .35rem;
  margin-top: 1rem;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,74,.2);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { margin-top: 1.5rem; width: 100%; }
.contact-info dt {
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-top: 1.2rem;
}
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd {
  margin: .3rem 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.contact-info dd a { color: var(--navy); font-weight: 600; }
.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #dcefe3; color: var(--green); }
.form-status.is-error { background: #f6dede; color: var(--red); }
.form-status.is-info { background: #eef3f8; color: var(--navy); }

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  display: grid; place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.5rem;
}
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  font-size: .8rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}
.post-card h3 { font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.3; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card__excerpt { color: var(--slate); font-size: .95rem; flex: 1; }
.post-card__footer { margin-top: 1rem; font-size: .85rem; }
.post-card__footer a { color: var(--gold-dark); font-weight: 600; }

.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.post-filter {
  padding: .45rem 1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.post-filter:hover, .post-filter.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  text-decoration: none;
}

/* ---------- Blog post template ---------- */
.post-article {
  max-width: 760px;
  margin: 0 auto;
}
.post-article h1 { margin-top: 0; }
.post-article .post-hero {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ivory);
}
.post-article .post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-article .post-meta {
  color: var(--slate-light);
  font-size: .9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.post-article .post-meta a { color: var(--gold-dark); font-weight: 600; }
.post-article h2 { margin-top: 2rem; }
.post-article h3 { margin-top: 1.75rem; }
.post-article ul li, .post-article ol li { margin-bottom: .4rem; }
.post-article .callout {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.post-article .callout strong { color: var(--navy); }
.author-box {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  border-top: 3px solid var(--gold);
}
.author-box__avatar {
  width: 80px; height: 80px;
  background: var(--navy); color: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  border: 3px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-box__text { font-size: .92rem; color: var(--slate); }
.author-box__text strong { color: var(--navy); font-family: var(--serif); font-size: 1.1rem; display: block; }

/* ---------- Practice area detail ---------- */
.pa-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pa-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.pa-sidebar h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); margin-bottom: 1rem; font-family: var(--sans); border-bottom: 2px solid var(--gold); padding-bottom: .5rem; }
.pa-sidebar ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.pa-sidebar li { border-bottom: 1px solid var(--rule); }
.pa-sidebar li:last-child { border-bottom: 0; }
.pa-sidebar a {
  display: block;
  padding: .55rem 0;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.pa-sidebar a:hover, .pa-sidebar a[aria-current="page"] {
  color: var(--gold-dark);
  padding-left: .3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c7c3b3;
  padding: 3.5rem 0 1rem;
  font-size: .93rem;
}
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: .25rem 0; }
.footer-brand .brand__mark { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__logo {
  height: 70px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand .brand:hover .brand__logo { opacity: 1; }
.footer-brand p { font-size: .88rem; max-width: 40ch; margin-top: .75rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: #a09c8e;
}
.footer-disclaimer {
  max-width: 900px;
  font-size: .78rem;
  color: #8d8a7d;
  line-height: 1.55;
  margin-top: 1.25rem;
}

/* ---------- Credential / recognition badges ---------- */
.credential-strip {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
}
.credential-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  row-gap: 1.5rem;
}
.credential-strip__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--slate-light);
  font-weight: 600;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: .25rem;
}
.credential-strip img {
  height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(.15);
  transition: filter .2s ease, transform .2s ease;
}
.credential-strip img:hover {
  filter: grayscale(0);
  transform: translateY(-2px);
}

/* ---------- Attorney photo (about page) ---------- */
.attorney-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold);
  background: var(--ivory);
  margin: 0 auto 1.25rem;
  display: block;
}

/* ---------- Sidebar attorney mini-card (practice areas) ---------- */
.pa-sidebar__attorney {
  text-align: center;
  padding: 1.25rem 0 .5rem;
  border-top: 1px solid var(--rule);
  margin-top: 1.25rem;
}
.pa-sidebar__attorney img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  margin: 0 auto .75rem;
  display: block;
}
.pa-sidebar__attorney strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.05rem;
}
.pa-sidebar__attorney span {
  display: block;
  font-size: .78rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .15rem;
}

/* ---------- Blog post card with photo thumbnail ---------- */
.post-card__thumb--has-image {
  background: var(--ivory);
  padding: 0;
  display: block;
  overflow: hidden;
}
.post-card__thumb--has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Related internal links ---------- */
.related-links {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.related-links h3 {
  margin-bottom: .7rem;
  font-size: 1.05rem;
}
.related-links ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .35rem;
}
.related-links a {
  font-weight: 600;
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: .5rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero__media { flex-direction: row; align-items: center; gap: 1.5rem; }
  .hero__portrait { max-width: 280px; max-height: 340px; }
  .hero__badges { grid-template-columns: repeat(4, 1fr); flex: 1; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pa-layout { grid-template-columns: 1fr; }
  .pa-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .brand__logo { height: 54px; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero__media { flex-direction: column; align-items: stretch; }
  .hero__portrait { max-width: 100%; max-height: 380px; margin: 0 auto; }
  .brand__logo { height: 46px; }
  .footer-brand .brand__logo { height: 56px; }
  .credential-strip img { height: 54px; }
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 1rem 0;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--rule); }
  .primary-nav a { display: block; padding: .8rem 1.25rem; }
  .primary-nav .submenu {
    position: static;
    box-shadow: none; border: 0; border-top: 1px solid var(--rule);
    opacity: 1; visibility: visible; transform: none;
    display: none;
    padding-left: 1rem;
  }
  .primary-nav .has-sub.is-open .submenu { display: flex; }
  .nav-cta { margin: .5rem 1.25rem; }
  .hero__badges { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

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