:root {
  --paper: #f6f2ec;
  --surface: #fffdf9;
  --sunken: #eee7db;
  --ink: #191714;
  --muted: #665f56;
  --hairline: #ded4c6;
  --green: #174837;
  --green-dark: #0e2f25;
  --green-soft: #e7efe9;
  --brass: #a47b35;
  --red: #b4293b;
  --red-dark: #721b29;
  --white: #ffffff;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter Tight", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 72, 55, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 23, 20, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid rgba(180, 41, 59, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.concept-bar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 9px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.site-header {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 21px;
  border-radius: 50%;
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a,
.header-phone {
  text-decoration: none;
}

.nav-links a:hover,
.header-phone:hover,
.matter-list a:hover span,
.service-card a:hover,
.resource-grid a:hover strong {
  color: var(--green);
}

.header-phone {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--green-dark);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.45);
}

.hero {
  width: min(calc(100% - 48px), var(--container));
  min-height: calc(100svh - 120px);
  margin: 0 auto 28px;
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(246, 242, 236, 0.98), rgba(246, 242, 236, 0.84) 48%, rgba(246, 242, 236, 0.52)),
    url("assets/legal-paper-atmosphere.png") center / cover;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4rem);
}

h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: var(--white);
  box-shadow: 0 4px 0 #061d16;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #061d16;
}

.btn-secondary {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-dark);
}

.btn-secondary:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.btn-owner {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 4px 0 #421019;
}

.matter-panel {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(23, 72, 55, 0.22);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.panel-heading p:last-child {
  margin: 0 0 20px;
  color: var(--muted);
}

.matter-list {
  display: grid;
  gap: 10px;
}

.matter-list a {
  display: block;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}

.matter-list span,
.matter-list small {
  display: block;
}

.matter-list span {
  font-weight: 800;
  font-size: 1.03rem;
}

.matter-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-strip {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.proof-strip div {
  padding: 24px;
}

.proof-strip div + div {
  border-left: 1px solid var(--hairline);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}

.proof-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 104px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
}

.section-intro > p,
.section-heading > p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid,
.office-grid,
.resource-grid {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

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

.service-card,
.office-card,
.steps article,
.resource-grid a,
.team-cards a {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.service-card {
  min-height: 340px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(23, 72, 55, 0.28);
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.service-card p {
  color: var(--muted);
  margin: 14px 0 24px;
}

.service-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
}

.office-section {
  width: 100%;
  max-width: none;
  background: var(--sunken);
  border-block: 1px solid var(--hairline);
  padding-inline: max(24px, calc((100% - var(--container)) / 2));
}

.office-grid {
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
}

.office-card {
  padding: 26px;
  background: rgba(255, 253, 249, 0.82);
}

.featured-office {
  border-color: rgba(23, 72, 55, 0.55);
  background: var(--surface);
}

.office-focus {
  color: var(--muted);
  min-height: 76px;
}

address {
  margin: 20px 0;
  font-style: normal;
  color: var(--ink);
}

dl {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 12px;
  font-weight: 700;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(310px, 0.65fr);
  gap: 48px;
}

.story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.team-cards {
  display: grid;
  gap: 14px;
}

.team-cards a,
.resource-grid a {
  display: block;
  padding: 22px;
  text-decoration: none;
}

.team-cards span,
.resource-grid span {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-cards strong,
.resource-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
}

.team-cards small,
.resource-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.contact-path {
  border-top: 1px solid var(--hairline);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  padding: 24px;
}

.steps span {
  display: block;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 18px;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

.action-panel,
.owner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(23, 72, 55, 0.3);
  border-radius: 14px;
  background: var(--green-soft);
}

.action-panel h3,
.owner-cta h2 {
  margin: 0;
}

.action-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.resources-section {
  padding-top: 0;
}

.site-footer {
  padding: 0 24px 30px;
}

.owner-cta {
  width: min(100%, var(--container));
  margin: 0 auto;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.owner-cta h2 {
  max-width: 760px;
  color: var(--white);
}

.owner-cta .eyebrow {
  color: #ffc4cc;
}

.footer-bottom {
  width: min(100%, var(--container));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section-intro,
  .story-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .office-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .matter-panel {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .concept-bar {
    padding-inline: 16px;
  }

  .site-header {
    padding: 18px 16px;
  }

  .brand {
    width: 100%;
  }

  .header-phone {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero,
  .proof-strip,
  .section,
  .service-grid,
  .resource-grid {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    min-height: auto;
    padding: 28px 18px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(246, 242, 236, 0.98), rgba(246, 242, 236, 0.82)),
      url("assets/legal-paper-atmosphere.png") center / cover;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .hero-actions,
  .action-panel,
  .owner-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .proof-strip,
  .steps,
  .service-grid,
  .office-grid,
  .resource-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .proof-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .service-card {
    min-height: auto;
  }

  .office-section {
    padding-inline: 14px;
  }

  .office-focus {
    min-height: auto;
  }

  .site-footer {
    padding-inline: 14px;
  }
}

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