/* Essential profile content must remain visible on first paint and without JavaScript.
   A long catalogue may never reach the legacy scroll reveal intersection threshold. */
.profile-page .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Business information first, then a full-width service catalogue. */
.profile-page .profile-grid-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.profile-page .profile-overview { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 24px; align-items: start; }
.profile-page .profile-overview > *, .profile-page .profile-service-finder > * { min-width: 0; }
.profile-page .profile-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.profile-page .profile-section-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(148,163,184,.25); border-radius: 12px; background: #152139; color: #e2e8f0; font-size: 14px; font-weight: 650; text-decoration: none; }
.profile-page .profile-section-nav a:first-child { background: #155e75; border-color: #25889e; color: #fff; }
.profile-page .profile-overview h2 { margin: 0 0 14px; color: #fff; font-size: 24px; line-height: 1.25; }
.profile-page .business-details-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
.profile-page .business-details-panel > .side-icon { display: none; }
.profile-page .business-details-panel > h2, .profile-page .business-details-panel > p, .profile-page .business-details-panel > .location-picker, .profile-page .business-details-panel > .social-links { grid-column: 1 / -1; margin: 0; }
.profile-page .business-details-panel > p { color: var(--profile-muted); font-size: 14px; line-height: 1.6; }
.profile-page .business-details-panel > h2 { margin-bottom: 0; }
.profile-page .business-details-panel .contact-list { grid-column: 1; margin: 4px 0 0; gap: 10px; align-content: start; }
.profile-page .business-details-panel .contact-list > div { padding: 12px 14px; border-radius: 14px; }
.profile-page .business-details-panel .profile-map-card { grid-column: 2; margin: 4px 0 0; align-self: start; min-width: 0; }
.profile-page .business-details-panel:not(:has(.profile-map-card)) .contact-list { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-page .business-details-panel .profile-map-card iframe { height: 200px; width: 100%; }
.profile-page .business-details-panel .profile-map-head { flex-wrap: wrap; gap: 10px; }
.profile-page .business-details-panel .profile-map-head a { min-height: 44px; }
.profile-page .profile-overview #hours h2 { font-size: 24px; margin-bottom: 18px; }
.profile-page .profile-overview #hours h2 > i { color: #67e8f9; margin-right: 6px; }
.profile-page .profile-overview .hours-list { gap: 8px; }
.profile-page .profile-overview .hours-row { flex-direction: row; align-items: center; padding: 10px 12px; gap: 12px; flex-wrap: wrap; line-height: 1.5; border-radius: 12px; }
.profile-page .profile-overview .hours-row strong, .profile-page .profile-overview .hours-row span { font-size: 14px; }
.profile-page #business-details, .profile-page #hours, .profile-page #services { scroll-margin-top: 110px; }
.profile-page .profile-service-finder { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px 20px; padding: 22px; margin: 0 0 24px; background: linear-gradient(120deg, rgba(8,145,178,.12), rgba(124,58,237,.09)); border: 1px solid rgba(103,232,249,.25); border-radius: 18px; }
.profile-page .profile-service-finder label { display: block; margin-bottom: 9px; color: #eef6ff; font-size: 14px; font-weight: 700; }
.profile-page .profile-search-input-wrap { position: relative; }
.profile-page .profile-search-input-wrap > i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #67e8f9; pointer-events: none; }
.profile-page .profile-service-finder .profile-service-search, .profile-page .profile-service-finder select { display: block; box-sizing: border-box; width: 100%; min-width: 0; height: 52px; margin: 0; padding: 12px 14px; border: 1px solid #60738e; border-radius: 12px; background: #0c172b; color: #f8fafc; font: inherit; font-size: 16px; line-height: 1.5; color-scheme: dark; }
.profile-page .profile-service-finder .profile-service-search { padding-left: 44px; }
.profile-page .profile-service-search::placeholder { color: #aebdd1; opacity: 1; }
.profile-page .profile-service-finder:not(:has(.profile-service-category-field)) .profile-service-search-field { grid-column: 1 / -1; }
.profile-page .profile-service-search-status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.profile-page #profile-service-results { margin: 0; color: #bdcde0; font-size: 14px; line-height: 1.5; }
.profile-page #profile-service-clear { min-height: 44px; padding: 8px 14px; border: 1px solid rgba(103,232,249,.4); border-radius: 10px; background: #12354a; color: #e0faff; font: inherit; font-size: 14px; cursor: pointer; }
.profile-page .profile-service-empty { padding: 32px 20px; border: 1px dashed #52637e; border-radius: 18px; text-align: center; color: #bdcde0; }
.profile-page .profile-service-empty > i { color: #67e8f9; font-size: 24px; }
.profile-page .profile-service-empty h3 { margin: 16px 0 8px; color: #fff; }
.profile-page .profile-service-empty p { margin: 0; line-height: 1.6; }
/* Explicit display rules must respect filtering and remove collapsed links from keyboard navigation. */
.profile-page #services [hidden], .profile-page .service-group.closed .service-group-body { display: none !important; }
.profile-page .service-group-body { max-height: none; overflow: visible; overscroll-behavior: auto; scrollbar-gutter: auto; }
.profile-page .service-group-header > span { min-width: 0; flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; text-align: left; }
.profile-page .service-group-header .service-group-title { display: block; line-height: 1.5; }
.profile-page .service-group-header > .fa-chevron-down { flex: 0 0 auto; }
.profile-page .service-group-header { background: linear-gradient(120deg, #593495, #24566d) !important; text-shadow: none; }
.profile-page .service-row { padding: 24px; gap: 14px 20px; }
.profile-page .service-copy p { max-width: 78ch; font-size: 15px; line-height: 1.7; }
.profile-page .service-price { gap: 12px; min-width: 140px; }
.profile-page .service-price > a { min-height: 46px; min-width: 88px; display: inline-flex; align-items: center; justify-content: center; }
.profile-page .profile-section-nav a:hover, .profile-page #profile-service-clear:hover { background: #1e4860; }
.profile-page .profile-section-nav a:focus-visible, .profile-page .profile-service-finder :is(input, select, button):focus-visible, .profile-page .service-group-header:focus-visible { outline: 3px solid #67e8f9; outline-offset: 3px; }
@media (max-width: 1000px) {
    .profile-page .profile-overview { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .profile-page .business-details-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-page .business-details-panel .profile-map-card { grid-column: 2; }
}
@media (max-width: 760px) {
    .profile-page .profile-overview { grid-template-columns: minmax(0, 1fr); }
    .profile-page .business-details-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-page .business-details-panel .profile-map-card { grid-column: 2; }
    .profile-page .profile-service-finder { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .profile-page .service-row { padding: 20px; }
}
@media (max-width: 560px) {
    .profile-page .profile-section-nav { gap: 7px; }
    .profile-page .profile-section-nav a { padding: 10px 12px; font-size: 13px; }
    .profile-page .profile-section-nav a:first-child { width: 100%; }
    .profile-page .profile-section-nav a:not(:first-child) { flex: 1 1 auto; }
    .profile-page .business-details-panel { grid-template-columns: minmax(0, 1fr); }
    .profile-page .business-details-panel .profile-map-card { grid-column: 1; }
    .profile-page .business-details-panel:not(:has(.profile-map-card)) .contact-list { grid-template-columns: minmax(0, 1fr); }
    .profile-page .profile-service-finder { padding: 16px; }
    .profile-page .service-group-header { padding: 16px; font-size: 15px; }
    .profile-page .service-group-header > span { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .profile-page .service-group-header > span > i { display: none; }
    .profile-page .service-group-count { justify-self: start; }
    .profile-page .service-row { padding: 18px 16px; }
    .profile-page .service-price { min-width: 0; gap: 12px; }
    .profile-page .service-price > a { min-width: 76px; }
}

@media (min-width: 561px) and (max-width: 1000px) {
    .profile-page .profile-overview .hours-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
}

@media (min-width: 641px) {
    .profile-page #services .split-heading { flex-direction: row; align-items: flex-end; }
}

.profile-page .profile-service-browse-hint { margin: 0 0 18px; color: #bdcde0; font-size: 14px; line-height: 1.6; }
