/**
 * Antique Silver Buyer Miami page — page-unique sections only.
 *
 * Shared editorial primitives live in css/core/editorial.css (.cjw-ed). This is
 * the final money page and reuses the sell-side deltas (serif step numerals,
 * dark/light band alternation, hover micro-states, button press lift) so the
 * set reads as one family. The page-unique element is the maker dossier in
 * section 1 — a two-column serif maker index anchored by an oversized serif
 * price-range stat ($10k–$100k+), the auction-quality counterpart to the watch
 * reference ledger and the Hermes inventory index.
 *
 * Scope: .cjw-ed--as. Tokens come from the --ed-* aliases in editorial.css.
 * Loaded only when templates/page-antique-silver-buyer-miami.php is active.
 */

/* --- Page-local token overrides --------------------------------------- */
.cjw-ed--as {
    --ed-paper-alt: #f6f6f4;                       /* neutral-cool paper — a silver register */
    --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--as a:focus-visible,
.cjw-ed--as .cjw-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

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

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

/* --- Hero (per-page type scale) --------------------------------------- */
.cjw-ed--as .cjw-hero__title {
    font-size: clamp(36px, 5.8vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin: 0 0 22px;
}
.cjw-ed--as .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--as .cjw-hero__lead em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.62);
}
.cjw-ed--as .cjw-hero__subtitle { max-width: 58ch; }
.cjw-ed--as .cjw-hero__note {
    margin-top: 24px;
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ed-on-dark-soft);
}

/* The hero/footer CTA cluster (reused in the final CTA band). */
.as-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

/* --- 3. Maker dossier + range stat — page-unique centerpiece ---------- *
 * Two-column serif maker index. Hover paints a bg fill + a left keyline only —
 * no padding shift, so nothing reflows. */
.as-makers-sec { padding-bottom: clamp(40px, 6vw, 64px); }
.as-makers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--ed-rule);
}
.as-maker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 22px;
    align-items: baseline;
    padding: 26px 32px 26px 18px;
    border-bottom: 1px solid var(--ed-rule);
    border-right: 1px solid var(--ed-rule);
    transition: background 0.3s var(--ed-ease);
}
.as-maker:nth-child(2n) { border-right: none; }
/* An odd count leaves the final cell alone in column 1 with a dangling rule.
   Span it across both columns as a closing summary row — balanced, no orphan. */
.as-maker:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 0.5fr) minmax(0, 1fr);
    column-gap: clamp(22px, 4vw, 56px);
    border-right: none;
}
/* left reveal keyline on hover (vertical, rides the cell's left edge) */
.as-maker::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);
}
.as-maker:hover { background: var(--ed-paper-alt); }
.as-maker:hover::before { transform: scaleY(1); }
.as-maker__idx {
    grid-row: 1 / span 2;
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ed-mute-soft);
    padding-top: 7px;
    transition: color 0.3s var(--ed-ease);
}
.as-maker:hover .as-maker__idx { color: var(--ed-ink); }
.cjw-ed--as .as-maker__name {
    grid-column: 2;
    font-family: var(--ed-serif);
    font-size: clamp(21px, 2.3vw, 30px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ed-ink);
}
.as-maker__desc {
    grid-column: 2;
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ed-mute);
    max-width: 40ch;
}
/* Closing summary row: index, name, descriptor in one baseline line. */
.as-maker:last-child:nth-child(odd) .as-maker__idx { grid-row: auto; }
.as-maker:last-child:nth-child(odd) .as-maker__name { grid-column: 2; }
.as-maker:last-child:nth-child(odd) .as-maker__desc {
    grid-column: 3;
    margin-top: 0;
    max-width: none;
    align-self: center;
}

/* Range stat — oversized serif figure as the section anchor. */
.as-range {
    margin-top: clamp(36px, 5vw, 60px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: clamp(24px, 4vw, 48px);
    row-gap: 14px;
    padding-top: clamp(32px, 4vw, 44px);
    border-top: 1px solid var(--ed-rule);
}
.as-range__fig {
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(40px, 7vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: var(--ed-ink);
    white-space: nowrap;
}
.as-range__plus {
    color: var(--ed-mute-soft);
    font-style: normal;
}
.as-range__cap {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ed-mute);
    max-width: 46ch;
    align-self: center;
}
.as-range__cap a {
    color: var(--ed-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.as-range__cap a:hover { text-decoration-thickness: 2px; }

/* --- 4. Expertise (full-bleed charcoal band, indexed grid) ------------ */
.as-expertise {
    background: var(--ed-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.as-expertise::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;
}
.as-expertise::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;
}
.as-expertise__inner {
    max-width: var(--ed-max);
    margin: 0 auto;
    padding: var(--ed-pad-y) var(--ed-pad-x);
}
/* Full-width numbered credentials list — one reason per row, so an odd count
   never orphans a grid cell. Oversized italic serif numerals carry the
   richness; title + descriptor sit on a shared baseline. */
.as-reasons {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ed-on-dark-rule);
}
.as-reason {
    display: grid;
    grid-template-columns: clamp(56px, 7vw, 96px) minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: baseline;
    column-gap: clamp(20px, 4vw, 48px);
    padding: 26px 4px;
    border-bottom: 1px solid var(--ed-on-dark-rule);
    transition: background 0.3s var(--ed-ease);
}
.as-reason:hover { background: rgba(255, 255, 255, 0.035); }
.as-reason__num {
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 0.9;
    color: var(--ed-on-dark-soft);
    transition: color 0.3s var(--ed-ease);
}
.as-reason:hover .as-reason__num { color: #fff; }
.cjw-ed--as .as-reason h3 {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}
.as-reason p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ed-on-dark-mute);
    max-width: 48ch;
}

/* --- 5. Appraisal process (numbered steps, serif index, node) --------- */
.as-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--ed-rule);
}
.as-step {
    position: relative;
    padding: 36px 28px 36px 0;
    border-right: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    transition: background 0.3s var(--ed-ease);
}
.as-step:nth-child(4n) { border-right: none; padding-right: 0; }
.as-step:not(:first-child) { padding-left: 28px; }
.as-step::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ed-ink);
    transform: scale(0.6);
    opacity: 0.35;
    transition: transform 0.3s var(--ed-ease), opacity 0.3s var(--ed-ease);
}
.as-step:not(:first-child)::before { left: 28px; }
.as-step:hover { background: var(--ed-paper-alt); }
.as-step:hover::before { transform: scale(1); opacity: 1; }
.as-step__num {
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: 52px;
    line-height: 1;
    color: var(--ed-rule-strong);
    transition: color 0.3s var(--ed-ease);
}
.as-step:hover .as-step__num { color: var(--ed-ink); }
.cjw-ed--as .as-step h3 {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ed-ink);
    max-width: 22ch;
}
.as-step p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ed-mute);
}

/* --- 6. Final CTA (dark band + serif ornament + assurance chips) ------ */
.as-cta {
    background: var(--ed-ink);
    color: #fff;
    padding: var(--ed-pad-y) var(--ed-pad-x);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.as-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 — silver hallmark motif (descender-free) */
.as-cta::after {
    content: "Hallmark";
    position: absolute;
    right: 4%;
    bottom: -0.16em;
    z-index: -1;
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(110px, 18vw, 290px);
    line-height: 1;
    color: var(--ed-on-dark-ghost);
    pointer-events: none;
    letter-spacing: -0.02em;
}
.as-cta__inner {
    position: relative;
    max-width: var(--ed-max);
    margin: 0 auto;
}
.cjw-ed--as .as-cta__title {
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 20ch;
    margin: 0 0 16px;
}
.as-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). */
.as-cta .cjw-btn--primary {
    background: #fff;
    color: var(--ed-ink);
    border-color: #fff;
}
.as-cta .cjw-btn--primary:hover,
.as-cta .cjw-btn--primary:focus-visible {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.as-cta .cjw-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}
.as-cta .cjw-btn--ghost:hover,
.as-cta .cjw-btn--ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.as-cta__assure {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.as-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;
}
.as-cta__assure li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cjw-color-wa);
}
.as-cta__links {
    margin-top: 28px;
    font-size: 15px;
    color: var(--ed-on-dark-mute);
}
.as-cta__links a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.as-cta__links a:hover { text-decoration-thickness: 2px; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Credentials rows: numeral spans, title + descriptor stack. */
    .as-reason {
        grid-template-columns: clamp(48px, 8vw, 72px) minmax(0, 1fr);
        column-gap: 24px;
        align-items: start;
    }
    .as-reason__num { grid-row: 1 / span 2; align-self: start; }
    .cjw-ed--as .as-reason h3 { grid-column: 2; }
    .as-reason p { grid-column: 2; margin-top: 8px; max-width: 56ch; }

    .as-steps { grid-template-columns: repeat(2, 1fr); }
    .as-step:nth-child(4n) { border-right: 1px solid var(--ed-rule); padding-right: 28px; }
    .as-step:nth-child(2n) { border-right: none; padding-right: 0; }
    .as-step:nth-child(2n+1) { padding-left: 0; }
    .as-step:nth-child(2n+1)::before { left: 0; }
    .as-step:nth-child(2n) { padding-left: 28px; }
    .as-step:nth-child(2n)::before { left: 28px; }
}

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

    .as-makers { grid-template-columns: 1fr; }
    .as-maker,
    .as-maker:nth-child(2n) {
        border-right: none;
        padding: 22px 0 22px 14px;
    }
    /* No orphan in a single column — revert the summary row to a normal cell. */
    .as-maker:last-child:nth-child(odd) {
        grid-column: auto;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 22px;
    }
    .as-maker:last-child:nth-child(odd) .as-maker__idx { grid-row: 1 / span 2; }
    .as-maker:last-child:nth-child(odd) .as-maker__desc {
        grid-column: 2;
        margin-top: 9px;
        align-self: auto;
    }

    .as-range {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }
    .as-range__fig { font-size: clamp(38px, 12vw, 64px); white-space: normal; }

    .as-reason {
        grid-template-columns: clamp(40px, 12vw, 56px) minmax(0, 1fr);
        column-gap: 18px;
        padding: 22px 0;
    }
    .as-reason__num { font-size: clamp(30px, 11vw, 44px); }

    .as-steps { grid-template-columns: 1fr; }
    .as-step,
    .as-step:nth-child(2n),
    .as-step:nth-child(4n) {
        border-right: none;
        padding: 28px 0;
    }
    .as-step:not(:first-child) { padding-left: 0; }
    .as-step:not(:first-child)::before { left: 0; }
    .as-step:nth-child(2n)::before { left: 0; }

    .as-cta::after { font-size: clamp(92px, 30vw, 170px); right: 2%; }
}
