:root {
  --ink: #1c1b1a;
  --muted: #5f5a53;
  --paper: #fbfaf6;
  --line: #ded8cd;
  --sage: #6d7f66;
  --clay: #b86f4b;
  --sun: #e2b85d;
  --blue: #456b86;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header,
.page-header {
  min-height: 58vh;
  padding: 24px clamp(18px, 4vw, 56px) 44px;
  background:
    linear-gradient(110deg, rgba(28, 27, 26, .78), rgba(28, 27, 26, .22)),
    url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
}

.page-header.dressing {
  background:
    linear-gradient(110deg, rgba(46, 40, 35, .78), rgba(46, 40, 35, .18)),
    url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-header.greenwood {
  background:
    linear-gradient(110deg, rgba(23, 41, 32, .82), rgba(23, 41, 32, .20)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tab {
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
}

.tab.active,
.tab:hover {
  background: var(--white);
  color: var(--ink);
}

.intro,
.hero-content {
  max-width: 760px;
  margin-top: clamp(70px, 12vw, 150px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: .98;
  letter-spacing: 0;
}

.intro p,
.hero-content p {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.directory {
  width: min(1100px, calc(100% - 32px));
  margin: -44px auto 72px;
  display: grid;
  gap: 14px;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(28, 27, 26, .08);
}

.company-row.featured {
  border-left: 6px solid var(--sage);
}

.company-row h2,
.panel h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.company-row p,
.panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.button.external {
  background: var(--blue);
}

.button.internal {
  background: var(--clay);
}

.button:hover {
  filter: brightness(.95);
}

.content-grid {
  width: min(1100px, calc(100% - 32px));
  margin: -44px auto 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(28, 27, 26, .08);
}

.panel.wide {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #242321;
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .76);
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  font-style: normal;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .topbar,
  .company-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .tabs {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer address {
    flex-direction: column;
    justify-content: flex-start;
  }
}
