:root {
  --ink: #102d35;
  --blue: #086b78;
  --aqua: #14a3a7;
  --lime: #dff24a;
  --cream: #f5f4ed;
  --line: #d9ded9;
  --muted: #65777a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
header {
  height: 76px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-decoration: none;
  color: var(--ink);
}
.logo span {
  font-weight: 400;
}
.logo i {
  color: var(--aqua);
}
.location {
  font-size: 14px;
  color: var(--muted);
  margin-right: auto;
}
.about {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: bold;
}
.search-hero {
  background:
    linear-gradient(
      90deg,
      rgba(7, 31, 38, 0.96) 0%,
      rgba(7, 31, 38, 0.84) 48%,
      rgba(7, 31, 38, 0.22) 100%
    ),
    url("assets/tweed-coast.webp") center/cover;
  color: white;
  padding: 70px clamp(22px, 8vw, 130px) 64px;
  position: relative;
  overflow: hidden;
}
.search-hero:after {
  content: "LOOK LOCAL";
  position: absolute;
  right: -22px;
  bottom: -25px;
  font-size: 105px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: bold;
  color: var(--aqua);
  margin: 0 0 16px;
}
.search-hero .kicker {
  color: var(--lime);
}
h1 {
  font-size: clamp(45px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 36px;
}
h1 em {
  font-style: normal;
  color: var(--lime);
}
#searchForm {
  max-width: 850px;
  position: relative;
  z-index: 2;
}
#searchForm label {
  display: flex;
  background: white;
  padding: 8px;
  align-items: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
#searchForm label > span {
  color: var(--aqua);
  font-size: 27px;
  padding: 0 14px;
}
#search {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  font-size: 18px;
  padding: 15px 4px;
  color: var(--ink);
}
#searchForm button {
  border: 0;
  background: var(--lime);
  font-weight: bold;
  color: var(--ink);
  padding: 17px 23px;
}
.quick {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  color: #9db0b4;
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.quick button {
  border: 1px solid #486069;
  color: white;
  background: transparent;
  border-radius: 20px;
  padding: 7px 11px;
}
.results-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  padding: 62px clamp(22px, 6vw, 90px) 90px;
  background: var(--cream);
}
aside h2 {
  font-size: 18px;
  margin-top: 0;
}
aside label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin: 24px 0;
}
select {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.principle {
  margin-top: 36px;
  padding: 20px;
  background: #e7eded;
  border-left: 4px solid var(--aqua);
}
.principle p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
}
.list-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
  border-bottom: 1px solid #cfd7d5;
  padding-bottom: 20px;
  margin-bottom: 4px;
}
.list-head h2 {
  margin: 0;
  font-size: 28px;
}
.list-head > span {
  font-size: 13px;
  color: var(--muted);
}
.card {
  display: grid;
  grid-template-columns: 138px 1fr auto;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid #cfd7d5;
  align-items: start;
}
.thumb {
  width: 138px;
  height: 126px;
  background-position: center;
  background-size: cover;
  position: relative;
}
.thumb::after {
  content: "CATEGORY IMAGE";
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 4px 6px;
  background: rgba(7, 31, 38, 0.82);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.thumb.trades {
  background-image: url("assets/local-trades.webp");
}
.thumb.accounting {
  background-image: url("assets/local-accounting.webp");
}
.card h3 {
  font-size: 21px;
  margin: 0 0 6px;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 11px;
}
.services {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.services span {
  font-size: 11px;
  background: white;
  border: 1px solid var(--line);
  padding: 5px 7px;
}
.desc {
  font-size: 14px;
  line-height: 1.5;
  color: #4f6469;
  margin: 12px 0 0;
}
.verified {
  font-size: 11px;
  color: #52715c;
  margin-top: 10px;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 155px;
}
.actions a,
.actions button {
  padding: 11px 13px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.actions .call {
  background: var(--blue);
  color: white;
}
.empty {
  padding: 50px 0;
  color: var(--muted);
}
footer {
  background: #071f26;
  color: #bed0d0;
  padding: 42px clamp(22px, 6vw, 90px);
  display: flex;
  gap: 40px;
  align-items: center;
}
.inverse {
  color: white;
}
footer p {
  margin-right: auto;
  font-size: 13px;
}
footer > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-size: 12px;
}
footer button {
  background: transparent;
  border: 0;
  color: white;
}
dialog {
  max-width: 540px;
  border: 0;
  padding: 38px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(3, 21, 27, 0.72);
}
dialog p {
  line-height: 1.6;
  color: var(--muted);
}
.close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 25px;
}
@media (max-width: 760px) {
  header {
    height: 66px;
  }
  .location {
    display: none;
  }
  .search-hero {
    padding-top: 52px;
    background-position: 62% center;
  }
  .search-hero:after {
    display: none;
  }
  #searchForm label {
    flex-wrap: wrap;
  }
  #searchForm label > span {
    display: none;
  }
  #search {
    width: 100%;
    flex-basis: 100%;
    padding: 15px;
  }
  #searchForm button {
    width: 100%;
  }
  .results-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 38px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  aside h2,
  .principle {
    grid-column: 1/-1;
  }
  aside label {
    margin: 0;
  }
  .card {
    grid-template-columns: 100px 1fr;
  }
  .thumb {
    width: 100px;
    height: 94px;
  }
  .actions {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .list-head {
    align-items: start;
    flex-direction: column;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  footer > div {
    text-align: left;
  }
}
@media (max-width: 440px) {
  aside {
    grid-template-columns: 1fr;
  }
  .actions {
    grid-template-columns: 1fr;
  }
}
