/**
 * Hermes Miami page — page-unique sections only.
 *
 * Shared editorial primitives live in css/core/editorial.css (.cjw-ed). This
 * page is the handbag sister to the watch money pages and reuses the same
 * deltas (warm paper, serif index numerals, dark/light band alternation, hover
 * micro-states, button press lift) so the set reads as one system. The
 * page-unique element is the serif inventory index in section 3 — a typographic
 * counterpart to the icon grid on page-watch-repair-miami.css.
 *
 * Scope: .cjw-ed--hm. Tokens come from the --ed-* aliases in editorial.css.
 * Loaded only when templates/page-hermes-miami.php is active.
 */

/* --- Page-local token overrides --------------------------------------- */
.cjw-ed--hm {
    --ed-paper-alt: #faf8f5;                        /* warm paper, faint box-tone */
    --ed-pad-y:     clamp(56px, 8vw, 96px);
    --ed-ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* Focus ring (a11y) shared across this page's interactive elements. */
.cjw-ed--hm a:focus-visible,
.cjw-ed--hm .cjw-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Eyebrow: leading tick (editorial signal) ------------------------- */
.cjw-ed--hm .cjw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.cjw-ed--hm .cjw-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}
.cjw-ed--hm .cjw-hero .cjw-eyebrow::before { background: var(--ed-on-dark-soft); }

/* --- Buttons: subtle press lift --------------------------------------- */
.cjw-ed--hm .cjw-btn:hover { transform: translateY(-1px); }
.cjw-ed--hm .cjw-btn:active { transform: translateY(0); }

/* --- Hero (per-page type scale) --------------------------------------- */
.cjw-ed--hm .cjw-hero__title {
    font-size: clamp(36px, 5.8vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 15ch;
    margin: 0 0 22px;
}
.cjw-ed--hm .cjw-hero__lead {
    font-family: var(--ed-serif);
    font-size: clamp(22px, 3.4vw, 42px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 26px;
}
.cjw-ed--hm .cjw-hero__lead em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.62);
}
.cjw-ed--hm .cjw-hero__subtitle { max-width: 58ch; }
.cjw-ed--hm .cjw-hero__note {
    margin-top: 24px;
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ed-on-dark-soft);
}

/* CTA cluster (hero + final band). Inline variant for the sell split. */
.hm-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
}
.hm-ctas--inline { margin-top: 28px; }

/* --- Section lede (looser leading) ------------------------------------ */
.cjw-ed--hm .cjw-section__lede {
    margin-top: 16px;
    line-height: 1.7;
}

/* --- 3. Inventory (serif model index) — page-unique centerpiece ------- */
.hm-models {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ed-rule);
}
.hm-model {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1.35fr) minmax(0, 0.65fr) minmax(0, 1.4fr);
    align-items: baseline;
    column-gap: 28px;
    padding: 26px 8px 26px 14px;
    border-bottom: 1px solid var(--ed-rule);
    transition: background 0.3s var(--ed-ease);
}
/* left reveal keyline on hover (vertical, rides the row's left edge) */
.hm-model::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 0;
    width: 2px;
    background: var(--ed-ink);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--ed-ease);
}
.hm-model:hover { background: var(--ed-paper-alt); }
.hm-model:hover::before { transform: scaleY(1); }

.hm-model__idx {
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ed-mute-soft);
    padding-top: 6px;
}
.cjw-ed--hm .hm-model__name {
    font-family: var(--ed-serif);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ed-ink);
}
.hm-model__spec {
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ed-mute);
    white-space: nowrap;
}
.hm-model__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ed-mute);
}

/* Materials strip — hardware finishes as a keyline tag list + rotation note. */
.hm-materials {
    margin-top: clamp(32px, 5vw, 52px);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px 22px;
    padding-top: 26px;
    border-top: 1px solid var(--ed-rule);
}
.hm-materials__label {
    flex: none;
    font-family: var(--ed-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ed-mute-soft);
    padding-top: 4px;
}
.hm-materials__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
}
.hm-materials__list li {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--ed-ink);
    line-height: 1.2;
}
/* divider trails each item, so wrapped rows stay flush-left under the first */
.hm-materials__list li::after {
    content: "";
    width: 1px;
    height: 13px;
    margin: 0 18px;
    background: var(--ed-rule-strong);
}
.hm-materials__list li:last-child::after { display: none; }
.hm-materials__note {
    flex: 1 1 100%;
    margin-top: 4px;
    font-size: 14px;
    color: var(--ed-mute);
}
.hm-materials__note a {
    color: var(--ed-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hm-materials__note a:hover { text-decoration-thickness: 2px; }

/* --- 4. Selling your Hermes (light split) -----------------------------
 * The inventory section drops its bottom padding so the divider rule (grid
 * border-top) gets one balanced gap on each side, not the stacked padding of
 * two full sections. */
.hm-inv-sec { padding-bottom: clamp(40px, 6vw, 64px); }
.hm-sell { padding-top: 0; }
.hm-sell__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    border-top: 1px solid var(--ed-rule);
    padding-top: clamp(40px, 5vw, 60px);
}
.hm-sell__copy {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ed-mute);
    max-width: 46ch;
}
.hm-sell__points {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ed-rule);
}
.hm-sell__points li {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ed-rule);
}
.hm-sell__pt-k {
    font-size: 15px;
    font-weight: 600;
    color: var(--ed-ink);
}
.hm-sell__pt-v {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ed-mute);
}

/* --- 5. Every bag verified (full-bleed charcoal band) ----------------- */
.hm-verify-band {
    background: var(--ed-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hm-verify-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1000px 520px at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(26, 94, 221, 0.08), transparent 70%),
        var(--ed-dark);
    pointer-events: none;
}
.hm-verify-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.hm-verify-band__inner {
    max-width: var(--ed-max);
    margin: 0 auto;
    padding: var(--ed-pad-y) var(--ed-pad-x);
}
.hm-verify-band__lede { color: var(--ed-on-dark-mute); }
.hm-verify {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--ed-on-dark-rule);
}
.hm-verify__item {
    padding: 28px 22px 30px 0;
    border-right: 1px solid var(--ed-on-dark-rule);
    border-bottom: 1px solid var(--ed-on-dark-rule);
    transition: background 0.3s var(--ed-ease);
}
.hm-verify__item:nth-child(5n) { border-right: none; }
.hm-verify__item:not(:nth-child(5n+1)) { padding-left: 22px; }
.hm-verify__item:hover { background: rgba(255, 255, 255, 0.035); }
.hm-verify__num {
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--ed-on-dark-soft);
    transition: color 0.3s var(--ed-ease);
}
.hm-verify__item:hover .hm-verify__num { color: #fff; }
.cjw-ed--hm .hm-verify__item h3 {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}
.hm-verify__item p {
    margin-top: 9px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ed-on-dark-mute);
}
.hm-verify-band__note {
    margin-top: clamp(28px, 4vw, 40px);
    font-size: 15px;
    color: var(--ed-on-dark-mute);
    max-width: 60ch;
}
.hm-verify-band__note a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hm-verify-band__note a:hover { text-decoration-thickness: 2px; }

/* --- 6. Final CTA (dark band + serif ornament + assurance chips) ------ */
.hm-cta {
    background: var(--ed-ink);
    color: #fff;
    padding: var(--ed-pad-y) var(--ed-pad-x);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hm-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(960px 520px at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
    pointer-events: none;
}
/* oversized ghosted serif ornament — the icon silhouette */
.hm-cta::after {
    content: "Birkin";
    position: absolute;
    right: 4%;
    bottom: -0.16em;
    z-index: -1;
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(120px, 19vw, 300px);
    line-height: 1;
    color: var(--ed-on-dark-ghost);
    pointer-events: none;
    letter-spacing: -0.02em;
}
.hm-cta__inner {
    position: relative;
    max-width: var(--ed-max);
    margin: 0 auto;
}
.cjw-ed--hm .hm-cta__title {
    font-size: clamp(32px, 4.6vw, 60px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 20ch;
    margin: 0 0 18px;
}
.hm-cta__addr {
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ed-on-dark-soft);
    margin: 0 0 32px;
}

/* Final CTA band is dark — invert primary, light ghost (matches the hero). */
.hm-cta .cjw-btn--primary {
    background: #fff;
    color: var(--ed-ink);
    border-color: #fff;
}
.hm-cta .cjw-btn--primary:hover,
.hm-cta .cjw-btn--primary:focus-visible {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.hm-cta .cjw-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}
.hm-cta .cjw-btn--ghost:hover,
.hm-cta .cjw-btn--ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hm-cta__assure {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.hm-cta__assure li {
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ed-on-dark-mute);
    padding: 8px 16px;
    border: 1px solid var(--ed-on-dark-rule);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hm-cta__assure li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cjw-color-wa);
}
.hm-cta__links {
    margin-top: 28px;
    font-size: 15px;
    color: var(--ed-on-dark-mute);
}
.hm-cta__links a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hm-cta__links a:hover { text-decoration-thickness: 2px; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Inventory rows: drop the spec column into the desc area. */
    .hm-model {
        grid-template-columns: 44px minmax(0, 1fr);
        row-gap: 6px;
        column-gap: 20px;
    }
    .hm-model__idx { grid-row: 1 / span 2; }
    .hm-model__spec {
        grid-column: 2;
        white-space: normal;
    }
    .hm-model__desc { grid-column: 2; }

    .hm-sell__grid { grid-template-columns: 1fr; }

    .hm-verify { grid-template-columns: repeat(2, 1fr); }
    .hm-verify__item:nth-child(5n) { border-right: 1px solid var(--ed-on-dark-rule); }
    .hm-verify__item:nth-child(2n) { border-right: none; }
    .hm-verify__item:not(:nth-child(5n+1)) { padding-left: 0; }
    .hm-verify__item:nth-child(2n) { padding-left: 22px; }
    .hm-verify__item:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
    .cjw-ed--hm .cjw-hero__title { font-size: clamp(34px, 9.5vw, 48px); max-width: none; }
    .hm-ctas .cjw-btn { width: 100%; justify-content: center; }

    .hm-materials { flex-direction: column; gap: 14px; }

    .hm-sell__points li { grid-template-columns: 1fr; gap: 4px; }

    .hm-verify { grid-template-columns: 1fr; }
    .hm-verify__item,
    .hm-verify__item:nth-child(2n),
    .hm-verify__item:nth-child(5n) {
        border-right: none;
        padding: 22px 0;
        padding-left: 0;
    }
    .hm-cta::after { font-size: clamp(96px, 30vw, 180px); right: 2%; }
}
