/* ------------------------------------------------------------------
   LawCRT — single-page site
   Fonts are self-hosted (fonts/) so no third-party requests are made,
   which keeps the page GDPR-clean without a consent banner.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-opsz-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-wght-italic.woff2') format('woff2-variations');
}

:root {
  --paper: #EEEDE7;
  --paper-deep: #E4E2DA;
  --sage: #D6DED4;
  --green: #1F4A3C;
  --green-deep: #14332A;
  --brass: #B08D57;
  --brass-deep: #8A6B3D;
  --ink: #15201B;
  --muted: #5B665F;
  --rule: #C9C7BD;
  --rule-on-green: rgba(238, 237, 231, 0.18);

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  max-width: 16em;
}
h3 {
  font-size: 1.55rem;
  line-height: 1.2;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--green-deep);
  color: var(--paper);
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  min-height: 38px;
  align-items: center;
}
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .hours { margin-left: auto; color: rgba(238, 237, 231, 0.75); }
@media (max-width: 720px) { .topbar { display: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
}

.wordmark {
  text-decoration: none;
  line-height: 1;
  display: block;
}
.wordmark .name {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  display: block;
}
.wordmark .desc {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.01em;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--brass); }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--green);
  color: var(--paper);
  border: 1px solid var(--green);
  border-radius: 3px;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 150ms ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.on-green { background: var(--paper); color: var(--green); border-color: var(--paper); }
.btn.on-green:hover { background: #fff; }
.site-nav .btn { padding: 10px 16px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header .container { min-height: 72px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px var(--gutter) 24px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; text-align: center; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero > .container {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(3.4rem, 8.4vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 380;
}
.hero h1 span { display: block; }
.hero h1 .de { color: var(--green); }
.hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink);
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.text-link {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-weight: 500;
}
.text-link:hover { text-decoration-thickness: 2px; }
.hero-art { align-self: end; }
.hero-art img { width: 100%; height: auto; }

.hero-facts {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-facts ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-facts li {
  padding: 20px 28px 20px 0;
  font-size: 0.98rem;
  line-height: 1.45;
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.hero-facts li:first-child { border-left: 0; padding-left: 0; }
.hero-facts strong { display: block; font-weight: 500; }
.hero-facts span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero > .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .hero-facts ul { grid-template-columns: 1fr; }
  .hero-facts li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .hero-facts li:first-child { border-top: 0; }
}

/* one orchestrated entrance on page load */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .actions, .hero-art {
    animation: rise 700ms cubic-bezier(.2,.7,.2,1) both;
  }
  .hero .lead { animation-delay: 120ms; }
  .hero .actions { animation-delay: 220ms; }
  .hero-art { animation-delay: 160ms; animation-duration: 900ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- generic section ---------- */
.section { padding: var(--section) 0; }
.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px 64px;
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p {
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 36em;
  color: var(--ink);
}
.section-head p + p { margin-top: 1em; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- the firm ---------- */
.firm .clients {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px 64px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.firm .clients h3 { font-size: 1.3rem; }
.firm .clients ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
}
.firm .clients li {
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.firm .clients li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.75em;
  width: 10px; height: 1px;
  background: var(--brass);
}
@media (max-width: 800px) {
  .firm .clients { grid-template-columns: 1fr; }
  .firm .clients ul { grid-template-columns: 1fr; }
}

/* ---------- practice areas ---------- */
.practice-list { border-top: 1px solid var(--rule); }
.practice {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
}
.practice:last-child { border-bottom: 0; padding-bottom: 0; }
.practice:nth-child(even) .practice-art { order: 2; }
.practice-art img { width: 100%; height: auto; border-radius: 2px; }
.practice h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.practice .summary {
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 36em;
}
.practice ul {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  max-width: 42em;
}
.practice li {
  position: relative;
  padding-left: 20px;
  font-size: 0.97rem;
  line-height: 1.45;
}
.practice li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 9px; height: 1px;
  background: var(--brass);
}
.practice li i { font-style: italic; color: var(--muted); }
@media (max-width: 800px) {
  .practice { grid-template-columns: 1fr; }
  .practice:nth-child(even) .practice-art { order: 0; }
  .practice-art { max-width: 420px; }
  .practice ul { grid-template-columns: 1fr; }
}

/* ---------- how a matter proceeds (a real sequence, hence the numbers) ---------- */
.process {
  background: var(--green);
  color: var(--paper);
}
.process h2 { color: var(--paper); }
.process .section-head p { color: rgba(238, 237, 231, 0.85); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-on-green);
}
.steps li {
  padding: 28px 28px 8px 0;
  border-left: 1px solid var(--rule-on-green);
  padding-left: 24px;
}
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps .num {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--brass);
  font-weight: 300;
}
.steps h3 { margin-top: 14px; font-size: 1.35rem; }
.steps p { margin-top: 10px; font-size: 0.97rem; line-height: 1.5; color: rgba(238, 237, 231, 0.85); }
.fees {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--rule-on-green);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px 64px;
}
.fees h3 { font-size: 1.3rem; }
.fees p { color: rgba(238, 237, 231, 0.85); max-width: 40em; }
.fees p + p { margin-top: 0.8em; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .fees { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-on-green); }
  .steps li:first-child { border-top: 0; }
}

/* ---------- offices ---------- */
.map-wrap {
  background: var(--green);
  border-radius: 3px;
  overflow: hidden;
}
.map-wrap svg { width: 100%; height: auto; }
.map-wrap text {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--paper);
}
.map-wrap .grid-label { fill: rgba(214, 222, 212, 0.55); font-size: 11px; }
.map-wrap .country {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  fill: rgba(214, 222, 212, 0.35);
}
.map-wrap .city { font-size: 15px; font-weight: 500; }
.map-wrap .coords { fill: rgba(238, 237, 231, 0.7); font-size: 12px; }
.map-wrap .minor { fill: rgba(238, 237, 231, 0.75); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .map-wrap .route {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: draw 1600ms 300ms ease-out forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  margin-top: clamp(32px, 4vw, 48px);
}
.office {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.office h3 { font-size: 1.6rem; }
.office address {
  font-style: normal;
  margin-top: 12px;
  line-height: 1.55;
}
.office .meta { margin-top: 12px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.office a { text-decoration: none; }
.office a:hover { text-decoration: underline; text-underline-offset: 3px; }
.reach {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 50em;
}
@media (max-width: 640px) { .addresses { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team { background: var(--paper-deep); }
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}
.person img { width: 100%; height: auto; border-radius: 2px; }
.person h3 { margin-top: 16px; font-size: 1.35rem; }
.person .role { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.person .about { margin-top: 10px; font-size: 0.95rem; line-height: 1.5; }
.person .langs { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; max-width: 360px; } }

/* ---------- contact ---------- */
.contact .grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px 64px;
  align-items: start;
}
.contact .intro p { font-size: 1.08rem; line-height: 1.55; max-width: 30em; }
.contact .intro p + p { margin-top: 1em; }
.contact .intro .note { font-size: 0.92rem; color: var(--muted); }
.contact .direct { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 20px; font-size: 0.97rem; line-height: 1.7; }
.contact .direct a { text-decoration: none; }
.contact .direct a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form label .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 11px 12px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.form .consent a { color: var(--ink); }
.form-status {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  padding: 14px 16px;
  border-left: 3px solid var(--brass);
  background: var(--paper-deep);
}
.form-status[hidden] { display: none; }
@media (max-width: 900px) { .contact .grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: 0.95rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .wordmark .desc { color: rgba(238, 237, 231, 0.7); }
.site-footer .blurb { margin-top: 18px; max-width: 28em; color: rgba(238, 237, 231, 0.8); line-height: 1.55; }
.site-footer h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.6; color: rgba(238, 237, 231, 0.85); }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal li + li { margin-top: 8px; }
.site-footer .legal span { color: rgba(238, 237, 231, 0.6); }
.site-footer .bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-green);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  color: rgba(238, 237, 231, 0.65);
  font-size: 0.86rem;
}
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* map on small screens: the SVG shrinks to ~40%, so drop the small labels and enlarge the two offices */
@media (max-width: 640px) {
  .map-wrap .grid-label,
  .map-wrap .minor,
  .map-wrap .coords { display: none; }
  .map-wrap .city { font-size: 38px; }
  .map-wrap .country { font-size: 52px; }
}
