/* Compact treatment pages and price lists on phones. Desktop layouts stay in style.css. */
@media (max-width: 760px) {
  /* The logo and its isolated blending backdrop must use the same footer surface. */
  footer { --footer-surface: #ece0d0; }
  .home footer { --footer-surface: #ddccb3; }
  footer, .home footer { background: var(--footer-surface); }
  footer .logo-image, .home footer .logo-image {
    background: var(--footer-surface);
    isolation: isolate;
    mix-blend-mode: normal;
  }
  footer .logo-image img, .home footer .logo-image img {
    mix-blend-mode: darken;
    filter: brightness(1.08);
  }
  .detail-hero {
    display: block;
    padding-block: 24px 30px;
  }
  /* Keep every paragraph in normal flow, including pages with several descriptions. */
  .detail-hero > div { display: block; width: 100%; min-width: 0; }
  .detail-hero .breadcrumb { margin: 0 0 18px; }
  .detail-hero .eyebrow { margin: 0 0 10px; }
  .detail-hero h1,
  .detail-hero h1.compact-treatment-title {
    margin: 0 0 20px;
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -.035em;
    white-space: normal;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
  .detail-hero > div > p:not(.eyebrow) {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.7;
  }
  .detail-hero > img.treatment-photo,
  .detail-hero > img.detail-hero-image,
  .detail-hero > img.pmu-photo {
    width: 104px;
    height: 138px;
    max-height: 138px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 52px 52px 12px 12px;
    margin: 22px auto 0;
  }
  .detail-hero > img.pmu-photo { object-fit: contain; background: var(--soft); }
  .detail-hero .actions {
    margin: 22px 0 0;
    gap: 14px 20px;
    flex-wrap: wrap;
  }
  .detail-hero .actions .button { padding: 12px 16px; }

  /* One treatment per compact, fully clickable row. */
  .page-heading { padding-top: 28px; padding-bottom: 20px; }
  .page-heading h1 { font-size: 2.1rem; margin-bottom: 14px; }
  .page-heading .eyebrow { margin-bottom: 12px; }
  .page-heading > p:last-child { margin-bottom: 0; font-size: 1rem; line-height: 1.6; }
  .photo-services .service-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .photo-services .service-card,
  .photo-services .service-card:nth-child(n+5) {
    grid-column: 1;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 5px 14px;
    min-width: 0;
    padding: 16px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
    overflow: visible;
  }
  .photo-services .service-card img.treatment-photo {
    grid-area: 1 / 1 / 4 / 2;
    width: 64px;
    height: 84px;
    max-height: 84px;
    margin: 0;
    border-radius: 32px 32px 8px 8px;
    aspect-ratio: auto;
    align-self: center;
    object-fit: cover;
  }
  .photo-services .service-card h3,
  .photo-services .service-card h3.compact-service-title {
    grid-area: 1 / 2 / 2 / 3;
    margin: 0;
    min-height: 0;
    min-width: 0;
    font-family: Georgia, serif;
    font-size: clamp(1rem, 4.6vw, 1.25rem);
    line-height: 1.3;
    letter-spacing: -.035em;
    white-space: normal;
    hyphens: none;
    overflow-wrap: normal;
  }
  .photo-services .service-card p {
    grid-area: 2 / 2 / 3 / 3;
    margin: 0;
    max-width: none;
    font-size: .875rem;
    line-height: 1.5;
  }
  .photo-services .service-card .card-link {
    grid-area: 3 / 2 / 4 / 3;
    justify-self: start;
    margin: 3px 0 0;
    padding: 0;
    font-size: .875rem;
    align-items: center;
    gap: 8px;
  }
  .photo-services .card-link .link-arrow { width: 16px; height: 16px; min-width: 16px; }

  /* Equal-width category links and full-width headings above each price list. */
  .price-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 24px; }
  .price-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 9px;
    background: #f6efe4;
    font-size: 1rem;
    line-height: 1.4;
  }
  .price-nav a::after {
    content: '';
    flex: 0 0 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: -4px 2px 0;
  }
  .price-category { padding-block: 28px; }
  .price-category-intro {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 24px;
  }
  .price-category-intro .price-heading { display: contents; }
  .price-category-intro .price-heading h2 {
    grid-area: 1 / 1 / 2 / -1;
    margin: 0;
    min-width: 0;
    font-size: clamp(1.5rem, 6.7vw, 1.875rem);
    line-height: 1.25;
    letter-spacing: -.035em;
    hyphens: none;
    overflow-wrap: normal;
  }
  .price-category-intro .price-photo-link { grid-area: 2 / 1 / 3 / 2; }
  .price-category-intro img.treatment-photo { width: 56px; height: 70px; border-radius: 28px 28px 8px 8px; }
  .price-category-intro .text-link { grid-area: 2 / 2 / 3 / 3; justify-self: start; margin: 0; font-size: .875rem; }
  .price-groups,
  .facial-price-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .price-group { min-width: 0; }
  .price-group h3 { font-size: 1.375rem; line-height: 1.35; margin-bottom: 12px; hyphens: none; }
  .price-group dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 8px 14px;
    font-size: 1rem;
    line-height: 1.5;
  }
  .price-group dt { min-width: 0; }
  .price-group dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .facial-price-column dt:has(> strong) { display: contents; }
  .facial-price-column dt > strong { grid-area: 1 / 1 / 2 / 2; font-size: 1.25rem; }
  .facial-price-column dl > div:has(dt > strong) dd { grid-area: 1 / 2 / 2 / 3; }
  .facial-price-column .treatment-duration { grid-area: 2 / 1 / 3 / -1; margin: 0; }
  .facial-price-column .treatment-inclusions { grid-area: 3 / 1 / 4 / -1; margin: 0; line-height: 1.65; }
  .treatment-prices { padding: 24px 16px; }
  .treatment-prices > .price-heading h2 { font-size: 1.625rem; }
  .laser-price-groups { grid-template-columns: minmax(0, 1fr); }
  .laser-price-groups > .price-group { grid-column: 1; padding: 18px 14px; }
  .laser-packages dl { grid-template-columns: minmax(0, 1fr); }
  .signature-price { padding: 18px 14px; }
  .home .service-card h3 { hyphens: none; }
}

@media (max-width: 360px) {
  .detail-hero > img.treatment-photo,
  .detail-hero > img.detail-hero-image,
  .detail-hero > img.pmu-photo { width: 88px; height: 120px; max-height: 120px; }
  .photo-services .service-card,
  .photo-services .service-card:nth-child(n+5) { grid-template-columns: 56px minmax(0, 1fr); column-gap: 10px; }
  .photo-services .service-card img.treatment-photo { width: 56px; height: 76px; }
}
