/* ══════════════════════════════════════════════════════════════
   SELF-HOSTED FONTS (v5.1.1)
   Cormorant Garamond + Jost — served locally from the plugin.
   Subsets: cyrillic + latin. unicode-range lets the browser download
   only the subset(s) actually used on the page.
   Source: Google Fonts via @fontsource (same binaries as the CDN).
══════════════════════════════════════════════════════════════ */
/* Cormorant Garamond 300 */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic-300-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Cormorant Garamond 300 italic */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic-300-italic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Cormorant Garamond 600 */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Jost 300 */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/jost-cyrillic-300-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Jost 300 italic */
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/jost-cyrillic-300-italic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/jost-latin-300-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Jost 400 */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/jost-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Jost 500 */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/jost-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/*
 * Mony Interactive Services — frontend.css v4.1.0
 *
 * ARCHITECTURE:
 * ─────────────────────────────────────────────────────────────
 * Layout is SIZE-based  (screen width / orientation)
 * Interaction is CAPABILITY-based (hover vs touch)
 *
 * Layout axis:
 *   < 640px              → VERTICAL   (phone portrait)
 *   ≥ 640px              → HORIZONTAL (phone landscape, tablet, desktop)
 *
 * Interaction axis:
 *   (hover:hover)(pointer:fine) → CSS :hover (mouse/trackpad)
 *   everything else             → JS .open class (touch)
 *
 * This means a tablet in landscape = HORIZONTAL layout + TOUCH interaction
 * Previously this was broken because no .open rule expanded flex on tablet.
 * ─────────────────────────────────────────────────────────────
 */

/* Fonts are enqueued by PHP (class-mis-assets.php) — no @import here.
   @import is render-blocking and was double-loading the fonts. */

/* ── Reset ── */
.mis-services *,
.mis-services *::before,
.mis-services *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════════════════════════
   SECTION
══════════════════════════════════════════════════════════════ */
.mis-services {
    padding: 0;
    background: var(--mis-bg, #FAF7F7);
    overflow: hidden;
    font-family: 'Jost', sans-serif;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   HEADING
══════════════════════════════════════════════════════════════ */
.mis-services-heading {
    padding: 0 var(--mis-pad-h, 52px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    gap: 40px;
    transition: opacity 0.7s ease;
}
/* Reveal animation ONLY when JS is running (adds .mis-js to section).
   Without JS everything stays visible — no-JS safe. */
.mis-js .mis-services-heading { opacity: 0; }
.mis-js .mis-services-heading.is-visible { opacity: 1; }

.mis-services-heading.layout-left-right {
    flex-direction: row;
    align-items: flex-end;
}
.mis-services-heading.layout-left-right .mis-section-subtitle {
    text-align: right;
    max-width: 260px;
    align-self: flex-end;
}
.mis-services-heading.layout-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.mis-services-heading.layout-center .mis-heading-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mis-services-heading.layout-center .mis-heading-line { margin: 22px auto 0; }
.mis-services-heading.layout-center .mis-section-subtitle { text-align: center; max-width: 480px; }
.mis-services-heading.layout-left-only {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.mis-services-heading.layout-left-only .mis-section-subtitle { text-align: left; max-width: 480px; }

.mis-section-label {
    display: block;
    font-size: var(--mis-fs-label, 10px);
    font-weight: 500;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: var(--mis-accent, #F3A6AF);
    margin-bottom: 14px;
}
.mis-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--mis-fs-title, 54px);
    font-weight: 300;
    line-height: 0.9;
    color: var(--mis-text-dark, #2A2A2A);
    letter-spacing: -0.025em;
    margin: 0;
}
.mis-section-title em { font-style: italic; color: var(--mis-accent, #F3A6AF); font-weight: 300; }
.mis-heading-line { width: 48px; height: 1px; background: #E8D7D9; margin-top: 22px; }
.mis-section-subtitle {
    font-size: var(--mis-fs-subtitle, 14px);
    font-weight: 300;
    line-height: 1.9;
    color: var(--mis-text-muted, #777);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   GRID — BASE (applies to all horizontal layouts ≥ 640px)
══════════════════════════════════════════════════════════════ */
.mis-services-grid {
    display: flex;
    flex-direction: row;
    gap: var(--mis-panel-gap, 5px);
    background: var(--mis-gap, #E8D7D9);
    overflow: hidden;
    border-radius: var(--mis-radius, 16px);
    align-items: stretch;
    /* Default height — overridden per breakpoint */
    height: var(--mis-panel-h-desktop, 420px);
}

/* ══════════════════════════════════════════════════════════════
   CARD — BASE
══════════════════════════════════════════════════════════════ */
.mis-service-item {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 100%;
    cursor: pointer;
    min-width: 0;
    transition:
        flex    0.55s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s  ease;
}
.mis-js .mis-service-item { opacity: 0; }
.mis-js .mis-service-item.is-visible { opacity: 1; }

/* ── Background image ── */
.mis-service-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8c0c8;
    transform: scale(1.0);
    transition: transform 0.65s ease-in-out;
}

/* ── Gradient overlay ── */
.mis-service-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.00) 0%,
        rgba(0,0,0,0.00) var(--mis-grad-start, 50%),
        var(--mis-grad-bottom, rgba(0,0,0,0.50)) 100%
    );
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* ── Badge ── */
.mis-service-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    background: var(--mis-accent, #F3A6AF);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: var(--mis-fs-badge, 8px);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}

/* ── Collapsed face ── */
.mis-service-front {
    position: absolute;
    z-index: 4;
    bottom: 18px;
    left: 0;
    right: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mis-service-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--mis-fs-panel-title, 14px);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    margin: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Desktop: no mobile icon */
.mis-item-number { display: none; }
.mis-mobile-icon { display: none; }

/* ── WHITE panel (horizontal layout) ── */
.mis-service-list {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #fff;
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* was space-between — caused large gaps on tall panels */
    gap: 0;
    opacity: 0;
    visibility: hidden;  /* removes hidden links from tab order (WCAG) */
    pointer-events: none;
    transition: opacity 0.35s ease 0.08s, visibility 0s linear 0.43s;
    /* Prevent text from breaking at arbitrary points */
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.mis-list-body {
    flex: 0 1 auto;      /* don't grow, CAN shrink — enables overflow scroll on long lists */
    min-height: 0;       /* critical: allows flex child to shrink below content height */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mis-accent, #F3A6AF) transparent;
}
.mis-list-body::-webkit-scrollbar { width: 2px; }
.mis-list-body::-webkit-scrollbar-thumb { background: var(--mis-accent,#F3A6AF); border-radius: 1px; }

.mis-list-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--mis-fs-list-title, 26px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mis-text-dark, #2A2A2A);
    margin: 0 0 5px;
    letter-spacing: -0.01em;
    /* Prevent title from breaking mid-character */
    word-break: keep-all;
    overflow-wrap: normal;
}

.mis-list-device {
    font-family: 'Jost', sans-serif;
    font-size: var(--mis-fs-device, 10px);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--mis-accent, #F3A6AF);
    margin-bottom: 14px;
    margin-top: 4px;
    font-style: italic;
    min-height: 14px;
}

.mis-list-sep { width: 40px; height: 1px; background: #E8D7D9; margin-bottom: 12px; }

.mis-list-items { list-style: none; margin: 0; padding: 0; }
.mis-list-items li {
    font-family: 'Jost', sans-serif;
    font-size: var(--mis-fs-items, 13px);
    font-weight: 300;
    color: var(--mis-text-dark, #2A2A2A);
    padding: 5px 0;
    border-bottom: 1px solid #F3EEF0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.mis-list-items li:first-child { border-top: 1px solid #F3EEF0; }
.mis-list-items li::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--mis-accent, #F3A6AF);
    flex-shrink: 0;
}

.mis-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Jost', sans-serif;
    font-size: var(--mis-fs-cta, 10px);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mis-text-dark, #2A2A2A);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid #E8D7D9;
    transition: color 0.22s ease, border-color 0.22s ease;
    align-self: flex-start;
    margin-top: 16px;
    flex-shrink: 0;
}
.mis-service-btn:hover { color: var(--mis-accent,#F3A6AF); border-color: var(--mis-accent,#F3A6AF); }
.mis-service-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; transition: transform 0.22s ease; }
.mis-service-btn:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════
   INTERACTION: MOUSE / TRACKPAD
   Only applies when device has true hover capability
══════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {

    /*
     * Fixed pixel width for open panel — works correctly regardless of
     * how many panels exist (4, 6, 8...). Clamped with min/max for safety.
     */
    .mis-service-item:hover {
        flex: 0 0 clamp(280px, 37vw, var(--mis-panel-open-w, 420px));
        min-width: 280px;
        max-width: 55vw;
    }

    .mis-service-item:hover .mis-service-image    { transform: scale(1.05); }
    .mis-service-item:hover .mis-service-list     { opacity: 1; visibility: visible; transition-delay: 0.08s, 0s; pointer-events: all; }
    .mis-service-item:hover .mis-service-front    { opacity: 0; }
    .mis-service-item:hover .mis-service-gradient { opacity: 0; }
    .mis-service-item:hover .mis-service-badge    { opacity: 0; }

    /* Focus ring + expand */
    .mis-service-item:focus-visible {
        box-shadow: inset 0 0 0 2px var(--mis-accent,#F3A6AF);
        outline: none;
        flex: 0 0 clamp(280px, 37vw, var(--mis-panel-open-w, 420px));
        min-width: 280px;
        max-width: 55vw;
    }
    .mis-service-item:focus-visible .mis-service-list    { opacity: 1; visibility: visible; transition-delay: 0.08s, 0s; pointer-events: all; }
    .mis-service-item:focus-visible .mis-service-front   { opacity: 0; }
    .mis-service-item:focus-visible .mis-service-gradient{ opacity: 0; }
    .mis-service-item:focus-visible .mis-service-badge   { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   INTERACTION: TOUCH — .open CLASS ON HORIZONTAL LAYOUT
   Applies to tablets, phone landscape (≥ 640px touch devices)
   This was THE missing piece causing tablet breakage.
══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {

    /*
     * clamp() — adapts automatically to any screen width:
     *   280px  = minimum readable width (floor)
     *   37vw   = sweet spot for tablet + phone landscape
     *            744px → ~275px → hits 280px floor ✓
     *            852px → ~315px ✓
     *            915px → ~338px ✓
     *           1440px → ~533px → hits max (420px) ✓
     *   max    = --mis-panel-open-w from settings (user controlled)
     */
    .mis-service-item.open {
        flex: 0 0 clamp(280px, 37vw, var(--mis-panel-open-w, 420px));
        min-width: 280px;
        max-width: 55vw;
    }

    .mis-service-item.open .mis-service-image   { transform: scale(1.05); }
    .mis-service-item.open .mis-service-list    { opacity: 1; visibility: visible; transition-delay: 0.08s, 0s; pointer-events: all; }
    .mis-service-item.open .mis-service-front   { opacity: 0; }
    .mis-service-item.open .mis-service-gradient{ opacity: 0; }
    .mis-service-item.open .mis-service-badge   { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   CLOSE BUTTON — visible on ALL touch devices (any size)
══════════════════════════════════════════════════════════════ */
.mis-close-btn { display: none; }

@media (hover: none) and (pointer: coarse) {
    .mis-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(243,166,175,0.35);
        cursor: pointer;
        z-index: 20;
        padding: 0;
        pointer-events: all !important;
        transition: background 0.2s ease;
    }
    .mis-close-btn:active { background: #F3A6AF; }
    .mis-close-btn svg { width: 10px; height: 10px; stroke: #2A2A2A; fill: none; flex-shrink: 0; }
    .mis-close-btn:active svg { stroke: #fff; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.mis-services-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--mis-pad-h, 52px) 40px;
}
.mis-footer-hint {
    font-size: 10px;
    font-weight: 300;
    color: var(--mis-text-muted, #777);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.mis-footer-hint svg { width: 13px; height: 13px; stroke: var(--mis-accent,#F3A6AF); fill: none; flex-shrink: 0; }
.mis-footer-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Jost', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mis-text-dark, #2A2A2A);
    text-decoration: none;
    border-bottom: 1px solid #E8D7D9;
    padding-bottom: 2px;
    transition: color 0.22s ease, border-color 0.22s ease;
}
.mis-footer-all:hover { color: var(--mis-accent,#F3A6AF); border-color: var(--mis-accent,#F3A6AF); }
.mis-footer-all svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .mis-service-item,
    .mis-service-image,
    .mis-service-front,
    .mis-service-list,
    .mis-services-heading { transition: none !important; }
    .mis-services-heading { opacity: 1 !important; }
    .mis-service-item     { opacity: 1 !important; }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: DESKTOP (≥ 1024px)
══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .mis-services-grid { height: var(--mis-panel-h-desktop, 420px); }
    .mis-footer-hint { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: TABLET (640px – 1023px)
   Horizontal layout + touch interaction
══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) and (max-width: 1023px) {

    .mis-services-grid { height: var(--mis-panel-h-tablet, 360px); }

    .mis-services-heading { padding: 0 28px; margin-bottom: 24px; }
    .mis-section-title { font-size: var(--mis-fs-title-tablet, 38px); }
    .mis-services-footer { padding: 12px 28px 28px; }

    /* Hide hover hint on touch tablet */
    .mis-footer-hint { display: none; }

    /* Tablet: slightly smaller panel content fonts */
    .mis-list-title {
        font-size: clamp(18px, 2.8vw, var(--mis-fs-list-title, 26px));
    }
    .mis-list-items li {
        font-size: clamp(11px, 1.4vw, var(--mis-fs-items, 13px));
        padding: 4px 0;
    }
    .mis-list-device { font-size: 9px; }
    .mis-service-btn { font-size: 8.5px; margin-top: 10px; }
    .mis-service-list { padding: 20px 18px 18px; }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: PHONE LANDSCAPE
   Short height, horizontal layout, touch interaction
   Criteria: width ≥ 640px AND height ≤ 500px AND orientation landscape
══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) and (max-height: 500px) and (orientation: landscape) {

    .mis-services-grid { height: var(--mis-panel-h-landscape, 220px); }

    .mis-services-heading {
        margin-bottom: 12px;
        flex-direction: row;
    }
    .mis-section-title { font-size: 28px; }

    /* Compact content in short panels */
    .mis-list-title { font-size: 16px; }
    .mis-list-items li { font-size: 10px; padding: 3px 0; }
    .mis-list-device { font-size: 8.5px; margin-bottom: 6px; }
    .mis-list-sep { margin-bottom: 6px; }
    .mis-service-btn { margin-top: 8px; font-size: 8px; }
    .mis-service-list { padding: 14px 16px 14px; }
    .mis-services-footer { padding: 8px 24px 16px; }
}

/* ── Mobile image position ── per-card via CSS custom property ── */
@media (max-width: 639px) {
    .mis-service-image {
        background-position: var(--mis-img-pos-mobile, 50% 20%) !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: PHONE PORTRAIT (< 640px)
   VERTICAL stacked layout + touch interaction
══════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {

    /* ── Heading ── */
    .mis-services-heading {
        padding: 0 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    .mis-section-title { font-size: var(--mis-fs-title-mobile, 34px); }
    .mis-section-subtitle { text-align: left; max-width: 100%; font-size: 13px; }
    .mis-heading-line { display: none; }
    .mis-footer-hint { display: none; }

    /* ── Grid: vertical stack ── */
    .mis-services-grid {
        flex-direction: column;
        height: auto;
        gap: var(--mis-panel-gap, 5px);
        border-radius: var(--mis-radius, 16px);
    }

    /* ── Card: collapsed height via max-height for smooth animation ── */
    .mis-service-item {
        flex: none;
        height: auto;
        min-height: var(--mis-panel-h-mobile, 150px);
        max-height: var(--mis-panel-h-mobile, 150px);
        overflow: hidden;
        transition:
            max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
            opacity    0.5s  ease;
    }

    /* Expanded: large max-height so all content shows without inner scroll */
    .mis-service-item.open {
        flex: none;          /* cancel horizontal .open flex rule */
        max-height: 900px;   /* large enough for any content */
    }

    /* ── Collapsed face ── */
    .mis-service-front {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        bottom: 14px;
        top: auto;
        transform: none;
        padding: 0 16px;
    }
    .mis-service-item.open .mis-service-front { opacity: 0; }

    .mis-service-title {
        font-size: var(--mis-fs-panel-title-mobile, 17px);
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        padding-right: 10px;
    }

    /* ── Badge ── */
    .mis-service-badge {
        top: 12px;
        left: 12px;
        font-size: var(--mis-fs-badge-mobile, 8px);
        padding: 3px 8px;
    }

    /* ── + icon ── */
    .mis-mobile-icon {
        display: flex;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.5);
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: 8px;
        transition:
            transform    0.32s ease,
            background   0.25s ease,
            border-color 0.25s ease;
    }
    .mis-mobile-icon svg { width: 10px; height: 10px; stroke: #fff; fill: none; }
    .mis-service-item.open .mis-mobile-icon {
        transform: rotate(45deg);
        background: var(--mis-accent, #F3A6AF);
        border-color: var(--mis-accent, #F3A6AF);
    }

    /* ── White panel: RELATIVE flow (no scroll trap) ── */
    .mis-service-list {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        display: block;
        padding: 18px 16px 20px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.32s ease 0.1s, visibility 0s linear 0.42s;
    }

    .mis-service-item.open .mis-service-list {
        opacity: 1;
        visibility: visible;
        transition-delay: 0.1s, 0s;
        pointer-events: all;
    }

    /* List body: no overflow on mobile */
    .mis-list-body {
        overflow: visible;
        max-height: none;
    }

    /* Image: fixed at top, content below */
    .mis-service-item.open .mis-service-image {
        position: absolute;
        top: 0;
        bottom: auto;
        height: var(--mis-panel-h-mobile, 150px);
    }

    /* White panel pushes below the image */
    .mis-service-item.open .mis-service-list {
        margin-top: var(--mis-panel-h-mobile, 150px);
    }

    /* Panel state */
    .mis-service-item.open .mis-service-gradient { opacity: 0; }
    .mis-service-item.open .mis-service-badge    { opacity: 0; }

    /* Typography */
    .mis-list-title    { font-size: var(--mis-fs-list-title-mobile, 22px); word-break: keep-all; }
    .mis-list-items li { font-size: var(--mis-fs-items-mobile, 13px); padding: 6px 0; }
    .mis-service-btn   { margin-top: 14px; font-size: var(--mis-fs-cta-mobile, 10px); }

    /* Footer */
    .mis-services-footer { padding: 12px 18px 24px; }
}

/* ══════════════════════════════════════════════════════════════
   DUAL BUTTON ROW (v5.1.0)
   Two buttons in one panel (e.g. combined Manicure + Pedicure card).
   Back-compatible: single-button services are unaffected.
══════════════════════════════════════════════════════════════ */
.mis-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

/* Row owns the top spacing when buttons are grouped (avoid double gap). */
.mis-btn-row .mis-service-btn {
    margin-top: 0;
}

/* Second button — slightly muted so the primary reads first. */
.mis-service-btn--alt {
    color: var(--mis-text-muted, #8A7B7D);
    border-bottom-color: #EFE3E4;
}
.mis-service-btn--alt:hover {
    color: var(--mis-accent, #F3A6AF);
    border-bottom-color: var(--mis-accent, #F3A6AF);
}

/* Narrow panels: stack the two buttons vertically for readability. */
@media (max-width: 560px) {
    .mis-btn-row--dual {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
