/**
 * Sell Rolex Surfside page — page-unique sections only.
 *
 * Shared editorial primitives live in css/core/editorial.css (.cjw-ed). This is
 * the Rolex-specific sibling of page-sell-your-watch.css and reuses the same
 * watch-sell deltas (warm paper, serif step numerals, dark/light band
 * alternation, hover micro-states, button press lift) so the two read as one
 * family. The page-unique element is the reference ledger in section 1: model
 * name + mono reference-number chips — the precision Rolex collectors expect.
 *
 * Scope: .cjw-ed--sr. Tokens come from the --ed-* aliases in editorial.css.
 * Loaded only when templates/page-sell-rolex-surfside.php is active.
 */

/* --- Page-local token overrides --------------------------------------- */
.cjw-ed--sr {
    --ed-paper-alt: #fafaf7;                       /* warm paper — matches the sell-watch sibling */
    --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--sr a:focus-visible,
.cjw-ed--sr .cjw-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

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

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

/* --- Hero (per-page type scale) --------------------------------------- */
.cjw-ed--sr .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--sr .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--sr .cjw-hero__lead em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.62);
}
.cjw-ed--sr .cjw-hero__subtitle { max-width: 58ch; }
.cjw-ed--sr .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). */
.sr-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

/* --- 3. Reference ledger — page-unique centerpiece -------------------- *
 * Index rows: model name (display) on the left, the references as a wrap of
 * mono chips on the right. Hover paints a bg fill + a left keyline only — no
 * padding shift, so the chips never reflow. */
.sr-refs-sec { padding-bottom: clamp(40px, 6vw, 64px); }
.sr-refs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ed-rule);
}
.sr-ref {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 0.85fr) minmax(0, 1.7fr);
    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) */
.sr-ref::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);
}
.sr-ref:hover { background: var(--ed-paper-alt); }
.sr-ref:hover::before { transform: scaleY(1); }

.sr-ref__idx {
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ed-mute-soft);
    padding-top: 4px;
}
.cjw-ed--sr .sr-ref__model {
    font-family: var(--ed-display);
    font-size: clamp(20px, 2.3vw, 30px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ed-ink);
}
.sr-ref__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.sr-ref__chip {
    font-family: var(--ed-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--ed-mute);
    padding: 7px 12px;
    border: 1px solid var(--ed-rule-strong);
    border-radius: 4px;
    background: var(--ed-paper);
    transition: border-color 0.25s var(--ed-ease), color 0.25s var(--ed-ease);
    white-space: nowrap;
}
.sr-ref:hover .sr-ref__chip {
    border-color: var(--ed-ink);
    color: var(--ed-ink);
}

.sr-refs__note {
    margin-top: clamp(28px, 4vw, 40px);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ed-mute);
}
.sr-refs__note a {
    color: var(--ed-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sr-refs__note a:hover { text-decoration-thickness: 2px; }

/* --- 4. A modern Rolex buyer (full-bleed charcoal band) --------------- *
 * Two-column split: statement + address on the left, the reasons as a keyed
 * numbered list on the right. */
.sr-buyer {
    background: var(--ed-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.sr-buyer::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;
}
.sr-buyer::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;
}
.sr-buyer__inner {
    max-width: var(--ed-max);
    margin: 0 auto;
    padding: var(--ed-pad-y) var(--ed-pad-x);
}
.sr-buyer__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
}
.sr-buyer__addr {
    margin: 22px 0 0;
    font-family: var(--ed-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ed-on-dark-soft);
}
.sr-buyer__copy {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ed-on-dark-mute);
    max-width: 40ch;
}

.sr-buyer__points {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ed-on-dark-rule);
}
.sr-buyer__point {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 0.8fr) minmax(0, 1.5fr);
    align-items: baseline;
    column-gap: 18px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--ed-on-dark-rule);
    transition: background 0.3s var(--ed-ease);
}
.sr-buyer__point:hover { background: rgba(255, 255, 255, 0.035); }
.sr-buyer__pt-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);
}
.sr-buyer__point:hover .sr-buyer__pt-num { color: #fff; }
.sr-buyer__pt-k {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.sr-buyer__pt-v {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ed-on-dark-mute);
}

/* --- 5. How to sell (numbered steps, serif index, connecting node) ---- */
.sr-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);
}
.sr-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);
}
.sr-step:nth-child(4n) { border-right: none; padding-right: 0; }
.sr-step:not(:first-child) { padding-left: 28px; }
/* node dot riding the top rule */
.sr-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);
}
.sr-step:not(:first-child)::before { left: 28px; }
.sr-step:hover { background: var(--ed-paper-alt); }
.sr-step:hover::before { transform: scale(1); opacity: 1; }
.sr-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);
}
.sr-step:hover .sr-step__num { color: var(--ed-ink); }
.cjw-ed--sr .sr-step h3 {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ed-ink);
    max-width: 22ch;
}
.sr-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) ------ */
.sr-cta {
    background: var(--ed-ink);
    color: #fff;
    padding: var(--ed-pad-y) var(--ed-pad-x);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.sr-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 — iconic-model motif.
   Word kept descender-free so overflow:hidden never clips a tail. */
.sr-cta::after {
    content: "Rolex";
    position: absolute;
    right: 4%;
    bottom: -0.16em;
    z-index: -1;
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(110px, 17vw, 280px);
    line-height: 1;
    color: var(--ed-on-dark-ghost);
    pointer-events: none;
    letter-spacing: -0.02em;
}
.sr-cta__inner {
    position: relative;
    max-width: var(--ed-max);
    margin: 0 auto;
}
.cjw-ed--sr .sr-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;
}
.sr-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). */
.sr-cta .cjw-btn--primary {
    background: #fff;
    color: var(--ed-ink);
    border-color: #fff;
}
.sr-cta .cjw-btn--primary:hover,
.sr-cta .cjw-btn--primary:focus-visible {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.sr-cta .cjw-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}
.sr-cta .cjw-btn--ghost:hover,
.sr-cta .cjw-btn--ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

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

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Reference rows: index spans, model + chips stack. */
    .sr-ref {
        grid-template-columns: 44px minmax(0, 1fr);
        row-gap: 14px;
        column-gap: 20px;
    }
    .sr-ref__idx { grid-row: 1 / span 2; }
    .sr-ref__model { grid-column: 2; }
    .sr-ref__list { grid-column: 2; }

    .sr-buyer__grid { grid-template-columns: 1fr; }

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

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

    .sr-buyer__point {
        grid-template-columns: 36px 1fr;
        row-gap: 4px;
        column-gap: 14px;
    }
    .sr-buyer__pt-num { grid-row: 1 / span 2; }
    .sr-buyer__pt-k { grid-column: 2; }
    .sr-buyer__pt-v { grid-column: 2; }

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

    .sr-cta::after { font-size: clamp(96px, 30vw, 180px); right: 2%; }
}
