@import url("reset.css");

@import url("https://fonts.googleapis.com/css2?family=Forum&display=swap");

/* ************COMMON************ */

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 2.25rem;
  display: inline-block;
}

.logo img {
  height: auto;
  max-height: 2.5rem;
  width: auto;
  display: block;
}

body {
  font-family: "Forum", serif;
  font-size: 1.225rem;
  color: #303a4d;
  padding-top: 5.75rem; /* Account for fixed header */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ************TYPOGRAPHY SYSTEM************ */
/* Consistent font size scale across the site */

/* Base paragraph text */
p {
  font-size: 1.225rem;
  line-height: 1.5;
}

/* H1 - Hero titles (largest) */
h1,
.main__title {
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* H2 - Section titles */
h2,
.title,
.provider__section-title,
.locations__title,
.outro__title,
.team__title,
.contact__title,
.about__title,
.testimonial__title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Card titles - match provider card names exactly */
.services-page__title,
.item-team__name,
.locations__address-title {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
  max-width: 169px;
}

/* H3 - Subsection titles */
h3,
.about__text h3,
.provider__accordion-button,
.item-services__title,
.provider__specialties h3,
.search-result__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

/* H4 - Minor headers */
h4,
.provider__title,
.director__role,
.resources__title,
.connect-contact__label,
.pricing__caption,
.pricing__text,
.item-pricing__button {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Small text / captions */
small,
.caption,
.main__caption,
.item-testimonial__caption,
.item-reviews__geo,
.search-result__external-badge {
  font-size: 0.875rem;
  line-height: 1.4;
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

/* ************CARD & GRID SYSTEM - STANDARD BASE************ */
/* 
 * This section defines the standard card and grid structure used across the site.
 * All card types (provider, service, review, location, etc.) inherit from these base classes.
 * To modify the standard look and behavior, update these base classes.
 * For one-off customizations, override specific classes below.
 */

/* ============================================
   UNIFIED CARD SYSTEM - Consistent Width Management
   ============================================
   
   This system ensures cards maintain consistent width across all breakpoints,
   preventing awkward stretching during responsive transitions.
   
   Key Principles:
   1. Cards have fixed max-width based on content (image + padding)
   2. Grid uses auto-fill with minmax() to adapt columns smoothly (4→3→2→1)
   3. Cards center themselves in grid cells via justify-items: center
   4. All card types (team, services, locations, APP, etc.) use the same system
   
   Card Dimensions:
   - All breakpoints: 169px image + 48px padding (1.5rem * 2) = 217px card width
   - Cards maintain consistent 217px width at all screen sizes
   
   Breakpoints:
   - Desktop: 4+ columns (auto-fill adapts)
   - Medium (max-width: 62.6875rem): 2+ columns, maintains 217px card width
   - Mobile (max-width: 530px): 1-2 columns, maintains 217px card width (only columns reduce)
*/

/* Standard Card Container - Grid Layout */
/* Uses auto-fill with fixed minmax to prevent cards from growing and ensure proper column reduction */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  column-gap: 24px;
  row-gap: 96px;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  align-items: start;
  box-sizing: border-box;
  min-width: 0;
}

/* Standard Card Grid Container - Page wrapper */
.card-grid-container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 72.624rem;
  margin: 0 auto;
  padding-left: 0.938rem;
  padding-right: 0.938rem;
  width: 100%;
  box-sizing: border-box;
}

/* Standard Card Item - Grid cell wrapper */
.card-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 217px; /* Fixed card width */
}

/* Standard Card Link/Container - The actual card */
.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 217px; /* Fixed card width - prevents stretching */
  height: auto;
  min-height: 0;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Standard Card Hover State */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Standard Card Image Container */
.card__image {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

/* Standard Card Content Wrapper */
.card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  justify-content: flex-start;
}

/* Standard Card Title - Override default h2/h3 sizes for card titles */
.card__title {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
  max-width: 169px;
}

/* Responsive breakpoints for standard card grid */
@media (max-width: 62.6875rem) {
  /* Medium screens: maintain card width, let auto-fill determine columns */
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
    column-gap: 16px;
    row-gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-grid-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-item {
    max-width: 217px; /* Maintain desktop card width */
  }
  
  .card {
    max-width: 217px; /* Maintain desktop card width */
  }
  
  .card__title {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 530px) {
  /* Mobile: Keep cards at 217px, just reduce columns and adjust spacing */
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
    column-gap: 8px;
    row-gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-grid-container {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-item {
    max-width: 217px; /* Keep desktop card width */
  }
  
  .card {
    max-width: 217px; /* Keep desktop card width */
    box-sizing: border-box;
    min-width: 0;
  }
  
  /* Keep image and title sizes the same */
  .card__title {
    font-size: 1.25rem !important;
  }
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
}

/* Title class inherits from h2 typography system above */

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ************HEADER************ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: nowrap;
  max-width: 74.624rem;
  gap: 0.5rem;
}

.header__logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.header__search {
  flex: 1;
  max-width: 320px;
  margin: 0 1rem;
  position: relative;
  z-index: 2;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid #e1e4eb;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: "Forum", serif;
  color: #303a4d;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #303a4d;
}

.search-button {
  margin-left: 0.5rem;
  padding: 0.625rem 1rem;
  background: #303a4d;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background: #1a1f2e;
}

.search-button svg {
  width: 20px;
  height: 20px;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.menu__link {
  font-weight: 600;
  position: relative;
}

.menu__item {
  position: relative;
}

.menu__item .menu__link {
  position: relative;
  z-index: 1;
  display: block;
}

/* Hide toggle buttons on desktop - hover shows dropdowns */
.menu__toggle {
  display: none;
}

/* Create a bridge to prevent gap between link and dropdown */
.menu__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}

.menu__item:hover::after {
  pointer-events: auto;
}


.menu__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background-color: #fff;
  border: 1px solid #e1e4eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  pointer-events: none;
}

.menu__item:hover .menu__dropdown,
.menu__dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.menu__item:hover .menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__dropdown-section {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e1e4eb;
}

.menu__dropdown-section:last-child {
  border-bottom: none;
}

.menu__dropdown-title {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #666;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.menu__dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #303a4d;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.menu__dropdown-link:hover {
  background-color: #f8f9fa;
  color: #303a4d;
}

/* Services Dropdown - Outline Style */
.menu__dropdown-services {
  min-width: 320px;
  max-width: 500px;
}

.menu__dropdown-category {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e1e4eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.menu__dropdown-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 0 0 auto;
}

.menu__dropdown-category:last-child {
  border-bottom: none;
}

.menu__dropdown-category-title {
  font-weight: 600;
  font-size: 1rem;
  color: #303a4d;
  margin-bottom: 0;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
  flex: 1;
}

.menu__dropdown-category-title:hover {
  color: #666;
}

.menu__dropdown-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 300;
  color: #666;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
}

.menu__dropdown-category-toggle:hover {
  color: #303a4d;
}

.menu__dropdown-category-toggle::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu__dropdown-category.expanded .menu__dropdown-category-toggle::before {
  content: "−";
  transform: translate(-50%, -50%);
}

.menu__dropdown-sublinks {
  padding-left: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  box-sizing: border-box;
}

.menu__dropdown-category.expanded .menu__dropdown-sublinks {
  display: flex;
  max-height: 1000px;
}

.menu__dropdown-sublink {
  display: block;
  padding: 0.5rem 0;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  position: relative;
}

.menu__dropdown-sublink::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: #999;
}

.menu__dropdown-sublink:hover {
  color: #303a4d;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border: 2px solid #303a4d;
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 160px;
}

/* *****************HOME**************** */

.main {
  background: url("../img/spokane aerial.webp") center / cover no-repeat;
  min-height: 100vh;
  height: 100vh;
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  min-height: 100vh;
}

.main_provider-hero .main__container,
.main_service-hero .main__container,
.main_team-hero .main__container,
.main_services-hero .main__container,
.main_search .main__container {
  padding-top: 0 !important;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #fff;
}

/* Main title inherits from h1 typography system above */
.main__title {
  color: #fff;
}

/* Hero section titles - simple, reliable positioning */
.main_services-hero .main__title,
.main_service-hero .main__title,
.main_team-hero .main__title,
.main_provider-hero .main__title,
.main_search .main__title {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #fff;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.main__button-text {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.main__button-text:hover {
  background-color: #1a1f2e;
  color: #fff;
}

.outro_home {
  background: url("../img/home/hero_placeholder.jpg") center / cover no-repeat;
}

/* ************LOCATIONS**************** */

.locations {
  background: url("../img/spokane falls.jpg") center / cover no-repeat;
  position: relative;
}

.locations__container {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 8.75rem 0.938rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Locations title inherits from h2 typography system */
.locations__title {
  text-align: center;
  margin-bottom: 4rem;
  color: #fff;
}

/* Location cards use standard grid - extends .card-grid */
/* Custom: Centers grid when fewer than 4 items */
.locations__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

/* Center locations row when it has fewer than 4 items using :has() selector */
@supports selector(:has(*)) {
  /* When exactly 3 items - center them */
  .locations__row:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }
  
  /* When exactly 2 items - center them */
  .locations__row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }
  
  /* When exactly 1 item - center it */
  .locations__row:has(> :nth-child(1):last-child) {
    grid-template-columns: max-content;
    max-width: fit-content;
    margin: 0 auto;
  }
}

/* Location card - extends standard .card */
/* Custom: White text for homepage readability */
.locations__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 217px; /* Fixed card width - prevents stretching */
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  cursor: pointer;
}

.locations__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.locations__map {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.locations__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.locations__address {
  text-align: center;
}

/* Locations address title matches provider card name */
/* Custom: White text for homepage readability */
.locations__address-title {
  max-width: 169px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
}

.locations__address-text {
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
  color: #fff;
}

/* ************ABOUT**************** */

.main_about {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.about__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.about__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.about__logos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 0 0 33.333%;
  padding-top: 0.5rem;
}

.about__logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.about__content {
  flex: 0 0 66.667%;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About title inherits from h2 typography system */
.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 100%;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

/* About text h3 inherits from h3 typography system */
.about__text h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #303a4d;
}

.about__text ul {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.about__text ul li {
  margin-bottom: 0.75rem;
}

/* Provider page specific styles */
.about__container.provider__container {
  flex-direction: column;
  align-items: stretch;
}

.provider__top-section {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #e1e4eb;
}

.provider__photo-wrapper {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.provider__photo {
  width: 276px;
  height: 307px;
}

.provider__social-icons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e4eb;
  position: relative;
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid #e1e4eb;
  gap: 0.5rem;
  max-width: 276px;
  margin-left: auto;
  margin-right: auto;
}

.provider__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.provider__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #303a4d;
  transition: all 0.3s ease;
  text-decoration: none;
}

.provider__social-icon:hover {
  color: #666;
  transform: translateY(-2px);
}

.provider__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.provider__social-icon:first-child,
.provider__social-icon:nth-child(2) {
  width: 64px;
  height: 64px;
}

.provider__board-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e4eb;
}

.provider__board-logo a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.provider__board-logo a:hover {
  opacity: 0.8;
}

.provider__board-logo img {
  max-width: 180px;
  height: auto;
  width: auto;
}

.provider__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.provider__top-section .about__content {
  flex: 1;
  max-width: none;
}

.provider__top-section .about__text {
  max-width: none;
}

/* Force full width - credentials sections must not be flex children of top-section */
.provider__container .provider__credentials-separator,
.provider__container .provider__credentials-section {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.provider__credentials-separator {
  border-top: 1px solid #e1e4eb;
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding-top: 0;
}

.provider__credentials-section {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  width: 100%;
  border-bottom: 1px solid #e1e4eb;
}

.provider__credentials-section .services-page__row {
  margin-top: 2rem;
  max-width: 100%;
}

/* Manufacturer and Partnership Cards - Match Provider Card Structure */
/* Custom: Centers grid when fewer than 4 items */
.services-page__row-partnerships,
.services-page__row-manufacturers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  column-gap: 24px;
  row-gap: 96px;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  justify-items: center;
}

/* Center manufacturer/partnership grids when they have fewer than 4 items */
@supports selector(:has(*)) {
  /* When exactly 3 items - center them */
  .services-page__row-manufacturers:has(> :nth-child(3):last-child),
  .services-page__row-partnerships:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, max-content);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* When exactly 2 items - center them */
  .services-page__row-manufacturers:has(> :nth-child(2):last-child),
  .services-page__row-partnerships:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, max-content);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* When exactly 1 item - center it */
  .services-page__row-manufacturers:has(> :nth-child(1):last-child),
  .services-page__row-partnerships:has(> :nth-child(1):last-child) {
    grid-template-columns: max-content;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

.provider__credentials-section .services-page__row-partnerships .services-page__item,
.provider__credentials-section .services-page__row-manufacturers .services-page__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 217px; /* Fixed card width */
}

.manufacturer__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 217px; /* Fixed card width - prevents stretching */
  height: auto;
  min-height: 0;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.manufacturer__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.manufacturer__link .services-page__img {
  width: 169px;
  height: 169px;
  margin-bottom: 0;
  flex-shrink: 0;
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.manufacturer__link .services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.manufacturer__img-cochlear {
  width: 169px;
  height: 169px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.manufacturer__img-cochlear img {
  height: 50%;
  width: auto;
  max-width: 50%;
  object-fit: contain;
}

.provider__credentials-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Reviewer attribution - E-E-A-T */
.content-reviewer {
  text-align: center;
  font-size: 0.9375rem;
  color: #666;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.content-reviewer__text {
  margin: 0;
}

.content-reviewer__link {
  color: #303a4d;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.content-reviewer__link:hover {
  color: #1a1f2e;
  border-bottom-color: #303a4d;
}

.internal-linking__specialist-text {
  margin: 0;
  color: #303a4d;
}

/* Related conditions: bullet points, centered */
.internal-linking__related-list {
  list-style: disc !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  margin: 1.5rem auto 0 !important;
  display: inline-block !important;
  text-align: left !important;
}

.internal-linking__related-list li {
  display: list-item !important;
  list-style: disc !important;
  margin-bottom: 0.5rem;
  text-align: left !important;
}

.internal-linking__related-list li::before {
  display: none !important;
}

.page__internal-linking .provider__credentials-separator {
  border-top: 1px solid #e1e4eb;
  margin-top: 0.5rem;
  padding-top: 0;
  width: 100%;
}

.page__internal-linking .provider__credentials-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e1e4eb;
}

.page__internal-linking .provider__credentials-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.partner-link {
  color: #303a4d;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.partner-link:hover {
  color: #1a1f2e;
}

/* Provider section title inherits from h2 typography system */
.provider__section-title {
  margin-bottom: 1.5rem;
  color: #303a4d;
}

/* Provider Accordion Styles */
.provider__accordion {
  width: 100%;
  max-width: 48rem;
  margin: 2rem auto 0;
  text-align: left;
}

.provider__accordion-item {
  width: 100%;
  margin-bottom: 4px;
}

.provider__accordion-item:last-child {
  margin-bottom: 0;
}

/* Provider accordion button inherits from h3 typography system */
.provider__accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #fff;
  border: 2px solid #e1e4eb;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: #303a4d;
  transition: all 0.3s ease;
}

.provider__accordion-button:hover {
  background-color: #f8f9fa;
  border-color: #303a4d;
}

.provider__accordion-button span {
  flex: 1;
}

.provider__accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.provider__accordion-item.active .provider__accordion-icon {
  transform: rotate(180deg);
}

.provider__accordion-item.active .provider__accordion-button {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.provider__accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
  border: 2px solid #e1e4eb;
  border-top: none;
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.provider__accordion-item.active .provider__accordion-content {
  border-bottom: 2px solid #e1e4eb;
}

.provider__accordion-item.active .provider__accordion-content {
  max-height: 1000px;
}

.provider__accordion-inner {
  padding: 1.5rem;
  padding-top: 1.5rem;
}

/* Provider Locations in Accordion - Updated to match standard card system */
/* Custom: Uses standard grid layout and card styling */
/* Custom: Centers grid when fewer than 4 items */
.provider__locations-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  align-items: start;
}

/* Center provider locations row when it has fewer than 4 items */
@supports selector(:has(*)) {
  /* When exactly 3 items - center them */
  .provider__locations-row:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }
  
  /* When exactly 2 items - center them */
  .provider__locations-row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }
  
  /* When exactly 1 item - center it */
  .provider__locations-row:has(> :nth-child(1):last-child) {
    grid-template-columns: max-content;
    max-width: fit-content;
    margin: 0 auto;
  }
}

.provider__location-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.provider__location-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.provider__location-map {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.provider__location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.provider__location-address {
  text-align: center;
  width: 100%;
}

/* Provider location title - matches standard card title */
.provider__location-title {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
  max-width: 169px;
  color: #303a4d;
}

.provider__location-text {
  font-size: 1.225rem;
  line-height: 150%;
  color: #303a4d;
  margin: 0;
  text-align: center;
}

/* Provider Reviews in Accordion */
.provider__reviews {
  max-width: 800px;
  margin: 0 auto;
}

.provider__review-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e1e4eb;
}

.provider__review-item:last-of-type {
  border-bottom: none;
}

.provider__review-rating {
  color: #fbbf24;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.provider__review-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.provider__review-text {
  font-size: 1.125rem;
  line-height: 150%;
  color: #303a4d;
  margin-bottom: 0.75rem;
}

.provider__review-author {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

.provider__reviews-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e4eb;
  text-align: center;
}

.provider__reviews-note {
  font-size: 0.875rem;
  color: #666;
  line-height: 150%;
  margin: 0;
}

.provider__reviews-link {
  color: #303a4d;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.provider__reviews-link:hover {
  color: #666;
}

.provider__centered-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
  display: inline-block;
}

.provider__centered-list:not(.provider__services-list):not(.provider__publications-list):not(.provider__resources-list) {
  display: block !important;
  list-style: disc !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  margin: 0 !important;
  text-align: left !important;
  width: 100%;
}

.provider__centered-list li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.provider__centered-list:not(.provider__services-list):not(.provider__publications-list):not(.provider__resources-list) li {
  display: list-item !important;
  list-style: disc !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  text-align: left !important;
  padding-left: 0.5rem;
  line-height: 1.6;
}

.provider__centered-list.provider__services-list {
  display: block !important;
  list-style: disc !important;
  list-style-type: disc !important;
  padding-left: 2rem !important;
  max-width: 600px;
  margin: 0 !important;
  text-align: left !important;
  width: 100%;
}

.provider__services-list {
  list-style: disc !important;
  list-style-type: disc !important;
  padding-left: 2rem !important;
  display: block !important;
  max-width: 600px;
  margin: 0 !important;
  text-align: left !important;
  width: 100%;
}

.provider__services-list li,
.provider__centered-list.provider__services-list li {
  margin-bottom: 0.75rem;
  display: list-item !important;
  list-style: disc !important;
  list-style-type: disc !important;
}

@media (max-width: 768px) {
  .provider__services-list {
    padding-left: 1.5rem;
  }
}

.provider__centered-list.provider__publications-list {
  display: block !important;
  list-style: disc !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  max-width: 600px;
  margin: 0 !important;
  text-align: left !important;
  width: 100%;
}

.provider__centered-list.provider__publications-list li {
  margin-bottom: 0.75rem;
  display: list-item !important;
  list-style: disc !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  text-align: left !important;
  padding-left: 0.5rem;
  line-height: 1.6;
}

.provider__centered-list.provider__publications-list li a {
  text-align: left !important;
  display: inline;
  line-height: 1.6;
  vertical-align: baseline;
}

@media (max-width: 768px) {
  .provider__centered-list.provider__publications-list {
    padding-left: 1.5rem;
  }
}

.provider__service-link {
  color: #303a4d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.provider__service-link:hover {
  color: #666;
  text-decoration: underline;
}

.provider__resources-list {
  margin-top: 1.5rem;
  list-style: none !important;
  list-style-type: none !important;
  list-style-position: inside !important;
  padding-left: 0 !important;
}

.provider__centered-list.provider__resources-list {
  list-style: none !important;
  list-style-type: none !important;
  list-style-position: inside !important;
  padding: 0 !important;
}

.provider__resources-list li,
.provider__centered-list.provider__resources-list li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-position: inside !important;
  display: list-item !important;
  position: relative;
  padding-left: 1.75rem !important;
}

.provider__resources-list li::before,
.provider__centered-list.provider__resources-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url('../img/google docs.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.provider__resources-list li.provider__video-item::before,
.provider__centered-list.provider__resources-list li.provider__video-item::before {
  background-image: url('../img/youtube.png');
}

.provider__resources-list li.provider__resource-aaohns::before,
.provider__centered-list.provider__resources-list li.provider__resource-aaohns::before {
  background-image: url('../img/aaohns logo color.jpg');
}

.provider__video-container {
  margin-top: 1.5rem;
  text-align: center;
}

.provider__video-link {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.provider__video-link:hover {
  opacity: 0.9;
}

.provider__video-thumbnail {
  max-width: 100%;
  width: 560px;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.provider__video-caption {
  margin-top: 1rem;
  font-size: 1.225rem;
  color: #303a4d;
  font-style: italic;
  text-align: center;
}

@media (max-width: 768px) {
  .provider__video-thumbnail {
    width: 100%;
  }
}

.provider__resource-link {
  color: #303a4d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1.225rem;
}

.provider__resource-link:hover {
  color: #666;
  text-decoration: underline;
}

.outro_about {
  background: url("../img/about/hero_placeholder.jpg") center / cover no-repeat;
}

/* **************SERVICES**************** */

.main_services {
  background: url("../img/services/background_placeholder.png") center / cover no-repeat;
}

.main_services-hero {
  background: url("../img/spokane glassy river large.jpg") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.main_services-hero.page__main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: hidden;
}

.main_services-hero .main__title,
.main_services-hero .main__text {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main_services-hero .main__container,
.main_services-hero .main__container_services,
.main_services-hero .main__container_pages {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative;
}

.main_service-hero {
  background: url("../img/spokane glassy river large.jpg") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.main_service-hero.page__main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: hidden;
}

.main_service-hero .main__title,
.main_service-hero .main__text {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main_service-hero .main__container,
.main_service-hero .main__container_service,
.main_service-hero .main__container_pages {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative;
}

.outro_service {
  background: url("../img/spokane pavilion.webp") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.outro_service .outro__container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 338px !important;
  width: 100%;
}

.outro_service .outro__title,
.outro_service .outro__text,
.outro_service .outro__button,
.outro_service a {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.outro_service .outro__button {
  background-color: transparent;
  color: #fff !important;
  border: 2px solid #fff;
}

.outro_service .outro__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.services {
  background: url("../img/pavilion full.jpg") center / cover no-repeat;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.services__container {
  position: relative;
  z-index: 1;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  text-align: center;
}

.services__title {
  color: #fff;
  margin-bottom: 2rem;
}

.services__text {
  color: #fff;
  max-width: 50rem;
  margin: 0 auto;
  font-size: 1.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services__text p {
  margin: 0;
}

.services__link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.services__link:hover {
  opacity: 0.8;
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Item services title uses h3 typography */
.item-services__title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #303a4d;
  color: #303a4d;
}

.outro_services {
  background: url("../img/services/hero_placeholder.jpg") center / cover no-repeat;
}

.outro_services-provider {
  background: url("../img/spokane pavilion.webp") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.outro_services-provider .outro__container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 338px !important;
  width: 100%;
}

.outro_services-provider .outro__title,
.outro_services-provider .outro__text,
.outro_services-provider .outro__button,
.outro_services-provider a {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.outro_services-provider .outro__button {
  background-color: transparent;
  color: #fff !important;
  border: 2px solid #fff;
}

.outro_services-provider .outro__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Testimonial title inherits from h2 typography system */
.testimonial__title {
  margin-bottom: 4rem;
  max-width: 40.75rem;
  line-height: 136%;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Item testimonial caption uses small typography */
.item-testimonial__caption {
  /* Inherits from small typography (0.875rem) */
}

/* Testimonial Rotator Styles */
.testimonial__rotator {
  position: relative;
  min-height: 200px;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial__review {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial__review.active {
  display: block;
  opacity: 1;
}

.testimonial__review-rating {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial__review-text {
  font-size: 1.375rem;
  line-height: 150%;
  color: #303a4d;
  margin-bottom: 1.5rem;
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial__review-author {
  font-weight: 600;
  color: #303a4d;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.testimonial__review-date {
  font-size: 0.875rem;
  color: #666;
}

.testimonial__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e1e4eb;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial__dot.active,
.testimonial__dot:hover {
  background-color: #303a4d;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 74.624rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
}

.footer__logo {
  flex-shrink: 0;
}

.footer__search {
  flex: 1;
  max-width: 320px;
  margin: 0 1rem;
  position: relative;
}

.footer__navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer__link {
  font-weight: 600;
  color: #303a4d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #666;
}

.footer__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border: 2px solid #303a4d;
  border-radius: 30px;
  transition: all 0.3s;
  color: #303a4d;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer__button:hover {
  background-color: #303a4d;
  color: #fff;
}

.footer__social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.footer__social-icon:hover {
  opacity: 0.7;
}

.footer__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
}

/* Search Results Styles */
.main_search {
  background: url("../img/spokane glassy river large.jpg") center / cover no-repeat;
  height: 338px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.main_search .main__container {
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Search page title inherits from h1 typography system */
.main_search .title {
  color: #fff !important;
  margin: 0;
  padding: 0;
  text-align: center;
}

.search-results {
  padding: 4rem 0;
  background: #fff;
}

.search-results__container {
  max-width: 74.624rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.search-results__count {
  font-size: 1.225rem;
  color: #303a4d;
  margin-bottom: 2rem;
  font-weight: 600;
}

.search-results__empty,
.search-results__suggestion {
  font-size: 1.225rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: center;
}

.search-results__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-result__item {
  padding: 1.5rem;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search result title inherits from h3 typography system */
.search-result__title {
  margin-bottom: 1rem;
  color: #303a4d;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-result__title a {
  color: #303a4d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result__title a:hover {
  color: #666;
}

/* Search result external badge inherits from small typography system */
.search-result__external-badge {
  display: inline-block;
  font-weight: 600;
  color: #666;
  background-color: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-result__snippet {
  font-size: 1.225rem;
  color: #303a4d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.search-result__snippet mark {
  background: #fff3cd;
  padding: 0 0.25rem;
  font-weight: 600;
}

.search-result__link {
  color: #303a4d;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.search-result__link:hover {
  color: #666;
  text-decoration: underline;
}

.search-result__link--external {
  position: relative;
  padding-right: 1.5rem;
}

.search-result__link--external::after {
  content: "↗";
  position: absolute;
  right: 0;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

.main_services-hero.main_pages,
.main_provider-hero.main_pages,
.main_service-hero.main_pages,
.main_team-hero.main_pages,
.main_location-hero.main_pages {
  min-height: 338px !important;
  height: 338px !important;
}

/* Override padding-top for hero sections with spokane glassy river large background */
.main_services-hero.main_pages .main__container_pages,
.main_provider-hero.main_pages .main__container_pages,
.main_team-hero.main_pages .main__container_pages,
.main_service-hero.main_pages .main__container_pages,
.main_location-hero.main_pages .main__container_pages {
  padding-top: 0 !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 72.624rem;
  margin: 0 auto;
  padding-left: 0.938rem;
  padding-right: 0.938rem;
  width: 100%;
  box-sizing: border-box;
}

.services-page__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  width: 100%;
  max-width: 100%;
  justify-items: center;
  align-items: start;
}

.services-page__separator {
  display: none;
}

.services-page__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 217px; /* Fixed card width */
}

/* Service card - extends standard .card */
.services-page__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 217px; /* Fixed card width - prevents stretching */
  height: auto;
  min-height: 0;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.services-page__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.services-page__img {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.services-page__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  justify-content: flex-start;
}

/* Services page title matches provider card name */
/* Services page title - font-size set in card titles rule above */

.services-page__text {
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.services-page__intro-text {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.225rem;
  line-height: 150%;
  color: #303a4d;
  padding: 0 1rem;
  box-sizing: border-box;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 1rem;
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../img/contact/background_placeholder.png") center / cover no-repeat;
}

.main_team {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.main_team-hero {
  background: url("../img/spokane glassy river large.jpg") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.main_team-hero.page__main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: hidden;
}

.main_team-hero .main__title,
.main_team-hero .main__text {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main_team-hero .main__container,
.main_team-hero .main__container_team,
.main_team-hero .main__container_pages {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative;
}

.main_provider {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.main_provider-hero {
  background: url("../img/spokane glassy river large.jpg") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.main_provider-hero.page__main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: hidden;
}

.main__container_provider {
  max-width: 72.624rem;
  margin: 0 auto;
}

.main_provider-hero .main__title,
.main_provider-hero .main__text {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main_provider-hero .main__container,
.main_provider-hero .main__container_provider,
.main_provider-hero .main__container_pages {
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative;
  text-align: center;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-self: center !important;
  position: relative;
  top: 0;
}

.main_location-hero {
  background: url("../img/spokane glassy river large.jpg") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.main_location-hero.page__main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: hidden;
}

.main_location-hero .main__title {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.main_location-hero .main__container,
.main_location-hero .main__container_pages {
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 140px;
  max-width: 72.624rem;
  margin: 0 auto;
}

/* Contact title inherits from h2 typography system */
.contact__title {
  margin-bottom: 48px;
  line-height: 110%;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

/* Connect contact type inherits from paragraph typography system */
.connect-contant__type {
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

/* Connect contact label inherits from h4 typography system */
.connect-contact__label {
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Contact text inherits from paragraph typography system */
.contact__text {
  max-width: 545px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 72.624rem;
  margin: 0 auto;
  padding-left: 0.938rem;
  padding-right: 0.938rem;
  width: 100%;
  box-sizing: border-box;
}

/* Review cards use standard grid - extends .card-grid */
/* Custom: Centers grid when fewer than 4 items */
.reviews__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

/* Center reviews row when it has fewer than 4 items */
@supports selector(:has(*)) {
  /* When exactly 3 items - center them */
  .reviews__row:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }
  
  /* When exactly 2 items - center them */
  .reviews__row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }
  
  /* When exactly 1 item - center it */
  .reviews__row:has(> :nth-child(1):last-child) {
    grid-template-columns: max-content;
    max-width: fit-content;
    margin: 0 auto;
  }
}

.reviews__column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Review card - extends standard .card */
.reviews__item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.reviews__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
  flex-shrink: 0;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Item reviews text inherits from paragraph typography system */
.item-reviews__text {
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-reviews__author {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  text-align: center;
}

/* Item reviews geo inherits from small typography system */
.item-reviews__geo {
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Pricing caption inherits from h4 typography system */
.pricing__caption {
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

/* Pricing title uses large display size (larger than h1 for emphasis) */
.pricing__title {
  font-weight: 600;
  font-size: 4.5rem;
  margin-bottom: 24px;
}

/* Pricing text inherits from h4 typography system */
.pricing__text {
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

/* Item pricing label inherits from paragraph typography system */
.item-pricing__label {
  font-weight: 600;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

/* Item pricing cost uses large display size */
.item-pricing__cost {
  font-size: 4.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

/* Item pricing button inherits from h4 typography system */
.item-pricing__button {
  display: inline-block;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: #303a4d;
  border-radius: 64px;
}

.team {
  background-color: #fff;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 72.624rem;
  margin: 0 auto;
  padding-left: 0.938rem;
  padding-right: 0.938rem;
  width: 100%;
  box-sizing: border-box;
}

/* Team title inherits from h2 typography system */
.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 217px; /* Fixed card width */
}

.item-team__img {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 15%;
}

/* Item team name inherits from h2 typography system */
.item-team__name {
  max-width: 169px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
  text-align: center;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

/* Item team text inherits from paragraph typography system */
.item-team__text {
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Provider card - extends standard .card */
.item-team__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 217px; /* Fixed card width - prevents stretching */
  height: auto;
  min-height: 0;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.item-team__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-team__link:hover .item-team__name {
  color: #303a4d;
}

/* Advanced Practice Providers - match physician card width */
.team_app .item-team__img {
  width: 169px;
  height: 169px;
  max-width: 169px;
  flex-shrink: 0;
}

/* APP cards use same width constraints as regular team cards */
.team_app .item-team__link {
  max-width: 217px; /* Match regular team cards */
  width: 100%; /* Allow to shrink within max-width */
}

.outro_team {
  background: url("../img/home/hero_placeholder.jpg") center / cover no-repeat;
}

.outro_team-provider {
  background: url("../img/spokane pavilion.webp") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.outro_team-provider .outro__container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 338px !important;
  width: 100%;
}

.outro_team-provider .outro__title,
.outro_team-provider .outro__text,
.outro_team-provider .outro__button,
.outro_team-provider a {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.outro_team-provider .outro__button {
  background-color: transparent;
  color: #fff !important;
  border: 2px solid #fff;
}

.outro_team-provider .outro__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.outro_provider {
  background: url("../img/spokane pavilion.webp") center / cover no-repeat;
  height: 338px !important;
  min-height: 338px !important;
  max-height: 338px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.outro_provider .outro__container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  height: 338px !important;
  width: 100%;
}

.outro_provider .outro__title,
.outro_provider .outro__text,
.outro_provider .outro__button,
.outro_provider a,
.outro_provider .outro__back-link {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.outro_provider .outro__back-link {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.outro_provider .outro__back-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.outro_provider .outro__button {
  background-color: transparent;
  color: #fff !important;
  border: 2px solid #fff;
}

.outro_provider .outro__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************PROVIDER INDIVIDUAL PAGE**************** */
.provider__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.provider__content {
  display: flex;
  align-items: flex-start;
  gap: 96px;
  margin-bottom: 60px;
}

.provider__image {
  max-width: 552px;
  height: 614px;
  flex-shrink: 0;
}

.provider__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 16px;
}

.provider__info {
  flex: 1;
}

/* Provider name inherits from h2 typography system */
.provider__name {
  font-weight: 600;
  margin-bottom: 16px;
}

/* Provider title inherits from h4 typography system */
.provider__title {
  letter-spacing: 2%;
  margin-bottom: 40px;
  color: #666;
}

.provider__bio {
  letter-spacing: 2%;
  line-height: 150%;
  margin-bottom: 40px;
}

.provider__bio p:not(:last-child) {
  margin-bottom: 20px;
}

.provider__credentials,
.provider__specialties {
  margin-bottom: 32px;
}

.provider__credentials h3,
.provider__specialties h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.provider__credentials ul,
.provider__specialties ul {
  list-style: none;
  padding-left: 0;
}

.provider__credentials li,
.provider__specialties li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  line-height: 150%;
}

.provider__credentials li::before,
.provider__specialties li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #303a4d;
  font-weight: bold;
}

.provider__button {
  margin-top: 32px;
}

.provider__back {
  padding-top: 40px;
  border-top: 1px solid #e1e4eb;
}

.provider__back-link {
  color: #303a4d;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.provider__back-link:hover {
  color: #666;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

/* Director role uses h4 typography */
.director__role {
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: #303a4d;
  border-radius: 100px;
  display: inline-block;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Resources title uses h4 typography */
.resources__title {
  font-weight: 600;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #303a4d;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #303a4d;
  border-radius: 64px;
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 80px;
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 995px) {
  /* Item pricing button inherits from mobile h4 typography above */
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

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

  .provider__locations-row {
    grid-template-columns: 1fr;
    column-gap: 16px;
    row-gap: 30px;
    justify-items: center;
  }

  .provider__location-title {
    font-size: 1.25rem !important;
  }

  /* All card grids maintain card width, adapt columns automatically */
  .team__row,
  .services-page__row,
  .locations__row,
  .services-page__row-partnerships,
  .services-page__row-manufacturers,
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
    row-gap: 30px;
    column-gap: 16px;
    justify-items: center;
  }
  
  .team__container {
    padding-left: 0.938rem;
    padding-right: 0.938rem;
  }
  
  .reviews__row {
    grid-template-columns: repeat(auto-fit, minmax(217px, 1fr));
    row-gap: 30px;
    column-gap: 16px;
  }
  
  /* All cards maintain fixed width at medium breakpoint */
  .team__item,
  .services-page__item,
  .card-item {
    max-width: 217px;
  }
  
  .item-team__link,
  .services-page__link,
  .card,
  .locations__item,
  .manufacturer__link {
    max-width: 217px; /* Maintain desktop card width */
  }
  
  /* Override :has() selector centering rules - let auto-fill handle it */
  @supports selector(:has(*)) {
    .locations__row:has(> :nth-child(3):last-child),
    .locations__row:has(> :nth-child(2):last-child),
    .locations__row:has(> :nth-child(1):last-child),
    .services-page__row-partnerships:has(> :nth-child(3):last-child),
    .services-page__row-partnerships:has(> :nth-child(2):last-child),
    .services-page__row-partnerships:has(> :nth-child(1):last-child),
    .services-page__row-manufacturers:has(> :nth-child(3):last-child),
    .services-page__row-manufacturers:has(> :nth-child(2):last-child),
    .services-page__row-manufacturers:has(> :nth-child(1):last-child) {
      grid-template-columns: repeat(auto-fill, minmax(217px, 1fr)) !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  /* Pricing title inherits from mobile h1 typography above */

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }


  /* Services page title inherits from mobile h2 typography above */

  .reviews__column {
    padding: 1rem;
  }

  .reviews__item {
    padding: 0;
    display: inline-block;
  }

  /* Item reviews text and author inherit from mobile paragraph typography above */
}

@media (max-width: 47.999rem) {
  /* Hide dropdowns by default on mobile, but show when active */
  .menu__dropdown {
    display: block !important; /* Changed from none - we use max-height to hide/show */
  }

  /* Show search bar in header on mobile - positioned between logo and hamburger */
  .header__search {
    display: flex !important;
    flex: 1;
    max-width: none;
    margin: 0;
    min-width: 0;
    order: 2;
    z-index: 10001 !important;
  }
  
  .header__search .search-form {
    width: 100%;
    min-width: 0;
  }
  
  .header__search .search-input {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-width: 0;
    flex: 1;
  }
  
  .header__search .search-button {
    padding: 0.5rem 0.75rem;
    margin-left: 0.25rem;
    flex-shrink: 0;
  }
  
  .header__search .search-button svg {
    width: 16px;
    height: 16px;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Hide search bar in footer on mobile */
  .footer__search {
    display: none;
  }

  .footer__social-icons {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
  }

  /* Hamburger icon visibility is handled by the rule at line 3015 */

  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    /* Inherits from mobile small typography above */
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    /* Inherits from mobile paragraph typography above */
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Item pricing button inherits from mobile h4 typography above */
  .item-pricing__button {
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu,
  button.icon-menu,
  button.menu__icon.icon-menu,
  .header__actions .icon-menu,
  .header__actions button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 1.875rem !important;
    height: 1.125rem !important;
    min-width: 1.875rem !important;
    min-height: 1.125rem !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #000;
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  /* Mobile menu backdrop overlay */
  .menu__backdrop {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    pointer-events: none;
  }

  .menu-open .menu__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu__body {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 85%;
    height: 100%;
    padding: 5.75rem 1.5rem 1.875rem 1.5rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 2rem;
    transition: left 0.3s ease;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 85%;
    min-height: 5.75rem;
    background-color: #fff;
    border-bottom: 1px solid #e1e4eb;
    z-index: 10000;
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu__item {
    text-align: left;
    position: relative;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 0;
  }

  .menu__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #303a4d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e4eb;
    transition: color 0.3s ease;
  }

  .menu__link:hover {
    color: #666;
  }

  /* Mobile dropdown toggle button - only show on mobile */
  .menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: #303a4d;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    user-select: none;
    pointer-events: auto;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
  }

  .menu__toggle:hover {
    color: #666;
  }

  .menu__item.has-dropdown.active > .menu__link .menu__toggle {
    transform: rotate(0deg);
  }

  .menu__item.has-dropdown > .menu__link .menu__toggle::before {
    content: "+";
  }

  .menu__item.has-dropdown.active > .menu__link .menu__toggle::before {
    content: "−";
  }

  .menu__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    pointer-events: auto;
  }

  .menu__item.has-dropdown.active > .menu__dropdown {
    max-height: 2000px;
    padding-top: 1rem;
    margin-bottom: 1rem;
  }

  .menu__dropdown-category {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e4eb;
  }

  .menu__dropdown-category:last-child {
    border-bottom: none;
  }

  .menu__dropdown-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu__dropdown-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 auto;
  }
  
  .menu__dropdown-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #303a4d;
    text-decoration: none;
    display: block;
    margin-bottom: 0;
    flex: 1;
  }
  
  .menu__dropdown-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0.75rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    transition: color 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
  }
  
  .menu__dropdown-category-toggle:hover {
    color: #303a4d;
  }
  
  .menu__dropdown-category-toggle::before {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .menu__dropdown-category.expanded .menu__dropdown-category-toggle::before {
    content: "−";
    transform: translate(-50%, -50%);
  }

  .menu__dropdown-sublinks {
    padding-left: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    box-sizing: border-box;
  }
  
  .menu__dropdown-category.expanded .menu__dropdown-sublinks {
    display: flex;
    max-height: 1000px;
  }

  .menu__dropdown-sublink {
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
  }

  .menu__dropdown-sublink:hover {
    color: #303a4d;
  }

  .menu__dropdown-sublink::before {
    content: "•";
    margin-right: 0.5rem;
    color: #999;
  }

  .menu__dropdown-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e4eb;
  }

  .menu__dropdown-section:last-child {
    border-bottom: none;
  }

  .menu__dropdown-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
  }

  .menu__dropdown-link {
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
  }

  .menu__dropdown-link:hover {
    color: #303a4d;
  }

  /* Hide call button on mobile */
  .actions-header__button {
    display: none !important;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  .main__container_pages {
    padding-top: 0 !important;
  }
  
  .main_service-hero .main__container_pages,
  .main_provider-hero .main__container_pages,
  .main_team-hero .main__container_pages,
  .main_services-hero .main__container_pages,
  .main_location-hero .main__container_pages {
    padding-top: 0 !important;
  }

  /* Mobile typography adjustments */
  h1,
  .main__title {
    font-size: 3rem;
  }

  h2,
  .title,
  .provider__section-title,
  .locations__title,
  .outro__title,
  .team__title,
  .contact__title,
  .about__title,
  .testimonial__title,
  .provider__name {
    font-size: 2rem;
  }
  
  .services-page__title,
  .item-team__name,
  .locations__address-title,
  .provider__location-title {
    font-size: 1.25rem !important;
    max-width: none;
    margin-bottom: 12px;
  }
  
  .services-page__text,
  .item-reviews__text,
  .item-reviews__author {
    font-size: 1rem;
  }

  h3,
  .about__text h3,
  .provider__accordion-button,
  .provider__location-title,
  .item-services__title,
  .provider__specialties h3,
  .search-result__title {
    font-size: 1.25rem;
  }

  h4,
  .provider__title,
  .director__role,
  .resources__title,
  .connect-contact__label,
  .pricing__caption,
  .pricing__text,
  .item-pricing__button {
    font-size: 1.125rem;
  }

  p {
    font-size: 1rem;
  }

  small,
  .caption,
  .main__caption,
  .item-testimonial__caption,
  .item-reviews__geo,
  .search-result__external-badge {
    font-size: 0.813rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .about__content-wrapper {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .about__logos {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0;
  }

  .about__logo {
    max-width: 140px;
  }

  .provider__top-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .provider__photo-wrapper {
    margin-bottom: 2rem;
  }

  .provider__credentials-section {
    text-align: center;
    padding-left: 0.938rem;
    padding-right: 0.938rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Provider section title inherits from mobile h2 typography above */

  .provider__centered-list {
    text-align: center;
  }
  

  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .locations {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .locations__row {
    grid-template-columns: 1fr;
    row-gap: 30px;
    column-gap: 16px;
    max-width: 100% !important;
    margin: 0 !important;
    justify-items: center;
  }

  /* Override :has() selector centering rules on mobile */
  @supports selector(:has(*)) {
    .locations__row:has(> :nth-child(3):last-child),
    .locations__row:has(> :nth-child(2):last-child),
    .locations__row:has(> :nth-child(1):last-child) {
      grid-template-columns: 1fr !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

  .locations__item {
    max-width: fit-content;
    width: auto;
    padding: 1rem;
  }
  
  .manufacturer__link {
    padding: 1rem;
  }

  .locations__map {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  /* Testimonial title inherits from mobile h2 typography above */
  .testimonial__title {
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
  }

  .header__container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 0.938rem !important;
    gap: 0.5rem !important;
  }
  
  .header__logo {
    flex-shrink: 0;
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    z-index: 10001 !important;
    order: 1;
  }
  
  .header__logo img {
    max-height: 2rem !important;
  }
  
  .header__navigation {
    display: flex !important;
    align-items: center !important;
    order: 3;
    flex-shrink: 0;
  }
  
  /* Ensure header__actions container is visible and positioned on the right */
  .header__actions,
  .header__actions.actions-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    z-index: 10001 !important;
    width: auto !important;
    height: auto !important;
  }
  
  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 2px solid #303a4d !important;
    border-radius: 4px !important;
    padding: 0.5rem 0.75rem !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    width: auto !important;
    height: auto !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
  }

  .mobile-menu-toggle:hover {
    background: #303a4d !important;
  }

  .mobile-menu-toggle:hover .mobile-menu-icon {
    color: #fff !important;
  }
  
  .mobile-menu-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: #303a4d !important;
    font-weight: bold !important;
    text-align: center !important;
    transition: color 0.3s ease !important;
  }
  
  /* Change button when menu is open */
  .menu-open .mobile-menu-toggle {
    background: #303a4d !important;
    border-color: #303a4d !important;
  }
  
  .menu-open .mobile-menu-icon {
    color: #fff !important;
  }
  
  /* Hide old icon-menu on mobile */
  .icon-menu {
    display: none !important;
  }
  
  /* Target the button directly with maximum specificity */
  .header__actions.actions-header button.menu__icon.icon-menu,
  .header__actions button.icon-menu,
  div.header__actions button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 1.875rem !important;
    height: 1.125rem !important;
    min-width: 1.875rem !important;
    min-height: 1.125rem !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header__actions button,
  .header__actions .icon-menu,
  .menu__icon.icon-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 9999;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
  }

  .header__actions .icon-menu span,
  .header__actions .icon-menu::before,
  .header__actions .icon-menu::after,
  .menu__icon.icon-menu span,
  .menu__icon.icon-menu::before,
  .menu__icon.icon-menu::after {
    content: "" !important;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #000 !important;
    display: block !important;
    visibility: visible !important;
  }

  .header__actions .icon-menu::before,
  .menu__icon.icon-menu::before {
    top: 0;
  }

  .header__actions .icon-menu::after,
  .menu__icon.icon-menu::after {
    bottom: 0;
  }

  .header__actions .icon-menu span,
  .menu__icon.icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  /* Make container flex like team container */
  .services-page__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .services-page__intro-text {
    max-width: 100%;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    font-size: 1rem;
  }
  
  .services-page__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
  }
  
  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
  }
  
  .locations__row {
    grid-template-columns: 1fr;
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Override :has() selector centering rules on mobile */
  @supports selector(:has(*)) {
    .locations__row:has(> :nth-child(3):last-child),
    .locations__row:has(> :nth-child(2):last-child),
    .locations__row:has(> :nth-child(1):last-child) {
      grid-template-columns: 1fr !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

  .locations__item {
    max-width: fit-content;
    width: auto;
  }
  
  .services-page__row-partnerships {
    grid-template-columns: 1fr;
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Override :has() selector centering rules on mobile */
  @supports selector(:has(*)) {
    .services-page__row-partnerships:has(> :nth-child(3):last-child),
    .services-page__row-partnerships:has(> :nth-child(2):last-child),
    .services-page__row-partnerships:has(> :nth-child(1):last-child) {
      grid-template-columns: 1fr !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }
  
  .services-page__row-manufacturers {
    grid-template-columns: 1fr;
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Override :has() selector centering rules on mobile */
  @supports selector(:has(*)) {
    .services-page__row-manufacturers:has(> :nth-child(3):last-child),
    .services-page__row-manufacturers:has(> :nth-child(2):last-child),
    .services-page__row-manufacturers:has(> :nth-child(1):last-child) {
      grid-template-columns: 1fr !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

  .manufacturer__link,
  .services-page__link,
  .item-team__link {
    max-width: fit-content;
    width: auto;
  }

  .provider__locations-row {
    grid-template-columns: 1fr;
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
  }

  .provider__location-item {
    padding: 1rem;
  }

  .provider__location-map {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .provider__location-title {
    font-size: 1rem !important;
  }

  /* Keep all card images at desktop size (169px) */
  /* Images remain 169px to match card width */
  

  /* Hide service card description text on mobile - matches provider card behavior */
  .services-page__text:not(.services-page__intro-text),
  .item-reviews__text {
    display: none;
  }
  
  .services-page__intro-text {
    display: block !important;
  }
  
  /* Constrain location address text on mobile */
  .locations__address-text {
    max-width: 100%;
  }


  .provider__content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .provider__image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Provider name inherits from mobile h2 typography above */

  .provider__info {
    text-align: left;
  }

  /* Hide specialty on mobile provider cards */
  .item-team__role {
    display: none;
  }

  /* Scale provider name to fit on one line on mobile */
  .item-team__name {
    max-width: 100%;
    font-size: clamp(1rem, 3vw, 1.375rem);
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  /* Mobile: Keep cards at 217px, just reduce columns and adjust spacing */
  .team__row,
  .services-page__row,
  .locations__row,
  .services-page__row-partnerships,
  .services-page__row-manufacturers,
  .reviews__row {
    grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
    column-gap: 8px;
    row-gap: 20px;
    justify-items: center;
  }
  
  .team__container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .services-page__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .services-page__intro-text {
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }
  
  /* All card items keep desktop width */
  .team__item,
  .services-page__item {
    max-width: 217px; /* Keep desktop card width */
  }
  
  /* All cards keep desktop width */
  .item-team__link,
  .services-page__link,
  .card,
  .locations__item,
  .manufacturer__link {
    max-width: 217px; /* Keep desktop card width */
  }
  
  /* APP cards also keep desktop width */
  .team_app .item-team__link {
    max-width: 217px; /* Keep desktop card width */
  }
  
  /* Override :has() selector - let auto-fill handle it */
  @supports selector(:has(*)) {
    .locations__row:has(> :nth-child(3):last-child),
    .locations__row:has(> :nth-child(2):last-child),
    .locations__row:has(> :nth-child(1):last-child),
    .services-page__row-partnerships:has(> :nth-child(3):last-child),
    .services-page__row-partnerships:has(> :nth-child(2):last-child),
    .services-page__row-partnerships:has(> :nth-child(1):last-child),
    .services-page__row-manufacturers:has(> :nth-child(3):last-child),
    .services-page__row-manufacturers:has(> :nth-child(2):last-child),
    .services-page__row-manufacturers:has(> :nth-child(1):last-child) {
      grid-template-columns: repeat(auto-fill, minmax(217px, 1fr)) !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

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

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