/* SERVICE DETAIL -- helpers the /services/ pages add on top of page-shell.css.
   Loaded after page-shell.css and before each page's <style> block. */

/* ── Hero ─────────────────────────────────────────────────────── */
.sd-hero-art {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    line-height: 0;
}

.sd-hero-art img {
    display: block;
    width: 100%;
    height: clamp(260px, 38vw, 420px);
    object-fit: cover;
}

.sd-proof {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(197, 160, 89, 0.32);
    border-radius: var(--border-radius-pill);
    background-color: rgba(255, 255, 255, 0.05);
    max-width: 100%;
}

.sd-proof > div {
    min-height: 1.5rem;
}

/* ── Card chrome ──────────────────────────────────────────────── */
.sd-time {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
    background-color: var(--pm-warm);
    border: 1px solid rgba(197, 160, 89, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pm-gold-ink);
    white-space: nowrap;
}

.sd-cost {
    flex-shrink: 0;
    text-align: right;
    margin: 0;
}

.sd-cost b {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(26px, 4.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1;
    color: var(--pm-ink);
    font-variant-numeric: tabular-nums;
}

.sd-cost span {
    display: block;
    margin-top: 0.3rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pm-muted);
}

.sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.sd-actions .pm-btn {
    padding: 0.85rem 1.6rem;
    font-size: 0.875rem;
}

/* ── Blocks stacked inside one card ───────────────────────────── */
/* pm-prose keeps a 72ch measure, so a full-width grid or list butted
   straight against it reads as a broken column. */
.pm-prose + .pm-grid,
.pm-prose + .pm-tiles,
.pm-prose + .pm-picks {
    margin-top: clamp(1.4rem, 3vw, 2.1rem);
    padding-top: clamp(1.4rem, 3vw, 2.1rem);
    border-top: 1px solid var(--pm-line);
}

/* A closing note under a list wants the gap, not the rule. */
.pm-grid + .pm-prose,
.pm-tiles + .pm-prose,
.pm-picks + .pm-prose {
    margin-top: clamp(1.4rem, 3vw, 2.1rem);
}

/* ── Lists inside a callout ───────────────────────────────────── */
/* page-shell styles pm-note text but not its lists, so they inherit the
   global ul reset and sit flush with no leading. Match pm-faq-answer. */
.pm-note ul,
.pm-note ol {
    margin: 0 0 0.85rem;
    padding-left: 1.35rem;
}

.pm-note li {
    margin-bottom: 0.4rem;
}

/* ── Figure inside a card ─────────────────────────────────────── */
.sd-figure {
    margin: 1.75rem 0 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(23, 23, 30, 0.06), 0 14px 34px rgba(23, 23, 30, 0.08);
    line-height: 0;
}

.sd-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(240px, 34vw, 400px);
    object-fit: cover;
}

/* ── Two-up card grid ─────────────────────────────────────────── */
/* page-shell zeroes the margin on the grid's last card, so the grid
   carries the gap to whatever follows it. */
.sd-grid {
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

/* Below 1180px a pair of cards squeezes the head row, so the grid only
   engages once each column can hold it. */
@media (min-width: 1180px) {
    .sd-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.25rem, 2.5vw, 2rem);
    }

    .sd-grid > .pm-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    /* Buttons line up along the bottom of each row. On the tallest card of
       a row `auto` resolves to 0, so the gap above them needs padding. */
    .sd-grid .sd-actions {
        margin-top: auto;
        padding-top: 1.75rem;
    }

    .sd-grid .pm-note {
        margin-bottom: 0;
    }

    .sd-grid .pm-card-head h2 {
        font-size: clamp(21px, 1.7vw, 1.75rem);
    }

    .sd-grid .sd-cost b {
        font-size: clamp(24px, 2.2vw, 2rem);
    }
}

/* ── Hero split ───────────────────────────────────────────────── */
@media (min-width: 1080px) {
    .pm-hero-split {
        grid-template-columns: minmax(0, 34em) minmax(380px, 1fr);
    }
}

@media (min-width: 981px) and (max-width: 1079px) {
    .pm-hero-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .pm-hero-pitch {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .sd-cost {
        text-align: left;
    }

    .sd-actions .pm-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .sd-hero-art img {
        height: 200px;
    }
}

/* ── Nail-art hand-offs ───────────────────────────────────────── */
/* Two stylized links out to the gallery and the design estimator, in
   place of an on-page nail-art menu. */
.sd-artlinks {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.sd-artlink {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(197, 160, 89, 0.42);
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--pm-warm) 0%, #F7EBD6 100%);
    color: var(--pm-ink);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sd-artlink:hover,
.sd-artlink:focus-visible {
    transform: translateY(-2px);
    border-color: var(--pm-gold);
    box-shadow: 0 1px 2px rgba(23, 23, 30, 0.05), 0 14px 30px rgba(23, 23, 30, 0.1);
}

.sd-artlink-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: var(--pm-gold-ink);
    font-size: 1.05rem;
}

.sd-artlink-body {
    min-width: 0;
}

.sd-artlink-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pm-gold-ink);
}

.sd-artlink-title {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-heading);
    font-size: clamp(19px, 2.2vw, 1.35rem);
    line-height: 1.2;
    color: var(--pm-ink);
}

.sd-artlink-note {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--pm-muted);
}

.sd-artlink-go {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--pm-gold-ink);
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.sd-artlink:hover .sd-artlink-go,
.sd-artlink:focus-visible .sd-artlink-go {
    transform: translateX(4px);
}

@media (min-width: 760px) {
    .sd-artlinks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sd-artlink {
        gap: 0.85rem;
        padding: 1rem 1.05rem;
    }

    .sd-artlink-go {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-artlink,
    .sd-artlink-go {
        transition: none;
    }

    .sd-artlink:hover,
    .sd-artlink:focus-visible {
        transform: none;
    }

    .sd-artlink:hover .sd-artlink-go,
    .sd-artlink:focus-visible .sd-artlink-go {
        transform: none;
    }
}
