/* =========================================================
   ATOM PHYSICAL THERAPY
   OUR SERVICES PAGE
   Full replacement stylesheet
   ========================================================= */


/* =========================================================
   PAGE FOUNDATION
   ========================================================= */

.atom-services-page {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #292d31;
}

.atom-services-page *,
.atom-services-page *::before,
.atom-services-page *::after {
  box-sizing: border-box;
}

.atom-services-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   EYEBROWS
   ========================================================= */

.atom-eyebrow {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #ef6c23;
}

.atom-eyebrow--light {
  color: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */

.atom-services-hero {
  background: #f8f9fa;
}

.atom-services-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  min-height: 470px;
}

.atom-services-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 70px;
  padding-right: 34px;
  padding-bottom: 70px;
  padding-left: max(72px, calc((100vw - 1180px) / 2));
}

.atom-services-hero__content h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #292d31;
}

.atom-services-hero__content p {
  max-width: 600px;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #555c62;
}

.atom-services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.atom-services-hero__visual {
  min-height: 470px;
}

.atom-services-hero__image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 470px;
  overflow: hidden;
  background: #e8ecef;
}

.atom-services-hero__image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
}

.atom-services-hero__image-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    to right,
    #f8f9fa 0%,
    rgba(248, 249, 250, 0.96) 18%,
    rgba(248, 249, 250, 0.70) 43%,
    rgba(248, 249, 250, 0.30) 70%,
    rgba(248, 249, 250, 0) 100%
  );
}


/* =========================================================
   BUTTONS
   ========================================================= */

.atom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.atom-btn:hover {
  transform: translateY(-1px);
}

.atom-btn--primary {
  background: #ef6c23;
  border: 1px solid #ef6c23;
  color: #ffffff !important;
}

.atom-btn--primary:hover {
  background: #d85d18;
  border-color: #d85d18;
}

.atom-btn--secondary {
  background: transparent;
  border: 1px solid #292d31;
  color: #292d31 !important;
}

.atom-btn--secondary:hover {
  background: #292d31;
  color: #ffffff !important;
}

.atom-btn--outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff !important;
}

.atom-btn--outline-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #292d31 !important;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.atom-section-heading {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.atom-section-heading h2 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #292d31;
}

.atom-section-heading h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 14px auto 0;
  background: #ef6c23;
}

.atom-section-heading p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #5b6268;
}


/* =========================================================
   MAIN SERVICES
   ========================================================= */

.atom-services-main {
  padding: 68px 0 74px;
  background: #ffffff;
}

.atom-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}


/* =========================================================
   EXPANDABLE SERVICE CARDS
   ========================================================= */

.atom-service-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #e1e4e7;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(30, 38, 45, 0.045);
}

.atom-service-card__summary {
  display: block;
  position: relative;
  padding: 25px 24px 22px;
  cursor: pointer;
  list-style: none;
}

.atom-service-card__summary::-webkit-details-marker {
  display: none;
}

.atom-service-card__summary::marker {
  display: none;
  content: "";
}

.atom-service-number {
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ef6c23;
}

.atom-service-card h3 {
  margin: 0 0 11px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #292d31;
}

.atom-service-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #596066;
}

.atom-service-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #eceeef;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #4b5359;
}

.atom-service-toggle__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f4f5f6;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: #ef6c23;
  transition: transform 0.18s ease;
}

.atom-service-toggle__open {
  display: none;
}

.atom-service-card[open] .atom-service-toggle__closed {
  display: none;
}

.atom-service-card[open] .atom-service-toggle__open {
  display: inline;
}

.atom-service-card[open] .atom-service-toggle__symbol {
  transform: rotate(45deg);
}

.atom-service-card__details {
  padding: 0 24px 23px;
  border-top: 1px solid #eceeef;
}

.atom-service-card__details ul {
  margin: 18px 0 0;
  padding: 0 0 0 18px;
}

.atom-service-card__details li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #555d63;
}

.atom-service-card__details li:last-child {
  margin-bottom: 0;
}


/* =========================================================
   SPECIALIZED SERVICES
   ========================================================= */

.atom-specialized {
  padding: 68px 0 64px;
  background: #f5f7f8;
  border-top: 1px solid #eceff1;
}

.atom-specialized-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.atom-specialized-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 28px 25px;
  border: 1px solid #dfe3e6;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(30, 38, 45, 0.045);
}

.atom-specialized-card--featured {
  border: 1px solid #dfe3e6;
}

.atom-specialized-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.atom-specialized-card__number {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ef6c23;
}

.atom-specialized-card__kicker {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #687078;
}

.atom-specialized-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
  color: #292d31;
}

.atom-specialized-card__intro {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #555d63;
}

.atom-specialized-card__body {
  padding-top: 20px;
  border-top: 1px solid #e8ebed;
}

.atom-specialized-card__body h4 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: #292d31;
}

.atom-specialized-card__body p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #596168;
}

.atom-specialized-card__body p:last-child {
  margin-bottom: 0;
}

.atom-specialized-card__footer {
  margin-top: auto;
  padding-top: 22px;
}

.atom-specialized-card__footer span {
  display: inline-block;
  padding-top: 11px;
  border-top: 2px solid #ef6c23;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #41494f;
}

.atom-treatment-note {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 19px 22px;
  border-left: 3px solid #ef6c23;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.7;
  color: #586067;
}

.atom-treatment-note strong {
  color: #292d31;
}


/* =========================================================
   CTA
   ========================================================= */

.atom-services-cta {
  padding: 52px 0;
  background: #292d31;
  color: #ffffff;
}

.atom-services-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.atom-services-cta__inner > div:first-child {
  min-width: 0;
}

.atom-services-cta h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.atom-services-cta p {
  max-width: 690px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.atom-services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =========================================================
   TRUST STRIP
   ========================================================= */

.atom-services-trust {
  padding: 34px 0;
  background: #ffffff;
}

.atom-services-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atom-services-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-right: 1px solid #e4e7e9;
  text-align: center;
}

.atom-services-trust__item:last-child {
  border-right: 0;
}

.atom-services-trust__item strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #363c41;
}


/* =========================================================
   REMOVE DEFAULT WORDPRESS PAGE TITLE / SPACING
   ========================================================= */

.page-id-1246 #content,
.page-id-1246 .site-content,
.page-id-1246 .content-area,
.page-id-1246 .site-main,
.page-id-1246 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-id-1246 .entry-content {
  margin-bottom: 0 !important;
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1050px) {

  .atom-services-hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .atom-services-hero__content {
    padding: 58px 34px;
  }

  .atom-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atom-specialized-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .atom-services-cta__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .atom-services-cta__actions {
    justify-content: flex-start;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .atom-services-container {
    width: min(100% - 32px, 1180px);
  }

  .atom-services-hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .atom-services-hero__content {
    padding: 46px 24px;
  }

  .atom-services-hero__content h1 {
    font-size: 27px;
    line-height: 1.2;
  }

  .atom-services-hero__content p {
    font-size: 16px;
  }

  .atom-services-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .atom-services-hero__actions .atom-btn {
    width: 100%;
  }

  .atom-services-hero__visual,
  .atom-services-hero__image-placeholder,
  .atom-services-hero__image-placeholder img {
    min-height: 280px;
  }

  .atom-services-hero__image-placeholder::before {
    display: none;
  }

  .atom-services-main {
    padding: 52px 0 56px;
  }

  .atom-section-heading {
    margin-bottom: 34px;
  }

  .atom-section-heading h2 {
    font-size: 27px;
  }

  .atom-service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .atom-service-card__summary {
    padding: 23px 21px 20px;
  }

  .atom-service-card__details {
    padding: 0 21px 21px;
  }

  .atom-specialized {
    padding: 52px 0;
  }

  .atom-specialized-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .atom-specialized-card,
  .atom-specialized-card--featured {
    padding: 25px 21px 23px;
  }

  .atom-specialized-card h3 {
    font-size: 20px;
  }

  .atom-treatment-note {
    margin-top: 26px;
    padding: 17px 19px;
  }

  .atom-services-cta {
    padding: 46px 0;
  }

  .atom-services-cta h2 {
    font-size: 25px;
  }

  .atom-services-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .atom-services-cta__actions .atom-btn {
    width: 100%;
  }

  .atom-services-trust {
    padding: 16px 0;
  }

  .atom-services-trust__grid {
    grid-template-columns: 1fr;
  }

  .atom-services-trust__item {
    min-height: 0;
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid #e4e7e9;
  }

  .atom-services-trust__item:last-child {
    border-bottom: 0;
  }

}


/* Specialized service page links */

.atom-specialized-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.atom-specialized-card__link {
  flex: 0 0 auto;
  color: #ef6c23 !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  white-space: nowrap;
}

.atom-specialized-card__link:hover {
  color: #d85d18 !important;
  text-decoration: none !important;
}

@media (max-width: 700px) {
  .atom-specialized-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}


/* =========================================================
   RELATED / CONDITION-SPECIFIC SERVICE LINKS
   ========================================================= */

.atom-condition-links {
  padding: 64px 0;
  background: #f4f6f7;
}

.atom-condition-links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.atom-condition-link {
  display: flex;
  gap: 20px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #dde3e7;
  border-radius: 4px;
  text-decoration: none;
  color: #292d31;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.atom-condition-link:hover,
.atom-condition-link:focus {
  transform: translateY(-2px);
  border-color: #ef6c23;
  box-shadow: 0 8px 22px rgba(41, 45, 49, 0.08);
}

.atom-condition-link__number {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ef6c23;
  padding-top: 3px;
}

.atom-condition-link__content h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.25;
  color: #292d31;
}

.atom-condition-link__content p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #5f666d;
}

.atom-condition-link__cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  color: #ef6c23;
}

.atom-condition-link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {

  .atom-condition-links {
    padding: 46px 0;
  }

  .atom-condition-links__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .atom-condition-link {
    padding: 22px;
  }

  .atom-condition-link:last-child:nth-child(odd) {
    grid-column: auto;
  }

}