:root {
  --ink: #181714;
  --muted: #64605a;
  --paper: #f8f5ef;
  --panel: #ffffff;
  --line: #dfd8cd;
  --teal: #0f6d68;
  --teal-dark: #0b4b47;
  --brass: #b68a39;
  --charcoal: #111816;
  --shadow: 0 20px 60px rgba(24, 23, 20, 0.12);
}

* {
  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;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(248, 245, 239, 0.94);
  box-shadow: 0 8px 30px rgba(24, 23, 20, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-weight: 800;
}

.brand-line {
  max-width: 230px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.78;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.84;
}

.nav-links a:hover {
  opacity: 1;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 44px);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-solid .lang-switch {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.lang-btn.is-active {
  color: var(--ink);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 14, 0.9) 0%, rgba(8, 15, 14, 0.7) 34%, rgba(8, 15, 14, 0.26) 68%),
    linear-gradient(0deg, rgba(8, 15, 14, 0.55), rgba(8, 15, 14, 0)),
    url("../assets/legal-casework-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 92px);
  padding-top: 86px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  font-weight: 650;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--teal);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.section-pad {
  padding: clamp(70px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.intro-grid,
.section-head,
.contact-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 650;
  line-height: 1.05;
  overflow-wrap: break-word;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.intro p,
.section-head p,
.la2 p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.services,
.offer,
.process {
  background: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(260px, 0.65fr);
  gap: 36px;
  align-items: end;
}

.service-grid {
  width: min(1120px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  grid-column: span 2;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.service-card:nth-child(n + 4) {
  grid-column: span 3;
  min-height: 230px;
}

.service-card p,
.offer-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.la2 {
  background: var(--charcoal);
  color: #fff;
}

.la2-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.la2 p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
}

.la2-list {
  display: grid;
  gap: 14px;
}

.la2-list div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.la2-list strong,
.la2-list span {
  display: block;
}

.la2-list strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.la2-list span {
  color: rgba(255, 255, 255, 0.72);
}

.offer-grid {
  width: min(1120px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.timeline {
  width: min(1120px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.timeline article {
  padding: 30px 30px 0 0;
}

.timeline span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 850;
}

.timeline h3 {
  margin-bottom: 12px;
}

.contact {
  background: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact p {
  margin-top: 18px;
}

.contact .hq-note {
  margin-top: 16px;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.contact-link:hover {
  border-color: var(--teal);
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link strong {
  margin-top: 4px;
  font-size: 24px;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
}

.inquiry-form textarea {
  min-height: 128px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 109, 104, 0.16);
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  min-height: 22px;
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .brand-line,
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-copy {
    font-size: 19px;
  }

  h2 {
    font-size: 44px;
  }

  .intro p,
  .section-head p,
  .la2 p,
  .contact p {
    font-size: 18px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(8, 15, 14, 0.92) 0%, rgba(8, 15, 14, 0.78) 54%, rgba(8, 15, 14, 0.36) 100%),
      linear-gradient(0deg, rgba(8, 15, 14, 0.55), rgba(8, 15, 14, 0)),
      url("../assets/legal-casework-hero.png") 63% center / cover no-repeat;
  }

  .intro-grid,
  .section-head,
  .la2-panel,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

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

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card:nth-child(n + 4) {
    grid-column: auto;
    min-height: 0;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .timeline article {
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
    align-items: center;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 15px;
  }

  .lang-switch {
    grid-template-columns: repeat(2, 38px);
  }

  .hero {
    min-height: 710px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 18px;
  }

  h2 {
    font-size: 34px;
  }

  .intro p,
  .section-head p,
  .la2 p,
  .contact p {
    font-size: 17px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    padding: 24px;
  }

  .contact-link strong {
    font-size: 21px;
  }
}
