/* Marshall Law, PLLC — dark cinematic design system */

:root {
  --bg: #0a0a0b;
  --bg-soft: #101012;
  --surface: #141416;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #f5f4f0;
  --muted: #a7a7ad;
  --faint: #6e6e74;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --section-pad: clamp(2.75rem, 6vw, 4.5rem);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: rgba(255, 255, 255, 0.85); color: #000; }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section.block { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }

/* ---------- type ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.1rem;
}

h1, h2, .serif-head {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 5.4vw, 3.1rem); margin-bottom: 1rem; }

.lede { color: var(--muted); font-size: 1.125rem; max-width: 34rem; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.brand span {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
@media (max-width: 640px) {
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 1.32rem; }
}

.nav-links { display: none; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #0a0a0b;
  background: var(--text);
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
}

/* burger + mobile menu */

.burger {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (min-width: 860px) {
  .burger { display: none; }
}
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 8, 9, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.menu a:last-of-type { border-bottom: 0; }
.menu .menu-call {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  background: var(--text);
  color: #0a0a0b;
  border-radius: 999px;
  text-align: center;
  padding: 1rem;
  border-bottom: 0;
}
.menu-close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("skyline.jpg") center 38% / cover no-repeat;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.45) 42%, rgba(5, 5, 6, 0.28) 70%, rgba(5, 5, 6, 0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem clamp(4rem, 10vh, 6.5rem);
}

.hero .eyebrow { color: rgba(245, 244, 240, 0.72); }

.hero h1 {
  font-size: clamp(2.9rem, 9vw, 5.2rem);
  max-width: 12ch;
  margin-bottom: 1.25rem;
  color: #fff;
}
/* small phones: keep the hero compact and legible */
@media (max-width: 480px) {
  .hero h1 { font-size: 2.3rem; }
  .hero .sub { font-size: 1.02rem; }
  .hero-inner { padding-bottom: 14vh; }
}

.hero .sub {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: rgba(245, 244, 240, 0.85);
  max-width: 30rem;
  margin-bottom: 2.1rem;
  font-weight: 400;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #0a0a0b;
  background: #fff;
  padding: 1.05rem 2.3rem;
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 0;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 255, 255, 0.16); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); box-shadow: none; }

.hero-credit {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}

/* compact page hero (interior pages) */

.page-hero {
  position: relative;
  padding: calc(var(--section-pad) + 2rem) 0 calc(var(--section-pad) * 0.5);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero + main > section:first-child { padding-top: calc(var(--section-pad) * 0.5); }
.page-hero .hero-bg { opacity: 0.62; }
.page-hero .hero-shade { background: linear-gradient(to top, rgba(5, 5, 6, 0.68) 0%, rgba(5, 5, 6, 0.28) 48%, rgba(5, 5, 6, 0.3) 100%); }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); color: #fff; margin-bottom: 1.1rem; }
.page-hero .sub { color: var(--muted); font-size: 1.15rem; max-width: 34rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; }
}

.portrait {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.portrait figcaption {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
}

.about-copy p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: var(--muted); margin-bottom: 1.15rem; max-width: 36rem; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.credentials {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  list-style: none;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.credentials li { margin-bottom: 0.35rem; }
.credentials li:last-child { margin-bottom: 0; }
.credentials a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }

/* ---------- practice areas ---------- */

.cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.8rem;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
a.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); background: #17171a; }
.card h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.card .go { margin-top: 0.35rem; padding-top: 0; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text); text-transform: uppercase; }
.card .go::after { content: " →"; }

/* ---------- process ---------- */

.steps { margin-top: 3rem; display: grid; gap: 0; border-top: 1px solid var(--border-soft); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.step .num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  color: var(--faint);
  line-height: 1;
  min-width: 3.2ch;
}
.step h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); max-width: 34rem; }

/* ---------- testimonials ---------- */

.quotes { display: grid; gap: 1.1rem; margin-top: 2.8rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote .stars { color: var(--text); letter-spacing: 0.18em; font-size: 0.85rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.14rem; line-height: 1.55; font-weight: 400; }
.quote cite { font-style: normal; font-size: 0.88rem; color: var(--faint); letter-spacing: 0.04em; margin-top: auto; }

/* ---------- faq ---------- */

.faq { margin-top: 2.4rem; border-top: 1px solid var(--border-soft); max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 1.5rem 2.5rem 1.5rem 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 1.35rem;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--faint);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { color: var(--muted); padding: 0 0 1.6rem; max-width: 40rem; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; } }

.contact-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; align-items: flex-start; }
.tel-big {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  transition: border-color 0.2s ease;
}
.tel-big:hover { border-color: var(--text); }
.email-link { color: var(--muted); text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--border-soft); padding-bottom: 0.2rem; }
.email-link:hover { color: var(--text); }

.form { display: grid; gap: 1.1rem; }
.form .btn { justify-self: start; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: rgba(255, 255, 255, 0.35); }
.field textarea { min-height: 140px; resize: vertical; }
.upload { display: flex; align-items: center; gap: 1rem; width: 100%; background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 0.95rem 1.1rem; cursor: pointer; transition: border-color 0.25s; }
.upload:hover { border-color: rgba(255, 255, 255, 0.35); }
.upload-btn { flex-shrink: 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #0a0a0a; background: #f5f5f5; border-radius: 999px; padding: 0.6rem 1.2rem; }
.upload-names { font-size: 0.9rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.disclaimer { margin-top: 2.5rem; font-size: 0.85rem; color: var(--faint); max-width: 38rem; line-height: 1.6; }

/* ---------- quote strip / crosslink ---------- */

.strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.strip-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 860px) {
  .strip-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.strip p { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.8rem); max-width: 32rem; line-height: 1.4; }

/* ---------- article blocks (traffic page) ---------- */

.articles { display: grid; gap: 1.1rem; margin-top: 2.8rem; }
@media (min-width: 900px) { .articles { grid-template-columns: repeat(2, 1fr); } }
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.article h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.article p { color: var(--muted); font-size: 0.99rem; }
.article p + p { margin-top: 0.8rem; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 3.5rem 0 2.2rem;
  background: #080809;
}
.foot-grid { display: grid; gap: 2.2rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.foot-brand img { width: 40px; height: 40px; margin-bottom: 1rem; }
.foot-brand p { color: var(--muted); font-size: 0.95rem; max-width: 22rem; }

.foot-head { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.foot-links { list-style: none; display: grid; gap: 0.6rem; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover { color: var(--text); }

.foot-base {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--faint);
}
@media (min-width: 860px) { .foot-base { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
