/*-- -------------------------- -->
<---     Shared Homepage UI     -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  .hp-section {
    padding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
    position: relative;
    z-index: 1;
  }
  .hp-shell {
    width: 100%;
    max-width: 80rem;
    margin: auto;
  }
  .hp-head {
    max-width: 46rem;
    margin: 0 0 clamp(2.25rem, 5vw, 3.25rem);
  }
  .hp-topper {
    font-size: var(--topperFontSize);
    font-weight: 700;
    line-height: 1.2em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.625rem;
    color: var(--primary);
    display: block;
  }
  .hp-h2 {
    /* 30px - 44px */
    font-size: clamp(1.875rem, 3.7vw, 2.75rem);
    font-weight: 900;
    line-height: 1.14em;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--headerColor);
  }
  .hp-sub {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.65em;
    max-width: 42rem;
    margin: 1.5rem 0 0;
    color: var(--bodyTextColor);
  }
  .hp-btn {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1em;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    min-height: 3.375rem;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    padding: 0 1.75rem;
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 0.625rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  }
  .hp-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
  }
  .hp-btn.hp-btn-ghost {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--hpBorder);
  }
  .hp-btn.hp-btn-ghost:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }
  .hp-link {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s, color 0.3s;
  }
  .hp-link:hover {
    gap: 0.875rem;
    color: var(--secondary);
  }
  .hp-link svg,
  .hp-btn svg {
    width: 1.0625rem;
    height: 1.0625rem;
    display: block;
    flex: 0 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-section *,
  .hp-section *:before,
  .hp-section *:after {
    transition: none !important;
  }
}

/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #services-home {
    background-color: #fff;
  }
  #services-home .hp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
  }
  #services-home .hp-card {
    padding: clamp(1.5rem, 3vw, 2rem);
    background-color: #fff;
    border: 1px solid var(--hpBorder);
    border-radius: var(--hpRadius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  }
  #services-home .hp-card:hover {
    border-color: rgba(14, 124, 123, 0.35);
    box-shadow: 0 1rem 2.25rem rgba(12, 34, 51, 0.09);
    transform: translateY(-0.25rem);
  }
  #services-home .hp-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(14, 124, 123, 0.09);
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #services-home .hp-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
  }
  #services-home h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3em;
    margin: 0;
    color: var(--headerColor);
  }
  #services-home p {
    font-size: 1rem;
    line-height: 1.6em;
    margin: 0;
    color: var(--bodyTextColor);
  }
}
@media only screen and (min-width: 48rem) {
  #services-home .hp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 64rem) {
  #services-home .hp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---     Featured Spotlight     -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #spotlight {
    background-color: var(--hpSurface);
    overflow: hidden;
  }
  #spotlight .hp-shell {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  #spotlight .hp-media {
    width: 100%;
    position: relative;
    padding-bottom: 3.5rem;
  }
  #spotlight .hp-picture {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hpRadius);
    overflow: hidden;
    display: block;
    position: relative;
  }
  #spotlight .hp-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  #spotlight .hp-badge {
    max-width: 21rem;
    /* prevents padding from affecting width */
    box-sizing: border-box;
    padding: clamp(1.125rem, 2.5vw, 1.5rem);
    background-color: #fff;
    border-radius: var(--hpRadius);
    box-shadow: 0 1rem 2.5rem rgba(12, 34, 51, 0.14);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 1.25rem;
    bottom: 0;
  }
  #spotlight .hp-badge-num {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 900;
    line-height: 1em;
    color: var(--hpAccent);
  }
  #spotlight .hp-badge strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3em;
    color: var(--headerColor);
    display: block;
  }
  #spotlight .hp-badge span {
    font-size: 0.875rem;
    line-height: 1.45em;
    color: var(--bodyTextColor);
    display: block;
  }
  #spotlight .hp-place {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0.75rem 0 0;
    color: var(--bodyTextColor);
    display: flex;
    align-items: center;
    gap: 0.4375rem;
  }
  #spotlight .hp-place svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    display: block;
  }
  #spotlight blockquote {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.7em;
    margin: 1.5rem 0 0;
    padding: 0 0 0 1.25rem;
    color: var(--bodyTextColor);
    border-left: 0.1875rem solid var(--hpAccent);
  }
  #spotlight .hp-chips {
    margin: 1.75rem 0 2rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  #spotlight .hp-chips li {
    font-size: 0.875rem;
    font-weight: 700;
    list-style: none;
    padding: 0.5rem 0.875rem;
    background-color: #fff;
    color: var(--primary);
    border: 1px solid var(--hpBorder);
    border-radius: 6.25rem;
  }
}
@media only screen and (min-width: 64rem) {
  #spotlight .hp-shell {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
  #spotlight .hp-media {
    order: -1;
  }
}

/*-- -------------------------- -->
<---    Featured Businesses     -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #directory {
    background-color: #fff;
  }
  #directory .hp-head {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  #directory .hp-head-text {
    max-width: 46rem;
  }
  #directory .hp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
  }
  #directory .hp-biz {
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--hpBorder);
    border-radius: var(--hpRadius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  }
  #directory .hp-biz:hover {
    border-color: rgba(14, 124, 123, 0.35);
    box-shadow: 0 1rem 2.25rem rgba(12, 34, 51, 0.1);
    transform: translateY(-0.25rem);
  }
  #directory .hp-logo {
    height: 9.5rem;
    padding: 1.5rem;
    background-color: var(--hpSurface);
    border-bottom: 1px solid var(--hpBorder);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #directory .hp-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
  #directory .hp-biz-body {
    flex: 1;
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  #directory .hp-biz h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35em;
    margin: 0;
    color: var(--headerColor);
  }
  #directory .hp-biz-cat {
    font-size: 0.9375rem;
    line-height: 1.55em;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #directory .hp-biz-foot {
    width: 100%;
    /* pins the footer to the bottom so cards in a row line up */
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--hpBorder);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  #directory .hp-loc {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    background-color: rgba(14, 124, 123, 0.09);
    color: var(--primary);
    border-radius: 6.25rem;
  }
  #directory .hp-view {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
  }
  #directory .hp-view svg {
    width: 1rem;
    height: 1rem;
    display: block;
    transition: transform 0.3s;
  }
  #directory .hp-biz:hover .hp-view svg {
    transform: translateX(0.25rem);
  }
}
@media only screen and (min-width: 48rem) {
  #directory .hp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #directory .hp-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
@media only screen and (min-width: 64rem) {
  #directory .hp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---       Browse by State      -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #states-home {
    background-color: var(--hpInk);
  }
  #states-home .hp-topper {
    color: var(--hpAccent);
  }
  #states-home .hp-h2 {
    color: #fff;
  }
  #states-home .hp-sub {
    color: rgba(255, 255, 255, 0.72);
  }
  #states-home .hp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.25rem);
  }
  #states-home .hp-state {
    padding: clamp(1.25rem, 2.5vw, 1.625rem);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--hpRadius);
    transition: background-color 0.3s, border-color 0.3s;
  }
  #states-home .hp-state:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(242, 166, 90, 0.45);
  }
  #states-home .hp-state h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2em;
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }
  #states-home .hp-state ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  #states-home .hp-state li {
    list-style: none;
  }
  #states-home .hp-state a {
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.4375rem 0;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
  }
  #states-home .hp-state a:hover {
    color: var(--hpAccent);
  }
  #states-home .hp-count {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.42);
    flex: 0 0 auto;
  }
  #states-home .hp-state-cta {
    margin: clamp(2.25rem, 5vw, 3rem) 0 0;
    display: flex;
    justify-content: center;
  }
  #states-home .hp-btn {
    background-color: var(--hpAccent);
    color: var(--hpInk);
    border-color: var(--hpAccent);
  }
  #states-home .hp-btn:hover {
    background-color: #fff;
    color: var(--hpInk);
    border-color: #fff;
  }
}
@media only screen and (min-width: 48rem) {
  #states-home .hp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 64rem) {
  #states-home .hp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (min-width: 81.25rem) {
  #states-home .hp-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/*-- -------------------------- -->
<---         Get Listed         -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #steps-home {
    background-color: var(--hpSurface);
  }
  #steps-home .hp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
  }
  #steps-home .hp-step {
    padding: clamp(1.5rem, 3vw, 2rem);
    background-color: #fff;
    border: 1px solid var(--hpBorder);
    border-radius: var(--hpRadius);
    position: relative;
  }
  #steps-home .hp-step-num {
    font-size: 0.875rem;
    font-weight: 900;
    line-height: 1em;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0 1.125rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 6.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #steps-home .hp-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3em;
    margin: 0 0 0.625rem;
    color: var(--headerColor);
  }
  #steps-home .hp-step p {
    font-size: 1rem;
    line-height: 1.6em;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #steps-home .hp-step-cta {
    margin: clamp(2.25rem, 5vw, 3rem) 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
}
@media only screen and (min-width: 64rem) {
  #steps-home .hp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---           Blog             -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #blog-home {
    background-color: #fff;
  }
  #blog-home .hp-head {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  #blog-home .hp-head-text {
    max-width: 46rem;
  }
  #blog-home .hp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
  }
  #blog-home .hp-post {
    text-decoration: none;
    border-radius: var(--hpRadius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  #blog-home .hp-post-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: var(--hpSurface);
    border-radius: var(--hpRadius);
    overflow: hidden;
    display: block;
    position: relative;
  }
  #blog-home .hp-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
  }
  #blog-home .hp-post:hover .hp-post-img img {
    transform: scale(1.06);
  }
  #blog-home .hp-post h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35em;
    margin: 1.25rem 0 0.625rem;
    color: var(--headerColor);
    transition: color 0.3s;
  }
  #blog-home .hp-post:hover h3 {
    color: var(--primary);
  }
  #blog-home .hp-post p {
    font-size: 1rem;
    line-height: 1.6em;
    margin: 0 0 1rem;
    color: var(--bodyTextColor);
  }
  #blog-home .hp-post .hp-view {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-top: auto;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
  }
  #blog-home .hp-post .hp-view svg {
    width: 1rem;
    height: 1rem;
    display: block;
    transition: transform 0.3s;
  }
  #blog-home .hp-post:hover .hp-view svg {
    transform: translateX(0.25rem);
  }
}
@media only screen and (min-width: 48rem) {
  #blog-home .hp-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  #blog-home .hp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-- -------------------------- -->
<---          Dark Mode         -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  body.dark-mode #services-home,
  body.dark-mode #directory,
  body.dark-mode #blog-home {
    background-color: var(--dark);
  }
  body.dark-mode #spotlight,
  body.dark-mode #steps-home {
    background-color: var(--medium);
  }
  body.dark-mode .hp-h2,
  body.dark-mode #services-home h3,
  body.dark-mode #directory .hp-biz h3,
  body.dark-mode #steps-home .hp-step h3,
  body.dark-mode #blog-home .hp-post h3,
  body.dark-mode #spotlight .hp-badge strong {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode .hp-sub,
  body.dark-mode #services-home p,
  body.dark-mode #directory .hp-biz-cat,
  body.dark-mode #steps-home .hp-step p,
  body.dark-mode #blog-home .hp-post p,
  body.dark-mode #spotlight blockquote,
  body.dark-mode #spotlight .hp-place,
  body.dark-mode #spotlight .hp-badge span {
    color: var(--bodyTextColorWhite);
    opacity: 0.8;
  }
  body.dark-mode #services-home .hp-card,
  body.dark-mode #directory .hp-biz,
  body.dark-mode #steps-home .hp-step,
  body.dark-mode #spotlight .hp-badge,
  body.dark-mode #spotlight .hp-chips li {
    background-color: var(--medium);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/*-- -------------------------- -->
<---   Intro copy under hero    -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  .city-intro {
    background-color: #fff;
    padding: clamp(2rem, 4vw, 3rem) 1rem;
    border-bottom: 1px solid var(--hpBorder);
  }
  .city-intro-inner {
    max-width: 52rem;
    margin: auto;
    text-align: center;
  }
  .city-intro-inner p {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.0625rem);
    line-height: 1.7em;
    color: var(--bodyTextColor);
  }
  .city-intro-inner a {
    color: var(--primary);
    font-weight: 700;
  }
}

/*-- -------------------------- -->
<---        Homepage FAQ        -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #faq-home {
    background-color: var(--hpSurface);
  }
  #faq-home .cs-faq-group {
    padding: 0;
    margin: 0;
    max-width: 52rem;
    list-style: none;
  }
  #faq-home .cs-faq-item {
    list-style: none;
    background-color: #fff;
    border: 1px solid var(--hpBorder);
    border-radius: var(--hpRadius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
  }
  #faq-home .cs-faq-item.active {
    border-color: rgba(14, 124, 123, 0.35);
  }
  #faq-home .cs-button {
    /* the whole row is the control */
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1.375rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    position: relative;
    display: block;
    font-family: inherit;
  }
  #faq-home .cs-button-text {
    font-size: clamp(1rem, 1.6vw, 1.0625rem);
    font-weight: 700;
    line-height: 1.4em;
    color: var(--headerColor);
  }
  #faq-home .cs-button:before,
  #faq-home .cs-button:after {
    /* the plus that turns into a minus */
    content: "";
    background-color: var(--primary);
    position: absolute;
    right: 1.375rem;
    top: 50%;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
  }
  #faq-home .cs-button:before {
    width: 0.75rem;
    height: 2px;
    transform: translateY(-50%);
  }
  #faq-home .cs-button:after {
    width: 2px;
    height: 0.75rem;
    transform: translate(-0.3125rem, -50%);
  }
  #faq-home .cs-faq-item.active .cs-button:after {
    opacity: 0;
  }
  #faq-home .cs-item-p {
    margin: 0;
    padding: 0 1.375rem;
    max-height: 0;
    opacity: 0;
    font-size: 1rem;
    line-height: 1.7em;
    color: var(--bodyTextColor);
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s, padding-bottom 0.3s;
  }
  #faq-home .cs-faq-item.active .cs-item-p {
    max-height: 25rem;
    opacity: 1;
    padding-bottom: 1.375rem;
  }
}

/* The featured-practice cards carry a premises photo, not a logo, so it fills
   the frame instead of sitting boxed in the middle of it. */
#directory .hp-logo.hp-photo {
  padding: 0;
  overflow: hidden;
}
#directory .hp-logo.hp-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transition: transform 0.4s ease;
}
#directory .hp-biz:hover .hp-logo.hp-photo img {
  transform: scale(1.04);
}
