:root {
  --color-greyscale-black: #32302f;
  --color-linen-white: #fcfcfc;
  --color-slate-border: #e4e2e1;
  --color-text-muted: #686664;
  --color-ash-canvas: #f1f0f0;
  --color-input-gray: #eeece7;
  --color-ocean-tint: #d3e5f3;
  --color-success-green: #486635;
  --color-error-red: #a43d12;
  --color-focus-outline: #afaaa7;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --color-forest: #2a3d30;
  --color-forest-mid: #3d5c45;
  --color-forest-light: #edf2ec;

  --radius-sm: 2px;
  --radius-full: 100px;
  --radius-buttons: 1600px;

  --max: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--color-greyscale-black);
  background: var(--color-linen-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

body.page-home {
  padding-top: 0;
}

/* ── Visually hidden ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
.site-header {
  align-self: stretch;
  width: 100%;
  background: var(--color-linen-white);
  border-bottom: 1px solid var(--color-slate-border);
  padding: 20px clamp(1.25rem, 3vw, 2.5rem) 0;
}

.site-header--home {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 3vw, 2rem);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.site-header__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.site-logo-link {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 0;
}

.site-logo-link:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.site-logo {
  height: clamp(4rem, 9vw, 5.5rem);
  width: auto;
  max-width: min(90vw, 28rem);
  display: block;
  object-fit: contain;
}

.mark {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 400;
  font-family: var(--font-sans);
}

.mark.mark--end {
  text-align: right;
}

.mark-sub {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 400;
  text-align: right;
  line-height: 1.3;
}

.header-phone {
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--color-greyscale-black);
  text-decoration: none;
  border-bottom: 1px solid var(--color-slate-border);
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.header-phone:hover {
  border-bottom-color: var(--color-greyscale-black);
}

.header-phone:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 3px;
}

/* ── Treeline ── */
.treeline {
  width: 100%;
  overflow: hidden;
  height: 50px;
  margin-top: 4px;
  margin-bottom: -1px;
  overflow: hidden;
}

.treeline__svg {
  width: 100%;
  height: 50px;
  display: block;
  display: block;
}

/* ── Nav ── */
.site-nav {
  align-self: stretch;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-linen-white);
  border-bottom: 1px solid var(--color-slate-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: var(--max);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}

.site-nav__list li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 16px 8px;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-sans);
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-greyscale-black);
  border-bottom-color: var(--color-slate-border);
}

.site-nav a[aria-current="page"] {
  color: var(--color-forest);
  border-bottom-color: var(--color-forest);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: -2px;
}

@media (max-width: 520px) {
  .site-nav__list {
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 0;
  }

  .site-nav__list li {
    flex: 1 1 42%;
    min-width: 7rem;
  }
}

/* ── Hero ── */
.hero {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 3vw, 2.5rem);
}

.hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-forest-mid);
}

.hero__headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-greyscale-black);
}

.hero__credentials {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__credentials li {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest);
  background: var(--color-forest-light);
  border: 1px solid #c8d9cc;
  border-radius: var(--radius-full);
  padding: 7px 14px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__media {
  margin: 0;
  line-height: 0;
}

.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-full);
  object-fit: cover;
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }
  .hero__copy { order: 2; }
  .hero__media { order: 1; max-width: min(80vw, 20rem); margin: 0 auto; }
  .hero__headline { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}

/* ── Home intro (legacy, keep for other pages if needed) ── */
.home-intro {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 3vw, 2.5rem);
}

.home-intro__media {
  margin: 0;
  line-height: 0;
}

.home-intro__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.home-intro__copy {
  min-width: 0;
}

.tagline--intro {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--color-greyscale-black);
  text-align: left;
}

@media (max-width: 640px) {
  .home-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .home-intro__media {
    max-width: min(80vw, 18rem);
    width: 100%;
  }

  .tagline--intro {
    text-align: center;
    font-size: clamp(1.65rem, 6vw, 2.5rem);
  }
}

/* ── Page headers (inner pages) ── */
.site-header--inner {
  padding-bottom: 0;
  margin-bottom: 0;
}

.site-header__brand {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: var(--max);
}

.site-header__brand a {
  color: var(--color-greyscale-black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-header__brand a:hover {
  color: var(--color-text-muted);
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--color-greyscale-black);
}

.tagline {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
}

.tagline--page {
  max-width: 32rem;
}

/* ── Home sections ── */
.home-section {
  width: 100%;
  max-width: var(--max);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-slate-border);
}

.home-section--tinted {
  background: var(--color-forest-light);
  max-width: none;
  border-top: none;
  border-bottom: 1px solid #d0dbd2;
}

.home-section--tinted > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.home-section--dark {
  background-color: var(--color-forest);
  background-image:
    linear-gradient(
      160deg,
      rgba(22, 34, 26, 0.82) 0%,
      rgba(42, 61, 48, 0.68) 50%,
      rgba(18, 28, 22, 0.88) 100%
    ),
    url("images/redwoods-nav.png");
  background-size: cover;
  background-position: center 40%;
  max-width: none;
  border-top: none;
  border-bottom: none;
}

.home-section--dark > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.home-section--cta {
  text-align: center;
}

.home-section--cta .hero__actions {
  justify-content: center;
}

.home-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--color-greyscale-black);
}

.home-section--dark .home-section__heading {
  color: var(--color-linen-white);
}

.home-section__body {
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-section__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
}

/* ── Practice areas grid ── */
.practice-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 12px;
}

.practice-card {
  display: block;
  background: var(--color-linen-white);
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-full);
  padding: 20px 28px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--color-greyscale-black);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.practice-card:hover {
  background: var(--color-forest-light);
  border-color: var(--color-forest-mid);
  color: var(--color-forest);
}

/* ── Notable result (dark) ── */
.result-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 210, 185, 0.75);
  margin: 0 0 20px;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2.5rem) 0;
}

.result-quote {
  margin: 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.result-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--color-linen-white);
  margin: 0;
}

.result-sub {
  margin: 24px 0 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 5rem);
}

.result-sub a {
  font-size: 14px;
  color: rgba(180, 210, 185, 0.85);
  text-decoration: none;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(180, 210, 185, 0.3);
  transition: color 0.15s, border-color 0.15s;
}

.result-sub a:hover {
  color: var(--color-linen-white);
  border-color: rgba(255,255,255,0.5);
}

/* ── Testimonial ── */
.testimonial {
  margin: 0;
  padding: 0;
  max-width: 44rem;
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-greyscale-black);
  margin: 0 0 20px;
}

.testimonial footer {
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
}

/* ── Footer (rebuilt) ── */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-link {
  font-size: 14px;
  letter-spacing: 0.005em;
  color: #a8c4a8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: block;
}

.footer-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.footer-fax {
  cursor: default;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  max-width: 280px;
}

.footer-badge {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 2rem;
  align-items: flex-start;
}

/* ── Main content ── */
main {
  width: 100%;
  max-width: var(--max);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.fill-placeholder {
  margin: 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ── Panels ── */
.panel {
  background: var(--color-linen-white);
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-full);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 5vw, 3rem);
}

.panel--soft {
  background: var(--color-ash-canvas);
  border-color: transparent;
}

.panel h2,
.contact h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--color-greyscale-black);
}

.panel p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.4;
}

.muted-p {
  margin-top: 16px !important;
  color: var(--color-text-muted);
}

.cta-row {
  margin-top: 24px !important;
}

/* ── News list ── */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-slate-border);
}

.news-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-list li:first-child {
  padding-top: 0;
}

.news-list a,
.news-title {
  font-size: 15px;
  color: var(--color-greyscale-black);
  letter-spacing: 0.005em;
  line-height: 1.4;
}

.news-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--color-slate-border);
  transition: color 0.15s, border-color 0.15s;
}

.news-list a:hover {
  color: var(--color-forest);
  border-bottom-color: var(--color-forest);
}

.news-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

/* ── Blockquote / review ── */
.review-quote {
  margin: 0;
  padding: 0;
}

.review-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-greyscale-black) !important;
  margin: 0 0 16px;
}

.review-quote footer {
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
}

/* ── FAQ list ── */
.faq-list {
  margin: 0;
}

.faq-list dt {
  font-weight: 500;
  color: var(--color-greyscale-black);
  margin-top: 24px;
  font-size: 16px;
  letter-spacing: 0.005em;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 8px 0 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.4;
}

/* ── Lists ── */
.list-plain {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-greyscale-black);
  line-height: 1.4;
}

.list-plain li {
  margin-bottom: 8px;
}

.list-plain li:last-child {
  margin-bottom: 0;
}

/* ── Contact ── */
.contact {
  text-align: center;
  padding: 0 0 24px;
}

.contact--page {
  background: var(--color-linen-white);
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-full);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 5vw, 3rem);
}

.contact a {
  color: var(--color-greyscale-black);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--color-slate-border);
  transition: border-color 0.15s ease;
}

.contact a:hover {
  border-bottom-color: var(--color-greyscale-black);
}

.contact .muted {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
  letter-spacing: 0.005em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: var(--radius-buttons);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-linen-white);
  border: 1px solid var(--color-forest);
  padding: 20px 32px;
}

.btn--primary:hover {
  background: #1e2d22;
  border-color: #1e2d22;
}

.btn--secondary {
  background: var(--color-linen-white);
  color: var(--color-greyscale-black);
  border: 1px solid var(--color-greyscale-black);
  padding: 12px 24px;
}

.btn--secondary:hover {
  background: var(--color-ash-canvas);
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 3px;
}

/* ── Pill badge ── */
.pill {
  display: inline-block;
  background: var(--color-input-gray);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--color-greyscale-black);
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 48px clamp(1.25rem, 3vw, 2.5rem);
  width: 100%;
  max-width: var(--max);
  background: var(--color-forest);
  color: #c8d4c8;
}

.footer-office {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-office__title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fad8f;
  margin: 0;
}

.footer-office__address {
  margin: 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: #c8d4c8;
}

.footer-rights {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.005em;
  color: #8fad8f;
}

.footer-legal {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.005em;
  color: #6a8c6a;
  line-height: 1.5;
  max-width: 48rem;
}

/* ── Anchor scroll offset ── */
.anchor-section {
  scroll-margin-top: 4rem;
}
