/* Canonical narrow-screen contract. Loaded after the historical theme layers. */
.r7-hero__lead-mobile {
    display: none !important;
}

/* Service finder: one focused interaction layer for the services directory. */
.rm-service-finder {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px 48px;
    margin: 0 0 54px;
    padding: clamp(24px, 3vw, 38px);
    color: var(--r7-white, #f7f5f0);
    background:
        radial-gradient(circle at 88% 0%, rgba(180, 126, 70, 0.22), transparent 38%),
        linear-gradient(135deg, #151817 0%, #0e1110 100%);
    border: 1px solid rgba(181, 137, 92, 0.28);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 18, 17, 0.12);
}

.rm-service-finder__intro h2 {
    max-width: 390px;
    margin: 14px 0 12px;
    font-family: var(--r7-font-display, Georgia, serif);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.rm-service-finder__intro p {
    max-width: 390px;
    margin: 0;
    color: rgba(247, 245, 240, 0.68);
    font-size: 0.92rem;
    line-height: 1.5;
}

.rm-service-finder__controls {
    display: grid;
    gap: 22px;
}

.rm-service-finder__field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rm-service-finder__field legend {
    margin-bottom: 10px;
    color: rgba(247, 245, 240, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.rm-service-finder__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rm-service-finder__options button {
    min-height: 46px;
    padding: 10px 13px;
    color: rgba(247, 245, 240, 0.78);
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(247, 245, 240, 0.16);
    border-radius: 12px;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.rm-service-finder__options button:hover {
    border-color: rgba(194, 151, 101, 0.72);
    transform: translateY(-1px);
}

.rm-service-finder__options button[aria-checked="true"] {
    color: #171614;
    background: var(--r7-gold, #bd9163);
    border-color: var(--r7-gold, #bd9163);
}

.rm-service-finder__hint {
    margin: 9px 0 0;
    color: rgba(247, 245, 240, 0.46);
    font-size: 0.7rem;
    line-height: 1.35;
}

.rm-service-finder__options button:focus-visible,
.rm-service-finder__result a:focus-visible {
    outline: 2px solid #e3b67d;
    outline-offset: 3px;
}

.rm-service-finder__result {
    display: flex;
    grid-column: 1 / -1;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 245, 240, 0.16);
}

.rm-service-finder__result-label {
    display: block;
    margin-bottom: 8px;
    color: #d9a66f;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.rm-service-finder__result strong {
    display: block;
    font-family: var(--r7-font-display, Georgia, serif);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.rm-service-finder__result p {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(247, 245, 240, 0.66);
    font-size: 0.86rem;
    line-height: 1.45;
}

.rm-service-finder__result-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

.rm-service-finder__result-action > span {
    color: #f7f5f0;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.rm-service-finder__result a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 10px 16px;
    color: #171614;
    background: #f0d5b2;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background-color 180ms ease;
}

.rm-service-finder__result a:hover {
    background: #fff0dc;
    transform: translateY(-1px);
}

.rm-service-finder__book {
    min-height: 42px;
    padding: 10px 16px;
    color: #f7f5f0;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(247, 245, 240, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.rm-service-finder__book:hover {
    color: #171614;
    background: #f0d5b2;
    border-color: #f0d5b2;
    transform: translateY(-1px);
}

.rm-service-finder__book:focus-visible {
    outline: 2px solid #e3b67d;
    outline-offset: 3px;
}

.rm-booking-modal__context {
    display: inline-flex;
    margin: 10px 0 0;
    padding: 7px 11px;
    color: #1a1815;
    background: #e3b67d;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.rv6-directory-card.rm-finder-highlight {
    animation: rm-finder-highlight 1000ms ease both;
}

@keyframes rm-finder-highlight {
    0%, 100% { background: transparent; }
    35% { background: rgba(190, 146, 98, 0.12); }
}

@media (max-width: 760px) {
    .rm-service-finder {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 38px;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .rm-service-finder__intro h2 {
        max-width: 300px;
        font-size: 2rem;
    }

    .rm-service-finder__intro p {
        font-size: 0.86rem;
    }

    .rm-service-finder__result {
        display: block;
        padding-top: 20px;
    }

    .rm-service-finder__result p {
        margin-bottom: 18px;
    }

    .rm-service-finder__result-action {
        justify-content: space-between;
        gap: 12px;
    }

    .rm-service-finder__result-action > span {
        font-size: 0.78rem;
    }

    .rm-service-finder__result a,
    .rm-service-finder__book {
        font-size: 0.64rem;
    }

    .rm-service-finder__result-action {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rm-service-finder__options button,
    .rm-service-finder__result a,
    .rm-service-finder__book {
        transition: none;
    }

    .rv6-directory-card.rm-finder-highlight {
        animation: none;
        background: rgba(190, 146, 98, 0.12);
    }
}

@media (max-width: 1023px) {
    /* Keep every internal page inside the narrow viewport. Several legacy
       layouts carry desktop max-widths into the mobile cascade. */
    html body #price-calculators,
    html body #price-calculators-ppf,
    html body #price-calculators-regular {
        scroll-margin-top: calc(92px + env(safe-area-inset-top)) !important;
    }

    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    html body .rm-container,
    html body .rm-page-hero > .rm-container,
    html body .rm-price-page .rm-container,
    html body .rv6-directory .rm-container {
        box-sizing: border-box !important;
        width: calc(100% - 36px) !important;
        max-width: calc(100% - 36px) !important;
        min-width: 0 !important;
        margin-inline: auto !important;
    }

    html body .rm-page-hero,
    html body .rm-price-hero,
    html body .rv6-directory__hero,
    html body .rv6-directory__services,
    html body .rv6-directory__classes,
    html body .rv6-directory__final {
        overflow: hidden !important;
    }

    html body .rm-page-hero h1,
    html body .rm-price-hero h1,
    html body .rv6-directory__hero h1,
    html body .rv6-heading h2,
    html body .rv6-directory__services h2,
    html body .rv6-directory__classes h2,
    html body .rv6-directory__final h2 {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    html body .rm-page-hero p,
    html body .rm-price-hero p,
    html body .rv6-directory__hero p,
    html body .rv6-directory__services p,
    html body .rv6-directory__classes p,
    html body .rv6-directory__final p {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    html body .rm-price-hero,
    html body .rv6-directory__hero-grid,
    html body .rv6-directory__final-grid,
    html body .rv6-directory__classes-grid {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    html body .rm-price-hero__copy,
    html body .rm-price-hero__aside,
    html body .rv6-directory__lead,
    html body .rv6-directory__hero-grid > *,
    html body .rv6-directory__final-grid > *,
    html body .rv6-directory__classes-grid > * {
        box-sizing: border-box !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .rm-price-hero__actions,
    html body .rv6-actions,
    html body .rv6-directory :is(.rv6-button, .rv6-text-link),
    html body .rm-price-hero__actions .rm-button {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* The floating duplicate CTA was escaping the viewport on internal pages. */
    html body .rm-mobile-booking-fab {
        display: none !important;
    }

    html body .rm-header__inner {
        position: relative !important;
        width: calc(100% - 36px) !important;
        max-width: none !important;
    }

    html body .rm-burger {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: calc(36px + env(safe-area-inset-top)) !important;
        right: 18px !important;
        z-index: 1100 !important;
        transform: translateY(-50%) !important;
    }

    html body .rm-header__actions,
    html body .rm-header__meta,
    html body .rm-nav:not(.is-open) {
        display: none !important;
    }

    html body .rm-header__inner > .rm-weather-offer,
    html body .rm-header__inner > .rm-weather-offer.is-forecast {
        position: fixed !important;
        top: calc(36px + env(safe-area-inset-top)) !important;
        right: 76px !important;
        left: auto !important;
        bottom: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: 76px !important;
        width: 132px !important;
        max-width: 132px !important;
        z-index: 1099 !important;
        transform: translateY(-50%) !important;
    }

    html body .rm-header__inner > .rm-weather-offer .rm-weather-offer__panel {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(340px, calc(100vw - 24px)) !important;
        max-width: 340px !important;
        max-height: calc(100dvh - 104px - env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        transform: none !important;
    }

    html body .rm-header__inner > .rm-weather-offer:not(.is-collapsed) {
        top: calc(72px + env(safe-area-inset-top) + 12px) !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }

    html body .rm-header__inner > .rm-weather-offer:not(.is-collapsed) .rm-weather-offer__panel {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        max-height: calc(100dvh - 104px - env(safe-area-inset-bottom)) !important;
    }

    html body .r7-hero__lead-desktop {
        display: none !important;
    }

    html body .r7-hero__lead-mobile {
        display: block !important;
    }

    html body .r7-hero,
    html body .r7-hero__inner,
    html body .r7-hero__content,
    html body .r7-hero__lead,
    html body .r7-hero__lead p,
    html body .r7-hero .r7-actions,
    html body .r7-hero__facts {
        box-sizing: border-box !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body .r7-hero__inner {
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 18px !important;
    }

    html body .r7-hero__content {
        display: block !important;
        width: calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
    }

    html body .r7-hero h1 {
        display: block !important;
        width: calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
        margin-inline: 0 !important;
        text-align: left !important;
        font-size: clamp(2rem, 8.6vw, 2.65rem) !important;
        line-height: 1.03 !important;
        letter-spacing: -0.04em !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    html body .r7-hero__lead,
    html body .r7-hero__lead p {
        display: block !important;
        width: calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
        margin-inline: 0 !important;
        font-size: 0.86rem !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body .r7-hero .r7-actions,
    html body .r7-hero .r7-button,
    html body .r7-hero .r7-link {
        width: calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}
/* Production mobile weather contract: the script moves the widget into the
   header at runtime, so the rule must target the widget itself, not only its
   original parent. */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip !important;
    }

    html body .rm-weather-offer,
    html body .rm-weather-offer.is-forecast {
        position: fixed !important;
        top: calc(36px + env(safe-area-inset-top)) !important;
        right: 68px !important;
        left: auto !important;
        bottom: auto !important;
        width: min(156px, calc(100vw - 88px)) !important;
        max-width: min(156px, calc(100vw - 88px)) !important;
        min-width: 0 !important;
        z-index: 1099 !important;
        transform: translateY(-50%) !important;
    }

    html body .rm-weather-offer > .rm-weather-offer__dock,
    html body .rm-weather-offer > .rm-weather-offer__forecast {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body .rm-weather-offer:not(.is-collapsed):not(.is-forecast) {
        top: calc(72px + env(safe-area-inset-top) + 12px) !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }

    html body .rm-weather-offer:not(.is-collapsed):not(.is-forecast) > .rm-weather-offer__panel {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        max-height: calc(100dvh - 104px - env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    html body .rm-weather-offer:not(.is-collapsed):not(.is-forecast) .rm-weather-offer__dock,
    html body .rm-weather-offer:not(.is-collapsed):not(.is-forecast) .rm-weather-offer__forecast {
        display: none !important;
    }

    /* Override the older high-specificity header rules for forecast mode. */
    html body .rm-header__inner > .rm-weather-offer.is-forecast {
        top: calc(36px + env(safe-area-inset-top)) !important;
        right: 68px !important;
        left: auto !important;
        bottom: auto !important;
        width: min(156px, calc(100vw - 88px)) !important;
        max-width: min(156px, calc(100vw - 88px)) !important;
        transform: translateY(-50%) !important;
    }

    html body .rm-header__inner > .rm-weather-offer.is-forecast > .rm-weather-offer__forecast {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html body .rm-header__inner > .rm-weather-offer.is-forecast .rm-weather-offer__forecast-head strong {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: 0.64rem !important;
    }

    html body .rm-header__inner > .rm-weather-offer:not(.is-collapsed):not(.is-forecast) {
        top: calc(72px + env(safe-area-inset-top) + 12px) !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }

    /* Keep the hero background full-bleed; only its inner content is padded. */
    html body .r7-hero {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    /* The hero facts should flow from the CTA without a stray divider above
       the opening hours on narrow screens. */
    html body .r7-hero__facts {
        border-top: 0 !important;
    }

    html body .r7-hero__facts div,
    html body .r7-hero__facts div + div {
        border-right: 0 !important;
    }
}
/* Full-bleed hero: the visual field reaches the viewport edge while content
   remains aligned to the site's readable grid. */
html body .r7-home > .r7-hero,
html body .r7-home > .r7-hero .r7-hero__media,
html body .r7-home > .r7-hero .r7-hero__shade {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

/* Lucci collaboration mark: a quiet stitched signature under the address,
   not a second promo card competing with the hero CTA. */
html body .r7-home > .r7-hero .r7-hero__lucci {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 14px 8px 0;
  align-items: center;
  gap: 14px;
  color: rgba(247, 247, 244, 0.62);
  text-decoration: none;
  border-top: 1px dashed rgba(190, 147, 102, 0.58);
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

html body .r7-home > .r7-hero .r7-hero__lucci:hover,
html body .r7-home > .r7-hero .r7-hero__lucci:focus-visible {
  color: var(--r7-white, #f7f7f4);
  border-color: rgba(247, 247, 244, 0.82);
}

html body .r7-home > .r7-hero .r7-hero__lucci-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 247, 244, 0.88);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

html body .r7-home > .r7-hero .r7-hero__lucci-mark i {
  color: var(--r7-red, #bd8d62);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 400;
}

html body .r7-home > .r7-hero .r7-hero__lucci-note {
  color: rgba(247, 247, 244, 0.76);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

/* First-screen contract: hero owns the opening viewport, service content
   begins only after the visitor starts scrolling. */
html body .r7-home > .r7-hero,
html body .r7-home > .r7-hero .r7-hero__inner {
  min-height: 100svh !important;
}

/* Mobile hero composition: one centered reading axis for the headline,
   supporting copy, actions, and visit facts. */
@media (max-width: 767px) {
  html body .r7-home > .r7-hero .r7-hero__content {
    width: calc(100% - 36px) !important;
    max-width: 354px !important;
    margin-inline: auto !important;
    margin-top: clamp(24px, 4vh, 40px) !important;
    margin-bottom: 0 !important;
    text-align: center !important;
  }

  html body .r7-home > .r7-hero .r7-hero__content h1,
  html body .r7-home > .r7-hero .r7-hero__content p,
  html body .r7-home > .r7-hero .r7-hero__lead,
  html body .r7-home > .r7-hero .r7-hero__lead p {
    max-width: 354px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  html body .r7-home > .r7-hero .r7-hero__content h1 {
    font-family: var(--r7-font-display, "Rosmouka Prata", Georgia, serif) !important;
    font-weight: 400 !important;
    letter-spacing: -0.035em !important;
    line-height: 0.98 !important;
    text-wrap: balance;
  }

  html body .r7-home > .r7-hero .r7-hero__content > button,
  html body .r7-home > .r7-hero .r7-hero__content > a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: 0 1 100% !important;
    margin-inline: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  html body .r7-home > .r7-hero .r7-hero__content > .r7-link {
    align-self: center !important;
    overflow: hidden !important;
  }

  html body .r7-home > .r7-hero .r7-actions,
  html body .r7-home > .r7-hero .r7-button,
  html body .r7-home > .r7-hero .r7-link {
    width: 100% !important;
    max-width: 354px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-inline: auto !important;
  }

  html body .r7-home > .r7-hero .r7-hero__facts {
    width: calc(100% - 36px) !important;
    max-width: 354px !important;
    margin-top: clamp(22px, 4vh, 36px) !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  html body .r7-home > .r7-hero .r7-hero__lucci {
    max-width: calc(100% - 36px) !important;
    margin: 18px auto 0 !important;
    padding: 10px 0 8px !important;
    flex-direction: column !important;
    gap: 7px !important;
    text-align: center !important;
  }

  html body .r7-home > .r7-hero .r7-hero__lucci-note {
    white-space: normal !important;
  }

  /* Give the full-height hero a quiet exit cue instead of dead space. */
  html body .r7-home > .r7-hero .r7-hero__scroll {
    position: absolute !important;
    right: auto !important;
    bottom: 18px !important;
    left: 50% !important;
    display: inline-flex !important;
    width: max-content !important;
    max-width: calc(100% - 36px) !important;
    transform: translateX(-50%) !important;
    align-items: center !important;
    gap: 10px !important;
    color: rgba(247, 247, 244, 0.54) !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.14em !important;
  }

  html body .r7-home > .r7-hero .r7-hero__scroll i {
    width: 26px !important;
    background: rgba(190, 147, 102, 0.8) !important;
  }
}
