/*
 * Rosmouka polish layer
 *
 * A small, intentionally final stylesheet for cross-page interaction quality.
 * Keep structural page rules in rosmouka-v9.css; keep this file limited to
 * accessibility, motion restraint and shared micro-interactions.
 */

/* The bronze used for filled controls needs a darker text variant on paper.
   Keep dark panels and the brand's button fills unchanged. */
html body .rm-section:not(.rm-section--dark) .rm-section-head > .rm-kicker,
html body .rm-gift-card .rm-kicker,
html body .rm-career-application__copy .rm-kicker,
html body :is(.rm-booking-modal__dialog, .rm-gift-order-modal__dialog, .rm-faq-modal__dialog) .rm-kicker,
html body .rm-booking-direct__index,
html body .rv6-directory__services .rv6-label,
html body .rv6-directory-card__actions button {
    color: #76512f;
}
html body .rm-booking-modal__dialog .rm-booking-modal__context { color: #1a1815; }
html body .rm-price-page .rm-ppf-summary-card .rm-calc-label { color: #c9a680; }

/* Service categories remain legible on the charcoal home-page cards. */
html body .r9-hero-service__index { color: #d8b98f; }
html body .r9-hero-service__copy small { color: #a5a5a0; }
html body :is(.r9-hero-service__index, .r9-hero-service__copy small) {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Measure natural panel height, not the height stretched by its grid stage. */
.rm-calc-stage {
    align-items: start;
}
.rm-calc-stage:not(.is-switching) {
    height: auto !important;
}

/* Short class labels form one compact, touch-sized choice on mobile too. */
.rm-segmented[data-role="class-selector"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.rm-segmented[data-role="class-selector"] .rm-segmented__button {
    min-height: 48px;
    padding: 12px 4px;
    text-align: center;
    font-size: clamp(12px, 3.3vw, 16px);
    white-space: nowrap;
}

/* Show one accordion action at a time, without turning labels into cards. */
.rm-price-card__head .rm-price-card__action {
    width: auto;
    padding: 0;
    min-height: 0;
    font-size: 12px;
    color: inherit;
}
.rm-price-card:not([open]) .rm-price-card__action--open,
.rm-price-card[open] .rm-price-card__action--closed {
    display: none;
}
.rm-price-stack + .rm-button,
.rm-service-price-grid + .rm-button {
    margin-top: 20px;
}
.rm-contact-card a:not(.rm-button) {
    color: #d8b98f;
    text-underline-offset: 4px;
}

:root {
    --rm-accent: #b4885d;
    --rm-accent-hover: #c7a47a;
    --rm-accent-ink: #17120d;
    --rm-focus: #d8b98f;
    --rm-ease-out: cubic-bezier(0.2, 0, 0, 1);
    --rm-shadow-control:
        0 0 0 1px rgba(23, 18, 13, 0.08),
        0 8px 22px rgba(74, 50, 28, 0.18);
    --rm-shadow-control-hover:
        0 0 0 1px rgba(23, 18, 13, 0.1),
        0 12px 28px rgba(74, 50, 28, 0.24);
}
html body .rm-breadcrumbs { align-items: center; flex-wrap: wrap; }
.rm-page-hero--contacts { padding-bottom: clamp(32px, 5vw, 64px); }
html body :is(h1, h2) { text-wrap: balance; }
@media (min-width: 1024px) and (max-width: 1279px) {
    html body .rm-nav { gap: 14px; }
    html body .rm-header__inner > .rm-weather-offer .rm-weather-offer__forecast-head strong { display: none; }
}

/* Keep motion interruptible and animate only the properties that change. */
.r7-button,
.rm-button,
.rm-header__cta,
.rv6-directory :is(.rv6-button, .rv6-text-link) {
    transition-property: transform, color, background-color, border-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: var(--rm-ease-out);
}

.r7-button--primary,
.rm-button--primary,
.rm-header__cta,
.rv6-directory .rv6-button--dark {
    color: var(--rm-accent-ink);
    background: var(--rm-accent);
    border-color: var(--rm-accent);
    box-shadow: var(--rm-shadow-control);
}

@media (hover: hover) and (pointer: fine) {
    .r7-button--primary:hover,
    .rm-button--primary:hover,
    .rm-header__cta:hover,
    .rv6-directory .rv6-button--dark:hover {
        color: var(--rm-accent-ink);
        background: var(--rm-accent-hover);
        border-color: var(--rm-accent-hover);
        box-shadow: var(--rm-shadow-control-hover);
        transform: translateY(-2px);
    }
}

.r7-button:active,
.rm-button:active,
.rm-header__cta:active,
.rv6-directory :is(.rv6-button, .rv6-text-link):active,
.r9-hero-service:active,
.r7-gift__cards button:active {
    transform: scale(0.96);
}

.r7-button:focus-visible,
.rm-button:focus-visible,
.rm-header__cta:focus-visible,
.rv6-directory :is(.rv6-button, .rv6-text-link):focus-visible,
.rm-segmented__button:focus-visible,
.rm-option-card:focus-visible,
.rm-ppf-class-card:focus-visible,
.rm-ppf-film-card:focus-visible,
.rm-ppf-package-card:focus-visible,
.rm-ppf-zone-chip:focus-visible {
    outline: 3px solid var(--rm-focus);
    outline-offset: 3px;
}

/* Links that look compact still need comfortable pointer and touch targets. */
.r7-review-card > a,
.r7-hero__scroll,
.rm-breadcrumbs a,
.rm-footer__collab {
    min-height: 44px;
    align-items: center;
}

.r7-review-card > a,
.rm-breadcrumbs a,
.rm-footer__collab {
    display: inline-flex;
}

/* Calm the perpetual scene animation; interaction and section reveals remain. */
.r7-hero::after,
.rm-page-hero::after,
.r7-hero__media img {
    animation: none;
}

.r7-hero__media img {
    will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
    .r7-hero__media img,
    .r7-contact__media img {
        transition-property: transform, filter;
        transition-duration: 720ms, 320ms;
        transition-timing-function: var(--rm-ease-out);
    }
}

/* Mobile typography: preserve editorial hierarchy without micro-text. */
@media (max-width: 760px) {
    .r7-button,
    .rm-button,
    .rm-header__cta,
    .r7-kicker,
    .r7-hero__eyebrow,
    .r7-hero__facts span,
    .r9-hero-service__index,
    .r9-hero-service__copy small,
    .r7-process__steps > li > span,
    .r7-reviews__toolbar,
    .rm-weather-offer__forecast-head strong,
    .rm-footer__collab span,
    .rm-footer__legal,
    .rm-footer__operator {
        font-size: 0.75rem;
    }

    .r7-button,
    .rm-button,
    .rm-header__cta {
        min-height: 48px;
    }

    .rm-weather-offer__forecast-head strong {
        max-width: 78px !important;
        font-size: 0.75rem !important;
        text-overflow: ellipsis;
    }

    .r7-hero__lead p {
        line-height: 1.58;
    }
}

/* Official reviews are intentionally loaded only on request. */
html body .rm-live-reviews { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1fr); align-items: start; gap: clamp(32px, 6vw, 88px); }
html body .rm-live-reviews__copy h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; margin: 20px 0; }
html body .rm-live-reviews__copy p { line-height: 1.65; }
html body .rm-live-reviews__note { font-size: 14px; line-height: 1.6; opacity: .8; }
html body .rm-live-reviews__frame { width: 100%; max-width: 760px; min-width: 0; }
html body .rm-live-reviews__placeholder { min-height: 380px; display: grid; align-content: center; justify-items: start; gap: 16px; padding: clamp(24px, 4vw, 48px); background: #f7f4ee; color: #191d1e; border: 1px solid #d9d3ca; border-radius: 16px; }
html body .rm-live-reviews__placeholder :is(h3, p) { margin: 0; color: #191d1e; }
html body .rm-live-reviews__frame iframe { display: block; width: 100%; height: 600px; border: 1px solid #d9d3ca; border-radius: 16px; background: #fff; }
html body .rm-live-reviews [hidden] { display: none; }
@media (max-width: 767px) { html body .rm-live-reviews { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) { html body .rm-live-reviews__frame { width: calc(100% + 20px); margin-left: -10px; } }

/* Gallery: truthful photography, consistent proportions and a usable viewer. */
html body .rm-gallery-grid { align-items: stretch; gap: clamp(20px, 3vw, 36px); }
html body .rm-gallery-card__media { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; overflow: hidden; }
html body .rm-gallery-card__open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: zoom-in; }
html body .rm-gallery-card__open img { width: 100%; height: 100%; object-fit: cover; }
html body .rm-gallery-card__body h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
html body .rm-lightbox__dialog { padding-top: 44px; max-height: calc(100dvh - 32px); overflow-y: auto; }
html body .rm-lightbox__image { max-height: calc(100dvh - 220px); }
html body .rm-lightbox__image[hidden], html body .rm-lightbox__status[hidden] { display: none; }
html body .rm-lightbox__close { top: 0; right: 0; }
html body .rm-lightbox__status { min-height: 180px; display: grid; place-items: center; text-align: center; color: #f7f4ee; padding: 32px; }
html body .rm-lightbox__caption { letter-spacing: normal; line-height: 1.5; }
html body .rm-lightbox__controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; color: #f7f4ee; }
html body .rm-lightbox__controls button { width: 48px; height: 48px; border: 1px solid #77716a; background: #191d1e; color: #f7f4ee; border-radius: 50%; cursor: pointer; font-size: 22px; }
html body .rm-lightbox__counter { font-variant-numeric: tabular-nums; min-width: 48px; text-align: center; }
html body .rm-lightbox__original { color: #f7f4ee; padding: 12px; text-decoration: underline; text-underline-offset: 4px; }
html body .rm-lightbox :is(button, a):focus-visible { outline: 2px solid #c49a68; outline-offset: 3px; }
html body .rm-cookie-settings { display: block; width: fit-content; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
html body .rm-cookie-settings:focus-visible { outline: 2px solid #c49a68; outline-offset: 4px; }
@media (min-width: 1024px) { html body .rm-trust-strip__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    html body .rm-gallery-grid { grid-template-columns: minmax(0, 1fr); }
    html body .rm-lightbox__original { flex-basis: 100%; text-align: center; }
    html body .rm-lightbox__image { max-height: calc(100dvh - 260px); }
}

/* Hide mobile scrollbar chrome, not scrolling itself (including nested dialogs
   and horizontal price tables). Coarse touch input also covers phone landscape. */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    html,
    body,
    body * {
        scrollbar-width: none !important;
        scrollbar-gutter: auto !important;
        -ms-overflow-style: none !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    body *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Certificate selection stays legible without relying on a subtle colour change. */
.rm-gift-order-form__amount {
    position: relative;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 10px;
    transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}

.rm-gift-order-form__amount::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    visibility: hidden;
}

.rm-gift-order-form__amount.is-active {
    color: #fff;
    background: #252321;
    border-color: #252321;
}

.rm-gift-order-form__amount.is-active::after {
    visibility: visible;
}

.rm-gift-order-form__amount:focus-visible {
    outline: 2px solid #65523c;
    outline-offset: 3px;
}

.rm-gift-order-form__amount-hint {
    color: #59544d;
    font-size: 0.8125rem;
    line-height: 1.5;
    min-height: 1.5em;
}

[data-gift-amount-selector][aria-invalid="true"] + .rm-gift-order-form__amount-hint {
    color: #9b3030;
}

@media (prefers-reduced-motion: reduce) {
    .rm-gift-order-form__amount {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }

    .r7-button,
    .rm-button,
    .rm-header__cta,
    .r9-hero-service,
    .r7-gift__cards button,
    .r7-hero__media img,
    .r7-contact__media img,
    [data-r7-reveal] {
        animation: none;
        transition-duration: 0.01ms;
        transition-delay: 0ms !important;
    }
}
/* Readable text on both light pricing panels and dark process panels. */
html body .r7-price .r7-kicker,
html body .r7-price__list > div > b { color: #76512f; }
html body .r7-price .r7-heading > p,
html body .r7-price__list small { color: #575750; }
html body .r7-process .r7-kicker,
html body .r7-gift .r7-kicker { color: #c9a680; }
html body .r7-process__steps > li > p { color: #b8b8af; }
html body .r7-gift__cards button small { color: inherit; }
/* Price-page labels retain their hierarchy without low-contrast beige text. */
html body .rm-price-page .rm-section:not(.rm-section--dark) .rm-kicker,
html body .rm-price-page .rm-calc-card .rm-kicker { color: #76512f; }
html body .rm-price-page .rm-section--dark .rm-kicker { color: #c9a680; }
html body .rm-price-page .rm-trust-pill__text,
html body .rm-price-page .rm-section:not(.rm-section--dark) .rm-section-head > p,
html body .rm-price-page .rm-calc-switcher__button[aria-selected="false"] .rm-calc-switcher__title,
html body .rm-price-page .rm-calc-label,
html body .rm-price-page .rm-option-card__meta,
html body .rm-price-page .rm-price-table thead th,
html body .rm-price-page .rm-gift-copy > p { color: #575750; }
html body .rm-price-page .rm-section--dark .rm-section-head > p { color: #b8b8af; }
/* Author display rules must not override the native hidden state of forms/panels. */
html body [hidden] { display: none !important; }
html body .rm-live-reviews__placeholder .rm-kicker { color: #76512f; }
/* Animate geometry, not text legibility (also keeps offscreen content readable). */
html.r7-motion body [data-r7-reveal] { opacity: 1; }
/* Search uses the same quiet card system as service pages, not raw pink links. */
html body .rm-search-form { display: flex; flex-wrap: wrap; gap: 12px; }
html body .rm-search-form input { flex: 1 1 180px; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid #b7b1a8; border-radius: 10px; }
html body .rm-search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
html body .rm-search-result { min-width: 0; padding: 24px; border: 1px solid #ded8cf; border-radius: 16px; background: #fbfaf7; }
html body .rm-search-result h3 { margin: 12px 0; font-size: clamp(22px,2vw,28px); line-height: 1.2; }
html body .rm-search-result h3 a { color: #17191b; }
html body .rm-search-result > a,
html body .rm-search-result .rm-kicker,
html body .rm-search-section .rm-section-heading .rm-kicker { color: #76512f; }
html body .rm-search-result p { color: #575750; line-height: 1.6; margin: 0 0 18px; }
html body .rm-form-success .rm-button--secondary,
html body .rm-form-success .rm-button--ghost { color: #17191b; border-color: #8b8379; }
@media (hover: hover) {
    html body .rm-form-success .rm-button--secondary:hover,
    html body .rm-form-success .rm-button--ghost:hover { color: #17191b; background: #e0d8cc; }
}
@media (max-width: 640px) {
    html body .rm-search-results { grid-template-columns: minmax(0,1fr); }
    html body .rm-search-result { padding: 20px; }
}

/* Final visual acceptance: readable shared components, not a second theme. */
html body .rm-footer__rating-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 18px 20px;
    white-space: normal;
}
html body .rm-footer__rating-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
html body .rm-footer__rating-link .rm-rating-link__label { font-size: 13px; line-height: 1.5; }
html body .rm-footer__rating-action { font-size: 13px; line-height: 1.5; }
html body .rm-footer__rating-top strong { font-size: 24px; line-height: 1.2; }
html body .rm-form-consent > span {
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.55;
    text-transform: none;
    letter-spacing: normal;
}
html body .rm-career-application { display: grid; gap: 20px; }
html body .rm-career-application__copy .rm-career-application__note { color: #55504a; margin-top: 18px; }
html body .rm-career-application__copy .rm-contact-actions { margin-top: 20px; gap: 12px; }
html body .rm-career-application__copy .rm-button { color: #17191b; border-color: #77716a; }
html body .rm-career-application__copy .rm-button:hover { background: #17191b; color: #fbfaf7; }
html body :is(.rm-career-form, .rm-gift-order-form) :is(.rm-form-consent a, .rm-gift-order-form__legal a) {
    color: #76512f;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html body .rm-section--dark > .rm-container > p > a[href*="privacy-policy"] {
    color: #d8b98f;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html body :is(.rm-form-consent, .rm-gift-order-form__legal) a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
html body .rm-form-consent input[type="checkbox"] { height: 20px; min-height: 20px; align-self: start; }
html body .rm-calc-result__items:empty { display: none; }
html body .rm-consent-card .rm-button--primary { background: #b4885d; color: #17191b; border-color: #b4885d; }
html body .rm-consent-card .rm-button--primary:hover { background: #c49a70; border-color: #c49a70; }
html body .r7-home .rm-live-reviews__copy .rm-button--secondary { color: #fbfaf7; border-color: #b8b8af; }
@media (hover: hover) {
    html body .r7-home .rm-live-reviews__copy .rm-button--secondary:hover { color: #17191b; background: #fbfaf7; border-color: #fbfaf7; }
}
html body .rm-price-scroll-hint { margin: 0 0 12px; color: #575750; font-size: 13px; line-height: 1.5; }
html body .rm-price-table-wrap:focus-visible { outline: 2px solid #76512f; outline-offset: 3px; }
html body :is(.rm-gallery-card img, .rv6-service-card__media img) { outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
html body .rm-price-nav { flex-wrap: wrap; overflow-x: visible; }
@media (max-width: 1023px) {
    html body .rm-nav > a {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 17px;
        font-weight: 500;
        letter-spacing: .01em;
        color: #fbfaf7;
    }
    html body .rm-nav > a:focus-visible { outline: 2px solid #d8b98f; outline-offset: -2px; }
    html body .rm-price-nav { flex-wrap: wrap; overflow-x: visible; gap: 8px; }
    html body .rm-price-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        white-space: normal;
        font-size: 13px;
        line-height: 1.4;
        padding: 10px 14px;
    }
}
@media (max-width: 640px) {
    html body .rm-section-head h2 { font-size: clamp(28px, 8vw, 32px) !important; line-height: 1.14; }
    html body .rm-gift-card h2 { font-size: clamp(27px, 7.5vw, 30px); line-height: 1.15; }
    /* Keep actual table/header semantics. Each service becomes one readable row
       with all vehicle classes visible, rather than an unmarked horizontal crop. */
    html body .rm-price-table { display: block; width: 100%; min-width: 0; }
    html body .rm-price-table thead {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip-path: inset(50%); white-space: nowrap;
    }
    html body .rm-price-table tbody { display: block; }
    html body .rm-price-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 8px;
        padding: 18px 0;
        border-bottom: 1px solid #ded8cf;
    }
    html body .rm-price-table tbody th[scope="row"] {
        grid-column: 1 / -1;
        padding: 0;
        border: 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.45;
        text-align: left;
    }
    html body .rm-price-table tbody td {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0;
        border: 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }
    html body .rm-price-table tbody td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 400;
        color: #575750;
    }
    html body .rm-price-table tbody td:only-of-type { grid-column: 1 / -1; }
    html body .rm-price-table-wrap { overflow: visible; }
}

/* Keep modal headings, close controls and booking steps inside the viewport
   when visitors enlarge text. Flexible tracks may shrink below min-content. */
html body :is(.rm-booking-modal__header, .rm-gift-order-modal__header) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}
html body :is(.rm-booking-modal__copy, .rm-gift-order-modal__copy) {
    min-width: 0;
    overflow-wrap: anywhere;
}
html body .rm-booking-direct__steps {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5em), 1fr));
}
html body .rm-booking-direct__steps li {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Keep the address and route usable when the optional map cannot load. */
html body .rm-contact-map.is-requested {
    display: grid;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #424848;
    border-radius: 16px;
    background: #151b1b;
}
html body .rm-contact-map.is-requested .rm-contact-map__fallback {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: center;
    min-width: 0;
    padding: 20px 24px;
    color: #f7f7f2;
}
html body .rm-contact-map__fallback > :is(.rm-kicker, h3, p) {
    grid-column: 1;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
html body .rm-contact-map__fallback > .rm-kicker {
    color: #d8b98f;
    font-size: 12px;
    line-height: 1.5;
}
html body .rm-contact-map__fallback > h3 {
    color: #f7f7f2;
    font-size: 20px;
    line-height: 1.35;
}
html body .rm-contact-map__fallback > p {
    color: #c7cfcc;
    font-size: 14px;
    line-height: 1.5;
}
html body .rm-contact-map__fallback .rm-contact-map__actions {
    grid-column: 2;
    grid-row: 1 / 4;
    min-width: 0;
}
html body .rm-contact-map__fallback .rm-button {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
}
html body .rm-contact-map.is-requested > iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}
@media (max-width: 640px) {
    html body .rm-contact-map.is-requested .rm-contact-map__fallback {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 18px;
    }
    html body .rm-contact-map__fallback .rm-contact-map__actions {
        grid-column: 1;
        grid-row: auto;
    }
    html body .rm-contact-map__fallback .rm-button {
        width: 100%;
    }
}
