.townsend-state-page,
.townsend-states-archive {
  --tst-blue: #005596;
  --tst-navy: #0c395d;
  --tst-ink: #4e4f53;
  --tst-pale-blue: #e8f3fa;
  --tst-light: #f6f7f8;
  color: var(--tst-ink);
  overflow: hidden;
}

.townsend-state-page *,
.townsend-states-archive * {
  box-sizing: border-box;
}

.townsend-state-container {
  width: min(1220px, calc(100% - clamp(32px, 4vw, 48px)));
  margin-inline: auto;
}

.townsend-state-page h1,
.townsend-state-page h2,
.townsend-state-page h3,
.townsend-states-archive h1,
.townsend-states-archive h2 {
  font-family: "Nunito Sans", sans-serif;
}

.townsend-state-page h2 {
  margin: 0;
  color: var(--tst-blue);
  font-size: clamp(34px, 2.37vw, 48px);
  font-weight: 500;
  line-height: clamp(44px, 2.86vw, 58px);
  text-align: center;
}

.townsend-state-hero {
  min-height: 545px;
  padding: 70px 0 90px;
  background-color: var(--tst-navy);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
}

.townsend-state-hero__inner {
  max-width: 1140px;
  position: relative;
  z-index: 1;
}

.townsend-state-hero h1 {
  max-width: 1140px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(42px, 3.94vw, 80px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: clamp(52px, 4.92vw, 100px);
}

.townsend-state-hero__copy {
  max-width: 736px;
  margin: 0 auto;
  font-size: clamp(16px, 0.99vw, 20px);
  line-height: clamp(24px, 1.38vw, 28px);
}

.townsend-state-hero__copy p,
.townsend-state-intro p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.townsend-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 65px;
}

.townsend-state-button {
  align-items: center;
  border: 1px solid #fff;
  border-radius: 999px;
  display: inline-flex;
  font-size: clamp(13px, 0.79vw, 16px);
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 8px 30px;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.townsend-state-button:hover,
.townsend-state-button:focus-visible {
  transform: translateY(-2px);
}

.townsend-state-button--light {
  background: #fff;
  color: var(--tst-blue);
}

.townsend-state-button--light:hover,
.townsend-state-button--light:focus-visible {
  background: var(--tst-pale-blue);
  color: var(--tst-navy);
}

.townsend-state-button--outline {
  background: transparent;
  color: #fff;
}

.townsend-state-button--outline:hover,
.townsend-state-button--outline:focus-visible {
  background: #fff;
  color: var(--tst-blue);
}

.townsend-state-ribbon {
  width: max-content;
  min-width: 578px;
  max-width: 100%;
  height: 92px;
  padding: 30px clamp(20px, calc(15.89px + 1.284vw), 42px) 0;
  background: transparent;
  bottom: -46px;
  font-size: clamp(1rem, calc(15.05px + 0.243vw), 1.25rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: clamp(-2.2px, calc(2.143vw - 9.06px), 0px);
  left: 50%;
  line-height: 28px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.townsend-state-ribbon::before {
  position: absolute;
  z-index: -1;
  top: 22px;
  right: 0;
  left: 0;
  height: 46px;
  background: var(--tst-blue);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  content: "";
}

.townsend-state-section {
  padding: clamp(72px, 5vw, 100px) 0;
}

.townsend-state-intro {
  max-width: 642px;
  margin: 28px auto 0;
  font-size: clamp(16px, 0.99vw, 20px);
  line-height: clamp(24px, 1.48vw, 30px);
  text-align: center;
}

.townsend-state-grid {
  display: grid;
  margin-top: clamp(42px, 2.9vw, 59px);
}

.townsend-state-grid--services {
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.townsend-state-feature-card {
  color: var(--tst-ink);
  display: block;
  min-height: 417px;
}

.townsend-state-feature-card__image,
.townsend-state-issue-card__image,
.townsend-states-archive-card__image {
  background: linear-gradient(135deg, var(--tst-pale-blue), #c5dbe9);
  overflow: hidden;
}

.townsend-state-feature-card__image {
  aspect-ratio: 389.29 / 313;
  border-radius: 12px;
}

.townsend-state-feature-card__image img,
.townsend-state-issue-card__image img,
.townsend-states-archive-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

a.townsend-state-feature-card:hover img,
a.townsend-state-feature-card:focus-visible img,
a.townsend-state-issue-card:hover img,
a.townsend-state-issue-card:focus-visible img,
.townsend-states-archive-card a:hover img,
.townsend-states-archive-card a:focus-visible img {
  transform: scale(1.035);
}

.townsend-state-feature-card h3 {
  margin: 22px 0 4px;
  color: var(--tst-blue);
  font-size: clamp(24px, 1.48vw, 30px);
  font-weight: 700;
  line-height: clamp(30px, 1.77vw, 36px);
}

.townsend-state-feature-card > span {
  color: var(--tst-blue);
  font-size: clamp(15px, 0.89vw, 18px);
  font-weight: 600;
  line-height: clamp(24px, 1.38vw, 28px);
  text-transform: uppercase;
}

.townsend-state-legacy {
  width: calc(100% + clamp(38px, 2.66vw, 54px));
  min-height: clamp(560px, 34.13vw, 694px);
  margin-left: max(-56px, -2.75vw);
  padding: clamp(70px, 3.79vw, 77px) 0 58px;
  background-color: var(--tst-blue);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  border-radius: 50% 50% 0 0 / 43% 43% 0 0;
  text-align: center;
}

.townsend-state-legacy h2 {
  color: #fff;
}

.townsend-state-eyebrow {
  margin: 14px 0 0;
  font-size: clamp(17px, 0.99vw, 20px);
  font-weight: 700;
  line-height: 28px;
}

.townsend-state-stats {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  justify-content: space-between;
  margin: clamp(60px, 4.23vw, 86px) auto 54px;
  max-width: 1000px;
}

.townsend-state-stat__icon {
  height: 105px;
  margin-bottom: 23px;
}

.townsend-state-stat__icon img {
  height: 100%;
  object-fit: contain;
  width: auto;
}

.townsend-state-stat strong {
  display: block;
  color: #fff;
  font-size: clamp(48px, 3.05vw, 62px);
  font-weight: 400;
  line-height: clamp(58px, 3.54vw, 72px);
}

.townsend-state-stat strong span {
  color: #79bde9;
}

.townsend-state-stat__label {
  margin-top: 0;
  font-size: clamp(14px, 0.89vw, 18px);
  line-height: clamp(20px, 1.28vw, 26px);
}

.townsend-state-legacy > .townsend-state-container > .townsend-state-button {
  width: 217px;
  min-height: 46px;
}

.townsend-state-issues {
  background: linear-gradient(180deg, #eceff1 0%, #fff 100%);
  min-height: clamp(720px, 46.73vw, 950px);
  padding-bottom: 96px;
  padding-top: clamp(76px, 4.92vw, 100px);
}

.townsend-state-grid--issues {
  column-gap: 21.7px;
  grid-template-columns: repeat(3, minmax(0, 389.29px));
  justify-content: center;
  row-gap: 60px;
  margin-top: clamp(42px, 2.41vw, 49px);
}

.townsend-state-issue-card {
  color: var(--tst-blue);
  display: block;
  text-align: left;
}

.townsend-state-issue-card__image {
  aspect-ratio: 389.29 / 220;
  border-radius: 12px;
}

.townsend-state-issue-card h3 {
  margin: 16px 0 0;
  color: var(--tst-blue);
  font-size: clamp(17px, 0.99vw, 20px);
  font-weight: 700;
  line-height: clamp(22px, 1.18vw, 24px);
}

.townsend-state-insights {
  background: var(--tst-light);
  min-height: clamp(430px, 24.99vw, 508px);
  padding-bottom: 80px;
  padding-top: clamp(76px, 4.92vw, 100px);
}

.townsend-state-insights .townsend-state-intro {
  margin-top: 16px;
  line-height: 28px;
}

.townsend-state-insight-list {
  display: grid;
  grid-template-columns: 179px 179px 169px;
  justify-content: space-between;
  margin: clamp(72px, 5.85vw, 119px) auto 0;
  max-width: 970px;
}

.townsend-state-insight-card {
  align-items: center;
  color: var(--tst-ink);
  display: block;
  min-height: 65px;
  padding: 0;
  text-align: center;
}

.townsend-state-insight-card strong {
  color: var(--tst-blue);
  font-size: clamp(15px, 0.89vw, 18px);
  line-height: 28px;
}

.townsend-state-insight-card h3 {
  display: none;
}

.townsend-state-insight-card > span {
  color: var(--tst-blue);
  display: block;
  margin-top: 9px;
  font-size: clamp(14px, 0.79vw, 16px);
  font-weight: 600;
  line-height: 28px;
  text-transform: uppercase;
}

.townsend-state-insight-card:nth-child(-n + 2) {
  padding-top: 7px;
}

.townsend-state-cta {
  min-height: clamp(400px, 26.07vw, 530px);
  padding: 70px 0;
  background: var(--tst-blue);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.townsend-state-cta__inner {
  align-items: center;
  display: flex;
  min-height: clamp(260px, 19.18vw, 390px);
  justify-content: center;
}

.townsend-state-cta h2 {
  max-width: 800px;
  margin: 0 auto 28px;
  color: #fff;
  font-size: clamp(42px, 3.05vw, 62px);
  font-weight: 700;
  line-height: clamp(52px, 3.54vw, 72px);
  text-align: center;
}

.townsend-state-cta__inner > div {
  text-align: center;
}

.townsend-state-cta .townsend-state-button {
  min-width: clamp(240px, 16vw, 325px);
}

.townsend-states-archive__header {
  padding: 100px 0;
  background: linear-gradient(120deg, var(--tst-navy), var(--tst-blue));
  color: #fff;
  text-align: center;
}

.townsend-states-archive__header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 800;
}

.townsend-states-archive__header div div {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 19px;
}

.townsend-states-archive__content {
  padding: 90px 0 110px;
}

.townsend-states-archive__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.townsend-states-archive-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(12, 57, 93, 0.13);
  overflow: hidden;
}

.townsend-states-archive-card > a {
  color: var(--tst-ink);
  display: block;
  height: 100%;
}

.townsend-states-archive-card__image {
  aspect-ratio: 1.55;
}

.townsend-states-archive-card__body {
  padding: 26px;
}

.townsend-states-archive-card h2 {
  margin: 0 0 12px;
  color: var(--tst-blue);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.townsend-states-archive-card__body div {
  font-size: 16px;
  line-height: 1.55;
}

.townsend-states-archive-card__body div p {
  margin: 0 0 16px;
}

.townsend-states-archive-card__body > span {
  color: var(--tst-blue);
  font-weight: 800;
  text-transform: uppercase;
}

.townsend-states-archive .navigation.pagination {
  margin-top: 60px;
  text-align: center;
}

.townsend-states-archive__empty {
  font-size: 20px;
  text-align: center;
}

.townsend-state-page a:focus-visible,
.townsend-states-archive a:focus-visible {
  outline: 3px solid #79bde9;
  outline-offset: 4px;
}

@media (min-width: 1280px) {
  .townsend-state-hero {
    display: block;
  }

  .townsend-state-hero__inner {
    position: absolute;
    top: 252px;
    left: 50%;
    transform: translateX(-50%);
  }

  .townsend-state-services {
    height: 837px;
    padding: 107px 0 0;
  }

  .townsend-state-hero .townsend-state-button {
    width: 346px;
    height: 46px;
  }

  .townsend-state-legacy {
    height: 694px;
    min-height: 694px;
  }

  .townsend-state-legacy > .townsend-state-container {
    left: clamp(18px, 1.33vw, 27px);
    position: relative;
  }

  .townsend-state-stats {
    left: 7px;
    position: relative;
  }

  body.single-state .site-footer {
    display: flow-root;
  }

  .townsend-state-issues {
    height: 950px;
    min-height: 950px;
  }

  .townsend-state-insights {
    height: 508px;
    min-height: 508px;
  }

  .townsend-state-cta {
    height: 530px;
    min-height: 530px;
  }
}

@media (min-width: 992px) {
  .townsend-state-hero {
    height: 769px;
    min-height: 769px;
  }

  body.single-state {
    padding-top: 0;
  }

  body.single-state .site-header:not(.fixed) {
    background: transparent;
    box-shadow: none;
  }

  body.single-state .site-header:not(.fixed) .white-logo {
    display: block;
  }

  body.single-state .site-header:not(.fixed) .main-logo {
    display: none;
  }

  body.single-state .site-header:not(.fixed) .main-navigation ul.menu > li > a {
    color: #fff;
  }

  body.single-state .site-header:not(.fixed) .main-navigation ul.menu li.contact-btn a {
    background: #fff;
    color: var(--tst-blue);
  }
}

@media (max-width: 1279px) {
  .townsend-state-grid--issues {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .townsend-state-grid--services,
  .townsend-state-grid--issues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .townsend-state-feature-card:last-child:nth-child(odd) {
    width: calc(50% - 13px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .townsend-state-issue-card:last-child:nth-child(odd) {
    width: calc(50% - 10.85px);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 991px) {
  .townsend-states-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .townsend-state-legacy {
    width: 100%;
    margin-left: 0;
    border-radius: 50% 50% 0 0 / 10% 10% 0 0;
  }
}

@media (max-width: 899px) {
  .townsend-state-stats {
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

  .townsend-state-stat:last-child:nth-child(odd) {
    width: calc(50% - 16px);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .townsend-state-container {
    width: min(100% - 32px, 1220px);
  }

  .townsend-state-hero {
    min-height: 520px;
    padding: 80px 0 110px;
  }

  .townsend-state-ribbon {
    width: max-content;
    min-width: 0;
    white-space: nowrap;
  }

  .townsend-state-section,
  .townsend-state-legacy,
  .townsend-state-cta,
  .townsend-states-archive__content {
    padding-bottom: 70px;
    padding-top: 70px;
  }

  .townsend-state-cta__inner {
    flex-direction: column;
    gap: 35px;
    text-align: center;
  }

  .townsend-state-cta h2 {
    text-align: center;
  }
}

@media (max-width: 699px) {
  .townsend-state-grid--services,
  .townsend-state-grid--issues,
  .townsend-states-archive__grid,
  .townsend-state-insight-list {
    grid-template-columns: 1fr;
  }

  .townsend-state-grid--issues {
    justify-items: center;
  }

  .townsend-state-issue-card {
    width: min(100%, 389px);
  }

  .townsend-state-feature-card:last-child:nth-child(odd),
  .townsend-state-issue-card:last-child:nth-child(odd) {
    width: min(100%, 389px);
    grid-column: auto;
  }

  .townsend-state-insight-list {
    gap: 30px;
    margin-top: 45px;
  }
}

@media (max-width: 519px) {
  .townsend-state-stats {
    grid-template-columns: 1fr;
  }

  .townsend-state-stat:last-child:nth-child(odd) {
    width: auto;
    grid-column: auto;
    justify-self: stretch;
  }

  .townsend-state-grid--issues {
    grid-template-columns: 1fr;
  }

  .townsend-state-issue-card {
    margin-inline: auto;
    max-width: 389px;
  }

  .townsend-state-button {
    width: 100%;
  }

  .townsend-state-legacy .townsend-state-button {
    width: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .townsend-state-page *,
  .townsend-states-archive * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
