/**
 * Watch Repair Miami page — page-unique sections only.
 *
 * Shared editorial primitives live in css/core/editorial.css (.cjw-ed). This
 * page is the service-side sister to page-sell-your-watch.css and reuses the
 * same deltas (warm paper, serif index numerals, dark/light band alternation,
 * hover micro-states, button press lift) so the two read as one system. The
 * page-unique element is the service icon grid in section 3.
 *
 * Scope: .cjw-ed--wr. Tokens come from the --ed-* aliases in editorial.css.
 * Loaded only when templates/page-watch-repair-miami.php is active.
 */

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

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

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

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

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

/* --- 3. Services (icon grid) — page-unique centerpiece ---------------- */
.wr-services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ed-rule);
    border-left: 1px solid var(--ed-rule);
}
.wr-service {
    position: relative;
    padding: 32px 30px 34px;
    border-right: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    transition: background 0.3s var(--ed-ease);
}
/* top reveal keyline on hover */
.wr-service::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ed-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ed-ease);
}
.wr-service:hover { background: var(--ed-paper-alt); }
.wr-service:hover::before { transform: scaleX(1); }
.wr-service__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--ed-mute);
    transition: color 0.3s var(--ed-ease), transform 0.3s var(--ed-ease);
}
.wr-service__icon svg { width: 100%; height: 100%; }
.wr-service:hover .wr-service__icon {
    color: var(--ed-ink);
    transform: translateY(-2px) rotate(-4deg);
}
.cjw-ed--wr .wr-service__name {
    margin-top: 20px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ed-ink);
}
.wr-service__desc {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ed-mute);
    max-width: 32ch;
}

/* Serviced-brand strip — mono keyline list under the grid. */
.wr-brands {
    margin-top: clamp(32px, 5vw, 52px);
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding-top: 26px;
    border-top: 1px solid var(--ed-rule);
}
.wr-brands__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;
}
.wr-brands__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
}
.wr-brands__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 */
.wr-brands__list li::after {
    content: "";
    width: 1px;
    height: 13px;
    margin: 0 18px;
    background: var(--ed-rule-strong);
}
.wr-brands__list li:last-child::after { display: none; }

/* --- 4. Process (numbered steps, serif index, connecting node) -------- */
.wr-process { padding-top: clamp(40px, 6vw, 72px); }
.wr-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);
}
.wr-step {
    position: relative;
    padding: 36px 24px 36px 0;
    border-right: 1px solid var(--ed-rule);
    border-bottom: 1px solid var(--ed-rule);
    transition: background 0.3s var(--ed-ease);
}
.wr-step:nth-child(4n) { border-right: none; }
.wr-step:not(:first-child) { padding-left: 24px; }
/* node dot riding the top rule */
.wr-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);
}
.wr-step:not(:first-child)::before { left: 24px; }
.wr-step:hover { background: var(--ed-paper-alt); }
.wr-step:hover::before { transform: scale(1); opacity: 1; }
.wr-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);
}
.wr-step:hover .wr-step__num { color: var(--ed-ink); }
.cjw-ed--wr .wr-step h3 {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ed-ink);
}
.wr-step p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ed-mute);
}
.wr-step a {
    color: var(--ed-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.wr-step a:hover { text-decoration-thickness: 2px; }

/* --- 5. Why collectors trust us (full-bleed charcoal band) ------------ */
.wr-trust-band {
    background: var(--ed-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.wr-trust-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;
}
.wr-trust-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;
}
.wr-trust-band__inner {
    max-width: var(--ed-max);
    margin: 0 auto;
    padding: var(--ed-pad-y) var(--ed-pad-x);
}
.wr-reasons {
    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);
}
.wr-reason {
    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);
}
.wr-reason:nth-child(5n) { border-right: none; }
.wr-reason:not(:nth-child(5n+1)) { padding-left: 22px; }
.wr-reason:hover { background: rgba(255, 255, 255, 0.035); }
.wr-reason__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);
}
.wr-reason:hover .wr-reason__num { color: #fff; }
.cjw-ed--wr .wr-reason h3 {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}
.wr-reason p {
    margin-top: 9px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ed-on-dark-mute);
}

/* --- 6. Final CTA (dark band + serif ornament + assurance chips) ------ */
.wr-cta {
    background: var(--ed-ink);
    color: #fff;
    padding: var(--ed-pad-y) var(--ed-pad-x);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.wr-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 — "free estimate" motif */
.wr-cta::after {
    content: "free";
    position: absolute;
    right: 4%;
    bottom: -0.16em;
    z-index: -1;
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(140px, 22vw, 340px);
    line-height: 1;
    color: var(--ed-on-dark-ghost);
    pointer-events: none;
    letter-spacing: -0.02em;
}
.wr-cta__inner {
    position: relative;
    max-width: var(--ed-max);
    margin: 0 auto;
}
.cjw-ed--wr .wr-cta__title {
    font-size: clamp(32px, 4.6vw, 60px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 18ch;
    margin: 0 0 36px;
}

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

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

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
    .wr-services { grid-template-columns: repeat(2, 1fr); }

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

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

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

    .wr-services { grid-template-columns: 1fr; }
    .wr-service,
    .wr-service:nth-child(2n) { border-right: none; }

    .wr-brands { flex-direction: column; gap: 14px; }

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

    .wr-reasons { grid-template-columns: 1fr; }
    .wr-reason,
    .wr-reason:nth-child(2n),
    .wr-reason:nth-child(5n) {
        border-right: none;
        padding: 22px 0;
        padding-left: 0;
    }
    .wr-cta::after { font-size: clamp(110px, 34vw, 200px); right: 2%; }
}
