:root {
  --teal: #2a9d9a;
  --teal-2: #3caaaa;
  --slate: #748da0;
  --slate-2: #61798c;
  --cream: #f3f1e8;
  --paper: #fff;
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --line: #d8d4c8;
  --sans: "Source Sans Pro", "Source Sans 3", Helvetica, Arial, sans-serif;
  --head: "Fjalla One", Impact, sans-serif;
  --mark: "Yeseva One", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--slate-2); }
section[id] { scroll-margin-top: 88px; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--slate);
  color: #fff;
  text-decoration: none;
  border: 0;
  font: 600 15px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
}
.btn:hover { background: var(--slate-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: #217f7d; }

/* loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
}
#loader .bands { position: absolute; inset: 0; display: flex; }
#loader .band { flex: 1; transform: none; }
#loader .band:nth-child(1) { background: var(--teal); }
#loader .band:nth-child(2) { background: var(--teal-2); }
#loader .band:nth-child(3) { background: var(--slate); }
#loader .mark {
  position: relative;
  z-index: 2;
  width: min(240px, 56vw);
  background: var(--cream);
  padding: 28px 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
#loader.out .band { transform: translateY(-110%); }
#loader.out .band:nth-child(1) { transition: transform .7s cubic-bezier(.7,0,.2,1) .05s; }
#loader.out .band:nth-child(2) { transition: transform .7s cubic-bezier(.7,0,.2,1) .14s; }
#loader.out .band:nth-child(3) { transition: transform .7s cubic-bezier(.7,0,.2,1) .23s; }
#loader.out .mark {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .35s ease, transform .35s ease;
}
#loader.done { display: none; }
@media (prefers-reduced-motion: reduce) {
  #loader.out .band, #loader.out .mark { transition: none; }
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img { height: 40px; width: auto; }
.brand .name {
  font-family: var(--mark);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
.brand .name span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 3px;
}
header nav { display: flex; align-items: center; gap: 22px; }
header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}
header nav a:hover { color: var(--teal); }
header .phone { display: inline-flex; padding: 11px 16px; font-size: 13px; }

.hero {
  display: grid;
  min-height: calc(100svh - 72px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; }
}
.hero-copy {
  padding: 48px 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy .inner { width: min(560px, calc(100% - 40px)); margin-left: auto; margin-right: 24px; }
@media (min-width: 900px) {
  .hero-copy .inner { margin-right: 48px; }
}
.hero h1 { font-size: clamp(44px, 7vw, 78px); }
.hero h1 em {
  font-style: normal;
  color: var(--teal);
  display: block;
}
.tag {
  margin: 18px 0 22px;
  font-size: 18px;
  color: var(--muted);
}
.hero-photo {
  min-height: 320px;
  background: #d8e4e8 url("/img/hero.jpg") center/cover no-repeat;
}
@media (max-width: 899px) {
  .hero-photo { order: -1; min-height: 46vh; }
}
@media (min-width: 900px) {
  .hero-photo { min-height: 100%; }
}

.split {
  display: grid;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 560px; }
}
.split .copy {
  padding: 64px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.split.cream .copy { background: var(--cream); }
.split h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.split .photo { min-height: 300px; background-size: cover; background-position: center; }
.services {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.services li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.facts {
  display: grid;
  gap: 0;
  background: var(--ink);
  color: #fff;
}
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts article { padding: 36px 8vw; }
@media (min-width: 700px) {
  .facts article:first-child { border-right: 1px solid rgba(255,255,255,.12); }
}
.facts h3 {
  font-size: 22px;
  color: var(--teal-2);
  margin-bottom: 10px;
}
.facts p { color: #cfcfcf; }

.band {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background: #3a3a3a center/cover no-repeat;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27,27,27,.42);
}
.band .wrap { position: relative; padding: 72px 20px; }
.band h2 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 12px; }
.band p { font-size: 20px; margin-bottom: 22px; }

.practice { padding: 80px 0; }
.practice h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.docs {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.docs article {
  background: transparent;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.docs strong {
  display: block;
  font-family: var(--mark);
  font-size: 22px;
  font-weight: 400;
}
.docs span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--teal);
}

.towns { padding: 0 0 80px; }
.towns-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 28px 32px;
}
.towns h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.towns .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}
.towns input[type="search"] {
  flex: 1 1 220px;
  font: 16px var(--sans);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  font: 600 13px var(--sans);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.list { display: flex; flex-wrap: wrap; gap: 8px; }
.list span {
  font-size: 14px;
  background: var(--cream);
  padding: 6px 10px;
  border: 1px solid var(--line);
}
.list span.hit { background: #dff4f3; border-color: var(--teal-2); }
#townNote { min-height: 1.4em; margin: 8px 0 14px; font-size: 15px; font-weight: 600; color: var(--teal); }

.reviews { padding: 0 0 80px; }
.reviews-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) { .reviews-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.reviews h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.score b {
  font-family: var(--head);
  font-size: 64px;
  letter-spacing: 0;
  line-height: 1;
}
.stars { color: var(--teal); letter-spacing: 2px; font-size: 18px; }
.quote {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.45;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.map {
  border: 1px solid var(--line);
  background: #e8e8e8;
  min-height: 360px;
}
.map iframe { width: 100%; height: 360px; border: 0; display: block; }

.contact { padding: 0 0 90px; }
.contact-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.meta { list-style: none; margin: 28px 0 0; padding: 0; }
.meta li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meta small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta a, .meta b { color: var(--ink); font-size: 18px; text-decoration: none; }
.meta a:hover { color: var(--teal); }

form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
}
form h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
form .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}
input, select, textarea {
  width: 100%;
  font: 16px var(--sans);
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  margin-bottom: 14px;
}
textarea { min-height: 96px; resize: vertical; }
form .btn { width: 100%; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; }
.fine a { color: inherit; }
#sent { display: none; text-align: center; padding: 28px 8px; }
#sent h3 { margin-bottom: 8px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
footer a { color: var(--ink); text-decoration: none; }

@media (max-width: 719px) {
  header nav a:not(.btn) { display: none; }
  header .phone { padding: 10px 12px; font-size: 12px; }
  .hero-copy { padding: 36px 0 40px; }
  .hero-copy .inner { margin-right: auto; }
  .split .copy, .facts article { padding: 40px 20px; }
  .towns-panel, form { padding: 22px 18px; }
}
