:root {
  --soil: #2d2118;
  --soil-soft: #46362b;
  --leaf: #557a36;
  --leaf-deep: #304d27;
  --rye: #d9b65d;
  --sky: #d8e8ec;
  --clay: #a35435;
  --cream: #f7f3e9;
  --paper: #fffaf0;
  --ink: #1d241b;
  --muted: #667061;
  --line: rgba(45, 33, 24, 0.16);
  --shadow: 0 24px 80px rgba(45, 33, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(247, 243, 233, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(45, 33, 24, 0.12);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(45, 33, 24, 0.12);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.76);
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soil-soft);
  font: 700 0.9rem/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.tab:hover,
.tab:focus-visible {
  background: rgba(85, 122, 54, 0.12);
  outline: none;
}

.tab.is-active {
  background: var(--soil);
  color: var(--paper);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background: var(--soil);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 36, 27, 0.9) 0%, rgba(29, 36, 27, 0.64) 42%, rgba(29, 36, 27, 0.16) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  padding: clamp(64px, 9vw, 132px) 0 clamp(42px, 8vw, 96px);
  margin-left: clamp(16px, 6vw, 72px);
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rye);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text,
.lead {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.03rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--rye);
  color: var(--soil);
}

.button.secondary {
  border: 1px solid rgba(255, 250, 240, 0.56);
  color: var(--paper);
}

.intro-band,
.practice-section,
.content-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(44px, 7vw, 90px) 0;
}

.intro-copy h2,
.section-heading h2,
.content-shell h1 {
  max-width: 760px;
  color: var(--soil);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.intro-copy p,
.section-heading .lead,
.map-heading p,
.blog-card p,
.practice-card p {
  color: var(--muted);
  font-size: 1.02rem;
}

.stats-grid {
  display: grid;
  gap: 12px;
}

.stats-grid article,
.practice-card,
.blog-card,
.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(45, 33, 24, 0.08);
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span,
.contact-box span,
.blog-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stats-grid strong {
  display: block;
  color: var(--soil);
  font-size: 1.08rem;
}

.practice-section,
.content-shell {
  padding: clamp(44px, 7vw, 90px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.practice-grid,
.blog-grid {
  display: grid;
  gap: 16px;
}

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

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.practice-card,
.blog-card {
  min-height: 220px;
  padding: 24px;
}

.practice-card h3,
.blog-card h2 {
  color: var(--soil);
  font-size: 1.35rem;
  line-height: 1.12;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

#contact,
#map,
#blogs {
  min-height: calc(100vh - 78px);
}

#contact .lead,
#blogs .lead {
  color: var(--muted);
}

.contact-box {
  padding: 10px;
}

.contact-photo {
  overflow: hidden;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.contact-box a {
  display: block;
  padding: 18px;
  border-radius: 6px;
  text-decoration: none;
}

.contact-box a + a {
  border-top: 1px solid var(--line);
}

.contact-box a:hover,
.contact-box a:focus-visible {
  background: rgba(85, 122, 54, 0.12);
  outline: none;
}

.contact-box strong {
  color: var(--soil);
  overflow-wrap: anywhere;
}

.map-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 390px;
  border: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .tabs {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(29, 36, 27, 0.88) 0%, rgba(29, 36, 27, 0.64) 58%, rgba(29, 36, 27, 0.3) 100%);
  }

  .hero-copy {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  h1 {
    max-width: 11ch;
  }

  .intro-band,
  .two-column,
  .map-heading {
    grid-template-columns: 1fr;
  }

  .practice-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

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

  .tab {
    padding: 0 12px;
  }

  .hero {
    min-height: 760px;
  }

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

  .intro-copy h2,
  .section-heading h2,
  .content-shell h1 {
    font-size: 2rem;
  }
}
