/* ============================================================
   PCT Blog — blog.css
   Loaded only on blog pages (single posts + archives).
   All colours use CSS custom properties from style.css.
   ============================================================ */

/* ─── Blog-local layout tokens ──────────────────────────── */
:root {
    --pct-navbar-h: 60px;                          /* fixed navbar height    */
    --pct-sticky-offset: calc(var(--pct-navbar-h) + 40px); /* 100px sidebar/scroll */
}

/* ─── Blog Index: Slim Hero ─────────────────────────────── */
.pct-blog-hero {
    background: #000;
    padding: 4rem 0;
    text-align: center;
}
.pct-blog-hero-kicker {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: var(--pct-gold);
    margin-bottom: .75rem;
}
.pct-blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    color: #fff;
    margin: 0 0 .75rem;
    line-height: 1.2;
}
.pct-blog-hero-sub {
    color: rgba(255,255,255,.7);
    font-size: .9375rem;
    max-width: 42rem;
    margin: 0 auto;
}
@media (max-width: 639px) {
    .pct-blog-hero { padding: 3rem 0; }
}

/* ─── Category Filter Bar ───────────────────────────────── */
.pct-blog-filter {
    background: #fff;
    border-bottom: 1px solid var(--pct-border);
    padding: 1rem 0;
    position: sticky;
    top: var(--pct-navbar-h);
    z-index: 10;
}
.pct-blog-filter-inner {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.pct-blog-filter-inner::-webkit-scrollbar { display: none; }
.pct-blog-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid var(--pct-border);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--pct-fg);
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    min-height: 44px;
}
.pct-blog-filter-pill:hover {
    background: var(--pct-muted-bg);
    border-color: var(--pct-muted-fg);
}
.pct-blog-filter-pill.is-active {
    background: var(--pct-fg);
    color: #fff;
    border-color: var(--pct-fg);
}

/* ─── Post Grid ─────────────────────────────────────────── */
.pct-blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.pct-blog-grid-rest {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 1023px) {
    .pct-blog-grid-rest { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .pct-blog-grid-rest { grid-template-columns: 1fr; }
}

/* ─── Post Card (shared: index + related posts) ─────────── */
.pct-post-card {
    background: #fff;
    border: 1px solid var(--pct-border);
    border-radius: var(--pct-radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.pct-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.pct-post-card-img-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.pct-post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    display: block;
}
.pct-post-card:hover .pct-post-card-img {
    transform: scale(1.03);
}
.pct-post-card-img-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #1a1200 100%);
}
.pct-post-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}
.pct-post-card-cat {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .2rem .65rem;
    border-radius: 9999px;
    background: var(--pct-gold);
    color: #0d0d0d;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-decoration: none;
    align-self: flex-start;
}
.pct-post-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pct-post-card-title a {
    color: var(--pct-fg);
    text-decoration: none;
}
.pct-post-card-title a:hover { color: var(--pct-gold); }
.pct-post-card-excerpt {
    font-size: .875rem;
    color: var(--pct-muted-fg);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pct-post-card-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--pct-muted-fg);
    margin-top: auto;
    padding-top: .5rem;
}

/* Featured first post — wide card */
.pct-post-card--featured {
    flex-direction: row;
    min-height: 340px;
}
.pct-post-card--featured .pct-post-card-img-wrap {
    flex: 0 0 55%;
    aspect-ratio: unset;
}
.pct-post-card--featured .pct-post-card-body {
    padding: 2rem;
    justify-content: center;
}
.pct-post-card--featured .pct-post-card-title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
}
.pct-post-card--featured .pct-post-card-excerpt {
    -webkit-line-clamp: 4;
}
@media (max-width: 767px) {
    .pct-post-card--featured { flex-direction: column; min-height: unset; }
    .pct-post-card--featured .pct-post-card-img-wrap { flex: unset; aspect-ratio: 16/9; }
}

/* ─── Pagination ─────────────────────────────────────────── */
.pct-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
.pct-blog-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.pct-blog-pagination .page-numbers li a,
.pct-blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 44px;
    padding: .4rem .8rem;
    border-radius: 9999px;
    border: 1px solid var(--pct-border);
    font-size: .875rem;
    font-weight: 600;
    color: var(--pct-fg);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.pct-blog-pagination .page-numbers li a:hover {
    background: var(--pct-muted-bg);
}
.pct-blog-pagination .page-numbers li span.current {
    background: var(--pct-fg);
    color: #fff;
    border-color: var(--pct-fg);
}
.pct-blog-empty {
    text-align: center;
    color: var(--pct-muted-fg);
    padding: 4rem 0;
    font-size: 1rem;
}

/* ─── Single Post: Breadcrumb ───────────────────────────── */
.pct-breadcrumb {
    padding: .75rem 1.5rem;
    background: var(--pct-muted-bg);
    border-bottom: 1px solid var(--pct-border);
}
.pct-breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    padding: 0;
    margin: 0 auto;
    font-size: .8125rem;
    color: var(--pct-muted-fg);
    align-items: center;
    max-width: 1400px;
}
.pct-breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: .5rem;
    color: var(--pct-border);
}
.pct-breadcrumb-list a { color: var(--pct-muted-fg); text-decoration: none; }
.pct-breadcrumb-list a:hover { color: var(--pct-gold); }
.pct-breadcrumb-list [aria-current="page"] { color: var(--pct-fg); font-weight: 600; }

/* ─── Single Post: Article Hero ─────────────────────────── */
.pct-post-hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #1a1200 100%);
}
.pct-post-hero-bg {
    position: absolute;
    inset: 0;
}
.pct-post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pct-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.2) 100%);
}
.pct-post-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.pct-post-hero-cat {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .2rem .75rem;
    border-radius: 9999px;
    background: var(--pct-gold);
    color: #0d0d0d;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-decoration: none;
    align-self: flex-start;
}
.pct-post-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 3rem);
    color: #fff;
    line-height: 1.2;
    margin: 0;
    max-width: 900px;
}
.pct-post-hero-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    color: rgba(255,255,255,.75);
}
@media (max-width: 767px) { .pct-post-hero { height: 320px; } }
@media (max-width: 479px) { .pct-post-hero { height: 240px; } }

/* ─── Single Post: Two-Column Layout ───────────────────── */
.pct-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
    align-items: start;
}
@media (max-width: 1023px) {
    .pct-post-layout { grid-template-columns: 1fr; }
    .pct-post-sidebar { display: none; }
}

/* ─── Table of Contents ─────────────────────────────────── */
.pct-toc {
    border: 1px solid var(--pct-border);
    border-left: 4px solid var(--pct-gold);
    border-radius: var(--pct-radius);
    background: var(--pct-muted-bg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.pct-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.pct-toc-label {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pct-muted-fg);
}
.pct-toc-toggle {
    background: none;
    border: none;
    padding: .5rem;
    font-size: .8rem;
    color: var(--pct-muted-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .3rem;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    border-radius: 4px;
}
.pct-toc-toggle:hover { color: var(--pct-gold); }
.pct-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.pct-toc-list[hidden] { display: none; }
.pct-toc-list a {
    font-size: .875rem;
    color: var(--pct-muted-fg);
    text-decoration: none;
    line-height: 1.5;
}
.pct-toc-list a:hover { color: var(--pct-gold); }

/* ─── Article Body Typography ───────────────────────────── */
.pct-article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pct-fg);
    max-width: 680px;
}
@media (min-width: 1024px) { .pct-article-body { font-size: 1.0625rem; } }
.pct-article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    padding-top: .5rem;
    line-height: 1.25;
    scroll-margin-top: var(--pct-sticky-offset);
}
.pct-article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: .5rem;
    line-height: 1.3;
    scroll-margin-top: var(--pct-sticky-offset);
}
.pct-article-body p { margin: 0 0 1.25rem; }
.pct-article-body a { color: var(--pct-gold); text-decoration: underline; text-underline-offset: 3px; }
.pct-article-body a:hover { opacity: .8; }
.pct-article-body ul,
.pct-article-body ol {
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.pct-article-body blockquote {
    border-left: 4px solid var(--pct-gold);
    background: var(--pct-muted-bg);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--pct-radius) var(--pct-radius) 0;
    font-style: italic;
    color: var(--pct-muted-fg);
}
.pct-article-body img {
    width: 100%;
    height: auto;
    border-radius: var(--pct-radius);
    margin: 1rem 0;
    display: block;
}
.pct-article-body code {
    font-family: monospace;
    background: var(--pct-muted-bg);
    padding: .15em .4em;
    border-radius: 4px;
    font-size: .9em;
}
.pct-article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem;
}
.pct-article-body th,
.pct-article-body td {
    border: 1px solid var(--pct-border);
    padding: .6rem .9rem;
    text-align: left;
}
.pct-article-body th { background: var(--pct-muted-bg); font-weight: 700; }

/* ─── Mid-article inline CTA (mobile only) ──────────────── */
.pct-inline-cta {
    background: var(--pct-muted-bg);
    border-left: 4px solid var(--pct-gold);
    border-radius: 0 var(--pct-radius) var(--pct-radius) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: .9375rem;
}
.pct-inline-cta a { color: var(--pct-gold); font-weight: 600; text-decoration: none; }
@media (min-width: 1024px) { .pct-inline-cta { display: none; } }

/* ─── Post FAQ ───────────────────────────────────────────── */
.pct-post-faq {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pct-border);
    padding-bottom: 0;
}
.pct-post-faq-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* ─── Sticky Sidebar CTA ─────────────────────────────────── */
.pct-sidebar-cta { position: sticky; top: var(--pct-sticky-offset); }
.pct-sidebar-cta-card {
    background: var(--pct-muted-bg);
    border: 1px solid var(--pct-border);
    border-top: 4px solid var(--pct-gold);
    border-radius: var(--pct-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.pct-sidebar-cta-kicker {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--pct-gold);
}
.pct-sidebar-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.pct-sidebar-cta-body {
    font-size: .875rem;
    color: var(--pct-muted-fg);
    line-height: 1.6;
    margin: 0;
}
.pct-sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.25rem;
    background: var(--pct-gold);
    color: #0d0d0d !important;
    border-radius: 9999px;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    text-align: center;
    transition: opacity .2s, transform .2s;
    min-height: 44px;
}
.pct-sidebar-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.pct-sidebar-cta-cities {
    text-align: center;
    font-size: .8125rem;
    color: var(--pct-muted-fg);
    text-decoration: none;
}
.pct-sidebar-cta-cities:hover { color: var(--pct-gold); }
.pct-sidebar-cta-trust {
    list-style: none;
    padding: .75rem 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .8125rem;
    color: var(--pct-muted-fg);
    border-top: 1px solid var(--pct-border);
}
.pct-sidebar-cta-trust li { display: flex; align-items: center; gap: .4rem; }
.pct-sidebar-cta-trust svg { color: var(--pct-gold); flex-shrink: 0; }

/* ─── Related Posts ──────────────────────────────────────── */
.pct-post-related {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--pct-border);
}
.pct-post-related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
}
.pct-post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1023px) { .pct-post-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .pct-post-related-grid { grid-template-columns: 1fr; } }
