:root {
  --ink: #101820;
  --ink-soft: #24323d;
  --paper: #f6f3ee;
  --paper-strong: #fffaf3;
  --line: rgba(16, 24, 32, 0.14);
  --teal: #0b7c83;
  --teal-dark: #07535a;
  --amber: #c9953b;
  --coral: #df6a55;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 24, 32, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(16, 24, 32, 0.78);
  font-size: 14px;
}

.main-nav a,
.site-footer a,
.contact-links a {
  transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover,
.contact-links a:hover {
  color: var(--teal);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(11, 124, 131, 0.35);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  min-height: 82svh;
  display: flex;
  align-items: center;
  padding: 88px max(24px, calc((100vw - var(--max)) / 2)) 84px;
  color: var(--white);
  background-color: #101820;
  background-image:
    linear-gradient(90deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.84) 38%, rgba(16, 24, 32, 0.42) 64%, rgba(16, 24, 32, 0.12) 100%),
    url("assets/lawyer-office.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right top;
  background-size: cover, cover;
}

.hero-content {
  width: min(630px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 850;
  line-height: 1.02;
}

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

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

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

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 42px 0 0;
}

.hero-facts div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts dt {
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.signal {
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--teal-dark);
  color: var(--white);
}

.signal-inner {
  max-width: 980px;
}

.signal p {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.section {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2,
.process-content h2,
.expert-copy h2,
.contact-copy h2 {
  font-size: 44px;
  max-width: 760px;
}

.section-heading.compact {
  align-items: start;
  display: block;
}

.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.case-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-number {
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.service-card h3,
.case-card h3,
.steps h3 {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.18;
}

.service-card p,
.case-card p,
.steps p,
.expert-copy p,
.contact-copy p {
  color: rgba(16, 24, 32, 0.72);
}

.service-card p {
  margin: auto 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: 54px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.process-media {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.process-content h2,
.expert-copy h2,
.contact-copy h2 {
  margin: 0;
}

.split-section .steps p,
.split-section .service-card p {
  color: rgba(255, 255, 255, 0.74);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--amber);
  font-weight: 850;
}

.steps h3 {
  margin-top: 0;
}

.steps p {
  margin: 8px 0 0;
}

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

.case-card {
  min-height: 190px;
}

.case-card h3 {
  margin-top: 0;
}

.expert-section {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.expert-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.expert-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(11, 124, 131, 0.14);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.75fr);
  gap: 48px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(246, 243, 238, 0.96), rgba(246, 243, 238, 0.9)),
    url("assets/social-post-base.jpg") right center / 50% auto no-repeat;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: var(--teal-dark);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(16, 24, 32, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(11, 124, 131, 0.32);
  border-color: var(--teal);
}

.lead-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: rgba(16, 24, 32, 0.58);
  font-size: 13px;
}

.form-note a {
  color: var(--teal-dark);
  font-weight: 800;
}

.form-note.success {
  color: var(--teal-dark);
  font-weight: 800;
}

.legal-section {
  max-width: 860px;
}

.legal-section h1 {
  margin: 0 0 24px;
  font-size: 46px;
  line-height: 1.05;
}

.legal-section h2 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

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

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0.8) 52%, rgba(16, 24, 32, 0.48) 100%),
      url("assets/lawyer-office.jpg");
    background-position: center, center top;
    background-size: cover, cover;
  }

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

  .hero-facts,
  .service-grid,
  .case-grid,
  .split-section,
  .expert-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .process-media {
    min-height: 340px;
  }

  .process-media img {
    min-height: 340px;
  }

  .expert-section,
  .contact-section {
    gap: 30px;
  }

  .expert-photo {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    padding-inline: 16px;
  }

  .brand span {
    max-width: 170px;
    line-height: 1.12;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 12px;
  }

  .main-nav {
    gap: 16px;
  }

  .hero {
    min-height: 78svh;
    padding: 58px 16px 48px;
  }

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

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

  .hero-actions {
    display: grid;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .section,
  .signal,
  .site-footer {
    padding-inline: 16px;
  }

  .section {
    padding-block: 64px;
  }

  .section-heading h2,
  .process-content h2,
  .expert-copy h2,
  .contact-copy h2 {
    font-size: 32px;
  }

  .service-card,
  .case-card,
  .lead-form {
    padding: 20px;
  }

  .split-section {
    padding-block: 64px;
  }

  .site-footer {
    display: grid;
  }
}
