:root {
  --paper: #f6f3ed;
  --ink: #1b1f22;
  --muted: #6d706a;
  --line: #ded8cc;
  --bronze: #7f744f;
  --bronze-dark: #4d4428;
  --clay: #b95d43;
  --green: #2f5b55;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(29, 27, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(246, 243, 237, 0.92);
  border-bottom: 1px solid rgba(127, 116, 79, 0.22);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand img {
  width: 190px;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--bronze-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switch {
  display: flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.lang-button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(4rem, 7vw, 7rem) max(1.5rem, calc((100vw - 1180px) / 2)) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  background:
    linear-gradient(90deg, rgba(22, 22, 18, 0.82), rgba(22, 22, 18, 0.38) 52%, rgba(22, 22, 18, 0.12)),
    url("assets/images/office-hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
  padding-bottom: clamp(1rem, 4vh, 4rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d9c98e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.92;
  font-weight: 500;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  font-weight: 500;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.dark {
  border-color: var(--bronze);
  color: var(--ink);
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
}

.hero-facts div {
  padding: 1rem;
  background: rgba(27, 31, 34, 0.78);
}

.hero-facts span,
.quick-contact span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts strong {
  font-size: 0.96rem;
}

.quick-contact {
  width: min(1180px, calc(100% - 32px));
  margin: -1.5rem auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-contact a {
  min-height: 96px;
  padding: 1.2rem;
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.quick-contact a:last-child {
  border-right: 0;
}

.quick-contact span {
  color: var(--muted);
}

.quick-contact strong {
  color: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 660px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 2rem;
  align-items: start;
}

.intro-copy {
  color: #383a35;
  font-size: 1.12rem;
}

.proof-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-strip div {
  padding: 1.1rem;
  background: var(--white);
}

.proof-strip strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.proof-strip span {
  color: var(--muted);
}

.image-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.image-band img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.practice-card {
  min-height: 260px;
  padding: 1.35rem;
  background: var(--white);
}

.practice-card span {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--clay);
  font-weight: 900;
}

.practice-card p,
.process-steps p,
.legacy-panel p,
.site-footer p {
  color: var(--muted);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.legacy-panel {
  background: var(--ink);
  color: var(--white);
}

.legacy-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.legacy-panel div {
  padding: 1.35rem;
}

.legacy-panel p {
  color: rgba(255, 255, 255, 0.75);
}

.team-groups {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.team-groups > div {
  padding: 1.25rem;
  background: var(--white);
}

.team-groups ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  list-style: none;
  color: #383a35;
}

.team-groups li {
  padding-left: 0.9rem;
  border-left: 3px solid var(--bronze);
}

.process-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.process-steps div {
  padding: 1.25rem;
  background: #ece6da;
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.4rem;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-info {
  padding: 1.5rem 0;
}

dl {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.request-form {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.request-form label {
  display: block;
  margin-bottom: 1rem;
}

.request-form label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  padding: 0.85rem;
  color: var(--ink);
}

.request-form input:focus,
.request-form textarea:focus,
.request-form select:focus {
  outline: 2px solid rgba(47, 91, 85, 0.25);
  border-color: var(--green);
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 180px;
  margin-bottom: 1rem;
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: start;
  color: var(--bronze-dark);
  font-weight: 800;
}

.mobile-sticky {
  display: none;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav-shell {
    grid-template-columns: auto 1fr;
  }

  .nav-actions {
    justify-content: end;
  }

  .mobile-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .mobile-nav {
    display: grid;
    gap: 0.7rem;
  }

  .mobile-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
  }

  .hero,
  .intro-grid,
  .team-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .practice-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-contact {
    grid-template-columns: 1fr;
  }

  .quick-contact a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-contact a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    width: calc(100% - 24px);
    height: 68px;
    gap: 1rem;
  }

  .brand img {
    width: 144px;
  }

  .language-switch {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .mobile-nav {
    top: 68px;
  }

  .hero {
    padding: 4rem 1rem 1.2rem;
    background-position: 58% center;
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 5.2rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts div {
    padding: 0.9rem;
  }

  .section,
  .quick-contact,
  .site-footer {
    width: calc(100% - 24px);
  }

  .practice-grid,
  .process-steps,
  .image-band,
  .team-groups ul,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .mobile-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mobile-sticky a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 16px 42px rgba(27, 31, 34, 0.28);
  }

  .mobile-sticky a:first-child {
    background: var(--clay);
  }
}
