.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(0.9rem, 2.6vw, 1.75rem);
  min-height: var(--header-height);
  background: rgba(246, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  color: var(--fg);
  transition: height .35s var(--ease), padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: none;
}

.site-header.is-scrolled {
  background: rgba(246, 246, 243, 0.97);
  box-shadow: 0 6px 18px rgba(32, 36, 31, 0.08);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  height: clamp(36px, 4vw, var(--brand-max-height));
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: .03em;
}

.brand-tagline {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.desk-nav {
  display: none;
}

.desk-nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  align-items: center;
}

.desk-nav a {
  padding-bottom: .35rem;
  opacity: .9;
  border-bottom: 2px solid transparent;
}

.desk-nav a:hover,
.desk-nav a:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(74, 93, 81, 0.45);
}

.nav-phone {
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 36px;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-strong);
  color: #fff !important;
  border-bottom: none !important;
  transition: filter .2s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.05);
}

.drawer {
  position: fixed;
  inset: var(--header-offset, var(--header-expanded-height)) auto 0 0;
  width: min(88vw, 360px);
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  border-left: none;
  height: max-content;
  transform: translateX(-100%);
  transition: transform .28s var(--ease);
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-drawer);
}

@media (max-width: 540px) {
  .drawer {
    width: 100vw;
    border-right: none;
    border-left: none;
  }
}

.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.drawer li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: .65rem;
}

.drawer li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.drawer a {
  display: block;
  padding: .2rem 0;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(1px);
  z-index: var(--z-scrim);
}

.site-header[data-open] .drawer {
  transform: translateX(0);
}

.site-header[data-open] .scrim,
.site-header[data-open] ~ #navScrim {
  display: block;
}

.site-header:not([data-open]) .scrim,
#navScrim[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
  }

  .brand {
    justify-self: start;
  }

  .desk-nav {
    display: flex;
    justify-self: end;
  }

  .menu-btn,
  .drawer,
  .scrim {
    display: none !important;
  }
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2rem);
}

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

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

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

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.section_background {
  background: var(--surface-alt);
}

.section-gray {
  background: var(--surface-alt);
}

.footer-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-heading {
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--accent-strong);
  margin: 0 0 .25rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a,
.footer-contact a {
  text-decoration: none;
  opacity: .85;
}

.footer-nav a:hover,
.footer-contact a:hover {
  opacity: 1;
  color: var(--accent-strong);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}

.footer-contact li {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-links {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .95rem;
  opacity: .85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-socials {
  flex-direction: row;
  gap: 1rem;
}

.footer-social {
  display: inline-flex;
  width: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(74, 93, 81, 0.12);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.footer-social:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.footer-social img {
  width: 19px;
  height: 19px;
}

.footer-credit a {
  color: var(--accent-strong);
  border-bottom-color: rgba(74, 93, 81, 0.35);
}

.site-footer {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 2.5rem);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}
