/* ============================================================
   Stone Carvings Collection — standalone promo page (theme v2.4.0)

   Loaded only on is_page_template('template-stone-carvings.php'), and every
   selector below is scoped to .a16a-sc, so this sheet cannot restyle another
   template even if it were loaded by mistake.

   No new colours are introduced: the palette comes from the tokens in
   style.css, and the only local value is a hairline derived from
   --color-black so the rules darken with the text colour.
   ============================================================ */

.a16a-sc {
    --a16a-sc-hairline: rgba(17, 17, 17, .12);
    padding-bottom: var(--space-2xl, 48px);
    /*
     * The wrapper carries the page gutter itself.
     *
     * main.a16a-page-container declares `padding: <top> 0 <bottom>` — a 3-value
     * shorthand, so the horizontal padding that .container sets is zeroed. Every
     * other page template therefore relies on its first content box to pad
     * itself (.a16a-sell-hero uses 24px, .a16a-page-card uses 32px). Without
     * this, the heading and body text sit flush against the viewport edge at
     * any width at or below the 1360px container max.
     */
    padding-left: var(--space-xl, 32px);
    padding-right: var(--space-xl, 32px);
}

/* ---------- HERO ---------- */

.a16a-sc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    gap: var(--space-2xl, 48px);
    align-items: center;
    padding: var(--space-2xl, 48px) 0 var(--space-xl, 32px);
}

.a16a-sc-eyebrow {
    margin: 0 0 var(--space-sm, 8px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-primary, #C8102E);
}

.a16a-sc-title {
    margin: 0 0 var(--space-md, 16px);
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.04;
    letter-spacing: -.015em;
}

.a16a-sc-standfirst {
    margin: 0 0 var(--space-lg, 24px);
    max-width: 56ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-secondary, #565959);
}

.a16a-sc-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg, 24px);
    margin: 0 0 var(--space-lg, 24px);
    padding: var(--space-md, 16px) 0;
    list-style: none;
    border-top: 1px solid var(--a16a-sc-hairline);
    border-bottom: 1px solid var(--a16a-sc-hairline);
}

.a16a-sc-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a16a-sc-facts b {
    font-size: 22px;
    line-height: 1.1;
}

.a16a-sc-facts span {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-text-secondary, #565959);
}

.a16a-sc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 12px);
}

.a16a-sc-hero-figure {
    margin: 0;
}

/* object-fit: contain, not cover. Every source photo is square and matted to a
   light background, so contain shows the whole piece with no risk of cropping
   a head or a base off, and the letterboxing reads as gallery matting. */
.a16a-sc-hero-figure .a16a-sc-hero-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--color-bg-alt, #F5F6F7);
    border-radius: var(--radius-lg, 8px);
}

.a16a-sc-hero-figure figcaption {
    margin-top: var(--space-sm, 12px);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-text-secondary, #565959);
}

/* ---------- EDITORIAL NOTE ---------- */

.a16a-sc-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--space-xl, 32px);
    padding: var(--space-2xl, 48px) 0;
    border-top: 1px solid var(--a16a-sc-hairline);
}

.a16a-sc-note-title {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -.01em;
}

.a16a-sc-note-body > p {
    margin: 0 0 var(--space-md, 16px);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--color-text-secondary, #565959);
}

.a16a-sc-note-list {
    margin: var(--space-lg, 24px) 0 0;
}

.a16a-sc-note-list dt {
    margin-top: var(--space-md, 16px);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.a16a-sc-note-list dt:first-of-type {
    margin-top: 0;
}

.a16a-sc-note-list dd {
    margin: 5px 0 0;
    line-height: 1.65;
    color: var(--color-text-secondary, #565959);
}

/* ---------- PIECE GRID ---------- */

.a16a-sc-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md, 16px);
    margin-bottom: var(--space-xl, 32px);
    padding-top: var(--space-2xl, 48px);
    border-top: 1px solid var(--a16a-sc-hairline);
}

.a16a-sc-section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -.01em;
}

.a16a-sc-section-head p {
    margin: 0;
    max-width: 52ch;
    color: var(--color-text-secondary, #565959);
}

.a16a-sc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl, 32px) var(--space-lg, 24px);
}

.a16a-sc-piece {
    display: flex;
    flex-direction: column;
}

.a16a-sc-piece-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md, 6px);
    background: var(--color-bg-alt, #F5F6F7);
}

/* Square sources in a square box: cover crops nothing here. */
.a16a-sc-piece-media .a16a-sc-piece-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .6, .2, 1);
}

.a16a-sc-piece:hover .a16a-sc-piece-media .a16a-sc-piece-img {
    transform: scale(1.025);
}

.a16a-sc-piece-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.a16a-sc-piece-no {
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 3px 9px;
    border-radius: var(--radius-pill, 999px);
    background: rgba(255, 255, 255, .88);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--color-text-secondary, #565959);
}

.a16a-sc-piece-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: var(--space-md, 16px);
}

.a16a-sc-piece-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.a16a-sc-piece-title a {
    color: inherit;
    text-decoration: none;
}

.a16a-sc-piece-title a:hover {
    color: var(--color-primary, #C8102E);
}

.a16a-sc-piece-price {
    margin: 0 0 6px;
}

.a16a-sc-piece-price .w-price-row {
    margin: 0;
}

.a16a-sc-piece-meta {
    margin: 0 0 var(--space-md, 16px);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--color-text-secondary, #565959);
}

/* margin-top:auto keeps the nine links on one baseline regardless of how many
   lines each title runs to. */
.a16a-sc-piece-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary, #C8102E);
    text-decoration: none;
}

.a16a-sc-piece-link:hover {
    text-decoration: underline;
}

.a16a-sc-empty {
    padding: var(--space-2xl, 48px) 0;
    color: var(--color-text-secondary, #565959);
}

/* ---------- STANDING NOTES ---------- */

.a16a-sc-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl, 32px);
    margin-top: var(--space-2xl, 48px);
    padding: var(--space-xl, 32px) 0;
    border-top: 1px solid var(--a16a-sc-hairline);
    border-bottom: 1px solid var(--a16a-sc-hairline);
}

.a16a-sc-band h2 {
    margin: 0 0 var(--space-sm, 8px);
    font-size: 16px;
    letter-spacing: .01em;
}

.a16a-sc-band p {
    margin: 0;
    line-height: 1.65;
    color: var(--color-text-secondary, #565959);
}

/* ---------- CTA ---------- */

.a16a-sc-cta {
    margin: var(--space-2xl, 48px) 0 0;
    padding: var(--space-2xl, 48px) var(--space-xl, 32px);
    border-radius: var(--radius-lg, 8px);
    background: var(--color-black, #111111);
    color: #fff;
    text-align: center;
}

.a16a-sc-cta h2 {
    margin: 0 0 var(--space-sm, 8px);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    color: #fff;
}

.a16a-sc-cta p {
    max-width: 62ch;
    margin: 0 auto var(--space-lg, 24px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .8);
}

.a16a-sc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 12px);
    justify-content: center;
}

/* btn-primary is the red brand button with white text, so it needs no
   inversion on the black band; the outline button does.
   .btn-outline is declared as `background: #fff; color: var(--color-text)`,
   so overriding only the colour turns it into white text on a white pill —
   invisible. The background must be cleared explicitly. */
.a16a-sc-cta .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.a16a-sc-cta .btn-outline:hover,
.a16a-sc-cta .btn-outline:focus-visible {
    background: #fff;
    color: var(--color-black, #111111);
    border-color: #fff;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
    .a16a-sc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .a16a-sc {
        padding-left: var(--space-lg, 24px);
        padding-right: var(--space-lg, 24px);
    }

    .a16a-sc-hero,
    .a16a-sc-note {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-lg, 24px);
    }

    .a16a-sc-hero {
        padding-top: var(--space-lg, 24px);
    }

    /* Stacked, a square hero is a lot of scroll on a phone. 4/3 with contain
       still shows the whole piece — it letterboxes rather than crops. */
    .a16a-sc-hero-figure .a16a-sc-hero-img {
        aspect-ratio: 4 / 3;
    }

    .a16a-sc-band {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-lg, 24px);
    }
}

@media (max-width: 640px) {
    .a16a-sc {
        padding-left: var(--space-md, 16px);
        padding-right: var(--space-md, 16px);
    }

    .a16a-sc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .a16a-sc-facts {
        gap: var(--space-md, 16px);
    }

    .a16a-sc-actions .btn,
    .a16a-sc-cta-actions .btn {
        width: 100%;
    }

    .a16a-sc-cta {
        padding: var(--space-xl, 32px) var(--space-md, 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .a16a-sc-piece-media .a16a-sc-piece-img {
        transition: none;
    }

    .a16a-sc-piece:hover .a16a-sc-piece-media .a16a-sc-piece-img {
        transform: none;
    }
}

/* ---------- CTA: chat channels ---------- */
/* Brand-coloured companions to the enquiry button, on the same darkening as the
   site-wide launcher (see a16a-chat.css): white on WhatsApp's own teal #128C7E
   is 4.14:1, just under the 4.5:1 that 14px bold text needs, so both sheets use
   #0F7E70 (4.95:1). Messenger's #006AFF passes at 4.66:1. The bright brand
   colours (#25D366 at 1.98:1, #0084FF at 3.66:1) are unusable with white text. */
.a16a-sc-cta .btn-wa { background: #0F7E70; color: #fff; }
.a16a-sc-cta .btn-ms { background: #006AFF; color: #fff; }

.a16a-sc-cta .btn-wa:hover,
.a16a-sc-cta .btn-wa:focus-visible,
.a16a-sc-cta .btn-ms:hover,
.a16a-sc-cta .btn-ms:focus-visible {
    color: #fff;
    filter: brightness(1.08);
}

.a16a-sc-cta .btn-wa .a16a-chat-glyph,
.a16a-sc-cta .btn-ms .a16a-chat-glyph {
    display: block;
    flex: 0 0 auto;
}
