/* Calm Authority layer (see DESIGN.md). Base stays in css-original.css.
   Palette: ink #1c2430, paper #f5f7fa, brass #8a6d2b (AA on white + paper),
   brand navy #1f5fa8 (white on it 6.44:1). Dials ENERGY 2 / RHYTHM 2 / MOTION 1. */

:root {
  --brass: #8a6d2b;
  --serif: Georgia, "Times New Roman", "Nimbus Roman", serif;
}

/* Serif display voice: headlines read as counsel, not startup. */
h1,
.page-hero h1,
.prose h2,
.consult-aside h2,
.firm-copy h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Identity motif: short brass rule above every eyebrow. */
.eyebrow {
  color: var(--brass);
}
.contact-band .eyebrow {
  color: #1c2430;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--brass);
  margin-bottom: 10px;
}

/* Hero as a paper band: orientation separated from content below. */
.page-hero {
  background: #f5f7fa;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  padding: 36px 32px;
  margin-top: 20px;
}

/* Readable measure for legal explanations. */
.prose p,
.prose li {
  max-width: 68ch;
}

.lead,
.article-list h2 {
  text-wrap: pretty;
}

/* Rectangular documents, not app pills: buttons 10px, cards keep 14px. */
.button {
  border-radius: 10px;
}
.service-row,
.profile-card,
.contact-option,
.preparation-row > div,
.consult-aside,
.consult-form,
.article-list a {
  border-radius: 14px;
}

/* Elevation marks clickability: service rows lift on hover only. */
.service-row {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-row:hover {
  border-color: #1f5fa8;
  box-shadow: 0 4px 14px rgba(28, 36, 48, 0.08);
}

/* Keyboard position always visible. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ink footer card: composed close to match the paper opening. */
.site-footer {
  background: #1c2430;
  color: #dfe6ef;
  width: 100%;
  margin: 0;
  border-radius: 0;
  padding: 40px max(56px, calc((100% - 1280px) / 2)) 24px;
  border-top: 0;
}
.site-footer .wordmark,
.site-footer b {
  color: #fff;
}
.site-footer p,
.site-footer .footer-bottom {
  color: #aeb8c4;
  border-top-color: rgba(255, 255, 255, 0.14);
}
.site-footer a {
  color: #fff;
}

/* Team + articles + FAQ (new sections). */
.faq details {
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
}
.article-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.article-list a {
  display: block;
  border: 1px solid #e4e8ee;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.article-list a:hover {
  border-color: #1f5fa8;
  box-shadow: 0 4px 14px rgba(28, 36, 48, 0.08);
}
.article-list a:active,
.button:active {
  transform: translateY(1px);
}
.article-list h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.article-list p {
  margin: 0;
  color: #5b6675;
  font-size: 14px;
}
.article-meta {
  font-size: 13px;
  color: #5b6675;
}
.consult-form label {
  display: block;
  font-weight: 650;
  margin: 14px 0 6px;
}
.consult-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #5b6675;
  border-radius: 10px;
  font: inherit;
  color: inherit;
  margin-bottom: 16px;
}

.mobile-nav {
  display: none;
}
.contact-layout > *,
.detail-layout > * {
  min-width: 0;
}
.contact-option a,
.consult-aside a {
  overflow-wrap: anywhere;
}
.consult-form .button {
  width: 100%;
  text-align: center;
}

/* Mobile register: tighter hero, thumb-sized targets. */
@media (max-width: 720px) {
  .site-header .desktop-nav {
    display: none;
  }
  .site-header .mobile-nav {
    display: block;
    width: 100%;
    color: #1c2430;
  }
  .mobile-nav summary {
    min-height: 44px;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 650;
  }
  .site-header .mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0;
  }
  .site-header .mobile-nav nav a {
    padding: 10px 12px;
  }
  .page-hero {
    padding: 24px 20px;
    margin-top: 12px;
  }
  .site-header nav a,
  .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .mobile-contact {
    min-height: 48px;
  }
}

/* Brand mark in header and footer. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
}

/* Real firm photos (DESIGN.md imagery). */
.prose-figure {
  margin: 28px 0 0;
}
.prose-figure img,
.prose-figure figcaption,
.photo-gallery img,
.team-grid img,
.profile-photo {
  display: block;
}
.prose-figure img,
.photo-gallery img,
.team-grid img,
.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.prose-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #5b6675;
}
.profile-photo {
  margin-bottom: 28px;
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.team-grid figcaption,
.photo-gallery figcaption {
  margin-top: 10px;
  font-size: 14px;
}
.team-grid figcaption span,
.photo-gallery figcaption span {
  display: block;
  color: #5b6675;
  font-size: 13px;
}
@media (max-width: 720px) {
  .team-grid,
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}

/* Editorial cover treatment: image and type carry the first impression. */
.hero {
  position: relative;
  overflow: hidden;
  background: #f5f7fa;
  border: 0;
  border-radius: 0;
  min-height: 620px;
  padding: 72px 7%;
}
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero h1 { font-size: clamp(48px, 6vw, 88px); line-height: .98; }
.hero-description { max-width: 48ch; font-size: 18px; }
.hero-image { position: absolute; right: 0; top: 0; width: 43%; height: 100%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(.8); }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f5f7fa 0%, rgba(245,247,250,.1) 28%, transparent 55%); }
.image-caption { position: absolute; z-index: 1; bottom: 24px; left: 24px; color: white; font-size: 13px; }
.image-caption span { opacity: .8; }
.practice-strip { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
@media (max-width: 720px) {
  .hero { min-height: 0; padding: 42px 20px 0; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-image { position: relative; width: calc(100% + 40px); height: 340px; margin: 42px -20px 0; }
  .hero-image::after { background: linear-gradient(0deg, rgba(28,36,48,.55), transparent 50%); }
  .image-caption { left: 20px; bottom: 18px; }
  .practice-strip { line-height: 2.2; }
}

.hero-note span { color: #4f5d66; }

/* Final editorial redesign */
.hero { box-shadow: inset 0 -1px 0 #dfe5ec; }
.hero-copy { padding-top: 18px; }
.hero h1 { max-width: 9ch; }
.hero-description { color: #40505d; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.hero-note { border-left: 2px solid var(--brass); padding-left: 14px; margin-top: 72px; }
.section { padding-top: 104px; padding-bottom: 104px; }
.section-intro { max-width: 600px; margin-bottom: 40px; }
.section-intro h2, .firm-section h2, .preparation h2, .contact-band h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.02; }
.services-list { border-top: 1px solid #ccd5df; }
.service-row { border-width: 0 0 1px; border-color: #ccd5df; border-radius: 0; padding: 24px 8px; }
.service-row:hover { background: #f5f7fa; box-shadow: none; }
.service-index { color: var(--brass); font-variant-numeric: tabular-nums; }
.firm-section { background: #1c2430; color: #f5f7fa; padding: 104px 0; }
.firm-section .eyebrow, .firm-section .firm-copy, .firm-section .office-note { color: #c8d1db; }
.firm-section h2 { color: #fff; }
.firm-section .text-link { color: #fff; }
.preparation-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; border-top: 1px solid #ccd5df; padding: 20px 0; }
.contact-band { background: var(--brass); color: #fff; }
.contact-band .button { background: #1c2430; color: #fff; }
@media (max-width: 720px) {
  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: none; }
  .hero-note { margin-top: 44px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .firm-section { padding: 68px 0; }
  .preparation-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-band { padding: 52px 0; }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0;
    padding: 34px 24px 92px;
    border-radius: 0;
  }
  .site-footer > div { min-width: 0; }
  .site-footer .brand { gap: 10px; }
  .site-footer .brand-logo { width: 42px; height: 42px; }
  .site-footer .wordmark { font-size: 22px; line-height: 1.05; }
  .site-footer .wordmark span { font-size: 11px; letter-spacing: .14em; }
  .site-footer p { margin: 10px 0 0; line-height: 1.65; }
  .site-footer > div:nth-child(2),
  .site-footer > div:nth-child(3) { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
  .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 22px;
    line-height: 1.5;
  }
  .mobile-contact {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    padding: 14px 18px;
    box-sizing: border-box;
  }
}
.contact-band .eyebrow { color: #fff; }

.team-member { min-width: 0; }
.team-member > img { width: 100%; height: min(58vw, 680px); object-fit: cover; object-position: center top; }
.team-member-copy { padding-top: 18px; }
.team-member-copy .profile-name { margin: 0 0 8px; font-size: clamp(22px, 2vw, 30px); }
.team-member-copy p { margin: 0 0 14px; }
@media (max-width: 720px) {
  .team-member > img { height: 520px; }
}

/* Footer reset: prevent the base grid from stretching into empty space. */
.site-footer {
  min-height: 0;
  height: auto;
  align-content: start;
  align-items: start;
  grid-auto-rows: auto;
  padding-bottom: 28px;
}
.site-footer > div { min-height: 0; }
.site-footer .footer-bottom { align-self: auto; }
@media (min-width: 721px) {
  .site-footer {
    row-gap: 28px;
    padding-top: 34px;
    padding-bottom: 12px;
  }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .site-footer { padding-inline: 32px; column-gap: 24px; }
}
@media (max-width: 720px) {
  .site-footer {
    min-height: 0;
    padding-inline: 20px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.site-footer .footer-bottom { padding-bottom: 8px; }
.site-footer a { overflow-wrap: anywhere; }

/* antislop audit 001 fixes: one gold, no phantom column, richer gallery row,
   framed hero, and a styled FAQ marker. */
.service-row { grid-template-columns: 28px 1fr; }
.hero-image img { object-position: 50% 25%; }
em { color: var(--brass); }
.service-row.featured h3 { color: var(--brass); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  color: var(--brass);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] > summary::after { content: "\00d7"; }
@media (min-width: 721px) {
  .photo-gallery figure:last-child { grid-column: span 2; }
}
