/* Opulence 2026 — Interior / content page styles
 * Ported from brief/interior-page-prototype.html.
 * Depends on tokens.css and components.css. Enqueued on singular pages.
 */

/* ---------------------------------------------------------------------------
 * Block A · Page hero
 * ------------------------------------------------------------------------- */
.phero {
    position: relative;
    color: var(--cream);
    overflow: hidden;
    background: linear-gradient(100deg, rgba(20, 38, 27, .93), rgba(24, 44, 32, .72) 60%, rgba(24, 44, 32, .45)), #1c3327;
}
.phero-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('https://opulencestoves.co.uk/wp-content/uploads/2024/07/chimney-590x1024.png');
    background-size: cover;
    background-position: center 30%;
    opacity: .32;
}
.phero .wrap { position: relative; z-index: 2; padding: 44px clamp(24px, 5vw, 64px) 60px; }
.crumb { font-size: .75rem; color: rgba(246, 242, 232, .62); margin-bottom: 26px; }
.crumb a { text-decoration: none; color: rgba(246, 242, 232, .62); }
.crumb a:hover { color: var(--gold-2); }
.crumb .breadcrumb_last { color: var(--cream); }
.crumb span[aria-current] { color: var(--cream); }
.phero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    color: var(--cream);
    max-width: 17ch;
    margin: 16px 0;
}
.phero h1 em { font-style: italic; color: var(--gold-2); }
.phero .intro { max-width: 56ch; font-size: 1.06rem; color: rgba(246, 242, 232, .82); font-weight: 300; }
.phero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.phero-meta {
    display: flex;
    gap: 26px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(246, 242, 232, .18);
    flex-wrap: wrap;
}
.pm { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: rgba(246, 242, 232, .8); }
.pm svg { width: 18px; height: 18px; stroke: var(--gold-2); fill: none; stroke-width: 1.4; }

/* ---------------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------------- */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 56px;
    align-items: start;
    padding: var(--space-section) 0 var(--space-sm);
}
.article .entry-content > :first-child { margin-top: 0; }
/* HI-068: constrain prose to a comfortable ~68ch measure (media/tables opt out). */
.article .entry-content > p,
.article .entry-content > ul,
.article .entry-content > ol,
.article .entry-content > h2,
.article .entry-content > h3,
.article .entry-content > h4,
.article .entry-content > blockquote { max-width: var(--measure); }
.article h2 { font-size: var(--fs-700); line-height: var(--leading-tight); margin: var(--space-md) 0 var(--space-xs); }
.article h3 { font-size: var(--fs-500); margin: var(--space-sm) 0 var(--space-2xs); }
.article h4 { font-size: var(--fs-400); margin: var(--space-sm) 0 var(--space-2xs); color: var(--ink); }
.article p { margin-bottom: var(--space-xs); color: var(--muted); }
.article p strong,
.article li strong { color: var(--ink); font-weight: 500; }
.article ul,
.article ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.article li { margin-bottom: 8px; }
.article a { color: var(--gold-text); }
.article img { border-radius: var(--radius); max-width: 100%; height: auto; }
.article figure { margin: 24px 0; }
.article figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .9rem;
}
.article table th,
.article table td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
    color: var(--muted);
}
.article table th { background: var(--cream-2); color: var(--ink); font-weight: 500; }
.article blockquote {
    border-left: 3px solid var(--gold);
    background: var(--cream-2);
    padding: 20px 26px;
    margin: 24px 0;
    color: var(--ink);
}
.page-links { margin-top: 24px; font-size: .85rem; }

/* ---------------------------------------------------------------------------
 * Block H · Sidebar
 * ------------------------------------------------------------------------- */
.side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.side .card { border: 1px solid var(--line); background: #fff; }
.side .card-h {
    background: var(--forest-deep);
    color: var(--cream);
    padding: 16px 22px;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
}
.side .card-b { padding: 22px; }
.side-cta .ph { font-family: var(--display); font-size: 1.5rem; color: var(--forest); display: block; margin-bottom: 4px; }
.side-cta p { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.side-trust { display: flex; flex-direction: column; gap: 12px; }
.tr { display: flex; gap: 11px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.tr svg { width: 17px; height: 17px; stroke: var(--gold-deep); fill: none; stroke-width: 1.4; flex-shrink: 0; margin-top: 2px; }
.tr b { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------------------
 * Block J · CTA band
 * ------------------------------------------------------------------------- */
.ctaband { background: var(--forest-deep); color: var(--cream); position: relative; overflow: hidden; }
.ctaband::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -6%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(182, 144, 79, .14), transparent 65%);
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; padding: 64px 0; }
.cta-grid h2 { color: var(--cream); font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.cta-grid h2 em { font-style: italic; color: var(--gold-2); }
.cta-grid p { color: rgba(246, 242, 232, .78); margin: 14px 0 24px; max-width: 44ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-side {
    background: #294636;
    border: 1px solid rgba(246, 242, 232, .1);
    padding: 30px;
}
.cta-phone-lab { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.cta-phone { display: block; font-family: var(--display); font-size: 2rem; color: var(--cream); margin: 4px 0 14px; }
.cta-side p { color: rgba(246, 242, 232, .72); font-size: .88rem; margin: 0 0 8px; }

/* ---------------------------------------------------------------------------
 * Block K · Featured Products rail (interior pages)
 * ------------------------------------------------------------------------- */
.prail-sec { padding: 64px 0; background: var(--cream, #fbf8f1); border-top: 1px solid var(--line); }
.prail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
.prail-head .sec-head.mid { text-align: left; margin: 0; max-width: none; }
.prail-head .sec-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--forest-deep); margin-top: 6px; }

.prail-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.prail-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
    cursor: pointer;
    transition: border-color .25s, color .25s, background .25s;
}
.prail-arrow:hover { border-color: var(--gold); color: var(--gold-deep); }
.prail-arrow:disabled { opacity: .35; cursor: default; }

/* Track: grid by default; becomes a horizontal scroller when JS enables it. */
.prail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.prail.is-carousel {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.prail.is-carousel::-webkit-scrollbar { display: none; }
.prail.is-carousel .pcard {
    flex: 0 0 calc((100% - 3 * 18px) / 4);
    scroll-snap-align: start;
}

.pcard {
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--elev); }

.pc-img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(150deg, var(--cream-2, #f0ead9), #e5dcc9);
    overflow: hidden;
}
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-img .ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
}
.pc-badge { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pc-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--burgundy, #7a2231);
    color: #fff;
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 9px;
}

.pc-b { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.pc-brand {
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 5px;
    font-weight: 500;
}
.pc-name { font-size: .98rem; line-height: 1.3; margin-bottom: 8px; }
.pc-name a { color: var(--forest-deep); text-decoration: none; }
.pc-name a:hover { color: var(--gold-text); }
.pc-price { font-size: .9rem; color: var(--ink); margin-bottom: 16px; }
.pc-b .btn { margin-top: auto; }

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .side { position: static; }
    .cta-grid { grid-template-columns: 1fr; gap: 30px; }
    .prail { grid-template-columns: repeat(2, 1fr); }
    .prail.is-carousel .pcard { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 560px) {
    .prail-head { flex-direction: column; align-items: flex-start; }
    .prail { grid-template-columns: 1fr; }
    .prail.is-carousel .pcard { flex-basis: 82%; }
}
