:root {
  --ink: #10231f;
  --ink-2: #263b35;
  --paper: #f7f3ec;
  --white: #fffdf8;
  --line: #ddd5c9;
  --sage: #7d9184;
  --brass: #b58b45;
  --clay: #9f6758;
  --mist: #e8ece7;
  --shadow: 0 24px 70px rgba(16, 35, 31, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.8rem max(1.2rem, calc((100vw - var(--max)) / 2));
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid rgba(221, 213, 201, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--brass);
  background: var(--ink);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 0.96rem;
}

.brand strong,
.site-footer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--ink-2);
  font-size: 0.76rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
}

.primary-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 0;
  height: 2px;
  content: "";
  background: var(--brass);
  transition: width 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 7rem max(1.2rem, calc((100vw - var(--max)) / 2)) 6rem;
}

.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 35, 31, 0.92) 0%, rgba(16, 35, 31, 0.72) 38%, rgba(16, 35, 31, 0.1) 100%),
    linear-gradient(0deg, rgba(16, 35, 31, 0.45), rgba(16, 35, 31, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(710px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
  line-height: 1.05;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7.2vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 650px;
  margin: 1.45rem 0 0;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

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

.button.primary {
  background: var(--brass);
  color: #11100d;
}

.button.secondary {
  border-color: rgba(255, 253, 248, 0.46);
  color: var(--white);
}

.band,
.section,
.page-hero,
.site-footer {
  padding-inline: max(1.2rem, calc((100vw - var(--max)) / 2));
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metric {
  min-height: 150px;
  padding: 2rem;
  background: var(--white);
}

.metric strong {
  display: block;
  margin-bottom: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
}

.metric span {
  color: var(--ink-2);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.prose p,
.page-hero p {
  margin: 0 0 1.15rem;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.practice-preview,
.blog-grid,
.service-list,
.faq-list,
.contact-layout {
  border-top: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-card,
.blog-card,
.service-list article,
.contact-panel,
.contact-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 35, 31, 0.06);
}

.service-card {
  min-height: 260px;
  padding: 1.4rem;
}

.service-card span,
.date {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card h3,
.blog-card h2 {
  margin-top: 1.2rem;
}

.service-card p,
.blog-card p,
.service-list p,
.contact-panel p,
.faq-list p {
  color: var(--ink-2);
}

.page-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--white), var(--mist));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5.1rem);
}

.page-hero p:last-child {
  max-width: 720px;
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.values div {
  padding: 2rem;
  background: var(--ink);
  color: var(--white);
}

.values p {
  color: rgba(255, 253, 248, 0.78);
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-list article {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.3rem);
}

.service-list ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-2);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blog-card {
  min-height: 330px;
  padding: 1.4rem;
}

.blog-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  padding: 1.15rem 1.3rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}

.contact-panel,
.contact-form {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.contact-panel a {
  display: block;
  margin-top: 0.8rem;
  color: var(--ink);
  font-weight: 800;
}

.fine-print {
  margin-top: 2rem;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink-2);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 0.9rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0.35rem 0;
  color: rgba(255, 253, 248, 0.72);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.82rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding-top: 5.5rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 35, 31, 0.93), rgba(16, 35, 31, 0.68)),
      linear-gradient(0deg, rgba(16, 35, 31, 0.42), rgba(16, 35, 31, 0));
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }

  .trust-band,
  .card-grid,
  .values,
  .blog-grid,
  .split,
  .service-list article,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    padding: 1.35rem;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

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

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

  .button.secondary {
    background: rgba(255, 253, 248, 0.08);
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }
}
