/* ======================================================
   pages.css — Byniss site-v2 static content pages
   CMS (page-show) + Contact. Plain CSS, same tokens as
   home.css. Mobile-first; desktop only enhances.
   ====================================================== */

/* ── Shell ── */
.cms-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(16px, 3vw, 30px) clamp(16px, 4vw, 52px) clamp(56px, 8vw, 84px);
}

/* Breadcrumb (self-contained copy of the shared crumb look) */
.pdp-crumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px;
}
.pdp-crumb a { color: var(--text-muted); }
.pdp-crumb a:hover { color: var(--primary); }
.pdp-crumb i { font-size: 10px; opacity: .6; }
.pdp-crumb span { color: var(--text-strong); font-weight: 600; }

/* ── Page hero (shared partial) ── */
.v2ph { text-align: center; margin-bottom: clamp(26px, 4vw, 40px); }
.v2ph-eyebrow {
    font-family: 'Poppins', sans-serif; font-weight: 600;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--primary); margin-bottom: 8px;
}
.v2ph-title {
    font-family: 'Cinzel', serif; font-weight: 700;
    font-size: clamp(28px, 5vw, 46px); text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-strong); line-height: 1.15;
}
.v2ph-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

/* ══════════════════════════════════════════════════════
   CMS PAGE — table of contents + prose
   ══════════════════════════════════════════════════════ */
.cms-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }

/* Table of contents (desktop rail; populated + revealed by JS) */
.cms-toc { display: none; }
.cms-toc-title {
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 12px;
}
.cms-toc-list { display: flex; flex-direction: column; gap: 2px; }
.cms-toc-list a {
    display: block; padding: 7px 12px; border-left: 2px solid var(--border-soft);
    font-size: 13px; line-height: 1.4; color: var(--text-muted);
    transition: color .2s, border-color .2s, background .2s;
}
.cms-toc-list a:hover { color: var(--primary); }
.cms-toc-list a.is-active {
    color: var(--primary); font-weight: 600;
    border-left-color: var(--primary); background: rgba(var(--primary-rgb), .06);
}

/* ── The prose "paper" — styles raw WYSIWYG HTML by element ── */
.cms-prose {
    max-width: 760px; margin: 0 auto; width: 100%;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: clamp(22px, 5vw, 52px);
    box-shadow: 0 18px 44px rgba(var(--primary-rgb), .08);
    color: var(--text);
    font-size: clamp(15px, 1.6vw, 16.5px);
    line-height: 1.85;
}
.cms-prose > :first-child { margin-top: 0; }
.cms-prose > :last-child { margin-bottom: 0; }

/* Headings */
.cms-prose h1, .cms-prose h2, .cms-prose h3, .cms-prose h4, .cms-prose h5, .cms-prose h6 {
    color: var(--text-strong); line-height: 1.25; scroll-margin-top: 96px;
}
.cms-prose h2 {
    font-family: 'Cinzel', serif; font-weight: 600;
    font-size: clamp(21px, 3vw, 27px); letter-spacing: .5px;
    margin: 1.9em 0 .7em; padding-bottom: .34em;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--gold), transparent 70%) 1;
}
.cms-prose h3 {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: clamp(17px, 2.2vw, 20px); margin: 1.5em 0 .5em;
}
.cms-prose h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; margin: 1.3em 0 .4em; }

/* Paragraphs */
.cms-prose p { margin: 0 0 1.15em; }

/* Editorial signature: lead + drop-cap on the opening paragraph */
.cms-prose > p:first-of-type {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(19px, 2.4vw, 23px); line-height: 1.6; color: var(--text-strong);
}
.cms-prose > p:first-of-type::first-letter {
    font-family: 'Cinzel', serif; font-weight: 700;
    font-size: 3.1em; line-height: .82; float: left;
    margin: .06em .12em 0 0; color: var(--primary);
}

/* Links */
.cms-prose a {
    color: var(--primary); font-weight: 600;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .25s ease;
}
.cms-prose a:hover { background-size: 100% 1.5px; }

/* Lists (the global reset strips markers — re-enable inside prose) */
.cms-prose ul, .cms-prose ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.cms-prose ul { list-style: none; }
.cms-prose ol { list-style: decimal; }
.cms-prose ol li::marker { color: var(--primary); font-weight: 700; }
.cms-prose li { margin: .45em 0; padding-left: .1em; }
.cms-prose ul > li { position: relative; padding-left: 1.1em; }
.cms-prose ul > li::before {
    content: ""; position: absolute; left: 0; top: .62em;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .14);
}
.cms-prose li > ul, .cms-prose li > ol { margin: .4em 0 .2em; }

/* Emphasis */
.cms-prose strong, .cms-prose b { color: var(--text-strong); font-weight: 700; }

/* Blockquote */
.cms-prose blockquote {
    margin: 1.6em 0; padding: 4px 4px 4px 22px;
    border-left: 3px solid var(--gold);
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: clamp(18px, 2.3vw, 22px); line-height: 1.55; color: var(--text-strong);
}
.cms-prose blockquote p:last-child { margin-bottom: 0; }

/* Images / media */
.cms-prose img {
    max-width: 100%; height: auto; border-radius: 14px;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), .12); margin: 1.4em auto;
}
.cms-prose iframe { max-width: 100%; border: 0; border-radius: 14px; margin: 1.4em 0; }

/* Horizontal rule → soft gold hairline */
.cms-prose hr {
    border: 0; height: 1px; margin: 2.2em auto; width: 62%;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

/* Tables (wrapped by JS in .cms-table-wrap for horizontal scroll on mobile) */
.cms-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; border-radius: 14px; }
.cms-prose table {
    width: 100%; border-collapse: collapse; font-size: 14px;
    border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden;
}
.cms-prose thead th { background: var(--bg-alt); }
.cms-prose th, .cms-prose td {
    padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}
.cms-prose th { color: var(--text-strong); font-weight: 700; }
.cms-prose tbody tr:nth-child(even) { background: rgba(var(--primary-rgb), .03); }
.cms-prose tbody tr:last-child td { border-bottom: 0; }

/* Optional admin callouts (only if the editor adds the class) */
.cms-prose .cms-note, .cms-prose .cms-info, .cms-prose .cms-warning {
    position: relative; margin: 1.5em 0; padding: 16px 18px 16px 48px;
    border-radius: 14px; border: 1px solid var(--border-soft); font-size: 14.5px; line-height: 1.65;
}
.cms-prose .cms-note::before, .cms-prose .cms-info::before, .cms-prose .cms-warning::before {
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 17px; top: 16px; font-size: 16px;
}
.cms-prose .cms-note { background: rgba(var(--primary-rgb), .05); }
.cms-prose .cms-note::before { content: "\f0eb"; color: var(--primary); }        /* lightbulb */
.cms-prose .cms-info { background: #eef6ff; border-color: #cfe4fb; }
.cms-prose .cms-info::before { content: "\f05a"; color: #2f6fb0; }               /* info-circle */
.cms-prose .cms-warning { background: #fff6e9; border-color: #f6e0b8; }
.cms-prose .cms-warning::before { content: "\f071"; color: #b8791b; }            /* triangle-exclamation */

/* ══════════════════════════════════════════════════════
   HELP BAND (shared partial)
   ══════════════════════════════════════════════════════ */
.help-band { margin-top: clamp(34px, 5vw, 54px); }
.help-band-inner {
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .07), rgba(var(--neon-rgb), .05));
    border: 1px solid var(--border-soft); border-radius: 20px;
    padding: clamp(24px, 4vw, 38px);
}
.help-band-title { font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(19px, 3vw, 24px); color: var(--text-strong); }
.help-band-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.help-band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════ */
.ct-intro {
    max-width: 60ch; margin: 0 auto clamp(24px, 4vw, 36px); text-align: center;
    font-size: clamp(14.5px, 1.8vw, 16px); line-height: 1.7; color: var(--text);
}
.ct-grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 3vw, 26px); }

.ct-card {
    background: var(--white); border: 1px solid var(--border-soft);
    border-radius: 18px; padding: clamp(20px, 4vw, 30px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), .07);
}
.ct-card-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px;
    color: var(--text-strong); margin-bottom: 18px;
}
.ct-card-title i { color: var(--primary); }

/* Form controls (self-contained — cart.css isn't loaded here) */
.ct-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.ct-form label { font-size: 12.5px; font-weight: 600; color: var(--text-strong); }
.ct-opt { color: var(--text-muted); font-weight: 400; }
.ct-form input, .ct-form select, .ct-form textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--border-soft); border-radius: 12px; background: var(--white);
    font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text-strong);
    outline: none; transition: border-color .2s, box-shadow .2s;
}
.ct-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}
.ct-form input.is-invalid, .ct-form select.is-invalid, .ct-form textarea.is-invalid {
    border-color: #d93906; box-shadow: 0 0 0 3px rgba(217, 57, 6, .1);
}
.ct-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.ct-submit { width: 100%; margin-top: 6px; }
.ct-note { margin-top: 12px; font-size: 13.5px; text-align: center; }
.ct-note.is-ok { color: #2f7d54; font-weight: 600; }
.ct-note.is-err { color: #d93906; }

/* Honeypot — visually removed, still focusable-off for bots */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Coordinates */
.ct-info { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.ct-info li { display: flex; gap: 13px; font-size: 14px; line-height: 1.5; color: var(--text); }
.ct-info strong { color: var(--text-strong); }
.ct-info a { color: var(--primary); font-weight: 600; }
.ct-info-ico {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), .09); color: var(--primary); font-size: 16px;
}
.ct-social-label {
    font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600; margin-bottom: 10px;
    padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.ct-social { display: flex; gap: 12px; }
.ct-social a {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--white); font-size: 17px;
    transition: transform .18s ease, background .18s ease;
}
.ct-social a:hover { transform: translateY(-2px); background: var(--primary); }

/* Support / trust cards */
.ct-support {
    display: grid; grid-template-columns: 1fr; gap: 14px;
    margin-top: clamp(20px, 3vw, 30px);
}
.ct-support-card {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 16px;
    padding: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ct-support-card:hover {
    transform: translateY(-3px); border-color: rgba(var(--primary-rgb), .35);
    box-shadow: 0 16px 34px rgba(var(--primary-rgb), .12);
}
.ct-support-ico {
    width: 46px; height: 46px; border-radius: 13px; margin-bottom: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), .09); color: var(--primary); font-size: 18px;
}
.ct-support-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-strong); }
.ct-support-sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Map */
.ct-map {
    display: flex; align-items: center; gap: 16px;
    margin-top: clamp(20px, 3vw, 30px); padding: 22px;
    border-radius: 18px; border: 1px dashed rgba(var(--primary-rgb), .35);
    background:
        radial-gradient(circle at 18% 30%, rgba(var(--primary-rgb), .07), transparent 42%),
        radial-gradient(circle at 82% 70%, rgba(var(--neon-rgb), .06), transparent 45%),
        var(--bg-alt);
    transition: border-color .2s, box-shadow .2s;
}
.ct-map:hover { border-color: var(--primary); box-shadow: 0 12px 30px rgba(var(--primary-rgb), .12); }
.ct-map-pin {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); color: var(--primary); font-size: 22px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .2);
}
.ct-map-text { display: flex; flex-direction: column; gap: 2px; }
.ct-map-text strong { color: var(--text-strong); font-size: 15px; }
.ct-map-text span { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE ENHANCEMENTS
   ══════════════════════════════════════════════════════ */
@media (min-width: 560px) {
    .ct-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .ct-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
    .ct-support { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .cms-layout.has-toc {
        grid-template-columns: 232px minmax(0, 760px);
        justify-content: center; align-items: start;
    }
    .cms-layout.has-toc .cms-prose { margin: 0; }
    .cms-toc { display: block; position: sticky; top: calc(var(--hd-h, 0px) + 24px); }
}

@media (prefers-reduced-motion: reduce) {
    .cms-toc-list a, .ct-support-card, .ct-social a, .ct-map, .cms-prose a { transition: none; }
}
