/* Additions for CMS-managed sections. Loads after style.css and reuses its tokens. */

/* ---- Promo bar ---- */
.promo-bar {
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 9px 16px;
}
.promo-bar a { color: var(--yellow); text-decoration: underline; }
body.has-promo .site-header { top: 38px; }
body.has-promo { --promo-h: 38px; }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--off-white); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.testimonial-card {
    margin: 0;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.testimonial-card blockquote {
    margin: 0;
    font-size: .98rem;
    line-height: 1.65;
    color: #46463f;
}
.testimonial-card figcaption strong { display: block; font-size: .95rem; }
.testimonial-card figcaption span { color: var(--gray-500); font-size: .8rem; }

.tstars { display: inline-flex; gap: 2px; }
.tstar svg, .tstars .tstar svg { width: 18px; height: 18px; }
.tstar { color: #d8d8d2; }
.tstar.is-on { color: var(--yellow-dark); }
.tstar.is-on svg { fill: var(--yellow); }

.google-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--gray-500);
}
.google-rating strong { font-size: 1.6rem; color: var(--text); letter-spacing: -.03em; }
.google-rating a { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow-dark); font-weight: 800; }

/* ---- Blog / project cards ---- */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0, 0, 0, .1); }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body small { color: var(--gray-500); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-card-body h3 { font-size: 1.25rem; }
.post-card-body p { color: #6b6b64; font-size: .9rem; margin-bottom: 0; }
.post-card-body .text-link { margin-top: auto; }

/* ---- Article (blog post / project detail) ---- */
.article-section { padding-top: clamp(60px, 8vw, 110px); }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #35352f; }
.article-body h2 { font-size: 1.9rem; margin: 40px 0 16px; }
.article-body h3 { margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: var(--radius-md); margin: 24px 0; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }

.article-hero { max-width: 860px; margin: 0 auto clamp(30px, 5vw, 56px); text-align: center; }
.article-hero .eyebrow { justify-content: center; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; max-width: 960px; margin: 0 auto clamp(30px, 5vw, 56px); box-shadow: var(--shadow); }
.article-cover img { width: 100%; }

.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

@media (max-width: 900px) {
    .testimonial-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .testimonial-grid, .collection-grid { grid-template-columns: 1fr; }
    body.has-promo .site-header { top: 0; }
    .promo-bar { position: static; }
}
