:root {
  --ink: #111827;
  --navy: #10233f;
  --navy-2: #172f55;
  --gold: #c59a4a;
  --gold-soft: #f2dfb8;
  --ivory: #f8f5ee;
  --paper: #fffaf0;
  --muted: #64748b;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 174px;
  height: auto;
  max-height: 56px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.22);
}

.brand span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 8px;
  color: #26364d;
  font-size: 0.96rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(197, 154, 74, 0.16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-size: 1.45rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: #0d1b31;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/law-office-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 18, 34, 0.92) 0%, rgba(8, 18, 34, 0.72) 45%, rgba(8, 18, 34, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 18, 34, 0.35), rgba(8, 18, 34, 0.08));
}

.hero-inner,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  max-width: 650px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--navy);
}

.hero h1 {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  max-width: 820px;
}

.hero p {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #111827;
  background: var(--gold);
}

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

.button.light {
  color: var(--navy);
  background: var(--paper);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 40px));
  margin: -52px auto 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(17, 24, 39, 0.12);
}

.stat {
  padding: 28px;
  background: var(--paper);
}

.stat strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 650;
}

section,
.page-section {
  padding: 88px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head h2,
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
}

.section-head p,
.page-hero p,
.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.84);
}

.card h3 {
  font-size: 1.18rem;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(197, 154, 74, 0.2);
  font-weight: 900;
}

.band {
  color: white;
  background: linear-gradient(135deg, var(--navy), #1e3b63);
}

.band h2,
.band h3 {
  color: white;
}

.band p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  color: #304258;
}

.feature-list li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.page-hero {
  padding: 76px 0;
  color: white;
  background: linear-gradient(135deg, #0f213d 0%, #173967 64%, #c59a4a 150%);
}

.page-hero h1 {
  color: white;
}

.page-hero p {
  max-width: 750px;
  color: rgba(255, 255, 255, 0.8);
}

.service-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row h2 {
  font-size: 1.9rem;
}

.service-row p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  padding: 32px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy);
}

.contact-panel h2 {
  color: white;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list strong {
  display: block;
  color: var(--gold-soft);
}

form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

label {
  display: grid;
  gap: 7px;
  color: #26364d;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #081222;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a {
  color: white;
  font-weight: 750;
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 3.65rem;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .section-head h2,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .stats,
  .grid-3,
  .grid-2,
  .split,
  .service-row {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  section,
  .page-section {
    padding: 64px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-inner,
  .section-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 138px;
    max-height: 48px;
  }

  .hero-content {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .section-head h2,
  .page-hero h1 {
    font-size: 2.15rem;
  }

  .service-row h2 {
    font-size: 1.5rem;
  }

  .hero-actions,
  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
