@media (width <= 1280px) {
  .hero-copy {
    width: 52%;
  }

  .hero-search {
    width: 66%;
  }

  .provider-grid,
  .service-grid,
  .location-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .home-trending-grid .category-card {
    min-height: 139px;
  }

  .listing-search {
    width: 58%;
  }

  .listing-layout {
    grid-template-columns: 28fr 72fr;
  }

  .profile-layout {
    grid-template-columns: 62fr 38fr;
    gap: 32px;
  }

  .contact-hero p {
    width: 55%;
  }

  .faq-list {
    width: 76%;
  }

  .footer-main {
    grid-template-columns: 1.6fr 0.8fr 1fr;
  }

  .social-column {
    grid-column: 2 / 4;
  }
}

@media (width <= 1024px) {
  .custom-container {
    --container-pad: clamp(18px, 4vw, 42px);
  }

  .header-btn,
  .icon-btn {
    display: none;
  }

  .icon-btn[data-cityhub-modal-open] {
    display: inline-grid;
  }

  .menu-btn {
    display: inline-grid;
  }

  .hero-banner {
    background-position: 58% center;
  }

  .hero-copy,
  .hero-search {
    width: 72%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .provider-grid,
  .service-grid,
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .home-trending-grid .category-card {
    min-height: 132px;
  }

  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

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

  .profile-layout,
  .reviews-heading {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .faq-list {
    width: 100%;
  }

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

  .social-column {
    grid-column: auto;
  }
}

@media (width <= 768px) {
  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: 100%;
    left: var(--container-pad);
    right: var(--container-pad);
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 14px;
    border-top: 1px solid rgba(12, 14, 18, 0.08);
    padding: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
  }

  .main-nav.is-open .mobile-account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .main-nav.is-open .mobile-account-link i {
    color: var(--pink);
    font-size: 18px;
  }

  .hero-banner {
    padding-block: clamp(76px, 28vw, 130px);
    background-position: 62% center;
  }

  .hero-copy,
  .hero-search,
  .listing-search {
    width: 100%;
  }

  .hero-copy p {
    margin-top: 24px;
  }

  .hero-search {
    flex-direction: column;
  }

  .city-select {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 12px;
  }

  .search-input {
    padding-block: 12px;
  }

  .search-btn {
    width: 100%;
  }

  .provider-grid,
  .service-grid,
  .location-grid,
  .category-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .category-card span {
    font-size: 22px;
  }

  .category-card small,
  .category-card strong {
    font-size: 15px;
  }

  .listing-hero,
  .details-hero,
  .contact-hero,
  .cityhub-error-hero {
    padding-block: 38px;
    background-position: 60% center;
  }

  .details-hero {
    background-position: 62% center;
  }

  .contact-hero p {
    width: 100%;
  }

  .profile-hero-row {
    align-items: start;
    flex-direction: column;
  }

  .profile-meta {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .thumb-row button {
    flex-basis: calc((100% - 28px) / 3);
  }

  .review-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-column {
    border-left: 0;
    padding-left: 0;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card .gform_wrapper .gform_fields {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .contact-form-card .gform_wrapper .gform_fields .gfield,
  .contact-form-card .gform_wrapper .gform_fields .gfield--width-half,
  .contact-form-card .gform_wrapper .gform_fields .gfield--width-third,
  .contact-form-card .gform_wrapper .gform_fields .gfield--width-quarter,
  .contact-form-card .gform_wrapper .gform_fields .gfield--width-five-twelfths,
  .contact-form-card .gform_wrapper .gform_fields .gfield--width-seven-twelfths,
  .contact-form-card .gform_wrapper .gform_fields .gfield--width-eleven-twelfths,
  .contact-form-card .gform_wrapper .gform_fields .gf_left_half,
  .contact-form-card .gform_wrapper .gform_fields .gf_right_half,
  .contact-form-card .gform_wrapper .gform_fields .gf_left_third,
  .contact-form-card .gform_wrapper .gform_fields .gf_middle_third,
  .contact-form-card .gform_wrapper .gform_fields .gf_right_third {
    grid-column: 1 / -1;
  }

  .contact-form-card {
    padding: 22px;
  }

  .contact-form-card h2 {
    margin-bottom: 22px;
    font-size: 36px;
    line-height: 1.08;
  }

  .faq-item button {
    align-items: start;
    font-size: 18px;
    padding: 20px;
  }

  .faq-item p {
    padding: 0 20px 22px;
  }
}

@media (width <= 575px) {
  .site-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section-heading .site-btn {
    width: auto;
  }

  .verified-pill {
    font-size: 14px;
  }

  .provider-title-row h3,
  .service-body h3 {
    font-size: 18px;
  }

  .listing-provider-card .provider-media {
    aspect-ratio: 2 / 1;
  }

  .footer-cities ul {
    grid-template-columns: 1fr;
  }

  .other-provider-grid {
    grid-template-columns: 1fr;
  }

  .slider-actions {
    width: 100%;
    justify-content: end;
  }
}

@media (width <= 390px) {
  .brand-logo {
    font-size: 13px;
  }

  .brand-logo-image {
    max-width: 156px;
  }

  .section-heading .site-btn {
    width: 100%;
  }

  .location-overlay h3 {
    font-size: 21px;
  }
}
