/* Align legacy template colors with the site's sage palette. */
html,
body,
#root {
  max-width: 100%;
  overflow-x: hidden;
}

.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(49 61 49 / var(--tw-text-opacity, 1));
}

.about-copy-override {
  width: 100%;
  max-width: 56rem;
  margin-right: auto;
  margin-left: auto;
}

.about-copy-override .about-quote {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  color: rgb(48 81 74);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.45;
}

.about-copy-override .about-paragraph {
  max-width: 48rem;
  margin: 0 auto 1.25rem;
  color: rgb(60 102 93);
  font-size: 1.125rem;
  line-height: 1.75;
}

.min-h-screen.flex.flex-col.bg-warm-50 > .max-w-7xl.mx-auto.px-4 {
  width: 100%;
}

.min-h-screen.flex.flex-col.bg-warm-50
  > .max-w-7xl.mx-auto.px-4
  > .flex.items-center.justify-between.h-20 {
  width: 100%;
}

.brand-service-line {
  display: block;
  max-width: 30rem;
  line-height: 1.2;
  white-space: normal;
}

.brand-link-with-logo {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.65rem;
  min-width: 0;
}

.brand-logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgb(48 81 74 / 0.12);
}

.brand-text-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.brand-text-stack > span {
  display: block;
}

.footer-brand-with-logo {
  gap: 0.5rem;
}

.footer-brand-logo-mark {
  width: 2.125rem;
  height: 2.125rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  object-fit: cover;
}

footer,
footer * {
  min-width: 0;
}

footer a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.homepage-calendly-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.homepage-calendly-cta {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(73 128 116);
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 16px 32px rgb(48 81 74 / 0.22);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.homepage-calendly-cta:hover {
  background: rgb(60 102 93);
  box-shadow: 0 18px 36px rgb(48 81 74 / 0.28);
  transform: translateY(-1px);
}

.homepage-calendly-cta:focus-visible {
  outline: 3px solid rgb(234 218 195);
  outline-offset: 3px;
}

.homepage-calendly-note {
  margin: 0;
  color: rgb(60 102 93);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .about-copy-override {
    text-align: left;
  }

  .about-copy-override .about-quote,
  .about-copy-override .about-paragraph {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20 {
    justify-content: flex-start;
    column-gap: 0.75rem;
  }

  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > .flex-shrink-0:first-child {
    flex-shrink: 0;
  }

  .brand-service-line {
    max-width: 16rem;
    font-size: 0.68rem;
    white-space: normal;
  }

  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > nav {
    margin-left: auto;
    flex-shrink: 0;
  }

  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > nav
    + * {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > nav,
  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > nav
    + div {
    display: none !important;
  }

  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > nav
    + div
    + div {
    display: block !important;
  }
}

@media (min-width: 1280px) {
  .brand-service-line {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20 {
    height: auto;
    min-height: 5.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .min-h-screen.flex.flex-col.bg-warm-50
    > .max-w-7xl.mx-auto.px-4
    > .flex.items-center.justify-between.h-20
    > .flex-shrink-0:first-child {
    max-width: calc(100% - 3.5rem);
  }

  .brand-service-line {
    max-width: 100%;
    font-size: 0.7rem;
  }

  .brand-link-with-logo {
    gap: 0.5rem;
  }

  .brand-logo-mark {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (max-width: 639px) {
  .homepage-calendly-panel {
    align-items: stretch;
  }

  .homepage-calendly-cta {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    text-align: center;
  }
}
